const __vite__mapDeps = (i, m = __vite__mapDeps, d = (m.f || (m.f = ["assets/js/index.VaZcrhuv.js", "assets/js/c6da697c-7ad5-4d16-9811-816f0637e41e.BdjJkayk.js", "assets/js/4a12e97a-6677-4e6a-883a-a04a57fd20dd.DY4-Cj1r.js", "assets/js/914bdab0-2682-4422-a464-334586081859.BoGZ5jVn.js", "assets/js/32b3f534-34be-418b-9c8b-be5708dbe5cf.6TUYENWA.js", "assets/js/3d453f92-beed-4b03-a011-590d43576b2c.B9ygI19o.js", "assets/js/fe8226ae-b013-4dcf-aa9d-e4201e8e35b0.B-7fKKSZ.js", "assets/js/978fb8d0-2053-450f-9044-bd797f558ba4.DMNgrc0g.js", "assets/js/aa7eadab-d177-4fbc-9520-18b634d565e1.DbqKyC1Q.js", "assets/js/index.DXVscfOA.js", "assets/js/index.6cqiAEjd.js", "assets/js/index.DGjk3D7-.js", "assets/js/index.BdlUFHDo.js", "assets/js/comp.Di9ngQey.js", "assets/js/index.CdBxagzS.js", "assets/js/index.CaZiXyEl.js", "assets/js/index.C3pFqScA.js", "assets/js/index.BZpIGwND.js", "assets/js/index.C3FMbl1U.js", "assets/js/index.Bw0WrDeV.js"]))) => i.map(i => d[i]);
import {
    c as Ke,
    O as Sf,
    u as Ce,
    E as ca,
    a as Pe,
    s as Fb,
    i as Gb,
    b as Yb,
    W as Ve
} from "./assets/js/32b3f534-34be-418b-9c8b-be5708dbe5cf.6TUYENWA.js";
import {
    _ as or,
    j as r,
    R as ni,
    W as ke,
    I as xe,
    V as qv,
    T as Xn,
    a as Gn,
    B as Xb,
    S as to,
    G as wf,
    b as Pb,
    C as od,
    c as ht,
    r as Si,
    U as Fn,
    d as Nf,
    L as Vb,
    e as Zb,
    f as Cf,
    M as Ef,
    g as ng,
    h as lg,
    i as Zt,
    k as $v,
    l as Qb,
    m as no,
    F as Wb,
    n as Ib,
    o as Kb,
    P as hd,
    p as Jb,
    q as qb,
    s as $b,
    t as ex,
    u as tx,
    v as ig,
    w as rg,
    x as ax,
    y as nx,
    z as lx,
    A as Tf,
    D as Jo,
    E as sg,
    H as e0,
    J as ix,
    O as Ka,
    K as cg,
    N as t0,
    Q as ir,
    X as rx,
    Y as sx,
    Z as cx,
    $ as vf,
    a0,
    a1 as n0,
    a2 as l0,
    a3 as ox,
    a4 as ux,
    a5 as dx,
    a6 as fx,
    a7 as hx,
    a8 as gx,
    a9 as mx,
    aa as i0,
    ab as r0,
    ac as s0,
    ad as vx,
    ae as bx,
    af as c0,
    ag as xx,
    ah as px,
    ai as Xh,
    aj as yx,
    ak as rr,
    al as Sx,
    am as wx,
    an as Nx,
    ao as Cx,
    ap as Ex,
    aq as Tx,
    ar as Mx,
    as as Ax,
    at as Rx,
    au as Ox,
    av as _x,
    aw as jx,
    ax as kx,
    ay as zx,
    az as Dx,
    aA as Lx,
    aB as Im,
    aC as Ux,
    aD as Bx,
    aE as Hx,
    aF as Fx
} from "./assets/js/c6da697c-7ad5-4d16-9811-816f0637e41e.BdjJkayk.js";
import {
    a as Q,
    G as nt,
    e as og,
    r as ug,
    C as o0,
    g as u0,
    N as Gx
} from "./assets/js/4a12e97a-6677-4e6a-883a-a04a57fd20dd.DY4-Cj1r.js";
import {
    a as Yx
} from "./assets/js/3d453f92-beed-4b03-a011-590d43576b2c.B9ygI19o.js";
import {
    u as d0,
    a as f0,
    f as h0,
    s as g0,
    b as m0,
    o as v0,
    r as b0
} from "./assets/js/fe8226ae-b013-4dcf-aa9d-e4201e8e35b0.B-7fKKSZ.js";
import {
    m as Ft,
    A as eu
} from "./assets/js/914bdab0-2682-4422-a464-334586081859.BoGZ5jVn.js";
import {
    b as Ha,
    r as Xx,
    i as sr,
    D as Px,
    C as Vx,
    P as Zx
} from "./assets/js/978fb8d0-2053-450f-9044-bd797f558ba4.DMNgrc0g.js";
import {
    _ as dg,
    a as x0,
    A as Qx,
    F as Wx
} from "./assets/js/aa7eadab-d177-4fbc-9520-18b634d565e1.DbqKyC1Q.js";
(function() {
    const s = document.createElement("link").relList;
    if (s && s.supports && s.supports("modulepreload")) return;
    for (const h of document.querySelectorAll('link[rel="modulepreload"]')) c(h);
    new MutationObserver(h => {
        for (const m of h)
            if (m.type === "childList")
                for (const x of m.addedNodes) x.tagName === "LINK" && x.rel === "modulepreload" && c(x)
    }).observe(document, {
        childList: !0,
        subtree: !0
    });

    function l(h) {
        const m = {};
        return h.integrity && (m.integrity = h.integrity), h.referrerPolicy && (m.referrerPolicy = h.referrerPolicy), h.crossOrigin === "use-credentials" ? m.credentials = "include" : h.crossOrigin === "anonymous" ? m.credentials = "omit" : m.credentials = "same-origin", m
    }

    function c(h) {
        if (h.ep) return;
        h.ep = !0;
        const m = l(h);
        fetch(h.href, m)
    }
})();
const Ix = Q.lazy(() => or(() => import("./assets/js/index.VaZcrhuv.js"), __vite__mapDeps([0, 1, 2, 3, 4, 5, 6, 7, 8])));

function p0({
    id: n,
    userID: s,
    viwerModel: l
}) {
    return r.jsx(Q.Suspense, {
        fallback: r.jsx(r.Fragment, {}),
        children: r.jsx(Ix, {
            id: n,
            userID: s,
            viwerModel: l
        })
    })
}
const Jc = {
    useUserLogin: null,
    useModal: null,
    useModalOptions: null
};

function Kx({
    useUserLogin: n,
    useModal: s,
    useModalOptions: l
}) {
    Jc.useUserLogin = n, Jc.useModal = s, Jc.useModalOptions = l
}
const Jx = () => Ke((n, s) => ({
        renderView: "list",
        setRenderView: l => n({
            renderView: l
        }),
        userID: "",
        viwerModel: "modal",
        note: {
            id: NaN,
            userID: "",
            text: "",
            base64: ""
        },
        setNote: (l, c) => n(h => ({
            note: Object.freeze({
                ...h.note,
                [l]: c
            })
        }))
    })),
    Km = Ke()((n, s) => ({
        container: {},
        getContainer: l => {
            const {
                container: c
            } = s();
            if (c[l]) return c[l];
            {
                const h = Jx();
                return n(m => ({
                    container: {
                        ...m.container,
                        [l]: h
                    }
                })), h
            }
        },
        deleteContainer: l => n(c => {
            const h = {
                ...c.container
            };
            return delete h[l], {
                container: h
            }
        })
    })),
    y0 = async () => {
        const n = await ni("notes") || [];
        qo.setState({
            notes: n
        })
    }, qx = Sf({
        createNote: n => {
            qo.setState(s => ({
                notes: [n.data, ...s.notes]
            }))
        },
        editNote: n => {
            qo.setState(s => ({
                notes: s.notes.map(l => l.id === n.data.id ? n.data : l)
            }))
        },
        deleteNote: n => {
            qo.getState().deleteNote(n.data, !0)
        },
        notesBackup: n => {
            y0()
        }
    });
chrome.runtime.onMessage.addListener(qx);
const qo = Ke((n, s) => ({
    notes: [],
    createNote: (l, c = !1) => {
        const {
            notes: h
        } = s(), {
            language: m
        } = Ce.getState(), {
            user: x
        } = Jc.useUserLogin.getState(), {
            openRendertype: y
        } = Jc.useModal.getState(), {
            getContainer: w
        } = Km.getState(), {
            note: S,
            setRenderView: R
        } = w(l).getState();
        if (S.text.length < 3 && S.base64.length === 0) {
            xe({
                type: "Error",
                message: m.adicioneAnotacaoCom3,
                position: "top-right"
            });
            return
        }
        if (!x.estado && h.length >= 3) {
            y("user_free");
            return
        }!c && ke("notes", [S, ...h]), ca({
            stopPropag: c,
            action: "createNote",
            waitForResponse: !1,
            data: S
        }), xe({
            type: "Success",
            message: m.note_add,
            position: "top-right"
        }), R("list"), n({
            notes: [S, ...h]
        })
    },
    createNoteSocket: (l, c, h) => {
        const {
            notes: m
        } = s(), {
            language: x
        } = Ce.getState(), {
            user: y
        } = Jc.useUserLogin.getState(), {
            openRendertype: w
        } = Jc.useModal.getState(), S = {
            id: Date.now(),
            userID: l,
            text: c,
            base64: h
        };
        if (!y.estado && m.length >= 3) {
            w("user_free");
            return
        }
        ke("notes", [S, ...m]), ca({
            stopPropag: !1,
            action: "createNote",
            waitForResponse: !1,
            data: S
        }), xe({
            type: "Success",
            message: x.note_add + " via API",
            position: "top-right"
        }), n({
            notes: [S, ...m]
        })
    },
    editNote: (l, c = !1) => {
        const {
            notes: h
        } = s(), {
            language: m
        } = Ce.getState(), {
            getContainer: x
        } = Km.getState(), {
            note: y,
            setRenderView: w
        } = x(l).getState();
        if (y.text.length < 3 && y.base64.length === 0) {
            xe({
                type: "Error",
                message: m.adicioneAnotacaoCom3,
                position: "top-right"
            });
            return
        }
        const S = h.map(R => R.id === y.id ? y : R);
        !c && ke("notes", S), ca({
            stopPropag: c,
            action: "editNote",
            waitForResponse: !1,
            data: y
        }), xe({
            type: "Success",
            message: m.note_add,
            position: "top-right"
        }), w("list"), n({
            notes: S
        })
    },
    deleteNote: (l, c = !1) => {
        const {
            notes: h
        } = s(), {
            language: m
        } = Ce.getState(), x = h.filter(y => y.id !== l);
        !c && ke("notes", x), ca({
            stopPropag: c,
            action: "deleteNote",
            waitForResponse: !1,
            data: l
        }), xe({
            type: "Success",
            message: m.note_delete,
            position: "top-right"
        }), n({
            notes: x
        })
    },
    getNotes: l => {
        const {
            notes: c
        } = s();
        return c.filter(h => h.userID === l)
    }
}));
y0();
const tu = Ke()((n, s) => ({
    label: {
        chromeStoreID: "",
        descricao: "",
        language: "pt",
        name: "",
        nameID: "",
        sigeID: "",
        checkout: "",
        tutorial: "",
        cor_primaria: !1,
        banner: null,
        install: "",
        uninstall: "",
        rewards: "",
        webhook_login_clients: "",
        ia_wascript: "",
        meetAovivo: null,
        suporte_clientes: {
            premium: "",
            free: ""
        },
        videos_tutoriais: {
            resposta_rapida: "",
            mensagens_agendadas: "",
            envio_em_massa: "",
            status: "",
            auto_atendimento: "",
            fluxo: "",
            follow_up: "",
            api: "",
            webhook: ""
        },
        btn_black: ""
    },
    setLabel: l => {
        n({
            label: l
        });
        const c = document.querySelector("main");
        c && c.setAttribute("plugin-ico-color", String(s().label.cor_primaria))
    }
}));
async function $x() {
    try {
        const s = await (await fetch(chrome.runtime.getURL("/label/config/utils.json"))).json();
        try {
            const c = (await Yx.get(`${qv.backend}api/whiteLabel/get?wl_id=${s.chromeStoreID}`, {
                headers: {
                    "Content-Type": "application/json",
                    accept: "application/json"
                }
            })).data.wl;
            c.cor_primaria = c.cor_primaria === 0;
            const h = {
                ...s,
                ...c
            };
            tu.getState().setLabel(h)
        } catch (l) {
            const c = {
                ...s,
                checkout: "",
                tutorial: "",
                cor_primaria: !1,
                banner: null,
                install: "",
                uninstall: "",
                rewards: "",
                webhook_login_clients: "",
                ia_wascript: "",
                meetAovivo: null,
                suporte_clientes: {
                    premium: "",
                    free: ""
                },
                videos_tutoriais: {
                    resposta_rapida: "",
                    mensagens_agendadas: "",
                    envio_em_massa: "",
                    status: "",
                    auto_atendimento: "",
                    fluxo: "",
                    follow_up: "",
                    api: "",
                    webhook: ""
                },
                btn_black: ""
            };
            tu.getState().setLabel(c), console.error("erro ao carregar a WL remota", l)
        }
    } catch (n) {
        console.error("Erro ao carregar o arquivo da Label Local:", n)
    }
}

function ep() {
    return r.jsxs("div", {
        className: "pt-1",
        children: [
            r.jsx(Xn, {
                children: "Recurso liberado pelo Whast CRM"
            }),
            r.jsx(Gn, {
                children: "Precisa de ajuda? Fale com o suporte oficial:"
            })
        ]
    });
}
const fg = Ke()(n => ({
        assinatura: {
            multiAtendimento: !1,
            active: !1,
            name: ""
        },
        setAssinatura: (s, l) => n(c => {
            const h = {
                ...c.assinatura,
                [s]: l
            };
            return to("useAssinatura", "assinatura", [h]), {
                assinatura: h
            }
        })
    })),
    tp = async () => {
        const n = await wf("useAssinatura", "assinatura");
        n && n[0] && n[0][0] && fg.setState({
            assinatura: n[0][0]
        })
    };

function S0() {
    const {
        language: n
    } = Ce(), {
        assinatura: s,
        setAssinatura: l
    } = fg();
    return r.jsxs("div", {
        className: "grid gap-6 !w-[550px]",
        children: [r.jsxs("div", {
            children: [r.jsx(Xn, {
                children: n.ass_title
            }), r.jsx(Gn, {
                children: n.ass_text
            })]
        }), r.jsxs("label", {
            className: "input input-bordered border border-solid input-sm flex items-center gap-2 w-full",
            children: [r.jsx("svg", {
                xmlns: "http://www.w3.org/2000/svg",
                viewBox: "0 0 16 16",
                fill: "currentColor",
                className: "h-4 w-4 opacity-70",
                children: r.jsx("path", {
                    d: "M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM12.735 14c.618 0 1.093-.561.872-1.139a6.002 6.002 0 0 0-11.215 0c-.22.578.254 1.139.872 1.139h9.47Z"
                })
            }), r.jsx("input", {
                type: "text",
                placeholder: n.ass_place,
                value: s.name,
                onChange: h => l("name", h.target.value),
                className: "grow"
            })]
        }), r.jsxs("div", {
            className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded",
            children: [r.jsx(Gn, {
                children: n.ass_active
            }), r.jsx(Pb, {
                estado: s.active,
                switchUpdate: () => l("active", !s.active),
                id: "assinatura"
            })]
        })]
    })
}
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const ap = n => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(),
    w0 = (...n) => n.filter((s, l, c) => !!s && c.indexOf(s) === l).join(" ");
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
var np = {
    xmlns: "http://www.w3.org/2000/svg",
    width: 24,
    height: 24,
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    strokeWidth: 2,
    strokeLinecap: "round",
    strokeLinejoin: "round"
};
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const lp = Q.forwardRef(({
    color: n = "currentColor",
    size: s = 24,
    strokeWidth: l = 2,
    absoluteStrokeWidth: c,
    className: h = "",
    children: m,
    iconNode: x,
    ...y
}, w) => Q.createElement("svg", {
    ref: w,
    ...np,
    width: s,
    height: s,
    stroke: n,
    strokeWidth: c ? Number(l) * 24 / Number(s) : l,
    className: w0("lucide", h),
    ...y
}, [...x.map(([S, R]) => Q.createElement(S, R)), ...Array.isArray(m) ? m : [m]]));
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const gd = (n, s) => {
    const l = Q.forwardRef(({
        className: c,
        ...h
    }, m) => Q.createElement(lp, {
        ref: m,
        iconNode: s,
        className: w0(`lucide-${ap(n)}`, c),
        ...h
    }));
    return l.displayName = `${n}`, l
};
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const ip = gd("ClipboardPenLine", [
    ["rect", {
        width: "8",
        height: "4",
        x: "8",
        y: "2",
        rx: "1",
        key: "1oijnt"
    }],
    ["path", {
        d: "M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-.5",
        key: "1but9f"
    }],
    ["path", {
        d: "M16 4h2a2 2 0 0 1 1.73 1",
        key: "1p8n7l"
    }],
    ["path", {
        d: "M8 18h1",
        key: "13wk12"
    }],
    ["path", {
        d: "M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",
        key: "2t3380"
    }]
]);
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const rp = gd("Inbox", [
    ["polyline", {
        points: "22 12 16 12 14 15 10 15 8 12 2 12",
        key: "o97t9d"
    }],
    ["path", {
        d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",
        key: "oot6mr"
    }]
]);
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const hg = gd("SquareKanban", [
    ["rect", {
        width: "18",
        height: "18",
        x: "3",
        y: "3",
        rx: "2",
        key: "afitv7"
    }],
    ["path", {
        d: "M8 7v7",
        key: "1x2jlm"
    }],
    ["path", {
        d: "M12 7v4",
        key: "xawao1"
    }],
    ["path", {
        d: "M16 7v9",
        key: "1hp2iy"
    }]
]);
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const sp = gd("UserRound", [
    ["circle", {
        cx: "12",
        cy: "8",
        r: "5",
        key: "1hypcn"
    }],
    ["path", {
        d: "M20 21a8 8 0 0 0-16 0",
        key: "rfgkzh"
    }]
]);
/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const N0 = gd("X", [
        ["path", {
            d: "M18 6 6 18",
            key: "1bl5f8"
        }],
        ["path", {
            d: "m6 6 12 12",
            key: "d8bk6v"
        }]
    ]),
    kt = Ke()(n => ({
        modal: null,
        btnClose: !0,
        auxFunc: {
            mounted: null,
            desmouted: null
        },
        open: (s, l = !0, c = {
            mounted: null,
            desmouted: null
        }) => n(() => (c.mounted && c.mounted(), {
            modal: s,
            btnClose: l,
            auxFunc: c
        })),
        close: () => n(s => (s.auxFunc.desmouted && s.auxFunc.desmouted(), {
            modal: null
        })),
        openRendertype: (s, l = !0, c = {
            mounted: null,
            desmouted: null
        }) => {
            let h;
            switch (s) {
                case "user_free":
                    h = r.jsx(ep, {});
                    break;
                case "assinatura":
                    h = r.jsx(S0, {});
                    break
            }
            kt.getState().open(h, l, c)
        }
    }));

function cp() {
    const {
        modal: n,
        btnClose: s,
        close: l
    } = kt(), c = Q.useRef(null), h = Q.useRef(null);
    return Q.useEffect(() => {
        const m = x => {
            const y = document.querySelector(".iziToast-wrapper"),
                w = document.querySelector('section[data-id="Modal Options"]'),
                S = document.querySelector('section[data-id="Modal Emoji"]');
            s && c.current && !h.current.contains(x.target) && (!y || !y.contains(x.target)) && !w && !S && l()
        };
        return n && document.addEventListener("mousedown", m), () => {
            document.removeEventListener("mousedown", m)
        }
    }, [n]), n && r.jsx("section", {
        "data-id": "Modal",
        children: r.jsx("dialog", {
            id: "my_modal_5",
            ref: c,
            className: "animate__animated animate__zoomIn modal modal-bottom sm:modal-middle !absolute overflow-hidden !opacity-100 !pointer-events-auto !visible",
            children: r.jsxs("div", {
                ref: h,
                className: "modal-box relative border overflow-hidden !max-w-none !max-h-none !w-fit !h-fit bg-[var(--panel-header-background)]",
                children: [s ? r.jsx("span", {
                    className: "absolute w-5 h-5 top-3 right-3 pulse !cursor-pointer",
                    onClick: l,
                    children: r.jsx(N0, {
                        className: "w-full h-full text-[var(--primary-strong)]"
                    })
                }) : void 0, r.jsx("div", {
                    className: "w-full h-full",
                    children: n
                })]
            })
        })
    })
}
const Id = {
        estado: !1,
        login: "",
        senha: "",
        token: ""
    },
    cr = Ke()(n => ({
        user: Id,
        setUser: s => {
            const l = od.encryptData(s);
            to("wpp-client", "client", [l]), chrome.runtime.sendMessage({
                action: "post-user",
                user: s
            }), n(c => ({
                ...c,
                user: s
            }))
        },
        setRemoveUser: () => {
            to("wpp-client", "client", [od.encryptData(Id)]), chrome.runtime.sendMessage({
                action: "post-user",
                user: Id
            }), n(s => ({
                ...s,
                user: Id
            }))
        },
        setUserPluginPage: s => n({
            user: s
        })
    })),
    op = async () => {
        const n = await ht("get-user");
        cr.getState().setUserPluginPage(n)
    };
chrome.runtime.onMessage.addListener(async n => {
    n.action === "get-user" && chrome.runtime.sendMessage({
        action: n.action,
        response: JSON.stringify(cr.getState().user),
        id: n.id
    }), n.action === "post-user" && Pe.getState().plugin_page && cr.getState().setUserPluginPage(n.user)
});
const up = {
        aba: "x1rg5ohu x173ssrc x1xaadd7 x682dto x1e01kqd x12j7j87 x9bpaai x1pg5gke x1s688f xo5v014 x1u28eo4 x2b8uid x16dsc37 x1sbl2l xy9co9w x5r174s x7h3shv ",
        confgIcone: "_ajv7 ",
        iconeStyle: "_ajv6 x1y1aw1k x1sxyh0 xwib8y2 xurb0ha ",
        modalOptions: {
            content1: "_ak4w _al02 ",
            content2: "_ak5b ",
            content3: "xyqdw3p xg8j3zb ",
            animFather: "_ajv9",
            animExe: "x11t6m9b",
            animChildren: "x11xpdln x1d8287x x1h4ghdb "
        },
        listagem: {
            content1: "x1i64zmx x1emribx ",
            content2: "_aj-r _aj-q _aj-_ _ak_v ",
            content3: "x1c4vz4f xs83m0k xdl72j9 x1g77sc7 x78zum5 xozqiw3 x1oa3qoh x12fk4p8 xeuugli x2lwn1j x1nhvcw1 x1q0g3np x6s0dn4 x1ypdohk x1vqgdyp x1i64zmx x1gja9t ",
            content4: "x1c4vz4f xs83m0k xdl72j9 x1g77sc7 x78zum5 xozqiw3 x1oa3qoh x12fk4p8 x2lwn1j xl56j7k x1q0g3np x1cy8zhl xt4ypqs xq8finb ",
            content5: "xdod15v xzwifym x6ikm8r x10wlt62 xlyipyv xuxw1ft "
        },
        footerIco: "_ajv6 x1y1aw1k x1sxyh0 xwib8y2 xurb0ha ",
        textarea: "_ak1l "
    },
    wi = Ke()(n => ({
        variaveisWA: up
    })),
    Ma = Ke()(n => ({
        modalOptions: null,
        options: {},
        childrenRef: null,
        offset: 0,
        auxFunc: {
            mounted: null,
            desmouted: null
        },
        open: (s, l, c, h = 10, m = {
            mounted: null,
            desmouted: null
        }) => n(x => (m.mounted && m.mounted(), x.childrenRef !== null && x.auxFunc.desmouted && x.auxFunc.desmouted(), {
            modalOptions: s,
            options: l,
            childrenRef: c,
            offset: h,
            auxFunc: m
        })),
        close: () => n(s => (s.auxFunc.desmouted && s.auxFunc.desmouted(), {
            modalOptions: null,
            childrenRef: null,
            options: {}
        }))
    }));

function dp() {
    const {
        modalOptions: n,
        options: s,
        childrenRef: l,
        offset: c,
        close: h
    } = Ma(), {
        variaveisWA: m
    } = wi(), {
        refs: x,
        floatingStyles: y,
        update: w,
        elements: S
    } = d0({
        ...s,
        middleware: [h0({
            padding: 5
        }), g0({
            padding: 5
        }), m0({
            apply({
                availableWidth: R,
                availableHeight: A,
                elements: _
            }) {
                Object.assign(_.floating.style, {
                    maxWidth: `${R}px`,
                    maxHeight: `${A}px`
                })
            }
        }), v0(c)]
    });
    return Q.useEffect(() => {
        if (n && S.reference && S.floating) return f0(S.reference, S.floating, w)
    }, [n, S, w]), Q.useEffect(() => {
        const R = A => {
            var k;
            const _ = document.querySelector(".iziToast-wrapper"),
                O = document.querySelector('section[data-id="Modal Emoji"]');
            x.floating.current && !x.floating.current.contains(A.target) && !l.contains(A.target) && (!_ || !_.contains(A.target)) && !((k = document.querySelector("#pane-side ._21S-L span")) != null && k.contains(A.target)) && !O && h()
        };
        return l && (x.setReference(l), document.addEventListener("click", R)), () => {
            document.removeEventListener("click", R)
        }
    }, [n, l]), n && r.jsx("section", {
        "data-id": "Modal Options",
        children: r.jsx("div", {
            ref: x.setFloating,
            role: "tooltip",
            className: "z-[9999]",
            style: y,
            children: r.jsx("div", {
                className: m.modalOptions.content1 + "!rounded-2xl animate__animated animate__zoomIn",
                style: {
                    position: "initial",
                    maxWidth: "100vw"
                },
                role: "application",
                children: r.jsx("ul", {
                    "data-testid": "attach-menu-popup",
                    className: m.modalOptions.content2,
                    children: r.jsx("div", {
                        className: m.modalOptions.content3,
                        children: n
                    })
                })
            })
        })
    })
}
Fb({
    page: "external"
});
Kx({
    useUserLogin: cr,
    useModal: kt,
    useModalOptions: Ma
});
async function fp(n, s) {
    return new Promise((l, c) => {
        const h = indexedDB.open(n, 1);
        h.onerror = function(m) {
            console.error("Erro ao abrir o banco de dados."), c("Erro ao abrir o banco de dados.")
        }, h.onupgradeneeded = function(m) {
            m.target.result.createObjectStore(s, {
                keyPath: "id",
                autoIncrement: !0
            })
        }, h.onsuccess = function(m) {
            const x = m.target.result,
                S = x.transaction([s], "readonly").objectStore(s).getAll();
            S.onsuccess = function() {
                l(S.result), x.close()
            }, S.onerror = function() {
                console.error("Erro ao ler os dados da tabela."), c("Erro ao ler os dados da tabela.")
            }
        }
    })
}
async function hp(n, s, l) {
    return new Promise((c, h) => {
        const m = indexedDB.open(n, 1);
        m.onerror = function(x) {
            console.error("Erro ao abrir o banco de dados."), h("Erro ao abrir o banco de dados.")
        }, m.onupgradeneeded = function(x) {
            x.target.result.createObjectStore(s, {
                keyPath: "id",
                autoIncrement: !0
            })
        }, m.onsuccess = function(x) {
            const y = x.target.result,
                S = y.transaction([s], "readwrite").objectStore(s);
            S.clear();
            const R = S.add(l);
            R.onsuccess = function() {
                c(!0), y.close()
            }, R.onerror = function() {
                console.error("Worker Erro ao salvar os dados da camapanha."), c(!1)
            }
        }
    })
}
const gg = (n, s = !1) => {
        hp("useOrderLabels", "orderLabels", n), ca({
            stopPropag: s,
            action: "setOrderLabels",
            waitForResponse: !1,
            data: n
        }), au.setState({
            orderLabels: n
        })
    },
    gp = Sf({
        setOrderLabels: n => {
            gg(n.data, !0)
        },
        getOrderLabels: () => au.getState().orderLabels
    });
chrome.runtime.onMessage.addListener(gp);
const mp = async () => {
    const n = !location.href.includes("https://web.whatsapp");
    let s = [];
    if (n) s = await ca({
        stopPropag: !1,
        action: "getOrderLabels",
        waitForResponse: !0
    });
    else {
        const l = await fp("useOrderLabels", "orderLabels");
        l[0] && (s = l[0])
    }
    au.setState({
        orderLabels: s
    })
}, au = Ke()(() => ({
    orderLabels: []
})), C0 = async (n, s, l, c, h = !1) => {
    const x = ut.getState().crm.map(y => y.id === n ? {
        ...y,
        name: s,
        desc: l,
        hexColor: c
    } : y);
    ca({
        stopPropag: h,
        action: "editCrm",
        waitForResponse: !1,
        data: {
            crmID: n,
            name: s,
            desc: l,
            hexColor: c
        }
    }), !h && ke("crm", x), ut.setState({
        crm: x
    })
}, E0 = async (n, s = !1) => {
    const c = ut.getState().crm.filter(h => h.id !== n);
    ca({
        stopPropag: s,
        action: "removeCrm",
        waitForResponse: !1,
        data: n
    }), !s && ke("crm", c), ut.setState({
        crm: c
    })
}, T0 = async ({
    id: n = Si(),
    ativeCRM: s,
    name: l,
    hexColor: c
}, h = !1) => {
    const x = ut.getState().crm.map(y => {
        if (y.id === s) {
            const w = {
                id: n,
                name: l,
                hexColor: c,
                chats: []
            };
            return {
                ...y,
                list: [...y.list, w]
            }
        }
        return y
    });
    ca({
        stopPropag: h,
        action: "addNewTabCRM",
        waitForResponse: !1,
        data: {
            id: n,
            ativeCRM: s,
            name: l,
            hexColor: c
        }
    }), !h && ke("crm", x), ut.setState({
        crm: x
    })
}, M0 = async (n, s = !1) => {
    const c = [...ut.getState().crm, ...n].reduce((h, m) => h.find(y => y.id === m.id) ? h : h.concat([m]), []);
    ca({
        stopPropag: s,
        action: "setCrm",
        waitForResponse: !1,
        data: n
    }), !s && ke("crm", c), ut.setState({
        crm: c
    })
}, A0 = async (n, s, l, c = !1) => {
    const m = ut.getState().crm.map(x => x.id === n ? {
        ...x,
        list: x.list.map(y => y.id === s ? {
            ...y,
            name: l
        } : y)
    } : x);
    ca({
        stopPropag: c,
        action: "editTabCRM",
        waitForResponse: !1,
        data: {
            crmID: n,
            abaID: s,
            name: l
        }
    }), !c && ke("crm", m), ut.setState({
        crm: m
    })
}, R0 = async (n, s, l, c = !1) => {
    const m = ut.getState().crm.map(x => x.id === n ? {
        ...x,
        list: x.list.map(y => y.id === s ? {
            ...y,
            chats: y.chats.filter(w => w.id !== l)
        } : y)
    } : x);
    ca({
        stopPropag: c,
        action: "removeChatTabCRM",
        waitForResponse: !1,
        data: {
            crmID: n,
            abaID: s,
            chatID: l
        }
    }), !c && ke("crm", m), ut.setState({
        crm: m
    })
}, O0 = async (n, s, l, c = !1) => {
    const m = ut.getState().crm.map(x => x.id === n ? {
        ...x,
        list: x.list.map(y => y.id === s ? {
            ...y,
            hexColor: l
        } : y)
    } : x);
    ca({
        stopPropag: c,
        action: "changeColorTabCRM",
        waitForResponse: !1,
        data: {
            crmID: n,
            abaID: s,
            hexColor: l
        }
    }), !c && ke("crm", m), ut.setState({
        crm: m
    })
}, vp = async (n, s, l, c, h = !1) => {
    const m = ut.getState().crm;
    n = n.replace("@c.us", "").replace("@g.us", "");
    let x;
    s ? x = m.map(y => ({
        ...y,
        list: y.list.map(w => ({
            ...w,
            chats: w.chats.filter(S => S.id !== n)
        }))
    })) : x = m.map(y => y.id === l ? {
        ...y,
        list: y.list.map(w => w.id === c ? {
            ...w,
            chats: w.chats.filter(S => S.id !== n)
        } : w)
    } : y), ca({
        stopPropag: h,
        action: "setRemoveUserCRM",
        waitForResponse: !1,
        data: {
            userID: n,
            isAll: s,
            crmID: l,
            abaID: c
        }
    }), !h && ke("crm", x), ut.setState({
        crm: x
    })
}, _0 = async (n, s, l, c, h = !1) => {
    const m = ut.getState().crm;
    n = n.replace("@c.us", "").replace("@g.us", "");
    let x = m.map(y => y.id === s ? {
        ...y,
        list: y.list.map(w => {
            if (w.id === l && !w.chats.some(R => R.id === n)) {
                let R = [...w.chats];
                return R.splice(c, 0, {
                    id: n
                }), {
                    ...w,
                    chats: R
                }
            }
            return w
        })
    } : y);
    ca({
        stopPropag: h,
        action: "setNewUserCRM",
        waitForResponse: !1,
        data: {
            userID: n,
            crmID: s,
            abaID: l,
            insertPosition: c
        }
    }), !h && ke("crm", x), ut.setState({
        crm: x
    })
}, j0 = (n, s, l, c, h, m = !1) => {
    const y = ut.getState().crm.map(w => ({
        ...w,
        list: w.list.map(S => {
            if (S.id === s && !h) {
                const R = S.chats.filter(A => A.id !== n.id);
                return {
                    ...S,
                    chats: R
                }
            } else if (S.id === l) {
                const R = [...S.chats];
                return R.some(_ => _.id === n.id) || R.splice(c, 0, n), {
                    ...S,
                    chats: R
                }
            }
            return S
        })
    }));
    ca({
        stopPropag: m,
        action: "moveUserTabCRM",
        waitForResponse: !1,
        data: {
            chat: n,
            source: s,
            destination: l,
            insertPosition: c,
            duplicate: h
        }
    }), !m && ke("crm", y), ut.setState({
        crm: y
    })
}, k0 = (n, s, l, c, h = !1) => {
    const x = ut.getState().crm.map(y => y.id === n ? {
        ...y,
        list: y.list.map(w => {
            if (w.id === s) {
                const S = [...w.chats],
                    [R] = S.splice(l, 1);
                return S.splice(c, 0, R), {
                    ...w,
                    chats: S
                }
            }
            return w
        })
    } : y);
    ca({
        stopPropag: h,
        action: "orderUserInTabCRM",
        waitForResponse: !1,
        data: {
            crmID: n,
            columnID: s,
            indexHome: l,
            indexDestination: c
        }
    }), !h && ke("crm", x), ut.setState({
        crm: x
    })
}, z0 = (n, s, l, c = !1) => {
    const m = ut.getState().crm.map(x => {
        if (x.id === n) {
            const y = [...x.list],
                [w] = y.splice(s, 1);
            return y.splice(l, 0, w), {
                ...x,
                list: y
            }
        }
        return x
    });
    ca({
        stopPropag: c,
        action: "sortUserTabsCRM",
        waitForResponse: !1,
        data: {
            crmID: n,
            indexHome: s,
            indexDestination: l
        }
    }), !c && ke("crm", m), ut.setState({
        crm: m
    })
}, D0 = (n, s, l = !1) => {
    const h = ut.getState().crm.map(m => m.id === n ? {
        ...m,
        list: m.list.filter(x => x.id !== s)
    } : m);
    ca({
        stopPropag: l,
        action: "deleteTabCRM",
        waitForResponse: !1,
        data: {
            crmID: n,
            abaID: s
        }
    }), !l && ke("crm", h), ut.setState({
        crm: h
    })
}, bp = Sf({
    setCrm: n => {
        M0(n.data, !0)
    },
    editCrm: n => {
        const {
            crmID: s,
            name: l,
            desc: c,
            hexColor: h
        } = n.data;
        C0(s, l, c, h, !0)
    },
    removeCrm: n => {
        E0(n.data, !0)
    },
    addNewTabCRM: n => {
        T0(n.data, !0)
    },
    editTabCRM: n => {
        const {
            crmID: s,
            abaID: l,
            name: c
        } = n.data;
        A0(s, l, c, !0)
    },
    removeChatTabCRM: n => {
        const {
            crmID: s,
            abaID: l,
            chatID: c
        } = n.data;
        R0(s, l, c, !0)
    },
    changeColorTabCRM: n => {
        const {
            crmID: s,
            abaID: l,
            hexColor: c
        } = n.data;
        O0(s, l, c, !0)
    },
    setRemoveUserCRM: n => {
        const {
            userID: s,
            isAll: l,
            crmID: c,
            abaID: h
        } = n.data;
        vp(s, l, c, h, !0)
    },
    setNewUserCRM: n => {
        const {
            userID: s,
            crmID: l,
            abaID: c,
            insertPosition: h
        } = n.data;
        _0(s, l, c, h, !0)
    },
    moveUserTabCRM: n => {
        const {
            chat: s,
            source: l,
            destination: c,
            insertPosition: h,
            duplicate: m
        } = n.data;
        j0(s, l, c, h, m, !0)
    },
    orderUserInTabCRM: n => {
        const {
            crmID: s,
            columnID: l,
            indexHome: c,
            indexDestination: h
        } = n.data;
        k0(s, l, c, h, !0)
    },
    sortUserTabsCRM: n => {
        const {
            crmID: s,
            indexHome: l,
            indexDestination: c
        } = n.data;
        z0(s, l, c, !0)
    },
    deleteTabCRM: n => {
        const {
            crmID: s,
            abaID: l
        } = n.data;
        D0(s, l, !0)
    }
});
chrome.runtime.onMessage.addListener(bp);
const xp = async () => {
    const n = await ni("crm");
    ut.setState({
        crm: n
    })
}, ut = Ke()(() => ({
    crm: []
}));
mp();
xp();
(async () => (await $x(), await op(), Gb(), Yb()))();
const Ph = {
        date: {
            tag: "date",
            quant: 0,
            max: 0,
            old: Date.now()
        },
        init_conversa: {
            tag: "init_conversa",
            quant: 0,
            max: 5
        },
        create_link: {
            tag: "create_link",
            quant: 0,
            max: 3
        },
        close_service: {
            tag: "close_service",
            quant: 0,
            max: 3
        },
        lembretes: {
            tag: "lembretes",
            quant: 0,
            max: 1
        },
        assinatura: {
            tag: "assinatura",
            quant: 0,
            max: 5
        },
        googleCalendario: {
            tag: "googleCalendario",
            quant: 0,
            max: 1
        },
        contatos: {
            tag: "contatos",
            quant: 0,
            max: 1
        },
        respostasRapidas: {
            tag: "respostasRapidas",
            quant: 0,
            max: 3
        },
        agendamentos: {
            tag: "agendamentos",
            quant: 0,
            max: 1
        },
        perfilDoContato: {
            tag: "perfilDoContato",
            quant: 0,
            max: 10
        },
        encomendas: {
            tag: "encomendas",
            quant: 0,
            max: 1
        },
        autoatendimento: {
            tag: "autoatendimento",
            quant: 0,
            max: 3
        },
        webhook: {
            tag: "webhook",
            quant: 0,
            max: 3
        },
        clear_message: {
            tag: "clear_message",
            quant: 0,
            max: 1
        },
        useTradutor: {
            tag: "useTradutor",
            quant: 0,
            max: 1
        },
        status: {
            tag: "status",
            quant: 0,
            max: 1
        },
        assistente_chat: {
            tag: "assistente_chat",
            quant: 0,
            max: 3
        },
        API: {
            tag: "API",
            quant: 0,
            max: 3
        },
        trascrever_audio: {
            tag: "trascrever_audio",
            quant: 0,
            max: 1
        }
    },
    of = Ke()(n => ({
        userFreeLimity: Ph,
        setUserFreeLimity: s => {
            to("wpp-functions", "functions", [od.encryptData(s)]), n(l => ({
                ...l,
                userFreeLimity: s
            }))
        },
        setUserFreeLimityPluginPage: () => n(s => ({
            ...s,
            plugin_page: !0
        }))
    })),
    L0 = n => {
        var c;
        if (cr.getState().user.estado) return !1;
        const s = of.getState().userFreeLimity;
        if (Fn.subtrData(s.date.old) > 1) {
            const h = {
                ...Ph
            };
            for (const m in h)
                if (Object.prototype.hasOwnProperty.call(h, m)) {
                    const x = h[m];
                    x.quant = 0, x.tag === "date" && (x.old = Date.now()), x.tag === n && (x.quant = 1)
                } return of.getState().setUserFreeLimity(h), !1
        }
        if (s[n] || (s[n] = Ph[n]), s[n].quant === ((c = s[n]) == null ? void 0 : c.max)) return !0;
        const l = {
            ...s
        };
        return l[n].quant++, of.getState().setUserFreeLimity(s), !1
    },
    Yn = async (n, s = !1) => {
        let l = !1;
        return Pe.getState().plugin_page ? cr.getState().user.estado ? l = !1 : l = await ht("exe-CheckUserFreeLock", n) : l = L0(n), l && !s && kt.getState().openRendertype("user_free"), l
    }, pp = () => {
        of.getState().setUserFreeLimityPluginPage()
    };
chrome.runtime.onMessage.addListener(async n => {
    n.action === "exe-CheckUserFreeLock" && !Pe.getState().plugin_page && chrome.runtime.sendMessage({
        action: n.action,
        response: JSON.stringify(L0(n.dados)),
        id: n.id
    })
});
const U0 = [{
        id: 1,
        name: "tab_all",
        visibility: !0
    }, {
        id: 2,
        name: "tab_groups",
        visibility: !0
    }, {
        id: 3,
        name: "tab_unread",
        visibility: !0
    }, {
        id: 4,
        name: "tab_1_1",
        visibility: !0
    }, {
        id: 5,
        name: "tab_atendentes",
        visibility: !0
    }],
    et = Ke()(n => ({
        userTabs: [],
        systemTabs: U0,
        activeTab: {
            type: "tab",
            id: 1
        },
        sortUserTabs: (s, l) => n(c => {
            const h = [...c.userTabs],
                [m] = h.splice(s, 1),
                x = [...h.slice(0, l), m, ...h.slice(l)];
            return ke("userTabs", x), Pe.getState().plugin_page ? ht("userTabs-sortUserTabs", {
                home: s,
                destination: l
            }) : chrome.runtime.sendMessage({
                action: "userTabs-sortUserTabs",
                dados: {
                    home: s,
                    destination: l
                }
            }), {
                userTabs: x
            }
        }),
        setNewUser: async (s, l) => {
            var y;
            const c = s.replace("@c.us", "").replace("@g.us", "");
            if ((y = et.getState().userTabs.find(w => w.id === l)) == null ? void 0 : y.chats.find(w => w.id === s || w.id === c)) return;
            const {
                name: m
            } = await Ve.Utils("getContato", s), x = et.getState().userTabs.map(w => w.id === l ? !cr.getState().user.estado && w.chats.length >= 5 ? (kt.getState().openRendertype("user_free"), w) : {
                ...w,
                chats: [...w.chats, {
                    id: s,
                    name: m
                }]
            } : w);
            ke("userTabs", x), Pe.getState().plugin_page ? ht("userTabs-setNewUser", {
                userID: s,
                id: l
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setNewUser",
                dados: {
                    userID: s,
                    id: l
                }
            }), n(w => ({
                ...w,
                userTabs: x
            }))
        },
        setChatsTab: (s, l) => n(c => {
            const h = c.userTabs.map(m => m.id === l ? {
                ...m,
                chats: s
            } : m);
            return ke("userTabs", h), Pe.getState().plugin_page ? ht("userTabs-setChatsTab", {
                chats: s,
                id: l
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setChatsTab",
                dados: {
                    chats: s,
                    id: l
                }
            }), {
                userTabs: h
            }
        }),
        setCopyChats: (s, l) => n(c => {
            const h = c.userTabs.map(m => {
                if (m.id === l) {
                    const x = s.filter(y => !m.chats.some(w => w.id === y.id));
                    return {
                        ...m,
                        chats: [...m.chats, ...x]
                    }
                }
                return m
            });
            return ke("userTabs", h), Pe.getState().plugin_page ? ht("userTabs-setCopyChats", {
                chats: s,
                id: l
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setCopyChats",
                dados: {
                    chats: s,
                    id: l
                }
            }), {
                userTabs: h
            }
        }),
        setMoveChats: (s, l, c) => n(h => {
            const m = h.userTabs.map(x => {
                if (x.id === l) {
                    const y = x.chats.filter(w => !s.some(S => S.id === w.id));
                    return {
                        ...x,
                        chats: y
                    }
                }
                if (x.id === c) {
                    const y = [...x.chats, ...s.filter(w => !x.chats.some(S => S.id === w.id))];
                    return {
                        ...x,
                        chats: y
                    }
                }
                return x
            });
            return ke("userTabs", m), Pe.getState().plugin_page ? ht("userTabs-setMoveChats", {
                chats: s,
                source: l,
                destination: c
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setMoveChats",
                dados: {
                    chats: s,
                    source: l,
                    destination: c
                }
            }), {
                userTabs: m
            }
        }),
        setRemoveUser: (s, l, c) => n(h => {
            const m = s.replace("@c.us", "").replace("@g.us", ""),
                x = h.userTabs.map(y => l ? {
                    ...y,
                    chats: y.chats.filter(w => w.id !== m && w.id !== s)
                } : y.id === c ? {
                    ...y,
                    chats: y.chats.filter(w => w.id !== m && w.id !== s)
                } : {
                    ...y
                });
            return ke("userTabs", x), Pe.getState().plugin_page ? ht("userTabs-setRemoveUser", {
                userID: s,
                isAll: l,
                id: c
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setRemoveUser",
                dados: {
                    userID: s,
                    isAll: l,
                    id: c
                }
            }), {
                userTabs: x
            }
        }),
        setEditUserTabName: (s, l) => n(c => {
            const h = c.userTabs.map(m => m.id === s ? {
                ...m,
                tag: l
            } : m);
            return ke("userTabs", h), Pe.getState().plugin_page ? ht("userTabs-setEditUserTabName", {
                id: s,
                tabName: l
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setEditUserTabName",
                dados: {
                    id: s,
                    tabName: l
                }
            }), {
                userTabs: h
            }
        }),
        setRemoveTab: s => n(l => {
            const c = l.userTabs.filter(h => h.id !== s);
            return ke("userTabs", c), Pe.getState().plugin_page ? ht("userTabs-setRemoveTab", {
                id: s
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setRemoveTab",
                dados: {
                    id: s
                }
            }), {
                userTabs: c
            }
        }),
        setCreateUserTab: s => n(l => {
            const c = {
                    id: Si(),
                    chats: [],
                    tag: s,
                    type: "user",
                    hide: !1
                },
                h = [c, ...l.userTabs];
            return ke("userTabs", h), Pe.getState().plugin_page ? ht("userTabs-setCreateUserTab", {
                newUserTab: c
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setCreateUserTab",
                dados: {
                    newUserTab: c
                }
            }), {
                userTabs: h
            }
        }),
        setVisibilityUserTab: s => n(l => {
            const c = l.userTabs.map(h => h.id === s ? {
                ...h,
                hide: !h.hide
            } : h);
            return ke("userTabs", c), Pe.getState().plugin_page ? ht("userTabs-setVisibilityUserTab", {
                id: s
            }) : chrome.runtime.sendMessage({
                action: "userTabs-setVisibilityUserTab",
                dados: {
                    id: s
                }
            }), {
                userTabs: c
            }
        }),
        getUserAbasTam: s => et.getState().userTabs.filter(c => c.chats.filter(h => h.id === s).length > 0).length,
        setVisibilitySystemTab: s => n(l => {
            const c = l.systemTabs.map(h => h.id === s ? {
                ...h,
                visibility: !h.visibility
            } : h);
            return to("SystemTabsDB", "SystemTabs", [od.encryptData(c)]), {
                systemTabs: c
            }
        }),
        setActiveTab: s => n(l => ({
            ...l,
            activeTab: s
        }))
    })),
    yp = async (n, s) => {
        const {
            name: l
        } = await Ve.Utils("getContato", n), c = et.getState().userTabs.map(h => s.length === 36 && h.id === s || h.tag === s ? !cr.getState().user.estado && h.chats.length >= 5 ? (window.postMessage({
            action: "modal-userFree",
            plugin_page: Pe.getState().plugin_page
        }, "*"), h) : {
            ...h,
            chats: [...h.chats, {
                id: n,
                name: l
            }]
        } : h);
        et.setState({
            userTabs: c
        })
    }, Sp = (n, s) => {
        const l = et.getState().userTabs;
        l.map(c => (c.id === s && (c.chats = n), c)), et.setState({
            userTabs: l
        })
    }, wp = (n, s) => {
        const l = et.getState().userTabs;
        l.map(c => (c.id === s && (c.chats = [...c.chats, ...n.filter(h => !c.chats.some(m => m.id === h.id))]), c)), et.setState({
            userTabs: l
        })
    }, Np = (n, s, l) => {
        const c = et.getState().userTabs.map(h => (h.id === s && (h.chats = h.chats.filter(m => !n.some(x => x.id === m.id))), h.id === l && (h.chats = [...h.chats, ...n.filter(m => !h.chats.some(x => x.id === m.id))]), h));
        et.setState({
            userTabs: c
        })
    }, Cp = (n, s, l) => {
        let c = et.getState().userTabs;
        s ? c = c.map(h => ({
            ...h,
            chats: h.chats.filter(m => m.id !== n)
        })) : c = c.map(h => l.length === 36 && h.id === l || h.tag === l ? {
            ...h,
            chats: h.chats.filter(m => m.id !== n)
        } : h), et.setState({
            userTabs: c
        })
    }, Ep = n => {
        const s = [n, ...et.getState().userTabs];
        et.setState({
            userTabs: s
        })
    }, Tp = n => {
        const s = et.getState().userTabs.map(l => (l.id === n && (l.hide = !l.hide), l));
        et.setState({
            userTabs: s
        })
    }, Mp = (n, s) => {
        const l = et.getState().userTabs.map(c => c.id === n ? {
            ...c,
            tag: s
        } : c);
        et.setState({
            userTabs: l
        })
    }, Ap = n => {
        const s = et.getState().userTabs.filter(l => l.id !== n);
        et.setState({
            userTabs: s
        })
    }, Rp = (n, s) => {
        const l = Array.from(et.getState().userTabs),
            [c] = l.splice(n, 1);
        l.splice(s, 0, c), et.setState({
            userTabs: l
        })
    };
chrome.runtime.onMessage.addListener(async n => {
    switch (n.action) {
        case "userTabs-setNewUser":
            yp(n.dados.userID, n.dados.id);
            break;
        case "userTabs-setChatsTab":
            Sp(n.dados.chats, n.dados.id);
            break;
        case "userTabs-setCopyChats":
            wp(n.dados.chats, n.dados.id);
            break;
        case "userTabs-setMoveChats":
            Np(n.dados.chats, n.dados.source, n.dados.destination);
            break;
        case "userTabs-setRemoveUser":
            Cp(n.dados.userID, n.dados.isAll, n.dados.id);
            break;
        case "userTabs-setCreateUserTab":
            Ep(n.dados.newUserTab);
            break;
        case "userTabs-setVisibilityUserTab":
            Tp(n.dados.id);
            break;
        case "userTabs-setEditUserTabName":
            Mp(n.dados.id, n.dados.tabName);
            break;
        case "userTabs-setRemoveTab":
            Ap(n.dados.id);
            break;
        case "userTabs-sortUserTabs":
            Rp(n.dados.home, n.dados.destination);
            break
    }
});
chrome.runtime.onMessage.addListener(n => {
    n.action === "initUserTabs" && B0()
});
const Op = n => {
        let s = !1;
        const l = n.map(c => c.id ? c : (s = !0, {
            ...c,
            id: c.tag
        }));
        return {
            isOldFormat: s,
            refatoredUserTabs: l
        }
    },
    B0 = async () => {
        const n = await ni("userTabs"),
            {
                refatoredUserTabs: s,
                isOldFormat: l
            } = Op(n);
        l && ke("userTabs", s);
        let c = U0;
        const h = await wf("SystemTabsDB", "SystemTabs");
        h[0] && h[0][0] && (c = od.decryptData(h[0][0])), et.setState({
            userTabs: s,
            systemTabs: c
        })
    }, rc = Ke()((n, s) => ({
        quickReplies: []
    }));
chrome.runtime.onMessage.addListener(n => {
    switch (n.action) {
        case "addCategory":
            ai.setState({
                categories: [...ai.getState().categories, n.dados]
            });
            break;
        case "sortCategories":
            const s = [...ai.getState().categories],
                [l] = s.splice(n.dados.source.index, 1);
            s.splice(n.dados.destination.index, 0, l), ai.setState({
                categories: s
            });
            break;
        case "removeCategory":
            ai.setState({
                categories: ai.getState().categories.filter(c => c.id !== n.dados)
            });
            break;
        case "editCategory":
            ai.setState({
                categories: ai.getState().categories.map(c => c.id === n.dados.id ? n.dados : c)
            });
            break
    }
});
const ai = Ke()(n => ({
    categories: [],
    addCategory: s => n(l => {
        const c = [...l.categories, s];
        return ke("categoria", c), Pe.getState().plugin_page ? ht("addCategory", s) : chrome.runtime.sendMessage({
            action: "addCategory",
            dados: s
        }), {
            categories: c
        }
    }),
    sortCategories: s => n(l => {
        const c = [...l.categories],
            [h] = c.splice(s.source.index, 1);
        return c.splice(s.destination.index, 0, h), ke("categoria", c), Pe.getState().plugin_page ? ht("sortCategories", s) : chrome.runtime.sendMessage({
            action: "sortCategories",
            dados: s
        }), {
            categories: c
        }
    }),
    removeCategory: s => n(l => {
        const c = l.categories.filter(h => h.id !== s);
        return ke("categoria", c), Pe.getState().plugin_page ? ht("removeCategory", s) : chrome.runtime.sendMessage({
            action: "removeCategory",
            dados: s
        }), {
            categories: c
        }
    }),
    editCategory: s => n(l => {
        const c = l.categories.map(h => h.id === s.id ? s : h);
        return ke("categoria", c), Pe.getState().plugin_page ? ht("editCategory", s) : chrome.runtime.sendMessage({
            action: "editCategory",
            dados: s
        }), {
            categories: c
        }
    })
}));
chrome.runtime.onMessage.addListener(n => {
    n.action === "initRespostaRapidas" && H0()
});

function H0() {
    chrome.storage.local.get(["respostasRapidas", "categoria"], ({
        respostasRapidas: n,
        categoria: s
    }) => {
        ai.setState({
            categories: s
        }), rc.setState({
            quickReplies: n
        })
    })
}
chrome.runtime.onMessage.addListener(n => {
    const {
        encomendas: s
    } = as.getState();
    switch (n.action) {
        case "addProduct":
            const {
                userID: l, product: c
            } = n.dados, h = s.find(A => A.userID === l);
            let m = [];
            h ? m = s.map(A => (A.userID === l && (A.product = [...A.product, c]), A)) : m = [...s, {
                userID: l,
                product: [c]
            }], as.setState({
                encomendas: m
            });
            break;
        case "editProduct":
            const {
                productId: x, updatedProduct: y
            } = n.dados, w = s.map(A => {
                if (A.userID === l) {
                    const _ = A.product.map(O => O.id === x ? {
                        ...O,
                        ...y
                    } : O);
                    return {
                        ...A,
                        product: _
                    }
                }
                return A
            });
            as.setState({
                encomendas: w
            });
            break;
        case "removeProduct":
            const {
                productId: S
            } = n.dados, R = s.map(A => {
                if (A.userID === l) {
                    const _ = A.product.filter(O => O.id !== S);
                    return {
                        ...A,
                        product: _
                    }
                }
                return A
            });
            as.setState({
                encomendas: R
            });
            break;
        case "encomendas-backup-update":
            F0();
            break
    }
});
const as = Ke()((n, s) => ({
        encomendas: [],
        getProduct: l => {
            const c = as.getState().encomendas.find(h => h.userID === l);
            return c ? c.product : []
        },
        addProduct: (l, c) => n(h => {
            const m = h.encomendas.find(y => y.userID === l);
            let x = [];
            return m ? x = h.encomendas.map(y => (y.userID === l && (y.product = [...y.product, c]), y)) : x = [...h.encomendas, {
                userID: l,
                product: [c]
            }], ke("encomendas", x), Pe.getState().plugin_page ? ht("addProduct", {
                userID: l,
                product: c
            }, !1) : chrome.runtime.sendMessage({
                action: "addProduct",
                dados: {
                    userID: l,
                    product: c
                }
            }), {
                encomendas: x
            }
        }),
        editProduct: (l, c, h) => n(m => {
            const x = m.encomendas.map(y => {
                if (y.userID === l) {
                    const w = y.product.map(S => S.id === c ? {
                        ...S,
                        ...h
                    } : S);
                    return {
                        ...y,
                        product: w
                    }
                }
                return y
            });
            return ke("encomendas", x), Pe.getState().plugin_page ? ht("editProduct", {
                userID: l,
                productId: c,
                updatedProduct: h
            }, !1) : chrome.runtime.sendMessage({
                action: "editProduct",
                dados: {
                    userID: l,
                    productId: c,
                    updatedProduct: h
                }
            }), {
                encomendas: x
            }
        }),
        removeProduct: (l, c) => n(h => {
            const m = h.encomendas.map(x => {
                if (x.userID === l) {
                    const y = x.product.filter(w => w.id !== c);
                    return {
                        ...x,
                        product: y
                    }
                }
                return x
            });
            return ke("encomendas", m), Pe.getState().plugin_page ? ht("removeProduct", {
                userID: l,
                productId: c
            }, !1) : chrome.runtime.sendMessage({
                action: "removeProduct",
                dados: {
                    userID: l,
                    productId: c
                }
            }), {
                encomendas: m
            }
        }),
        openLink: l => {
            let c = "";
            switch (l.transportadora) {
                case "Correios":
                    c = `https://www.linkcorreios.com.br/?id=${l.codigo}`;
                    break;
                case "Jadlog":
                    c = `https://t.17track.net/pt#nums=${l.codigo}`;
                    break;
                case "Shopee":
                case "Aliexpress":
                case "Gear Best":
                case "China Post":
                    c = `https://www.muambator.com.br/pacotes/${l.codigo}/detalhes/`;
                    break;
                default:
                    c = `https://parcelsapp.com/pt/tracking/${l.codigo}`;
                    break
            }
            c !== "" && window.open(c, "_blank")
        }
    })),
    F0 = async () => {
        const n = await ni("encomendas") || [];
        as.setState({
            encomendas: n
        })
    }, ao = Ke((n, s) => ({
        notifications: [],
        naoVisualizadaTam: 0,
        setNotifications: l => {
            ke("notifications", l), Pe.getState().plugin_page ? ht("setNotifications", {
                notifications: l
            }, !1) : chrome.runtime.sendMessage({
                action: "setNotifications",
                dados: {
                    notifications: l
                }
            });
            const c = l.filter(h => h.timeOut && !h.read);
            return n(() => ({
                notifications: l,
                naoVisualizadaTam: c.length
            })), {
                notifications: l,
                naoVisualizadas: c
            }
        },
        setNaoVisualizadaTam: l => n({
            naoVisualizadaTam: l
        }),
        removeNotification: l => n(c => {
            const h = c.notifications.filter(m => m.id !== l);
            return ke("notifications", h), Pe.getState().plugin_page ? ht("removeNotification", {
                notificationId: l,
                updatedNotifications: h
            }, !1) : chrome.runtime.sendMessage({
                action: "removeNotification",
                dados: {
                    notificationId: l,
                    updatedNotifications: h
                }
            }), {
                notifications: h
            }
        }),
        editNotification: (l, c) => n(h => {
            const m = h.notifications.map(x => x.id === l ? c : x);
            return ke("notifications", m), Pe.getState().plugin_page ? ht("Update_Notificação", {
                notificationId: l,
                updatedNotification: c
            }, !1) : chrome.runtime.sendMessage({
                action: "Update_Notificação",
                dados: {
                    notificationId: l,
                    updatedNotification: c
                }
            }), {
                notifications: m
            }
        })
    })), G0 = async () => {
        const n = await ni("notifications") || [];
        ao.setState({
            notifications: n
        })
    }, {
        setNotifications: Jm,
        setNaoVisualizadaTam: _p
    } = ao.getState();
chrome.runtime.onMessage.addListener(n => {
    switch (n.action) {
        case "Update_Notificação":
            Jm(n.dados.update), _p(n.dados.tam);
            break;
        case "setNotifications":
            chrome.storage.local.get("notifications", l => {
                JSON.stringify(l.notifications) !== JSON.stringify(ao.getState().notifications) && Jm(l.notifications)
            });
            break;
        case "notifications-backup-update":
            G0();
            break;
        case "removeNotification":
            const {
                updatedNotifications: s
            } = n.dados;
            ao.setState({
                notifications: s
            });
            break
    }
});
const md = Ke(n => ({
        contatos: [],
        setContatos: async s => (await ke("contatos", s), Pe.getState().plugin_page ? ht("setContatos", {
            contatos: s
        }, !1) : chrome.runtime.sendMessage({
            action: "setContatos",
            dados: {
                contatos: s
            }
        }), n(() => ({
            contatos: s
        })), {
            contatos: s
        })
    })),
    Y0 = async () => {
        const n = await ni("contatos") || [];
        Ve.Utils("contatoInit", n), md.setState({
            contatos: n
        })
    }, {
        setContatos: jp
    } = md.getState();
chrome.runtime.onMessage.addListener(n => {
    switch (n.action) {
        case "setContatos":
            chrome.storage.local.get("contatos", s => {
                JSON.stringify(s.contatos) !== JSON.stringify(md.getState().contatos) && (jp(s.contatos), Ve.Utils("contatoInit", s.contatos))
            });
            break;
        case "contatos-backup-update":
            Y0();
            break
    }
});

function X0(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M12 9v4"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M12 16h.01"
            },
            child: []
        }]
    })(n)
}

function kp(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M14 3v4a1 1 0 0 0 1 1h4"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M14 11h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M12 17v1m0 -8v1"
            },
            child: []
        }]
    })(n)
}

function zp(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M12 19h-7a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v3.5"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M16 19h6"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M19 16v6"
            },
            child: []
        }]
    })(n)
}

function P0(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M4 4l6 0"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M14 4l6 0"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M4 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M14 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"
            },
            child: []
        }]
    })(n)
}

function Dp(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M8 9h8"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M8 13h6"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M12 21l-3 -3h-3a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M16 22l5 -5"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M21 21.5v-4.5h-4.5"
            },
            child: []
        }]
    })(n)
}

function b4(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M3 21l2.5 -2.5"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M18.5 5.5l2.5 -2.5"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M10 11l-2 2"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M13 14l-2 2"
            },
            child: []
        }]
    })(n)
}

function V0(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"
            },
            child: []
        }]
    })(n)
}

function x4(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M3 19c3.333 -2 5 -4 5 -6c0 -3 -1 -3 -2 -3s-2.032 1.085 -2 3c.034 2.048 1.658 2.877 2.5 4c1.5 2 2.5 2.5 3.5 1c.667 -1 1.167 -1.833 1.5 -2.5c1 2.333 2.333 3.5 4 3.5h2.5"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M16 7h4"
            },
            child: []
        }]
    })(n)
}
const ma = Ke((n, s) => ({
        agendamentos: [],
        agendamentosNaoDisparados: [],
        sendAfterWhatsAppOpens: !1,
        buttonActive: !1,
        loadStates: !1,
        setButtonActive: l => {
            s().buttonActive !== l && (Pe.getState().plugin_page ? ht("set-active-button", l, !1) : chrome.runtime.sendMessage({
                action: "set-active-button",
                dados: l
            }), n({
                buttonActive: l
            }))
        },
        setSendAfterWhatsAppOpens: l => {
            s().sendAfterWhatsAppOpens === l || l === void 0 || l === null || (ke("sendAfterWhatsAppOpens", l), Pe.getState().plugin_page ? ht("update-send-whats-open", {
                value: l
            }, !1) : chrome.runtime.sendMessage({
                action: "update-send-whats-open",
                dados: {
                    value: l
                }
            }), n({
                sendAfterWhatsAppOpens: l
            }))
        },
        addAgendamento: l => n(c => {
            const h = [...c.agendamentos, l];
            return ke("agendamentos", h), Pe.getState().plugin_page ? ht("addAgendamento", l, !1) : chrome.runtime.sendMessage({
                action: "addAgendamento",
                dados: l
            }), {
                agendamentos: h
            }
        }),
        editAgendamento: (l, c) => n(h => {
            let m, x = h.agendamentosNaoDisparados;
            c === "agendamento" ? (m = h.agendamentos.map(w => w.id === l.id ? {
                ...l
            } : w), ke("agendamentos", m)) : c === "relatorio" && (x = h.agendamentosNaoDisparados.filter(w => w.id !== l.id), m = [...h.agendamentos, {
                ...l,
                status: "enviado",
                id: Si()
            }], ke("agendamentosNaoDisparados", x), ke("agendamentos", m));
            const y = {
                editedAgen: l,
                type: c
            };
            return Pe.getState().plugin_page ? ht("editAgendamento", y, !0) : chrome.runtime.sendMessage({
                action: "editAgendamento",
                dados: y
            }), {
                agendamentos: m,
                agendamentosNaoDisparados: x ?? h.agendamentosNaoDisparados
            }
        }),
        removeAgendamento: (l, c) => {
            const h = Ce.getState().language,
                m = () => {
                    if (c === "agendamento") {
                        const y = s().agendamentos.filter(w => w.id !== l);
                        ke("agendamentos", y), n({
                            agendamentos: y
                        }), xe({
                            type: "Success",
                            message: h.agendamento_Notif_rm,
                            position: "top-right"
                        })
                    } else if (c === "relatorio") {
                        const y = s().agendamentosNaoDisparados.filter(w => w.id !== l);
                        ke("agendamentosNaoDisparados", y), n({
                            agendamentosNaoDisparados: y
                        }), xe({
                            type: "Success",
                            message: h.rel_notify_rm,
                            position: "top-right"
                        })
                    }
                    const x = {
                        id: l,
                        type: c
                    };
                    Pe.getState().plugin_page ? ht("agendamento-remove", x, !1) : chrome.runtime.sendMessage({
                        action: "agendamento-remove",
                        dados: x
                    })
                };
            Nf({
                icon: r.jsx(X0, {
                    className: "text-[var(--primaria)]",
                    size: 22
                }),
                content: h.agenRemoveConfirm,
                confirmText: h.confirm,
                submit: () => m()
            })
        },
        openUserChat: l => {
            l && (Ve.Chat("openChatBottom", l), kt.getState().close(), Pe.getState().plugin_page ? ht("openUserChat", l, !1) : chrome.runtime.sendMessage({
                action: "openUserChat",
                dados: l
            }))
        }
    })),
    Z0 = async () => {
        Pe.getState().plugin_page && ht("get-send-whats-open", {}, !0);
        const n = await ni("agendamentos") || [],
            s = await ni("agendamentosNaoDisparados") || [],
            l = await ni("sendAfterWhatsAppOpens") || !1;
        ma.setState({
            agendamentos: n,
            agendamentosNaoDisparados: s,
            sendAfterWhatsAppOpens: l,
            loadStates: !0
        })
    };
chrome.runtime.onMessage.addListener(async n => {
    switch (n.action) {
        case "agendamentos-backup-update":
            Z0();
            break;
        case "agendamento-remove":
            if (n.dados.type === "agendamento") {
                const l = ma.getState().agendamentos.filter(c => c.id !== n.dados.id);
                ma.setState({
                    agendamentos: l
                })
            } else if (n.dados.type === "relatorio") {
                const l = ma.getState().agendamentosNaoDisparados.filter(c => c.id !== n.dados.id);
                ma.setState({
                    agendamentosNaoDisparados: l
                })
            }
            break;
        case "addAgendamento":
            ma.setState({
                agendamentos: [...ma.getState().agendamentos, n.dados]
            });
            break;
        case "editAgendamento":
            if (n.dados.type === "agendamento") {
                const l = ma.getState().agendamentos.map(c => c.id === n.dados.editedAgen.id ? {
                    ...n.dados.editedAgen
                } : c);
                ma.setState({
                    agendamentos: l
                })
            } else if (n.dados.type === "relatorio") {
                const l = ma.getState().agendamentosNaoDisparados.filter(m => m.id !== n.dados.editedAgen.id),
                    h = [...ma.getState().agendamentos, {
                        ...n.dados.editedAgen,
                        status: "enviado"
                    }];
                ma.setState({
                    agendamentos: h,
                    agendamentosNaoDisparados: l
                })
            }
            break;
        case "agendamento-dispart":
            let s = ma.getState().agendamentos;
            n.dados.map(l => {
                l.recorrencia.length == 0 ? s = s.filter(c => c.id !== l.id) : s = s.map(c => (c.id === l.id && (c.data = l.data, c.recorrencia = l.recorrencia), c))
            }), ma.setState({
                agendamentos: s
            });
            break;
        case "update-send-whats-open":
            n.dados.value !== void 0 && ma.getState().setSendAfterWhatsAppOpens(n.dados.value);
            break;
        case "get-send-whats-open":
            chrome.runtime.sendMessage({
                action: "update-send-whats-open",
                dados: {
                    value: ma.getState().sendAfterWhatsAppOpens
                }
            });
            break;
        case "set-active-button":
            ma.getState().setButtonActive(n.dados);
            break;
        case "send-agendamento":
            ma.setState({
                agendamentosNaoDisparados: n.dados
            });
            break;
        case "openUserChat":
            Ve.Chat("openChatBottom", n.dados), kt.getState().close();
            break
    }
});
const Lp = () => {
        const {
            data: n
        } = Gt.getState();
        return n.columns.filter(s => s.id !== "Inbox")
    },
    uf = Ke(n => ({
        inbox: {
            id: "Inbox",
            index: 9999,
            name: "Inbox",
            cards: [],
            is_inbox: !0,
            color: "var(--primaria)"
        },
        getInbox: async s => {
            const {
                ativeCRM: l
            } = Gt.getState(), c = s || Lp(), {
                setInbox: h
            } = Gt.getState();
            let m = await Ve.Chat("List", {
                type: "all",
                activeLid: !0
            });
            m = m.map(S => ({
                ...S,
                id: S.id.replaceAll("@c.us", "").replaceAll("@g.us", "")
            }));
            const x = m.map(S => ({
                    id: S.id
                })),
                y = new Set(c.flatMap(S => S.cards.map(R => R.id))),
                w = x.filter(S => !y.has(S.id));
            n(S => ({
                inbox: {
                    ...S.inbox,
                    cards: w
                }
            })), h(w)
        }
    }));
chrome.runtime.onMessage.addListener(n => {
    (n.action === "update-inbox" || n.action === "chat.new_message") && uf.getState().getInbox()
});
chrome.runtime.onMessage.addListener(n => {
    switch (n.action) {
        case "updateActivePerfil":
            const {
                activePerfil: s, perfil: l
            } = Ja.getState(), {
                updateCard: c
            } = Fa.getState(), {
                updatePerfil: h
            } = n.dados, m = l.filter(y => y.userID !== h.userID), x = [h, ...m];
            s.userID === h.userID ? Ja.setState({
                activePerfil: h,
                perfil: x
            }) : Ja.setState({
                perfil: x
            }), setTimeout(() => c(h.userID), 600);
            break;
        case "BackupPerfil":
            (async () => {
                const y = await ni("perfil");
                Ja.setState({
                    perfil: y
                })
            })();
            break
    }
});
const qm = {
    cargo: "",
    cidade: "",
    estado: "",
    dataNascimento: "",
    email: "",
    empresa: "",
    entrada: "",
    observacoes: "",
    origemLead: "",
    produtos: [],
    saida: "",
    sexo: "",
    valNegocio: [],
    idioma: "",
    userID: ""
};
let _h = null;
const Ja = Ke()(n => ({
    perfil: [],
    activePerfil: qm,
    activeUser: {
        picture: "",
        labels: []
    },
    setActiveUser: async ({
        id: s,
        labels: l
    }) => {
        const c = await Ve.Contact("getProfilePictureUrl", s.user),
            m = (await Ve.Labels("getAllLabels")).filter(x => l.includes(x.id));
        n({
            activeUser: {
                picture: c,
                labels: m
            }
        })
    },
    setActivePerfil: s => n(l => {
        s = s.replace("@c.us", "").replace("@g.us", "");
        const c = l.perfil.find(h => h.userID === s);
        return c ? {
            activePerfil: c
        } : {
            activePerfil: {
                ...qm,
                userID: s
            }
        }
    }),
    updateActivePerfil: (s, l) => {
        const {
            activePerfil: c
        } = Ja.getState(), {
            updateCard: h
        } = Fa.getState(), m = {
            ...c,
            [s]: l
        };
        n({
            activePerfil: m
        }), _h && clearTimeout(_h), _h = setTimeout(async () => {
            if (await Yn("perfilDoContato") === !0) return;
            const {
                perfil: x
            } = Ja.getState(), y = {
                ...c,
                [s]: l
            }, w = x.filter(R => R.userID !== c.userID), S = [y, ...w];
            ke("perfil", S), Pe.getState().plugin_page ? ht("updateActivePerfil", {
                updatePerfil: y
            }, !1) : chrome.runtime.sendMessage({
                action: "updateActivePerfil",
                dados: {
                    updatePerfil: y
                }
            }), n({
                perfil: S
            }), setTimeout(() => h(y.userID), 600)
        }, 1e3)
    },
    getValorNegocio: () => {
        const {
            activePerfil: s
        } = Ja.getState();
        let l = 0;
        if (s.valNegocio)
            for (let c of s.valNegocio) l += parseFloat(c.valor);
        return l.toLocaleString("pt-BR", {
            style: "currency",
            currency: "BRL"
        })
    }
}));
(async () => {
    const n = await ni("perfil");
    Ja.setState({
        perfil: n
    })
})();
const Fa = Ke((n, s) => ({
        cards: [],
        loadingCards: new Set,
        getCard: l => {
            const {
                cards: c,
                extractCard: h,
                loadingCards: m
            } = s(), x = c.find(y => y.id === l);
            return x || (m.has(l) || (n(y => ({
                loadingCards: new Set(y.loadingCards).add(l)
            })), h(l)), {
                id: l,
                name: "Aguarde...",
                picture: "",
                labels: [],
                valNegocio: [],
                entrada: "",
                lastMessage: {
                    text: "",
                    timestamp: 0,
                    type: ""
                },
                unreadMessages: 0,
                get_date: Date.now()
            })
        },
        extractCard: async l => {
            const {
                perfil: c
            } = Ja.getState();
            try {
                const h = await Ve.Utils("get-card", l),
                    m = c.find(y => y.userID === l),
                    x = {
                        id: l,
                        name: h.name,
                        picture: h.picture,
                        labels: h.labels,
                        valNegocio: m ? m.valNegocio : [],
                        entrada: m ? m.entrada : "",
                        lastMessage: h.lastMessage,
                        unreadMessages: h.unreadMessages,
                        get_date: Date.now()
                    };
                n(y => {
                    const w = y.cards.findIndex(A => A.id === l),
                        S = [...y.cards];
                    w !== -1 ? S[w] = x : S.unshift(x);
                    const R = new Set(y.loadingCards);
                    return R.delete(l), to("useViewCard", "cards", [S]), {
                        cards: S,
                        loadingCards: R
                    }
                })
            } catch (h) {
                console.error(`Erro ao extrair card: ${l}`, h), n(m => {
                    const x = new Set(m.loadingCards);
                    return x.delete(l), {
                        loadingCards: x
                    }
                })
            }
        },
        updateCard: l => {
            const {
                extractCard: c,
                loadingCards: h
            } = s(), m = l.replace(/@(.*)/, "");
            h.has(m) || (n(x => ({
                loadingCards: new Set(x.loadingCards).add(m)
            })), c(m))
        }
    })),
    Up = (n, s) => !(Math.abs(n - s) > 432e5);
(async () => {
    const n = await wf("useViewCard", "cards");
    if (n && n[0] && n[0][0]) {
        const s = n[0][0],
            l = Date.now(),
            c = [];
        for (let h of s) Up(l, h.get_date) && c.push(h);
        Fa.setState({
            cards: c
        })
    }
})();
chrome.runtime.onMessage.addListener(({
    action: n,
    model: s,
    dados: l
}) => {
    if (n === "chat.update_label") {
        const c = JSON.parse(s);
        Fa.getState().updateCard(c.chat.id)
    }
    if (n === "chat.new_message") {
        const c = JSON.parse(s);
        Fa.getState().updateCard(c.from)
    }
    if (n === "chat.presence_change") {
        const c = JSON.parse(s);
        Fa.getState().updateCard(c.id)
    }
    n === "contatoSave" && setTimeout(() => Fa.getState().updateCard(l.id), 3e3)
});

function Bp(n, s) {
    const l = new Set(s.map(c => c.id));
    return n.filter(c => !l.has(c.id))
}
const mg = () => {
    const {
        data: n
    } = Gt.getState(), {
        cards: s,
        getCard: l
    } = Fa.getState(), c = n.columns.flatMap(m => m.cards), h = Bp(c, s);
    if (h.length !== 0) {
        const m = h.slice(0, 20);
        for (const x of m) l(x.id);
        setTimeout(mg, 5e3)
    }
};
setTimeout(() => mg(), 15e3);
const Gt = Ke((n, s) => {
        let l = null;
        return {
            data: {
                columns: []
            },
            setData: c => n({
                data: c
            }),
            setInbox: c => n(h => ({
                data: {
                    columns: h.data.columns.map(m => m.id === "Inbox" ? {
                        ...m,
                        cards: c
                    } : m)
                }
            })),
            ativeCRM: "Abas",
            setAtiveCRM: c => {
                const {
                    abas: h,
                    etiquetas: m,
                    crm: x
                } = s();
                switch (localStorage.setItem("crm", c), n({
                        ativeCRM: c
                    }), c) {
                    case "Abas":
                        h();
                        break;
                    case "Etiquetas":
                        m();
                        break;
                    default:
                        x();
                        break
                }
                setTimeout(mg, 2500)
            },
            abas: () => {
                l && (l(), l = null);
                const c = h => {
                    const {
                        setData: m
                    } = s(), {
                        inbox: x,
                        getInbox: y
                    } = uf.getState(), w = h.filter(S => !S.hide).map((S, R) => ({
                        id: S.id,
                        index: R,
                        name: S.tag,
                        cards: S.chats.map(A => ({
                            id: A.id
                        })),
                        is_inbox: !1,
                        color: "var(--primaria)"
                    }));
                    m({
                        columns: [x, ...w]
                    }), y(w)
                };
                (() => {
                    const {
                        userTabs: h
                    } = et.getState();
                    c(h)
                })(), l = et.subscribe(({
                    userTabs: h
                }) => c(h))
            },
            etiquetas: () => {
                l && (l(), l = null);
                const c = async () => {
                    const w = au.getState().orderLabels,
                        S = await Ve.Labels("getAllLabels"),
                        R = S.map(O => O.id),
                        _ = [...w.filter(O => R.includes(O)), ...R.filter(O => !w.includes(O))];
                    return w.length > 0 && JSON.stringify(_) !== JSON.stringify(w) && gg(_), S.sort((O, k) => w.indexOf(O.id) - w.indexOf(k.id))
                }, h = async () => {
                    const {
                        setData: w
                    } = s(), {
                        inbox: S,
                        getInbox: R
                    } = uf.getState(), A = await c();
                    let _ = {};
                    for (let k = 0; k < A.length; k++) {
                        let U = await Ve.Contact("List", {
                            type: "withLabels",
                            id: A[k].id,
                            activeLid: !0
                        });
                        U = U.map(V => ({
                            ...V,
                            id: V.id.replaceAll("@c.us", "").replaceAll("@g.us", "")
                        })), _[A[k].id] = U
                    }
                    const O = A.map((k, U) => ({
                        id: k.id,
                        index: U,
                        name: k.name,
                        cards: _[k.id] ? _[k.id] : [],
                        is_inbox: !1,
                        color: k.hexColor
                    }));
                    w({
                        columns: [S, ...O]
                    }), R(O)
                };
                h();
                const m = setInterval(h, 1e4),
                    x = w => {
                        w.action === "chat.update_label" && h()
                    };
                chrome.runtime.onMessage.addListener(x);
                let y = au.subscribe(() => {
                    h()
                });
                l = () => {
                    m && clearInterval(m), chrome.runtime.onMessage.removeListener(x), y && (y(), y = null)
                }
            },
            crm: () => {
                l && (l(), l = null);
                const c = h => {
                    const {
                        setData: m
                    } = s(), {
                        ativeCRM: x
                    } = s(), {
                        inbox: y,
                        getInbox: w
                    } = uf.getState(), S = h.find(A => A.id === x);
                    if (!S) return;
                    const R = S.list.map((A, _) => ({
                        id: A.id,
                        index: _,
                        name: A.name,
                        cards: A.chats.map(O => ({
                            id: O.id
                        })),
                        is_inbox: !1,
                        color: A.hexColor
                    }));
                    m({
                        columns: [y, ...R]
                    }), w(R)
                };
                (() => {
                    const {
                        crm: h
                    } = ut.getState();
                    c(h)
                })(), l = ut.subscribe(({
                    crm: h
                }) => c(h))
            }
        }
    }),
    Hp = () => {
        const n = localStorage.getItem("crm") || "Abas";
        Gt.getState().setAtiveCRM(n)
    };
pp();
B0();
H0();
F0();
G0();
Y0();
Z0();
tp();
Hp();
const Fp = n => {
    const s = ut.getState().crm,
        l = Gt.getState().setAtiveCRM,
        c = Pe.getState().isBusiness;
    if (!n.altKey && !n.metaKey) return;
    const m = {
        1: () => l("Abas"),
        2: () => c && l("Etiquetas"),
        3: () => s.length >= 1 && l(s[0].id),
        4: () => s.length >= 2 && l(s[1].id),
        5: () => s.length >= 3 && l(s[2].id),
        6: () => s.length >= 4 && l(s[3].id),
        7: () => s.length >= 5 && l(s[4].id),
        8: () => s.length >= 6 && l(s[5].id),
        9: () => s.length >= 7 && l(s[6].id)
    } [n.key];
    m && m()
};
document.addEventListener("keydown", Fp);
var jh = {
        exports: {}
    },
    ad = {},
    kh = {
        exports: {}
    },
    zh = {};
/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var $m;

function Gp() {
    return $m || ($m = 1, function(n) {
        function s(F, ee) {
            var Me = F.length;
            F.push(ee);
            e: for (; 0 < Me;) {
                var ct = Me - 1 >>> 1,
                    oe = F[ct];
                if (0 < h(oe, ee)) F[ct] = ee, F[Me] = oe, Me = ct;
                else break e
            }
        }

        function l(F) {
            return F.length === 0 ? null : F[0]
        }

        function c(F) {
            if (F.length === 0) return null;
            var ee = F[0],
                Me = F.pop();
            if (Me !== ee) {
                F[0] = Me;
                e: for (var ct = 0, oe = F.length, ae = oe >>> 1; ct < ae;) {
                    var Aa = 2 * (ct + 1) - 1,
                        xt = F[Aa],
                        Re = Aa + 1,
                        Qt = F[Re];
                    if (0 > h(xt, Me)) Re < oe && 0 > h(Qt, xt) ? (F[ct] = Qt, F[Re] = Me, ct = Re) : (F[ct] = xt, F[Aa] = Me, ct = Aa);
                    else if (Re < oe && 0 > h(Qt, Me)) F[ct] = Qt, F[Re] = Me, ct = Re;
                    else break e
                }
            }
            return ee
        }

        function h(F, ee) {
            var Me = F.sortIndex - ee.sortIndex;
            return Me !== 0 ? Me : F.id - ee.id
        }
        if (n.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
            var m = performance;
            n.unstable_now = function() {
                return m.now()
            }
        } else {
            var x = Date,
                y = x.now();
            n.unstable_now = function() {
                return x.now() - y
            }
        }
        var w = [],
            S = [],
            R = 1,
            A = null,
            _ = 3,
            O = !1,
            k = !1,
            U = !1,
            V = typeof setTimeout == "function" ? setTimeout : null,
            te = typeof clearTimeout == "function" ? clearTimeout : null,
            $ = typeof setImmediate < "u" ? setImmediate : null;

        function ve(F) {
            for (var ee = l(S); ee !== null;) {
                if (ee.callback === null) c(S);
                else if (ee.startTime <= F) c(S), ee.sortIndex = ee.expirationTime, s(w, ee);
                else break;
                ee = l(S)
            }
        }

        function fe(F) {
            if (U = !1, ve(F), !k)
                if (l(w) !== null) k = !0, Be();
                else {
                    var ee = l(S);
                    ee !== null && Ae(fe, ee.startTime - F)
                }
        }
        var Se = !1,
            be = -1,
            vt = 5,
            De = -1;

        function me() {
            return !(n.unstable_now() - De < vt)
        }

        function Le() {
            if (Se) {
                var F = n.unstable_now();
                De = F;
                var ee = !0;
                try {
                    e: {
                        k = !1,
                        U && (U = !1, te(be), be = -1),
                        O = !0;
                        var Me = _;
                        try {
                            t: {
                                for (ve(F), A = l(w); A !== null && !(A.expirationTime > F && me());) {
                                    var ct = A.callback;
                                    if (typeof ct == "function") {
                                        A.callback = null, _ = A.priorityLevel;
                                        var oe = ct(A.expirationTime <= F);
                                        if (F = n.unstable_now(), typeof oe == "function") {
                                            A.callback = oe, ve(F), ee = !0;
                                            break t
                                        }
                                        A === l(w) && c(w), ve(F)
                                    } else c(w);
                                    A = l(w)
                                }
                                if (A !== null) ee = !0;
                                else {
                                    var ae = l(S);
                                    ae !== null && Ae(fe, ae.startTime - F), ee = !1
                                }
                            }
                            break e
                        }
                        finally {
                            A = null, _ = Me, O = !1
                        }
                        ee = void 0
                    }
                }
                finally {
                    ee ? Mt() : Se = !1
                }
            }
        }
        var Mt;
        if (typeof $ == "function") Mt = function() {
            $(Le)
        };
        else if (typeof MessageChannel < "u") {
            var zt = new MessageChannel,
                _e = zt.port2;
            zt.port1.onmessage = Le, Mt = function() {
                _e.postMessage(null)
            }
        } else Mt = function() {
            V(Le, 0)
        };

        function Be() {
            Se || (Se = !0, Mt())
        }

        function Ae(F, ee) {
            be = V(function() {
                F(n.unstable_now())
            }, ee)
        }
        n.unstable_IdlePriority = 5, n.unstable_ImmediatePriority = 1, n.unstable_LowPriority = 4, n.unstable_NormalPriority = 3, n.unstable_Profiling = null, n.unstable_UserBlockingPriority = 2, n.unstable_cancelCallback = function(F) {
            F.callback = null
        }, n.unstable_continueExecution = function() {
            k || O || (k = !0, Be())
        }, n.unstable_forceFrameRate = function(F) {
            0 > F || 125 < F ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : vt = 0 < F ? Math.floor(1e3 / F) : 5
        }, n.unstable_getCurrentPriorityLevel = function() {
            return _
        }, n.unstable_getFirstCallbackNode = function() {
            return l(w)
        }, n.unstable_next = function(F) {
            switch (_) {
                case 1:
                case 2:
                case 3:
                    var ee = 3;
                    break;
                default:
                    ee = _
            }
            var Me = _;
            _ = ee;
            try {
                return F()
            } finally {
                _ = Me
            }
        }, n.unstable_pauseExecution = function() {}, n.unstable_requestPaint = function() {}, n.unstable_runWithPriority = function(F, ee) {
            switch (F) {
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                    break;
                default:
                    F = 3
            }
            var Me = _;
            _ = F;
            try {
                return ee()
            } finally {
                _ = Me
            }
        }, n.unstable_scheduleCallback = function(F, ee, Me) {
            var ct = n.unstable_now();
            switch (typeof Me == "object" && Me !== null ? (Me = Me.delay, Me = typeof Me == "number" && 0 < Me ? ct + Me : ct) : Me = ct, F) {
                case 1:
                    var oe = -1;
                    break;
                case 2:
                    oe = 250;
                    break;
                case 5:
                    oe = 1073741823;
                    break;
                case 4:
                    oe = 1e4;
                    break;
                default:
                    oe = 5e3
            }
            return oe = Me + oe, F = {
                id: R++,
                callback: ee,
                priorityLevel: F,
                startTime: Me,
                expirationTime: oe,
                sortIndex: -1
            }, Me > ct ? (F.sortIndex = Me, s(S, F), l(w) === null && F === l(S) && (U ? (te(be), be = -1) : U = !0, Ae(fe, Me - ct))) : (F.sortIndex = oe, s(w, F), k || O || (k = !0, Be())), F
        }, n.unstable_shouldYield = me, n.unstable_wrapCallback = function(F) {
            var ee = _;
            return function() {
                var Me = _;
                _ = ee;
                try {
                    return F.apply(this, arguments)
                } finally {
                    _ = Me
                }
            }
        }
    }(zh)), zh
}
var ev;

function Yp() {
    return ev || (ev = 1, kh.exports = Gp()), kh.exports
}
/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var tv;

function Xp() {
    if (tv) return ad;
    tv = 1;
    var n = Yp(),
        s = og(),
        l = ug();

    function c(e) {
        var t = "https://react.dev/errors/" + e;
        if (1 < arguments.length) {
            t += "?args[]=" + encodeURIComponent(arguments[1]);
            for (var a = 2; a < arguments.length; a++) t += "&args[]=" + encodeURIComponent(arguments[a])
        }
        return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
    }

    function h(e) {
        return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11)
    }
    var m = Symbol.for("react.element"),
        x = Symbol.for("react.transitional.element"),
        y = Symbol.for("react.portal"),
        w = Symbol.for("react.fragment"),
        S = Symbol.for("react.strict_mode"),
        R = Symbol.for("react.profiler"),
        A = Symbol.for("react.provider"),
        _ = Symbol.for("react.consumer"),
        O = Symbol.for("react.context"),
        k = Symbol.for("react.forward_ref"),
        U = Symbol.for("react.suspense"),
        V = Symbol.for("react.suspense_list"),
        te = Symbol.for("react.memo"),
        $ = Symbol.for("react.lazy"),
        ve = Symbol.for("react.offscreen"),
        fe = Symbol.for("react.memo_cache_sentinel"),
        Se = Symbol.iterator;

    function be(e) {
        return e === null || typeof e != "object" ? null : (e = Se && e[Se] || e["@@iterator"], typeof e == "function" ? e : null)
    }
    var vt = Symbol.for("react.client.reference");

    function De(e) {
        if (e == null) return null;
        if (typeof e == "function") return e.$$typeof === vt ? null : e.displayName || e.name || null;
        if (typeof e == "string") return e;
        switch (e) {
            case w:
                return "Fragment";
            case y:
                return "Portal";
            case R:
                return "Profiler";
            case S:
                return "StrictMode";
            case U:
                return "Suspense";
            case V:
                return "SuspenseList"
        }
        if (typeof e == "object") switch (e.$$typeof) {
            case O:
                return (e.displayName || "Context") + ".Provider";
            case _:
                return (e._context.displayName || "Context") + ".Consumer";
            case k:
                var t = e.render;
                return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
            case te:
                return t = e.displayName || null, t !== null ? t : De(e.type) || "Memo";
            case $:
                t = e._payload, e = e._init;
                try {
                    return De(e(t))
                } catch {}
        }
        return null
    }
    var me = s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
        Le = Object.assign,
        Mt, zt;

    function _e(e) {
        if (Mt === void 0) try {
            throw Error()
        } catch (a) {
            var t = a.stack.trim().match(/\n( *(at )?)/);
            Mt = t && t[1] || "", zt = -1 < a.stack.indexOf(`
    at`) ? " (<anonymous>)" : -1 < a.stack.indexOf("@") ? "@unknown:0:0" : ""
        }
        return `
` + Mt + e + zt
    }
    var Be = !1;

    function Ae(e, t) {
        if (!e || Be) return "";
        Be = !0;
        var a = Error.prepareStackTrace;
        Error.prepareStackTrace = void 0;
        try {
            var i = {
                DetermineComponentFrameRoot: function() {
                    try {
                        if (t) {
                            var ue = function() {
                                throw Error()
                            };
                            if (Object.defineProperty(ue.prototype, "props", {
                                    set: function() {
                                        throw Error()
                                    }
                                }), typeof Reflect == "object" && Reflect.construct) {
                                try {
                                    Reflect.construct(ue, [])
                                } catch (ne) {
                                    var J = ne
                                }
                                Reflect.construct(e, [], ue)
                            } else {
                                try {
                                    ue.call()
                                } catch (ne) {
                                    J = ne
                                }
                                e.call(ue.prototype)
                            }
                        } else {
                            try {
                                throw Error()
                            } catch (ne) {
                                J = ne
                            }(ue = e()) && typeof ue.catch == "function" && ue.catch(function() {})
                        }
                    } catch (ne) {
                        if (ne && J && typeof ne.stack == "string") return [ne.stack, J.stack]
                    }
                    return [null, null]
                }
            };
            i.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
            var d = Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot, "name");
            d && d.configurable && Object.defineProperty(i.DetermineComponentFrameRoot, "name", {
                value: "DetermineComponentFrameRoot"
            });
            var v = i.DetermineComponentFrameRoot(),
                E = v[0],
                j = v[1];
            if (E && j) {
                var L = E.split(`
`),
                    P = j.split(`
`);
                for (d = i = 0; i < L.length && !L[i].includes("DetermineComponentFrameRoot");) i++;
                for (; d < P.length && !P[d].includes("DetermineComponentFrameRoot");) d++;
                if (i === L.length || d === P.length)
                    for (i = L.length - 1, d = P.length - 1; 1 <= i && 0 <= d && L[i] !== P[d];) d--;
                for (; 1 <= i && 0 <= d; i--, d--)
                    if (L[i] !== P[d]) {
                        if (i !== 1 || d !== 1)
                            do
                                if (i--, d--, 0 > d || L[i] !== P[d]) {
                                    var ie = `
` + L[i].replace(" at new ", " at ");
                                    return e.displayName && ie.includes("<anonymous>") && (ie = ie.replace("<anonymous>", e.displayName)), ie
                                } while (1 <= i && 0 <= d);
                        break
                    }
            }
        } finally {
            Be = !1, Error.prepareStackTrace = a
        }
        return (a = e ? e.displayName || e.name : "") ? _e(a) : ""
    }

    function F(e) {
        switch (e.tag) {
            case 26:
            case 27:
            case 5:
                return _e(e.type);
            case 16:
                return _e("Lazy");
            case 13:
                return _e("Suspense");
            case 19:
                return _e("SuspenseList");
            case 0:
            case 15:
                return e = Ae(e.type, !1), e;
            case 11:
                return e = Ae(e.type.render, !1), e;
            case 1:
                return e = Ae(e.type, !0), e;
            default:
                return ""
        }
    }

    function ee(e) {
        try {
            var t = "";
            do t += F(e), e = e.return; while (e);
            return t
        } catch (a) {
            return `
Error generating stack: ` + a.message + `
` + a.stack
        }
    }

    function Me(e) {
        var t = e,
            a = e;
        if (e.alternate)
            for (; t.return;) t = t.return;
        else {
            e = t;
            do t = e, t.flags & 4098 && (a = t.return), e = t.return; while (e)
        }
        return t.tag === 3 ? a : null
    }

    function ct(e) {
        if (e.tag === 13) {
            var t = e.memoizedState;
            if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated
        }
        return null
    }

    function oe(e) {
        if (Me(e) !== e) throw Error(c(188))
    }

    function ae(e) {
        var t = e.alternate;
        if (!t) {
            if (t = Me(e), t === null) throw Error(c(188));
            return t !== e ? null : e
        }
        for (var a = e, i = t;;) {
            var d = a.return;
            if (d === null) break;
            var v = d.alternate;
            if (v === null) {
                if (i = d.return, i !== null) {
                    a = i;
                    continue
                }
                break
            }
            if (d.child === v.child) {
                for (v = d.child; v;) {
                    if (v === a) return oe(d), e;
                    if (v === i) return oe(d), t;
                    v = v.sibling
                }
                throw Error(c(188))
            }
            if (a.return !== i.return) a = d, i = v;
            else {
                for (var E = !1, j = d.child; j;) {
                    if (j === a) {
                        E = !0, a = d, i = v;
                        break
                    }
                    if (j === i) {
                        E = !0, i = d, a = v;
                        break
                    }
                    j = j.sibling
                }
                if (!E) {
                    for (j = v.child; j;) {
                        if (j === a) {
                            E = !0, a = v, i = d;
                            break
                        }
                        if (j === i) {
                            E = !0, i = v, a = d;
                            break
                        }
                        j = j.sibling
                    }
                    if (!E) throw Error(c(189))
                }
            }
            if (a.alternate !== i) throw Error(c(190))
        }
        if (a.tag !== 3) throw Error(c(188));
        return a.stateNode.current === a ? e : t
    }

    function Aa(e) {
        var t = e.tag;
        if (t === 5 || t === 26 || t === 27 || t === 6) return e;
        for (e = e.child; e !== null;) {
            if (t = Aa(e), t !== null) return t;
            e = e.sibling
        }
        return null
    }
    var xt = Array.isArray,
        Re = l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
        Qt = {
            pending: !1,
            data: null,
            method: null,
            action: null
        },
        Ra = [],
        _l = -1;

    function qa(e) {
        return {
            current: e
        }
    }

    function oa(e) {
        0 > _l || (e.current = Ra[_l], Ra[_l] = null, _l--)
    }

    function We(e, t) {
        _l++, Ra[_l] = e.current, e.current = t
    }
    var An = qa(null),
        He = qa(null),
        dl = qa(null),
        Ni = qa(null);

    function $t(e, t) {
        switch (We(dl, t), We(He, e), We(An, null), e = t.nodeType, e) {
            case 9:
            case 11:
                t = (t = t.documentElement) && (t = t.namespaceURI) ? Cm(t) : 0;
                break;
            default:
                if (e = e === 8 ? t.parentNode : t, t = e.tagName, e = e.namespaceURI) e = Cm(e), t = Em(e, t);
                else switch (t) {
                    case "svg":
                        t = 1;
                        break;
                    case "math":
                        t = 2;
                        break;
                    default:
                        t = 0
                }
        }
        oa(An), We(An, t)
    }

    function Rn() {
        oa(An), oa(He), oa(dl)
    }

    function Pn(e) {
        e.memoizedState !== null && We(Ni, e);
        var t = An.current,
            a = Em(t, e.type);
        t !== a && (We(He, e), We(An, a))
    }

    function Ci(e) {
        He.current === e && (oa(An), oa(He)), Ni.current === e && (oa(Ni), Ju._currentValue = Qt)
    }
    var rs = Object.prototype.hasOwnProperty,
        bn = n.unstable_scheduleCallback,
        Xe = n.unstable_cancelCallback,
        xn = n.unstable_shouldYield,
        ro = n.unstable_requestPaint,
        On = n.unstable_now,
        ya = n.unstable_getCurrentPriorityLevel,
        ss = n.unstable_ImmediatePriority,
        cs = n.unstable_UserBlockingPriority,
        Vn = n.unstable_NormalPriority,
        cc = n.unstable_LowPriority,
        li = n.unstable_IdlePriority,
        ii = n.log,
        iu = n.unstable_setDisableYieldValue,
        Ei = null,
        it = null;

    function so(e) {
        if (it && typeof it.onCommitFiberRoot == "function") try {
            it.onCommitFiberRoot(Ei, e, void 0, (e.current.flags & 128) === 128)
        } catch {}
    }

    function At(e) {
        if (typeof ii == "function" && iu(e), it && typeof it.setStrictMode == "function") try {
            it.setStrictMode(Ei, e)
        } catch {}
    }
    var Wt = Math.clz32 ? Math.clz32 : co,
        oc = Math.log,
        Zn = Math.LN2;

    function co(e) {
        return e >>>= 0, e === 0 ? 32 : 31 - (oc(e) / Zn | 0) | 0
    }
    var dr = 128,
        os = 4194304;

    function jl(e) {
        var t = e & 42;
        if (t !== 0) return t;
        switch (e & -e) {
            case 1:
                return 1;
            case 2:
                return 2;
            case 4:
                return 4;
            case 8:
                return 8;
            case 16:
                return 16;
            case 32:
                return 32;
            case 64:
                return 64;
            case 128:
            case 256:
            case 512:
            case 1024:
            case 2048:
            case 4096:
            case 8192:
            case 16384:
            case 32768:
            case 65536:
            case 131072:
            case 262144:
            case 524288:
            case 1048576:
            case 2097152:
                return e & 4194176;
            case 4194304:
            case 8388608:
            case 16777216:
            case 33554432:
                return e & 62914560;
            case 67108864:
                return 67108864;
            case 134217728:
                return 134217728;
            case 268435456:
                return 268435456;
            case 536870912:
                return 536870912;
            case 1073741824:
                return 0;
            default:
                return e
        }
    }

    function us(e, t) {
        var a = e.pendingLanes;
        if (a === 0) return 0;
        var i = 0,
            d = e.suspendedLanes,
            v = e.pingedLanes,
            E = e.warmLanes;
        e = e.finishedLanes !== 0;
        var j = a & 134217727;
        return j !== 0 ? (a = j & ~d, a !== 0 ? i = jl(a) : (v &= j, v !== 0 ? i = jl(v) : e || (E = j & ~E, E !== 0 && (i = jl(E))))) : (j = a & ~d, j !== 0 ? i = jl(j) : v !== 0 ? i = jl(v) : e || (E = a & ~E, E !== 0 && (i = jl(E)))), i === 0 ? 0 : t !== 0 && t !== i && !(t & d) && (d = i & -i, E = t & -t, d >= E || d === 32 && (E & 4194176) !== 0) ? t : i
    }

    function Qn(e, t) {
        return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0
    }

    function ua(e, t) {
        switch (e) {
            case 1:
            case 2:
            case 4:
            case 8:
                return t + 250;
            case 16:
            case 32:
            case 64:
            case 128:
            case 256:
            case 512:
            case 1024:
            case 2048:
            case 4096:
            case 8192:
            case 16384:
            case 32768:
            case 65536:
            case 131072:
            case 262144:
            case 524288:
            case 1048576:
            case 2097152:
                return t + 5e3;
            case 4194304:
            case 8388608:
            case 16777216:
            case 33554432:
                return -1;
            case 67108864:
            case 134217728:
            case 268435456:
            case 536870912:
            case 1073741824:
                return -1;
            default:
                return -1
        }
    }

    function Oa() {
        var e = dr;
        return dr <<= 1, !(dr & 4194176) && (dr = 128), e
    }

    function Ga() {
        var e = os;
        return os <<= 1, !(os & 62914560) && (os = 4194304), e
    }

    function fr(e) {
        for (var t = [], a = 0; 31 > a; a++) t.push(e);
        return t
    }

    function kl(e, t) {
        e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0)
    }

    function bt(e, t, a, i, d, v) {
        var E = e.pendingLanes;
        e.pendingLanes = a, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= a, e.entangledLanes &= a, e.errorRecoveryDisabledLanes &= a, e.shellSuspendCounter = 0;
        var j = e.entanglements,
            L = e.expirationTimes,
            P = e.hiddenUpdates;
        for (a = E & ~a; 0 < a;) {
            var ie = 31 - Wt(a),
                ue = 1 << ie;
            j[ie] = 0, L[ie] = -1;
            var J = P[ie];
            if (J !== null)
                for (P[ie] = null, ie = 0; ie < J.length; ie++) {
                    var ne = J[ie];
                    ne !== null && (ne.lane &= -536870913)
                }
            a &= ~ue
        }
        i !== 0 && Wn(e, i, 0), v !== 0 && d === 0 && e.tag !== 0 && (e.suspendedLanes |= v & ~(E & ~t))
    }

    function Wn(e, t, a) {
        e.pendingLanes |= t, e.suspendedLanes &= ~t;
        var i = 31 - Wt(t);
        e.entangledLanes |= t, e.entanglements[i] = e.entanglements[i] | 1073741824 | a & 4194218
    }

    function uc(e, t) {
        var a = e.entangledLanes |= t;
        for (e = e.entanglements; a;) {
            var i = 31 - Wt(a),
                d = 1 << i;
            d & t | e[i] & t && (e[i] |= t), a &= ~d
        }
    }

    function ds(e) {
        return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2
    }

    function dc() {
        var e = Re.p;
        return e !== 0 ? e : (e = window.event, e === void 0 ? 32 : Xm(e.type))
    }

    function oo(e, t) {
        var a = Re.p;
        try {
            return Re.p = e, t()
        } finally {
            Re.p = a
        }
    }
    var fl = Math.random().toString(36).slice(2),
        Fe = "__reactFiber$" + fl,
        dt = "__reactProps$" + fl,
        In = "__reactContainer$" + fl,
        Ya = "__reactEvents$" + fl,
        ru = "__reactListeners$" + fl,
        fc = "__reactHandles$" + fl,
        uo = "__reactResources$" + fl,
        Ti = "__reactMarker$" + fl;

    function hc(e) {
        delete e[Fe], delete e[dt], delete e[Ya], delete e[ru], delete e[fc]
    }

    function _n(e) {
        var t = e[Fe];
        if (t) return t;
        for (var a = e.parentNode; a;) {
            if (t = a[In] || a[Fe]) {
                if (a = t.alternate, t.child !== null || a !== null && a.child !== null)
                    for (e = Am(e); e !== null;) {
                        if (a = e[Fe]) return a;
                        e = Am(e)
                    }
                return t
            }
            e = a, a = e.parentNode
        }
        return null
    }

    function St(e) {
        if (e = e[Fe] || e[In]) {
            var t = e.tag;
            if (t === 5 || t === 6 || t === 13 || t === 26 || t === 27 || t === 3) return e
        }
        return null
    }

    function zl(e) {
        var t = e.tag;
        if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;
        throw Error(c(33))
    }

    function hl(e) {
        var t = e[uo];
        return t || (t = e[uo] = {
            hoistableStyles: new Map,
            hoistableScripts: new Map
        }), t
    }

    function pt(e) {
        e[Ti] = !0
    }
    var hr = new Set,
        Mi = {};

    function pn(e, t) {
        Dl(e, t), Dl(e + "Capture", t)
    }

    function Dl(e, t) {
        for (Mi[e] = t, e = 0; e < t.length; e++) hr.add(t[e])
    }
    var Kn = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"),
        fs = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),
        ea = {},
        fo = {};

    function hs(e) {
        return rs.call(fo, e) ? !0 : rs.call(ea, e) ? !1 : fs.test(e) ? fo[e] = !0 : (ea[e] = !0, !1)
    }

    function Ai(e, t, a) {
        if (hs(t))
            if (a === null) e.removeAttribute(t);
            else {
                switch (typeof a) {
                    case "undefined":
                    case "function":
                    case "symbol":
                        e.removeAttribute(t);
                        return;
                    case "boolean":
                        var i = t.toLowerCase().slice(0, 5);
                        if (i !== "data-" && i !== "aria-") {
                            e.removeAttribute(t);
                            return
                        }
                }
                e.setAttribute(t, "" + a)
            }
    }

    function Sa(e, t, a) {
        if (a === null) e.removeAttribute(t);
        else {
            switch (typeof a) {
                case "undefined":
                case "function":
                case "symbol":
                case "boolean":
                    e.removeAttribute(t);
                    return
            }
            e.setAttribute(t, "" + a)
        }
    }

    function $a(e, t, a, i) {
        if (i === null) e.removeAttribute(a);
        else {
            switch (typeof i) {
                case "undefined":
                case "function":
                case "symbol":
                case "boolean":
                    e.removeAttribute(a);
                    return
            }
            e.setAttributeNS(t, a, "" + i)
        }
    }

    function en(e) {
        switch (typeof e) {
            case "bigint":
            case "boolean":
            case "number":
            case "string":
            case "undefined":
                return e;
            case "object":
                return e;
            default:
                return ""
        }
    }

    function gc(e) {
        var t = e.type;
        return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio")
    }

    function ho(e) {
        var t = gc(e) ? "checked" : "value",
            a = Object.getOwnPropertyDescriptor(e.constructor.prototype, t),
            i = "" + e[t];
        if (!e.hasOwnProperty(t) && typeof a < "u" && typeof a.get == "function" && typeof a.set == "function") {
            var d = a.get,
                v = a.set;
            return Object.defineProperty(e, t, {
                configurable: !0,
                get: function() {
                    return d.call(this)
                },
                set: function(E) {
                    i = "" + E, v.call(this, E)
                }
            }), Object.defineProperty(e, t, {
                enumerable: a.enumerable
            }), {
                getValue: function() {
                    return i
                },
                setValue: function(E) {
                    i = "" + E
                },
                stopTracking: function() {
                    e._valueTracker = null, delete e[t]
                }
            }
        }
    }

    function gr(e) {
        e._valueTracker || (e._valueTracker = ho(e))
    }

    function gl(e) {
        if (!e) return !1;
        var t = e._valueTracker;
        if (!t) return !0;
        var a = t.getValue(),
            i = "";
        return e && (i = gc(e) ? e.checked ? "true" : "false" : e.value), e = i, e !== a ? (t.setValue(e), !0) : !1
    }

    function mr(e) {
        if (e = e || (typeof document < "u" ? document : void 0), typeof e > "u") return null;
        try {
            return e.activeElement || e.body
        } catch {
            return e.body
        }
    }
    var su = /[\n"\\]/g;

    function Xa(e) {
        return e.replace(su, function(t) {
            return "\\" + t.charCodeAt(0).toString(16) + " "
        })
    }

    function Ri(e, t, a, i, d, v, E, j) {
        e.name = "", E != null && typeof E != "function" && typeof E != "symbol" && typeof E != "boolean" ? e.type = E : e.removeAttribute("type"), t != null ? E === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + en(t)) : e.value !== "" + en(t) && (e.value = "" + en(t)) : E !== "submit" && E !== "reset" || e.removeAttribute("value"), t != null ? mc(e, E, en(t)) : a != null ? mc(e, E, en(a)) : i != null && e.removeAttribute("value"), d == null && v != null && (e.defaultChecked = !!v), d != null && (e.checked = d && typeof d != "function" && typeof d != "symbol"), j != null && typeof j != "function" && typeof j != "symbol" && typeof j != "boolean" ? e.name = "" + en(j) : e.removeAttribute("name")
    }

    function go(e, t, a, i, d, v, E, j) {
        if (v != null && typeof v != "function" && typeof v != "symbol" && typeof v != "boolean" && (e.type = v), t != null || a != null) {
            if (!(v !== "submit" && v !== "reset" || t != null)) return;
            a = a != null ? "" + en(a) : "", t = t != null ? "" + en(t) : a, j || t === e.value || (e.value = t), e.defaultValue = t
        }
        i = i ?? d, i = typeof i != "function" && typeof i != "symbol" && !!i, e.checked = j ? e.checked : !!i, e.defaultChecked = !!i, E != null && typeof E != "function" && typeof E != "symbol" && typeof E != "boolean" && (e.name = E)
    }

    function mc(e, t, a) {
        t === "number" && mr(e.ownerDocument) === e || e.defaultValue === "" + a || (e.defaultValue = "" + a)
    }

    function ri(e, t, a, i) {
        if (e = e.options, t) {
            t = {};
            for (var d = 0; d < a.length; d++) t["$" + a[d]] = !0;
            for (a = 0; a < e.length; a++) d = t.hasOwnProperty("$" + e[a].value), e[a].selected !== d && (e[a].selected = d), d && i && (e[a].defaultSelected = !0)
        } else {
            for (a = "" + en(a), t = null, d = 0; d < e.length; d++) {
                if (e[d].value === a) {
                    e[d].selected = !0, i && (e[d].defaultSelected = !0);
                    return
                }
                t !== null || e[d].disabled || (t = e[d])
            }
            t !== null && (t.selected = !0)
        }
    }

    function Ll(e, t, a) {
        if (t != null && (t = "" + en(t), t !== e.value && (e.value = t), a == null)) {
            e.defaultValue !== t && (e.defaultValue = t);
            return
        }
        e.defaultValue = a != null ? "" + en(a) : ""
    }

    function vr(e, t, a, i) {
        if (t == null) {
            if (i != null) {
                if (a != null) throw Error(c(92));
                if (xt(i)) {
                    if (1 < i.length) throw Error(c(93));
                    i = i[0]
                }
                a = i
            }
            a == null && (a = ""), t = a
        }
        a = en(t), e.defaultValue = a, i = e.textContent, i === a && i !== "" && i !== null && (e.value = i)
    }

    function Oi(e, t) {
        if (t) {
            var a = e.firstChild;
            if (a && a === e.lastChild && a.nodeType === 3) {
                a.nodeValue = t;
                return
            }
        }
        e.textContent = t
    }
    var gs = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));

    function br(e, t, a) {
        var i = t.indexOf("--") === 0;
        a == null || typeof a == "boolean" || a === "" ? i ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : i ? e.setProperty(t, a) : typeof a != "number" || a === 0 || gs.has(t) ? t === "float" ? e.cssFloat = a : e[t] = ("" + a).trim() : e[t] = a + "px"
    }

    function mo(e, t, a) {
        if (t != null && typeof t != "object") throw Error(c(62));
        if (e = e.style, a != null) {
            for (var i in a) !a.hasOwnProperty(i) || t != null && t.hasOwnProperty(i) || (i.indexOf("--") === 0 ? e.setProperty(i, "") : i === "float" ? e.cssFloat = "" : e[i] = "");
            for (var d in t) i = t[d], t.hasOwnProperty(d) && a[d] !== i && br(e, d, i)
        } else
            for (var v in t) t.hasOwnProperty(v) && br(e, v, t[v])
    }

    function vc(e) {
        if (e.indexOf("-") === -1) return !1;
        switch (e) {
            case "annotation-xml":
            case "color-profile":
            case "font-face":
            case "font-face-src":
            case "font-face-uri":
            case "font-face-format":
            case "font-face-name":
            case "missing-glyph":
                return !1;
            default:
                return !0
        }
    }
    var ml = new Map([
            ["acceptCharset", "accept-charset"],
            ["htmlFor", "for"],
            ["httpEquiv", "http-equiv"],
            ["crossOrigin", "crossorigin"],
            ["accentHeight", "accent-height"],
            ["alignmentBaseline", "alignment-baseline"],
            ["arabicForm", "arabic-form"],
            ["baselineShift", "baseline-shift"],
            ["capHeight", "cap-height"],
            ["clipPath", "clip-path"],
            ["clipRule", "clip-rule"],
            ["colorInterpolation", "color-interpolation"],
            ["colorInterpolationFilters", "color-interpolation-filters"],
            ["colorProfile", "color-profile"],
            ["colorRendering", "color-rendering"],
            ["dominantBaseline", "dominant-baseline"],
            ["enableBackground", "enable-background"],
            ["fillOpacity", "fill-opacity"],
            ["fillRule", "fill-rule"],
            ["floodColor", "flood-color"],
            ["floodOpacity", "flood-opacity"],
            ["fontFamily", "font-family"],
            ["fontSize", "font-size"],
            ["fontSizeAdjust", "font-size-adjust"],
            ["fontStretch", "font-stretch"],
            ["fontStyle", "font-style"],
            ["fontVariant", "font-variant"],
            ["fontWeight", "font-weight"],
            ["glyphName", "glyph-name"],
            ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
            ["glyphOrientationVertical", "glyph-orientation-vertical"],
            ["horizAdvX", "horiz-adv-x"],
            ["horizOriginX", "horiz-origin-x"],
            ["imageRendering", "image-rendering"],
            ["letterSpacing", "letter-spacing"],
            ["lightingColor", "lighting-color"],
            ["markerEnd", "marker-end"],
            ["markerMid", "marker-mid"],
            ["markerStart", "marker-start"],
            ["overlinePosition", "overline-position"],
            ["overlineThickness", "overline-thickness"],
            ["paintOrder", "paint-order"],
            ["panose-1", "panose-1"],
            ["pointerEvents", "pointer-events"],
            ["renderingIntent", "rendering-intent"],
            ["shapeRendering", "shape-rendering"],
            ["stopColor", "stop-color"],
            ["stopOpacity", "stop-opacity"],
            ["strikethroughPosition", "strikethrough-position"],
            ["strikethroughThickness", "strikethrough-thickness"],
            ["strokeDasharray", "stroke-dasharray"],
            ["strokeDashoffset", "stroke-dashoffset"],
            ["strokeLinecap", "stroke-linecap"],
            ["strokeLinejoin", "stroke-linejoin"],
            ["strokeMiterlimit", "stroke-miterlimit"],
            ["strokeOpacity", "stroke-opacity"],
            ["strokeWidth", "stroke-width"],
            ["textAnchor", "text-anchor"],
            ["textDecoration", "text-decoration"],
            ["textRendering", "text-rendering"],
            ["transformOrigin", "transform-origin"],
            ["underlinePosition", "underline-position"],
            ["underlineThickness", "underline-thickness"],
            ["unicodeBidi", "unicode-bidi"],
            ["unicodeRange", "unicode-range"],
            ["unitsPerEm", "units-per-em"],
            ["vAlphabetic", "v-alphabetic"],
            ["vHanging", "v-hanging"],
            ["vIdeographic", "v-ideographic"],
            ["vMathematical", "v-mathematical"],
            ["vectorEffect", "vector-effect"],
            ["vertAdvY", "vert-adv-y"],
            ["vertOriginX", "vert-origin-x"],
            ["vertOriginY", "vert-origin-y"],
            ["wordSpacing", "word-spacing"],
            ["writingMode", "writing-mode"],
            ["xmlnsXlink", "xmlns:xlink"],
            ["xHeight", "x-height"]
        ]),
        bc = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;

    function _i(e) {
        return bc.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e
    }
    var xr = null;

    function ji(e) {
        return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e
    }
    var rt = null,
        Jn = null;

    function pr(e) {
        var t = St(e);
        if (t && (e = t.stateNode)) {
            var a = e[dt] || null;
            e: switch (e = t.stateNode, t.type) {
                case "input":
                    if (Ri(e, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name), t = a.name, a.type === "radio" && t != null) {
                        for (a = e; a.parentNode;) a = a.parentNode;
                        for (a = a.querySelectorAll('input[name="' + Xa("" + t) + '"][type="radio"]'), t = 0; t < a.length; t++) {
                            var i = a[t];
                            if (i !== e && i.form === e.form) {
                                var d = i[dt] || null;
                                if (!d) throw Error(c(90));
                                Ri(i, d.value, d.defaultValue, d.defaultValue, d.checked, d.defaultChecked, d.type, d.name)
                            }
                        }
                        for (t = 0; t < a.length; t++) i = a[t], i.form === e.form && gl(i)
                    }
                    break e;
                case "textarea":
                    Ll(e, a.value, a.defaultValue);
                    break e;
                case "select":
                    t = a.value, t != null && ri(e, !!a.multiple, t, !1)
            }
        }
    }
    var si = !1;

    function ki(e, t, a) {
        if (si) return e(t, a);
        si = !0;
        try {
            var i = e(t);
            return i
        } finally {
            if (si = !1, (rt !== null || Jn !== null) && (Rd(), rt && (t = rt, e = Jn, Jn = rt = null, pr(t), e)))
                for (t = 0; t < e.length; t++) pr(e[t])
        }
    }

    function vl(e, t) {
        var a = e.stateNode;
        if (a === null) return null;
        var i = a[dt] || null;
        if (i === null) return null;
        a = i[t];
        e: switch (t) {
            case "onClick":
            case "onClickCapture":
            case "onDoubleClick":
            case "onDoubleClickCapture":
            case "onMouseDown":
            case "onMouseDownCapture":
            case "onMouseMove":
            case "onMouseMoveCapture":
            case "onMouseUp":
            case "onMouseUpCapture":
            case "onMouseEnter":
                (i = !i.disabled) || (e = e.type, i = !(e === "button" || e === "input" || e === "select" || e === "textarea")), e = !i;
                break e;
            default:
                e = !1
        }
        if (e) return null;
        if (a && typeof a != "function") throw Error(c(231, t, typeof a));
        return a
    }
    var zi = !1;
    if (Kn) try {
        var qn = {};
        Object.defineProperty(qn, "passive", {
            get: function() {
                zi = !0
            }
        }), window.addEventListener("test", qn, qn), window.removeEventListener("test", qn, qn)
    } catch {
        zi = !1
    }
    var _a = null,
        Di = null,
        yn = null;

    function xc() {
        if (yn) return yn;
        var e, t = Di,
            a = t.length,
            i, d = "value" in _a ? _a.value : _a.textContent,
            v = d.length;
        for (e = 0; e < a && t[e] === d[e]; e++);
        var E = a - e;
        for (i = 1; i <= E && t[a - i] === d[v - i]; i++);
        return yn = d.slice(e, 1 < i ? 1 - i : void 0)
    }

    function Li(e) {
        var t = e.keyCode;
        return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0
    }

    function bl() {
        return !0
    }

    function Ui() {
        return !1
    }

    function ja(e) {
        function t(a, i, d, v, E) {
            this._reactName = a, this._targetInst = d, this.type = i, this.nativeEvent = v, this.target = E, this.currentTarget = null;
            for (var j in e) e.hasOwnProperty(j) && (a = e[j], this[j] = a ? a(v) : v[j]);
            return this.isDefaultPrevented = (v.defaultPrevented != null ? v.defaultPrevented : v.returnValue === !1) ? bl : Ui, this.isPropagationStopped = Ui, this
        }
        return Le(t.prototype, {
            preventDefault: function() {
                this.defaultPrevented = !0;
                var a = this.nativeEvent;
                a && (a.preventDefault ? a.preventDefault() : typeof a.returnValue != "unknown" && (a.returnValue = !1), this.isDefaultPrevented = bl)
            },
            stopPropagation: function() {
                var a = this.nativeEvent;
                a && (a.stopPropagation ? a.stopPropagation() : typeof a.cancelBubble != "unknown" && (a.cancelBubble = !0), this.isPropagationStopped = bl)
            },
            persist: function() {},
            isPersistent: bl
        }), t
    }
    var Ul = {
            eventPhase: 0,
            bubbles: 0,
            cancelable: 0,
            timeStamp: function(e) {
                return e.timeStamp || Date.now()
            },
            defaultPrevented: 0,
            isTrusted: 0
        },
        yr = ja(Ul),
        Sr = Le({}, Ul, {
            view: 0,
            detail: 0
        }),
        cu = ja(Sr),
        pc, ms, Bi, vs = Le({}, Sr, {
            screenX: 0,
            screenY: 0,
            clientX: 0,
            clientY: 0,
            pageX: 0,
            pageY: 0,
            ctrlKey: 0,
            shiftKey: 0,
            altKey: 0,
            metaKey: 0,
            getModifierState: ys,
            button: 0,
            buttons: 0,
            relatedTarget: function(e) {
                return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget
            },
            movementX: function(e) {
                return "movementX" in e ? e.movementX : (e !== Bi && (Bi && e.type === "mousemove" ? (pc = e.screenX - Bi.screenX, ms = e.screenY - Bi.screenY) : ms = pc = 0, Bi = e), pc)
            },
            movementY: function(e) {
                return "movementY" in e ? e.movementY : ms
            }
        }),
        Hi = ja(vs),
        bs = Le({}, vs, {
            dataTransfer: 0
        }),
        xs = ja(bs),
        ou = Le({}, Sr, {
            relatedTarget: 0
        }),
        wr = ja(ou),
        vo = Le({}, Ul, {
            animationName: 0,
            elapsedTime: 0,
            pseudoElement: 0
        }),
        Fi = ja(vo),
        yc = Le({}, Ul, {
            clipboardData: function(e) {
                return "clipboardData" in e ? e.clipboardData : window.clipboardData
            }
        }),
        Bl = ja(yc),
        bo = Le({}, Ul, {
            data: 0
        }),
        xo = ja(bo),
        Gi = {
            Esc: "Escape",
            Spacebar: " ",
            Left: "ArrowLeft",
            Up: "ArrowUp",
            Right: "ArrowRight",
            Down: "ArrowDown",
            Del: "Delete",
            Win: "OS",
            Menu: "ContextMenu",
            Apps: "ContextMenu",
            Scroll: "ScrollLock",
            MozPrintableKey: "Unidentified"
        },
        uu = {
            8: "Backspace",
            9: "Tab",
            12: "Clear",
            13: "Enter",
            16: "Shift",
            17: "Control",
            18: "Alt",
            19: "Pause",
            20: "CapsLock",
            27: "Escape",
            32: " ",
            33: "PageUp",
            34: "PageDown",
            35: "End",
            36: "Home",
            37: "ArrowLeft",
            38: "ArrowUp",
            39: "ArrowRight",
            40: "ArrowDown",
            45: "Insert",
            46: "Delete",
            112: "F1",
            113: "F2",
            114: "F3",
            115: "F4",
            116: "F5",
            117: "F6",
            118: "F7",
            119: "F8",
            120: "F9",
            121: "F10",
            122: "F11",
            123: "F12",
            144: "NumLock",
            145: "ScrollLock",
            224: "Meta"
        },
        ps = {
            Alt: "altKey",
            Control: "ctrlKey",
            Meta: "metaKey",
            Shift: "shiftKey"
        };

    function ta(e) {
        var t = this.nativeEvent;
        return t.getModifierState ? t.getModifierState(e) : (e = ps[e]) ? !!t[e] : !1
    }

    function ys() {
        return ta
    }
    var Sc = Le({}, Sr, {
            key: function(e) {
                if (e.key) {
                    var t = Gi[e.key] || e.key;
                    if (t !== "Unidentified") return t
                }
                return e.type === "keypress" ? (e = Li(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? uu[e.keyCode] || "Unidentified" : ""
            },
            code: 0,
            location: 0,
            ctrlKey: 0,
            shiftKey: 0,
            altKey: 0,
            metaKey: 0,
            repeat: 0,
            locale: 0,
            getModifierState: ys,
            charCode: function(e) {
                return e.type === "keypress" ? Li(e) : 0
            },
            keyCode: function(e) {
                return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0
            },
            which: function(e) {
                return e.type === "keypress" ? Li(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0
            }
        }),
        Nr = ja(Sc),
        Sn = Le({}, vs, {
            pointerId: 0,
            width: 0,
            height: 0,
            pressure: 0,
            tangentialPressure: 0,
            tiltX: 0,
            tiltY: 0,
            twist: 0,
            pointerType: 0,
            isPrimary: 0
        }),
        tn = ja(Sn),
        Cr = Le({}, Sr, {
            touches: 0,
            targetTouches: 0,
            changedTouches: 0,
            altKey: 0,
            metaKey: 0,
            ctrlKey: 0,
            shiftKey: 0,
            getModifierState: ys
        }),
        ci = ja(Cr),
        an = Le({}, Ul, {
            propertyName: 0,
            elapsedTime: 0,
            pseudoElement: 0
        }),
        Yi = ja(an),
        po = Le({}, vs, {
            deltaX: function(e) {
                return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0
            },
            deltaY: function(e) {
                return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0
            },
            deltaZ: 0,
            deltaMode: 0
        }),
        yo = ja(po),
        Ss = Le({}, Ul, {
            newState: 0,
            oldState: 0
        }),
        wc = ja(Ss),
        wn = [9, 13, 27, 32],
        Xi = Kn && "CompositionEvent" in window,
        Hl = null;
    Kn && "documentMode" in document && (Hl = document.documentMode);
    var Er = Kn && "TextEvent" in window && !Hl,
        Tr = Kn && (!Xi || Hl && 8 < Hl && 11 >= Hl),
        Nc = " ",
        Nn = !1;

    function Cc(e, t) {
        switch (e) {
            case "keyup":
                return wn.indexOf(t.keyCode) !== -1;
            case "keydown":
                return t.keyCode !== 229;
            case "keypress":
            case "mousedown":
            case "focusout":
                return !0;
            default:
                return !1
        }
    }

    function Pi(e) {
        return e = e.detail, typeof e == "object" && "data" in e ? e.data : null
    }
    var oi = !1;

    function Ec(e, t) {
        switch (e) {
            case "compositionend":
                return Pi(t);
            case "keypress":
                return t.which !== 32 ? null : (Nn = !0, Nc);
            case "textInput":
                return e = t.data, e === Nc && Nn ? null : e;
            default:
                return null
        }
    }

    function Tc(e, t) {
        if (oi) return e === "compositionend" || !Xi && Cc(e, t) ? (e = xc(), yn = Di = _a = null, oi = !1, e) : null;
        switch (e) {
            case "paste":
                return null;
            case "keypress":
                if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) {
                    if (t.char && 1 < t.char.length) return t.char;
                    if (t.which) return String.fromCharCode(t.which)
                }
                return null;
            case "compositionend":
                return Tr && t.locale !== "ko" ? null : t.data;
            default:
                return null
        }
    }
    var ws = {
        color: !0,
        date: !0,
        datetime: !0,
        "datetime-local": !0,
        email: !0,
        month: !0,
        number: !0,
        password: !0,
        range: !0,
        search: !0,
        tel: !0,
        text: !0,
        time: !0,
        url: !0,
        week: !0
    };

    function Vi(e) {
        var t = e && e.nodeName && e.nodeName.toLowerCase();
        return t === "input" ? !!ws[e.type] : t === "textarea"
    }

    function Ns(e, t, a, i) {
        rt ? Jn ? Jn.push(i) : Jn = [i] : rt = i, t = zd(t, "onChange"), 0 < t.length && (a = new yr("onChange", "change", null, a, i), e.push({
            event: a,
            listeners: t
        }))
    }
    var $n = null,
        jn = null;

    function Zi(e) {
        pm(e, 0)
    }

    function Fl(e) {
        var t = zl(e);
        if (gl(t)) return e
    }

    function Mr(e, t) {
        if (e === "change") return t
    }
    var Ar = !1;
    if (Kn) {
        var ui;
        if (Kn) {
            var el = "oninput" in document;
            if (!el) {
                var So = document.createElement("div");
                So.setAttribute("oninput", "return;"), el = typeof So.oninput == "function"
            }
            ui = el
        } else ui = !1;
        Ar = ui && (!document.documentMode || 9 < document.documentMode)
    }

    function wo() {
        $n && ($n.detachEvent("onpropertychange", Rr), jn = $n = null)
    }

    function Rr(e) {
        if (e.propertyName === "value" && Fl(jn)) {
            var t = [];
            Ns(t, jn, e, ji(e)), ki(Zi, t)
        }
    }

    function Mc(e, t, a) {
        e === "focusin" ? (wo(), $n = t, jn = a, $n.attachEvent("onpropertychange", Rr)) : e === "focusout" && wo()
    }

    function u(e) {
        if (e === "selectionchange" || e === "keyup" || e === "keydown") return Fl(jn)
    }

    function g(e, t) {
        if (e === "click") return Fl(t)
    }

    function p(e, t) {
        if (e === "input" || e === "change") return Fl(t)
    }

    function C(e, t) {
        return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t
    }
    var T = typeof Object.is == "function" ? Object.is : C;

    function D(e, t) {
        if (T(e, t)) return !0;
        if (typeof e != "object" || e === null || typeof t != "object" || t === null) return !1;
        var a = Object.keys(e),
            i = Object.keys(t);
        if (a.length !== i.length) return !1;
        for (i = 0; i < a.length; i++) {
            var d = a[i];
            if (!rs.call(t, d) || !T(e[d], t[d])) return !1
        }
        return !0
    }

    function H(e) {
        for (; e && e.firstChild;) e = e.firstChild;
        return e
    }

    function W(e, t) {
        var a = H(e);
        e = 0;
        for (var i; a;) {
            if (a.nodeType === 3) {
                if (i = e + a.textContent.length, e <= t && i >= t) return {
                    node: a,
                    offset: t - e
                };
                e = i
            }
            e: {
                for (; a;) {
                    if (a.nextSibling) {
                        a = a.nextSibling;
                        break e
                    }
                    a = a.parentNode
                }
                a = void 0
            }
            a = H(a)
        }
    }

    function K(e, t) {
        return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? K(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1
    }

    function re(e) {
        e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;
        for (var t = mr(e.document); t instanceof e.HTMLIFrameElement;) {
            try {
                var a = typeof t.contentWindow.location.href == "string"
            } catch {
                a = !1
            }
            if (a) e = t.contentWindow;
            else break;
            t = mr(e.document)
        }
        return t
    }

    function pe(e) {
        var t = e && e.nodeName && e.nodeName.toLowerCase();
        return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true")
    }

    function he(e, t) {
        var a = re(t);
        t = e.focusedElem;
        var i = e.selectionRange;
        if (a !== t && t && t.ownerDocument && K(t.ownerDocument.documentElement, t)) {
            if (i !== null && pe(t)) {
                if (e = i.start, a = i.end, a === void 0 && (a = e), "selectionStart" in t) t.selectionStart = e, t.selectionEnd = Math.min(a, t.value.length);
                else if (a = (e = t.ownerDocument || document) && e.defaultView || window, a.getSelection) {
                    a = a.getSelection();
                    var d = t.textContent.length,
                        v = Math.min(i.start, d);
                    i = i.end === void 0 ? v : Math.min(i.end, d), !a.extend && v > i && (d = i, i = v, v = d), d = W(t, v);
                    var E = W(t, i);
                    d && E && (a.rangeCount !== 1 || a.anchorNode !== d.node || a.anchorOffset !== d.offset || a.focusNode !== E.node || a.focusOffset !== E.offset) && (e = e.createRange(), e.setStart(d.node, d.offset), a.removeAllRanges(), v > i ? (a.addRange(e), a.extend(E.node, E.offset)) : (e.setEnd(E.node, E.offset), a.addRange(e)))
                }
            }
            for (e = [], a = t; a = a.parentNode;) a.nodeType === 1 && e.push({
                element: a,
                left: a.scrollLeft,
                top: a.scrollTop
            });
            for (typeof t.focus == "function" && t.focus(), t = 0; t < e.length; t++) a = e[t], a.element.scrollLeft = a.left, a.element.scrollTop = a.top
        }
    }
    var Ee = Kn && "documentMode" in document && 11 >= document.documentMode,
        Ge = null,
        we = null,
        ze = null,
        mt = !1;

    function Qe(e, t, a) {
        var i = a.window === a ? a.document : a.nodeType === 9 ? a : a.ownerDocument;
        mt || Ge == null || Ge !== mr(i) || (i = Ge, "selectionStart" in i && pe(i) ? i = {
            start: i.selectionStart,
            end: i.selectionEnd
        } : (i = (i.ownerDocument && i.ownerDocument.defaultView || window).getSelection(), i = {
            anchorNode: i.anchorNode,
            anchorOffset: i.anchorOffset,
            focusNode: i.focusNode,
            focusOffset: i.focusOffset
        }), ze && D(ze, i) || (ze = i, i = zd(we, "onSelect"), 0 < i.length && (t = new yr("onSelect", "select", null, t, a), e.push({
            event: t,
            listeners: i
        }), t.target = Ge)))
    }

    function tt(e, t) {
        var a = {};
        return a[e.toLowerCase()] = t.toLowerCase(), a["Webkit" + e] = "webkit" + t, a["Moz" + e] = "moz" + t, a
    }
    var $e = {
            animationend: tt("Animation", "AnimationEnd"),
            animationiteration: tt("Animation", "AnimationIteration"),
            animationstart: tt("Animation", "AnimationStart"),
            transitionrun: tt("Transition", "TransitionRun"),
            transitionstart: tt("Transition", "TransitionStart"),
            transitioncancel: tt("Transition", "TransitionCancel"),
            transitionend: tt("Transition", "TransitionEnd")
        },
        ft = {},
        Je = {};
    Kn && (Je = document.createElement("div").style, "AnimationEvent" in window || (delete $e.animationend.animation, delete $e.animationiteration.animation, delete $e.animationstart.animation), "TransitionEvent" in window || delete $e.transitionend.transition);

    function Rt(e) {
        if (ft[e]) return ft[e];
        if (!$e[e]) return e;
        var t = $e[e],
            a;
        for (a in t)
            if (t.hasOwnProperty(a) && a in Je) return ft[e] = t[a];
        return e
    }
    var nn = Rt("animationend"),
        ln = Rt("animationiteration"),
        wt = Rt("animationstart"),
        Ye = Rt("transitionrun"),
        Yt = Rt("transitionstart"),
        tl = Rt("transitioncancel"),
        wa = Rt("transitionend"),
        rn = new Map,
        ka = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");

    function za(e, t) {
        rn.set(e, t), pn(t, [e])
    }
    var da = [],
        Pa = 0,
        di = 0;

    function sn() {
        for (var e = Pa, t = di = Pa = 0; t < e;) {
            var a = da[t];
            da[t++] = null;
            var i = da[t];
            da[t++] = null;
            var d = da[t];
            da[t++] = null;
            var v = da[t];
            if (da[t++] = null, i !== null && d !== null) {
                var E = i.pending;
                E === null ? d.next = d : (d.next = E.next, E.next = d), i.pending = d
            }
            v !== 0 && Gl(a, d, v)
        }
    }

    function fi(e, t, a, i) {
        da[Pa++] = e, da[Pa++] = t, da[Pa++] = a, da[Pa++] = i, di |= i, e.lanes |= i, e = e.alternate, e !== null && (e.lanes |= i)
    }

    function hi(e, t, a, i) {
        return fi(e, t, a, i), xl(e)
    }

    function Da(e, t) {
        return fi(e, null, null, t), xl(e)
    }

    function Gl(e, t, a) {
        e.lanes |= a;
        var i = e.alternate;
        i !== null && (i.lanes |= a);
        for (var d = !1, v = e.return; v !== null;) v.childLanes |= a, i = v.alternate, i !== null && (i.childLanes |= a), v.tag === 22 && (e = v.stateNode, e === null || e._visibility & 1 || (d = !0)), e = v, v = v.return;
        d && t !== null && e.tag === 3 && (v = e.stateNode, d = 31 - Wt(a), v = v.hiddenUpdates, e = v[d], e === null ? v[d] = [t] : e.push(t), t.lane = a | 536870912)
    }

    function xl(e) {
        if (50 < Pu) throw Pu = 0, th = null, Error(c(185));
        for (var t = e.return; t !== null;) e = t, t = e.return;
        return e.tag === 3 ? e.stateNode : null
    }
    var va = {},
        Cs = new WeakMap;

    function Na(e, t) {
        if (typeof e == "object" && e !== null) {
            var a = Cs.get(e);
            return a !== void 0 ? a : (t = {
                value: e,
                source: t,
                stack: ee(t)
            }, Cs.set(e, t), t)
        }
        return {
            value: e,
            source: t,
            stack: ee(t)
        }
    }
    var gi = [],
        mi = 0,
        Qi = null,
        Wi = 0,
        cn = [],
        ba = 0,
        Va = null,
        It = 1,
        al = "";

    function nl(e, t) {
        gi[mi++] = Wi, gi[mi++] = Qi, Qi = e, Wi = t
    }

    function vi(e, t, a) {
        cn[ba++] = It, cn[ba++] = al, cn[ba++] = Va, Va = e;
        var i = It;
        e = al;
        var d = 32 - Wt(i) - 1;
        i &= ~(1 << d), a += 1;
        var v = 32 - Wt(t) + d;
        if (30 < v) {
            var E = d - d % 5;
            v = (i & (1 << E) - 1).toString(32), i >>= E, d -= E, It = 1 << 32 - Wt(t) + d | a << d | i, al = v + e
        } else It = 1 << v | a << d | i, al = e
    }

    function pl(e) {
        e.return !== null && (nl(e, 1), vi(e, 1, 0))
    }

    function kn(e) {
        for (; e === Qi;) Qi = gi[--mi], gi[mi] = null, Wi = gi[--mi], gi[mi] = null;
        for (; e === Va;) Va = cn[--ba], cn[ba] = null, al = cn[--ba], cn[ba] = null, It = cn[--ba], cn[ba] = null
    }
    var Dt = null,
        Lt = null,
        qe = !1,
        Kt = null,
        xa = !1,
        Ii = Error(c(519));

    function yl(e) {
        var t = Error(c(418, ""));
        throw il(Na(t, e)), Ii
    }

    function Nt(e) {
        var t = e.stateNode,
            a = e.type,
            i = e.memoizedProps;
        switch (t[Fe] = e, t[dt] = i, a) {
            case "dialog":
                st("cancel", t), st("close", t);
                break;
            case "iframe":
            case "object":
            case "embed":
                st("load", t);
                break;
            case "video":
            case "audio":
                for (a = 0; a < Zu.length; a++) st(Zu[a], t);
                break;
            case "source":
                st("error", t);
                break;
            case "img":
            case "image":
            case "link":
                st("error", t), st("load", t);
                break;
            case "details":
                st("toggle", t);
                break;
            case "input":
                st("invalid", t), go(t, i.value, i.defaultValue, i.checked, i.defaultChecked, i.type, i.name, !0), gr(t);
                break;
            case "select":
                st("invalid", t);
                break;
            case "textarea":
                st("invalid", t), vr(t, i.value, i.defaultValue, i.children), gr(t)
        }
        a = i.children, typeof a != "string" && typeof a != "number" && typeof a != "bigint" || t.textContent === "" + a || i.suppressHydrationWarning === !0 || Nm(t.textContent, a) ? (i.popover != null && (st("beforetoggle", t), st("toggle", t)), i.onScroll != null && st("scroll", t), i.onScrollEnd != null && st("scrollend", t), i.onClick != null && (t.onclick = Dd), t = !0) : t = !1, t || yl(e)
    }

    function Es(e) {
        for (Dt = e.return; Dt;) switch (Dt.tag) {
            case 3:
            case 27:
                xa = !0;
                return;
            case 5:
            case 13:
                xa = !1;
                return;
            default:
                Dt = Dt.return
        }
    }

    function ll(e) {
        if (e !== Dt) return !1;
        if (!qe) return Es(e), qe = !0, !1;
        var t = !1,
            a;
        if ((a = e.tag !== 3 && e.tag !== 27) && ((a = e.tag === 5) && (a = e.type, a = !(a !== "form" && a !== "button") || xh(e.type, e.memoizedProps)), a = !a), a && (t = !0), t && Lt && yl(e), Es(e), e.tag === 13) {
            if (e = e.memoizedState, e = e !== null ? e.dehydrated : null, !e) throw Error(c(317));
            e: {
                for (e = e.nextSibling, t = 0; e;) {
                    if (e.nodeType === 8)
                        if (a = e.data, a === "/$") {
                            if (t === 0) {
                                Lt = yi(e.nextSibling);
                                break e
                            }
                            t--
                        } else a !== "$" && a !== "$!" && a !== "$?" || t++;
                    e = e.nextSibling
                }
                Lt = null
            }
        } else Lt = Dt ? yi(e.stateNode.nextSibling) : null;
        return !0
    }

    function Sl() {
        Lt = Dt = null, qe = !1
    }

    function il(e) {
        Kt === null ? Kt = [e] : Kt.push(e)
    }
    var rl = Error(c(460)),
        sl = Error(c(474)),
        on = {
            then: function() {}
        };

    function La(e) {
        return e = e.status, e === "fulfilled" || e === "rejected"
    }

    function wl() {}

    function Or(e, t, a) {
        switch (a = e[a], a === void 0 ? e.push(t) : a !== t && (t.then(wl, wl), t = a), t.status) {
            case "fulfilled":
                return t.value;
            case "rejected":
                throw e = t.reason, e === rl ? Error(c(483)) : e;
            default:
                if (typeof t.status == "string") t.then(wl, wl);
                else {
                    if (e = Bt, e !== null && 100 < e.shellSuspendCounter) throw Error(c(482));
                    e = t, e.status = "pending", e.then(function(i) {
                        if (t.status === "pending") {
                            var d = t;
                            d.status = "fulfilled", d.value = i
                        }
                    }, function(i) {
                        if (t.status === "pending") {
                            var d = t;
                            d.status = "rejected", d.reason = i
                        }
                    })
                }
                switch (t.status) {
                    case "fulfilled":
                        return t.value;
                    case "rejected":
                        throw e = t.reason, e === rl ? Error(c(483)) : e
                }
                throw Ki = t, rl
        }
    }
    var Ki = null;

    function Cn() {
        if (Ki === null) throw Error(c(459));
        var e = Ki;
        return Ki = null, e
    }
    var zn = null,
        Jt = 0;

    function Dn(e) {
        var t = Jt;
        return Jt += 1, zn === null && (zn = []), Or(zn, e, t)
    }

    function cl(e, t) {
        t = t.props.ref, e.ref = t !== void 0 ? t : null
    }

    function Nl(e, t) {
        throw t.$$typeof === m ? Error(c(525)) : (e = Object.prototype.toString.call(t), Error(c(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)))
    }

    function _r(e) {
        var t = e._init;
        return t(e._payload)
    }

    function Ts(e) {
        function t(Z, Y) {
            if (e) {
                var I = Z.deletions;
                I === null ? (Z.deletions = [Y], Z.flags |= 16) : I.push(Y)
            }
        }

        function a(Z, Y) {
            if (!e) return null;
            for (; Y !== null;) t(Z, Y), Y = Y.sibling;
            return null
        }

        function i(Z) {
            for (var Y = new Map; Z !== null;) Z.key !== null ? Y.set(Z.key, Z) : Y.set(Z.index, Z), Z = Z.sibling;
            return Y
        }

        function d(Z, Y) {
            return Z = Ks(Z, Y), Z.index = 0, Z.sibling = null, Z
        }

        function v(Z, Y, I) {
            return Z.index = I, e ? (I = Z.alternate, I !== null ? (I = I.index, I < Y ? (Z.flags |= 33554434, Y) : I) : (Z.flags |= 33554434, Y)) : (Z.flags |= 1048576, Y)
        }

        function E(Z) {
            return e && Z.alternate === null && (Z.flags |= 33554434), Z
        }

        function j(Z, Y, I, se) {
            return Y === null || Y.tag !== 6 ? (Y = Qf(I, Z.mode, se), Y.return = Z, Y) : (Y = d(Y, I), Y.return = Z, Y)
        }

        function L(Z, Y, I, se) {
            var Te = I.type;
            return Te === w ? ie(Z, Y, I.props.children, se, I.key) : Y !== null && (Y.elementType === Te || typeof Te == "object" && Te !== null && Te.$$typeof === $ && _r(Te) === Y.type) ? (Y = d(Y, I.props), cl(Y, I), Y.return = Z, Y) : (Y = Cd(I.type, I.key, I.props, null, Z.mode, se), cl(Y, I), Y.return = Z, Y)
        }

        function P(Z, Y, I, se) {
            return Y === null || Y.tag !== 4 || Y.stateNode.containerInfo !== I.containerInfo || Y.stateNode.implementation !== I.implementation ? (Y = Wf(I, Z.mode, se), Y.return = Z, Y) : (Y = d(Y, I.children || []), Y.return = Z, Y)
        }

        function ie(Z, Y, I, se, Te) {
            return Y === null || Y.tag !== 7 ? (Y = Vc(I, Z.mode, se, Te), Y.return = Z, Y) : (Y = d(Y, I), Y.return = Z, Y)
        }

        function ue(Z, Y, I) {
            if (typeof Y == "string" && Y !== "" || typeof Y == "number" || typeof Y == "bigint") return Y = Qf("" + Y, Z.mode, I), Y.return = Z, Y;
            if (typeof Y == "object" && Y !== null) {
                switch (Y.$$typeof) {
                    case x:
                        return I = Cd(Y.type, Y.key, Y.props, null, Z.mode, I), cl(I, Y), I.return = Z, I;
                    case y:
                        return Y = Wf(Y, Z.mode, I), Y.return = Z, Y;
                    case $:
                        var se = Y._init;
                        return Y = se(Y._payload), ue(Z, Y, I)
                }
                if (xt(Y) || be(Y)) return Y = Vc(Y, Z.mode, I, null), Y.return = Z, Y;
                if (typeof Y.then == "function") return ue(Z, Dn(Y), I);
                if (Y.$$typeof === O) return ue(Z, Sd(Z, Y), I);
                Nl(Z, Y)
            }
            return null
        }

        function J(Z, Y, I, se) {
            var Te = Y !== null ? Y.key : null;
            if (typeof I == "string" && I !== "" || typeof I == "number" || typeof I == "bigint") return Te !== null ? null : j(Z, Y, "" + I, se);
            if (typeof I == "object" && I !== null) {
                switch (I.$$typeof) {
                    case x:
                        return I.key === Te ? L(Z, Y, I, se) : null;
                    case y:
                        return I.key === Te ? P(Z, Y, I, se) : null;
                    case $:
                        return Te = I._init, I = Te(I._payload), J(Z, Y, I, se)
                }
                if (xt(I) || be(I)) return Te !== null ? null : ie(Z, Y, I, se, null);
                if (typeof I.then == "function") return J(Z, Y, Dn(I), se);
                if (I.$$typeof === O) return J(Z, Y, Sd(Z, I), se);
                Nl(Z, I)
            }
            return null
        }

        function ne(Z, Y, I, se, Te) {
            if (typeof se == "string" && se !== "" || typeof se == "number" || typeof se == "bigint") return Z = Z.get(I) || null, j(Y, Z, "" + se, Te);
            if (typeof se == "object" && se !== null) {
                switch (se.$$typeof) {
                    case x:
                        return Z = Z.get(se.key === null ? I : se.key) || null, L(Y, Z, se, Te);
                    case y:
                        return Z = Z.get(se.key === null ? I : se.key) || null, P(Y, Z, se, Te);
                    case $:
                        var at = se._init;
                        return se = at(se._payload), ne(Z, Y, I, se, Te)
                }
                if (xt(se) || be(se)) return Z = Z.get(I) || null, ie(Y, Z, se, Te, null);
                if (typeof se.then == "function") return ne(Z, Y, I, Dn(se), Te);
                if (se.$$typeof === O) return ne(Z, Y, I, Sd(Y, se), Te);
                Nl(Y, se)
            }
            return null
        }

        function Oe(Z, Y, I, se) {
            for (var Te = null, at = null, je = Y, Ue = Y = 0, Ia = null; je !== null && Ue < I.length; Ue++) {
                je.index > Ue ? (Ia = je, je = null) : Ia = je.sibling;
                var gt = J(Z, je, I[Ue], se);
                if (gt === null) {
                    je === null && (je = Ia);
                    break
                }
                e && je && gt.alternate === null && t(Z, je), Y = v(gt, Y, Ue), at === null ? Te = gt : at.sibling = gt, at = gt, je = Ia
            }
            if (Ue === I.length) return a(Z, je), qe && nl(Z, Ue), Te;
            if (je === null) {
                for (; Ue < I.length; Ue++) je = ue(Z, I[Ue], se), je !== null && (Y = v(je, Y, Ue), at === null ? Te = je : at.sibling = je, at = je);
                return qe && nl(Z, Ue), Te
            }
            for (je = i(je); Ue < I.length; Ue++) Ia = ne(je, Z, Ue, I[Ue], se), Ia !== null && (e && Ia.alternate !== null && je.delete(Ia.key === null ? Ue : Ia.key), Y = v(Ia, Y, Ue), at === null ? Te = Ia : at.sibling = Ia, at = Ia);
            return e && je.forEach(function(nc) {
                return t(Z, nc)
            }), qe && nl(Z, Ue), Te
        }

        function Ze(Z, Y, I, se) {
            if (I == null) throw Error(c(151));
            for (var Te = null, at = null, je = Y, Ue = Y = 0, Ia = null, gt = I.next(); je !== null && !gt.done; Ue++, gt = I.next()) {
                je.index > Ue ? (Ia = je, je = null) : Ia = je.sibling;
                var nc = J(Z, je, gt.value, se);
                if (nc === null) {
                    je === null && (je = Ia);
                    break
                }
                e && je && nc.alternate === null && t(Z, je), Y = v(nc, Y, Ue), at === null ? Te = nc : at.sibling = nc, at = nc, je = Ia
            }
            if (gt.done) return a(Z, je), qe && nl(Z, Ue), Te;
            if (je === null) {
                for (; !gt.done; Ue++, gt = I.next()) gt = ue(Z, gt.value, se), gt !== null && (Y = v(gt, Y, Ue), at === null ? Te = gt : at.sibling = gt, at = gt);
                return qe && nl(Z, Ue), Te
            }
            for (je = i(je); !gt.done; Ue++, gt = I.next()) gt = ne(je, Z, Ue, gt.value, se), gt !== null && (e && gt.alternate !== null && je.delete(gt.key === null ? Ue : gt.key), Y = v(gt, Y, Ue), at === null ? Te = gt : at.sibling = gt, at = gt);
            return e && je.forEach(function(Hb) {
                return t(Z, Hb)
            }), qe && nl(Z, Ue), Te
        }

        function ga(Z, Y, I, se) {
            if (typeof I == "object" && I !== null && I.type === w && I.key === null && (I = I.props.children), typeof I == "object" && I !== null) {
                switch (I.$$typeof) {
                    case x:
                        e: {
                            for (var Te = I.key; Y !== null;) {
                                if (Y.key === Te) {
                                    if (Te = I.type, Te === w) {
                                        if (Y.tag === 7) {
                                            a(Z, Y.sibling), se = d(Y, I.props.children), se.return = Z, Z = se;
                                            break e
                                        }
                                    } else if (Y.elementType === Te || typeof Te == "object" && Te !== null && Te.$$typeof === $ && _r(Te) === Y.type) {
                                        a(Z, Y.sibling), se = d(Y, I.props), cl(se, I), se.return = Z, Z = se;
                                        break e
                                    }
                                    a(Z, Y);
                                    break
                                } else t(Z, Y);
                                Y = Y.sibling
                            }
                            I.type === w ? (se = Vc(I.props.children, Z.mode, se, I.key), se.return = Z, Z = se) : (se = Cd(I.type, I.key, I.props, null, Z.mode, se), cl(se, I), se.return = Z, Z = se)
                        }
                        return E(Z);
                    case y:
                        e: {
                            for (Te = I.key; Y !== null;) {
                                if (Y.key === Te)
                                    if (Y.tag === 4 && Y.stateNode.containerInfo === I.containerInfo && Y.stateNode.implementation === I.implementation) {
                                        a(Z, Y.sibling), se = d(Y, I.children || []), se.return = Z, Z = se;
                                        break e
                                    } else {
                                        a(Z, Y);
                                        break
                                    }
                                else t(Z, Y);
                                Y = Y.sibling
                            }
                            se = Wf(I, Z.mode, se),
                            se.return = Z,
                            Z = se
                        }
                        return E(Z);
                    case $:
                        return Te = I._init, I = Te(I._payload), ga(Z, Y, I, se)
                }
                if (xt(I)) return Oe(Z, Y, I, se);
                if (be(I)) {
                    if (Te = be(I), typeof Te != "function") throw Error(c(150));
                    return I = Te.call(I), Ze(Z, Y, I, se)
                }
                if (typeof I.then == "function") return ga(Z, Y, Dn(I), se);
                if (I.$$typeof === O) return ga(Z, Y, Sd(Z, I), se);
                Nl(Z, I)
            }
            return typeof I == "string" && I !== "" || typeof I == "number" || typeof I == "bigint" ? (I = "" + I, Y !== null && Y.tag === 6 ? (a(Z, Y.sibling), se = d(Y, I), se.return = Z, Z = se) : (a(Z, Y), se = Qf(I, Z.mode, se), se.return = Z, Z = se), E(Z)) : a(Z, Y)
        }
        return function(Z, Y, I, se) {
            try {
                Jt = 0;
                var Te = ga(Z, Y, I, se);
                return zn = null, Te
            } catch (je) {
                if (je === rl) throw je;
                var at = $l(29, je, null, Z.mode);
                return at.lanes = se, at.return = Z, at
            } finally {}
        }
    }
    var aa = Ts(!0),
        Ac = Ts(!1),
        un = qa(null),
        Yl = qa(0);

    function jr(e, t) {
        e = $r, We(Yl, e), We(un, t), $r = e | t.baseLanes
    }

    function Xl() {
        We(Yl, $r), We(un, un.current)
    }

    function Pl() {
        $r = Yl.current, oa(un), oa(Yl)
    }
    var pa = qa(null),
        dn = null;

    function fn(e) {
        var t = e.alternate;
        We(Ct, Ct.current & 1), We(pa, e), dn === null && (t === null || un.current !== null || t.memoizedState !== null) && (dn = e)
    }

    function Ln(e) {
        if (e.tag === 22) {
            if (We(Ct, Ct.current), We(pa, e), dn === null) {
                var t = e.alternate;
                t !== null && t.memoizedState !== null && (dn = e)
            }
        } else Ca()
    }

    function Ca() {
        We(Ct, Ct.current), We(pa, pa.current)
    }

    function En(e) {
        oa(pa), dn === e && (dn = null), oa(Ct)
    }
    var Ct = qa(0);

    function Vl(e) {
        for (var t = e; t !== null;) {
            if (t.tag === 13) {
                var a = t.memoizedState;
                if (a !== null && (a = a.dehydrated, a === null || a.data === "$?" || a.data === "$!")) return t
            } else if (t.tag === 19 && t.memoizedProps.revealOrder !== void 0) {
                if (t.flags & 128) return t
            } else if (t.child !== null) {
                t.child.return = t, t = t.child;
                continue
            }
            if (t === e) break;
            for (; t.sibling === null;) {
                if (t.return === null || t.return === e) return null;
                t = t.return
            }
            t.sibling.return = t.return, t = t.sibling
        }
        return null
    }
    var Zl = typeof AbortController < "u" ? AbortController : function() {
            var e = [],
                t = this.signal = {
                    aborted: !1,
                    addEventListener: function(a, i) {
                        e.push(i)
                    }
                };
            this.abort = function() {
                t.aborted = !0, e.forEach(function(a) {
                    return a()
                })
            }
        },
        Rc = n.unstable_scheduleCallback,
        hn = n.unstable_NormalPriority,
        Xt = {
            $$typeof: O,
            Consumer: null,
            Provider: null,
            _currentValue: null,
            _currentValue2: null,
            _threadCount: 0
        };

    function gn() {
        return {
            controller: new Zl,
            data: new Map,
            refCount: 0
        }
    }

    function bi(e) {
        e.refCount--, e.refCount === 0 && Rc(hn, function() {
            e.controller.abort()
        })
    }
    var o = null,
        f = 0,
        b = 0,
        N = null;

    function M(e, t) {
        if (o === null) {
            var a = o = [];
            f = 0, b = oh(), N = {
                status: "pending",
                value: void 0,
                then: function(i) {
                    a.push(i)
                }
            }
        }
        return f++, t.then(z, z), t
    }

    function z() {
        if (--f === 0 && o !== null) {
            N !== null && (N.status = "fulfilled");
            var e = o;
            o = null, b = 0, N = null;
            for (var t = 0; t < e.length; t++)(0, e[t])()
        }
    }

    function B(e, t) {
        var a = [],
            i = {
                status: "pending",
                value: null,
                reason: null,
                then: function(d) {
                    a.push(d)
                }
            };
        return e.then(function() {
            i.status = "fulfilled", i.value = t;
            for (var d = 0; d < a.length; d++)(0, a[d])(t)
        }, function(d) {
            for (i.status = "rejected", i.reason = d, d = 0; d < a.length; d++)(0, a[d])(void 0)
        }), i
    }
    var X = me.S;
    me.S = function(e, t) {
        typeof t == "object" && t !== null && typeof t.then == "function" && M(e, t), X !== null && X(e, t)
    };
    var G = qa(null);

    function q() {
        var e = G.current;
        return e !== null ? e : Bt.pooledCache
    }

    function ce(e, t) {
        t === null ? We(G, G.current) : We(G, t.pool)
    }

    function le() {
        var e = q();
        return e === null ? null : {
            parent: Xt._currentValue,
            pool: e
        }
    }
    var de = 0,
        ge = null,
        ye = null,
        Ne = null,
        Ot = !1,
        _t = !1,
        Pt = !1,
        yt = 0,
        Ut = 0,
        qt = null,
        Ua = 0;

    function Ie() {
        throw Error(c(321))
    }

    function Et(e, t) {
        if (t === null) return !1;
        for (var a = 0; a < t.length && a < e.length; a++)
            if (!T(e[a], t[a])) return !1;
        return !0
    }

    function na(e, t, a, i, d, v) {
        return de = v, ge = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, me.H = e === null || e.memoizedState === null ? Il : Tn, Pt = !1, v = a(i, d), Pt = !1, _t && (v = Qa(t, a, i, d)), Za(e), v
    }

    function Za(e) {
        me.H = El;
        var t = ye !== null && ye.next !== null;
        if (de = 0, Ne = ye = ge = null, Ot = !1, Ut = 0, qt = null, t) throw Error(c(300));
        e === null || ia || (e = e.dependencies, e !== null && yd(e) && (ia = !0))
    }

    function Qa(e, t, a, i) {
        ge = e;
        var d = 0;
        do {
            if (_t && (qt = null), Ut = 0, _t = !1, 25 <= d) throw Error(c(301));
            if (d += 1, Ne = ye = null, e.updateQueue != null) {
                var v = e.updateQueue;
                v.lastEffect = null, v.events = null, v.stores = null, v.memoCache != null && (v.memoCache.index = 0)
            }
            me.H = ul, v = t(a, i)
        } while (_t);
        return v
    }

    function du() {
        var e = me.H,
            t = e.useState()[0];
        return t = typeof t.then == "function" ? Ms(t) : t, e = e.useState()[0], (ye !== null ? ye.memoizedState : null) !== e && (ge.flags |= 1024), t
    }

    function Ji() {
        var e = yt !== 0;
        return yt = 0, e
    }

    function kr(e, t, a) {
        t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~a
    }

    function zr(e) {
        if (Ot) {
            for (e = e.memoizedState; e !== null;) {
                var t = e.queue;
                t !== null && (t.pending = null), e = e.next
            }
            Ot = !1
        }
        de = 0, Ne = ye = ge = null, _t = !1, Ut = yt = 0, qt = null
    }

    function mn() {
        var e = {
            memoizedState: null,
            baseState: null,
            baseQueue: null,
            queue: null,
            next: null
        };
        return Ne === null ? ge.memoizedState = Ne = e : Ne = Ne.next = e, Ne
    }

    function la() {
        if (ye === null) {
            var e = ge.alternate;
            e = e !== null ? e.memoizedState : null
        } else e = ye.next;
        var t = Ne === null ? ge.memoizedState : Ne.next;
        if (t !== null) Ne = t, ye = e;
        else {
            if (e === null) throw ge.alternate === null ? Error(c(467)) : Error(c(310));
            ye = e, e = {
                memoizedState: ye.memoizedState,
                baseState: ye.baseState,
                baseQueue: ye.baseQueue,
                queue: ye.queue,
                next: null
            }, Ne === null ? ge.memoizedState = Ne = e : Ne = Ne.next = e
        }
        return Ne
    }
    var Oc;
    Oc = function() {
        return {
            lastEffect: null,
            events: null,
            stores: null,
            memoCache: null
        }
    };

    function Ms(e) {
        var t = Ut;
        return Ut += 1, qt === null && (qt = []), e = Or(qt, e, t), t = ge, (Ne === null ? t.memoizedState : Ne.next) === null && (t = t.alternate, me.H = t === null || t.memoizedState === null ? Il : Tn), e
    }

    function _c(e) {
        if (e !== null && typeof e == "object") {
            if (typeof e.then == "function") return Ms(e);
            if (e.$$typeof === O) return Mn(e)
        }
        throw Error(c(438, String(e)))
    }

    function jc(e) {
        var t = null,
            a = ge.updateQueue;
        if (a !== null && (t = a.memoCache), t == null) {
            var i = ge.alternate;
            i !== null && (i = i.updateQueue, i !== null && (i = i.memoCache, i != null && (t = {
                data: i.data.map(function(d) {
                    return d.slice()
                }),
                index: 0
            })))
        }
        if (t == null && (t = {
                data: [],
                index: 0
            }), a === null && (a = Oc(), ge.updateQueue = a), a.memoCache = t, a = t.data[t.index], a === void 0)
            for (a = t.data[t.index] = Array(e), i = 0; i < e; i++) a[i] = fe;
        return t.index++, a
    }

    function Cl(e, t) {
        return typeof t == "function" ? t(e) : t
    }

    function As(e) {
        var t = la();
        return kc(t, ye, e)
    }

    function kc(e, t, a) {
        var i = e.queue;
        if (i === null) throw Error(c(311));
        i.lastRenderedReducer = a;
        var d = e.baseQueue,
            v = i.pending;
        if (v !== null) {
            if (d !== null) {
                var E = d.next;
                d.next = v.next, v.next = E
            }
            t.baseQueue = d = v, i.pending = null
        }
        if (v = e.baseState, d === null) e.memoizedState = v;
        else {
            t = d.next;
            var j = E = null,
                L = null,
                P = t,
                ie = !1;
            do {
                var ue = P.lane & -536870913;
                if (ue !== P.lane ? (ot & ue) === ue : (de & ue) === ue) {
                    var J = P.revertLane;
                    if (J === 0) L !== null && (L = L.next = {
                        lane: 0,
                        revertLane: 0,
                        action: P.action,
                        hasEagerState: P.hasEagerState,
                        eagerState: P.eagerState,
                        next: null
                    }), ue === b && (ie = !0);
                    else if ((de & J) === J) {
                        P = P.next, J === b && (ie = !0);
                        continue
                    } else ue = {
                        lane: 0,
                        revertLane: P.revertLane,
                        action: P.action,
                        hasEagerState: P.hasEagerState,
                        eagerState: P.eagerState,
                        next: null
                    }, L === null ? (j = L = ue, E = v) : L = L.next = ue, ge.lanes |= J, Js |= J;
                    ue = P.action, Pt && a(v, ue), v = P.hasEagerState ? P.eagerState : a(v, ue)
                } else J = {
                    lane: ue,
                    revertLane: P.revertLane,
                    action: P.action,
                    hasEagerState: P.hasEagerState,
                    eagerState: P.eagerState,
                    next: null
                }, L === null ? (j = L = J, E = v) : L = L.next = J, ge.lanes |= ue, Js |= ue;
                P = P.next
            } while (P !== null && P !== t);
            if (L === null ? E = v : L.next = j, !T(v, e.memoizedState) && (ia = !0, ie && (a = N, a !== null))) throw a;
            e.memoizedState = v, e.baseState = E, e.baseQueue = L, i.lastRenderedState = v
        }
        return d === null && (i.lanes = 0), [e.memoizedState, i.dispatch]
    }

    function Dr(e) {
        var t = la(),
            a = t.queue;
        if (a === null) throw Error(c(311));
        a.lastRenderedReducer = e;
        var i = a.dispatch,
            d = a.pending,
            v = t.memoizedState;
        if (d !== null) {
            a.pending = null;
            var E = d = d.next;
            do v = e(v, E.action), E = E.next; while (E !== d);
            T(v, t.memoizedState) || (ia = !0), t.memoizedState = v, t.baseQueue === null && (t.baseState = v), a.lastRenderedState = v
        }
        return [v, i]
    }

    function ol(e, t, a) {
        var i = ge,
            d = la(),
            v = qe;
        if (v) {
            if (a === void 0) throw Error(c(407));
            a = a()
        } else a = t();
        var E = !T((ye || d).memoizedState, a);
        if (E && (d.memoizedState = a, ia = !0), d = d.queue, Ls(hu.bind(null, i, d, e), [e]), d.getSnapshot !== t || E || Ne !== null && Ne.memoizedState.tag & 1) {
            if (i.flags |= 2048, Un(9, Rs.bind(null, i, d, a, t), {
                    destroy: void 0
                }, null), Bt === null) throw Error(c(349));
            v || de & 60 || fu(i, t, a)
        }
        return a
    }

    function fu(e, t, a) {
        e.flags |= 16384, e = {
            getSnapshot: t,
            value: a
        }, t = ge.updateQueue, t === null ? (t = Oc(), ge.updateQueue = t, t.stores = [e]) : (a = t.stores, a === null ? t.stores = [e] : a.push(e))
    }

    function Rs(e, t, a, i) {
        t.value = a, t.getSnapshot = i, gu(t) && mu(e)
    }

    function hu(e, t, a) {
        return a(function() {
            gu(t) && mu(e)
        })
    }

    function gu(e) {
        var t = e.getSnapshot;
        e = e.value;
        try {
            var a = t();
            return !T(e, a)
        } catch {
            return !0
        }
    }

    function mu(e) {
        var t = Da(e, 2);
        t !== null && Hn(t, e, 2)
    }

    function No(e) {
        var t = mn();
        if (typeof e == "function") {
            var a = e;
            if (e = a(), Pt) {
                At(!0);
                try {
                    a()
                } finally {
                    At(!1)
                }
            }
        }
        return t.memoizedState = t.baseState = e, t.queue = {
            pending: null,
            lanes: 0,
            dispatch: null,
            lastRenderedReducer: Cl,
            lastRenderedState: e
        }, t
    }

    function vu(e, t, a, i) {
        return e.baseState = a, kc(e, ye, typeof i == "function" ? i : Cl)
    }

    function bd(e, t, a, i, d) {
        if (Hr(e)) throw Error(c(485));
        if (e = t.action, e !== null) {
            var v = {
                payload: d,
                action: e,
                next: null,
                isTransition: !0,
                status: "pending",
                value: null,
                reason: null,
                listeners: [],
                then: function(E) {
                    v.listeners.push(E)
                }
            };
            me.T !== null ? a(!0) : v.isTransition = !1, i(v), a = t.pending, a === null ? (v.next = t.pending = v, Os(t, v)) : (v.next = a.next, t.pending = a.next = v)
        }
    }

    function Os(e, t) {
        var a = t.action,
            i = t.payload,
            d = e.state;
        if (t.isTransition) {
            var v = me.T,
                E = {};
            me.T = E;
            try {
                var j = a(d, i),
                    L = me.S;
                L !== null && L(E, j), Ql(e, t, j)
            } catch (P) {
                Co(e, t, P)
            } finally {
                me.T = v
            }
        } else try {
            v = a(d, i), Ql(e, t, v)
        } catch (P) {
            Co(e, t, P)
        }
    }

    function Ql(e, t, a) {
        a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(function(i) {
            bu(e, t, i)
        }, function(i) {
            return Co(e, t, i)
        }) : bu(e, t, a)
    }

    function bu(e, t, a) {
        t.status = "fulfilled", t.value = a, _s(t), e.state = a, t = e.pending, t !== null && (a = t.next, a === t ? e.pending = null : (a = a.next, t.next = a, Os(e, a)))
    }

    function Co(e, t, a) {
        var i = e.pending;
        if (e.pending = null, i !== null) {
            i = i.next;
            do t.status = "rejected", t.reason = a, _s(t), t = t.next; while (t !== i)
        }
        e.action = null
    }

    function _s(e) {
        e = e.listeners;
        for (var t = 0; t < e.length; t++)(0, e[t])()
    }

    function xu(e, t) {
        return t
    }

    function qi(e, t) {
        if (qe) {
            var a = Bt.formState;
            if (a !== null) {
                e: {
                    var i = ge;
                    if (qe) {
                        if (Lt) {
                            t: {
                                for (var d = Lt, v = xa; d.nodeType !== 8;) {
                                    if (!v) {
                                        d = null;
                                        break t
                                    }
                                    if (d = yi(d.nextSibling), d === null) {
                                        d = null;
                                        break t
                                    }
                                }
                                v = d.data,
                                d = v === "F!" || v === "F" ? d : null
                            }
                            if (d) {
                                Lt = yi(d.nextSibling), i = d.data === "F!";
                                break e
                            }
                        }
                        yl(i)
                    }
                    i = !1
                }
                i && (t = a[0])
            }
        }
        return a = mn(), a.memoizedState = a.baseState = t, i = {
            pending: null,
            lanes: 0,
            dispatch: null,
            lastRenderedReducer: xu,
            lastRenderedState: t
        }, a.queue = i, a = Uc.bind(null, ge, i), i.dispatch = a, i = No(!1), v = Ao.bind(null, ge, !1, i.queue), i = mn(), d = {
            state: t,
            dispatch: null,
            action: e,
            pending: null
        }, i.queue = d, a = bd.bind(null, ge, d, v, a), d.dispatch = a, i.memoizedState = e, [t, a, !1]
    }

    function js(e) {
        var t = la();
        return ks(t, ye, e)
    }

    function ks(e, t, a) {
        t = kc(e, t, xu)[0], e = As(Cl)[0], t = typeof t == "object" && t !== null && typeof t.then == "function" ? Ms(t) : t;
        var i = la(),
            d = i.queue,
            v = d.dispatch;
        return a !== i.memoizedState && (ge.flags |= 2048, Un(9, zc.bind(null, d, a), {
            destroy: void 0
        }, null)), [t, v, e]
    }

    function zc(e, t) {
        e.action = t
    }

    function zs(e) {
        var t = la(),
            a = ye;
        if (a !== null) return ks(t, a, e);
        la(), t = t.memoizedState, a = la();
        var i = a.queue.dispatch;
        return a.memoizedState = e, [t, i, !1]
    }

    function Un(e, t, a, i) {
        return e = {
            tag: e,
            create: t,
            inst: a,
            deps: i,
            next: null
        }, t = ge.updateQueue, t === null && (t = Oc(), ge.updateQueue = t), a = t.lastEffect, a === null ? t.lastEffect = e.next = e : (i = a.next, a.next = e, e.next = i, t.lastEffect = e), e
    }

    function Eo() {
        return la().memoizedState
    }

    function Ds(e, t, a, i) {
        var d = mn();
        ge.flags |= e, d.memoizedState = Un(1 | t, a, {
            destroy: void 0
        }, i === void 0 ? null : i)
    }

    function Wl(e, t, a, i) {
        var d = la();
        i = i === void 0 ? null : i;
        var v = d.memoizedState.inst;
        ye !== null && i !== null && Et(i, ye.memoizedState.deps) ? d.memoizedState = Un(t, a, v, i) : (ge.flags |= e, d.memoizedState = Un(1 | t, a, v, i))
    }

    function pu(e, t) {
        Ds(8390656, 8, e, t)
    }

    function Ls(e, t) {
        Wl(2048, 8, e, t)
    }

    function yu(e, t) {
        return Wl(4, 2, e, t)
    }

    function Us(e, t) {
        return Wl(4, 4, e, t)
    }

    function Su(e, t) {
        if (typeof t == "function") {
            e = e();
            var a = t(e);
            return function() {
                typeof a == "function" ? a() : t(null)
            }
        }
        if (t != null) return e = e(), t.current = e,
            function() {
                t.current = null
            }
    }

    function Bs(e, t, a) {
        a = a != null ? a.concat([e]) : null, Wl(4, 4, Su.bind(null, t, e), a)
    }

    function Lr() {}

    function wu(e, t) {
        var a = la();
        t = t === void 0 ? null : t;
        var i = a.memoizedState;
        return t !== null && Et(t, i[1]) ? i[0] : (a.memoizedState = [e, t], e)
    }

    function Nu(e, t) {
        var a = la();
        t = t === void 0 ? null : t;
        var i = a.memoizedState;
        if (t !== null && Et(t, i[1])) return i[0];
        if (i = e(), Pt) {
            At(!0);
            try {
                e()
            } finally {
                At(!1)
            }
        }
        return a.memoizedState = [i, t], i
    }

    function Dc(e, t, a) {
        return a === void 0 || de & 1073741824 ? e.memoizedState = t : (e.memoizedState = a, e = tm(), ge.lanes |= e, Js |= e, a)
    }

    function xd(e, t, a, i) {
        return T(a, t) ? a : un.current !== null ? (e = Dc(e, a, i), T(e, t) || (ia = !0), e) : de & 42 ? (e = tm(), ge.lanes |= e, Js |= e, t) : (ia = !0, e.memoizedState = a)
    }

    function xi(e, t, a, i, d) {
        var v = Re.p;
        Re.p = v !== 0 && 8 > v ? v : 8;
        var E = me.T,
            j = {};
        me.T = j, Ao(e, !1, t, a);
        try {
            var L = d(),
                P = me.S;
            if (P !== null && P(j, L), L !== null && typeof L == "object" && typeof L.then == "function") {
                var ie = B(L, i);
                $i(e, t, ie, Ol(e))
            } else $i(e, t, i, Ol(e))
        } catch (ue) {
            $i(e, t, {
                then: function() {},
                status: "rejected",
                reason: ue
            }, Ol())
        } finally {
            Re.p = v, me.T = E
        }
    }

    function To() {}

    function Ur(e, t, a, i) {
        if (e.tag !== 5) throw Error(c(476));
        var d = Br(e).queue;
        xi(e, d, t, Qt, a === null ? To : function() {
            return Lc(e), a(i)
        })
    }

    function Br(e) {
        var t = e.memoizedState;
        if (t !== null) return t;
        t = {
            memoizedState: Qt,
            baseState: Qt,
            baseQueue: null,
            queue: {
                pending: null,
                lanes: 0,
                dispatch: null,
                lastRenderedReducer: Cl,
                lastRenderedState: Qt
            },
            next: null
        };
        var a = {};
        return t.next = {
            memoizedState: a,
            baseState: a,
            baseQueue: null,
            queue: {
                pending: null,
                lanes: 0,
                dispatch: null,
                lastRenderedReducer: Cl,
                lastRenderedState: a
            },
            next: null
        }, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t
    }

    function Lc(e) {
        var t = Br(e).next.queue;
        $i(e, t, {}, Ol())
    }

    function Hs() {
        return Mn(Ju)
    }

    function Mo() {
        return la().memoizedState
    }

    function Cu() {
        return la().memoizedState
    }

    function Eu(e) {
        for (var t = e.return; t !== null;) {
            switch (t.tag) {
                case 24:
                case 3:
                    var a = Ol();
                    e = Vs(a);
                    var i = Zs(t, e, a);
                    i !== null && (Hn(i, t, a), zu(i, t, a)), t = {
                        cache: gn()
                    }, e.payload = t;
                    return
            }
            t = t.return
        }
    }

    function pd(e, t, a) {
        var i = Ol();
        a = {
            lane: i,
            revertLane: 0,
            action: a,
            hasEagerState: !1,
            eagerState: null,
            next: null
        }, Hr(e) ? Ro(t, a) : (a = hi(e, t, a, i), a !== null && (Hn(a, e, i), Tu(a, t, i)))
    }

    function Uc(e, t, a) {
        var i = Ol();
        $i(e, t, a, i)
    }

    function $i(e, t, a, i) {
        var d = {
            lane: i,
            revertLane: 0,
            action: a,
            hasEagerState: !1,
            eagerState: null,
            next: null
        };
        if (Hr(e)) Ro(t, d);
        else {
            var v = e.alternate;
            if (e.lanes === 0 && (v === null || v.lanes === 0) && (v = t.lastRenderedReducer, v !== null)) try {
                var E = t.lastRenderedState,
                    j = v(E, a);
                if (d.hasEagerState = !0, d.eagerState = j, T(j, E)) return fi(e, t, d, 0), Bt === null && sn(), !1
            } catch {} finally {}
            if (a = hi(e, t, d, i), a !== null) return Hn(a, e, i), Tu(a, t, i), !0
        }
        return !1
    }

    function Ao(e, t, a, i) {
        if (i = {
                lane: 2,
                revertLane: oh(),
                action: i,
                hasEagerState: !1,
                eagerState: null,
                next: null
            }, Hr(e)) {
            if (t) throw Error(c(479))
        } else t = hi(e, a, i, 2), t !== null && Hn(t, e, 2)
    }

    function Hr(e) {
        var t = e.alternate;
        return e === ge || t !== null && t === ge
    }

    function Ro(e, t) {
        _t = Ot = !0;
        var a = e.pending;
        a === null ? t.next = t : (t.next = a.next, a.next = t), e.pending = t
    }

    function Tu(e, t, a) {
        if (a & 4194176) {
            var i = t.lanes;
            i &= e.pendingLanes, a |= i, t.lanes = a, uc(e, a)
        }
    }
    var El = {
        readContext: Mn,
        use: _c,
        useCallback: Ie,
        useContext: Ie,
        useEffect: Ie,
        useImperativeHandle: Ie,
        useLayoutEffect: Ie,
        useInsertionEffect: Ie,
        useMemo: Ie,
        useReducer: Ie,
        useRef: Ie,
        useState: Ie,
        useDebugValue: Ie,
        useDeferredValue: Ie,
        useTransition: Ie,
        useSyncExternalStore: Ie,
        useId: Ie
    };
    El.useCacheRefresh = Ie, El.useMemoCache = Ie, El.useHostTransitionStatus = Ie, El.useFormState = Ie, El.useActionState = Ie, El.useOptimistic = Ie;
    var Il = {
        readContext: Mn,
        use: _c,
        useCallback: function(e, t) {
            return mn().memoizedState = [e, t === void 0 ? null : t], e
        },
        useContext: Mn,
        useEffect: pu,
        useImperativeHandle: function(e, t, a) {
            a = a != null ? a.concat([e]) : null, Ds(4194308, 4, Su.bind(null, t, e), a)
        },
        useLayoutEffect: function(e, t) {
            return Ds(4194308, 4, e, t)
        },
        useInsertionEffect: function(e, t) {
            Ds(4, 2, e, t)
        },
        useMemo: function(e, t) {
            var a = mn();
            t = t === void 0 ? null : t;
            var i = e();
            if (Pt) {
                At(!0);
                try {
                    e()
                } finally {
                    At(!1)
                }
            }
            return a.memoizedState = [i, t], i
        },
        useReducer: function(e, t, a) {
            var i = mn();
            if (a !== void 0) {
                var d = a(t);
                if (Pt) {
                    At(!0);
                    try {
                        a(t)
                    } finally {
                        At(!1)
                    }
                }
            } else d = t;
            return i.memoizedState = i.baseState = d, e = {
                pending: null,
                lanes: 0,
                dispatch: null,
                lastRenderedReducer: e,
                lastRenderedState: d
            }, i.queue = e, e = e.dispatch = pd.bind(null, ge, e), [i.memoizedState, e]
        },
        useRef: function(e) {
            var t = mn();
            return e = {
                current: e
            }, t.memoizedState = e
        },
        useState: function(e) {
            e = No(e);
            var t = e.queue,
                a = Uc.bind(null, ge, t);
            return t.dispatch = a, [e.memoizedState, a]
        },
        useDebugValue: Lr,
        useDeferredValue: function(e, t) {
            var a = mn();
            return Dc(a, e, t)
        },
        useTransition: function() {
            var e = No(!1);
            return e = xi.bind(null, ge, e.queue, !0, !1), mn().memoizedState = e, [!1, e]
        },
        useSyncExternalStore: function(e, t, a) {
            var i = ge,
                d = mn();
            if (qe) {
                if (a === void 0) throw Error(c(407));
                a = a()
            } else {
                if (a = t(), Bt === null) throw Error(c(349));
                ot & 60 || fu(i, t, a)
            }
            d.memoizedState = a;
            var v = {
                value: a,
                getSnapshot: t
            };
            return d.queue = v, pu(hu.bind(null, i, v, e), [e]), i.flags |= 2048, Un(9, Rs.bind(null, i, v, a, t), {
                destroy: void 0
            }, null), a
        },
        useId: function() {
            var e = mn(),
                t = Bt.identifierPrefix;
            if (qe) {
                var a = al,
                    i = It;
                a = (i & ~(1 << 32 - Wt(i) - 1)).toString(32) + a, t = ":" + t + "R" + a, a = yt++, 0 < a && (t += "H" + a.toString(32)), t += ":"
            } else a = Ua++, t = ":" + t + "r" + a.toString(32) + ":";
            return e.memoizedState = t
        },
        useCacheRefresh: function() {
            return mn().memoizedState = Eu.bind(null, ge)
        }
    };
    Il.useMemoCache = jc, Il.useHostTransitionStatus = Hs, Il.useFormState = qi, Il.useActionState = qi, Il.useOptimistic = function(e) {
        var t = mn();
        t.memoizedState = t.baseState = e;
        var a = {
            pending: null,
            lanes: 0,
            dispatch: null,
            lastRenderedReducer: null,
            lastRenderedState: null
        };
        return t.queue = a, t = Ao.bind(null, ge, !0, a), a.dispatch = t, [e, t]
    };
    var Tn = {
        readContext: Mn,
        use: _c,
        useCallback: wu,
        useContext: Mn,
        useEffect: Ls,
        useImperativeHandle: Bs,
        useInsertionEffect: yu,
        useLayoutEffect: Us,
        useMemo: Nu,
        useReducer: As,
        useRef: Eo,
        useState: function() {
            return As(Cl)
        },
        useDebugValue: Lr,
        useDeferredValue: function(e, t) {
            var a = la();
            return xd(a, ye.memoizedState, e, t)
        },
        useTransition: function() {
            var e = As(Cl)[0],
                t = la().memoizedState;
            return [typeof e == "boolean" ? e : Ms(e), t]
        },
        useSyncExternalStore: ol,
        useId: Mo
    };
    Tn.useCacheRefresh = Cu, Tn.useMemoCache = jc, Tn.useHostTransitionStatus = Hs, Tn.useFormState = js, Tn.useActionState = js, Tn.useOptimistic = function(e, t) {
        var a = la();
        return vu(a, ye, e, t)
    };
    var ul = {
        readContext: Mn,
        use: _c,
        useCallback: wu,
        useContext: Mn,
        useEffect: Ls,
        useImperativeHandle: Bs,
        useInsertionEffect: yu,
        useLayoutEffect: Us,
        useMemo: Nu,
        useReducer: Dr,
        useRef: Eo,
        useState: function() {
            return Dr(Cl)
        },
        useDebugValue: Lr,
        useDeferredValue: function(e, t) {
            var a = la();
            return ye === null ? Dc(a, e, t) : xd(a, ye.memoizedState, e, t)
        },
        useTransition: function() {
            var e = Dr(Cl)[0],
                t = la().memoizedState;
            return [typeof e == "boolean" ? e : Ms(e), t]
        },
        useSyncExternalStore: ol,
        useId: Mo
    };
    ul.useCacheRefresh = Cu, ul.useMemoCache = jc, ul.useHostTransitionStatus = Hs, ul.useFormState = zs, ul.useActionState = zs, ul.useOptimistic = function(e, t) {
        var a = la();
        return ye !== null ? vu(a, ye, e, t) : (a.baseState = e, [e, a.queue.dispatch])
    };

    function Oo(e, t, a, i) {
        t = e.memoizedState, a = a(i, t), a = a == null ? t : Le({}, t, a), e.memoizedState = a, e.lanes === 0 && (e.updateQueue.baseState = a)
    }
    var Fr = {
        isMounted: function(e) {
            return (e = e._reactInternals) ? Me(e) === e : !1
        },
        enqueueSetState: function(e, t, a) {
            e = e._reactInternals;
            var i = Ol(),
                d = Vs(i);
            d.payload = t, a != null && (d.callback = a), t = Zs(e, d, i), t !== null && (Hn(t, e, i), zu(t, e, i))
        },
        enqueueReplaceState: function(e, t, a) {
            e = e._reactInternals;
            var i = Ol(),
                d = Vs(i);
            d.tag = 1, d.payload = t, a != null && (d.callback = a), t = Zs(e, d, i), t !== null && (Hn(t, e, i), zu(t, e, i))
        },
        enqueueForceUpdate: function(e, t) {
            e = e._reactInternals;
            var a = Ol(),
                i = Vs(a);
            i.tag = 2, t != null && (i.callback = t), t = Zs(e, i, a), t !== null && (Hn(t, e, a), zu(t, e, a))
        }
    };

    function Bc(e, t, a, i, d, v, E) {
        return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(i, v, E) : t.prototype && t.prototype.isPureReactComponent ? !D(a, i) || !D(d, v) : !0
    }

    function Fs(e, t, a, i) {
        e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(a, i), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(a, i), t.state !== e && Fr.enqueueReplaceState(t, t.state, null)
    }

    function er(e, t) {
        var a = t;
        if ("ref" in t) {
            a = {};
            for (var i in t) i !== "ref" && (a[i] = t[i])
        }
        if (e = e.defaultProps) {
            a === t && (a = Le({}, a));
            for (var d in e) a[d] === void 0 && (a[d] = e[d])
        }
        return a
    }
    var Kl = typeof reportError == "function" ? reportError : function(e) {
        if (typeof window == "object" && typeof window.ErrorEvent == "function") {
            var t = new window.ErrorEvent("error", {
                bubbles: !0,
                cancelable: !0,
                message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
                error: e
            });
            if (!window.dispatchEvent(t)) return
        } else if (typeof process == "object" && typeof process.emit == "function") {
            process.emit("uncaughtException", e);
            return
        }
        console.error(e)
    };

    function Mu(e) {
        Kl(e)
    }

    function Gr(e) {
        console.error(e)
    }

    function Au(e) {
        Kl(e)
    }

    function Yr(e, t) {
        try {
            var a = e.onUncaughtError;
            a(t.value, {
                componentStack: t.stack
            })
        } catch (i) {
            setTimeout(function() {
                throw i
            })
        }
    }

    function _o(e, t, a) {
        try {
            var i = e.onCaughtError;
            i(a.value, {
                componentStack: a.stack,
                errorBoundary: t.tag === 1 ? t.stateNode : null
            })
        } catch (d) {
            setTimeout(function() {
                throw d
            })
        }
    }

    function Xr(e, t, a) {
        return a = Vs(a), a.tag = 3, a.payload = {
            element: null
        }, a.callback = function() {
            Yr(e, t)
        }, a
    }

    function Ru(e) {
        return e = Vs(e), e.tag = 3, e
    }

    function Gs(e, t, a, i) {
        var d = a.type.getDerivedStateFromError;
        if (typeof d == "function") {
            var v = i.value;
            e.payload = function() {
                return d(v)
            }, e.callback = function() {
                _o(t, a, i)
            }
        }
        var E = a.stateNode;
        E !== null && typeof E.componentDidCatch == "function" && (e.callback = function() {
            _o(t, a, i), typeof d != "function" && (qs === null ? qs = new Set([this]) : qs.add(this));
            var j = i.stack;
            this.componentDidCatch(i.value, {
                componentStack: j !== null ? j : ""
            })
        })
    }

    function Hc(e, t, a, i, d) {
        if (a.flags |= 32768, i !== null && typeof i == "object" && typeof i.then == "function") {
            if (t = a.alternate, t !== null && ku(t, a, d, !0), a = pa.current, a !== null) {
                switch (a.tag) {
                    case 13:
                        return dn === null ? lh() : a.alternate === null && ha === 0 && (ha = 3), a.flags &= -257, a.flags |= 65536, a.lanes = d, i === on ? a.flags |= 16384 : (t = a.updateQueue, t === null ? a.updateQueue = new Set([i]) : t.add(i), rh(e, i, d)), !1;
                    case 22:
                        return a.flags |= 65536, i === on ? a.flags |= 16384 : (t = a.updateQueue, t === null ? (t = {
                            transitions: null,
                            markerInstances: null,
                            retryQueue: new Set([i])
                        }, a.updateQueue = t) : (a = t.retryQueue, a === null ? t.retryQueue = new Set([i]) : a.add(i)), rh(e, i, d)), !1
                }
                throw Error(c(435, a.tag))
            }
            return rh(e, i, d), lh(), !1
        }
        if (qe) return t = pa.current, t !== null ? (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = d, i !== Ii && (e = Error(c(422), {
            cause: i
        }), il(Na(e, a)))) : (i !== Ii && (t = Error(c(423), {
            cause: i
        }), il(Na(t, a))), e = e.current.alternate, e.flags |= 65536, d &= -d, e.lanes |= d, i = Na(i, a), d = Xr(e.stateNode, i, d), Bf(e, d), ha !== 4 && (ha = 2)), !1;
        var v = Error(c(520), {
            cause: i
        });
        if (v = Na(v, a), Yu === null ? Yu = [v] : Yu.push(v), ha !== 4 && (ha = 2), t === null) return !0;
        i = Na(i, a), a = t;
        do {
            switch (a.tag) {
                case 3:
                    return a.flags |= 65536, e = d & -d, a.lanes |= e, e = Xr(a.stateNode, i, e), Bf(a, e), !1;
                case 1:
                    if (t = a.type, v = a.stateNode, (a.flags & 128) === 0 && (typeof t.getDerivedStateFromError == "function" || v !== null && typeof v.componentDidCatch == "function" && (qs === null || !qs.has(v)))) return a.flags |= 65536, d &= -d, a.lanes |= d, d = Ru(d), Gs(d, e, a, i), Bf(a, d), !1
            }
            a = a.return
        } while (a !== null);
        return !1
    }
    var Ys = Error(c(461)),
        ia = !1;

    function Vt(e, t, a, i) {
        t.child = e === null ? Ac(t, null, a, i) : aa(t, e.child, a, i)
    }

    function Ba(e, t, a, i, d) {
        a = a.render;
        var v = t.ref;
        if ("ref" in i) {
            var E = {};
            for (var j in i) j !== "ref" && (E[j] = i[j])
        } else E = i;
        return Xc(t), i = na(e, t, a, E, v, d), j = Ji(), e !== null && !ia ? (kr(e, t, d), Vr(e, t, d)) : (qe && j && pl(t), t.flags |= 1, Vt(e, t, i, d), t.child)
    }

    function Ea(e, t, a, i, d) {
        if (e === null) {
            var v = a.type;
            return typeof v == "function" && !Zf(v) && v.defaultProps === void 0 && a.compare === null ? (t.tag = 15, t.type = v, Ou(e, t, v, i, d)) : (e = Cd(a.type, null, i, t, t.mode, d), e.ref = t.ref, e.return = t, t.child = e)
        }
        if (v = e.child, !jf(e, d)) {
            var E = v.memoizedProps;
            if (a = a.compare, a = a !== null ? a : D, a(E, i) && e.ref === t.ref) return Vr(e, t, d)
        }
        return t.flags |= 1, e = Ks(v, i), e.ref = t.ref, e.return = t, t.child = e
    }

    function Ou(e, t, a, i, d) {
        if (e !== null) {
            var v = e.memoizedProps;
            if (D(v, i) && e.ref === t.ref)
                if (ia = !1, t.pendingProps = i = v, jf(e, d)) e.flags & 131072 && (ia = !0);
                else return t.lanes = e.lanes, Vr(e, t, d)
        }
        return Fc(e, t, a, i, d)
    }

    function Pr(e, t, a) {
        var i = t.pendingProps,
            d = i.children,
            v = (t.stateNode._pendingVisibility & 2) !== 0,
            E = e !== null ? e.memoizedState : null;
        if (Tl(e, t), i.mode === "hidden" || v) {
            if (t.flags & 128) {
                if (i = E !== null ? E.baseLanes | a : a, e !== null) {
                    for (d = t.child = e.child, v = 0; d !== null;) v = v | d.lanes | d.childLanes, d = d.sibling;
                    t.childLanes = v & ~i
                } else t.childLanes = 0, t.child = null;
                return jo(e, t, i, a)
            }
            if (a & 536870912) t.memoizedState = {
                baseLanes: 0,
                cachePool: null
            }, e !== null && ce(t, E !== null ? E.cachePool : null), E !== null ? jr(t, E) : Xl(), Ln(t);
            else return t.lanes = t.childLanes = 536870912, jo(e, t, E !== null ? E.baseLanes | a : a, a)
        } else E !== null ? (ce(t, E.cachePool), jr(t, E), Ca(), t.memoizedState = null) : (e !== null && ce(t, null), Xl(), Ca());
        return Vt(e, t, d, a), t.child
    }

    function jo(e, t, a, i) {
        var d = q();
        return d = d === null ? null : {
            parent: Xt._currentValue,
            pool: d
        }, t.memoizedState = {
            baseLanes: a,
            cachePool: d
        }, e !== null && ce(t, null), Xl(), Ln(t), e !== null && ku(e, t, i, !0), null
    }

    function Tl(e, t) {
        var a = t.ref;
        if (a === null) e !== null && e.ref !== null && (t.flags |= 2097664);
        else {
            if (typeof a != "function" && typeof a != "object") throw Error(c(284));
            (e === null || e.ref !== a) && (t.flags |= 2097664)
        }
    }

    function Fc(e, t, a, i, d) {
        return Xc(t), a = na(e, t, a, i, void 0, d), i = Ji(), e !== null && !ia ? (kr(e, t, d), Vr(e, t, d)) : (qe && i && pl(t), t.flags |= 1, Vt(e, t, a, d), t.child)
    }

    function _u(e, t, a, i, d, v) {
        return Xc(t), t.updateQueue = null, a = Qa(t, i, a, d), Za(e), i = Ji(), e !== null && !ia ? (kr(e, t, v), Vr(e, t, v)) : (qe && i && pl(t), t.flags |= 1, Vt(e, t, a, v), t.child)
    }

    function tr(e, t, a, i, d) {
        if (Xc(t), t.stateNode === null) {
            var v = va,
                E = a.contextType;
            typeof E == "object" && E !== null && (v = Mn(E)), v = new a(i, v), t.memoizedState = v.state !== null && v.state !== void 0 ? v.state : null, v.updater = Fr, t.stateNode = v, v._reactInternals = t, v = t.stateNode, v.props = i, v.state = t.memoizedState, v.refs = {}, Lf(t), E = a.contextType, v.context = typeof E == "object" && E !== null ? Mn(E) : va, v.state = t.memoizedState, E = a.getDerivedStateFromProps, typeof E == "function" && (Oo(t, a, E, i), v.state = t.memoizedState), typeof a.getDerivedStateFromProps == "function" || typeof v.getSnapshotBeforeUpdate == "function" || typeof v.UNSAFE_componentWillMount != "function" && typeof v.componentWillMount != "function" || (E = v.state, typeof v.componentWillMount == "function" && v.componentWillMount(), typeof v.UNSAFE_componentWillMount == "function" && v.UNSAFE_componentWillMount(), E !== v.state && Fr.enqueueReplaceState(v, v.state, null), Lu(t, i, v, d), Du(), v.state = t.memoizedState), typeof v.componentDidMount == "function" && (t.flags |= 4194308), i = !0
        } else if (e === null) {
            v = t.stateNode;
            var j = t.memoizedProps,
                L = er(a, j);
            v.props = L;
            var P = v.context,
                ie = a.contextType;
            E = va, typeof ie == "object" && ie !== null && (E = Mn(ie));
            var ue = a.getDerivedStateFromProps;
            ie = typeof ue == "function" || typeof v.getSnapshotBeforeUpdate == "function", j = t.pendingProps !== j, ie || typeof v.UNSAFE_componentWillReceiveProps != "function" && typeof v.componentWillReceiveProps != "function" || (j || P !== E) && Fs(t, v, i, E), Ps = !1;
            var J = t.memoizedState;
            v.state = J, Lu(t, i, v, d), Du(), P = t.memoizedState, j || J !== P || Ps ? (typeof ue == "function" && (Oo(t, a, ue, i), P = t.memoizedState), (L = Ps || Bc(t, a, L, i, J, P, E)) ? (ie || typeof v.UNSAFE_componentWillMount != "function" && typeof v.componentWillMount != "function" || (typeof v.componentWillMount == "function" && v.componentWillMount(), typeof v.UNSAFE_componentWillMount == "function" && v.UNSAFE_componentWillMount()), typeof v.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof v.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = i, t.memoizedState = P), v.props = i, v.state = P, v.context = E, i = L) : (typeof v.componentDidMount == "function" && (t.flags |= 4194308), i = !1)
        } else {
            v = t.stateNode, Uf(e, t), E = t.memoizedProps, ie = er(a, E), v.props = ie, ue = t.pendingProps, J = v.context, P = a.contextType, L = va, typeof P == "object" && P !== null && (L = Mn(P)), j = a.getDerivedStateFromProps, (P = typeof j == "function" || typeof v.getSnapshotBeforeUpdate == "function") || typeof v.UNSAFE_componentWillReceiveProps != "function" && typeof v.componentWillReceiveProps != "function" || (E !== ue || J !== L) && Fs(t, v, i, L), Ps = !1, J = t.memoizedState, v.state = J, Lu(t, i, v, d), Du();
            var ne = t.memoizedState;
            E !== ue || J !== ne || Ps || e !== null && e.dependencies !== null && yd(e.dependencies) ? (typeof j == "function" && (Oo(t, a, j, i), ne = t.memoizedState), (ie = Ps || Bc(t, a, ie, i, J, ne, L) || e !== null && e.dependencies !== null && yd(e.dependencies)) ? (P || typeof v.UNSAFE_componentWillUpdate != "function" && typeof v.componentWillUpdate != "function" || (typeof v.componentWillUpdate == "function" && v.componentWillUpdate(i, ne, L), typeof v.UNSAFE_componentWillUpdate == "function" && v.UNSAFE_componentWillUpdate(i, ne, L)), typeof v.componentDidUpdate == "function" && (t.flags |= 4), typeof v.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof v.componentDidUpdate != "function" || E === e.memoizedProps && J === e.memoizedState || (t.flags |= 4), typeof v.getSnapshotBeforeUpdate != "function" || E === e.memoizedProps && J === e.memoizedState || (t.flags |= 1024), t.memoizedProps = i, t.memoizedState = ne), v.props = i, v.state = ne, v.context = L, i = ie) : (typeof v.componentDidUpdate != "function" || E === e.memoizedProps && J === e.memoizedState || (t.flags |= 4), typeof v.getSnapshotBeforeUpdate != "function" || E === e.memoizedProps && J === e.memoizedState || (t.flags |= 1024), i = !1)
        }
        return v = i, Tl(e, t), i = (t.flags & 128) !== 0, v || i ? (v = t.stateNode, a = i && typeof a.getDerivedStateFromError != "function" ? null : v.render(), t.flags |= 1, e !== null && i ? (t.child = aa(t, e.child, null, d), t.child = aa(t, null, a, d)) : Vt(e, t, a, d), t.memoizedState = v.state, e = t.child) : e = Vr(e, t, d), e
    }

    function ko(e, t, a, i) {
        return Sl(), t.flags |= 256, Vt(e, t, a, i), t.child
    }
    var zo = {
        dehydrated: null,
        treeContext: null,
        retryLane: 0
    };

    function Do(e) {
        return {
            baseLanes: e,
            cachePool: le()
        }
    }

    function Gc(e, t, a) {
        return e = e !== null ? e.childLanes & ~a : 0, t && (e |= ei), e
    }

    function ju(e, t, a) {
        var i = t.pendingProps,
            d = !1,
            v = (t.flags & 128) !== 0,
            E;
        if ((E = v) || (E = e !== null && e.memoizedState === null ? !1 : (Ct.current & 2) !== 0), E && (d = !0, t.flags &= -129), E = (t.flags & 32) !== 0, t.flags &= -33, e === null) {
            if (qe) {
                if (d ? fn(t) : Ca(), qe) {
                    var j = Lt,
                        L;
                    if (L = j) {
                        e: {
                            for (L = j, j = xa; L.nodeType !== 8;) {
                                if (!j) {
                                    j = null;
                                    break e
                                }
                                if (L = yi(L.nextSibling), L === null) {
                                    j = null;
                                    break e
                                }
                            }
                            j = L
                        }
                        j !== null ? (t.memoizedState = {
                            dehydrated: j,
                            treeContext: Va !== null ? {
                                id: It,
                                overflow: al
                            } : null,
                            retryLane: 536870912
                        }, L = $l(18, null, null, 0), L.stateNode = j, L.return = t, t.child = L, Dt = t, Lt = null, L = !0) : L = !1
                    }
                    L || yl(t)
                }
                if (j = t.memoizedState, j !== null && (j = j.dehydrated, j !== null)) return j.data === "$!" ? t.lanes = 16 : t.lanes = 536870912, null;
                En(t)
            }
            return j = i.children, i = i.fallback, d ? (Ca(), d = t.mode, j = Bn({
                mode: "hidden",
                children: j
            }, d), i = Vc(i, d, a, null), j.return = t, i.return = t, j.sibling = i, t.child = j, d = t.child, d.memoizedState = Do(a), d.childLanes = Gc(e, E, a), t.memoizedState = zo, i) : (fn(t), ar(t, j))
        }
        if (L = e.memoizedState, L !== null && (j = L.dehydrated, j !== null)) {
            if (v) t.flags & 256 ? (fn(t), t.flags &= -257, t = Lo(e, t, a)) : t.memoizedState !== null ? (Ca(), t.child = e.child, t.flags |= 128, t = null) : (Ca(), d = i.fallback, j = t.mode, i = Bn({
                mode: "visible",
                children: i.children
            }, j), d = Vc(d, j, a, null), d.flags |= 2, i.return = t, d.return = t, i.sibling = d, t.child = i, aa(t, e.child, null, a), i = t.child, i.memoizedState = Do(a), i.childLanes = Gc(e, E, a), t.memoizedState = zo, t = d);
            else if (fn(t), j.data === "$!") {
                if (E = j.nextSibling && j.nextSibling.dataset, E) var P = E.dgst;
                E = P, i = Error(c(419)), i.stack = "", i.digest = E, il({
                    value: i,
                    source: null,
                    stack: null
                }), t = Lo(e, t, a)
            } else if (ia || ku(e, t, a, !1), E = (a & e.childLanes) !== 0, ia || E) {
                if (E = Bt, E !== null) {
                    if (i = a & -a, i & 42) i = 1;
                    else switch (i) {
                        case 2:
                            i = 1;
                            break;
                        case 8:
                            i = 4;
                            break;
                        case 32:
                            i = 16;
                            break;
                        case 128:
                        case 256:
                        case 512:
                        case 1024:
                        case 2048:
                        case 4096:
                        case 8192:
                        case 16384:
                        case 32768:
                        case 65536:
                        case 131072:
                        case 262144:
                        case 524288:
                        case 1048576:
                        case 2097152:
                        case 4194304:
                        case 8388608:
                        case 16777216:
                        case 33554432:
                            i = 64;
                            break;
                        case 268435456:
                            i = 134217728;
                            break;
                        default:
                            i = 0
                    }
                    if (i = i & (E.suspendedLanes | a) ? 0 : i, i !== 0 && i !== L.retryLane) throw L.retryLane = i, Da(e, i), Hn(E, e, i), Ys
                }
                j.data === "$?" || lh(), t = Lo(e, t, a)
            } else j.data === "$?" ? (t.flags |= 128, t.child = e.child, t = $1.bind(null, e), j._reactRetry = t, t = null) : (e = L.treeContext, Lt = yi(j.nextSibling), Dt = t, qe = !0, Kt = null, xa = !1, e !== null && (cn[ba++] = It, cn[ba++] = al, cn[ba++] = Va, It = e.id, al = e.overflow, Va = t), t = ar(t, i.children), t.flags |= 4096);
            return t
        }
        return d ? (Ca(), d = i.fallback, j = t.mode, L = e.child, P = L.sibling, i = Ks(L, {
            mode: "hidden",
            children: i.children
        }), i.subtreeFlags = L.subtreeFlags & 31457280, P !== null ? d = Ks(P, d) : (d = Vc(d, j, a, null), d.flags |= 2), d.return = t, i.return = t, i.sibling = d, t.child = i, i = d, d = t.child, j = e.child.memoizedState, j === null ? j = Do(a) : (L = j.cachePool, L !== null ? (P = Xt._currentValue, L = L.parent !== P ? {
            parent: P,
            pool: P
        } : L) : L = le(), j = {
            baseLanes: j.baseLanes | a,
            cachePool: L
        }), d.memoizedState = j, d.childLanes = Gc(e, E, a), t.memoizedState = zo, i) : (fn(t), a = e.child, e = a.sibling, a = Ks(a, {
            mode: "visible",
            children: i.children
        }), a.return = t, a.sibling = null, e !== null && (E = t.deletions, E === null ? (t.deletions = [e], t.flags |= 16) : E.push(e)), t.child = a, t.memoizedState = null, a)
    }

    function ar(e, t) {
        return t = Bn({
            mode: "visible",
            children: t
        }, e.mode), t.return = e, e.child = t
    }

    function Bn(e, t) {
        return qg(e, t, 0, null)
    }

    function Lo(e, t, a) {
        return aa(t, e.child, null, a), e = ar(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e
    }

    function Mg(e, t, a) {
        e.lanes |= t;
        var i = e.alternate;
        i !== null && (i.lanes |= t), zf(e.return, t, a)
    }

    function _f(e, t, a, i, d) {
        var v = e.memoizedState;
        v === null ? e.memoizedState = {
            isBackwards: t,
            rendering: null,
            renderingStartTime: 0,
            last: i,
            tail: a,
            tailMode: d
        } : (v.isBackwards = t, v.rendering = null, v.renderingStartTime = 0, v.last = i, v.tail = a, v.tailMode = d)
    }

    function Ag(e, t, a) {
        var i = t.pendingProps,
            d = i.revealOrder,
            v = i.tail;
        if (Vt(e, t, i.children, a), i = Ct.current, i & 2) i = i & 1 | 2, t.flags |= 128;
        else {
            if (e !== null && e.flags & 128) e: for (e = t.child; e !== null;) {
                if (e.tag === 13) e.memoizedState !== null && Mg(e, a, t);
                else if (e.tag === 19) Mg(e, a, t);
                else if (e.child !== null) {
                    e.child.return = e, e = e.child;
                    continue
                }
                if (e === t) break e;
                for (; e.sibling === null;) {
                    if (e.return === null || e.return === t) break e;
                    e = e.return
                }
                e.sibling.return = e.return, e = e.sibling
            }
            i &= 1
        }
        switch (We(Ct, i), d) {
            case "forwards":
                for (a = t.child, d = null; a !== null;) e = a.alternate, e !== null && Vl(e) === null && (d = a), a = a.sibling;
                a = d, a === null ? (d = t.child, t.child = null) : (d = a.sibling, a.sibling = null), _f(t, !1, d, a, v);
                break;
            case "backwards":
                for (a = null, d = t.child, t.child = null; d !== null;) {
                    if (e = d.alternate, e !== null && Vl(e) === null) {
                        t.child = d;
                        break
                    }
                    e = d.sibling, d.sibling = a, a = d, d = e
                }
                _f(t, !0, a, null, v);
                break;
            case "together":
                _f(t, !1, null, null, void 0);
                break;
            default:
                t.memoizedState = null
        }
        return t.child
    }

    function Vr(e, t, a) {
        if (e !== null && (t.dependencies = e.dependencies), Js |= t.lanes, !(a & t.childLanes))
            if (e !== null) {
                if (ku(e, t, a, !1), (a & t.childLanes) === 0) return null
            } else return null;
        if (e !== null && t.child !== e.child) throw Error(c(153));
        if (t.child !== null) {
            for (e = t.child, a = Ks(e, e.pendingProps), t.child = a, a.return = t; e.sibling !== null;) e = e.sibling, a = a.sibling = Ks(e, e.pendingProps), a.return = t;
            a.sibling = null
        }
        return t.child
    }

    function jf(e, t) {
        return e.lanes & t ? !0 : (e = e.dependencies, !!(e !== null && yd(e)))
    }

    function H1(e, t, a) {
        switch (t.tag) {
            case 3:
                $t(t, t.stateNode.containerInfo), Xs(t, Xt, e.memoizedState.cache), Sl();
                break;
            case 27:
            case 5:
                Pn(t);
                break;
            case 4:
                $t(t, t.stateNode.containerInfo);
                break;
            case 10:
                Xs(t, t.type, t.memoizedProps.value);
                break;
            case 13:
                var i = t.memoizedState;
                if (i !== null) return i.dehydrated !== null ? (fn(t), t.flags |= 128, null) : a & t.child.childLanes ? ju(e, t, a) : (fn(t), e = Vr(e, t, a), e !== null ? e.sibling : null);
                fn(t);
                break;
            case 19:
                var d = (e.flags & 128) !== 0;
                if (i = (a & t.childLanes) !== 0, i || (ku(e, t, a, !1), i = (a & t.childLanes) !== 0), d) {
                    if (i) return Ag(e, t, a);
                    t.flags |= 128
                }
                if (d = t.memoizedState, d !== null && (d.rendering = null, d.tail = null, d.lastEffect = null), We(Ct, Ct.current), i) break;
                return null;
            case 22:
            case 23:
                return t.lanes = 0, Pr(e, t, a);
            case 24:
                Xs(t, Xt, e.memoizedState.cache)
        }
        return Vr(e, t, a)
    }

    function Rg(e, t, a) {
        if (e !== null)
            if (e.memoizedProps !== t.pendingProps) ia = !0;
            else {
                if (!jf(e, a) && !(t.flags & 128)) return ia = !1, H1(e, t, a);
                ia = !!(e.flags & 131072)
            }
        else ia = !1, qe && t.flags & 1048576 && vi(t, Wi, t.index);
        switch (t.lanes = 0, t.tag) {
            case 16:
                e: {
                    e = t.pendingProps;
                    var i = t.elementType,
                        d = i._init;
                    if (i = d(i._payload), t.type = i, typeof i == "function") Zf(i) ? (e = er(i, e), t.tag = 1, t = tr(null, t, i, e, a)) : (t.tag = 0, t = Fc(null, t, i, e, a));
                    else {
                        if (i != null) {
                            if (d = i.$$typeof, d === k) {
                                t.tag = 11, t = Ba(null, t, i, e, a);
                                break e
                            } else if (d === te) {
                                t.tag = 14, t = Ea(null, t, i, e, a);
                                break e
                            }
                        }
                        throw t = De(i) || i, Error(c(306, t, ""))
                    }
                }
                return t;
            case 0:
                return Fc(e, t, t.type, t.pendingProps, a);
            case 1:
                return i = t.type, d = er(i, t.pendingProps), tr(e, t, i, d, a);
            case 3:
                e: {
                    if ($t(t, t.stateNode.containerInfo), e === null) throw Error(c(387));
                    var v = t.pendingProps;d = t.memoizedState,
                    i = d.element,
                    Uf(e, t),
                    Lu(t, v, null, a);
                    var E = t.memoizedState;
                    if (v = E.cache, Xs(t, Xt, v), v !== d.cache && Df(t, [Xt], a, !0), Du(), v = E.element, d.isDehydrated)
                        if (d = {
                                element: v,
                                isDehydrated: !1,
                                cache: E.cache
                            }, t.updateQueue.baseState = d, t.memoizedState = d, t.flags & 256) {
                            t = ko(e, t, v, a);
                            break e
                        } else if (v !== i) {
                        i = Na(Error(c(424)), t), il(i), t = ko(e, t, v, a);
                        break e
                    } else
                        for (Lt = yi(t.stateNode.containerInfo.firstChild), Dt = t, qe = !0, Kt = null, xa = !0, a = Ac(t, null, v, a), t.child = a; a;) a.flags = a.flags & -3 | 4096, a = a.sibling;
                    else {
                        if (Sl(), v === i) {
                            t = Vr(e, t, a);
                            break e
                        }
                        Vt(e, t, v, a)
                    }
                    t = t.child
                }
                return t;
            case 26:
                return Tl(e, t), e === null ? (a = jm(t.type, null, t.pendingProps, null)) ? t.memoizedState = a : qe || (a = t.type, e = t.pendingProps, i = Ld(dl.current).createElement(a), i[Fe] = t, i[dt] = e, vn(i, a, e), pt(i), t.stateNode = i) : t.memoizedState = jm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
            case 27:
                return Pn(t), e === null && qe && (i = t.stateNode = Rm(t.type, t.pendingProps, dl.current), Dt = t, xa = !0, Lt = yi(i.firstChild)), i = t.pendingProps.children, e !== null || qe ? Vt(e, t, i, a) : t.child = aa(t, null, i, a), Tl(e, t), t.child;
            case 5:
                return e === null && qe && ((d = i = Lt) && (i = mb(i, t.type, t.pendingProps, xa), i !== null ? (t.stateNode = i, Dt = t, Lt = yi(i.firstChild), xa = !1, d = !0) : d = !1), d || yl(t)), Pn(t), d = t.type, v = t.pendingProps, E = e !== null ? e.memoizedProps : null, i = v.children, xh(d, v) ? i = null : E !== null && xh(d, E) && (t.flags |= 32), t.memoizedState !== null && (d = na(e, t, du, null, null, a), Ju._currentValue = d), Tl(e, t), Vt(e, t, i, a), t.child;
            case 6:
                return e === null && qe && ((e = a = Lt) && (a = vb(a, t.pendingProps, xa), a !== null ? (t.stateNode = a, Dt = t, Lt = null, e = !0) : e = !1), e || yl(t)), null;
            case 13:
                return ju(e, t, a);
            case 4:
                return $t(t, t.stateNode.containerInfo), i = t.pendingProps, e === null ? t.child = aa(t, null, i, a) : Vt(e, t, i, a), t.child;
            case 11:
                return Ba(e, t, t.type, t.pendingProps, a);
            case 7:
                return Vt(e, t, t.pendingProps, a), t.child;
            case 8:
                return Vt(e, t, t.pendingProps.children, a), t.child;
            case 12:
                return Vt(e, t, t.pendingProps.children, a), t.child;
            case 10:
                return i = t.pendingProps, Xs(t, t.type, i.value), Vt(e, t, i.children, a), t.child;
            case 9:
                return d = t.type._context, i = t.pendingProps.children, Xc(t), d = Mn(d), i = i(d), t.flags |= 1, Vt(e, t, i, a), t.child;
            case 14:
                return Ea(e, t, t.type, t.pendingProps, a);
            case 15:
                return Ou(e, t, t.type, t.pendingProps, a);
            case 19:
                return Ag(e, t, a);
            case 22:
                return Pr(e, t, a);
            case 24:
                return Xc(t), i = Mn(Xt), e === null ? (d = q(), d === null && (d = Bt, v = gn(), d.pooledCache = v, v.refCount++, v !== null && (d.pooledCacheLanes |= a), d = v), t.memoizedState = {
                    parent: i,
                    cache: d
                }, Lf(t), Xs(t, Xt, d)) : (e.lanes & a && (Uf(e, t), Lu(t, null, null, a), Du()), d = e.memoizedState, v = t.memoizedState, d.parent !== i ? (d = {
                    parent: i,
                    cache: i
                }, t.memoizedState = d, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = d), Xs(t, Xt, i)) : (i = v.cache, Xs(t, Xt, i), i !== d.cache && Df(t, [Xt], a, !0))), Vt(e, t, t.pendingProps.children, a), t.child;
            case 29:
                throw t.pendingProps
        }
        throw Error(c(156, t.tag))
    }
    var kf = qa(null),
        Yc = null,
        Zr = null;

    function Xs(e, t, a) {
        We(kf, t._currentValue), t._currentValue = a
    }

    function Qr(e) {
        e._currentValue = kf.current, oa(kf)
    }

    function zf(e, t, a) {
        for (; e !== null;) {
            var i = e.alternate;
            if ((e.childLanes & t) !== t ? (e.childLanes |= t, i !== null && (i.childLanes |= t)) : i !== null && (i.childLanes & t) !== t && (i.childLanes |= t), e === a) break;
            e = e.return
        }
    }

    function Df(e, t, a, i) {
        var d = e.child;
        for (d !== null && (d.return = e); d !== null;) {
            var v = d.dependencies;
            if (v !== null) {
                var E = d.child;
                v = v.firstContext;
                e: for (; v !== null;) {
                    var j = v;
                    v = d;
                    for (var L = 0; L < t.length; L++)
                        if (j.context === t[L]) {
                            v.lanes |= a, j = v.alternate, j !== null && (j.lanes |= a), zf(v.return, a, e), i || (E = null);
                            break e
                        } v = j.next
                }
            } else if (d.tag === 18) {
                if (E = d.return, E === null) throw Error(c(341));
                E.lanes |= a, v = E.alternate, v !== null && (v.lanes |= a), zf(E, a, e), E = null
            } else E = d.child;
            if (E !== null) E.return = d;
            else
                for (E = d; E !== null;) {
                    if (E === e) {
                        E = null;
                        break
                    }
                    if (d = E.sibling, d !== null) {
                        d.return = E.return, E = d;
                        break
                    }
                    E = E.return
                }
            d = E
        }
    }

    function ku(e, t, a, i) {
        e = null;
        for (var d = t, v = !1; d !== null;) {
            if (!v) {
                if (d.flags & 524288) v = !0;
                else if (d.flags & 262144) break
            }
            if (d.tag === 10) {
                var E = d.alternate;
                if (E === null) throw Error(c(387));
                if (E = E.memoizedProps, E !== null) {
                    var j = d.type;
                    T(d.pendingProps.value, E.value) || (e !== null ? e.push(j) : e = [j])
                }
            } else if (d === Ni.current) {
                if (E = d.alternate, E === null) throw Error(c(387));
                E.memoizedState.memoizedState !== d.memoizedState.memoizedState && (e !== null ? e.push(Ju) : e = [Ju])
            }
            d = d.return
        }
        e !== null && Df(t, e, a, i), t.flags |= 262144
    }

    function yd(e) {
        for (e = e.firstContext; e !== null;) {
            if (!T(e.context._currentValue, e.memoizedValue)) return !0;
            e = e.next
        }
        return !1
    }

    function Xc(e) {
        Yc = e, Zr = null, e = e.dependencies, e !== null && (e.firstContext = null)
    }

    function Mn(e) {
        return Og(Yc, e)
    }

    function Sd(e, t) {
        return Yc === null && Xc(e), Og(e, t)
    }

    function Og(e, t) {
        var a = t._currentValue;
        if (t = {
                context: t,
                memoizedValue: a,
                next: null
            }, Zr === null) {
            if (e === null) throw Error(c(308));
            Zr = t, e.dependencies = {
                lanes: 0,
                firstContext: t
            }, e.flags |= 524288
        } else Zr = Zr.next = t;
        return a
    }
    var Ps = !1;

    function Lf(e) {
        e.updateQueue = {
            baseState: e.memoizedState,
            firstBaseUpdate: null,
            lastBaseUpdate: null,
            shared: {
                pending: null,
                lanes: 0,
                hiddenCallbacks: null
            },
            callbacks: null
        }
    }

    function Uf(e, t) {
        e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
            baseState: e.baseState,
            firstBaseUpdate: e.firstBaseUpdate,
            lastBaseUpdate: e.lastBaseUpdate,
            shared: e.shared,
            callbacks: null
        })
    }

    function Vs(e) {
        return {
            lane: e,
            tag: 0,
            payload: null,
            callback: null,
            next: null
        }
    }

    function Zs(e, t, a) {
        var i = e.updateQueue;
        if (i === null) return null;
        if (i = i.shared, sa & 2) {
            var d = i.pending;
            return d === null ? t.next = t : (t.next = d.next, d.next = t), i.pending = t, t = xl(e), Gl(e, null, a), t
        }
        return fi(e, i, t, a), xl(e)
    }

    function zu(e, t, a) {
        if (t = t.updateQueue, t !== null && (t = t.shared, (a & 4194176) !== 0)) {
            var i = t.lanes;
            i &= e.pendingLanes, a |= i, t.lanes = a, uc(e, a)
        }
    }

    function Bf(e, t) {
        var a = e.updateQueue,
            i = e.alternate;
        if (i !== null && (i = i.updateQueue, a === i)) {
            var d = null,
                v = null;
            if (a = a.firstBaseUpdate, a !== null) {
                do {
                    var E = {
                        lane: a.lane,
                        tag: a.tag,
                        payload: a.payload,
                        callback: null,
                        next: null
                    };
                    v === null ? d = v = E : v = v.next = E, a = a.next
                } while (a !== null);
                v === null ? d = v = t : v = v.next = t
            } else d = v = t;
            a = {
                baseState: i.baseState,
                firstBaseUpdate: d,
                lastBaseUpdate: v,
                shared: i.shared,
                callbacks: i.callbacks
            }, e.updateQueue = a;
            return
        }
        e = a.lastBaseUpdate, e === null ? a.firstBaseUpdate = t : e.next = t, a.lastBaseUpdate = t
    }
    var Hf = !1;

    function Du() {
        if (Hf) {
            var e = N;
            if (e !== null) throw e
        }
    }

    function Lu(e, t, a, i) {
        Hf = !1;
        var d = e.updateQueue;
        Ps = !1;
        var v = d.firstBaseUpdate,
            E = d.lastBaseUpdate,
            j = d.shared.pending;
        if (j !== null) {
            d.shared.pending = null;
            var L = j,
                P = L.next;
            L.next = null, E === null ? v = P : E.next = P, E = L;
            var ie = e.alternate;
            ie !== null && (ie = ie.updateQueue, j = ie.lastBaseUpdate, j !== E && (j === null ? ie.firstBaseUpdate = P : j.next = P, ie.lastBaseUpdate = L))
        }
        if (v !== null) {
            var ue = d.baseState;
            E = 0, ie = P = L = null, j = v;
            do {
                var J = j.lane & -536870913,
                    ne = J !== j.lane;
                if (ne ? (ot & J) === J : (i & J) === J) {
                    J !== 0 && J === b && (Hf = !0), ie !== null && (ie = ie.next = {
                        lane: 0,
                        tag: j.tag,
                        payload: j.payload,
                        callback: null,
                        next: null
                    });
                    e: {
                        var Oe = e,
                            Ze = j;J = t;
                        var ga = a;
                        switch (Ze.tag) {
                            case 1:
                                if (Oe = Ze.payload, typeof Oe == "function") {
                                    ue = Oe.call(ga, ue, J);
                                    break e
                                }
                                ue = Oe;
                                break e;
                            case 3:
                                Oe.flags = Oe.flags & -65537 | 128;
                            case 0:
                                if (Oe = Ze.payload, J = typeof Oe == "function" ? Oe.call(ga, ue, J) : Oe, J == null) break e;
                                ue = Le({}, ue, J);
                                break e;
                            case 2:
                                Ps = !0
                        }
                    }
                    J = j.callback, J !== null && (e.flags |= 64, ne && (e.flags |= 8192), ne = d.callbacks, ne === null ? d.callbacks = [J] : ne.push(J))
                } else ne = {
                    lane: J,
                    tag: j.tag,
                    payload: j.payload,
                    callback: j.callback,
                    next: null
                }, ie === null ? (P = ie = ne, L = ue) : ie = ie.next = ne, E |= J;
                if (j = j.next, j === null) {
                    if (j = d.shared.pending, j === null) break;
                    ne = j, j = ne.next, ne.next = null, d.lastBaseUpdate = ne, d.shared.pending = null
                }
            } while (!0);
            ie === null && (L = ue), d.baseState = L, d.firstBaseUpdate = P, d.lastBaseUpdate = ie, v === null && (d.shared.lanes = 0), Js |= E, e.lanes = E, e.memoizedState = ue
        }
    }

    function _g(e, t) {
        if (typeof e != "function") throw Error(c(191, e));
        e.call(t)
    }

    function jg(e, t) {
        var a = e.callbacks;
        if (a !== null)
            for (e.callbacks = null, e = 0; e < a.length; e++) _g(a[e], t)
    }

    function Uu(e, t) {
        try {
            var a = t.updateQueue,
                i = a !== null ? a.lastEffect : null;
            if (i !== null) {
                var d = i.next;
                a = d;
                do {
                    if ((a.tag & e) === e) {
                        i = void 0;
                        var v = a.create,
                            E = a.inst;
                        i = v(), E.destroy = i
                    }
                    a = a.next
                } while (a !== d)
            }
        } catch (j) {
            jt(t, t.return, j)
        }
    }

    function Qs(e, t, a) {
        try {
            var i = t.updateQueue,
                d = i !== null ? i.lastEffect : null;
            if (d !== null) {
                var v = d.next;
                i = v;
                do {
                    if ((i.tag & e) === e) {
                        var E = i.inst,
                            j = E.destroy;
                        if (j !== void 0) {
                            E.destroy = void 0, d = t;
                            var L = a;
                            try {
                                j()
                            } catch (P) {
                                jt(d, L, P)
                            }
                        }
                    }
                    i = i.next
                } while (i !== v)
            }
        } catch (P) {
            jt(t, t.return, P)
        }
    }

    function kg(e) {
        var t = e.updateQueue;
        if (t !== null) {
            var a = e.stateNode;
            try {
                jg(t, a)
            } catch (i) {
                jt(e, e.return, i)
            }
        }
    }

    function zg(e, t, a) {
        a.props = er(e.type, e.memoizedProps), a.state = e.memoizedState;
        try {
            a.componentWillUnmount()
        } catch (i) {
            jt(e, t, i)
        }
    }

    function Pc(e, t) {
        try {
            var a = e.ref;
            if (a !== null) {
                var i = e.stateNode;
                switch (e.tag) {
                    case 26:
                    case 27:
                    case 5:
                        var d = i;
                        break;
                    default:
                        d = i
                }
                typeof a == "function" ? e.refCleanup = a(d) : a.current = d
            }
        } catch (v) {
            jt(e, t, v)
        }
    }

    function Ml(e, t) {
        var a = e.ref,
            i = e.refCleanup;
        if (a !== null)
            if (typeof i == "function") try {
                i()
            } catch (d) {
                jt(e, t, d)
            } finally {
                e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null)
            } else if (typeof a == "function") try {
                a(null)
            } catch (d) {
                jt(e, t, d)
            } else a.current = null
    }

    function Dg(e) {
        var t = e.type,
            a = e.memoizedProps,
            i = e.stateNode;
        try {
            e: switch (t) {
                case "button":
                case "input":
                case "select":
                case "textarea":
                    a.autoFocus && i.focus();
                    break e;
                case "img":
                    a.src ? i.src = a.src : a.srcSet && (i.srcset = a.srcSet)
            }
        }
        catch (d) {
            jt(e, e.return, d)
        }
    }

    function Lg(e, t, a) {
        try {
            var i = e.stateNode;
            ub(i, e.type, a, t), i[dt] = t
        } catch (d) {
            jt(e, e.return, d)
        }
    }

    function Ug(e) {
        return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 || e.tag === 4
    }

    function Ff(e) {
        e: for (;;) {
            for (; e.sibling === null;) {
                if (e.return === null || Ug(e.return)) return null;
                e = e.return
            }
            for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 27 && e.tag !== 18;) {
                if (e.flags & 2 || e.child === null || e.tag === 4) continue e;
                e.child.return = e, e = e.child
            }
            if (!(e.flags & 2)) return e.stateNode
        }
    }

    function Gf(e, t, a) {
        var i = e.tag;
        if (i === 5 || i === 6) e = e.stateNode, t ? a.nodeType === 8 ? a.parentNode.insertBefore(e, t) : a.insertBefore(e, t) : (a.nodeType === 8 ? (t = a.parentNode, t.insertBefore(e, a)) : (t = a, t.appendChild(e)), a = a._reactRootContainer, a != null || t.onclick !== null || (t.onclick = Dd));
        else if (i !== 4 && i !== 27 && (e = e.child, e !== null))
            for (Gf(e, t, a), e = e.sibling; e !== null;) Gf(e, t, a), e = e.sibling
    }

    function wd(e, t, a) {
        var i = e.tag;
        if (i === 5 || i === 6) e = e.stateNode, t ? a.insertBefore(e, t) : a.appendChild(e);
        else if (i !== 4 && i !== 27 && (e = e.child, e !== null))
            for (wd(e, t, a), e = e.sibling; e !== null;) wd(e, t, a), e = e.sibling
    }
    var Wr = !1,
        fa = !1,
        Yf = !1,
        Bg = typeof WeakSet == "function" ? WeakSet : Set,
        Wa = null,
        Hg = !1;

    function F1(e, t) {
        if (e = e.containerInfo, vh = Yd, e = re(e), pe(e)) {
            if ("selectionStart" in e) var a = {
                start: e.selectionStart,
                end: e.selectionEnd
            };
            else e: {
                a = (a = e.ownerDocument) && a.defaultView || window;
                var i = a.getSelection && a.getSelection();
                if (i && i.rangeCount !== 0) {
                    a = i.anchorNode;
                    var d = i.anchorOffset,
                        v = i.focusNode;
                    i = i.focusOffset;
                    try {
                        a.nodeType, v.nodeType
                    } catch {
                        a = null;
                        break e
                    }
                    var E = 0,
                        j = -1,
                        L = -1,
                        P = 0,
                        ie = 0,
                        ue = e,
                        J = null;
                    t: for (;;) {
                        for (var ne; ue !== a || d !== 0 && ue.nodeType !== 3 || (j = E + d), ue !== v || i !== 0 && ue.nodeType !== 3 || (L = E + i), ue.nodeType === 3 && (E += ue.nodeValue.length), (ne = ue.firstChild) !== null;) J = ue, ue = ne;
                        for (;;) {
                            if (ue === e) break t;
                            if (J === a && ++P === d && (j = E), J === v && ++ie === i && (L = E), (ne = ue.nextSibling) !== null) break;
                            ue = J, J = ue.parentNode
                        }
                        ue = ne
                    }
                    a = j === -1 || L === -1 ? null : {
                        start: j,
                        end: L
                    }
                } else a = null
            }
            a = a || {
                start: 0,
                end: 0
            }
        } else a = null;
        for (bh = {
                focusedElem: e,
                selectionRange: a
            }, Yd = !1, Wa = t; Wa !== null;)
            if (t = Wa, e = t.child, (t.subtreeFlags & 1028) !== 0 && e !== null) e.return = t, Wa = e;
            else
                for (; Wa !== null;) {
                    switch (t = Wa, v = t.alternate, e = t.flags, t.tag) {
                        case 0:
                            break;
                        case 11:
                        case 15:
                            break;
                        case 1:
                            if (e & 1024 && v !== null) {
                                e = void 0, a = t, d = v.memoizedProps, v = v.memoizedState, i = a.stateNode;
                                try {
                                    var Oe = er(a.type, d, a.elementType === a.type);
                                    e = i.getSnapshotBeforeUpdate(Oe, v), i.__reactInternalSnapshotBeforeUpdate = e
                                } catch (Ze) {
                                    jt(a, a.return, Ze)
                                }
                            }
                            break;
                        case 3:
                            if (e & 1024) {
                                if (e = t.stateNode.containerInfo, a = e.nodeType, a === 9) Sh(e);
                                else if (a === 1) switch (e.nodeName) {
                                    case "HEAD":
                                    case "HTML":
                                    case "BODY":
                                        Sh(e);
                                        break;
                                    default:
                                        e.textContent = ""
                                }
                            }
                            break;
                        case 5:
                        case 26:
                        case 27:
                        case 6:
                        case 4:
                        case 17:
                            break;
                        default:
                            if (e & 1024) throw Error(c(163))
                    }
                    if (e = t.sibling, e !== null) {
                        e.return = t.return, Wa = e;
                        break
                    }
                    Wa = t.return
                }
        return Oe = Hg, Hg = !1, Oe
    }

    function Fg(e, t, a) {
        var i = a.flags;
        switch (a.tag) {
            case 0:
            case 11:
            case 15:
                Kr(e, a), i & 4 && Uu(5, a);
                break;
            case 1:
                if (Kr(e, a), i & 4)
                    if (e = a.stateNode, t === null) try {
                        e.componentDidMount()
                    } catch (j) {
                        jt(a, a.return, j)
                    } else {
                        var d = er(a.type, t.memoizedProps);
                        t = t.memoizedState;
                        try {
                            e.componentDidUpdate(d, t, e.__reactInternalSnapshotBeforeUpdate)
                        } catch (j) {
                            jt(a, a.return, j)
                        }
                    }
                i & 64 && kg(a), i & 512 && Pc(a, a.return);
                break;
            case 3:
                if (Kr(e, a), i & 64 && (i = a.updateQueue, i !== null)) {
                    if (e = null, a.child !== null) switch (a.child.tag) {
                        case 27:
                        case 5:
                            e = a.child.stateNode;
                            break;
                        case 1:
                            e = a.child.stateNode
                    }
                    try {
                        jg(i, e)
                    } catch (j) {
                        jt(a, a.return, j)
                    }
                }
                break;
            case 26:
                Kr(e, a), i & 512 && Pc(a, a.return);
                break;
            case 27:
            case 5:
                Kr(e, a), t === null && i & 4 && Dg(a), i & 512 && Pc(a, a.return);
                break;
            case 12:
                Kr(e, a);
                break;
            case 13:
                Kr(e, a), i & 4 && Xg(e, a);
                break;
            case 22:
                if (d = a.memoizedState !== null || Wr, !d) {
                    t = t !== null && t.memoizedState !== null || fa;
                    var v = Wr,
                        E = fa;
                    Wr = d, (fa = t) && !E ? Ws(e, a, (a.subtreeFlags & 8772) !== 0) : Kr(e, a), Wr = v, fa = E
                }
                i & 512 && (a.memoizedProps.mode === "manual" ? Pc(a, a.return) : Ml(a, a.return));
                break;
            default:
                Kr(e, a)
        }
    }

    function Gg(e) {
        var t = e.alternate;
        t !== null && (e.alternate = null, Gg(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && hc(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null
    }
    var Ta = null,
        Al = !1;

    function Ir(e, t, a) {
        for (a = a.child; a !== null;) Yg(e, t, a), a = a.sibling
    }

    function Yg(e, t, a) {
        if (it && typeof it.onCommitFiberUnmount == "function") try {
            it.onCommitFiberUnmount(Ei, a)
        } catch {}
        switch (a.tag) {
            case 26:
                fa || Ml(a, t), Ir(e, t, a), a.memoizedState ? a.memoizedState.count-- : a.stateNode && (a = a.stateNode, a.parentNode.removeChild(a));
                break;
            case 27:
                fa || Ml(a, t);
                var i = Ta,
                    d = Al;
                for (Ta = a.stateNode, Ir(e, t, a), a = a.stateNode, t = a.attributes; t.length;) a.removeAttributeNode(t[0]);
                hc(a), Ta = i, Al = d;
                break;
            case 5:
                fa || Ml(a, t);
            case 6:
                d = Ta;
                var v = Al;
                if (Ta = null, Ir(e, t, a), Ta = d, Al = v, Ta !== null)
                    if (Al) try {
                        e = Ta, i = a.stateNode, e.nodeType === 8 ? e.parentNode.removeChild(i) : e.removeChild(i)
                    } catch (E) {
                        jt(a, t, E)
                    } else try {
                        Ta.removeChild(a.stateNode)
                    } catch (E) {
                        jt(a, t, E)
                    }
                break;
            case 18:
                Ta !== null && (Al ? (t = Ta, a = a.stateNode, t.nodeType === 8 ? yh(t.parentNode, a) : t.nodeType === 1 && yh(t, a), td(t)) : yh(Ta, a.stateNode));
                break;
            case 4:
                i = Ta, d = Al, Ta = a.stateNode.containerInfo, Al = !0, Ir(e, t, a), Ta = i, Al = d;
                break;
            case 0:
            case 11:
            case 14:
            case 15:
                fa || Qs(2, a, t), fa || Qs(4, a, t), Ir(e, t, a);
                break;
            case 1:
                fa || (Ml(a, t), i = a.stateNode, typeof i.componentWillUnmount == "function" && zg(a, t, i)), Ir(e, t, a);
                break;
            case 21:
                Ir(e, t, a);
                break;
            case 22:
                fa || Ml(a, t), fa = (i = fa) || a.memoizedState !== null, Ir(e, t, a), fa = i;
                break;
            default:
                Ir(e, t, a)
        }
    }

    function Xg(e, t) {
        if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
            td(e)
        } catch (a) {
            jt(t, t.return, a)
        }
    }

    function G1(e) {
        switch (e.tag) {
            case 13:
            case 19:
                var t = e.stateNode;
                return t === null && (t = e.stateNode = new Bg), t;
            case 22:
                return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new Bg), t;
            default:
                throw Error(c(435, e.tag))
        }
    }

    function Xf(e, t) {
        var a = G1(e);
        t.forEach(function(i) {
            var d = eb.bind(null, e, i);
            a.has(i) || (a.add(i), i.then(d, d))
        })
    }

    function Jl(e, t) {
        var a = t.deletions;
        if (a !== null)
            for (var i = 0; i < a.length; i++) {
                var d = a[i],
                    v = e,
                    E = t,
                    j = E;
                e: for (; j !== null;) {
                    switch (j.tag) {
                        case 27:
                        case 5:
                            Ta = j.stateNode, Al = !1;
                            break e;
                        case 3:
                            Ta = j.stateNode.containerInfo, Al = !0;
                            break e;
                        case 4:
                            Ta = j.stateNode.containerInfo, Al = !0;
                            break e
                    }
                    j = j.return
                }
                if (Ta === null) throw Error(c(160));
                Yg(v, E, d), Ta = null, Al = !1, v = d.alternate, v !== null && (v.return = null), d.return = null
            }
        if (t.subtreeFlags & 13878)
            for (t = t.child; t !== null;) Pg(t, e), t = t.sibling
    }
    var pi = null;

    function Pg(e, t) {
        var a = e.alternate,
            i = e.flags;
        switch (e.tag) {
            case 0:
            case 11:
            case 14:
            case 15:
                Jl(t, e), ql(e), i & 4 && (Qs(3, e, e.return), Uu(3, e), Qs(5, e, e.return));
                break;
            case 1:
                Jl(t, e), ql(e), i & 512 && (fa || a === null || Ml(a, a.return)), i & 64 && Wr && (e = e.updateQueue, e !== null && (i = e.callbacks, i !== null && (a = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = a === null ? i : a.concat(i))));
                break;
            case 26:
                var d = pi;
                if (Jl(t, e), ql(e), i & 512 && (fa || a === null || Ml(a, a.return)), i & 4) {
                    var v = a !== null ? a.memoizedState : null;
                    if (i = e.memoizedState, a === null)
                        if (i === null)
                            if (e.stateNode === null) {
                                e: {
                                    i = e.type,
                                    a = e.memoizedProps,
                                    d = d.ownerDocument || d;t: switch (i) {
                                        case "title":
                                            v = d.getElementsByTagName("title")[0], (!v || v[Ti] || v[Fe] || v.namespaceURI === "http://www.w3.org/2000/svg" || v.hasAttribute("itemprop")) && (v = d.createElement(i), d.head.insertBefore(v, d.querySelector("head > title"))), vn(v, i, a), v[Fe] = e, pt(v), i = v;
                                            break e;
                                        case "link":
                                            var E = Dm("link", "href", d).get(i + (a.href || ""));
                                            if (E) {
                                                for (var j = 0; j < E.length; j++)
                                                    if (v = E[j], v.getAttribute("href") === (a.href == null ? null : a.href) && v.getAttribute("rel") === (a.rel == null ? null : a.rel) && v.getAttribute("title") === (a.title == null ? null : a.title) && v.getAttribute("crossorigin") === (a.crossOrigin == null ? null : a.crossOrigin)) {
                                                        E.splice(j, 1);
                                                        break t
                                                    }
                                            }
                                            v = d.createElement(i), vn(v, i, a), d.head.appendChild(v);
                                            break;
                                        case "meta":
                                            if (E = Dm("meta", "content", d).get(i + (a.content || ""))) {
                                                for (j = 0; j < E.length; j++)
                                                    if (v = E[j], v.getAttribute("content") === (a.content == null ? null : "" + a.content) && v.getAttribute("name") === (a.name == null ? null : a.name) && v.getAttribute("property") === (a.property == null ? null : a.property) && v.getAttribute("http-equiv") === (a.httpEquiv == null ? null : a.httpEquiv) && v.getAttribute("charset") === (a.charSet == null ? null : a.charSet)) {
                                                        E.splice(j, 1);
                                                        break t
                                                    }
                                            }
                                            v = d.createElement(i), vn(v, i, a), d.head.appendChild(v);
                                            break;
                                        default:
                                            throw Error(c(468, i))
                                    }
                                    v[Fe] = e,
                                    pt(v),
                                    i = v
                                }
                                e.stateNode = i
                            }
                    else Lm(d, e.type, e.stateNode);
                    else e.stateNode = zm(d, i, e.memoizedProps);
                    else v !== i ? (v === null ? a.stateNode !== null && (a = a.stateNode, a.parentNode.removeChild(a)) : v.count--, i === null ? Lm(d, e.type, e.stateNode) : zm(d, i, e.memoizedProps)) : i === null && e.stateNode !== null && Lg(e, e.memoizedProps, a.memoizedProps)
                }
                break;
            case 27:
                if (i & 4 && e.alternate === null) {
                    d = e.stateNode, v = e.memoizedProps;
                    try {
                        for (var L = d.firstChild; L;) {
                            var P = L.nextSibling,
                                ie = L.nodeName;
                            L[Ti] || ie === "HEAD" || ie === "BODY" || ie === "SCRIPT" || ie === "STYLE" || ie === "LINK" && L.rel.toLowerCase() === "stylesheet" || d.removeChild(L), L = P
                        }
                        for (var ue = e.type, J = d.attributes; J.length;) d.removeAttributeNode(J[0]);
                        vn(d, ue, v), d[Fe] = e, d[dt] = v
                    } catch (Oe) {
                        jt(e, e.return, Oe)
                    }
                }
            case 5:
                if (Jl(t, e), ql(e), i & 512 && (fa || a === null || Ml(a, a.return)), e.flags & 32) {
                    d = e.stateNode;
                    try {
                        Oi(d, "")
                    } catch (Oe) {
                        jt(e, e.return, Oe)
                    }
                }
                i & 4 && e.stateNode != null && (d = e.memoizedProps, Lg(e, d, a !== null ? a.memoizedProps : d)), i & 1024 && (Yf = !0);
                break;
            case 6:
                if (Jl(t, e), ql(e), i & 4) {
                    if (e.stateNode === null) throw Error(c(162));
                    i = e.memoizedProps, a = e.stateNode;
                    try {
                        a.nodeValue = i
                    } catch (Oe) {
                        jt(e, e.return, Oe)
                    }
                }
                break;
            case 3:
                if (Hd = null, d = pi, pi = Ud(t.containerInfo), Jl(t, e), pi = d, ql(e), i & 4 && a !== null && a.memoizedState.isDehydrated) try {
                    td(t.containerInfo)
                } catch (Oe) {
                    jt(e, e.return, Oe)
                }
                Yf && (Yf = !1, Vg(e));
                break;
            case 4:
                i = pi, pi = Ud(e.stateNode.containerInfo), Jl(t, e), ql(e), pi = i;
                break;
            case 12:
                Jl(t, e), ql(e);
                break;
            case 13:
                Jl(t, e), ql(e), e.child.flags & 8192 && e.memoizedState !== null != (a !== null && a.memoizedState !== null) && (qf = On()), i & 4 && (i = e.updateQueue, i !== null && (e.updateQueue = null, Xf(e, i)));
                break;
            case 22:
                if (i & 512 && (fa || a === null || Ml(a, a.return)), L = e.memoizedState !== null, P = a !== null && a.memoizedState !== null, ie = Wr, ue = fa, Wr = ie || L, fa = ue || P, Jl(t, e), fa = ue, Wr = ie, ql(e), t = e.stateNode, t._current = e, t._visibility &= -3, t._visibility |= t._pendingVisibility & 2, i & 8192 && (t._visibility = L ? t._visibility & -2 : t._visibility | 1, L && (t = Wr || fa, a === null || P || t || Uo(e)), e.memoizedProps === null || e.memoizedProps.mode !== "manual")) e: for (a = null, t = e;;) {
                    if (t.tag === 5 || t.tag === 26 || t.tag === 27) {
                        if (a === null) {
                            P = a = t;
                            try {
                                if (d = P.stateNode, L) v = d.style, typeof v.setProperty == "function" ? v.setProperty("display", "none", "important") : v.display = "none";
                                else {
                                    E = P.stateNode, j = P.memoizedProps.style;
                                    var ne = j != null && j.hasOwnProperty("display") ? j.display : null;
                                    E.style.display = ne == null || typeof ne == "boolean" ? "" : ("" + ne).trim()
                                }
                            } catch (Oe) {
                                jt(P, P.return, Oe)
                            }
                        }
                    } else if (t.tag === 6) {
                        if (a === null) {
                            P = t;
                            try {
                                P.stateNode.nodeValue = L ? "" : P.memoizedProps
                            } catch (Oe) {
                                jt(P, P.return, Oe)
                            }
                        }
                    } else if ((t.tag !== 22 && t.tag !== 23 || t.memoizedState === null || t === e) && t.child !== null) {
                        t.child.return = t, t = t.child;
                        continue
                    }
                    if (t === e) break e;
                    for (; t.sibling === null;) {
                        if (t.return === null || t.return === e) break e;
                        a === t && (a = null), t = t.return
                    }
                    a === t && (a = null), t.sibling.return = t.return, t = t.sibling
                }
                i & 4 && (i = e.updateQueue, i !== null && (a = i.retryQueue, a !== null && (i.retryQueue = null, Xf(e, a))));
                break;
            case 19:
                Jl(t, e), ql(e), i & 4 && (i = e.updateQueue, i !== null && (e.updateQueue = null, Xf(e, i)));
                break;
            case 21:
                break;
            default:
                Jl(t, e), ql(e)
        }
    }

    function ql(e) {
        var t = e.flags;
        if (t & 2) {
            try {
                if (e.tag !== 27) {
                    e: {
                        for (var a = e.return; a !== null;) {
                            if (Ug(a)) {
                                var i = a;
                                break e
                            }
                            a = a.return
                        }
                        throw Error(c(160))
                    }
                    switch (i.tag) {
                        case 27:
                            var d = i.stateNode,
                                v = Ff(e);
                            wd(e, v, d);
                            break;
                        case 5:
                            var E = i.stateNode;
                            i.flags & 32 && (Oi(E, ""), i.flags &= -33);
                            var j = Ff(e);
                            wd(e, j, E);
                            break;
                        case 3:
                        case 4:
                            var L = i.stateNode.containerInfo,
                                P = Ff(e);
                            Gf(e, P, L);
                            break;
                        default:
                            throw Error(c(161))
                    }
                }
            } catch (ie) {
                jt(e, e.return, ie)
            }
            e.flags &= -3
        }
        t & 4096 && (e.flags &= -4097)
    }

    function Vg(e) {
        if (e.subtreeFlags & 1024)
            for (e = e.child; e !== null;) {
                var t = e;
                Vg(t), t.tag === 5 && t.flags & 1024 && t.stateNode.reset(), e = e.sibling
            }
    }

    function Kr(e, t) {
        if (t.subtreeFlags & 8772)
            for (t = t.child; t !== null;) Fg(e, t.alternate, t), t = t.sibling
    }

    function Uo(e) {
        for (e = e.child; e !== null;) {
            var t = e;
            switch (t.tag) {
                case 0:
                case 11:
                case 14:
                case 15:
                    Qs(4, t, t.return), Uo(t);
                    break;
                case 1:
                    Ml(t, t.return);
                    var a = t.stateNode;
                    typeof a.componentWillUnmount == "function" && zg(t, t.return, a), Uo(t);
                    break;
                case 26:
                case 27:
                case 5:
                    Ml(t, t.return), Uo(t);
                    break;
                case 22:
                    Ml(t, t.return), t.memoizedState === null && Uo(t);
                    break;
                default:
                    Uo(t)
            }
            e = e.sibling
        }
    }

    function Ws(e, t, a) {
        for (a = a && (t.subtreeFlags & 8772) !== 0, t = t.child; t !== null;) {
            var i = t.alternate,
                d = e,
                v = t,
                E = v.flags;
            switch (v.tag) {
                case 0:
                case 11:
                case 15:
                    Ws(d, v, a), Uu(4, v);
                    break;
                case 1:
                    if (Ws(d, v, a), i = v, d = i.stateNode, typeof d.componentDidMount == "function") try {
                        d.componentDidMount()
                    } catch (P) {
                        jt(i, i.return, P)
                    }
                    if (i = v, d = i.updateQueue, d !== null) {
                        var j = i.stateNode;
                        try {
                            var L = d.shared.hiddenCallbacks;
                            if (L !== null)
                                for (d.shared.hiddenCallbacks = null, d = 0; d < L.length; d++) _g(L[d], j)
                        } catch (P) {
                            jt(i, i.return, P)
                        }
                    }
                    a && E & 64 && kg(v), Pc(v, v.return);
                    break;
                case 26:
                case 27:
                case 5:
                    Ws(d, v, a), a && i === null && E & 4 && Dg(v), Pc(v, v.return);
                    break;
                case 12:
                    Ws(d, v, a);
                    break;
                case 13:
                    Ws(d, v, a), a && E & 4 && Xg(d, v);
                    break;
                case 22:
                    v.memoizedState === null && Ws(d, v, a), Pc(v, v.return);
                    break;
                default:
                    Ws(d, v, a)
            }
            t = t.sibling
        }
    }

    function Pf(e, t) {
        var a = null;
        e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (a = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== a && (e != null && e.refCount++, a != null && bi(a))
    }

    function Vf(e, t) {
        e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && bi(e))
    }

    function Is(e, t, a, i) {
        if (t.subtreeFlags & 10256)
            for (t = t.child; t !== null;) Zg(e, t, a, i), t = t.sibling
    }

    function Zg(e, t, a, i) {
        var d = t.flags;
        switch (t.tag) {
            case 0:
            case 11:
            case 15:
                Is(e, t, a, i), d & 2048 && Uu(9, t);
                break;
            case 3:
                Is(e, t, a, i), d & 2048 && (e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && bi(e)));
                break;
            case 12:
                if (d & 2048) {
                    Is(e, t, a, i), e = t.stateNode;
                    try {
                        var v = t.memoizedProps,
                            E = v.id,
                            j = v.onPostCommit;
                        typeof j == "function" && j(E, t.alternate === null ? "mount" : "update", e.passiveEffectDuration, -0)
                    } catch (L) {
                        jt(t, t.return, L)
                    }
                } else Is(e, t, a, i);
                break;
            case 23:
                break;
            case 22:
                v = t.stateNode, t.memoizedState !== null ? v._visibility & 4 ? Is(e, t, a, i) : Bu(e, t) : v._visibility & 4 ? Is(e, t, a, i) : (v._visibility |= 4, Bo(e, t, a, i, (t.subtreeFlags & 10256) !== 0)), d & 2048 && Pf(t.alternate, t);
                break;
            case 24:
                Is(e, t, a, i), d & 2048 && Vf(t.alternate, t);
                break;
            default:
                Is(e, t, a, i)
        }
    }

    function Bo(e, t, a, i, d) {
        for (d = d && (t.subtreeFlags & 10256) !== 0, t = t.child; t !== null;) {
            var v = e,
                E = t,
                j = a,
                L = i,
                P = E.flags;
            switch (E.tag) {
                case 0:
                case 11:
                case 15:
                    Bo(v, E, j, L, d), Uu(8, E);
                    break;
                case 23:
                    break;
                case 22:
                    var ie = E.stateNode;
                    E.memoizedState !== null ? ie._visibility & 4 ? Bo(v, E, j, L, d) : Bu(v, E) : (ie._visibility |= 4, Bo(v, E, j, L, d)), d && P & 2048 && Pf(E.alternate, E);
                    break;
                case 24:
                    Bo(v, E, j, L, d), d && P & 2048 && Vf(E.alternate, E);
                    break;
                default:
                    Bo(v, E, j, L, d)
            }
            t = t.sibling
        }
    }

    function Bu(e, t) {
        if (t.subtreeFlags & 10256)
            for (t = t.child; t !== null;) {
                var a = e,
                    i = t,
                    d = i.flags;
                switch (i.tag) {
                    case 22:
                        Bu(a, i), d & 2048 && Pf(i.alternate, i);
                        break;
                    case 24:
                        Bu(a, i), d & 2048 && Vf(i.alternate, i);
                        break;
                    default:
                        Bu(a, i)
                }
                t = t.sibling
            }
    }
    var Hu = 8192;

    function Ho(e) {
        if (e.subtreeFlags & Hu)
            for (e = e.child; e !== null;) Qg(e), e = e.sibling
    }

    function Qg(e) {
        switch (e.tag) {
            case 26:
                Ho(e), e.flags & Hu && e.memoizedState !== null && Rb(pi, e.memoizedState, e.memoizedProps);
                break;
            case 5:
                Ho(e);
                break;
            case 3:
            case 4:
                var t = pi;
                pi = Ud(e.stateNode.containerInfo), Ho(e), pi = t;
                break;
            case 22:
                e.memoizedState === null && (t = e.alternate, t !== null && t.memoizedState !== null ? (t = Hu, Hu = 16777216, Ho(e), Hu = t) : Ho(e));
                break;
            default:
                Ho(e)
        }
    }

    function Wg(e) {
        var t = e.alternate;
        if (t !== null && (e = t.child, e !== null)) {
            t.child = null;
            do t = e.sibling, e.sibling = null, e = t; while (e !== null)
        }
    }

    function Fu(e) {
        var t = e.deletions;
        if (e.flags & 16) {
            if (t !== null)
                for (var a = 0; a < t.length; a++) {
                    var i = t[a];
                    Wa = i, Kg(i, e)
                }
            Wg(e)
        }
        if (e.subtreeFlags & 10256)
            for (e = e.child; e !== null;) Ig(e), e = e.sibling
    }

    function Ig(e) {
        switch (e.tag) {
            case 0:
            case 11:
            case 15:
                Fu(e), e.flags & 2048 && Qs(9, e, e.return);
                break;
            case 3:
                Fu(e);
                break;
            case 12:
                Fu(e);
                break;
            case 22:
                var t = e.stateNode;
                e.memoizedState !== null && t._visibility & 4 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -5, Nd(e)) : Fu(e);
                break;
            default:
                Fu(e)
        }
    }

    function Nd(e) {
        var t = e.deletions;
        if (e.flags & 16) {
            if (t !== null)
                for (var a = 0; a < t.length; a++) {
                    var i = t[a];
                    Wa = i, Kg(i, e)
                }
            Wg(e)
        }
        for (e = e.child; e !== null;) {
            switch (t = e, t.tag) {
                case 0:
                case 11:
                case 15:
                    Qs(8, t, t.return), Nd(t);
                    break;
                case 22:
                    a = t.stateNode, a._visibility & 4 && (a._visibility &= -5, Nd(t));
                    break;
                default:
                    Nd(t)
            }
            e = e.sibling
        }
    }

    function Kg(e, t) {
        for (; Wa !== null;) {
            var a = Wa;
            switch (a.tag) {
                case 0:
                case 11:
                case 15:
                    Qs(8, a, t);
                    break;
                case 23:
                case 22:
                    if (a.memoizedState !== null && a.memoizedState.cachePool !== null) {
                        var i = a.memoizedState.cachePool.pool;
                        i != null && i.refCount++
                    }
                    break;
                case 24:
                    bi(a.memoizedState.cache)
            }
            if (i = a.child, i !== null) i.return = a, Wa = i;
            else e: for (a = e; Wa !== null;) {
                i = Wa;
                var d = i.sibling,
                    v = i.return;
                if (Gg(i), i === a) {
                    Wa = null;
                    break e
                }
                if (d !== null) {
                    d.return = v, Wa = d;
                    break e
                }
                Wa = v
            }
        }
    }

    function Y1(e, t, a, i) {
        this.tag = e, this.key = a, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = i, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null
    }

    function $l(e, t, a, i) {
        return new Y1(e, t, a, i)
    }

    function Zf(e) {
        return e = e.prototype, !(!e || !e.isReactComponent)
    }

    function Ks(e, t) {
        var a = e.alternate;
        return a === null ? (a = $l(e.tag, t, e.key, e.mode), a.elementType = e.elementType, a.type = e.type, a.stateNode = e.stateNode, a.alternate = e, e.alternate = a) : (a.pendingProps = t, a.type = e.type, a.flags = 0, a.subtreeFlags = 0, a.deletions = null), a.flags = e.flags & 31457280, a.childLanes = e.childLanes, a.lanes = e.lanes, a.child = e.child, a.memoizedProps = e.memoizedProps, a.memoizedState = e.memoizedState, a.updateQueue = e.updateQueue, t = e.dependencies, a.dependencies = t === null ? null : {
            lanes: t.lanes,
            firstContext: t.firstContext
        }, a.sibling = e.sibling, a.index = e.index, a.ref = e.ref, a.refCleanup = e.refCleanup, a
    }

    function Jg(e, t) {
        e.flags &= 31457282;
        var a = e.alternate;
        return a === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = a.childLanes, e.lanes = a.lanes, e.child = a.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = a.memoizedProps, e.memoizedState = a.memoizedState, e.updateQueue = a.updateQueue, e.type = a.type, t = a.dependencies, e.dependencies = t === null ? null : {
            lanes: t.lanes,
            firstContext: t.firstContext
        }), e
    }

    function Cd(e, t, a, i, d, v) {
        var E = 0;
        if (i = e, typeof e == "function") Zf(e) && (E = 1);
        else if (typeof e == "string") E = Mb(e, a, An.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
        else e: switch (e) {
            case w:
                return Vc(a.children, d, v, t);
            case S:
                E = 8, d |= 24;
                break;
            case R:
                return e = $l(12, a, t, d | 2), e.elementType = R, e.lanes = v, e;
            case U:
                return e = $l(13, a, t, d), e.elementType = U, e.lanes = v, e;
            case V:
                return e = $l(19, a, t, d), e.elementType = V, e.lanes = v, e;
            case ve:
                return qg(a, d, v, t);
            default:
                if (typeof e == "object" && e !== null) switch (e.$$typeof) {
                    case A:
                    case O:
                        E = 10;
                        break e;
                    case _:
                        E = 9;
                        break e;
                    case k:
                        E = 11;
                        break e;
                    case te:
                        E = 14;
                        break e;
                    case $:
                        E = 16, i = null;
                        break e
                }
                E = 29, a = Error(c(130, e === null ? "null" : typeof e, "")), i = null
        }
        return t = $l(E, a, t, d), t.elementType = e, t.type = i, t.lanes = v, t
    }

    function Vc(e, t, a, i) {
        return e = $l(7, e, i, t), e.lanes = a, e
    }

    function qg(e, t, a, i) {
        e = $l(22, e, i, t), e.elementType = ve, e.lanes = a;
        var d = {
            _visibility: 1,
            _pendingVisibility: 1,
            _pendingMarkers: null,
            _retryCache: null,
            _transitions: null,
            _current: null,
            detach: function() {
                var v = d._current;
                if (v === null) throw Error(c(456));
                if (!(d._pendingVisibility & 2)) {
                    var E = Da(v, 2);
                    E !== null && (d._pendingVisibility |= 2, Hn(E, v, 2))
                }
            },
            attach: function() {
                var v = d._current;
                if (v === null) throw Error(c(456));
                if (d._pendingVisibility & 2) {
                    var E = Da(v, 2);
                    E !== null && (d._pendingVisibility &= -3, Hn(E, v, 2))
                }
            }
        };
        return e.stateNode = d, e
    }

    function Qf(e, t, a) {
        return e = $l(6, e, null, t), e.lanes = a, e
    }

    function Wf(e, t, a) {
        return t = $l(4, e.children !== null ? e.children : [], e.key, t), t.lanes = a, t.stateNode = {
            containerInfo: e.containerInfo,
            pendingChildren: null,
            implementation: e.implementation
        }, t
    }

    function Jr(e) {
        e.flags |= 4
    }

    function $g(e, t) {
        if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
        else if (e.flags |= 16777216, !Um(t)) {
            if (t = pa.current, t !== null && ((ot & 4194176) === ot ? dn !== null : (ot & 62914560) !== ot && !(ot & 536870912) || t !== dn)) throw Ki = on, sl;
            e.flags |= 8192
        }
    }

    function Ed(e, t) {
        t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag !== 22 ? Ga() : 536870912, e.lanes |= t, Go |= t)
    }

    function Gu(e, t) {
        if (!qe) switch (e.tailMode) {
            case "hidden":
                t = e.tail;
                for (var a = null; t !== null;) t.alternate !== null && (a = t), t = t.sibling;
                a === null ? e.tail = null : a.sibling = null;
                break;
            case "collapsed":
                a = e.tail;
                for (var i = null; a !== null;) a.alternate !== null && (i = a), a = a.sibling;
                i === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : i.sibling = null
        }
    }

    function ra(e) {
        var t = e.alternate !== null && e.alternate.child === e.child,
            a = 0,
            i = 0;
        if (t)
            for (var d = e.child; d !== null;) a |= d.lanes | d.childLanes, i |= d.subtreeFlags & 31457280, i |= d.flags & 31457280, d.return = e, d = d.sibling;
        else
            for (d = e.child; d !== null;) a |= d.lanes | d.childLanes, i |= d.subtreeFlags, i |= d.flags, d.return = e, d = d.sibling;
        return e.subtreeFlags |= i, e.childLanes = a, t
    }

    function X1(e, t, a) {
        var i = t.pendingProps;
        switch (kn(t), t.tag) {
            case 16:
            case 15:
            case 0:
            case 11:
            case 7:
            case 8:
            case 12:
            case 9:
            case 14:
                return ra(t), null;
            case 1:
                return ra(t), null;
            case 3:
                return a = t.stateNode, i = null, e !== null && (i = e.memoizedState.cache), t.memoizedState.cache !== i && (t.flags |= 2048), Qr(Xt), Rn(), a.pendingContext && (a.context = a.pendingContext, a.pendingContext = null), (e === null || e.child === null) && (ll(t) ? Jr(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, Kt !== null && (ah(Kt), Kt = null))), ra(t), null;
            case 26:
                return a = t.memoizedState, e === null ? (Jr(t), a !== null ? (ra(t), $g(t, a)) : (ra(t), t.flags &= -16777217)) : a ? a !== e.memoizedState ? (Jr(t), ra(t), $g(t, a)) : (ra(t), t.flags &= -16777217) : (e.memoizedProps !== i && Jr(t), ra(t), t.flags &= -16777217), null;
            case 27:
                Ci(t), a = dl.current;
                var d = t.type;
                if (e !== null && t.stateNode != null) e.memoizedProps !== i && Jr(t);
                else {
                    if (!i) {
                        if (t.stateNode === null) throw Error(c(166));
                        return ra(t), null
                    }
                    e = An.current, ll(t) ? Nt(t) : (e = Rm(d, i, a), t.stateNode = e, Jr(t))
                }
                return ra(t), null;
            case 5:
                if (Ci(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== i && Jr(t);
                else {
                    if (!i) {
                        if (t.stateNode === null) throw Error(c(166));
                        return ra(t), null
                    }
                    if (e = An.current, ll(t)) Nt(t);
                    else {
                        switch (d = Ld(dl.current), e) {
                            case 1:
                                e = d.createElementNS("http://www.w3.org/2000/svg", a);
                                break;
                            case 2:
                                e = d.createElementNS("http://www.w3.org/1998/Math/MathML", a);
                                break;
                            default:
                                switch (a) {
                                    case "svg":
                                        e = d.createElementNS("http://www.w3.org/2000/svg", a);
                                        break;
                                    case "math":
                                        e = d.createElementNS("http://www.w3.org/1998/Math/MathML", a);
                                        break;
                                    case "script":
                                        e = d.createElement("div"), e.innerHTML = "<script><\/script>", e = e.removeChild(e.firstChild);
                                        break;
                                    case "select":
                                        e = typeof i.is == "string" ? d.createElement("select", {
                                            is: i.is
                                        }) : d.createElement("select"), i.multiple ? e.multiple = !0 : i.size && (e.size = i.size);
                                        break;
                                    default:
                                        e = typeof i.is == "string" ? d.createElement(a, {
                                            is: i.is
                                        }) : d.createElement(a)
                                }
                        }
                        e[Fe] = t, e[dt] = i;
                        e: for (d = t.child; d !== null;) {
                            if (d.tag === 5 || d.tag === 6) e.appendChild(d.stateNode);
                            else if (d.tag !== 4 && d.tag !== 27 && d.child !== null) {
                                d.child.return = d, d = d.child;
                                continue
                            }
                            if (d === t) break e;
                            for (; d.sibling === null;) {
                                if (d.return === null || d.return === t) break e;
                                d = d.return
                            }
                            d.sibling.return = d.return, d = d.sibling
                        }
                        t.stateNode = e;
                        e: switch (vn(e, a, i), a) {
                            case "button":
                            case "input":
                            case "select":
                            case "textarea":
                                e = !!i.autoFocus;
                                break e;
                            case "img":
                                e = !0;
                                break e;
                            default:
                                e = !1
                        }
                        e && Jr(t)
                    }
                }
                return ra(t), t.flags &= -16777217, null;
            case 6:
                if (e && t.stateNode != null) e.memoizedProps !== i && Jr(t);
                else {
                    if (typeof i != "string" && t.stateNode === null) throw Error(c(166));
                    if (e = dl.current, ll(t)) {
                        if (e = t.stateNode, a = t.memoizedProps, i = null, d = Dt, d !== null) switch (d.tag) {
                            case 27:
                            case 5:
                                i = d.memoizedProps
                        }
                        e[Fe] = t, e = !!(e.nodeValue === a || i !== null && i.suppressHydrationWarning === !0 || Nm(e.nodeValue, a)), e || yl(t)
                    } else e = Ld(e).createTextNode(i), e[Fe] = t, t.stateNode = e
                }
                return ra(t), null;
            case 13:
                if (i = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
                    if (d = ll(t), i !== null && i.dehydrated !== null) {
                        if (e === null) {
                            if (!d) throw Error(c(318));
                            if (d = t.memoizedState, d = d !== null ? d.dehydrated : null, !d) throw Error(c(317));
                            d[Fe] = t
                        } else Sl(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
                        ra(t), d = !1
                    } else Kt !== null && (ah(Kt), Kt = null), d = !0;
                    if (!d) return t.flags & 256 ? (En(t), t) : (En(t), null)
                }
                if (En(t), t.flags & 128) return t.lanes = a, t;
                if (a = i !== null, e = e !== null && e.memoizedState !== null, a) {
                    i = t.child, d = null, i.alternate !== null && i.alternate.memoizedState !== null && i.alternate.memoizedState.cachePool !== null && (d = i.alternate.memoizedState.cachePool.pool);
                    var v = null;
                    i.memoizedState !== null && i.memoizedState.cachePool !== null && (v = i.memoizedState.cachePool.pool), v !== d && (i.flags |= 2048)
                }
                return a !== e && a && (t.child.flags |= 8192), Ed(t, t.updateQueue), ra(t), null;
            case 4:
                return Rn(), e === null && hh(t.stateNode.containerInfo), ra(t), null;
            case 10:
                return Qr(t.type), ra(t), null;
            case 19:
                if (oa(Ct), d = t.memoizedState, d === null) return ra(t), null;
                if (i = (t.flags & 128) !== 0, v = d.rendering, v === null)
                    if (i) Gu(d, !1);
                    else {
                        if (ha !== 0 || e !== null && e.flags & 128)
                            for (e = t.child; e !== null;) {
                                if (v = Vl(e), v !== null) {
                                    for (t.flags |= 128, Gu(d, !1), e = v.updateQueue, t.updateQueue = e, Ed(t, e), t.subtreeFlags = 0, e = a, a = t.child; a !== null;) Jg(a, e), a = a.sibling;
                                    return We(Ct, Ct.current & 1 | 2), t.child
                                }
                                e = e.sibling
                            }
                        d.tail !== null && On() > Td && (t.flags |= 128, i = !0, Gu(d, !1), t.lanes = 4194304)
                    }
                else {
                    if (!i)
                        if (e = Vl(v), e !== null) {
                            if (t.flags |= 128, i = !0, e = e.updateQueue, t.updateQueue = e, Ed(t, e), Gu(d, !0), d.tail === null && d.tailMode === "hidden" && !v.alternate && !qe) return ra(t), null
                        } else 2 * On() - d.renderingStartTime > Td && a !== 536870912 && (t.flags |= 128, i = !0, Gu(d, !1), t.lanes = 4194304);
                    d.isBackwards ? (v.sibling = t.child, t.child = v) : (e = d.last, e !== null ? e.sibling = v : t.child = v, d.last = v)
                }
                return d.tail !== null ? (t = d.tail, d.rendering = t, d.tail = t.sibling, d.renderingStartTime = On(), t.sibling = null, e = Ct.current, We(Ct, i ? e & 1 | 2 : e & 1), t) : (ra(t), null);
            case 22:
            case 23:
                return En(t), Pl(), i = t.memoizedState !== null, e !== null ? e.memoizedState !== null !== i && (t.flags |= 8192) : i && (t.flags |= 8192), i ? a & 536870912 && !(t.flags & 128) && (ra(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : ra(t), a = t.updateQueue, a !== null && Ed(t, a.retryQueue), a = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (a = e.memoizedState.cachePool.pool), i = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (i = t.memoizedState.cachePool.pool), i !== a && (t.flags |= 2048), e !== null && oa(G), null;
            case 24:
                return a = null, e !== null && (a = e.memoizedState.cache), t.memoizedState.cache !== a && (t.flags |= 2048), Qr(Xt), ra(t), null;
            case 25:
                return null
        }
        throw Error(c(156, t.tag))
    }

    function P1(e, t) {
        switch (kn(t), t.tag) {
            case 1:
                return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
            case 3:
                return Qr(Xt), Rn(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
            case 26:
            case 27:
            case 5:
                return Ci(t), null;
            case 13:
                if (En(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
                    if (t.alternate === null) throw Error(c(340));
                    Sl()
                }
                return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
            case 19:
                return oa(Ct), null;
            case 4:
                return Rn(), null;
            case 10:
                return Qr(t.type), null;
            case 22:
            case 23:
                return En(t), Pl(), e !== null && oa(G), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
            case 24:
                return Qr(Xt), null;
            case 25:
                return null;
            default:
                return null
        }
    }

    function em(e, t) {
        switch (kn(t), t.tag) {
            case 3:
                Qr(Xt), Rn();
                break;
            case 26:
            case 27:
            case 5:
                Ci(t);
                break;
            case 4:
                Rn();
                break;
            case 13:
                En(t);
                break;
            case 19:
                oa(Ct);
                break;
            case 10:
                Qr(t.type);
                break;
            case 22:
            case 23:
                En(t), Pl(), e !== null && oa(G);
                break;
            case 24:
                Qr(Xt)
        }
    }
    var V1 = {
            getCacheForType: function(e) {
                var t = Mn(Xt),
                    a = t.data.get(e);
                return a === void 0 && (a = e(), t.data.set(e, a)), a
            }
        },
        Z1 = typeof WeakMap == "function" ? WeakMap : Map,
        sa = 0,
        Bt = null,
        lt = null,
        ot = 0,
        Ht = 0,
        Rl = null,
        qr = !1,
        Fo = !1,
        If = !1,
        $r = 0,
        ha = 0,
        Js = 0,
        Zc = 0,
        Kf = 0,
        ei = 0,
        Go = 0,
        Yu = null,
        nr = null,
        Jf = !1,
        qf = 0,
        Td = 1 / 0,
        Md = null,
        qs = null,
        Ad = !1,
        Qc = null,
        Xu = 0,
        $f = 0,
        eh = null,
        Pu = 0,
        th = null;

    function Ol() {
        if (sa & 2 && ot !== 0) return ot & -ot;
        if (me.T !== null) {
            var e = b;
            return e !== 0 ? e : oh()
        }
        return dc()
    }

    function tm() {
        ei === 0 && (ei = !(ot & 536870912) || qe ? Oa() : 536870912);
        var e = pa.current;
        return e !== null && (e.flags |= 32), ei
    }

    function Hn(e, t, a) {
        (e === Bt && Ht === 2 || e.cancelPendingCommit !== null) && (Yo(e, 0), es(e, ot, ei, !1)), kl(e, a), (!(sa & 2) || e !== Bt) && (e === Bt && (!(sa & 2) && (Zc |= a), ha === 4 && es(e, ot, ei, !1)), lr(e))
    }

    function am(e, t, a) {
        if (sa & 6) throw Error(c(327));
        var i = !a && (t & 60) === 0 && (t & e.expiredLanes) === 0 || Qn(e, t),
            d = i ? I1(e, t) : ih(e, t, !0),
            v = i;
        do {
            if (d === 0) {
                Fo && !i && es(e, t, 0, !1);
                break
            } else if (d === 6) es(e, t, 0, !qr);
            else {
                if (a = e.current.alternate, v && !Q1(a)) {
                    d = ih(e, t, !1), v = !1;
                    continue
                }
                if (d === 2) {
                    if (v = t, e.errorRecoveryDisabledLanes & v) var E = 0;
                    else E = e.pendingLanes & -536870913, E = E !== 0 ? E : E & 536870912 ? 536870912 : 0;
                    if (E !== 0) {
                        t = E;
                        e: {
                            var j = e;d = Yu;
                            var L = j.current.memoizedState.isDehydrated;
                            if (L && (Yo(j, E).flags |= 256), E = ih(j, E, !1), E !== 2) {
                                if (If && !L) {
                                    j.errorRecoveryDisabledLanes |= v, Zc |= v, d = 4;
                                    break e
                                }
                                v = nr, nr = d, v !== null && ah(v)
                            }
                            d = E
                        }
                        if (v = !1, d !== 2) continue
                    }
                }
                if (d === 1) {
                    Yo(e, 0), es(e, t, 0, !0);
                    break
                }
                e: {
                    switch (i = e, d) {
                        case 0:
                        case 1:
                            throw Error(c(345));
                        case 4:
                            if ((t & 4194176) === t) {
                                es(i, t, ei, !qr);
                                break e
                            }
                            break;
                        case 2:
                            nr = null;
                            break;
                        case 3:
                        case 5:
                            break;
                        default:
                            throw Error(c(329))
                    }
                    if (i.finishedWork = a, i.finishedLanes = t, (t & 62914560) === t && (v = qf + 300 - On(), 10 < v)) {
                        if (es(i, t, ei, !qr), us(i, 0) !== 0) break e;
                        i.timeoutHandle = Tm(nm.bind(null, i, a, nr, Md, Jf, t, ei, Zc, Go, qr, 2, -0, 0), v);
                        break e
                    }
                    nm(i, a, nr, Md, Jf, t, ei, Zc, Go, qr, 0, -0, 0)
                }
            }
            break
        } while (!0);
        lr(e)
    }

    function ah(e) {
        nr === null ? nr = e : nr.push.apply(nr, e)
    }

    function nm(e, t, a, i, d, v, E, j, L, P, ie, ue, J) {
        var ne = t.subtreeFlags;
        if ((ne & 8192 || (ne & 16785408) === 16785408) && (Ku = {
                stylesheets: null,
                count: 0,
                unsuspend: Ab
            }, Qg(t), t = Ob(), t !== null)) {
            e.cancelPendingCommit = t(um.bind(null, e, a, i, d, E, j, L, 1, ue, J)), es(e, v, E, !P);
            return
        }
        um(e, a, i, d, E, j, L, ie, ue, J)
    }

    function Q1(e) {
        for (var t = e;;) {
            var a = t.tag;
            if ((a === 0 || a === 11 || a === 15) && t.flags & 16384 && (a = t.updateQueue, a !== null && (a = a.stores, a !== null)))
                for (var i = 0; i < a.length; i++) {
                    var d = a[i],
                        v = d.getSnapshot;
                    d = d.value;
                    try {
                        if (!T(v(), d)) return !1
                    } catch {
                        return !1
                    }
                }
            if (a = t.child, t.subtreeFlags & 16384 && a !== null) a.return = t, t = a;
            else {
                if (t === e) break;
                for (; t.sibling === null;) {
                    if (t.return === null || t.return === e) return !0;
                    t = t.return
                }
                t.sibling.return = t.return, t = t.sibling
            }
        }
        return !0
    }

    function es(e, t, a, i) {
        t &= ~Kf, t &= ~Zc, e.suspendedLanes |= t, e.pingedLanes &= ~t, i && (e.warmLanes |= t), i = e.expirationTimes;
        for (var d = t; 0 < d;) {
            var v = 31 - Wt(d),
                E = 1 << v;
            i[v] = -1, d &= ~E
        }
        a !== 0 && Wn(e, a, t)
    }

    function Rd() {
        return sa & 6 ? !0 : (Vu(0), !1)
    }

    function nh() {
        if (lt !== null) {
            if (Ht === 0) var e = lt.return;
            else e = lt, Zr = Yc = null, zr(e), zn = null, Jt = 0, e = lt;
            for (; e !== null;) em(e.alternate, e), e = e.return;
            lt = null
        }
    }

    function Yo(e, t) {
        e.finishedWork = null, e.finishedLanes = 0;
        var a = e.timeoutHandle;
        a !== -1 && (e.timeoutHandle = -1, fb(a)), a = e.cancelPendingCommit, a !== null && (e.cancelPendingCommit = null, a()), nh(), Bt = e, lt = a = Ks(e.current, null), ot = t, Ht = 0, Rl = null, qr = !1, Fo = Qn(e, t), If = !1, Go = ei = Kf = Zc = Js = ha = 0, nr = Yu = null, Jf = !1, t & 8 && (t |= t & 32);
        var i = e.entangledLanes;
        if (i !== 0)
            for (e = e.entanglements, i &= t; 0 < i;) {
                var d = 31 - Wt(i),
                    v = 1 << d;
                t |= e[d], i &= ~v
            }
        return $r = t, sn(), a
    }

    function lm(e, t) {
        ge = null, me.H = El, t === rl ? (t = Cn(), Ht = 3) : t === sl ? (t = Cn(), Ht = 4) : Ht = t === Ys ? 8 : t !== null && typeof t == "object" && typeof t.then == "function" ? 6 : 1, Rl = t, lt === null && (ha = 1, Yr(e, Na(t, e.current)))
    }

    function im() {
        var e = me.H;
        return me.H = El, e === null ? El : e
    }

    function rm() {
        var e = me.A;
        return me.A = V1, e
    }

    function lh() {
        ha = 4, qr || (ot & 4194176) !== ot && pa.current !== null || (Fo = !0), !(Js & 134217727) && !(Zc & 134217727) || Bt === null || es(Bt, ot, ei, !1)
    }

    function ih(e, t, a) {
        var i = sa;
        sa |= 2;
        var d = im(),
            v = rm();
        (Bt !== e || ot !== t) && (Md = null, Yo(e, t)), t = !1;
        var E = ha;
        e: do try {
                if (Ht !== 0 && lt !== null) {
                    var j = lt,
                        L = Rl;
                    switch (Ht) {
                        case 8:
                            nh(), E = 6;
                            break e;
                        case 3:
                        case 2:
                        case 6:
                            pa.current === null && (t = !0);
                            var P = Ht;
                            if (Ht = 0, Rl = null, Xo(e, j, L, P), a && Fo) {
                                E = 0;
                                break e
                            }
                            break;
                        default:
                            P = Ht, Ht = 0, Rl = null, Xo(e, j, L, P)
                    }
                }
                W1(), E = ha;
                break
            } catch (ie) {
                lm(e, ie)
            }
            while (!0);
            return t && e.shellSuspendCounter++, Zr = Yc = null, sa = i, me.H = d, me.A = v, lt === null && (Bt = null, ot = 0, sn()), E
    }

    function W1() {
        for (; lt !== null;) sm(lt)
    }

    function I1(e, t) {
        var a = sa;
        sa |= 2;
        var i = im(),
            d = rm();
        Bt !== e || ot !== t ? (Md = null, Td = On() + 500, Yo(e, t)) : Fo = Qn(e, t);
        e: do try {
                if (Ht !== 0 && lt !== null) {
                    t = lt;
                    var v = Rl;
                    t: switch (Ht) {
                        case 1:
                            Ht = 0, Rl = null, Xo(e, t, v, 1);
                            break;
                        case 2:
                            if (La(v)) {
                                Ht = 0, Rl = null, cm(t);
                                break
                            }
                            t = function() {
                                Ht === 2 && Bt === e && (Ht = 7), lr(e)
                            }, v.then(t, t);
                            break e;
                        case 3:
                            Ht = 7;
                            break e;
                        case 4:
                            Ht = 5;
                            break e;
                        case 7:
                            La(v) ? (Ht = 0, Rl = null, cm(t)) : (Ht = 0, Rl = null, Xo(e, t, v, 7));
                            break;
                        case 5:
                            var E = null;
                            switch (lt.tag) {
                                case 26:
                                    E = lt.memoizedState;
                                case 5:
                                case 27:
                                    var j = lt;
                                    if (!E || Um(E)) {
                                        Ht = 0, Rl = null;
                                        var L = j.sibling;
                                        if (L !== null) lt = L;
                                        else {
                                            var P = j.return;
                                            P !== null ? (lt = P, Od(P)) : lt = null
                                        }
                                        break t
                                    }
                            }
                            Ht = 0, Rl = null, Xo(e, t, v, 5);
                            break;
                        case 6:
                            Ht = 0, Rl = null, Xo(e, t, v, 6);
                            break;
                        case 8:
                            nh(), ha = 6;
                            break e;
                        default:
                            throw Error(c(462))
                    }
                }
                K1();
                break
            } catch (ie) {
                lm(e, ie)
            }
            while (!0);
            return Zr = Yc = null, me.H = i, me.A = d, sa = a, lt !== null ? 0 : (Bt = null, ot = 0, sn(), ha)
    }

    function K1() {
        for (; lt !== null && !xn();) sm(lt)
    }

    function sm(e) {
        var t = Rg(e.alternate, e, $r);
        e.memoizedProps = e.pendingProps, t === null ? Od(e) : lt = t
    }

    function cm(e) {
        var t = e,
            a = t.alternate;
        switch (t.tag) {
            case 15:
            case 0:
                t = _u(a, t, t.pendingProps, t.type, void 0, ot);
                break;
            case 11:
                t = _u(a, t, t.pendingProps, t.type.render, t.ref, ot);
                break;
            case 5:
                zr(t);
            default:
                em(a, t), t = lt = Jg(t, $r), t = Rg(a, t, $r)
        }
        e.memoizedProps = e.pendingProps, t === null ? Od(e) : lt = t
    }

    function Xo(e, t, a, i) {
        Zr = Yc = null, zr(t), zn = null, Jt = 0;
        var d = t.return;
        try {
            if (Hc(e, d, t, a, ot)) {
                ha = 1, Yr(e, Na(a, e.current)), lt = null;
                return
            }
        } catch (v) {
            if (d !== null) throw lt = d, v;
            ha = 1, Yr(e, Na(a, e.current)), lt = null;
            return
        }
        t.flags & 32768 ? (qe || i === 1 ? e = !0 : Fo || ot & 536870912 ? e = !1 : (qr = e = !0, (i === 2 || i === 3 || i === 6) && (i = pa.current, i !== null && i.tag === 13 && (i.flags |= 16384))), om(t, e)) : Od(t)
    }

    function Od(e) {
        var t = e;
        do {
            if (t.flags & 32768) {
                om(t, qr);
                return
            }
            e = t.return;
            var a = X1(t.alternate, t, $r);
            if (a !== null) {
                lt = a;
                return
            }
            if (t = t.sibling, t !== null) {
                lt = t;
                return
            }
            lt = t = e
        } while (t !== null);
        ha === 0 && (ha = 5)
    }

    function om(e, t) {
        do {
            var a = P1(e.alternate, e);
            if (a !== null) {
                a.flags &= 32767, lt = a;
                return
            }
            if (a = e.return, a !== null && (a.flags |= 32768, a.subtreeFlags = 0, a.deletions = null), !t && (e = e.sibling, e !== null)) {
                lt = e;
                return
            }
            lt = e = a
        } while (e !== null);
        ha = 6, lt = null
    }

    function um(e, t, a, i, d, v, E, j, L, P) {
        var ie = me.T,
            ue = Re.p;
        try {
            Re.p = 2, me.T = null, J1(e, t, a, i, ue, d, v, E, j, L, P)
        } finally {
            me.T = ie, Re.p = ue
        }
    }

    function J1(e, t, a, i, d, v, E, j) {
        do Po(); while (Qc !== null);
        if (sa & 6) throw Error(c(327));
        var L = e.finishedWork;
        if (i = e.finishedLanes, L === null) return null;
        if (e.finishedWork = null, e.finishedLanes = 0, L === e.current) throw Error(c(177));
        e.callbackNode = null, e.callbackPriority = 0, e.cancelPendingCommit = null;
        var P = L.lanes | L.childLanes;
        if (P |= di, bt(e, i, P, v, E, j), e === Bt && (lt = Bt = null, ot = 0), !(L.subtreeFlags & 10256) && !(L.flags & 10256) || Ad || (Ad = !0, $f = P, eh = a, tb(Vn, function() {
                return Po(), null
            })), a = (L.flags & 15990) !== 0, L.subtreeFlags & 15990 || a ? (a = me.T, me.T = null, v = Re.p, Re.p = 2, E = sa, sa |= 4, F1(e, L), Pg(L, e), he(bh, e.containerInfo), Yd = !!vh, bh = vh = null, e.current = L, Fg(e, L.alternate, L), ro(), sa = E, Re.p = v, me.T = a) : e.current = L, Ad ? (Ad = !1, Qc = e, Xu = i) : dm(e, P), P = e.pendingLanes, P === 0 && (qs = null), so(L.stateNode), lr(e), t !== null)
            for (d = e.onRecoverableError, L = 0; L < t.length; L++) P = t[L], d(P.value, {
                componentStack: P.stack
            });
        return Xu & 3 && Po(), P = e.pendingLanes, i & 4194218 && P & 42 ? e === th ? Pu++ : (Pu = 0, th = e) : Pu = 0, Vu(0), null
    }

    function dm(e, t) {
        (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, bi(t)))
    }

    function Po() {
        if (Qc !== null) {
            var e = Qc,
                t = $f;
            $f = 0;
            var a = ds(Xu),
                i = me.T,
                d = Re.p;
            try {
                if (Re.p = 32 > a ? 32 : a, me.T = null, Qc === null) var v = !1;
                else {
                    a = eh, eh = null;
                    var E = Qc,
                        j = Xu;
                    if (Qc = null, Xu = 0, sa & 6) throw Error(c(331));
                    var L = sa;
                    if (sa |= 4, Ig(E.current), Zg(E, E.current, j, a), sa = L, Vu(0, !1), it && typeof it.onPostCommitFiberRoot == "function") try {
                        it.onPostCommitFiberRoot(Ei, E)
                    } catch {}
                    v = !0
                }
                return v
            } finally {
                Re.p = d, me.T = i, dm(e, t)
            }
        }
        return !1
    }

    function fm(e, t, a) {
        t = Na(a, t), t = Xr(e.stateNode, t, 2), e = Zs(e, t, 2), e !== null && (kl(e, 2), lr(e))
    }

    function jt(e, t, a) {
        if (e.tag === 3) fm(e, e, a);
        else
            for (; t !== null;) {
                if (t.tag === 3) {
                    fm(t, e, a);
                    break
                } else if (t.tag === 1) {
                    var i = t.stateNode;
                    if (typeof t.type.getDerivedStateFromError == "function" || typeof i.componentDidCatch == "function" && (qs === null || !qs.has(i))) {
                        e = Na(a, e), a = Ru(2), i = Zs(t, a, 2), i !== null && (Gs(a, i, t, e), kl(i, 2), lr(i));
                        break
                    }
                }
                t = t.return
            }
    }

    function rh(e, t, a) {
        var i = e.pingCache;
        if (i === null) {
            i = e.pingCache = new Z1;
            var d = new Set;
            i.set(t, d)
        } else d = i.get(t), d === void 0 && (d = new Set, i.set(t, d));
        d.has(a) || (If = !0, d.add(a), e = q1.bind(null, e, t, a), t.then(e, e))
    }

    function q1(e, t, a) {
        var i = e.pingCache;
        i !== null && i.delete(t), e.pingedLanes |= e.suspendedLanes & a, e.warmLanes &= ~a, Bt === e && (ot & a) === a && (ha === 4 || ha === 3 && (ot & 62914560) === ot && 300 > On() - qf ? !(sa & 2) && Yo(e, 0) : Kf |= a, Go === ot && (Go = 0)), lr(e)
    }

    function hm(e, t) {
        t === 0 && (t = Ga()), e = Da(e, t), e !== null && (kl(e, t), lr(e))
    }

    function $1(e) {
        var t = e.memoizedState,
            a = 0;
        t !== null && (a = t.retryLane), hm(e, a)
    }

    function eb(e, t) {
        var a = 0;
        switch (e.tag) {
            case 13:
                var i = e.stateNode,
                    d = e.memoizedState;
                d !== null && (a = d.retryLane);
                break;
            case 19:
                i = e.stateNode;
                break;
            case 22:
                i = e.stateNode._retryCache;
                break;
            default:
                throw Error(c(314))
        }
        i !== null && i.delete(t), hm(e, a)
    }

    function tb(e, t) {
        return bn(e, t)
    }
    var _d = null,
        Vo = null,
        sh = !1,
        jd = !1,
        ch = !1,
        Wc = 0;

    function lr(e) {
        e !== Vo && e.next === null && (Vo === null ? _d = Vo = e : Vo = Vo.next = e), jd = !0, sh || (sh = !0, nb(ab))
    }

    function Vu(e, t) {
        if (!ch && jd) {
            ch = !0;
            do
                for (var a = !1, i = _d; i !== null;) {
                    if (e !== 0) {
                        var d = i.pendingLanes;
                        if (d === 0) var v = 0;
                        else {
                            var E = i.suspendedLanes,
                                j = i.pingedLanes;
                            v = (1 << 31 - Wt(42 | e) + 1) - 1, v &= d & ~(E & ~j), v = v & 201326677 ? v & 201326677 | 1 : v ? v | 2 : 0
                        }
                        v !== 0 && (a = !0, vm(i, v))
                    } else v = ot, v = us(i, i === Bt ? v : 0), !(v & 3) || Qn(i, v) || (a = !0, vm(i, v));
                    i = i.next
                }
            while (a);
            ch = !1
        }
    }

    function ab() {
        jd = sh = !1;
        var e = 0;
        Wc !== 0 && (db() && (e = Wc), Wc = 0);
        for (var t = On(), a = null, i = _d; i !== null;) {
            var d = i.next,
                v = gm(i, t);
            v === 0 ? (i.next = null, a === null ? _d = d : a.next = d, d === null && (Vo = a)) : (a = i, (e !== 0 || v & 3) && (jd = !0)), i = d
        }
        Vu(e)
    }

    function gm(e, t) {
        for (var a = e.suspendedLanes, i = e.pingedLanes, d = e.expirationTimes, v = e.pendingLanes & -62914561; 0 < v;) {
            var E = 31 - Wt(v),
                j = 1 << E,
                L = d[E];
            L === -1 ? (!(j & a) || j & i) && (d[E] = ua(j, t)) : L <= t && (e.expiredLanes |= j), v &= ~j
        }
        if (t = Bt, a = ot, a = us(e, e === t ? a : 0), i = e.callbackNode, a === 0 || e === t && Ht === 2 || e.cancelPendingCommit !== null) return i !== null && i !== null && Xe(i), e.callbackNode = null, e.callbackPriority = 0;
        if (!(a & 3) || Qn(e, a)) {
            if (t = a & -a, t === e.callbackPriority) return t;
            switch (i !== null && Xe(i), ds(a)) {
                case 2:
                case 8:
                    a = cs;
                    break;
                case 32:
                    a = Vn;
                    break;
                case 268435456:
                    a = li;
                    break;
                default:
                    a = Vn
            }
            return i = mm.bind(null, e), a = bn(a, i), e.callbackPriority = t, e.callbackNode = a, t
        }
        return i !== null && i !== null && Xe(i), e.callbackPriority = 2, e.callbackNode = null, 2
    }

    function mm(e, t) {
        var a = e.callbackNode;
        if (Po() && e.callbackNode !== a) return null;
        var i = ot;
        return i = us(e, e === Bt ? i : 0), i === 0 ? null : (am(e, i, t), gm(e, On()), e.callbackNode != null && e.callbackNode === a ? mm.bind(null, e) : null)
    }

    function vm(e, t) {
        if (Po()) return null;
        am(e, t, !0)
    }

    function nb(e) {
        hb(function() {
            sa & 6 ? bn(ss, e) : e()
        })
    }

    function oh() {
        return Wc === 0 && (Wc = Oa()), Wc
    }

    function bm(e) {
        return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : _i("" + e)
    }

    function xm(e, t) {
        var a = t.ownerDocument.createElement("input");
        return a.name = t.name, a.value = t.value, e.id && a.setAttribute("form", e.id), t.parentNode.insertBefore(a, t), e = new FormData(e), a.parentNode.removeChild(a), e
    }

    function lb(e, t, a, i, d) {
        if (t === "submit" && a && a.stateNode === d) {
            var v = bm((d[dt] || null).action),
                E = i.submitter;
            E && (t = (t = E[dt] || null) ? bm(t.formAction) : E.getAttribute("formAction"), t !== null && (v = t, E = null));
            var j = new yr("action", "action", null, i, d);
            e.push({
                event: j,
                listeners: [{
                    instance: null,
                    listener: function() {
                        if (i.defaultPrevented) {
                            if (Wc !== 0) {
                                var L = E ? xm(d, E) : new FormData(d);
                                Ur(a, {
                                    pending: !0,
                                    data: L,
                                    method: d.method,
                                    action: v
                                }, null, L)
                            }
                        } else typeof v == "function" && (j.preventDefault(), L = E ? xm(d, E) : new FormData(d), Ur(a, {
                            pending: !0,
                            data: L,
                            method: d.method,
                            action: v
                        }, v, L))
                    },
                    currentTarget: d
                }]
            })
        }
    }
    for (var uh = 0; uh < ka.length; uh++) {
        var dh = ka[uh],
            ib = dh.toLowerCase(),
            rb = dh[0].toUpperCase() + dh.slice(1);
        za(ib, "on" + rb)
    }
    za(nn, "onAnimationEnd"), za(ln, "onAnimationIteration"), za(wt, "onAnimationStart"), za("dblclick", "onDoubleClick"), za("focusin", "onFocus"), za("focusout", "onBlur"), za(Ye, "onTransitionRun"), za(Yt, "onTransitionStart"), za(tl, "onTransitionCancel"), za(wa, "onTransitionEnd"), Dl("onMouseEnter", ["mouseout", "mouseover"]), Dl("onMouseLeave", ["mouseout", "mouseover"]), Dl("onPointerEnter", ["pointerout", "pointerover"]), Dl("onPointerLeave", ["pointerout", "pointerover"]), pn("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), pn("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), pn("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), pn("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), pn("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), pn("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
    var Zu = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),
        sb = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zu));

    function pm(e, t) {
        t = (t & 4) !== 0;
        for (var a = 0; a < e.length; a++) {
            var i = e[a],
                d = i.event;
            i = i.listeners;
            e: {
                var v = void 0;
                if (t)
                    for (var E = i.length - 1; 0 <= E; E--) {
                        var j = i[E],
                            L = j.instance,
                            P = j.currentTarget;
                        if (j = j.listener, L !== v && d.isPropagationStopped()) break e;
                        v = j, d.currentTarget = P;
                        try {
                            v(d)
                        } catch (ie) {
                            Kl(ie)
                        }
                        d.currentTarget = null, v = L
                    } else
                        for (E = 0; E < i.length; E++) {
                            if (j = i[E], L = j.instance, P = j.currentTarget, j = j.listener, L !== v && d.isPropagationStopped()) break e;
                            v = j, d.currentTarget = P;
                            try {
                                v(d)
                            } catch (ie) {
                                Kl(ie)
                            }
                            d.currentTarget = null, v = L
                        }
            }
        }
    }

    function st(e, t) {
        var a = t[Ya];
        a === void 0 && (a = t[Ya] = new Set);
        var i = e + "__bubble";
        a.has(i) || (ym(t, e, 2, !1), a.add(i))
    }

    function fh(e, t, a) {
        var i = 0;
        t && (i |= 4), ym(a, e, i, t)
    }
    var kd = "_reactListening" + Math.random().toString(36).slice(2);

    function hh(e) {
        if (!e[kd]) {
            e[kd] = !0, hr.forEach(function(a) {
                a !== "selectionchange" && (sb.has(a) || fh(a, !1, e), fh(a, !0, e))
            });
            var t = e.nodeType === 9 ? e : e.ownerDocument;
            t === null || t[kd] || (t[kd] = !0, fh("selectionchange", !1, t))
        }
    }

    function ym(e, t, a, i) {
        switch (Xm(t)) {
            case 2:
                var d = kb;
                break;
            case 8:
                d = zb;
                break;
            default:
                d = Th
        }
        a = d.bind(null, t, a, e), d = void 0, !zi || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (d = !0), i ? d !== void 0 ? e.addEventListener(t, a, {
            capture: !0,
            passive: d
        }) : e.addEventListener(t, a, !0) : d !== void 0 ? e.addEventListener(t, a, {
            passive: d
        }) : e.addEventListener(t, a, !1)
    }

    function gh(e, t, a, i, d) {
        var v = i;
        if (!(t & 1) && !(t & 2) && i !== null) e: for (;;) {
            if (i === null) return;
            var E = i.tag;
            if (E === 3 || E === 4) {
                var j = i.stateNode.containerInfo;
                if (j === d || j.nodeType === 8 && j.parentNode === d) break;
                if (E === 4)
                    for (E = i.return; E !== null;) {
                        var L = E.tag;
                        if ((L === 3 || L === 4) && (L = E.stateNode.containerInfo, L === d || L.nodeType === 8 && L.parentNode === d)) return;
                        E = E.return
                    }
                for (; j !== null;) {
                    if (E = _n(j), E === null) return;
                    if (L = E.tag, L === 5 || L === 6 || L === 26 || L === 27) {
                        i = v = E;
                        continue e
                    }
                    j = j.parentNode
                }
            }
            i = i.return
        }
        ki(function() {
            var P = v,
                ie = ji(a),
                ue = [];
            e: {
                var J = rn.get(e);
                if (J !== void 0) {
                    var ne = yr,
                        Oe = e;
                    switch (e) {
                        case "keypress":
                            if (Li(a) === 0) break e;
                        case "keydown":
                        case "keyup":
                            ne = Nr;
                            break;
                        case "focusin":
                            Oe = "focus", ne = wr;
                            break;
                        case "focusout":
                            Oe = "blur", ne = wr;
                            break;
                        case "beforeblur":
                        case "afterblur":
                            ne = wr;
                            break;
                        case "click":
                            if (a.button === 2) break e;
                        case "auxclick":
                        case "dblclick":
                        case "mousedown":
                        case "mousemove":
                        case "mouseup":
                        case "mouseout":
                        case "mouseover":
                        case "contextmenu":
                            ne = Hi;
                            break;
                        case "drag":
                        case "dragend":
                        case "dragenter":
                        case "dragexit":
                        case "dragleave":
                        case "dragover":
                        case "dragstart":
                        case "drop":
                            ne = xs;
                            break;
                        case "touchcancel":
                        case "touchend":
                        case "touchmove":
                        case "touchstart":
                            ne = ci;
                            break;
                        case nn:
                        case ln:
                        case wt:
                            ne = Fi;
                            break;
                        case wa:
                            ne = Yi;
                            break;
                        case "scroll":
                        case "scrollend":
                            ne = cu;
                            break;
                        case "wheel":
                            ne = yo;
                            break;
                        case "copy":
                        case "cut":
                        case "paste":
                            ne = Bl;
                            break;
                        case "gotpointercapture":
                        case "lostpointercapture":
                        case "pointercancel":
                        case "pointerdown":
                        case "pointermove":
                        case "pointerout":
                        case "pointerover":
                        case "pointerup":
                            ne = tn;
                            break;
                        case "toggle":
                        case "beforetoggle":
                            ne = wc
                    }
                    var Ze = (t & 4) !== 0,
                        ga = !Ze && (e === "scroll" || e === "scrollend"),
                        Z = Ze ? J !== null ? J + "Capture" : null : J;
                    Ze = [];
                    for (var Y = P, I; Y !== null;) {
                        var se = Y;
                        if (I = se.stateNode, se = se.tag, se !== 5 && se !== 26 && se !== 27 || I === null || Z === null || (se = vl(Y, Z), se != null && Ze.push(Qu(Y, se, I))), ga) break;
                        Y = Y.return
                    }
                    0 < Ze.length && (J = new ne(J, Oe, null, a, ie), ue.push({
                        event: J,
                        listeners: Ze
                    }))
                }
            }
            if (!(t & 7)) {
                e: {
                    if (J = e === "mouseover" || e === "pointerover", ne = e === "mouseout" || e === "pointerout", J && a !== xr && (Oe = a.relatedTarget || a.fromElement) && (_n(Oe) || Oe[In])) break e;
                    if ((ne || J) && (J = ie.window === ie ? ie : (J = ie.ownerDocument) ? J.defaultView || J.parentWindow : window, ne ? (Oe = a.relatedTarget || a.toElement, ne = P, Oe = Oe ? _n(Oe) : null, Oe !== null && (ga = Me(Oe), Ze = Oe.tag, Oe !== ga || Ze !== 5 && Ze !== 27 && Ze !== 6) && (Oe = null)) : (ne = null, Oe = P), ne !== Oe)) {
                        if (Ze = Hi, se = "onMouseLeave", Z = "onMouseEnter", Y = "mouse", (e === "pointerout" || e === "pointerover") && (Ze = tn, se = "onPointerLeave", Z = "onPointerEnter", Y = "pointer"), ga = ne == null ? J : zl(ne), I = Oe == null ? J : zl(Oe), J = new Ze(se, Y + "leave", ne, a, ie), J.target = ga, J.relatedTarget = I, se = null, _n(ie) === P && (Ze = new Ze(Z, Y + "enter", Oe, a, ie), Ze.target = I, Ze.relatedTarget = ga, se = Ze), ga = se, ne && Oe) t: {
                            for (Ze = ne, Z = Oe, Y = 0, I = Ze; I; I = Zo(I)) Y++;
                            for (I = 0, se = Z; se; se = Zo(se)) I++;
                            for (; 0 < Y - I;) Ze = Zo(Ze),
                            Y--;
                            for (; 0 < I - Y;) Z = Zo(Z),
                            I--;
                            for (; Y--;) {
                                if (Ze === Z || Z !== null && Ze === Z.alternate) break t;
                                Ze = Zo(Ze), Z = Zo(Z)
                            }
                            Ze = null
                        }
                        else Ze = null;
                        ne !== null && Sm(ue, J, ne, Ze, !1), Oe !== null && ga !== null && Sm(ue, ga, Oe, Ze, !0)
                    }
                }
                e: {
                    if (J = P ? zl(P) : window, ne = J.nodeName && J.nodeName.toLowerCase(), ne === "select" || ne === "input" && J.type === "file") var Te = Mr;
                    else if (Vi(J))
                        if (Ar) Te = p;
                        else {
                            Te = u;
                            var at = Mc
                        }
                    else ne = J.nodeName,
                    !ne || ne.toLowerCase() !== "input" || J.type !== "checkbox" && J.type !== "radio" ? P && vc(P.elementType) && (Te = Mr) : Te = g;
                    if (Te && (Te = Te(e, P))) {
                        Ns(ue, Te, a, ie);
                        break e
                    }
                    at && at(e, J, P),
                    e === "focusout" && P && J.type === "number" && P.memoizedProps.value != null && mc(J, "number", J.value)
                }
                switch (at = P ? zl(P) : window, e) {
                    case "focusin":
                        (Vi(at) || at.contentEditable === "true") && (Ge = at, we = P, ze = null);
                        break;
                    case "focusout":
                        ze = we = Ge = null;
                        break;
                    case "mousedown":
                        mt = !0;
                        break;
                    case "contextmenu":
                    case "mouseup":
                    case "dragend":
                        mt = !1, Qe(ue, a, ie);
                        break;
                    case "selectionchange":
                        if (Ee) break;
                    case "keydown":
                    case "keyup":
                        Qe(ue, a, ie)
                }
                var je;
                if (Xi) e: {
                    switch (e) {
                        case "compositionstart":
                            var Ue = "onCompositionStart";
                            break e;
                        case "compositionend":
                            Ue = "onCompositionEnd";
                            break e;
                        case "compositionupdate":
                            Ue = "onCompositionUpdate";
                            break e
                    }
                    Ue = void 0
                }
                else oi ? Cc(e, a) && (Ue = "onCompositionEnd") : e === "keydown" && a.keyCode === 229 && (Ue = "onCompositionStart");Ue && (Tr && a.locale !== "ko" && (oi || Ue !== "onCompositionStart" ? Ue === "onCompositionEnd" && oi && (je = xc()) : (_a = ie, Di = "value" in _a ? _a.value : _a.textContent, oi = !0)), at = zd(P, Ue), 0 < at.length && (Ue = new xo(Ue, e, null, a, ie), ue.push({
                    event: Ue,
                    listeners: at
                }), je ? Ue.data = je : (je = Pi(a), je !== null && (Ue.data = je)))),
                (je = Er ? Ec(e, a) : Tc(e, a)) && (Ue = zd(P, "onBeforeInput"), 0 < Ue.length && (at = new xo("onBeforeInput", "beforeinput", null, a, ie), ue.push({
                    event: at,
                    listeners: Ue
                }), at.data = je)),
                lb(ue, e, P, a, ie)
            }
            pm(ue, t)
        })
    }

    function Qu(e, t, a) {
        return {
            instance: e,
            listener: t,
            currentTarget: a
        }
    }

    function zd(e, t) {
        for (var a = t + "Capture", i = []; e !== null;) {
            var d = e,
                v = d.stateNode;
            d = d.tag, d !== 5 && d !== 26 && d !== 27 || v === null || (d = vl(e, a), d != null && i.unshift(Qu(e, d, v)), d = vl(e, t), d != null && i.push(Qu(e, d, v))), e = e.return
        }
        return i
    }

    function Zo(e) {
        if (e === null) return null;
        do e = e.return; while (e && e.tag !== 5 && e.tag !== 27);
        return e || null
    }

    function Sm(e, t, a, i, d) {
        for (var v = t._reactName, E = []; a !== null && a !== i;) {
            var j = a,
                L = j.alternate,
                P = j.stateNode;
            if (j = j.tag, L !== null && L === i) break;
            j !== 5 && j !== 26 && j !== 27 || P === null || (L = P, d ? (P = vl(a, v), P != null && E.unshift(Qu(a, P, L))) : d || (P = vl(a, v), P != null && E.push(Qu(a, P, L)))), a = a.return
        }
        E.length !== 0 && e.push({
            event: t,
            listeners: E
        })
    }
    var cb = /\r\n?/g,
        ob = /\u0000|\uFFFD/g;

    function wm(e) {
        return (typeof e == "string" ? e : "" + e).replace(cb, `
`).replace(ob, "")
    }

    function Nm(e, t) {
        return t = wm(t), wm(e) === t
    }

    function Dd() {}

    function Tt(e, t, a, i, d, v) {
        switch (a) {
            case "children":
                typeof i == "string" ? t === "body" || t === "textarea" && i === "" || Oi(e, i) : (typeof i == "number" || typeof i == "bigint") && t !== "body" && Oi(e, "" + i);
                break;
            case "className":
                Sa(e, "class", i);
                break;
            case "tabIndex":
                Sa(e, "tabindex", i);
                break;
            case "dir":
            case "role":
            case "viewBox":
            case "width":
            case "height":
                Sa(e, a, i);
                break;
            case "style":
                mo(e, i, v);
                break;
            case "data":
                if (t !== "object") {
                    Sa(e, "data", i);
                    break
                }
            case "src":
            case "href":
                if (i === "" && (t !== "a" || a !== "href")) {
                    e.removeAttribute(a);
                    break
                }
                if (i == null || typeof i == "function" || typeof i == "symbol" || typeof i == "boolean") {
                    e.removeAttribute(a);
                    break
                }
                i = _i("" + i), e.setAttribute(a, i);
                break;
            case "action":
            case "formAction":
                if (typeof i == "function") {
                    e.setAttribute(a, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");
                    break
                } else typeof v == "function" && (a === "formAction" ? (t !== "input" && Tt(e, t, "name", d.name, d, null), Tt(e, t, "formEncType", d.formEncType, d, null), Tt(e, t, "formMethod", d.formMethod, d, null), Tt(e, t, "formTarget", d.formTarget, d, null)) : (Tt(e, t, "encType", d.encType, d, null), Tt(e, t, "method", d.method, d, null), Tt(e, t, "target", d.target, d, null)));
                if (i == null || typeof i == "symbol" || typeof i == "boolean") {
                    e.removeAttribute(a);
                    break
                }
                i = _i("" + i), e.setAttribute(a, i);
                break;
            case "onClick":
                i != null && (e.onclick = Dd);
                break;
            case "onScroll":
                i != null && st("scroll", e);
                break;
            case "onScrollEnd":
                i != null && st("scrollend", e);
                break;
            case "dangerouslySetInnerHTML":
                if (i != null) {
                    if (typeof i != "object" || !("__html" in i)) throw Error(c(61));
                    if (a = i.__html, a != null) {
                        if (d.children != null) throw Error(c(60));
                        e.innerHTML = a
                    }
                }
                break;
            case "multiple":
                e.multiple = i && typeof i != "function" && typeof i != "symbol";
                break;
            case "muted":
                e.muted = i && typeof i != "function" && typeof i != "symbol";
                break;
            case "suppressContentEditableWarning":
            case "suppressHydrationWarning":
            case "defaultValue":
            case "defaultChecked":
            case "innerHTML":
            case "ref":
                break;
            case "autoFocus":
                break;
            case "xlinkHref":
                if (i == null || typeof i == "function" || typeof i == "boolean" || typeof i == "symbol") {
                    e.removeAttribute("xlink:href");
                    break
                }
                a = _i("" + i), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", a);
                break;
            case "contentEditable":
            case "spellCheck":
            case "draggable":
            case "value":
            case "autoReverse":
            case "externalResourcesRequired":
            case "focusable":
            case "preserveAlpha":
                i != null && typeof i != "function" && typeof i != "symbol" ? e.setAttribute(a, "" + i) : e.removeAttribute(a);
                break;
            case "inert":
            case "allowFullScreen":
            case "async":
            case "autoPlay":
            case "controls":
            case "default":
            case "defer":
            case "disabled":
            case "disablePictureInPicture":
            case "disableRemotePlayback":
            case "formNoValidate":
            case "hidden":
            case "loop":
            case "noModule":
            case "noValidate":
            case "open":
            case "playsInline":
            case "readOnly":
            case "required":
            case "reversed":
            case "scoped":
            case "seamless":
            case "itemScope":
                i && typeof i != "function" && typeof i != "symbol" ? e.setAttribute(a, "") : e.removeAttribute(a);
                break;
            case "capture":
            case "download":
                i === !0 ? e.setAttribute(a, "") : i !== !1 && i != null && typeof i != "function" && typeof i != "symbol" ? e.setAttribute(a, i) : e.removeAttribute(a);
                break;
            case "cols":
            case "rows":
            case "size":
            case "span":
                i != null && typeof i != "function" && typeof i != "symbol" && !isNaN(i) && 1 <= i ? e.setAttribute(a, i) : e.removeAttribute(a);
                break;
            case "rowSpan":
            case "start":
                i == null || typeof i == "function" || typeof i == "symbol" || isNaN(i) ? e.removeAttribute(a) : e.setAttribute(a, i);
                break;
            case "popover":
                st("beforetoggle", e), st("toggle", e), Ai(e, "popover", i);
                break;
            case "xlinkActuate":
                $a(e, "http://www.w3.org/1999/xlink", "xlink:actuate", i);
                break;
            case "xlinkArcrole":
                $a(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", i);
                break;
            case "xlinkRole":
                $a(e, "http://www.w3.org/1999/xlink", "xlink:role", i);
                break;
            case "xlinkShow":
                $a(e, "http://www.w3.org/1999/xlink", "xlink:show", i);
                break;
            case "xlinkTitle":
                $a(e, "http://www.w3.org/1999/xlink", "xlink:title", i);
                break;
            case "xlinkType":
                $a(e, "http://www.w3.org/1999/xlink", "xlink:type", i);
                break;
            case "xmlBase":
                $a(e, "http://www.w3.org/XML/1998/namespace", "xml:base", i);
                break;
            case "xmlLang":
                $a(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", i);
                break;
            case "xmlSpace":
                $a(e, "http://www.w3.org/XML/1998/namespace", "xml:space", i);
                break;
            case "is":
                Ai(e, "is", i);
                break;
            case "innerText":
            case "textContent":
                break;
            default:
                (!(2 < a.length) || a[0] !== "o" && a[0] !== "O" || a[1] !== "n" && a[1] !== "N") && (a = ml.get(a) || a, Ai(e, a, i))
        }
    }

    function mh(e, t, a, i, d, v) {
        switch (a) {
            case "style":
                mo(e, i, v);
                break;
            case "dangerouslySetInnerHTML":
                if (i != null) {
                    if (typeof i != "object" || !("__html" in i)) throw Error(c(61));
                    if (a = i.__html, a != null) {
                        if (d.children != null) throw Error(c(60));
                        e.innerHTML = a
                    }
                }
                break;
            case "children":
                typeof i == "string" ? Oi(e, i) : (typeof i == "number" || typeof i == "bigint") && Oi(e, "" + i);
                break;
            case "onScroll":
                i != null && st("scroll", e);
                break;
            case "onScrollEnd":
                i != null && st("scrollend", e);
                break;
            case "onClick":
                i != null && (e.onclick = Dd);
                break;
            case "suppressContentEditableWarning":
            case "suppressHydrationWarning":
            case "innerHTML":
            case "ref":
                break;
            case "innerText":
            case "textContent":
                break;
            default:
                if (!Mi.hasOwnProperty(a)) e: {
                    if (a[0] === "o" && a[1] === "n" && (d = a.endsWith("Capture"), t = a.slice(2, d ? a.length - 7 : void 0), v = e[dt] || null, v = v != null ? v[a] : null, typeof v == "function" && e.removeEventListener(t, v, d), typeof i == "function")) {
                        typeof v != "function" && v !== null && (a in e ? e[a] = null : e.hasAttribute(a) && e.removeAttribute(a)), e.addEventListener(t, i, d);
                        break e
                    }
                    a in e ? e[a] = i : i === !0 ? e.setAttribute(a, "") : Ai(e, a, i)
                }
        }
    }

    function vn(e, t, a) {
        switch (t) {
            case "div":
            case "span":
            case "svg":
            case "path":
            case "a":
            case "g":
            case "p":
            case "li":
                break;
            case "img":
                st("error", e), st("load", e);
                var i = !1,
                    d = !1,
                    v;
                for (v in a)
                    if (a.hasOwnProperty(v)) {
                        var E = a[v];
                        if (E != null) switch (v) {
                            case "src":
                                i = !0;
                                break;
                            case "srcSet":
                                d = !0;
                                break;
                            case "children":
                            case "dangerouslySetInnerHTML":
                                throw Error(c(137, t));
                            default:
                                Tt(e, t, v, E, a, null)
                        }
                    } d && Tt(e, t, "srcSet", a.srcSet, a, null), i && Tt(e, t, "src", a.src, a, null);
                return;
            case "input":
                st("invalid", e);
                var j = v = E = d = null,
                    L = null,
                    P = null;
                for (i in a)
                    if (a.hasOwnProperty(i)) {
                        var ie = a[i];
                        if (ie != null) switch (i) {
                            case "name":
                                d = ie;
                                break;
                            case "type":
                                E = ie;
                                break;
                            case "checked":
                                L = ie;
                                break;
                            case "defaultChecked":
                                P = ie;
                                break;
                            case "value":
                                v = ie;
                                break;
                            case "defaultValue":
                                j = ie;
                                break;
                            case "children":
                            case "dangerouslySetInnerHTML":
                                if (ie != null) throw Error(c(137, t));
                                break;
                            default:
                                Tt(e, t, i, ie, a, null)
                        }
                    } go(e, v, j, L, P, E, d, !1), gr(e);
                return;
            case "select":
                st("invalid", e), i = E = v = null;
                for (d in a)
                    if (a.hasOwnProperty(d) && (j = a[d], j != null)) switch (d) {
                        case "value":
                            v = j;
                            break;
                        case "defaultValue":
                            E = j;
                            break;
                        case "multiple":
                            i = j;
                        default:
                            Tt(e, t, d, j, a, null)
                    }
                t = v, a = E, e.multiple = !!i, t != null ? ri(e, !!i, t, !1) : a != null && ri(e, !!i, a, !0);
                return;
            case "textarea":
                st("invalid", e), v = d = i = null;
                for (E in a)
                    if (a.hasOwnProperty(E) && (j = a[E], j != null)) switch (E) {
                        case "value":
                            i = j;
                            break;
                        case "defaultValue":
                            d = j;
                            break;
                        case "children":
                            v = j;
                            break;
                        case "dangerouslySetInnerHTML":
                            if (j != null) throw Error(c(91));
                            break;
                        default:
                            Tt(e, t, E, j, a, null)
                    }
                vr(e, i, d, v), gr(e);
                return;
            case "option":
                for (L in a)
                    if (a.hasOwnProperty(L) && (i = a[L], i != null)) switch (L) {
                        case "selected":
                            e.selected = i && typeof i != "function" && typeof i != "symbol";
                            break;
                        default:
                            Tt(e, t, L, i, a, null)
                    }
                return;
            case "dialog":
                st("cancel", e), st("close", e);
                break;
            case "iframe":
            case "object":
                st("load", e);
                break;
            case "video":
            case "audio":
                for (i = 0; i < Zu.length; i++) st(Zu[i], e);
                break;
            case "image":
                st("error", e), st("load", e);
                break;
            case "details":
                st("toggle", e);
                break;
            case "embed":
            case "source":
            case "link":
                st("error", e), st("load", e);
            case "area":
            case "base":
            case "br":
            case "col":
            case "hr":
            case "keygen":
            case "meta":
            case "param":
            case "track":
            case "wbr":
            case "menuitem":
                for (P in a)
                    if (a.hasOwnProperty(P) && (i = a[P], i != null)) switch (P) {
                        case "children":
                        case "dangerouslySetInnerHTML":
                            throw Error(c(137, t));
                        default:
                            Tt(e, t, P, i, a, null)
                    }
                return;
            default:
                if (vc(t)) {
                    for (ie in a) a.hasOwnProperty(ie) && (i = a[ie], i !== void 0 && mh(e, t, ie, i, a, void 0));
                    return
                }
        }
        for (j in a) a.hasOwnProperty(j) && (i = a[j], i != null && Tt(e, t, j, i, a, null))
    }

    function ub(e, t, a, i) {
        switch (t) {
            case "div":
            case "span":
            case "svg":
            case "path":
            case "a":
            case "g":
            case "p":
            case "li":
                break;
            case "input":
                var d = null,
                    v = null,
                    E = null,
                    j = null,
                    L = null,
                    P = null,
                    ie = null;
                for (ne in a) {
                    var ue = a[ne];
                    if (a.hasOwnProperty(ne) && ue != null) switch (ne) {
                        case "checked":
                            break;
                        case "value":
                            break;
                        case "defaultValue":
                            L = ue;
                        default:
                            i.hasOwnProperty(ne) || Tt(e, t, ne, null, i, ue)
                    }
                }
                for (var J in i) {
                    var ne = i[J];
                    if (ue = a[J], i.hasOwnProperty(J) && (ne != null || ue != null)) switch (J) {
                        case "type":
                            v = ne;
                            break;
                        case "name":
                            d = ne;
                            break;
                        case "checked":
                            P = ne;
                            break;
                        case "defaultChecked":
                            ie = ne;
                            break;
                        case "value":
                            E = ne;
                            break;
                        case "defaultValue":
                            j = ne;
                            break;
                        case "children":
                        case "dangerouslySetInnerHTML":
                            if (ne != null) throw Error(c(137, t));
                            break;
                        default:
                            ne !== ue && Tt(e, t, J, ne, i, ue)
                    }
                }
                Ri(e, E, j, L, P, ie, v, d);
                return;
            case "select":
                ne = E = j = J = null;
                for (v in a)
                    if (L = a[v], a.hasOwnProperty(v) && L != null) switch (v) {
                        case "value":
                            break;
                        case "multiple":
                            ne = L;
                        default:
                            i.hasOwnProperty(v) || Tt(e, t, v, null, i, L)
                    }
                for (d in i)
                    if (v = i[d], L = a[d], i.hasOwnProperty(d) && (v != null || L != null)) switch (d) {
                        case "value":
                            J = v;
                            break;
                        case "defaultValue":
                            j = v;
                            break;
                        case "multiple":
                            E = v;
                        default:
                            v !== L && Tt(e, t, d, v, i, L)
                    }
                t = j, a = E, i = ne, J != null ? ri(e, !!a, J, !1) : !!i != !!a && (t != null ? ri(e, !!a, t, !0) : ri(e, !!a, a ? [] : "", !1));
                return;
            case "textarea":
                ne = J = null;
                for (j in a)
                    if (d = a[j], a.hasOwnProperty(j) && d != null && !i.hasOwnProperty(j)) switch (j) {
                        case "value":
                            break;
                        case "children":
                            break;
                        default:
                            Tt(e, t, j, null, i, d)
                    }
                for (E in i)
                    if (d = i[E], v = a[E], i.hasOwnProperty(E) && (d != null || v != null)) switch (E) {
                        case "value":
                            J = d;
                            break;
                        case "defaultValue":
                            ne = d;
                            break;
                        case "children":
                            break;
                        case "dangerouslySetInnerHTML":
                            if (d != null) throw Error(c(91));
                            break;
                        default:
                            d !== v && Tt(e, t, E, d, i, v)
                    }
                Ll(e, J, ne);
                return;
            case "option":
                for (var Oe in a)
                    if (J = a[Oe], a.hasOwnProperty(Oe) && J != null && !i.hasOwnProperty(Oe)) switch (Oe) {
                        case "selected":
                            e.selected = !1;
                            break;
                        default:
                            Tt(e, t, Oe, null, i, J)
                    }
                for (L in i)
                    if (J = i[L], ne = a[L], i.hasOwnProperty(L) && J !== ne && (J != null || ne != null)) switch (L) {
                        case "selected":
                            e.selected = J && typeof J != "function" && typeof J != "symbol";
                            break;
                        default:
                            Tt(e, t, L, J, i, ne)
                    }
                return;
            case "img":
            case "link":
            case "area":
            case "base":
            case "br":
            case "col":
            case "embed":
            case "hr":
            case "keygen":
            case "meta":
            case "param":
            case "source":
            case "track":
            case "wbr":
            case "menuitem":
                for (var Ze in a) J = a[Ze], a.hasOwnProperty(Ze) && J != null && !i.hasOwnProperty(Ze) && Tt(e, t, Ze, null, i, J);
                for (P in i)
                    if (J = i[P], ne = a[P], i.hasOwnProperty(P) && J !== ne && (J != null || ne != null)) switch (P) {
                        case "children":
                        case "dangerouslySetInnerHTML":
                            if (J != null) throw Error(c(137, t));
                            break;
                        default:
                            Tt(e, t, P, J, i, ne)
                    }
                return;
            default:
                if (vc(t)) {
                    for (var ga in a) J = a[ga], a.hasOwnProperty(ga) && J !== void 0 && !i.hasOwnProperty(ga) && mh(e, t, ga, void 0, i, J);
                    for (ie in i) J = i[ie], ne = a[ie], !i.hasOwnProperty(ie) || J === ne || J === void 0 && ne === void 0 || mh(e, t, ie, J, i, ne);
                    return
                }
        }
        for (var Z in a) J = a[Z], a.hasOwnProperty(Z) && J != null && !i.hasOwnProperty(Z) && Tt(e, t, Z, null, i, J);
        for (ue in i) J = i[ue], ne = a[ue], !i.hasOwnProperty(ue) || J === ne || J == null && ne == null || Tt(e, t, ue, J, i, ne)
    }
    var vh = null,
        bh = null;

    function Ld(e) {
        return e.nodeType === 9 ? e : e.ownerDocument
    }

    function Cm(e) {
        switch (e) {
            case "http://www.w3.org/2000/svg":
                return 1;
            case "http://www.w3.org/1998/Math/MathML":
                return 2;
            default:
                return 0
        }
    }

    function Em(e, t) {
        if (e === 0) switch (t) {
            case "svg":
                return 1;
            case "math":
                return 2;
            default:
                return 0
        }
        return e === 1 && t === "foreignObject" ? 0 : e
    }

    function xh(e, t) {
        return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null
    }
    var ph = null;

    function db() {
        var e = window.event;
        return e && e.type === "popstate" ? e === ph ? !1 : (ph = e, !0) : (ph = null, !1)
    }
    var Tm = typeof setTimeout == "function" ? setTimeout : void 0,
        fb = typeof clearTimeout == "function" ? clearTimeout : void 0,
        Mm = typeof Promise == "function" ? Promise : void 0,
        hb = typeof queueMicrotask == "function" ? queueMicrotask : typeof Mm < "u" ? function(e) {
            return Mm.resolve(null).then(e).catch(gb)
        } : Tm;

    function gb(e) {
        setTimeout(function() {
            throw e
        })
    }

    function yh(e, t) {
        var a = t,
            i = 0;
        do {
            var d = a.nextSibling;
            if (e.removeChild(a), d && d.nodeType === 8)
                if (a = d.data, a === "/$") {
                    if (i === 0) {
                        e.removeChild(d), td(t);
                        return
                    }
                    i--
                } else a !== "$" && a !== "$?" && a !== "$!" || i++;
            a = d
        } while (a);
        td(t)
    }

    function Sh(e) {
        var t = e.firstChild;
        for (t && t.nodeType === 10 && (t = t.nextSibling); t;) {
            var a = t;
            switch (t = t.nextSibling, a.nodeName) {
                case "HTML":
                case "HEAD":
                case "BODY":
                    Sh(a), hc(a);
                    continue;
                case "SCRIPT":
                case "STYLE":
                    continue;
                case "LINK":
                    if (a.rel.toLowerCase() === "stylesheet") continue
            }
            e.removeChild(a)
        }
    }

    function mb(e, t, a, i) {
        for (; e.nodeType === 1;) {
            var d = a;
            if (e.nodeName.toLowerCase() !== t.toLowerCase()) {
                if (!i && (e.nodeName !== "INPUT" || e.type !== "hidden")) break
            } else if (i) {
                if (!e[Ti]) switch (t) {
                    case "meta":
                        if (!e.hasAttribute("itemprop")) break;
                        return e;
                    case "link":
                        if (v = e.getAttribute("rel"), v === "stylesheet" && e.hasAttribute("data-precedence")) break;
                        if (v !== d.rel || e.getAttribute("href") !== (d.href == null ? null : d.href) || e.getAttribute("crossorigin") !== (d.crossOrigin == null ? null : d.crossOrigin) || e.getAttribute("title") !== (d.title == null ? null : d.title)) break;
                        return e;
                    case "style":
                        if (e.hasAttribute("data-precedence")) break;
                        return e;
                    case "script":
                        if (v = e.getAttribute("src"), (v !== (d.src == null ? null : d.src) || e.getAttribute("type") !== (d.type == null ? null : d.type) || e.getAttribute("crossorigin") !== (d.crossOrigin == null ? null : d.crossOrigin)) && v && e.hasAttribute("async") && !e.hasAttribute("itemprop")) break;
                        return e;
                    default:
                        return e
                }
            } else if (t === "input" && e.type === "hidden") {
                var v = d.name == null ? null : "" + d.name;
                if (d.type === "hidden" && e.getAttribute("name") === v) return e
            } else return e;
            if (e = yi(e.nextSibling), e === null) break
        }
        return null
    }

    function vb(e, t, a) {
        if (t === "") return null;
        for (; e.nodeType !== 3;)
            if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !a || (e = yi(e.nextSibling), e === null)) return null;
        return e
    }

    function yi(e) {
        for (; e != null; e = e.nextSibling) {
            var t = e.nodeType;
            if (t === 1 || t === 3) break;
            if (t === 8) {
                if (t = e.data, t === "$" || t === "$!" || t === "$?" || t === "F!" || t === "F") break;
                if (t === "/$") return null
            }
        }
        return e
    }

    function Am(e) {
        e = e.previousSibling;
        for (var t = 0; e;) {
            if (e.nodeType === 8) {
                var a = e.data;
                if (a === "$" || a === "$!" || a === "$?") {
                    if (t === 0) return e;
                    t--
                } else a === "/$" && t++
            }
            e = e.previousSibling
        }
        return null
    }

    function Rm(e, t, a) {
        switch (t = Ld(a), e) {
            case "html":
                if (e = t.documentElement, !e) throw Error(c(452));
                return e;
            case "head":
                if (e = t.head, !e) throw Error(c(453));
                return e;
            case "body":
                if (e = t.body, !e) throw Error(c(454));
                return e;
            default:
                throw Error(c(451))
        }
    }
    var ti = new Map,
        Om = new Set;

    function Ud(e) {
        return typeof e.getRootNode == "function" ? e.getRootNode() : e.ownerDocument
    }
    var ts = Re.d;
    Re.d = {
        f: bb,
        r: xb,
        D: pb,
        C: yb,
        L: Sb,
        m: wb,
        X: Cb,
        S: Nb,
        M: Eb
    };

    function bb() {
        var e = ts.f(),
            t = Rd();
        return e || t
    }

    function xb(e) {
        var t = St(e);
        t !== null && t.tag === 5 && t.type === "form" ? Lc(t) : ts.r(e)
    }
    var Qo = typeof document > "u" ? null : document;

    function _m(e, t, a) {
        var i = Qo;
        if (i && typeof t == "string" && t) {
            var d = Xa(t);
            d = 'link[rel="' + e + '"][href="' + d + '"]', typeof a == "string" && (d += '[crossorigin="' + a + '"]'), Om.has(d) || (Om.add(d), e = {
                rel: e,
                crossOrigin: a,
                href: t
            }, i.querySelector(d) === null && (t = i.createElement("link"), vn(t, "link", e), pt(t), i.head.appendChild(t)))
        }
    }

    function pb(e) {
        ts.D(e), _m("dns-prefetch", e, null)
    }

    function yb(e, t) {
        ts.C(e, t), _m("preconnect", e, t)
    }

    function Sb(e, t, a) {
        ts.L(e, t, a);
        var i = Qo;
        if (i && e && t) {
            var d = 'link[rel="preload"][as="' + Xa(t) + '"]';
            t === "image" && a && a.imageSrcSet ? (d += '[imagesrcset="' + Xa(a.imageSrcSet) + '"]', typeof a.imageSizes == "string" && (d += '[imagesizes="' + Xa(a.imageSizes) + '"]')) : d += '[href="' + Xa(e) + '"]';
            var v = d;
            switch (t) {
                case "style":
                    v = Wo(e);
                    break;
                case "script":
                    v = Io(e)
            }
            ti.has(v) || (e = Le({
                rel: "preload",
                href: t === "image" && a && a.imageSrcSet ? void 0 : e,
                as: t
            }, a), ti.set(v, e), i.querySelector(d) !== null || t === "style" && i.querySelector(Wu(v)) || t === "script" && i.querySelector(Iu(v)) || (t = i.createElement("link"), vn(t, "link", e), pt(t), i.head.appendChild(t)))
        }
    }

    function wb(e, t) {
        ts.m(e, t);
        var a = Qo;
        if (a && e) {
            var i = t && typeof t.as == "string" ? t.as : "script",
                d = 'link[rel="modulepreload"][as="' + Xa(i) + '"][href="' + Xa(e) + '"]',
                v = d;
            switch (i) {
                case "audioworklet":
                case "paintworklet":
                case "serviceworker":
                case "sharedworker":
                case "worker":
                case "script":
                    v = Io(e)
            }
            if (!ti.has(v) && (e = Le({
                    rel: "modulepreload",
                    href: e
                }, t), ti.set(v, e), a.querySelector(d) === null)) {
                switch (i) {
                    case "audioworklet":
                    case "paintworklet":
                    case "serviceworker":
                    case "sharedworker":
                    case "worker":
                    case "script":
                        if (a.querySelector(Iu(v))) return
                }
                i = a.createElement("link"), vn(i, "link", e), pt(i), a.head.appendChild(i)
            }
        }
    }

    function Nb(e, t, a) {
        ts.S(e, t, a);
        var i = Qo;
        if (i && e) {
            var d = hl(i).hoistableStyles,
                v = Wo(e);
            t = t || "default";
            var E = d.get(v);
            if (!E) {
                var j = {
                    loading: 0,
                    preload: null
                };
                if (E = i.querySelector(Wu(v))) j.loading = 5;
                else {
                    e = Le({
                        rel: "stylesheet",
                        href: e,
                        "data-precedence": t
                    }, a), (a = ti.get(v)) && wh(e, a);
                    var L = E = i.createElement("link");
                    pt(L), vn(L, "link", e), L._p = new Promise(function(P, ie) {
                        L.onload = P, L.onerror = ie
                    }), L.addEventListener("load", function() {
                        j.loading |= 1
                    }), L.addEventListener("error", function() {
                        j.loading |= 2
                    }), j.loading |= 4, Bd(E, t, i)
                }
                E = {
                    type: "stylesheet",
                    instance: E,
                    count: 1,
                    state: j
                }, d.set(v, E)
            }
        }
    }

    function Cb(e, t) {
        ts.X(e, t);
        var a = Qo;
        if (a && e) {
            var i = hl(a).hoistableScripts,
                d = Io(e),
                v = i.get(d);
            v || (v = a.querySelector(Iu(d)), v || (e = Le({
                src: e,
                async: !0
            }, t), (t = ti.get(d)) && Nh(e, t), v = a.createElement("script"), pt(v), vn(v, "link", e), a.head.appendChild(v)), v = {
                type: "script",
                instance: v,
                count: 1,
                state: null
            }, i.set(d, v))
        }
    }

    function Eb(e, t) {
        ts.M(e, t);
        var a = Qo;
        if (a && e) {
            var i = hl(a).hoistableScripts,
                d = Io(e),
                v = i.get(d);
            v || (v = a.querySelector(Iu(d)), v || (e = Le({
                src: e,
                async: !0,
                type: "module"
            }, t), (t = ti.get(d)) && Nh(e, t), v = a.createElement("script"), pt(v), vn(v, "link", e), a.head.appendChild(v)), v = {
                type: "script",
                instance: v,
                count: 1,
                state: null
            }, i.set(d, v))
        }
    }

    function jm(e, t, a, i) {
        var d = (d = dl.current) ? Ud(d) : null;
        if (!d) throw Error(c(446));
        switch (e) {
            case "meta":
            case "title":
                return null;
            case "style":
                return typeof a.precedence == "string" && typeof a.href == "string" ? (t = Wo(a.href), a = hl(d).hoistableStyles, i = a.get(t), i || (i = {
                    type: "style",
                    instance: null,
                    count: 0,
                    state: null
                }, a.set(t, i)), i) : {
                    type: "void",
                    instance: null,
                    count: 0,
                    state: null
                };
            case "link":
                if (a.rel === "stylesheet" && typeof a.href == "string" && typeof a.precedence == "string") {
                    e = Wo(a.href);
                    var v = hl(d).hoistableStyles,
                        E = v.get(e);
                    if (E || (d = d.ownerDocument || d, E = {
                            type: "stylesheet",
                            instance: null,
                            count: 0,
                            state: {
                                loading: 0,
                                preload: null
                            }
                        }, v.set(e, E), (v = d.querySelector(Wu(e))) && !v._p && (E.instance = v, E.state.loading = 5), ti.has(e) || (a = {
                            rel: "preload",
                            as: "style",
                            href: a.href,
                            crossOrigin: a.crossOrigin,
                            integrity: a.integrity,
                            media: a.media,
                            hrefLang: a.hrefLang,
                            referrerPolicy: a.referrerPolicy
                        }, ti.set(e, a), v || Tb(d, e, a, E.state))), t && i === null) throw Error(c(528, ""));
                    return E
                }
                if (t && i !== null) throw Error(c(529, ""));
                return null;
            case "script":
                return t = a.async, a = a.src, typeof a == "string" && t && typeof t != "function" && typeof t != "symbol" ? (t = Io(a), a = hl(d).hoistableScripts, i = a.get(t), i || (i = {
                    type: "script",
                    instance: null,
                    count: 0,
                    state: null
                }, a.set(t, i)), i) : {
                    type: "void",
                    instance: null,
                    count: 0,
                    state: null
                };
            default:
                throw Error(c(444, e))
        }
    }

    function Wo(e) {
        return 'href="' + Xa(e) + '"'
    }

    function Wu(e) {
        return 'link[rel="stylesheet"][' + e + "]"
    }

    function km(e) {
        return Le({}, e, {
            "data-precedence": e.precedence,
            precedence: null
        })
    }

    function Tb(e, t, a, i) {
        e.querySelector('link[rel="preload"][as="style"][' + t + "]") ? i.loading = 1 : (t = e.createElement("link"), i.preload = t, t.addEventListener("load", function() {
            return i.loading |= 1
        }), t.addEventListener("error", function() {
            return i.loading |= 2
        }), vn(t, "link", a), pt(t), e.head.appendChild(t))
    }

    function Io(e) {
        return '[src="' + Xa(e) + '"]'
    }

    function Iu(e) {
        return "script[async]" + e
    }

    function zm(e, t, a) {
        if (t.count++, t.instance === null) switch (t.type) {
            case "style":
                var i = e.querySelector('style[data-href~="' + Xa(a.href) + '"]');
                if (i) return t.instance = i, pt(i), i;
                var d = Le({}, a, {
                    "data-href": a.href,
                    "data-precedence": a.precedence,
                    href: null,
                    precedence: null
                });
                return i = (e.ownerDocument || e).createElement("style"), pt(i), vn(i, "style", d), Bd(i, a.precedence, e), t.instance = i;
            case "stylesheet":
                d = Wo(a.href);
                var v = e.querySelector(Wu(d));
                if (v) return t.state.loading |= 4, t.instance = v, pt(v), v;
                i = km(a), (d = ti.get(d)) && wh(i, d), v = (e.ownerDocument || e).createElement("link"), pt(v);
                var E = v;
                return E._p = new Promise(function(j, L) {
                    E.onload = j, E.onerror = L
                }), vn(v, "link", i), t.state.loading |= 4, Bd(v, a.precedence, e), t.instance = v;
            case "script":
                return v = Io(a.src), (d = e.querySelector(Iu(v))) ? (t.instance = d, pt(d), d) : (i = a, (d = ti.get(v)) && (i = Le({}, a), Nh(i, d)), e = e.ownerDocument || e, d = e.createElement("script"), pt(d), vn(d, "link", i), e.head.appendChild(d), t.instance = d);
            case "void":
                return null;
            default:
                throw Error(c(443, t.type))
        } else t.type === "stylesheet" && !(t.state.loading & 4) && (i = t.instance, t.state.loading |= 4, Bd(i, a.precedence, e));
        return t.instance
    }

    function Bd(e, t, a) {
        for (var i = a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'), d = i.length ? i[i.length - 1] : null, v = d, E = 0; E < i.length; E++) {
            var j = i[E];
            if (j.dataset.precedence === t) v = j;
            else if (v !== d) break
        }
        v ? v.parentNode.insertBefore(e, v.nextSibling) : (t = a.nodeType === 9 ? a.head : a, t.insertBefore(e, t.firstChild))
    }

    function wh(e, t) {
        e.crossOrigin == null && (e.crossOrigin = t.crossOrigin), e.referrerPolicy == null && (e.referrerPolicy = t.referrerPolicy), e.title == null && (e.title = t.title)
    }

    function Nh(e, t) {
        e.crossOrigin == null && (e.crossOrigin = t.crossOrigin), e.referrerPolicy == null && (e.referrerPolicy = t.referrerPolicy), e.integrity == null && (e.integrity = t.integrity)
    }
    var Hd = null;

    function Dm(e, t, a) {
        if (Hd === null) {
            var i = new Map,
                d = Hd = new Map;
            d.set(a, i)
        } else d = Hd, i = d.get(a), i || (i = new Map, d.set(a, i));
        if (i.has(e)) return i;
        for (i.set(e, null), a = a.getElementsByTagName(e), d = 0; d < a.length; d++) {
            var v = a[d];
            if (!(v[Ti] || v[Fe] || e === "link" && v.getAttribute("rel") === "stylesheet") && v.namespaceURI !== "http://www.w3.org/2000/svg") {
                var E = v.getAttribute(t) || "";
                E = e + E;
                var j = i.get(E);
                j ? j.push(v) : i.set(E, [v])
            }
        }
        return i
    }

    function Lm(e, t, a) {
        e = e.ownerDocument || e, e.head.insertBefore(a, t === "title" ? e.querySelector("head > title") : null)
    }

    function Mb(e, t, a) {
        if (a === 1 || t.itemProp != null) return !1;
        switch (e) {
            case "meta":
            case "title":
                return !0;
            case "style":
                if (typeof t.precedence != "string" || typeof t.href != "string" || t.href === "") break;
                return !0;
            case "link":
                if (typeof t.rel != "string" || typeof t.href != "string" || t.href === "" || t.onLoad || t.onError) break;
                switch (t.rel) {
                    case "stylesheet":
                        return e = t.disabled, typeof t.precedence == "string" && e == null;
                    default:
                        return !0
                }
            case "script":
                if (t.async && typeof t.async != "function" && typeof t.async != "symbol" && !t.onLoad && !t.onError && t.src && typeof t.src == "string") return !0
        }
        return !1
    }

    function Um(e) {
        return !(e.type === "stylesheet" && !(e.state.loading & 3))
    }
    var Ku = null;

    function Ab() {}

    function Rb(e, t, a) {
        if (Ku === null) throw Error(c(475));
        var i = Ku;
        if (t.type === "stylesheet" && (typeof a.media != "string" || matchMedia(a.media).matches !== !1) && !(t.state.loading & 4)) {
            if (t.instance === null) {
                var d = Wo(a.href),
                    v = e.querySelector(Wu(d));
                if (v) {
                    e = v._p, e !== null && typeof e == "object" && typeof e.then == "function" && (i.count++, i = Fd.bind(i), e.then(i, i)), t.state.loading |= 4, t.instance = v, pt(v);
                    return
                }
                v = e.ownerDocument || e, a = km(a), (d = ti.get(d)) && wh(a, d), v = v.createElement("link"), pt(v);
                var E = v;
                E._p = new Promise(function(j, L) {
                    E.onload = j, E.onerror = L
                }), vn(v, "link", a), t.instance = v
            }
            i.stylesheets === null && (i.stylesheets = new Map), i.stylesheets.set(t, e), (e = t.state.preload) && !(t.state.loading & 3) && (i.count++, t = Fd.bind(i), e.addEventListener("load", t), e.addEventListener("error", t))
        }
    }

    function Ob() {
        if (Ku === null) throw Error(c(475));
        var e = Ku;
        return e.stylesheets && e.count === 0 && Ch(e, e.stylesheets), 0 < e.count ? function(t) {
            var a = setTimeout(function() {
                if (e.stylesheets && Ch(e, e.stylesheets), e.unsuspend) {
                    var i = e.unsuspend;
                    e.unsuspend = null, i()
                }
            }, 6e4);
            return e.unsuspend = t,
                function() {
                    e.unsuspend = null, clearTimeout(a)
                }
        } : null
    }

    function Fd() {
        if (this.count--, this.count === 0) {
            if (this.stylesheets) Ch(this, this.stylesheets);
            else if (this.unsuspend) {
                var e = this.unsuspend;
                this.unsuspend = null, e()
            }
        }
    }
    var Gd = null;

    function Ch(e, t) {
        e.stylesheets = null, e.unsuspend !== null && (e.count++, Gd = new Map, t.forEach(_b, e), Gd = null, Fd.call(e))
    }

    function _b(e, t) {
        if (!(t.state.loading & 4)) {
            var a = Gd.get(e);
            if (a) var i = a.get(null);
            else {
                a = new Map, Gd.set(e, a);
                for (var d = e.querySelectorAll("link[data-precedence],style[data-precedence]"), v = 0; v < d.length; v++) {
                    var E = d[v];
                    (E.nodeName === "LINK" || E.getAttribute("media") !== "not all") && (a.set(E.dataset.precedence, E), i = E)
                }
                i && a.set(null, i)
            }
            d = t.instance, E = d.getAttribute("data-precedence"), v = a.get(E) || i, v === i && a.set(null, d), a.set(E, d), this.count++, i = Fd.bind(this), d.addEventListener("load", i), d.addEventListener("error", i), v ? v.parentNode.insertBefore(d, v.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(d, e.firstChild)), t.state.loading |= 4
        }
    }
    var Ju = {
        $$typeof: O,
        Provider: null,
        Consumer: null,
        _currentValue: Qt,
        _currentValue2: Qt,
        _threadCount: 0
    };

    function jb(e, t, a, i, d, v, E, j) {
        this.tag = 1, this.containerInfo = e, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = fr(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = fr(0), this.hiddenUpdates = fr(null), this.identifierPrefix = i, this.onUncaughtError = d, this.onCaughtError = v, this.onRecoverableError = E, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = j, this.incompleteTransitions = new Map
    }

    function Bm(e, t, a, i, d, v, E, j, L, P, ie, ue) {
        return e = new jb(e, t, a, E, j, L, P, ue), t = 1, v === !0 && (t |= 24), v = $l(3, null, null, t), e.current = v, v.stateNode = e, t = gn(), t.refCount++, e.pooledCache = t, t.refCount++, v.memoizedState = {
            element: i,
            isDehydrated: a,
            cache: t
        }, Lf(v), e
    }

    function Hm(e) {
        return e ? (e = va, e) : va
    }

    function Fm(e, t, a, i, d, v) {
        d = Hm(d), i.context === null ? i.context = d : i.pendingContext = d, i = Vs(t), i.payload = {
            element: a
        }, v = v === void 0 ? null : v, v !== null && (i.callback = v), a = Zs(e, i, t), a !== null && (Hn(a, e, t), zu(a, e, t))
    }

    function Gm(e, t) {
        if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
            var a = e.retryLane;
            e.retryLane = a !== 0 && a < t ? a : t
        }
    }

    function Eh(e, t) {
        Gm(e, t), (e = e.alternate) && Gm(e, t)
    }

    function Ym(e) {
        if (e.tag === 13) {
            var t = Da(e, 67108864);
            t !== null && Hn(t, e, 67108864), Eh(e, 67108864)
        }
    }
    var Yd = !0;

    function kb(e, t, a, i) {
        var d = me.T;
        me.T = null;
        var v = Re.p;
        try {
            Re.p = 2, Th(e, t, a, i)
        } finally {
            Re.p = v, me.T = d
        }
    }

    function zb(e, t, a, i) {
        var d = me.T;
        me.T = null;
        var v = Re.p;
        try {
            Re.p = 8, Th(e, t, a, i)
        } finally {
            Re.p = v, me.T = d
        }
    }

    function Th(e, t, a, i) {
        if (Yd) {
            var d = Mh(i);
            if (d === null) gh(e, t, i, Xd, a), Pm(e, i);
            else if (Lb(d, e, t, a, i)) i.stopPropagation();
            else if (Pm(e, i), t & 4 && -1 < Db.indexOf(e)) {
                for (; d !== null;) {
                    var v = St(d);
                    if (v !== null) switch (v.tag) {
                        case 3:
                            if (v = v.stateNode, v.current.memoizedState.isDehydrated) {
                                var E = jl(v.pendingLanes);
                                if (E !== 0) {
                                    var j = v;
                                    for (j.pendingLanes |= 2, j.entangledLanes |= 2; E;) {
                                        var L = 1 << 31 - Wt(E);
                                        j.entanglements[1] |= L, E &= ~L
                                    }
                                    lr(v), !(sa & 6) && (Td = On() + 500, Vu(0))
                                }
                            }
                            break;
                        case 13:
                            j = Da(v, 2), j !== null && Hn(j, v, 2), Rd(), Eh(v, 2)
                    }
                    if (v = Mh(i), v === null && gh(e, t, i, Xd, a), v === d) break;
                    d = v
                }
                d !== null && i.stopPropagation()
            } else gh(e, t, i, null, a)
        }
    }

    function Mh(e) {
        return e = ji(e), Ah(e)
    }
    var Xd = null;

    function Ah(e) {
        if (Xd = null, e = _n(e), e !== null) {
            var t = Me(e);
            if (t === null) e = null;
            else {
                var a = t.tag;
                if (a === 13) {
                    if (e = ct(t), e !== null) return e;
                    e = null
                } else if (a === 3) {
                    if (t.stateNode.current.memoizedState.isDehydrated) return t.tag === 3 ? t.stateNode.containerInfo : null;
                    e = null
                } else t !== e && (e = null)
            }
        }
        return Xd = e, null
    }

    function Xm(e) {
        switch (e) {
            case "beforetoggle":
            case "cancel":
            case "click":
            case "close":
            case "contextmenu":
            case "copy":
            case "cut":
            case "auxclick":
            case "dblclick":
            case "dragend":
            case "dragstart":
            case "drop":
            case "focusin":
            case "focusout":
            case "input":
            case "invalid":
            case "keydown":
            case "keypress":
            case "keyup":
            case "mousedown":
            case "mouseup":
            case "paste":
            case "pause":
            case "play":
            case "pointercancel":
            case "pointerdown":
            case "pointerup":
            case "ratechange":
            case "reset":
            case "resize":
            case "seeked":
            case "submit":
            case "toggle":
            case "touchcancel":
            case "touchend":
            case "touchstart":
            case "volumechange":
            case "change":
            case "selectionchange":
            case "textInput":
            case "compositionstart":
            case "compositionend":
            case "compositionupdate":
            case "beforeblur":
            case "afterblur":
            case "beforeinput":
            case "blur":
            case "fullscreenchange":
            case "focus":
            case "hashchange":
            case "popstate":
            case "select":
            case "selectstart":
                return 2;
            case "drag":
            case "dragenter":
            case "dragexit":
            case "dragleave":
            case "dragover":
            case "mousemove":
            case "mouseout":
            case "mouseover":
            case "pointermove":
            case "pointerout":
            case "pointerover":
            case "scroll":
            case "touchmove":
            case "wheel":
            case "mouseenter":
            case "mouseleave":
            case "pointerenter":
            case "pointerleave":
                return 8;
            case "message":
                switch (ya()) {
                    case ss:
                        return 2;
                    case cs:
                        return 8;
                    case Vn:
                    case cc:
                        return 32;
                    case li:
                        return 268435456;
                    default:
                        return 32
                }
            default:
                return 32
        }
    }
    var Rh = !1,
        $s = null,
        ec = null,
        tc = null,
        qu = new Map,
        $u = new Map,
        ac = [],
        Db = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");

    function Pm(e, t) {
        switch (e) {
            case "focusin":
            case "focusout":
                $s = null;
                break;
            case "dragenter":
            case "dragleave":
                ec = null;
                break;
            case "mouseover":
            case "mouseout":
                tc = null;
                break;
            case "pointerover":
            case "pointerout":
                qu.delete(t.pointerId);
                break;
            case "gotpointercapture":
            case "lostpointercapture":
                $u.delete(t.pointerId)
        }
    }

    function ed(e, t, a, i, d, v) {
        return e === null || e.nativeEvent !== v ? (e = {
            blockedOn: t,
            domEventName: a,
            eventSystemFlags: i,
            nativeEvent: v,
            targetContainers: [d]
        }, t !== null && (t = St(t), t !== null && Ym(t)), e) : (e.eventSystemFlags |= i, t = e.targetContainers, d !== null && t.indexOf(d) === -1 && t.push(d), e)
    }

    function Lb(e, t, a, i, d) {
        switch (t) {
            case "focusin":
                return $s = ed($s, e, t, a, i, d), !0;
            case "dragenter":
                return ec = ed(ec, e, t, a, i, d), !0;
            case "mouseover":
                return tc = ed(tc, e, t, a, i, d), !0;
            case "pointerover":
                var v = d.pointerId;
                return qu.set(v, ed(qu.get(v) || null, e, t, a, i, d)), !0;
            case "gotpointercapture":
                return v = d.pointerId, $u.set(v, ed($u.get(v) || null, e, t, a, i, d)), !0
        }
        return !1
    }

    function Vm(e) {
        var t = _n(e.target);
        if (t !== null) {
            var a = Me(t);
            if (a !== null) {
                if (t = a.tag, t === 13) {
                    if (t = ct(a), t !== null) {
                        e.blockedOn = t, oo(e.priority, function() {
                            if (a.tag === 13) {
                                var i = Ol(),
                                    d = Da(a, i);
                                d !== null && Hn(d, a, i), Eh(a, i)
                            }
                        });
                        return
                    }
                } else if (t === 3 && a.stateNode.current.memoizedState.isDehydrated) {
                    e.blockedOn = a.tag === 3 ? a.stateNode.containerInfo : null;
                    return
                }
            }
        }
        e.blockedOn = null
    }

    function Pd(e) {
        if (e.blockedOn !== null) return !1;
        for (var t = e.targetContainers; 0 < t.length;) {
            var a = Mh(e.nativeEvent);
            if (a === null) {
                a = e.nativeEvent;
                var i = new a.constructor(a.type, a);
                xr = i, a.target.dispatchEvent(i), xr = null
            } else return t = St(a), t !== null && Ym(t), e.blockedOn = a, !1;
            t.shift()
        }
        return !0
    }

    function Zm(e, t, a) {
        Pd(e) && a.delete(t)
    }

    function Ub() {
        Rh = !1, $s !== null && Pd($s) && ($s = null), ec !== null && Pd(ec) && (ec = null), tc !== null && Pd(tc) && (tc = null), qu.forEach(Zm), $u.forEach(Zm)
    }

    function Vd(e, t) {
        e.blockedOn === t && (e.blockedOn = null, Rh || (Rh = !0, n.unstable_scheduleCallback(n.unstable_NormalPriority, Ub)))
    }
    var Zd = null;

    function Qm(e) {
        Zd !== e && (Zd = e, n.unstable_scheduleCallback(n.unstable_NormalPriority, function() {
            Zd === e && (Zd = null);
            for (var t = 0; t < e.length; t += 3) {
                var a = e[t],
                    i = e[t + 1],
                    d = e[t + 2];
                if (typeof i != "function") {
                    if (Ah(i || a) === null) continue;
                    break
                }
                var v = St(a);
                v !== null && (e.splice(t, 3), t -= 3, Ur(v, {
                    pending: !0,
                    data: d,
                    method: a.method,
                    action: i
                }, i, d))
            }
        }))
    }

    function td(e) {
        function t(L) {
            return Vd(L, e)
        }
        $s !== null && Vd($s, e), ec !== null && Vd(ec, e), tc !== null && Vd(tc, e), qu.forEach(t), $u.forEach(t);
        for (var a = 0; a < ac.length; a++) {
            var i = ac[a];
            i.blockedOn === e && (i.blockedOn = null)
        }
        for (; 0 < ac.length && (a = ac[0], a.blockedOn === null);) Vm(a), a.blockedOn === null && ac.shift();
        if (a = (e.ownerDocument || e).$$reactFormReplay, a != null)
            for (i = 0; i < a.length; i += 3) {
                var d = a[i],
                    v = a[i + 1],
                    E = d[dt] || null;
                if (typeof v == "function") E || Qm(a);
                else if (E) {
                    var j = null;
                    if (v && v.hasAttribute("formAction")) {
                        if (d = v, E = v[dt] || null) j = E.formAction;
                        else if (Ah(d) !== null) continue
                    } else j = E.action;
                    typeof j == "function" ? a[i + 1] = j : (a.splice(i, 3), i -= 3), Qm(a)
                }
            }
    }

    function Oh(e) {
        this._internalRoot = e
    }
    Qd.prototype.render = Oh.prototype.render = function(e) {
        var t = this._internalRoot;
        if (t === null) throw Error(c(409));
        var a = t.current,
            i = Ol();
        Fm(a, i, e, t, null, null)
    }, Qd.prototype.unmount = Oh.prototype.unmount = function() {
        var e = this._internalRoot;
        if (e !== null) {
            this._internalRoot = null;
            var t = e.containerInfo;
            e.tag === 0 && Po(), Fm(e.current, 2, null, e, null, null), Rd(), t[In] = null
        }
    };

    function Qd(e) {
        this._internalRoot = e
    }
    Qd.prototype.unstable_scheduleHydration = function(e) {
        if (e) {
            var t = dc();
            e = {
                blockedOn: null,
                target: e,
                priority: t
            };
            for (var a = 0; a < ac.length && t !== 0 && t < ac[a].priority; a++);
            ac.splice(a, 0, e), a === 0 && Vm(e)
        }
    };
    var Wm = s.version;
    if (Wm !== "19.0.0") throw Error(c(527, Wm, "19.0.0"));
    Re.findDOMNode = function(e) {
        var t = e._reactInternals;
        if (t === void 0) throw typeof e.render == "function" ? Error(c(188)) : (e = Object.keys(e).join(","), Error(c(268, e)));
        return e = ae(t), e = e !== null ? Aa(e) : null, e = e === null ? null : e.stateNode, e
    };
    var Bb = {
        bundleType: 0,
        version: "19.0.0",
        rendererPackageName: "react-dom",
        currentDispatcherRef: me,
        findFiberByHostInstance: _n,
        reconcilerVersion: "19.0.0"
    };
    if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
        var Wd = __REACT_DEVTOOLS_GLOBAL_HOOK__;
        if (!Wd.isDisabled && Wd.supportsFiber) try {
            Ei = Wd.inject(Bb), it = Wd
        } catch {}
    }
    return ad.createRoot = function(e, t) {
        if (!h(e)) throw Error(c(299));
        var a = !1,
            i = "",
            d = Mu,
            v = Gr,
            E = Au,
            j = null;
        return t != null && (t.unstable_strictMode === !0 && (a = !0), t.identifierPrefix !== void 0 && (i = t.identifierPrefix), t.onUncaughtError !== void 0 && (d = t.onUncaughtError), t.onCaughtError !== void 0 && (v = t.onCaughtError), t.onRecoverableError !== void 0 && (E = t.onRecoverableError), t.unstable_transitionCallbacks !== void 0 && (j = t.unstable_transitionCallbacks)), t = Bm(e, 1, !1, null, null, a, i, d, v, E, j, null), e[In] = t.current, hh(e.nodeType === 8 ? e.parentNode : e), new Oh(t)
    }, ad.hydrateRoot = function(e, t, a) {
        if (!h(e)) throw Error(c(299));
        var i = !1,
            d = "",
            v = Mu,
            E = Gr,
            j = Au,
            L = null,
            P = null;
        return a != null && (a.unstable_strictMode === !0 && (i = !0), a.identifierPrefix !== void 0 && (d = a.identifierPrefix), a.onUncaughtError !== void 0 && (v = a.onUncaughtError), a.onCaughtError !== void 0 && (E = a.onCaughtError), a.onRecoverableError !== void 0 && (j = a.onRecoverableError), a.unstable_transitionCallbacks !== void 0 && (L = a.unstable_transitionCallbacks), a.formState !== void 0 && (P = a.formState)), t = Bm(e, 1, !0, t, a ?? null, i, d, v, E, j, L, P), t.context = Hm(null), a = t.current, i = Ol(), d = Vs(i), d.callback = null, Zs(a, d, i), t.current.lanes = i, kl(t, i), lr(t), e[In] = t.current, hh(e), new Qd(t)
    }, ad.version = "19.0.0", ad
}
var av;

function Pp() {
    if (av) return jh.exports;
    av = 1;

    function n() {
        if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
            __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)
        } catch (s) {
            console.error(s)
        }
    }
    return n(), jh.exports = Xp(), jh.exports
}
var Vp = Pp();
const lu = Ke(n => ({
    modalExterno: null,
    zIndex: 900,
    btnClose: !1,
    auxFunc: {
        mounted: null,
        desmouted: null
    },
    open: (s, l = 900, c = !1, h = {
        mounted: null,
        desmouted: null
    }) => {
        h.mounted && h.mounted(), n(() => ({
            modalExterno: s,
            zIndex: l,
            btnClose: c,
            auxFunc: h
        }))
    },
    close: () => n(s => (s.auxFunc.desmouted && s.auxFunc.desmouted(), {
        modalExterno: null
    }))
}));

function Zp() {
    const {
        modalExterno: n,
        btnClose: s,
        close: l,
        zIndex: c
    } = lu(), h = Q.useRef(null), m = Q.useRef(null);
    return Q.useEffect(() => {
        const x = y => {
            const w = document.querySelector(".iziToast-wrapper"),
                S = document.querySelector('section[data-id="Modal Options"]'),
                R = document.querySelector('section[data-id="Modal"]');
            s && h.current && !m.current.contains(y.target) && (!w || !w.contains(y.target)) && !S && !R && l()
        };
        return n && document.addEventListener("mousedown", x), () => {
            document.removeEventListener("mousedown", x)
        }
    }, [n]), n && r.jsx("section", {
        "data-id": "Modal Externo",
        className: "w-full h-full",
        children: r.jsx("dialog", {
            id: "my_modal_5",
            ref: h,
            className: "modal modal-bottom sm:modal-middle !absolute bg-[var(--modal-backdrop)] overflow-hidden !opacity-100 !pointer-events-auto !visible",
            style: {
                zIndex: c
            },
            children: r.jsxs("div", {
                ref: m,
                className: "animate__animated animate__zoomIn relative overflow-hidden !max-w-none !max-h-none !w-fit !h-fit p-2",
                children: [s && r.jsx("span", {
                    className: "absolute w-5 h-5 top-3 right-3 pulse !cursor-pointer",
                    onClick: l,
                    children: r.jsx(N0, {
                        className: "w-full h-full text-[var(--primary-strong)]"
                    })
                }), r.jsx("div", {
                    className: "w-full h-full",
                    children: n
                })]
            })
        })
    })
}
const Qp = Ke()(n => ({
    modalEmoji: null,
    options: {},
    childrenRef: null,
    offset: 0,
    auxFunc: {
        mounted: null,
        desmouted: null
    },
    open: (s, l, c, h = 10, m = {
        mounted: null,
        desmouted: null
    }) => n(x => (m.mounted && m.mounted(), x.childrenRef !== c && x.auxFunc.desmouted && x.auxFunc.desmouted(), {
        modalEmoji: s,
        options: l,
        childrenRef: c,
        offset: h,
        auxFunc: m
    })),
    close: () => n(s => (s.auxFunc.desmouted && s.auxFunc.desmouted(), {
        modalEmoji: null,
        options: {}
    }))
}));

function Wp() {
    const {
        modalEmoji: n,
        options: s,
        childrenRef: l,
        offset: c,
        close: h
    } = Qp(), {
        refs: m,
        floatingStyles: x,
        update: y,
        elements: w
    } = d0({
        ...s,
        middleware: [h0({
            padding: 5
        }), g0({
            padding: 5
        }), m0({
            apply({
                availableWidth: S,
                availableHeight: R,
                elements: A
            }) {
                Object.assign(A.floating.style, {
                    maxWidth: `${S}px`,
                    maxHeight: `${R}px`
                })
            }
        }), v0(c)]
    });
    return Q.useLayoutEffect(() => {
        if (n && w.reference && w.floating) return f0(w.reference, w.floating, y)
    }, [n, w, y]), Q.useLayoutEffect(() => {
        const S = R => {
            var _;
            const A = document.querySelector(".iziToast-wrapper");
            m.floating.current && !m.floating.current.contains(R.target) && !l.contains(R.target) && (!A || !A.contains(R.target)) && !((_ = document.querySelector("#pane-side ._21S-L span")) != null && _.contains(R.target)) && h()
        };
        return l && (m.setReference(l), document.addEventListener("click", S)), () => {
            document.removeEventListener("click", S)
        }
    }, [n, l]), n && r.jsx("section", {
        "data-id": "Modal Emoji",
        children: r.jsx("div", {
            ref: m.setFloating,
            role: "tooltip",
            className: "z-[9999]",
            style: x,
            children: r.jsx("div", {
                className: "py-[9px] overflow-visible text-left bg-[var(--dropdown-background)] rounded-2xl shadow-2xl",
                style: {
                    position: "initial",
                    maxWidth: "100vw"
                },
                role: "application",
                children: r.jsx("ul", {
                    "data-testid": "attach-menu-popup",
                    children: r.jsx("div", {
                        className: "py-[3px]",
                        children: n
                    })
                })
            })
        })
    })
}
const Ip = (n, s) => {
        const l = Vh.getState().getContainer(n),
            c = l.getState().emojiArea;
        c && (c.setText(s), l.setState(h => ({
            emojiArea: {
                ...h.emojiArea,
                text: s
            }
        })))
    },
    Kp = () => Ke()((n, s) => ({
        emojiArea: null
    })),
    Vh = Ke()((n, s) => ({
        container: {},
        getContainer: l => {
            const {
                container: c
            } = s();
            if (c[l]) return c[l];
            {
                const h = Kp();
                return n(m => ({
                    container: {
                        ...m.container,
                        [l]: h
                    }
                })), h
            }
        },
        deleteContainer: l => n(c => {
            const h = {
                ...c.container
            };
            return delete h[l], {
                container: h
            }
        })
    })),
    Jp = Q.lazy(() => or(() => import("./assets/js/index.DXVscfOA.js"), __vite__mapDeps([9, 1, 2, 3, 4, 5, 10, 6, 7, 8])));

function qp({
    id: n
}) {
    return r.jsx(Q.Suspense, {
        fallback: r.jsx(r.Fragment, {}),
        children: r.jsx(Jp, {
            id: n
        })
    })
}
const $p = Q.lazy(() => or(() => import("./assets/js/index.DGjk3D7-.js"), __vite__mapDeps([11, 1, 2, 3, 4, 5, 6, 7, 8])));

function ey({
    id: n
}) {
    return r.jsx(Q.Suspense, {
        fallback: r.jsx(r.Fragment, {}),
        children: r.jsx($p, {
            id: n
        })
    })
}
const ty = Q.lazy(() => or(() => import("./assets/js/index.BdlUFHDo.js"), __vite__mapDeps([12, 1, 2, 3, 10, 4, 5, 6, 7, 8])));

function ay({
    id: n
}) {
    return r.jsx(Q.Suspense, {
        fallback: r.jsx(r.Fragment, {}),
        children: r.jsx(ty, {
            id: n
        })
    })
}

function vg({
    id: n,
    titulo: s,
    type: l,
    placeholder: c,
    text: h,
    setText: m,
    heightCamp: x,
    heightTextArea: y,
    position: w,
    className: S = ""
}) {
    const R = Vh(U => U.deleteContainer),
        A = Vh(U => U.getContainer),
        O = A(n)(U => {
            var V;
            return (V = U.emojiArea) == null ? void 0 : V.type
        });
    Q.useEffect(() => (A(n).setState({
        emojiArea: {
            id: n,
            titulo: s,
            type: l,
            placeholder: c,
            text: h,
            setText: m,
            heightCamp: x,
            heightTextArea: y,
            position: w,
            className: S
        }
    }), () => {
        R(n)
    }), []);
    const k = {
        input: r.jsx(ey, {
            id: n
        }),
        textarea: r.jsx(ay, {
            id: n
        })
    };
    return O && r.jsxs("aside", {
        "type-render": "Components",
        "render-name": "emojiArea",
        children: [s && r.jsx("h2", {
            className: "mb-1",
            children: s
        }), r.jsxs("div", {
            className: "flex !p-0 " + S,
            children: [r.jsx("div", {
                className: "w-full flex",
                children: k[O]
            }), r.jsx(qp, {
                id: n
            })]
        })]
    })
}
const ur = Ke()((n, s) => ({
    menu: "Left",
    setMenu: l => {
        localStorage.setItem("menu", l), n({
            menu: l
        })
    },
    zoom: 100,
    setZoom: l => {
        localStorage.setItem("zoom", l.toString()), n({
            zoom: l
        })
    },
    menuLateral: {
        children: "",
        width: "250px"
    },
    setMenuLateral: l => {
        localStorage.setItem("menuLateral", JSON.stringify(l)), n({
            menuLateral: l
        })
    },
    openCat: [],
    setOpenCat: l => {
        localStorage.setItem("openCat", JSON.stringify(l)), n({
            openCat: l
        })
    },
    userId: "",
    setUserId: l => n({
        userId: l
    }),
    menuVerticalOpen: !1,
    setMenuVerticalOpen: l => {
        localStorage.setItem("menuVerticalOpen", l.toString()), n({
            menuVerticalOpen: l
        })
    }
}));
(() => {
    const {
        setMenu: n,
        setZoom: s,
        setMenuLateral: l,
        setOpenCat: c,
        setMenuVerticalOpen: h
    } = ur.getState(), m = localStorage.getItem("menu");
    m && n(m);
    const x = localStorage.getItem("zoom");
    x && s(parseInt(x));
    const y = localStorage.getItem("menuLateral");
    y && l(JSON.parse(y));
    const w = localStorage.getItem("openCat");
    w && c(JSON.parse(w));
    const S = localStorage.getItem("menuVerticalOpen") === "true";
    S && h(S)
})();

function Q0() {
    return (s, l = []) => {
        Q.useEffect(() => (document.addEventListener("keydown", s), () => {
            document.removeEventListener("keydown", s)
        }), [...l])
    }
}
const ny = {
        expanded: {
            width: "240px",
            transition: {
                type: "spring",
                stiffness: 300,
                damping: 25,
                when: "beforeChildren"
            }
        },
        collapsed: {
            width: "72px",
            transition: {
                type: "spring",
                stiffness: 300,
                damping: 25,
                when: "afterChildren"
            }
        }
    },
    ly = {
        initial: {
            opacity: 0,
            x: -15
        },
        animate: {
            opacity: 1,
            x: 0,
            transition: {
                type: "spring",
                stiffness: 300,
                damping: 25
            }
        },
        exit: {
            opacity: 0,
            x: -15,
            transition: {
                duration: .2,
                ease: "easeInOut"
            }
        },
        hover: {
            scale: 1.05,
            transition: {
                type: "spring",
                stiffness: 400,
                damping: 10
            }
        }
    },
    Kd = {
        initial: {
            opacity: 0,
            x: -10
        },
        animate: {
            opacity: 1,
            x: 0,
            transition: {
                delay: .1,
                duration: .3
            }
        },
        exit: {
            opacity: 0,
            x: -10,
            transition: {
                duration: .2
            }
        }
    },
    iy = {
        initial: {
            scale: 0,
            opacity: 0
        },
        animate: {
            scale: 1,
            opacity: 1,
            transition: {
                type: "spring",
                stiffness: 400,
                damping: 15
            }
        },
        exit: {
            scale: 0,
            opacity: 0,
            transition: {
                duration: .2
            }
        }
    };

function ry({
    item: n,
    sidebarCollapsed: s,
    textVariants: l
}) {
    return r.jsxs(Ft.div, {
        ref: n.ref,
        className: "flex items-center mb-2 p-2 rounded-lg cursor-pointer group hover:bg-[var(--panel-header-background)] hover:bg-opacity-25",
        onClick: n.action,
        variants: ly,
        initial: "initial",
        animate: "animate",
        whileHover: "hover",
        whileTap: {
            scale: .95
        },
        title: n.tooltip,
        children: [r.jsx("div", {
            className: "flex items-center justify-center w-9 h-9 rounded-lg bg-[var(--panel-header-background)] bg-opacity-80 group-hover:bg-[var(--primaria)] group-hover:text-white transition-colors duration-200",
            children: n.icon
        }), r.jsx(eu, {
            children: !s && r.jsx(Ft.div, {
                className: "ml-3 text-[var(--text-default)]",
                variants: l,
                initial: "initial",
                animate: "animate",
                exit: "exit",
                children: n.name
            })
        })]
    })
}

function vd({
    style: n
}) {
    return r.jsxs("svg", {
        viewBox: "0 0 212 212",
        height: "212",
        width: "212",
        preserveAspectRatio: "xMidYMid meet",
        className: n || "w-full h-full",
        version: "1.1",
        x: "0px",
        y: "0px",
        enableBackground: "new 0 0 212 212",
        children: [r.jsx("title", {
            children: "default-user"
        }), r.jsx("path", {
            fill: "#DFE5E7",
            className: "fill-[var(--avatar-placeholder-background)]",
            d: "M106.251,0.5C164.653,0.5,212,47.846,212,106.25S164.653,212,106.25,212C47.846,212,0.5,164.654,0.5,106.25 S47.846,0.5,106.251,0.5z"
        }), r.jsxs("g", {
            children: [r.jsx("path", {
                fill: "#FFFFFF",
                className: "fill-[var(--avatar-placeholder-primary)]",
                d: "M173.561,171.615c-0.601-0.915-1.287-1.907-2.065-2.955c-0.777-1.049-1.645-2.155-2.608-3.299 c-0.964-1.144-2.024-2.326-3.184-3.527c-1.741-1.802-3.71-3.646-5.924-5.47c-2.952-2.431-6.339-4.824-10.204-7.026 c-1.877-1.07-3.873-2.092-5.98-3.055c-0.062-0.028-0.118-0.059-0.18-0.087c-9.792-4.44-22.106-7.529-37.416-7.529 s-27.624,3.089-37.416,7.529c-0.338,0.153-0.653,0.318-0.985,0.474c-1.431,0.674-2.806,1.376-4.128,2.101 c-0.716,0.393-1.417,0.792-2.101,1.197c-3.421,2.027-6.475,4.191-9.15,6.395c-2.213,1.823-4.182,3.668-5.924,5.47 c-1.161,1.201-2.22,2.384-3.184,3.527c-0.964,1.144-1.832,2.25-2.609,3.299c-0.778,1.049-1.464,2.04-2.065,2.955 c-0.557,0.848-1.033,1.622-1.447,2.324c-0.033,0.056-0.073,0.119-0.104,0.174c-0.435,0.744-0.79,1.392-1.07,1.926 c-0.559,1.068-0.818,1.678-0.818,1.678v0.398c18.285,17.927,43.322,28.985,70.945,28.985c27.678,0,52.761-11.103,71.055-29.095 v-0.289c0,0-0.619-1.45-1.992-3.778C174.594,173.238,174.117,172.463,173.561,171.615z"
            }), r.jsx("path", {
                fill: "#FFFFFF",
                className: "fill-[var(--avatar-placeholder-primary)]",
                d: "M106.002,125.5c2.645,0,5.212-0.253,7.68-0.737c1.234-0.242,2.443-0.542,3.624-0.896 c1.772-0.532,3.482-1.188,5.12-1.958c2.184-1.027,4.242-2.258,6.15-3.67c2.863-2.119,5.39-4.646,7.509-7.509 c0.706-0.954,1.367-1.945,1.98-2.971c0.919-1.539,1.729-3.155,2.422-4.84c0.462-1.123,0.872-2.277,1.226-3.458 c0.177-0.591,0.341-1.188,0.49-1.792c0.299-1.208,0.542-2.443,0.725-3.701c0.275-1.887,0.417-3.827,0.417-5.811 c0-1.984-0.142-3.925-0.417-5.811c-0.184-1.258-0.426-2.493-0.725-3.701c-0.15-0.604-0.313-1.202-0.49-1.793 c-0.354-1.181-0.764-2.335-1.226-3.458c-0.693-1.685-1.504-3.301-2.422-4.84c-0.613-1.026-1.274-2.017-1.98-2.971 c-2.119-2.863-4.646-5.39-7.509-7.509c-1.909-1.412-3.966-2.643-6.15-3.67c-1.638-0.77-3.348-1.426-5.12-1.958 c-1.181-0.355-2.39-0.655-3.624-0.896c-2.468-0.484-5.035-0.737-7.68-0.737c-21.162,0-37.345,16.183-37.345,37.345 C68.657,109.317,84.84,125.5,106.002,125.5z"
            })]
        })]
    })
}

function sy({
    profile: n,
    sidebarCollapsed: s,
    textVariants: l
}) {
    return r.jsx("div", {
        className: "mt-auto px-3 mb-2",
        children: r.jsxs(Ft.div, {
            className: "flex items-center p-2 rounded-full cursor-pointer",
            initial: {
                opacity: 0,
                y: 20
            },
            animate: {
                opacity: 1,
                y: 0,
                transition: {
                    type: "spring",
                    stiffness: 300,
                    damping: 25,
                    delay: .2
                }
            },
            whileHover: {
                scale: 1.02
            },
            whileTap: {
                scale: .98
            },
            children: [r.jsx("div", {
                className: "flex items-center justify-center w-8 h-8 rounded-full overflow-hidden select-none",
                children: n && (n.profilePic ? r.jsx("img", {
                    src: n.profilePic,
                    alt: n.name,
                    className: "object-cover w-full h-full"
                }) : r.jsx(vd, {
                    style: "w-full h-full object-cover"
                }))
            }), r.jsx(eu, {
                children: !s && n && r.jsx(Ft.div, {
                    className: "ml-3 text-sm text-[var(--text-default)] max-w-[120px] whitespace-nowrap overflow-hidden select-none text-ellipsis",
                    variants: l,
                    initial: "initial",
                    animate: "animate",
                    exit: "exit",
                    children: n.name || "Usuário"
                })
            })]
        })
    })
}

function cy({
    sidebarCollapsed: n,
    textVariants: s
}) {
    var x;
    const l = ut(y => y.crm),
        {
            ativeCRM: c
        } = Gt(),
        {
            language: h
        } = Ce(),
        m = () => {
            if (c === "Abas") return r.jsx(Vb, {
                className: "h-5 w-5 text-primary"
            });
            if (c === "Etiquetas") return r.jsx(Zb, {
                className: "h-5 w-5 text-primary"
            });
            if (l.length !== 0 && c !== "Abas" && c !== "Etiquetas") {
                const y = l.find(w => w.id === c);
                return r.jsx(P0, {
                    className: "h-5 w-5",
                    style: {
                        color: (y == null ? void 0 : y.hexColor) || "var(--primaria)"
                    }
                })
            }
            return null
        };
    return r.jsx("div", {
        className: "px-3 mb-4",
        children: r.jsxs(Ft.div, {
            className: "flex items-center p-2 rounded-lg bg-[var(--background-default)] bg-opacity-10",
            initial: {
                opacity: 0,
                y: 20
            },
            animate: {
                opacity: 1,
                y: 0,
                transition: {
                    type: "spring",
                    stiffness: 300,
                    damping: 25,
                    delay: .3
                }
            },
            children: [r.jsx(eu, {
                mode: "wait",
                children: r.jsx(Ft.div, {
                    className: "flex items-center justify-center w-9 h-9 rounded-lg bg-[var(--background-default)] bg-opacity-50",
                    variants: iy,
                    initial: "initial",
                    animate: "animate",
                    exit: "exit",
                    children: m()
                }, c)
            }), r.jsx(eu, {
                children: !n && r.jsx(Ft.div, {
                    className: "ml-3 text-sm text-[var(--text-default)] max-w-[120px] whitespace-nowrap overflow-hidden text-ellipsis select-none",
                    variants: s,
                    initial: "initial",
                    animate: "animate",
                    exit: "exit",
                    children: c === "Abas" ? h.abas : c === "Etiquetas" ? h.etiquetas : ((x = l.find(y => y.id === c)) == null ? void 0 : x.name) || "Dashboard"
                })
            })]
        })
    })
}

function Mf({
    color: n,
    size: s = 24
}) {
    const {
        ativeCRM: l
    } = Gt();
    return l === "Abas" ? r.jsx(Cf, {
        size: s,
        style: {
            color: n
        }
    }) : l === "Etiquetas" ? r.jsx(Ef, {
        size: s,
        style: {
            color: n
        }
    }) : r.jsx(hg, {
        size: s,
        style: {
            color: n
        }
    })
}
const oy = n => {
    const {
        ativeCRM: s
    } = Gt.getState(), {
        setCreateUserTab: l
    } = et.getState();
    switch (s) {
        case "Abas":
            l(n);
            break;
        case "Etiquetas":
            console.warn("Não e possivel criar uma aba para etiquetas pelo CRM");
            break;
        default:
            T0({
                ativeCRM: s,
                name: n,
                hexColor: lg()
            });
            break
    }
};

function W0() {
    var h;
    const {
        language: n
    } = Ce.getState(), {
        ativeCRM: s
    } = Gt.getState(), l = ut.getState().crm;
    let c = "";
    if (s === "Etiquetas") {
        xe({
            type: "Info",
            message: n.adcionarEtiquetaSoEstaDisponivel,
            position: "top-right"
        });
        return
    } else s === "Abas" ? c = "var(--primaria)" : c = (h = l.find(m => m.id === s)) == null ? void 0 : h.hexColor;
    ng({
        icon: r.jsx(Mf, {
            color: c,
            size: 32
        }),
        content: r.jsx(r.Fragment, {
            children: n.menuTab_CreateNameTab
        }),
        confirmText: n.create,
        submit: m => oy(m),
        errorMsg: n.insiraAoMenos3Car,
        placeholder: n.insiraNomeAba
    })
}

function uy(n) {
    return r.jsxs("div", {
        className: "relative inline-block",
        children: [r.jsx(P0, {
            className: "w-6 h-6"
        }), r.jsx("div", {
            className: "absolute bottom-0 right-0 rounded-full w-2 h-2 flex items-center justify-center text-xs font-bold",
            children: r.jsx("span", {
                className: "transform translate-y-[-1px]",
                children: "+"
            })
        })]
    })
}

function dy(n, s, l) {
    const {
        language: c
    } = Ce.getState();
    Nf({
        icon: r.jsx(hg, {
            size: 32,
            style: {
                color: s
            }
        }),
        content: r.jsxs(r.Fragment, {
            children: [c.CRM_rm_CRM, " ", r.jsx("span", {
                style: {
                    color: s
                },
                children: l
            })]
        }),
        confirmText: c.confirm,
        submit: () => E0(n)
    })
}

function I0({
    plugin_page: n,
    colorInicial: s,
    onChange: l,
    text: c = !0
}) {
    const {
        language: h
    } = Ce(), [m, x] = Q.useState(!1), [y, w] = Q.useState(() => {
        const _ = s || lg();
        return l(_), _
    }), S = Q.useRef(null), R = Q.useRef(null);
    return Q.useEffect(() => {
        const _ = O => {
            var k;
            S.current && !S.current.contains(O.target) && !R.current.contains(O.target) && !((k = document.querySelector("#pane-side ._21S-L span")) != null && k.contains(O.target)) && x(!1)
        };
        return m && document.addEventListener("click", _), () => {
            document.removeEventListener("click", _)
        }
    }, [m]), r.jsxs("div", {
        children: [r.jsxs("div", {
            className: "flex",
            children: [c && r.jsx("h2", {
                className: "w-full",
                children: h.pickColor
            }), r.jsx("div", {
                className: "dropdown dropdown-bottom text-end w-full",
                children: r.jsx("div", {
                    tabIndex: 0,
                    role: "button",
                    className: "btn btn-sm px-4 pulse border border-black border-solid",
                    style: {
                        backgroundColor: y
                    },
                    ref: R,
                    onClick: () => x(!m)
                })
            })]
        }), m && r.jsx("div", {
            ref: S,
            className: "flex justify-center",
            children: r.jsx(o0, {
                disableAlpha: !0,
                color: y,
                onChange: _ => {
                    w(_.hex), l(_.hex)
                },
                className: "p-2 rounded"
            })
        })]
    })
}

function Zh({
    editar: n
}) {
    const {
        language: s
    } = Ce(), {
        close: l
    } = kt(), [c, h] = Q.useState(n || {
        id: "",
        name: "",
        desc: "",
        hexColor: "",
        list: []
    }), m = (w, S) => {
        h({
            ...c,
            [w]: S
        })
    }, x = () => {
        if (c.name.length < 2) {
            xe({
                type: "Error",
                message: s.CRM_preencherNome,
                position: "top-right"
            });
            return
        }
        n ? (C0(c.id, c.name, c.desc, c.hexColor), xe({
            type: "Success",
            message: s.CRM_editado,
            position: "top-right"
        }), l()) : (c.id = Si(), M0([c]), xe({
            type: "Success",
            message: s.CRM_criado,
            position: "top-right"
        }), l())
    };
    return r.jsxs("div", {
        className: "flex flex-col gap-4 w-96",
        children: [r.jsxs(Xn, {
            children: [n ? s.edit : s.create, " CRM"]
        }), r.jsxs("label", {
            className: "form-control w-full",
            children: [r.jsxs("div", {
                children: [r.jsx("div", {
                    className: "label pb-0",
                    children: r.jsx("span", {
                        className: "label-text",
                        children: s.CRM_nome
                    })
                }), r.jsx("input", {
                    type: "text",
                    placeholder: s.CRM_nome,
                    className: "input input-bordered input-sm w-full bg-[var(--background-default)]",
                    maxLength: 25,
                    value: c.name,
                    onChange: w => m("name", w.target.value)
                }), r.jsx("div", {
                    className: "relative",
                    children: r.jsxs("div", {
                        className: "absolute right-1 bottom-1 text-[var(--icon)] text-xs",
                        children: [25 - c.name.length, "/25"]
                    })
                })]
            }), r.jsxs("div", {
                children: [r.jsx("div", {
                    className: "label pb-0",
                    children: r.jsx("span", {
                        className: "label-text",
                        children: s.CRM_descricao
                    })
                }), r.jsx("textarea", {
                    placeholder: s.CRM_descricao,
                    className: "textarea textarea-bordered textarea-sm w-full resize-none bg-[var(--background-default)]",
                    maxLength: 60,
                    value: c.desc,
                    onChange: w => m("desc", w.target.value)
                }), r.jsx("div", {
                    className: "relative",
                    children: r.jsxs("div", {
                        className: "absolute right-1 bottom-1 text-[var(--icon)] text-xs",
                        children: [60 - c.desc.length, "/60"]
                    })
                })]
            })]
        }), r.jsx(I0, {
            plugin_page: !0,
            colorInicial: n && n.hexColor,
            onChange: w => m("hexColor", w)
        }), r.jsx(Zt, {
            name: n ? s.edit : s.create,
            funcao: x
        })]
    })
}

function Af(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zM4 12c0-1.846.634-3.542 1.688-4.897l11.209 11.209A7.946 7.946 0 0 1 12 20c-4.411 0-8-3.589-8-8zm14.312 4.897L7.103 5.688A7.948 7.948 0 0 1 12 4c4.411 0 8 3.589 8 8a7.954 7.954 0 0 1-1.688 4.897z"
            },
            child: []
        }]
    })(n)
}

function fy(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M11 16h2V7h3l-4-5-4 5h3z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M5 22h14c1.103 0 2-.897 2-2v-9c0-1.103-.897-2-2-2h-4v2h4v9H5v-9h4V9H5c-1.103 0-2 .897-2 2v9c0 1.103.897 2 2 2z"
            },
            child: []
        }]
    })(n)
}

function p4(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "m12 18 4-5h-3V2h-2v11H8z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M19 9h-4v2h4v9H5v-9h4V9H5c-1.103 0-2 .897-2 2v9c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-9c0-1.103-.897-2-2-2z"
            },
            child: []
        }]
    })(n)
}

function hy(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z"
            },
            child: []
        }]
    })(n)
}

function gy(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M17.868 4.504A1 1 0 0 0 17 4H3a1 1 0 0 0-.868 1.496L5.849 12l-3.717 6.504A1 1 0 0 0 3 20h14a1 1 0 0 0 .868-.504l4-7a.998.998 0 0 0 0-.992l-4-7zM16.42 18H4.724l3.145-5.504a.998.998 0 0 0 0-.992L4.724 6H16.42l3.429 6-3.429 6z"
            },
            child: []
        }]
    })(n)
}

function my(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M21 6h-4V3a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7H3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zM6 18H4v-2h2v2zm0-4H4v-2h2v2zm5 4H9v-2h2v2zm0-4H9v-2h2v2zm0-4H9V8h2v2zm0-4H9V4h2v2zm4 12h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V8h2v2zm0-4h-2V4h2v2zm5 12h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V8h2v2z"
            },
            child: []
        }]
    })(n)
}

function vy(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "m21.868 11.504-4-7A1 1 0 0 0 17 4H3a1 1 0 0 0-.868 1.496L5.849 12l-3.717 6.504A1 1 0 0 0 3 20h14a1 1 0 0 0 .868-.504l4-7a.998.998 0 0 0 0-.992z"
            },
            child: []
        }]
    })(n)
}

function is(n) {
    return nt({
        attr: {
            viewBox: "0 0 16 16",
            fill: "currentColor"
        },
        child: [{
            tag: "path",
            attr: {
                fillRule: "evenodd",
                clipRule: "evenodd",
                d: "M10 3h3v1h-1v9l-1 1H4l-1-1V4H2V3h3V2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1zM9 2H6v1h3V2zM4 13h7V4H4v9zm2-8H5v7h1V5zm1 0h1v7H7V5zm2 0h1v7H9V5z"
            },
            child: []
        }]
    })(n)
}
const nv = ({
    index: n,
    item: s,
    submit: l,
    editar: c
}) => {
    const {
        isBusiness: h
    } = Pe(), [m, x] = Q.useState(!1), y = () => {
        x(!0)
    }, w = () => {
        x(!1)
    };
    return r.jsxs("div", {
        onClick: l,
        className: "card w-40 bg-base-100 shadow-lg py-2 pulse hover:border hover:border-[var(--primaria)] hover:border-solid cursor-pointer border-base-300 border border-solid max-h-[240px]",
        style: m && s.hexColor ? {
            borderColor: s.hexColor
        } : {},
        onMouseEnter: y,
        onMouseLeave: w,
        children: [s.id !== "Abas" && s.id !== "Etiquetas" && r.jsx("div", {
            className: "relative",
            children: r.jsxs("div", {
                className: "absolute grid gap-1 right-[2px] top-0",
                children: [r.jsx("span", {
                    className: "pulse",
                    onClick: R => {
                        R.stopPropagation(), dy(s.id, s.hexColor, s.title)
                    },
                    children: r.jsx(is, {
                        className: "h-5 w-5 text-[var(--icon)]"
                    })
                }), r.jsx("span", {
                    className: "pulse",
                    onClick: c,
                    children: r.jsx(no, {
                        className: "h-5 w-5 text-[var(--icon)]"
                    })
                })]
            })
        }), r.jsx("figure", {
            children: s.ico
        }), !h && s.id === "Etiquetas" && r.jsx("div", {
            className: "relative",
            children: r.jsx("div", {
                className: "absolute right-3",
                children: r.jsx("span", {
                    children: r.jsx(Af, {
                        className: "h-6 w-6 text-red-500"
                    })
                })
            })
        }), r.jsxs("div", {
            className: "card-body p-2 min-h-[122px]",
            children: [r.jsx("h2", {
                className: "card-title block",
                style: {
                    overflowWrap: "break-word"
                },
                children: s.title
            }), r.jsx("p", {
                style: {
                    overflowWrap: "break-word"
                },
                className: "block",
                children: s.descricao
            }), n <= 8 && r.jsx("div", {
                className: "card-actions justify-end",
                children: r.jsxs("div", {
                    className: "badge badge-outline",
                    children: [r.jsx("kbd", {
                        className: "kbd border-base-300 border border-solid",
                        children: "alt"
                    }), r.jsx("span", {
                        className: "px-1",
                        children: "+"
                    }), r.jsx("kbd", {
                        className: "kbd border-base-300 border border-solid",
                        children: n + 1
                    })]
                })
            })]
        })]
    }, n)
};

function K0() {
    const {
        setAtiveCRM: n
    } = Gt(), {
        language: s
    } = Ce(), {
        isBusiness: l
    } = Pe(), {
        close: c
    } = lu(), {
        open: h
    } = kt(), m = ut(k => k.crm);
    Q0()(k => {
        k.stopPropagation(), (k.keyCode === 27 || k.keyCode === 9 || k.altKey && k.keyCode === 77) && c()
    });
    const y = k => {
            if (!l && k === "Etiquetas") {
                xe({
                    type: "Error",
                    message: s.CRM_notBusiness,
                    position: "top-right"
                }), c();
                return
            }
            n(k), c()
        },
        w = (k, U) => {
            k.stopPropagation();
            const V = m.find(te => te.id === U);
            h(r.jsx(Zh, {
                editar: V
            }))
        },
        R = [{
            id: "Abas",
            ico: r.jsx(Cf, {
                className: "h-10 w-10 text-[var(--primaria)]"
            }),
            title: s.userTabs,
            descricao: s.CRM_abasCreate
        }, {
            id: "Etiquetas",
            ico: r.jsx($v, {
                className: "h-10 w-10 text-[var(--primaria)]"
            }),
            title: s.CRM_Etiquetas,
            descricao: s.CRM_etiquetasBusiness
        }].map((k, U) => r.jsx(nv, {
            index: U,
            item: k,
            submit: () => y(k.id)
        })),
        A = m.map((k, U) => {
            const V = {
                id: m[U].id,
                ico: r.jsx(hg, {
                    className: "h-10 w-10",
                    style: {
                        color: k.hexColor
                    }
                }),
                title: k.name,
                descricao: k.desc,
                hexColor: k.hexColor
            };
            return r.jsx(nv, {
                index: U + 2,
                item: V,
                submit: () => y(V.id),
                editar: te => w(te, V.id)
            })
        }),
        _ = k => {
            k.stopPropagation(), c()
        },
        O = k => {
            k.stopPropagation()
        };
    return r.jsx("div", {
        className: "w-screen h-screen flex items-center justify-center",
        onClick: k => _(k),
        children: r.jsxs("div", {
            className: "flex gap-4 flex-wrap justify-center p-4 overflow-x-auto overflow-y-auto ",
            onClick: k => O(k),
            style: {
                maxHeight: "calc(100vh - 70px)"
            },
            children: [R, A, r.jsx("div", {
                className: "my-auto",
                children: r.jsx("span", {
                    className: "pulse cursor-pointer lg:tooltip lg:tooltip-left",
                    "data-tip": s.CRM_modelAdd,
                    onClick: () => {
                        h(r.jsx(Zh, {}))
                    },
                    children: r.jsx(Qb, {
                        className: "text-[var(--primaria)] w-10 h-10"
                    })
                })
            })]
        })
    })
}

function by() {
    const {
        language: n
    } = Ce();
    return r.jsxs("div", {
        className: "p-2",
        children: [r.jsx(Xn, {
            children: n.CRM_atalhosTeclado
        }), r.jsxs("div", {
            className: "w-[25rem] pt-2 px-1",
            children: [r.jsxs("div", {
                className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded pulse",
                children: [r.jsx("span", {
                    children: n.CRM_openAndCloseMenu
                }), r.jsxs("div", {
                    children: [r.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "Tab"
                    }), r.jsx("span", {
                        className: "px-1",
                        children: n.CRM_alterKey
                    }), r.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "alt"
                    }), "+", r.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "m"
                    })]
                })]
            }), r.jsxs("div", {
                className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded pulse",
                children: [r.jsx("span", {
                    children: n.CRM_closeModal
                }), r.jsx("div", {
                    children: r.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "Esc"
                    })
                })]
            }), r.jsxs("div", {
                className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded pulse",
                children: [r.jsx("span", {
                    children: n.CRM_keyAddAbas
                }), r.jsxs("div", {
                    children: [r.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "alt"
                    }), "+", r.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "a"
                    })]
                })]
            }), r.jsxs("div", {
                className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded pulse",
                children: [r.jsx("span", {
                    children: n.userTabs
                }), r.jsxs("div", {
                    children: [r.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "alt"
                    }), "+", r.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "1"
                    })]
                })]
            }), r.jsxs("div", {
                className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded pulse",
                children: [r.jsx("span", {
                    children: n.CRM_Etiquetas
                }), r.jsxs("div", {
                    children: [r.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "alt"
                    }), "+", r.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "2"
                    })]
                })]
            }), r.jsxs("div", {
                className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded pulse",
                children: [r.jsx("span", {
                    children: n.duplicarCard
                }), r.jsxs("div", {
                    children: [r.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "Ctrl"
                    }), r.jsx("span", {
                        className: "px-1",
                        children: n.CRM_alterKey
                    }), r.jsx("kbd", {
                        className: "kbd kbd-sm border-base-300 border border-solid",
                        children: "z"
                    })]
                })]
            })]
        })]
    })
}
const xy = ({
        setOpen: n
    }) => {
        const {
            setCreateUserTab: s
        } = et(), {
            language: l
        } = Ce(), [c, h] = Q.useState(""), m = () => {
            s(c), xe({
                type: "Success",
                message: l.newTab_success,
                position: "top-right"
            }), n(!1)
        };
        return r.jsx("div", {
            className: "form-control my-3 p-3 animate__animated animate__fadeInDown",
            children: r.jsx(Wb, {
                errorMsg: l.newTab_error,
                action: m,
                children: r.jsxs("div", {
                    className: "flex input-group input-group-sm justify-center gap-2",
                    children: [r.jsx("input", {
                        type: "text",
                        placeholder: l.menuTabs_inputPlace,
                        className: "input input-bordered input-sm w-80",
                        value: c,
                        onChange: y => h(y.target.value),
                        required: !0,
                        minLength: 3
                    }), r.jsx(Zt, {
                        name: l.create
                    })]
                })
            })
        })
    },
    py = n => {
        const {
            ativeCRM: s
        } = Gt.getState(), {
            setRemoveTab: l
        } = et.getState();
        switch (s) {
            case "Abas":
                l(n);
                break;
            case "Etiquetas":
                console.warn("Não e possivel remover uma etiqueta, pelo CRM");
                break;
            default:
                D0(s, n);
                break
        }
    };

function J0(n) {
    const {
        language: s
    } = Ce.getState();
    Nf({
        icon: r.jsx(Mf, {
            color: n.color,
            size: 32
        }),
        content: r.jsxs(r.Fragment, {
            children: [s.menuTab_RemoveAlert, " ", r.jsx("span", {
                style: {
                    color: n.color
                },
                children: n.name
            })]
        }),
        confirmText: s.confirm,
        submit: () => py(n.id)
    })
}
const yy = (n, s) => {
    const {
        ativeCRM: l
    } = Gt.getState(), {
        setEditUserTabName: c
    } = et.getState();
    switch (l) {
        case "Abas":
            c(n, s);
            break;
        case "Etiquetas":
            console.warn("Não e possivel renomear uma etiqueta, pelo CRM");
            break;
        default:
            A0(l, n, s);
            break
    }
};

function q0(n) {
    const {
        language: s
    } = Ce.getState();
    ng({
        icon: r.jsx(Mf, {
            color: n.color,
            size: 32
        }),
        content: r.jsxs(r.Fragment, {
            children: [s.renomeie, " ", r.jsx("span", {
                style: {
                    color: n.color
                },
                children: n.name
            })]
        }),
        confirmText: s.confirm,
        submit: l => yy(n.id, l),
        errorMsg: s.insiraAoMenos3Car,
        placeholder: s.insiraNomeAba
    })
}

function Sy() {
    const {
        variaveisWA: n
    } = wi(), {
        language: s
    } = Ce(), {
        userTabs: l,
        setVisibilityUserTab: c
    } = et(), [h, m] = Q.useState(""), [x, y] = Q.useState([]), w = A => {
        c(A.id), xe({
            type: "Success",
            message: A.hide ? `${A.tag} ${s.menuTab_DesocutarTab}` : `${A.tag} ${s.menuTab_OcutarTab}`,
            position: "top-right"
        })
    }, S = r.jsx("div", {
        className: "pb-3 px-3 grid gap-2",
        children: x.map(A => r.jsxs("div", {
            className: "flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded pulse",
            children: [r.jsxs("div", {
                className: "flex gap-2",
                children: [r.jsx("span", {
                    className: "overflow-hidden text-ellipsis whitespace-nowrap max-w-[200px]",
                    children: A.tag
                }), r.jsx("span", {
                    className: n.aba + "tam-aba",
                    style: {
                        backgroundColor: "var(--primaria)"
                    },
                    children: A.chats.length
                })]
            }), r.jsxs("div", {
                className: "flex gap-2",
                children: [r.jsx("span", {
                    onClick: () => q0(A),
                    children: r.jsx(no, {
                        className: "w-5 h-5"
                    })
                }), r.jsx("span", {
                    onClick: () => J0(A),
                    children: r.jsx(is, {
                        className: "w-5 h-5"
                    })
                }), r.jsx("span", {
                    onClick: () => w(A),
                    children: A.hide === !0 ? r.jsx(Ib, {
                        className: "w-5 h-5"
                    }) : r.jsx(Kb, {
                        className: "w-5 h-5"
                    })
                })]
            })]
        }, A.id))
    }), R = r.jsx("div", {
        className: "p-4 text-center",
        children: r.jsx("span", {
            children: s.notFound
        })
    });
    return r.jsxs("div", {
        className: "pt-2",
        children: [r.jsx(hd, {
            filtragem: A => {
                let _ = [];
                l.forEach(O => {
                    var k;
                    (k = O.tag) != null && k.toUpperCase().includes(A.toUpperCase()) && _.push(O)
                }), y(_), m(A)
            },
            placeholder: s.pesquisarAbas,
            dependenciasADD: [l],
            btnClear: !0
        }), r.jsx("hr", {
            className: "h-[1px] mx-4 bg-[var(--border-list)] mb-4"
        }), h.length > 0 && x.length === 0 ? R : S]
    })
}

function wy() {
    const {
        language: n
    } = Ce(), [s, l] = Q.useState(!1), c = () => {
        l(!s)
    };
    return r.jsxs("div", {
        className: "w-[25rem]",
        children: [r.jsxs("div", {
            className: "p-3 flex items-center justify-between",
            children: [r.jsx("span", {
                className: "w-full",
                children: r.jsx(Xn, {
                    children: n.menuTabs_title
                })
            }), r.jsx("span", {
                className: "w-[125px]",
                children: r.jsx(Zt, {
                    name: n.newTab,
                    funcao: c
                })
            })]
        }), s && r.jsx(xy, {
            setOpen: l
        }), r.jsx("div", {
            "data-id": "list-abas",
            className: "overflow-auto",
            style: s ? {
                maxHeight: "calc(100vh - 235px)"
            } : {
                maxHeight: "calc(100vh - 155px)"
            },
            children: r.jsx(Sy, {})
        })]
    })
}

function Ny() {
    const {
        language: n
    } = Ce(), {
        open: s
    } = Ma(), {
        open: l
    } = lu(), {
        theme: c,
        setTheme: h
    } = Pe(), {
        open: m
    } = kt(), x = Q.useRef(null), y = Q.useRef(null), w = Q.useRef(null), S = Q.useCallback(() => {
        h(!c)
    }, [c, h]);
    return Q.useMemo(() => [{
        id: 6,
        name: n.menuTabs_title,
        ref: w,
        icon: r.jsx(Jb, {
            size: 20
        }),
        tooltip: n.menuTabs_title,
        action: () => s(r.jsx(wy, {}), {
            placement: "right"
        }, w.current, 15)
    }, {
        id: 1,
        name: n.tema,
        ref: x,
        icon: c ? r.jsx(qb, {
            size: 20
        }) : r.jsx($b, {
            size: 20
        }),
        tooltip: n.tema,
        action: S
    }, {
        id: 2,
        name: "Menu",
        icon: r.jsx(ex, {
            size: 20
        }),
        tooltip: "Menu",
        action: () => l(r.jsx(K0, {}))
    }, {
        id: 0,
        name: n.criarCRM,
        icon: r.jsx(uy, {
            size: 20
        }),
        tooltip: n.criarCRM,
        action: () => m(r.jsx(Zh, {}))
    }, {
        id: 3,
        name: n.CRM_addAba,
        icon: r.jsx(zp, {
            size: 20
        }),
        tooltip: n.CRM_addAba,
        action: W0
    }, {
        id: 5,
        name: n.CRM_keyAtalho,
        ref: y,
        icon: r.jsx(tx, {
            size: 20
        }),
        tooltip: n.CRM_keyAtalho,
        action: () => s(r.jsx(by, {}), {
            placement: "right"
        }, y.current, 15)
    }], [n, c, S, l, m, s, y])
}

function $0(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"
            },
            child: []
        }, {
            tag: "line",
            attr: {
                x1: "12",
                y1: "9",
                x2: "12",
                y2: "13"
            },
            child: []
        }, {
            tag: "line",
            attr: {
                x1: "12",
                y1: "17",
                x2: "12.01",
                y2: "17"
            },
            child: []
        }]
    })(n)
}

function Cy(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "polyline",
            attr: {
                points: "11 17 6 12 11 7"
            },
            child: []
        }, {
            tag: "polyline",
            attr: {
                points: "18 17 13 12 18 7"
            },
            child: []
        }]
    })(n)
}

function Ey(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "polyline",
            attr: {
                points: "13 17 18 12 13 7"
            },
            child: []
        }, {
            tag: "polyline",
            attr: {
                points: "6 17 11 12 6 7"
            },
            child: []
        }]
    })(n)
}

function Ty(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "rect",
            attr: {
                x: "9",
                y: "9",
                width: "13",
                height: "13",
                rx: "2",
                ry: "2"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
            },
            child: []
        }]
    })(n)
}

function e1(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24",
            fill: "none",
            stroke: "currentColor",
            strokeWidth: "2",
            strokeLinecap: "round",
            strokeLinejoin: "round"
        },
        child: [{
            tag: "polygon",
            attr: {
                points: "23 7 16 12 23 17 23 7"
            },
            child: []
        }, {
            tag: "rect",
            attr: {
                x: "1",
                y: "5",
                width: "15",
                height: "14",
                rx: "2",
                ry: "2"
            },
            child: []
        }]
    })(n)
}

function My({
    sidebarCollapsed: n,
    toggleSidebar: s,
    profile: l
}) {
    const c = Ny(),
        h = Gt(m => m.ativeCRM);
    return r.jsxs(Ft.div, {
        className: "h-full bg-[var(--background-default)] flex flex-col shadow-lg z-10",
        variants: ny,
        initial: "expanded",
        animate: n ? "collapsed" : "expanded",
        children: [r.jsxs("div", {
            className: "flex items-center px-4 py-5",
            children: [r.jsx(Ft.div, {
                className: "flex items-center justify-center w-10 h-10",
                whileHover: {
                    scale: 1.05
                },
                whileTap: {
                    scale: .95
                },
                children: r.jsx("div", {
                    className: "w-8 h-8 rounded-full overflow-hidden flex items-center justify-center select-none",
                    children: r.jsx("img", {
                        src: chrome.runtime.getURL("label/icons/icon.png"),
                        className: "object-cover w-full h-full",
                        alt: "Logo"
                    })
                })
            }), r.jsx(eu, {
                children: !n && r.jsx(Ft.div, {
                    className: "ml-3 text-[var(--primaria)] font-medium select-none",
                    variants: Kd,
                    initial: "initial",
                    animate: "animate",
                    exit: "exit",
                    children: "CRM KANBAN"
                })
            }), r.jsx(Ft.div, {
                className: "ml-auto cursor-pointer p-1 rounded-full hover:bg-[var(--background-default)] hover:bg-opacity-20",
                whileHover: {
                    scale: 1.1
                },
                whileTap: {
                    scale: .9
                },
                onClick: s,
                children: n ? r.jsx(Ey, {
                    size: 16
                }) : r.jsx(Cy, {
                    size: 16
                })
            })]
        }), r.jsx("div", {
            className: "mt-4 flex-1 overflow-y-auto scrollbar-hide px-3 select-none",
            children: c.map(m => m.id === 6 && h !== "Abas" ? null : r.jsx(ry, {
                item: m,
                sidebarCollapsed: n,
                textVariants: Kd
            }, m.id))
        }), r.jsx(sy, {
            profile: l,
            sidebarCollapsed: n,
            textVariants: Kd
        }), r.jsx(cy, {
            sidebarCollapsed: n,
            textVariants: Kd
        })]
    })
}
const Ay = {
        isBoardMoreObvious: {
            type: "boolean",
            title: "Make board more obvious",
            description: "Add extra spacing and borders to the board scroll container to make it easier to see and play with"
        },
        isFPSPanelEnabled: {
            type: "boolean",
            title: "FPS Panel",
            description: "Display a panel with Frame Per Second (FPS) information"
        },
        isCPUBurnEnabled: {
            type: "boolean",
            title: "Drop FPS 🔥",
            description: "Start heavy process that will cause the frame rate on the page to drop"
        },
        isOverElementAutoScrollEnabled: {
            type: "boolean",
            title: "Over element auto scrolling",
            description: "Should elements automatically scroll when over them"
        },
        isOverflowScrollingEnabled: {
            type: "boolean",
            title: "Overflow scrolling",
            description: "Should overflow scrolling be enabled"
        },
        boardScrollSpeed: {
            type: "select",
            title: "Board auto scroll speed",
            description: "What should the max horizontal scroll speed the board be?",
            options: ["fast", "standard"]
        },
        columnScrollSpeed: {
            type: "select",
            title: "Column auto scroll speed",
            description: "What should the max vertical scroll speed for columns be?",
            options: ["fast", "standard"]
        }
    },
    lv = {
        isBoardMoreObvious: !1,
        isOverElementAutoScrollEnabled: !0,
        boardScrollSpeed: "fast",
        columnScrollSpeed: "standard",
        isFPSPanelEnabled: !1,
        isCPUBurnEnabled: !1,
        isOverflowScrollingEnabled: !0
    },
    ls = Ke(n => ({
        fields: Ay,
        settings: lv,
        update: s => n(l => ({
            settings: {
                ...l.settings,
                ...s
            }
        })),
        reset: () => n(() => ({
            settings: lv
        })),
        duplicateCardMove: !1
    }));
(async () => (document.addEventListener("keydown", n => {
    !ls.getState().duplicateCardMove && (n.ctrlKey || n.key === "z") && ls.setState({
        duplicateCardMove: !0
    })
}), document.addEventListener("keyup", n => {
    (!n.ctrlKey || n.key === "z") && ls.setState({
        duplicateCardMove: !1
    })
})))();

function lo() {
    for (var n = arguments.length, s = new Array(n), l = 0; l < n; l++) s[l] = arguments[l];
    return function() {
        s.forEach(function(h) {
            return h()
        })
    }
}
var Dh = {},
    nd = {},
    iv;

function t1() {
    if (iv) return nd;
    iv = 1, Object.defineProperty(nd, "__esModule", {
        value: !0
    }), nd.bind = void 0;

    function n(s, l) {
        var c = l.type,
            h = l.listener,
            m = l.options;
        return s.addEventListener(c, h, m),
            function() {
                s.removeEventListener(c, h, m)
            }
    }
    return nd.bind = n, nd
}
var Ic = {},
    rv;

function Ry() {
    if (rv) return Ic;
    rv = 1;
    var n = Ic && Ic.__assign || function() {
        return n = Object.assign || function(m) {
            for (var x, y = 1, w = arguments.length; y < w; y++) {
                x = arguments[y];
                for (var S in x) Object.prototype.hasOwnProperty.call(x, S) && (m[S] = x[S])
            }
            return m
        }, n.apply(this, arguments)
    };
    Object.defineProperty(Ic, "__esModule", {
        value: !0
    }), Ic.bindAll = void 0;
    var s = t1();

    function l(m) {
        if (!(typeof m > "u")) return typeof m == "boolean" ? {
            capture: m
        } : m
    }

    function c(m, x) {
        if (x == null) return m;
        var y = n(n({}, m), {
            options: n(n({}, l(x)), l(m.options))
        });
        return y
    }

    function h(m, x, y) {
        var w = x.map(function(S) {
            var R = c(S, y);
            return (0, s.bind)(m, R)
        });
        return function() {
            w.forEach(function(R) {
                return R()
            })
        }
    }
    return Ic.bindAll = h, Ic
}
var sv;

function Oy() {
    return sv || (sv = 1, function(n) {
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.bindAll = n.bind = void 0;
        var s = t1();
        Object.defineProperty(n, "bind", {
            enumerable: !0,
            get: function() {
                return s.bind
            }
        });
        var l = Ry();
        Object.defineProperty(n, "bindAll", {
            enumerable: !0,
            get: function() {
                return l.bindAll
            }
        })
    }(Dh)), Dh
}
var sc = Oy(),
    a1 = "data-pdnd-honey-pot";

function n1(n) {
    return n instanceof Element && n.hasAttribute(a1)
}

function bg(n) {
    var s = document.elementsFromPoint(n.x, n.y),
        l = dg(s, 2),
        c = l[0],
        h = l[1];
    return c ? n1(c) ? h ?? null : c : null
}
var l1 = 2147483647;

function cv(n, s) {
    var l = Object.keys(n);
    if (Object.getOwnPropertySymbols) {
        var c = Object.getOwnPropertySymbols(n);
        s && (c = c.filter(function(h) {
            return Object.getOwnPropertyDescriptor(n, h).enumerable
        })), l.push.apply(l, c)
    }
    return l
}

function ov(n) {
    for (var s = 1; s < arguments.length; s++) {
        var l = arguments[s] != null ? arguments[s] : {};
        s % 2 ? cv(Object(l), !0).forEach(function(c) {
            Ha(n, c, l[c])
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(l)) : cv(Object(l)).forEach(function(c) {
            Object.defineProperty(n, c, Object.getOwnPropertyDescriptor(l, c))
        })
    }
    return n
}
var ud = 2,
    uv = ud / 2;

function _y(n) {
    return {
        x: Math.floor(n.x),
        y: Math.floor(n.y)
    }
}

function jy(n) {
    return {
        x: n.x - uv,
        y: n.y - uv
    }
}

function ky(n) {
    return {
        x: Math.max(n.x, 0),
        y: Math.max(n.y, 0)
    }
}

function zy(n) {
    return {
        x: Math.min(n.x, window.innerWidth - ud),
        y: Math.min(n.y, window.innerHeight - ud)
    }
}

function dv(n) {
    var s = n.client,
        l = zy(ky(jy(_y(s))));
    return DOMRect.fromRect({
        x: l.x,
        y: l.y,
        width: ud,
        height: ud
    })
}

function fv(n) {
    var s = n.clientRect;
    return {
        left: "".concat(s.left, "px"),
        top: "".concat(s.top, "px"),
        width: "".concat(s.width, "px"),
        height: "".concat(s.height, "px")
    }
}

function Dy(n) {
    var s = n.client,
        l = n.clientRect;
    return s.x >= l.x && s.x <= l.x + l.width && s.y >= l.y && s.y <= l.y + l.height
}

function Ly(n) {
    var s = n.initial,
        l = document.createElement("div");
    l.setAttribute(a1, "true");
    var c = dv({
        client: s
    });
    Object.assign(l.style, ov(ov({
        backgroundColor: "transparent",
        position: "fixed",
        padding: 0,
        margin: 0,
        boxSizing: "border-box"
    }, fv({
        clientRect: c
    })), {}, {
        pointerEvents: "auto",
        zIndex: l1
    })), document.body.appendChild(l);
    var h = sc.bind(window, {
        type: "pointermove",
        listener: function(x) {
            var y = {
                x: x.clientX,
                y: x.clientY
            };
            c = dv({
                client: y
            }), Object.assign(l.style, fv({
                clientRect: c
            }))
        },
        options: {
            capture: !0
        }
    });
    return function(x) {
        var y = x.current;
        if (h(), Dy({
                client: y,
                clientRect: c
            })) {
            l.remove();
            return
        }

        function w() {
            S(), l.remove()
        }
        var S = sc.bindAll(window, [{
            type: "pointerdown",
            listener: w
        }, {
            type: "pointermove",
            listener: w
        }, {
            type: "focusin",
            listener: w
        }, {
            type: "focusout",
            listener: w
        }, {
            type: "dragstart",
            listener: w
        }, {
            type: "dragenter",
            listener: w
        }, {
            type: "dragover",
            listener: w
        }], {
            capture: !0
        })
    }
}

function Uy() {
    var n = null;

    function s() {
        return n = null, sc.bind(window, {
            type: "pointermove",
            listener: function(h) {
                n = {
                    x: h.clientX,
                    y: h.clientY
                }
            },
            options: {
                capture: !0
            }
        })
    }

    function l() {
        var c = null;
        return function(m) {
            var x = m.eventName,
                y = m.payload;
            if (x === "onDragStart") {
                var w = y.location.initial.input,
                    S = n ?? {
                        x: w.clientX,
                        y: w.clientY
                    };
                c = Ly({
                    initial: S
                })
            }
            if (x === "onDrop") {
                var R, A = y.location.current.input;
                (R = c) === null || R === void 0 || R({
                    current: {
                        x: A.clientX,
                        y: A.clientY
                    }
                }), c = null, n = null
            }
        }
    }
    return {
        bindEvents: s,
        getOnPostDispatch: l
    }
}

function io(n) {
    var s = null;
    return function() {
        if (!s) {
            for (var c = arguments.length, h = new Array(c), m = 0; m < c; m++) h[m] = arguments[m];
            var x = n.apply(this, h);
            s = {
                result: x
            }
        }
        return s.result
    }
}
var By = io(function() {
        return navigator.userAgent.includes("Firefox")
    }),
    Rf = io(function() {
        var s = navigator,
            l = s.userAgent;
        return l.includes("AppleWebKit") && !l.includes("Chrome")
    }),
    Qh = {
        isLeavingWindow: Symbol("leaving"),
        isEnteringWindow: Symbol("entering")
    };

function Hy(n) {
    var s = n.dragLeave;
    return Rf() ? s.hasOwnProperty(Qh.isLeavingWindow) : !1
}(function() {
    if (typeof window > "u" || !Rf()) return;

    function s() {
        return {
            enterCount: 0,
            isOverWindow: !1
        }
    }
    var l = s();

    function c() {
        l = s()
    }
    sc.bindAll(window, [{
        type: "dragstart",
        listener: function() {
            l.enterCount = 0, l.isOverWindow = !0
        }
    }, {
        type: "drop",
        listener: c
    }, {
        type: "dragend",
        listener: c
    }, {
        type: "dragenter",
        listener: function(m) {
            !l.isOverWindow && l.enterCount === 0 && (m[Qh.isEnteringWindow] = !0), l.isOverWindow = !0, l.enterCount++
        }
    }, {
        type: "dragleave",
        listener: function(m) {
            l.enterCount--, l.isOverWindow && l.enterCount === 0 && (m[Qh.isLeavingWindow] = !0, l.isOverWindow = !1)
        }
    }], {
        capture: !0
    })
})();

function Fy(n) {
    return "nodeName" in n
}

function Gy(n) {
    return Fy(n) && n.ownerDocument !== document
}

function Yy(n) {
    var s = n.dragLeave,
        l = s.type,
        c = s.relatedTarget;
    return l !== "dragleave" ? !1 : Rf() ? Hy({
        dragLeave: s
    }) : c == null ? !0 : By() ? Gy(c) : c instanceof HTMLIFrameElement
}

function Xy(n) {
    var s = n.onDragEnd;
    return [{
        type: "pointermove",
        listener: function() {
            var l = 0;
            return function() {
                if (l < 20) {
                    l++;
                    return
                }
                s()
            }
        }()
    }, {
        type: "pointerdown",
        listener: s
    }]
}

function rd(n) {
    return {
        altKey: n.altKey,
        button: n.button,
        buttons: n.buttons,
        ctrlKey: n.ctrlKey,
        metaKey: n.metaKey,
        shiftKey: n.shiftKey,
        clientX: n.clientX,
        clientY: n.clientY,
        pageX: n.pageX,
        pageY: n.pageY
    }
}
var Lh = Xx(function(n) {
        return n()
    }),
    Jd = function() {
        var n = null;

        function s(c) {
            var h = requestAnimationFrame(function() {
                n = null, c()
            });
            n = {
                frameId: h,
                fn: c
            }
        }

        function l() {
            n && (cancelAnimationFrame(n.frameId), n.fn(), n = null)
        }
        return {
            schedule: s,
            flush: l
        }
    }();

function Py(n) {
    var s = n.source,
        l = n.initial,
        c = n.dispatchEvent,
        h = {
            dropTargets: []
        };

    function m(y) {
        c(y), h = {
            dropTargets: y.payload.location.current.dropTargets
        }
    }
    var x = {
        start: function(w) {
            var S = w.nativeSetDragImage,
                R = {
                    current: l,
                    previous: h,
                    initial: l
                };
            m({
                eventName: "onGenerateDragPreview",
                payload: {
                    source: s,
                    location: R,
                    nativeSetDragImage: S
                }
            }), Jd.schedule(function() {
                m({
                    eventName: "onDragStart",
                    payload: {
                        source: s,
                        location: R
                    }
                })
            })
        },
        dragUpdate: function(w) {
            var S = w.current;
            Jd.flush(), Lh.cancel(), m({
                eventName: "onDropTargetChange",
                payload: {
                    source: s,
                    location: {
                        initial: l,
                        previous: h,
                        current: S
                    }
                }
            })
        },
        drag: function(w) {
            var S = w.current;
            Lh(function() {
                Jd.flush();
                var R = {
                    initial: l,
                    previous: h,
                    current: S
                };
                m({
                    eventName: "onDrag",
                    payload: {
                        source: s,
                        location: R
                    }
                })
            })
        },
        drop: function(w) {
            var S = w.current,
                R = w.updatedSourcePayload;
            Jd.flush(), Lh.cancel(), m({
                eventName: "onDrop",
                payload: {
                    source: R ?? s,
                    location: {
                        current: S,
                        previous: h,
                        initial: l
                    }
                }
            })
        }
    };
    return x
}
var Wh = {
    isActive: !1
};

function i1() {
    return !Wh.isActive
}

function Vy(n) {
    return n.dataTransfer ? n.dataTransfer.setDragImage.bind(n.dataTransfer) : null
}

function Zy(n) {
    var s = n.current,
        l = n.next;
    if (s.length !== l.length) return !0;
    for (var c = 0; c < s.length; c++)
        if (s[c].element !== l[c].element) return !0;
    return !1
}

function Qy(n) {
    var s = n.event,
        l = n.dragType,
        c = n.getDropTargetsOver,
        h = n.dispatchEvent;
    if (!i1()) return;
    var m = Wy({
        event: s,
        dragType: l,
        getDropTargetsOver: c
    });
    Wh.isActive = !0;
    var x = {
        current: m
    };
    Uh({
        event: s,
        current: m.dropTargets
    });
    var y = Py({
        source: l.payload,
        dispatchEvent: h,
        initial: m
    });

    function w(O) {
        var k = Zy({
            current: x.current.dropTargets,
            next: O.dropTargets
        });
        x.current = O, k && y.dragUpdate({
            current: x.current
        })
    }

    function S(O) {
        var k = rd(O),
            U = n1(O.target) ? bg({
                x: k.clientX,
                y: k.clientY
            }) : O.target,
            V = c({
                target: U,
                input: k,
                source: l.payload,
                current: x.current.dropTargets
            });
        V.length && (O.preventDefault(), Uh({
            event: O,
            current: V
        })), w({
            dropTargets: V,
            input: k
        })
    }

    function R() {
        x.current.dropTargets.length && w({
            dropTargets: [],
            input: x.current.input
        }), y.drop({
            current: x.current,
            updatedSourcePayload: null
        }), A()
    }

    function A() {
        Wh.isActive = !1, _()
    }
    var _ = sc.bindAll(window, [{
        type: "dragover",
        listener: function(k) {
            S(k), y.drag({
                current: x.current
            })
        }
    }, {
        type: "dragenter",
        listener: S
    }, {
        type: "dragleave",
        listener: function(k) {
            Yy({
                dragLeave: k
            }) && (w({
                input: x.current.input,
                dropTargets: []
            }), l.startedFrom === "external" && R())
        }
    }, {
        type: "drop",
        listener: function(k) {
            if (x.current = {
                    dropTargets: x.current.dropTargets,
                    input: rd(k)
                }, !x.current.dropTargets.length) {
                R();
                return
            }
            k.preventDefault(), Uh({
                event: k,
                current: x.current.dropTargets
            }), y.drop({
                current: x.current,
                updatedSourcePayload: l.type === "external" ? l.getDropPayload(k) : null
            }), A()
        }
    }, {
        type: "dragend",
        listener: function(k) {
            x.current = {
                dropTargets: x.current.dropTargets,
                input: rd(k)
            }, R()
        }
    }].concat(x0(Xy({
        onDragEnd: R
    }))), {
        capture: !0
    });
    y.start({
        nativeSetDragImage: Vy(s)
    })
}

function Uh(n) {
    var s, l = n.event,
        c = n.current,
        h = (s = c[0]) === null || s === void 0 ? void 0 : s.dropEffect;
    h != null && l.dataTransfer && (l.dataTransfer.dropEffect = h)
}

function Wy(n) {
    var s = n.event,
        l = n.dragType,
        c = n.getDropTargetsOver,
        h = rd(s);
    if (l.startedFrom === "external") return {
        input: h,
        dropTargets: []
    };
    var m = c({
        input: h,
        source: l.payload,
        target: s.target,
        current: []
    });
    return {
        input: h,
        dropTargets: m
    }
}
var hv = {
        canStart: i1,
        start: Qy
    },
    Ih = new Map;

function Iy(n) {
    var s = n.typeKey,
        l = n.mount,
        c = Ih.get(s);
    if (c) return c.usageCount++, c;
    var h = {
        typeKey: s,
        unmount: l(),
        usageCount: 1
    };
    return Ih.set(s, h), h
}

function Ky(n) {
    var s = Iy(n);
    return function() {
        s.usageCount--, !(s.usageCount > 0) && (s.unmount(), Ih.delete(n.typeKey))
    }
}

function r1(n, s) {
    var l = s.attribute,
        c = s.value;
    return n.setAttribute(l, c),
        function() {
            return n.removeAttribute(l)
        }
}

function gv(n, s) {
    var l = Object.keys(n);
    if (Object.getOwnPropertySymbols) {
        var c = Object.getOwnPropertySymbols(n);
        s && (c = c.filter(function(h) {
            return Object.getOwnPropertyDescriptor(n, h).enumerable
        })), l.push.apply(l, c)
    }
    return l
}

function lc(n) {
    for (var s = 1; s < arguments.length; s++) {
        var l = arguments[s] != null ? arguments[s] : {};
        s % 2 ? gv(Object(l), !0).forEach(function(c) {
            Ha(n, c, l[c])
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(l)) : gv(Object(l)).forEach(function(c) {
            Object.defineProperty(n, c, Object.getOwnPropertyDescriptor(l, c))
        })
    }
    return n
}

function Bh(n, s) {
    var l = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
    if (!l) {
        if (Array.isArray(n) || (l = Jy(n)) || s) {
            l && (n = l);
            var c = 0,
                h = function() {};
            return {
                s: h,
                n: function() {
                    return c >= n.length ? {
                        done: !0
                    } : {
                        done: !1,
                        value: n[c++]
                    }
                },
                e: function(S) {
                    throw S
                },
                f: h
            }
        }
        throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
    }
    var m, x = !0,
        y = !1;
    return {
        s: function() {
            l = l.call(n)
        },
        n: function() {
            var S = l.next();
            return x = S.done, S
        },
        e: function(S) {
            y = !0, m = S
        },
        f: function() {
            try {
                x || l.return == null || l.return()
            } finally {
                if (y) throw m
            }
        }
    }
}

function Jy(n, s) {
    if (n) {
        if (typeof n == "string") return mv(n, s);
        var l = {}.toString.call(n).slice(8, -1);
        return l === "Object" && n.constructor && (l = n.constructor.name), l === "Map" || l === "Set" ? Array.from(n) : l === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l) ? mv(n, s) : void 0
    }
}

function mv(n, s) {
    (s == null || s > n.length) && (s = n.length);
    for (var l = 0, c = Array(s); l < s; l++) c[l] = n[l];
    return c
}

function Hh(n) {
    return n.slice(0).reverse()
}

function qy(n) {
    var s = n.typeKey,
        l = n.defaultDropEffect,
        c = new WeakMap,
        h = "data-drop-target-for-".concat(s),
        m = "[".concat(h, "]");

    function x(O) {
        return c.set(O.element, O),
            function() {
                return c.delete(O.element)
            }
    }

    function y(O) {
        var k = lo(r1(O.element, {
            attribute: h,
            value: "true"
        }), x(O));
        return io(k)
    }

    function w(O) {
        var k, U, V, te, $ = O.source,
            ve = O.target,
            fe = O.input,
            Se = O.result,
            be = Se === void 0 ? [] : Se;
        if (ve == null) return be;
        if (!(ve instanceof Element)) return ve instanceof Node ? w({
            source: $,
            target: ve.parentElement,
            input: fe,
            result: be
        }) : be;
        var vt = ve.closest(m);
        if (vt == null) return be;
        var De = c.get(vt);
        if (De == null) return be;
        var me = {
            input: fe,
            source: $,
            element: De.element
        };
        if (De.canDrop && !De.canDrop(me)) return w({
            source: $,
            target: De.element.parentElement,
            input: fe,
            result: be
        });
        var Le = (k = (U = De.getData) === null || U === void 0 ? void 0 : U.call(De, me)) !== null && k !== void 0 ? k : {},
            Mt = (V = (te = De.getDropEffect) === null || te === void 0 ? void 0 : te.call(De, me)) !== null && V !== void 0 ? V : l,
            zt = {
                data: Le,
                element: De.element,
                dropEffect: Mt,
                isActiveDueToStickiness: !1
            };
        return w({
            source: $,
            target: De.element.parentElement,
            input: fe,
            result: [].concat(x0(be), [zt])
        })
    }

    function S(O) {
        var k = O.eventName,
            U = O.payload,
            V = Bh(U.location.current.dropTargets),
            te;
        try {
            for (V.s(); !(te = V.n()).done;) {
                var $, ve = te.value,
                    fe = c.get(ve.element),
                    Se = lc(lc({}, U), {}, {
                        self: ve
                    });
                fe == null || ($ = fe[k]) === null || $ === void 0 || $.call(fe, Se)
            }
        } catch (be) {
            V.e(be)
        } finally {
            V.f()
        }
    }
    var R = {
        onGenerateDragPreview: S,
        onDrag: S,
        onDragStart: S,
        onDrop: S,
        onDropTargetChange: function(k) {
            var U = k.payload,
                V = new Set(U.location.current.dropTargets.map(function(ee) {
                    return ee.element
                })),
                te = new Set,
                $ = Bh(U.location.previous.dropTargets),
                ve;
            try {
                for ($.s(); !(ve = $.n()).done;) {
                    var fe, Se = ve.value;
                    te.add(Se.element);
                    var be = c.get(Se.element),
                        vt = V.has(Se.element),
                        De = lc(lc({}, U), {}, {
                            self: Se
                        });
                    if (be == null || (fe = be.onDropTargetChange) === null || fe === void 0 || fe.call(be, De), !vt) {
                        var me;
                        be == null || (me = be.onDragLeave) === null || me === void 0 || me.call(be, De)
                    }
                }
            } catch (ee) {
                $.e(ee)
            } finally {
                $.f()
            }
            var Le = Bh(U.location.current.dropTargets),
                Mt;
            try {
                for (Le.s(); !(Mt = Le.n()).done;) {
                    var zt, _e, Be = Mt.value;
                    if (!te.has(Be.element)) {
                        var Ae = lc(lc({}, U), {}, {
                                self: Be
                            }),
                            F = c.get(Be.element);
                        F == null || (zt = F.onDropTargetChange) === null || zt === void 0 || zt.call(F, Ae), F == null || (_e = F.onDragEnter) === null || _e === void 0 || _e.call(F, Ae)
                    }
                }
            } catch (ee) {
                Le.e(ee)
            } finally {
                Le.f()
            }
        }
    };

    function A(O) {
        R[O.eventName](O)
    }

    function _(O) {
        var k = O.source,
            U = O.target,
            V = O.input,
            te = O.current,
            $ = w({
                source: k,
                target: U,
                input: V
            });
        if ($.length >= te.length) return $;
        for (var ve = Hh(te), fe = Hh($), Se = [], be = 0; be < ve.length; be++) {
            var vt, De = ve[be],
                me = fe[be];
            if (me != null) {
                Se.push(me);
                continue
            }
            var Le = Se[be - 1],
                Mt = ve[be - 1];
            if ((Le == null ? void 0 : Le.element) !== (Mt == null ? void 0 : Mt.element)) break;
            var zt = c.get(De.element);
            if (!zt) break;
            var _e = {
                input: V,
                source: k,
                element: zt.element
            };
            if (zt.canDrop && !zt.canDrop(_e) || !((vt = zt.getIsSticky) !== null && vt !== void 0 && vt.call(zt, _e))) break;
            Se.push(lc(lc({}, De), {}, {
                isActiveDueToStickiness: !0
            }))
        }
        return Hh(Se)
    }
    return {
        dropTargetForConsumers: y,
        getIsOver: _,
        dispatchEvent: A
    }
}

function $y(n, s) {
    var l = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
    if (!l) {
        if (Array.isArray(n) || (l = e2(n)) || s) {
            l && (n = l);
            var c = 0,
                h = function() {};
            return {
                s: h,
                n: function() {
                    return c >= n.length ? {
                        done: !0
                    } : {
                        done: !1,
                        value: n[c++]
                    }
                },
                e: function(S) {
                    throw S
                },
                f: h
            }
        }
        throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
    }
    var m, x = !0,
        y = !1;
    return {
        s: function() {
            l = l.call(n)
        },
        n: function() {
            var S = l.next();
            return x = S.done, S
        },
        e: function(S) {
            y = !0, m = S
        },
        f: function() {
            try {
                x || l.return == null || l.return()
            } finally {
                if (y) throw m
            }
        }
    }
}

function e2(n, s) {
    if (n) {
        if (typeof n == "string") return vv(n, s);
        var l = {}.toString.call(n).slice(8, -1);
        return l === "Object" && n.constructor && (l = n.constructor.name), l === "Map" || l === "Set" ? Array.from(n) : l === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l) ? vv(n, s) : void 0
    }
}

function vv(n, s) {
    (s == null || s > n.length) && (s = n.length);
    for (var l = 0, c = Array(s); l < s; l++) c[l] = n[l];
    return c
}

function bv(n, s) {
    var l = Object.keys(n);
    if (Object.getOwnPropertySymbols) {
        var c = Object.getOwnPropertySymbols(n);
        s && (c = c.filter(function(h) {
            return Object.getOwnPropertyDescriptor(n, h).enumerable
        })), l.push.apply(l, c)
    }
    return l
}

function t2(n) {
    for (var s = 1; s < arguments.length; s++) {
        var l = arguments[s] != null ? arguments[s] : {};
        s % 2 ? bv(Object(l), !0).forEach(function(c) {
            Ha(n, c, l[c])
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(l)) : bv(Object(l)).forEach(function(c) {
            Object.defineProperty(n, c, Object.getOwnPropertyDescriptor(l, c))
        })
    }
    return n
}

function a2() {
    var n = new Set,
        s = null;

    function l(m) {
        s && (!m.canMonitor || m.canMonitor(s.canMonitorArgs)) && s.active.add(m)
    }

    function c(m) {
        var x = t2({}, m);
        n.add(x), l(x);

        function y() {
            n.delete(x), s && s.active.delete(x)
        }
        return io(y)
    }

    function h(m) {
        var x = m.eventName,
            y = m.payload;
        if (x === "onGenerateDragPreview") {
            s = {
                canMonitorArgs: {
                    initial: y.location.initial,
                    source: y.source
                },
                active: new Set
            };
            var w = $y(n),
                S;
            try {
                for (w.s(); !(S = w.n()).done;) {
                    var R = S.value;
                    l(R)
                }
            } catch (V) {
                w.e(V)
            } finally {
                w.f()
            }
        }
        if (s) {
            for (var A = Array.from(s.active), _ = 0, O = A; _ < O.length; _++) {
                var k = O[_];
                if (s.active.has(k)) {
                    var U;
                    (U = k[x]) === null || U === void 0 || U.call(k, y)
                }
            }
            x === "onDrop" && (s.active.clear(), s = null)
        }
    }
    return {
        dispatchEvent: h,
        monitorForConsumers: c
    }
}

function n2(n) {
    var s = n.typeKey,
        l = n.mount,
        c = n.dispatchEventToSource,
        h = n.onPostDispatch,
        m = n.defaultDropEffect,
        x = a2(),
        y = qy({
            typeKey: s,
            defaultDropEffect: m
        });

    function w(A) {
        c == null || c(A), y.dispatchEvent(A), x.dispatchEvent(A), h == null || h(A)
    }

    function S(A) {
        var _ = A.event,
            O = A.dragType;
        hv.start({
            event: _,
            dragType: O,
            getDropTargetsOver: y.getIsOver,
            dispatchEvent: w
        })
    }

    function R() {
        function A() {
            var _ = {
                canStart: hv.canStart,
                start: S
            };
            return l(_)
        }
        return Ky({
            typeKey: s,
            mount: A
        })
    }
    return {
        registerUsage: R,
        dropTarget: y.dropTargetForConsumers,
        monitor: x.monitorForConsumers
    }
}
var l2 = io(function() {
        return navigator.userAgent.toLocaleLowerCase().includes("android")
    }),
    i2 = "pdnd:android-fallback",
    xv = "text/plain",
    r2 = "text/uri-list",
    s2 = "application/vnd.pdnd",
    bf = new WeakMap;

function c2(n) {
    return bf.set(n.element, n),
        function() {
            bf.delete(n.element)
        }
}
var pv = Uy(),
    xg = n2({
        typeKey: "element",
        defaultDropEffect: "move",
        mount: function(s) {
            return lo(pv.bindEvents(), sc.bind(document, {
                type: "dragstart",
                listener: function(c) {
                    var h, m, x, y, w, S;
                    if (s.canStart(c) && !c.defaultPrevented && c.dataTransfer) {
                        var R = c.target;
                        if (R instanceof HTMLElement) {
                            var A = bf.get(R);
                            if (A) {
                                var _ = rd(c),
                                    O = {
                                        element: A.element,
                                        dragHandle: (h = A.dragHandle) !== null && h !== void 0 ? h : null,
                                        input: _
                                    };
                                if (A.canDrag && !A.canDrag(O)) {
                                    c.preventDefault();
                                    return
                                }
                                if (A.dragHandle) {
                                    var k = bg({
                                        x: _.clientX,
                                        y: _.clientY
                                    });
                                    if (!A.dragHandle.contains(k)) {
                                        c.preventDefault();
                                        return
                                    }
                                }
                                var U = (m = (x = A.getInitialDataForExternal) === null || x === void 0 ? void 0 : x.call(A, O)) !== null && m !== void 0 ? m : null;
                                if (U)
                                    for (var V = 0, te = Object.entries(U); V < te.length; V++) {
                                        var $ = dg(te[V], 2),
                                            ve = $[0],
                                            fe = $[1];
                                        c.dataTransfer.setData(ve, fe ?? "")
                                    }
                                l2() && !c.dataTransfer.types.includes(xv) && !c.dataTransfer.types.includes(r2) && c.dataTransfer.setData(xv, i2), c.dataTransfer.setData(s2, "");
                                var Se = {
                                        element: A.element,
                                        dragHandle: (y = A.dragHandle) !== null && y !== void 0 ? y : null,
                                        data: (w = (S = A.getInitialData) === null || S === void 0 ? void 0 : S.call(A, O)) !== null && w !== void 0 ? w : {}
                                    },
                                    be = {
                                        type: "element",
                                        payload: Se,
                                        startedFrom: "internal"
                                    };
                                s.start({
                                    event: c,
                                    dragType: be
                                })
                            }
                        }
                    }
                }
            }))
        },
        dispatchEventToSource: function(s) {
            var l, c, h = s.eventName,
                m = s.payload;
            (l = bf.get(m.source.element)) === null || l === void 0 || (c = l[h]) === null || c === void 0 || c.call(l, m)
        },
        onPostDispatch: pv.getOnPostDispatch()
    }),
    s1 = xg.dropTarget,
    dd = xg.monitor;

function pg(n) {
    var s = lo(xg.registerUsage(), c2(n), r1(n.element, {
        attribute: "draggable",
        value: "true"
    }));
    return io(s)
}
var fd = new Map,
    df = new Set;

function yg(n) {
    o2(n);
    var s = fd.get(n);
    if (s) return s;
    var l = {
        timeOfEngagementStart: Date.now()
    };
    return fd.set(n, l), l
}

function o2(n) {
    df.add(n)
}

function u2(n) {
    df.clear(), n(), fd.forEach(function(s, l) {
        df.has(l) || fd.delete(l)
    }), df.clear()
}

function d2() {
    fd.clear()
}
var yv = new Map;

function c1(n) {
    var s = yv.get(n);
    if (s) return s;
    var l = f2(n);
    return yv.set(n, l), l
}

function f2(n) {
    var s = {
            type: "idle"
        },
        l = [];

    function c(w) {
        if (s.type === "running") {
            var S = w - s.timeLastFrameFinished,
                R = s,
                A = R.latestArgs,
                _ = bg({
                    x: A.location.current.input.clientX,
                    y: A.location.current.input.clientY
                });
            u2(function() {
                l.forEach(function(O) {
                    return O({
                        underUsersPointer: _,
                        latestArgs: A,
                        timeSinceLastFrame: S
                    })
                })
            }), s.timeLastFrameFinished = w, s.frameId = requestAnimationFrame(c)
        }
    }

    function h() {
        s.type !== "idle" && (cancelAnimationFrame(s.frameId), d2(), s = {
            type: "idle"
        })
    }

    function m(w) {
        s.type === "idle" && (s = {
            type: "initializing",
            latestArgs: w,
            frameId: requestAnimationFrame(function(S) {
                s.type === "initializing" && (s = {
                    type: "running",
                    timeLastFrameFinished: S,
                    latestArgs: s.latestArgs,
                    frameId: requestAnimationFrame(c)
                })
            })
        })
    }

    function x(w) {
        if (s.type === "idle") {
            m(w);
            return
        }
        s.latestArgs = w
    }
    n({
        onDragStart: m,
        onDropTargetChange: x,
        onDrag: x,
        onDrop: h
    });
    var y = {
        onFrame: function(S) {
            l.push(S)
        }
    };
    return y
}
var Kh = "data-auto-scrollable",
    h2 = "[".concat(Kh, '="true"]');

function g2(n) {
    return n.setAttribute(Kh, "true"),
        function() {
            return n.removeAttribute(Kh)
        }
}

function Sv(n, s) {
    var l = Object.keys(n);
    if (Object.getOwnPropertySymbols) {
        var c = Object.getOwnPropertySymbols(n);
        s && (c = c.filter(function(h) {
            return Object.getOwnPropertyDescriptor(n, h).enumerable
        })), l.push.apply(l, c)
    }
    return l
}

function wv(n) {
    for (var s = 1; s < arguments.length; s++) {
        var l = arguments[s] != null ? arguments[s] : {};
        s % 2 ? Sv(Object(l), !0).forEach(function(c) {
            Ha(n, c, l[c])
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(l)) : Sv(Object(l)).forEach(function(c) {
            Object.defineProperty(n, c, Object.getOwnPropertyDescriptor(l, c))
        })
    }
    return n
}
var m2 = {
        startHitboxAtPercentageRemainingOfElement: {
            top: .25,
            right: .25,
            bottom: .25,
            left: .25
        },
        maxScrollAtPercentageRemainingOfHitbox: {
            top: .5,
            right: .5,
            bottom: .5,
            left: .5
        },
        timeDampeningDurationMs: 300,
        maxMainAxisHitboxSize: 180
    },
    v2 = {
        standard: 15 * 60,
        fast: 25 * 60
    };

function Sg(n) {
    var s;
    return wv(wv({}, m2), {}, {
        maxPixelScrollPerSecond: v2[(s = n == null ? void 0 : n.maxScrollSpeed) !== null && s !== void 0 ? s : "standard"]
    })
}
var o1 = {
        top: function(s) {
            return s.scrollTop > 0
        },
        right: function(s) {
            return Math.ceil(s.scrollLeft) + s.clientWidth < s.scrollWidth
        },
        bottom: function(s) {
            return Math.ceil(s.scrollTop) + s.clientHeight < s.scrollHeight
        },
        left: function(s) {
            return s.scrollLeft > 0
        }
    },
    u1 = ["top", "right", "bottom", "left"],
    d1 = {
        top: "vertical",
        right: "horizontal",
        bottom: "vertical",
        left: "horizontal"
    },
    Nv = {
        start: "top",
        end: "bottom",
        point: "y",
        size: "height"
    },
    Cv = {
        start: "left",
        end: "right",
        point: "x",
        size: "width"
    },
    wg = {
        vertical: {
            mainAxis: Nv,
            crossAxis: Cv
        },
        horizontal: {
            mainAxis: Cv,
            crossAxis: Nv
        }
    },
    Ng = {
        top: "start",
        right: "end",
        bottom: "end",
        left: "start"
    };

function qd(n) {
    var s = n.edge,
        l = n.axis;
    return function(h) {
        var m, x = h.clientRect,
            y = h.config,
            w = wg[l],
            S = w.mainAxis,
            R = w.crossAxis,
            A = Ng[s],
            _ = Math.min(y.startHitboxAtPercentageRemainingOfElement[s] * x[S.size], y.maxMainAxisHitboxSize);
        return DOMRect.fromRect((m = {}, Ha(m, S.point, A === "start" ? x[S.point] : x[S.point] + x[S.size] - _), Ha(m, R.point, x[R.point]), Ha(m, S.size, _), Ha(m, R.size, x[R.size]), m))
    }
}
var f1 = {
    top: qd({
        axis: "vertical",
        edge: "top"
    }),
    right: qd({
        axis: "horizontal",
        edge: "right"
    }),
    bottom: qd({
        axis: "vertical",
        edge: "bottom"
    }),
    left: qd({
        axis: "horizontal",
        edge: "left"
    })
};

function Jh(n) {
    var s = n.startOfRange,
        l = n.endOfRange,
        c = n.value,
        h = s < l;
    if (!h || c < s) return 0;
    if (c > l) return 1;
    var m = l - s;
    return (c - s) / m
}

function b2(n) {
    var s = n.timeSinceLastFrame,
        l = n.config,
        c = l.maxPixelScrollPerSecond / 1e3,
        h = Math.ceil(c * s),
        m = l.maxPixelScrollPerSecond / 60;
    return Math.min(h, m)
}

function x2(n) {
    var s = n.client,
        l = n.axis,
        c = n.edge,
        h = n.hitbox,
        m = n.config,
        x = wg[l].mainAxis,
        y = Ng[c],
        w = h[x.size] * m.maxScrollAtPercentageRemainingOfHitbox[c];
    if (y === "end") return Jh({
        startOfRange: h[x.start],
        endOfRange: h[x.end] - w,
        value: s[x.point]
    });
    var S = Jh({
        startOfRange: h[x.start] + w,
        endOfRange: h[x.end],
        value: s[x.point]
    });
    return 1 - S
}

function ic(n) {
    var s = n.client,
        l = n.timeSinceLastFrame,
        c = n.engagement,
        h = n.axis,
        m = n.hitbox,
        x = n.edge,
        y = n.isDistanceDampeningEnabled,
        w = n.config,
        S = b2({
            timeSinceLastFrame: l,
            config: w
        }),
        R = y ? x2({
            client: s,
            edge: x,
            hitbox: m,
            axis: h,
            config: w
        }) : 1,
        A = Jh({
            startOfRange: c.timeOfEngagementStart,
            endOfRange: c.timeOfEngagementStart + w.timeDampeningDurationMs,
            value: Date.now()
        }),
        _ = R * A,
        O = Math.max(S * _, 1),
        k = Ng[x];
    return k === "end" ? O : -1 * O
}

function h1(n, s) {
    return s === "all" || n === s
}

function qh(n) {
    var s = n.client,
        l = n.clientRect;
    return s.x >= l.x && s.x <= l.x + l.width && s.y >= l.y && s.y <= l.y + l.height
}

function p2(n) {
    return n.getBoundingClientRect()
}

function g1(n) {
    var s = n.element,
        l = n.input,
        c = n.timeSinceLastFrame,
        h = n.engagement,
        m = n.config,
        x = n.allowedAxis,
        y = n.getRect,
        w = y === void 0 ? p2 : y,
        S = {
            x: l.clientX,
            y: l.clientY
        },
        R = w(s),
        A = u1.reduce(function(k, U) {
            var V = f1[U]({
                    clientRect: R,
                    config: m
                }),
                te = d1[U];
            return !h1(te, x) || !qh({
                client: S,
                clientRect: V
            }) || !o1[U](s) || k.set(U, {
                edge: U,
                hitbox: V
            }), k
        }, new Map),
        _ = function() {
            var k = "horizontal",
                U = A.get("left");
            if (U) return ic({
                client: S,
                edge: U.edge,
                hitbox: U.hitbox,
                axis: k,
                timeSinceLastFrame: c,
                engagement: h,
                isDistanceDampeningEnabled: !0,
                config: m
            });
            var V = A.get("right");
            return V ? ic({
                client: S,
                edge: V.edge,
                hitbox: V.hitbox,
                axis: k,
                timeSinceLastFrame: c,
                engagement: h,
                isDistanceDampeningEnabled: !0,
                config: m
            }) : 0
        }(),
        O = function() {
            var k = "vertical",
                U = A.get("bottom");
            if (U) return ic({
                client: S,
                edge: U.edge,
                hitbox: U.hitbox,
                axis: k,
                timeSinceLastFrame: c,
                engagement: h,
                isDistanceDampeningEnabled: !0,
                config: m
            });
            var V = A.get("top");
            return V ? ic({
                client: S,
                edge: V.edge,
                hitbox: V.hitbox,
                axis: k,
                timeSinceLastFrame: c,
                engagement: h,
                isDistanceDampeningEnabled: !0,
                config: m
            }) : 0
        }();
    return {
        left: _,
        top: O
    }
}

function y2(n, s) {
    var l = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
    if (!l) {
        if (Array.isArray(n) || (l = S2(n)) || s) {
            l && (n = l);
            var c = 0,
                h = function() {};
            return {
                s: h,
                n: function() {
                    return c >= n.length ? {
                        done: !0
                    } : {
                        done: !1,
                        value: n[c++]
                    }
                },
                e: function(S) {
                    throw S
                },
                f: h
            }
        }
        throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
    }
    var m = !0,
        x = !1,
        y;
    return {
        s: function() {
            l = l.call(n)
        },
        n: function() {
            var S = l.next();
            return m = S.done, S
        },
        e: function(S) {
            x = !0, y = S
        },
        f: function() {
            try {
                !m && l.return != null && l.return()
            } finally {
                if (x) throw y
            }
        }
    }
}

function S2(n, s) {
    if (n) {
        if (typeof n == "string") return Ev(n, s);
        var l = Object.prototype.toString.call(n).slice(8, -1);
        if (l === "Object" && n.constructor && (l = n.constructor.name), l === "Map" || l === "Set") return Array.from(n);
        if (l === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)) return Ev(n, s)
    }
}

function Ev(n, s) {
    (s == null || s > n.length) && (s = n.length);
    for (var l = 0, c = new Array(s); l < s; l++) c[l] = n[l];
    return c
}

function m1(n) {
    return !!(n.top || n.left)
}

function v1(n) {
    var s, l, c, h = n.target,
        m = n.input,
        x = n.source,
        y = n.findEntry,
        w = n.timeSinceLastFrame,
        S = n.available,
        R = S === void 0 ? {
            top: !0,
            left: !0
        } : S;
    if (!m1(R) || !h) return R;
    var A = h.closest(h2);
    if (!A) return R;
    var _ = y(A);
    if (!_) return R;

    function O() {
        var fe;
        return v1({
            target: (fe = A == null ? void 0 : A.parentElement) !== null && fe !== void 0 ? fe : null,
            findEntry: y,
            source: x,
            timeSinceLastFrame: w,
            input: m,
            available: R
        })
    }
    var k = {
        input: m,
        source: x,
        element: A
    };
    if (_.canScroll && !_.canScroll(k)) return O();
    var U = yg(A),
        V = Sg((s = _.getConfiguration) === null || s === void 0 ? void 0 : s.call(_, k)),
        te = (l = (c = _.getAllowedAxis) === null || c === void 0 ? void 0 : c.call(_, k)) !== null && l !== void 0 ? l : "all",
        $ = g1({
            element: A,
            engagement: U,
            input: m,
            timeSinceLastFrame: w,
            allowedAxis: te,
            config: V
        }),
        ve = {
            top: 0,
            left: 0
        };
    return R.top && $.top !== 0 && (ve.top = $.top, R.top = !1), R.left && $.left !== 0 && (ve.left = $.left, R.left = !1), (ve.top !== 0 || ve.left !== 0) && A.scrollBy(ve), O()
}

function w2(n) {
    var s = n.input,
        l = n.timeSinceLastFrame,
        c = n.available,
        h = n.source,
        m = n.entries,
        x = document.documentElement,
        y = {
            input: s,
            source: h,
            element: x
        },
        w = y2(m),
        S;
    try {
        for (w.s(); !(S = w.n()).done;) {
            var R, A, _, O = S.value;
            if (!(O.canScroll && !O.canScroll(y))) {
                var k = yg(x),
                    U = Sg((R = O.getConfiguration) === null || R === void 0 ? void 0 : R.call(O, y)),
                    V = (A = (_ = O.getAllowedAxis) === null || _ === void 0 ? void 0 : _.call(O, y)) !== null && A !== void 0 ? A : "all",
                    te = g1({
                        element: x,
                        engagement: k,
                        input: s,
                        config: U,
                        allowedAxis: V,
                        getRect: function(fe) {
                            return DOMRect.fromRect({
                                y: 0,
                                x: 0,
                                width: fe.clientWidth,
                                height: fe.clientHeight
                            })
                        },
                        timeSinceLastFrame: l
                    }),
                    $ = {
                        top: c.top ? te.top : 0,
                        left: c.left ? te.left : 0
                    };
                ($.top !== 0 || $.left !== 0) && x.scrollBy($);
                break
            }
        }
    } catch (ve) {
        w.e(ve)
    } finally {
        w.f()
    }
}

function N2(n) {
    var s = n.input,
        l = n.findEntry,
        c = n.timeSinceLastFrame,
        h = n.source,
        m = n.getWindowScrollEntries,
        x = n.underUsersPointer,
        y = v1({
            target: x,
            timeSinceLastFrame: c,
            input: s,
            source: h,
            findEntry: l
        });
    m1(y) && w2({
        input: s,
        source: h,
        entries: m(),
        timeSinceLastFrame: c,
        available: y
    })
}

function Tv(n, s) {
    var l = Object.keys(n);
    if (Object.getOwnPropertySymbols) {
        var c = Object.getOwnPropertySymbols(n);
        s && (c = c.filter(function(h) {
            return Object.getOwnPropertyDescriptor(n, h).enumerable
        })), l.push.apply(l, c)
    }
    return l
}

function C2(n) {
    for (var s = 1; s < arguments.length; s++) {
        var l = arguments[s] != null ? arguments[s] : {};
        s % 2 ? Tv(Object(l), !0).forEach(function(c) {
            Ha(n, c, l[c])
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(l)) : Tv(Object(l)).forEach(function(c) {
            Object.defineProperty(n, c, Object.getOwnPropertyDescriptor(l, c))
        })
    }
    return n
}

function E2(n) {
    var s = n.monitor,
        l = new Map,
        c = new Set;

    function h(S) {
        return l.set(S.element, S), lo(g2(S.element), function() {
            return l.delete(S.element)
        })
    }

    function m() {
        var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
            R = C2({}, S);
        return c.add(R),
            function() {
                return c.delete(R)
            }
    }

    function x(S) {
        var R;
        return (R = l.get(S)) !== null && R !== void 0 ? R : null
    }

    function y() {
        return Array.from(c)
    }

    function w(S) {
        var R = S.latestArgs,
            A = S.underUsersPointer,
            _ = S.timeSinceLastFrame;
        N2({
            input: R.location.current.input,
            source: R.source,
            findEntry: x,
            underUsersPointer: A,
            timeSinceLastFrame: _,
            getWindowScrollEntries: y
        })
    }
    return c1(s).onFrame(w), {
        autoScroll: h,
        autoScrollWindow: m
    }
}
var T2 = E2({
        monitor: dd
    }),
    b1 = T2.autoScroll;

function $d(n) {
    var s = n.axis,
        l = n.side;
    return function(h) {
        var m, x, y = h.clientRect,
            w = h.overflow,
            S = h.config,
            R = wg[s],
            A = R.mainAxis,
            _ = R.crossAxis,
            O = A[l],
            k = w[O],
            U = f1[O]({
                clientRect: y,
                config: S
            }),
            V = DOMRect.fromRect((m = {}, Ha(m, A.point, U[A.point]), Ha(m, A.size, U[A.size]), Ha(m, _.point, U[_.point] - k[_.start]), Ha(m, _.size, U[_.size] + k[_.start] + k[_.end]), m)),
            te = DOMRect.fromRect((x = {}, Ha(x, A.point, l === "start" ? y[A.point] - k[A.start] : y[A.end]), Ha(x, _.point, y[_.point] - k[_.start]), Ha(x, A.size, l === "start" ? k[A.start] : k[A.end]), Ha(x, _.size, k[_.start] + y[_.size] + k[_.end]), x));
        return {
            insideOfEdge: V,
            outsideOfEdge: te
        }
    }
}
var M2 = {
    top: $d({
        axis: "vertical",
        side: "start"
    }),
    right: $d({
        axis: "horizontal",
        side: "end"
    }),
    bottom: $d({
        axis: "vertical",
        side: "end"
    }),
    left: $d({
        axis: "horizontal",
        side: "start"
    })
};

function ef(n) {
    return n.type === "inside-of-edge"
}

function tf(n) {
    var s, l, c, h;
    return {
        top: (s = n == null ? void 0 : n.top) !== null && s !== void 0 ? s : 0,
        right: (l = n == null ? void 0 : n.right) !== null && l !== void 0 ? l : 0,
        bottom: (c = n == null ? void 0 : n.bottom) !== null && c !== void 0 ? c : 0,
        left: (h = n == null ? void 0 : n.left) !== null && h !== void 0 ? h : 0
    }
}

function A2(n) {
    return {
        top: tf(n.fromTopEdge),
        right: tf(n.fromRightEdge),
        bottom: tf(n.fromBottomEdge),
        left: tf(n.fromLeftEdge)
    }
}

function R2(n) {
    var s = n.entry,
        l = n.timeSinceLastFrame,
        c = n.input,
        h = n.config,
        m = n.allowedAxis,
        x = {
            x: c.clientX,
            y: c.clientY
        },
        y = s.element.getBoundingClientRect(),
        w = A2(s.getOverflow()),
        S = u1.map(function(U) {
            var V = M2[U]({
                    clientRect: y,
                    overflow: w,
                    config: h
                }),
                te = V.insideOfEdge,
                $ = V.outsideOfEdge;
            return qh({
                client: x,
                clientRect: $
            }) ? {
                edge: U,
                hitbox: $,
                type: "outside-of-edge"
            } : qh({
                client: x,
                clientRect: te
            }) ? {
                edge: U,
                hitbox: te,
                type: "inside-of-edge"
            } : !1
        }).filter(function(U) {
            return !!U
        });
    if (!S.length) return null;
    var R = yg(s.element),
        A = S.filter(function(U) {
            return h1(d1[U.edge], m) && o1[U.edge](s.element)
        });
    if (!A.length) return null;
    var _ = new Map(A.map(function(U) {
            return [U.edge, U]
        })),
        O = function() {
            var U = "horizontal",
                V = _.get("left");
            if (V) return ic({
                client: x,
                isDistanceDampeningEnabled: ef(V),
                hitbox: V.hitbox,
                edge: "left",
                axis: U,
                timeSinceLastFrame: l,
                engagement: R,
                config: h
            });
            var te = _.get("right");
            return te ? ic({
                client: x,
                isDistanceDampeningEnabled: ef(te),
                hitbox: te.hitbox,
                edge: "right",
                axis: U,
                timeSinceLastFrame: l,
                engagement: R,
                config: h
            }) : 0
        }(),
        k = function() {
            var U = "vertical",
                V = _.get("bottom");
            if (V) return ic({
                client: x,
                isDistanceDampeningEnabled: ef(V),
                hitbox: V.hitbox,
                edge: "bottom",
                axis: U,
                timeSinceLastFrame: l,
                engagement: R,
                config: h
            });
            var te = _.get("top");
            return te ? ic({
                client: x,
                isDistanceDampeningEnabled: ef(te),
                hitbox: te.hitbox,
                edge: "top",
                axis: U,
                timeSinceLastFrame: l,
                engagement: R,
                config: h
            }) : 0
        }();
    return {
        left: O,
        top: k
    }
}

function O2(n, s) {
    var l = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
    if (!l) {
        if (Array.isArray(n) || (l = _2(n)) || s) {
            l && (n = l);
            var c = 0,
                h = function() {};
            return {
                s: h,
                n: function() {
                    return c >= n.length ? {
                        done: !0
                    } : {
                        done: !1,
                        value: n[c++]
                    }
                },
                e: function(S) {
                    throw S
                },
                f: h
            }
        }
        throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
    }
    var m = !0,
        x = !1,
        y;
    return {
        s: function() {
            l = l.call(n)
        },
        n: function() {
            var S = l.next();
            return m = S.done, S
        },
        e: function(S) {
            x = !0, y = S
        },
        f: function() {
            try {
                !m && l.return != null && l.return()
            } finally {
                if (x) throw y
            }
        }
    }
}

function _2(n, s) {
    if (n) {
        if (typeof n == "string") return Mv(n, s);
        var l = Object.prototype.toString.call(n).slice(8, -1);
        if (l === "Object" && n.constructor && (l = n.constructor.name), l === "Map" || l === "Set") return Array.from(n);
        if (l === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)) return Mv(n, s)
    }
}

function Mv(n, s) {
    (s == null || s > n.length) && (s = n.length);
    for (var l = 0, c = new Array(s); l < s; l++) c[l] = n[l];
    return c
}

function j2(n) {
    var s = n.input,
        l = n.source,
        c = n.entries,
        h = n.timeSinceLastFrame,
        m = n.underUsersPointer,
        x = O2(c),
        y;
    try {
        for (x.s(); !(y = x.n()).done;) {
            var w, S, R, A = y.value;
            if (!A.element.contains(m)) {
                var _ = {
                    input: s,
                    source: l,
                    element: A.element
                };
                if (!(A.canScroll && !A.canScroll(_))) {
                    var O = Sg((w = A.getConfiguration) === null || w === void 0 ? void 0 : w.call(A, _)),
                        k = (S = (R = A.getAllowedAxis) === null || R === void 0 ? void 0 : R.call(A, _)) !== null && S !== void 0 ? S : "all",
                        U = R2({
                            entry: A,
                            input: s,
                            timeSinceLastFrame: h,
                            allowedAxis: k,
                            config: O
                        });
                    U && A.element.scrollBy(U)
                }
            }
        }
    } catch (V) {
        x.e(V)
    } finally {
        x.f()
    }
}

function k2(n) {
    var s = n.monitor,
        l = new Map;

    function c(m) {
        return l.set(m.element, m),
            function() {
                return l.delete(m.element)
            }
    }

    function h(m) {
        var x = m.latestArgs,
            y = m.underUsersPointer,
            w = m.timeSinceLastFrame;
        j2({
            input: x.location.current.input,
            source: x.source,
            entries: Array.from(l).map(function(S) {
                var R = dg(S, 2);
                R[0];
                var A = R[1];
                return A
            }),
            underUsersPointer: y,
            timeSinceLastFrame: w
        })
    }
    return c1(s).onFrame(h), {
        unsafeOverflowAutoScroll: c
    }
}
var z2 = k2({
        monitor: dd
    }),
    x1 = z2.unsafeOverflowAutoScroll;
const Cg = Ke((n, s) => ({
        label_cardMoveOutColumn: (l, c, h) => {
            const {
                duplicateCardMove: m
            } = ls.getState(), x = m ? [{
                labelId: h,
                type: "add"
            }] : [{
                labelId: c,
                type: "remove"
            }, {
                labelId: h,
                type: "add"
            }];
            Ve.Labels("addOrRemoveLabels", {
                id: l,
                label: x
            })
        },
        label_ColumnMove: async (l, c) => {
            let m = au.getState().orderLabels;
            m.length === 0 && (m = (await Ve.Labels("getAllLabels")).map(S => S.id));
            const x = Array.from(m),
                [y] = x.splice(l, 1);
            x.splice(c, 0, y), gg(x)
        }
    })),
    p1 = Symbol("card"),
    y1 = Symbol("card-drop-target");

function D2({
    card: n,
    rect: s,
    columnId: l
}) {
    return {
        [p1]: !0,
        rect: s,
        card: n,
        columnId: l
    }
}

function ns(n) {
    return !!n[p1]
}

function qc({
    source: n
}) {
    return ns(n.data)
}

function S1(n) {
    return !!n[y1]
}

function L2({
    card: n,
    columnId: s
}) {
    return {
        [y1]: !0,
        card: n,
        columnId: s
    }
}
const w1 = Symbol("column");

function U2({
    column: n
}) {
    return {
        [w1]: !0,
        column: n
    }
}

function $c(n) {
    return !!n[w1]
}

function ff({
    source: n
}) {
    return $c(n.data)
}

function Av(n, s) {
    var l = Object.keys(n);
    if (Object.getOwnPropertySymbols) {
        var c = Object.getOwnPropertySymbols(n);
        s && (c = c.filter(function(h) {
            return Object.getOwnPropertyDescriptor(n, h).enumerable
        })), l.push.apply(l, c)
    }
    return l
}

function Rv(n) {
    for (var s = 1; s < arguments.length; s++) {
        var l = arguments[s] != null ? arguments[s] : {};
        s % 2 ? Av(Object(l), !0).forEach(function(c) {
            Ha(n, c, l[c])
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(l)) : Av(Object(l)).forEach(function(c) {
            Object.defineProperty(n, c, Object.getOwnPropertyDescriptor(l, c))
        })
    }
    return n
}
var B2 = {
        top: function(s, l) {
            return Math.abs(l.y - s.top)
        },
        right: function(s, l) {
            return Math.abs(s.right - l.x)
        },
        bottom: function(s, l) {
            return Math.abs(s.bottom - l.y)
        },
        left: function(s, l) {
            return Math.abs(l.x - s.left)
        }
    },
    N1 = Symbol("closestEdge");

function H2(n, s) {
    var l, c, h = s.element,
        m = s.input,
        x = s.allowedEdges,
        y = {
            x: m.clientX,
            y: m.clientY
        },
        w = h.getBoundingClientRect(),
        S = x.map(function(A) {
            return {
                edge: A,
                value: B2[A](w, y)
            }
        }),
        R = (l = (c = S.sort(function(A, _) {
            return A.value - _.value
        })[0]) === null || c === void 0 ? void 0 : c.edge) !== null && l !== void 0 ? l : null;
    return Rv(Rv({}, n), {}, Ha({}, N1, R))
}

function $h(n) {
    var s;
    return (s = n[N1]) !== null && s !== void 0 ? s : null
}
chrome.runtime.onMessage.addListener(n => {
    switch (n.action) {
        case "serviceCompleted":
            xf.getState().dispartWebhook(n.dados, "serviceCompleted");
            break;
        case "dispartWebhook":
            const s = n.dados;
            xf.getState().dispartWebhook(s.userID, s.webhookID, s.eventDetails, s.sendID);
            break
    }
});
const C1 = [{
        id: "eventDetails",
        active: !0,
        disabled: !0
    }, {
        id: "number",
        active: !0,
        disabled: !0
    }, {
        id: "name",
        active: !0,
        disabled: !0
    }, {
        id: "picture",
        active: !1
    }, {
        id: "labels",
        active: !1
    }],
    F2 = {
        id: "metaAds",
        active: !1,
        url: "",
        param: C1,
        sent: []
    },
    xf = Ke()(n => ({
        webhook: [],
        activeHook: F2,
        timeout: null,
        setActiveHook: s => n(l => {
            const c = l.webhook.find(h => h.id === s);
            return c ? {
                activeHook: c
            } : {
                activeHook: {
                    id: s,
                    active: !1,
                    url: "",
                    param: C1,
                    sent: []
                }
            }
        }),
        setDadosWebHook: (s, l, c) => n(h => {
            let m = null,
                x = [];
            return h.webhook.find(w => w.id === s) ? x = h.webhook.map(w => w.id === s ? (m = {
                ...w,
                [l]: c
            }, m) : w) : (m = {
                ...h.activeHook,
                [l]: c
            }, x = [m, ...h.webhook]), ke("webhook", x), {
                activeHook: m,
                webhook: x
            }
        }),
        setDadosParam: (s, l) => n(c => {
            const h = c.activeHook.param.map(w => w.id === l ? {
                id: w.id,
                active: !w.active
            } : w);
            let m = {
                    ...c.activeHook,
                    param: h
                },
                x = [];
            return c.webhook.find(w => w.id === s) ? x = c.webhook.map(w => w.id === s ? m : w) : x = [m, ...c.webhook], ke("webhook", x), {
                activeHook: m,
                webhook: x
            }
        }),
        dispartWebhook: async (s, l, c, h) => {
            const {
                timeout: m
            } = xf.getState();
            if (Pe.getState().plugin_page) {
                eg(s, l, c, h);
                return
            }
            const x = xf.getState().webhook.find(k => k.id === l);
            if (!x || !x.active) return;
            if (m && clearTimeout(m), await Yn("webhook", !0) === !0) {
                n({
                    timeout: setTimeout(() => {}, 5e3)
                });
                return
            }
            const y = await Ve.Utils("get-card", s);
            y.number = y.id, delete y.id, y.eventID = x.id, c && (y.eventDetails = c), x.param.forEach(k => {
                k.active || delete y[k.id]
            });
            let w = 500;
            const S = {
                    method: "POST",
                    headers: {
                        "Content-Type": "application/json"
                    },
                    body: JSON.stringify(y)
                },
                R = await fetch(x.url, S).then(k => {
                    w = k.status
                }).then(() => !0).catch(k => (console.error("error", k), !1)),
                A = Fn.dayDate(),
                _ = Fn.timeDate(),
                O = {
                    id: h || Si(),
                    status: !!R,
                    code: w,
                    userID: s,
                    date: `${A.day}/${A.month}/${A.year} as ${_.hours}:${_.minutes}:${_.seconds}`
                };
            c && (O.eventDetails = c), n(h ? k => {
                const U = k.webhook.map(V => {
                    if (V.id === l) {
                        const te = V.sent.map($ => $.id === h ? O : $);
                        return {
                            ...V,
                            sent: te
                        }
                    }
                    return V
                });
                return ke("webhook", U), {
                    activeHook: U.find(V => V.id === l),
                    webhook: U
                }
            } : k => {
                const U = k.webhook.map(V => {
                    if (V.id === l) {
                        const te = V.sent;
                        return te.length >= 30 && te.pop(), {
                            ...V,
                            sent: [O, ...te]
                        }
                    }
                    return V
                });
                return ke("webhook", U), {
                    activeHook: U.find(V => V.id === l),
                    webhook: U
                }
            })
        }
    })),
    eg = (n, s, l, c) => {
        ht("dispartWebhook", {
            userID: n,
            webhookID: s,
            eventDetails: l,
            sendID: c
        })
    },
    E1 = Ke((n, s) => ({
        aba_cardMoveInColumn: (l, c, h) => {
            const {
                userTabs: m,
                setChatsTab: x
            } = et.getState(), w = [...m.find(R => R.id === l).chats], [S] = w.splice(c, 1);
            w.splice(h, 0, S), x(w, l)
        },
        aba_cardMoveOutColumn: (l, c, h, m) => {
            var O, k;
            const {
                userTabs: x,
                setChatsTab: y,
                setRemoveUser: w
            } = et.getState(), {
                duplicateCardMove: S
            } = ls.getState(), {
                getCard: R
            } = Fa.getState(), A = x.find(U => U.id === c.id);
            if (A && A.chats.some(U => U.id === h)) {
                xe({
                    type: "Error",
                    message: "Contato já existente na aba",
                    position: "top-right"
                });
                return
            }
            const _ = (k = (O = x.find(U => U.id === l.id)) == null ? void 0 : O.chats) == null ? void 0 : k.find(U => U.id === h);
            if (_) {
                !S && w(h, !1, l.id);
                const U = x.find(V => V.id === c.id).chats;
                U.splice(m, 0, _), y([...U], c.id), eg(h, "crm", {
                    id: A.id,
                    type: "NewUser",
                    name: A.tag
                })
            } else {
                const U = {
                        id: h,
                        name: R(h).name
                    },
                    V = [...A.chats.slice(0, m), U, ...A.chats.slice(m)];
                y(V, c.id), eg(h, "crm", {
                    id: A.id,
                    type: "NewUser",
                    name: A.tag
                })
            }
        }
    })),
    T1 = Ke((n, s) => ({
        crm_cardMoveInColumn: (l, c, h) => {
            const {
                ativeCRM: m
            } = Gt.getState();
            k0(m, l, c, h)
        },
        crm_cardMoveOutColumn: (l, c, h, m) => {
            var R, A;
            const x = ut.getState().crm,
                {
                    ativeCRM: y
                } = Gt.getState(),
                {
                    duplicateCardMove: w
                } = ls.getState();
            if ((A = (R = x.find(_ => _.id === y)) == null ? void 0 : R.list.find(_ => _.id === h)) == null ? void 0 : A.chats.find(_ => _.id === l)) {
                xe({
                    type: "Error",
                    message: "Contato já existente na aba",
                    position: "top-right"
                });
                return
            }
            c === "Inbox" ? _0(l, y, h, m) : j0({
                id: l
            }, c, h, m, w)
        }
    }));

function G2(n, s, l, c, h) {
    const {
        ativeCRM: m,
        data: x
    } = Gt.getState(), {
        aba_cardMoveInColumn: y,
        aba_cardMoveOutColumn: w
    } = E1.getState(), {
        label_cardMoveOutColumn: S
    } = Cg.getState(), {
        crm_cardMoveInColumn: R,
        crm_cardMoveOutColumn: A
    } = T1.getState(), {
        language: _
    } = Ce.getState(), O = x.columns.findIndex($ => $.id === c.columnId), k = x.columns[O];
    if (!k) return;
    if (n.id === "Inbox" && k.id === "Inbox") {
        xe({
            type: "Info",
            message: _.impossivelOrganizarCardsInbox,
            position: "top-right"
        });
        return
    }
    if (k.id === "Inbox" && n.id !== "Inbox") {
        xe({
            type: "Info",
            message: _.impossivelMoverCardInbox,
            position: "top-right"
        });
        return
    }
    if (n === k) {
        const $ = n.cards.findIndex(ve => ve.id === c.card.id);
        if (s === -1 || $ === -1 || s === $) return;
        switch (m) {
            case "Abas":
                y(h.columnId, s, $);
                break;
            case "Etiquetas":
                xe({
                    type: "Info",
                    message: _.impossivelOrganizarCardsEtiquetas,
                    position: "top-right"
                });
                break;
            default:
                R(h.columnId, s, $);
                break
        }
        return
    }
    const U = k.cards.findIndex($ => $.id === c.card.id),
        te = $h(c) === "bottom" ? U + 1 : U;
    switch (m) {
        case "Abas":
            w(n, k, h.card.id, te);
            break;
        case "Etiquetas":
            n.id === "Inbox" ? Ve.Labels("addOrRemoveLabels", {
                id: h.card.id,
                label: {
                    labelId: k.id,
                    type: "add"
                }
            }) : S(h.card.id, n.id, k.id);
            break;
        default:
            A(h.card.id, n.id, k.id, te);
            break
    }
}

function Y2(n, s, l, c) {
    const {
        ativeCRM: h,
        data: m
    } = Gt.getState(), {
        aba_cardMoveInColumn: x,
        aba_cardMoveOutColumn: y
    } = E1.getState(), {
        label_cardMoveOutColumn: w
    } = Cg.getState(), {
        crm_cardMoveInColumn: S,
        crm_cardMoveOutColumn: R
    } = T1.getState(), {
        language: A
    } = Ce.getState(), _ = m.columns.findIndex(k => k.id === l.column.id), O = m.columns[_];
    if (O) {
        if (O.id === "Inbox" && n.id !== "Inbox") {
            xe({
                type: "Info",
                message: A.impossivelMoverCardInbox,
                position: "top-right"
            });
            return
        }
        if (n === O) {
            if (n.id === "Inbox") {
                xe({
                    type: "Info",
                    message: A.impossivelOrganizarCardsInbox,
                    position: "top-right"
                });
                return
            }
            switch (h) {
                case "Abas":
                    x(c.columnId, s, n.cards.length - 1);
                    break;
                case "Etiquetas":
                    xe({
                        type: "Info",
                        message: A.impossivelOrganizarCardsEtiquetas,
                        position: "top-right"
                    });
                    break;
                default:
                    S(c.columnId, s, n.cards.length - 1);
                    break
            }
            return
        }
        switch (h) {
            case "Abas":
                y(n, O, c.card.id, s);
                break;
            case "Etiquetas":
                n.id === "Inbox" ? Ve.Labels("addOrRemoveLabels", {
                    id: c.card.id,
                    label: {
                        labelId: O.id,
                        type: "add"
                    }
                }) : w(c.card.id, n.id, O.id);
                break;
            default:
                R(c.card.id, n.id, O.id, s);
                break
        }
    }
}

function X2(n) {
    const {
        settings: s
    } = ls(), {
        data: l
    } = Gt(), {
        language: c
    } = Ce(), {
        user: h
    } = cr(), {
        openRendertype: m
    } = kt.getState();
    Q.useEffect(() => {
        const x = n.current;
        return sr(x), lo(dd({
            canMonitor: qc,
            onDrop({
                source: y,
                location: w
            }) {
                const S = y.data;
                if (!ns(S)) return;
                const R = w.current.dropTargets[0];
                if (!R) return;
                const A = R.data,
                    _ = l.columns.findIndex(U => U.id === S.columnId),
                    O = l.columns[_];
                if (!O) return;
                const k = O.cards.findIndex(U => U.id === S.card.id);
                if (!h.estado) {
                    m("user_free");
                    return
                }
                S1(A) && G2(O, k, _, A, S), $c(A) && Y2(O, k, A, S)
            }
        }), dd({
            canMonitor: ff,
            onDrop({
                source: y,
                location: w
            }) {
                const {
                    ativeCRM: S
                } = Gt.getState(), {
                    sortUserTabs: R
                } = et.getState(), {
                    label_ColumnMove: A
                } = Cg.getState(), _ = y.data;
                if (!$c(_)) return;
                const O = w.current.dropTargets[0];
                if (!O) return;
                const k = O.data;
                if (!$c(k)) return;
                const U = l.columns.findIndex(ve => ve.id === _.column.id),
                    V = l.columns.findIndex(ve => ve.id === k.column.id),
                    te = l.columns.findIndex(ve => ve.id === k.column.id),
                    $ = l.columns[te];
                if (!(U === -1 || V === -1) && U !== V) {
                    if (!h.estado) {
                        m("user_free");
                        return
                    }
                    if (_.column.id === "Inbox") {
                        xe({
                            type: "Info",
                            message: c.impossivelMoverColunaInbox,
                            position: "top-right"
                        });
                        return
                    }
                    if ($.id === "Inbox") {
                        xe({
                            type: "Info",
                            message: c.impossivelMoverColunaParaPosicaoInbox,
                            position: "top-right"
                        });
                        return
                    }
                    switch (S) {
                        case "Abas":
                            R(U - 1, V - 1);
                            break;
                        case "Etiquetas":
                            A(U - 1, V - 1);
                            break;
                        default:
                            z0(S, U - 1, V - 1);
                            break
                    }
                }
            }
        }), b1({
            canScroll({
                source: y
            }) {
                return s.isOverElementAutoScrollEnabled ? qc({
                    source: y
                }) || ff({
                    source: y
                }) : !1
            },
            getConfiguration: () => ({
                maxScrollSpeed: s.boardScrollSpeed
            }),
            element: x
        }), x1({
            element: x,
            getConfiguration: () => ({
                maxScrollSpeed: s.boardScrollSpeed
            }),
            canScroll({
                source: y
            }) {
                return !s.isOverElementAutoScrollEnabled || !s.isOverflowScrollingEnabled ? !1 : qc({
                    source: y
                }) || ff({
                    source: y
                })
            },
            getOverflow() {
                return {
                    forLeftEdge: {
                        top: 1e3,
                        left: 1e3,
                        bottom: 1e3
                    },
                    forRightEdge: {
                        top: 1e3,
                        right: 1e3,
                        bottom: 1e3
                    }
                }
            }
        }))
    }, [l, s, h])
}
var Kc = {},
    ld = {};
/**
 * @license React
 * react-dom-server-legacy.browser.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var Ov;

function P2() {
    if (Ov) return ld;
    Ov = 1;
    var n = og(),
        s = ug();

    function l(u) {
        var g = "https://react.dev/errors/" + u;
        if (1 < arguments.length) {
            g += "?args[]=" + encodeURIComponent(arguments[1]);
            for (var p = 2; p < arguments.length; p++) g += "&args[]=" + encodeURIComponent(arguments[p])
        }
        return "Minified React error #" + u + "; visit " + g + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
    }
    var c = Symbol.for("react.transitional.element"),
        h = Symbol.for("react.portal"),
        m = Symbol.for("react.fragment"),
        x = Symbol.for("react.strict_mode"),
        y = Symbol.for("react.profiler"),
        w = Symbol.for("react.provider"),
        S = Symbol.for("react.consumer"),
        R = Symbol.for("react.context"),
        A = Symbol.for("react.forward_ref"),
        _ = Symbol.for("react.suspense"),
        O = Symbol.for("react.suspense_list"),
        k = Symbol.for("react.memo"),
        U = Symbol.for("react.lazy"),
        V = Symbol.for("react.scope"),
        te = Symbol.for("react.debug_trace_mode"),
        $ = Symbol.for("react.offscreen"),
        ve = Symbol.for("react.legacy_hidden"),
        fe = Symbol.for("react.memo_cache_sentinel"),
        Se = Symbol.iterator,
        be = Array.isArray;

    function vt(u, g) {
        var p = u.length & 3,
            C = u.length - p,
            T = g;
        for (g = 0; g < C;) {
            var D = u.charCodeAt(g) & 255 | (u.charCodeAt(++g) & 255) << 8 | (u.charCodeAt(++g) & 255) << 16 | (u.charCodeAt(++g) & 255) << 24;
            ++g, D = 3432918353 * (D & 65535) + ((3432918353 * (D >>> 16) & 65535) << 16) & 4294967295, D = D << 15 | D >>> 17, D = 461845907 * (D & 65535) + ((461845907 * (D >>> 16) & 65535) << 16) & 4294967295, T ^= D, T = T << 13 | T >>> 19, T = 5 * (T & 65535) + ((5 * (T >>> 16) & 65535) << 16) & 4294967295, T = (T & 65535) + 27492 + (((T >>> 16) + 58964 & 65535) << 16)
        }
        switch (D = 0, p) {
            case 3:
                D ^= (u.charCodeAt(g + 2) & 255) << 16;
            case 2:
                D ^= (u.charCodeAt(g + 1) & 255) << 8;
            case 1:
                D ^= u.charCodeAt(g) & 255, D = 3432918353 * (D & 65535) + ((3432918353 * (D >>> 16) & 65535) << 16) & 4294967295, D = D << 15 | D >>> 17, T ^= 461845907 * (D & 65535) + ((461845907 * (D >>> 16) & 65535) << 16) & 4294967295
        }
        return T ^= u.length, T ^= T >>> 16, T = 2246822507 * (T & 65535) + ((2246822507 * (T >>> 16) & 65535) << 16) & 4294967295, T ^= T >>> 13, T = 3266489909 * (T & 65535) + ((3266489909 * (T >>> 16) & 65535) << 16) & 4294967295, (T ^ T >>> 16) >>> 0
    }
    var De = Object.assign,
        me = Object.prototype.hasOwnProperty,
        Le = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),
        Mt = {},
        zt = {};

    function _e(u) {
        return me.call(zt, u) ? !0 : me.call(Mt, u) ? !1 : Le.test(u) ? zt[u] = !0 : (Mt[u] = !0, !1)
    }
    var Be = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),
        Ae = new Map([
            ["acceptCharset", "accept-charset"],
            ["htmlFor", "for"],
            ["httpEquiv", "http-equiv"],
            ["crossOrigin", "crossorigin"],
            ["accentHeight", "accent-height"],
            ["alignmentBaseline", "alignment-baseline"],
            ["arabicForm", "arabic-form"],
            ["baselineShift", "baseline-shift"],
            ["capHeight", "cap-height"],
            ["clipPath", "clip-path"],
            ["clipRule", "clip-rule"],
            ["colorInterpolation", "color-interpolation"],
            ["colorInterpolationFilters", "color-interpolation-filters"],
            ["colorProfile", "color-profile"],
            ["colorRendering", "color-rendering"],
            ["dominantBaseline", "dominant-baseline"],
            ["enableBackground", "enable-background"],
            ["fillOpacity", "fill-opacity"],
            ["fillRule", "fill-rule"],
            ["floodColor", "flood-color"],
            ["floodOpacity", "flood-opacity"],
            ["fontFamily", "font-family"],
            ["fontSize", "font-size"],
            ["fontSizeAdjust", "font-size-adjust"],
            ["fontStretch", "font-stretch"],
            ["fontStyle", "font-style"],
            ["fontVariant", "font-variant"],
            ["fontWeight", "font-weight"],
            ["glyphName", "glyph-name"],
            ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
            ["glyphOrientationVertical", "glyph-orientation-vertical"],
            ["horizAdvX", "horiz-adv-x"],
            ["horizOriginX", "horiz-origin-x"],
            ["imageRendering", "image-rendering"],
            ["letterSpacing", "letter-spacing"],
            ["lightingColor", "lighting-color"],
            ["markerEnd", "marker-end"],
            ["markerMid", "marker-mid"],
            ["markerStart", "marker-start"],
            ["overlinePosition", "overline-position"],
            ["overlineThickness", "overline-thickness"],
            ["paintOrder", "paint-order"],
            ["panose-1", "panose-1"],
            ["pointerEvents", "pointer-events"],
            ["renderingIntent", "rendering-intent"],
            ["shapeRendering", "shape-rendering"],
            ["stopColor", "stop-color"],
            ["stopOpacity", "stop-opacity"],
            ["strikethroughPosition", "strikethrough-position"],
            ["strikethroughThickness", "strikethrough-thickness"],
            ["strokeDasharray", "stroke-dasharray"],
            ["strokeDashoffset", "stroke-dashoffset"],
            ["strokeLinecap", "stroke-linecap"],
            ["strokeLinejoin", "stroke-linejoin"],
            ["strokeMiterlimit", "stroke-miterlimit"],
            ["strokeOpacity", "stroke-opacity"],
            ["strokeWidth", "stroke-width"],
            ["textAnchor", "text-anchor"],
            ["textDecoration", "text-decoration"],
            ["textRendering", "text-rendering"],
            ["transformOrigin", "transform-origin"],
            ["underlinePosition", "underline-position"],
            ["underlineThickness", "underline-thickness"],
            ["unicodeBidi", "unicode-bidi"],
            ["unicodeRange", "unicode-range"],
            ["unitsPerEm", "units-per-em"],
            ["vAlphabetic", "v-alphabetic"],
            ["vHanging", "v-hanging"],
            ["vIdeographic", "v-ideographic"],
            ["vMathematical", "v-mathematical"],
            ["vectorEffect", "vector-effect"],
            ["vertAdvY", "vert-adv-y"],
            ["vertOriginX", "vert-origin-x"],
            ["vertOriginY", "vert-origin-y"],
            ["wordSpacing", "word-spacing"],
            ["writingMode", "writing-mode"],
            ["xmlnsXlink", "xmlns:xlink"],
            ["xHeight", "x-height"]
        ]),
        F = /["'&<>]/;

    function ee(u) {
        if (typeof u == "boolean" || typeof u == "number" || typeof u == "bigint") return "" + u;
        u = "" + u;
        var g = F.exec(u);
        if (g) {
            var p = "",
                C, T = 0;
            for (C = g.index; C < u.length; C++) {
                switch (u.charCodeAt(C)) {
                    case 34:
                        g = "&quot;";
                        break;
                    case 38:
                        g = "&amp;";
                        break;
                    case 39:
                        g = "&#x27;";
                        break;
                    case 60:
                        g = "&lt;";
                        break;
                    case 62:
                        g = "&gt;";
                        break;
                    default:
                        continue
                }
                T !== C && (p += u.slice(T, C)), T = C + 1, p += g
            }
            u = T !== C ? p + u.slice(T, C) : p
        }
        return u
    }
    var Me = /([A-Z])/g,
        ct = /^ms-/,
        oe = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;

    function ae(u) {
        return oe.test("" + u) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : u
    }
    var Aa = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
        xt = s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
        Re = {
            pending: !1,
            data: null,
            method: null,
            action: null
        },
        Qt = xt.d;
    xt.d = {
        f: Qt.f,
        r: Qt.r,
        D: In,
        C: Ya,
        L: ru,
        m: fc,
        X: Ti,
        S: uo,
        M: hc
    };
    var Ra = [],
        _l = /(<\/|<)(s)(cript)/gi;

    function qa(u, g, p, C) {
        return "" + g + (p === "s" ? "\\u0073" : "\\u0053") + C
    }

    function oa(u, g, p, C, T) {
        return {
            idPrefix: u === void 0 ? "" : u,
            nextFormID: 0,
            streamingFormat: 0,
            bootstrapScriptContent: p,
            bootstrapScripts: C,
            bootstrapModules: T,
            instructions: 0,
            hasBody: !1,
            hasHtml: !1,
            unknownResources: {},
            dnsResources: {},
            connectResources: {
                default: {},
                anonymous: {},
                credentials: {}
            },
            imageResources: {},
            styleResources: {},
            scriptResources: {},
            moduleUnknownResources: {},
            moduleScriptResources: {}
        }
    }

    function We(u, g, p) {
        return {
            insertionMode: u,
            selectedValue: g,
            tagScope: p
        }
    }

    function An(u, g, p) {
        switch (g) {
            case "noscript":
                return We(2, null, u.tagScope | 1);
            case "select":
                return We(2, p.value != null ? p.value : p.defaultValue, u.tagScope);
            case "svg":
                return We(3, null, u.tagScope);
            case "picture":
                return We(2, null, u.tagScope | 2);
            case "math":
                return We(4, null, u.tagScope);
            case "foreignObject":
                return We(2, null, u.tagScope);
            case "table":
                return We(5, null, u.tagScope);
            case "thead":
            case "tbody":
            case "tfoot":
                return We(6, null, u.tagScope);
            case "colgroup":
                return We(8, null, u.tagScope);
            case "tr":
                return We(7, null, u.tagScope)
        }
        return 5 <= u.insertionMode ? We(2, null, u.tagScope) : u.insertionMode === 0 ? We(g === "html" ? 1 : 2, null, u.tagScope) : u.insertionMode === 1 ? We(2, null, u.tagScope) : u
    }
    var He = new Map;

    function dl(u, g) {
        if (typeof g != "object") throw Error(l(62));
        var p = !0,
            C;
        for (C in g)
            if (me.call(g, C)) {
                var T = g[C];
                if (T != null && typeof T != "boolean" && T !== "") {
                    if (C.indexOf("--") === 0) {
                        var D = ee(C);
                        T = ee(("" + T).trim())
                    } else D = He.get(C), D === void 0 && (D = ee(C.replace(Me, "-$1").toLowerCase().replace(ct, "-ms-")), He.set(C, D)), T = typeof T == "number" ? T === 0 || Be.has(C) ? "" + T : T + "px" : ee(("" + T).trim());
                    p ? (p = !1, u.push(' style="', D, ":", T)) : u.push(";", D, ":", T)
                }
            } p || u.push('"')
    }

    function Ni(u, g, p) {
        p && typeof p != "function" && typeof p != "symbol" && u.push(" ", g, '=""')
    }

    function $t(u, g, p) {
        typeof p != "function" && typeof p != "symbol" && typeof p != "boolean" && u.push(" ", g, '="', ee(p), '"')
    }
    var Rn = ee("javascript:throw new Error('React form unexpectedly submitted.')");

    function Pn(u, g) {
        this.push('<input type="hidden"'), Ci(u), $t(this, "name", g), $t(this, "value", u), this.push("/>")
    }

    function Ci(u) {
        if (typeof u != "string") throw Error(l(480))
    }

    function rs(u, g) {
        if (typeof g.$$FORM_ACTION == "function") {
            var p = u.nextFormID++;
            u = u.idPrefix + p;
            try {
                var C = g.$$FORM_ACTION(u);
                if (C) {
                    var T = C.data;
                    T != null && T.forEach(Ci)
                }
                return C
            } catch (D) {
                if (typeof D == "object" && D !== null && typeof D.then == "function") throw D
            }
        }
        return null
    }

    function bn(u, g, p, C, T, D, H, W) {
        var K = null;
        if (typeof C == "function") {
            var re = rs(g, C);
            re !== null ? (W = re.name, C = re.action || "", T = re.encType, D = re.method, H = re.target, K = re.data) : (u.push(" ", "formAction", '="', Rn, '"'), H = D = T = C = W = null, On(g, p))
        }
        return W != null && Xe(u, "name", W), C != null && Xe(u, "formAction", C), T != null && Xe(u, "formEncType", T), D != null && Xe(u, "formMethod", D), H != null && Xe(u, "formTarget", H), K
    }

    function Xe(u, g, p) {
        switch (g) {
            case "className":
                $t(u, "class", p);
                break;
            case "tabIndex":
                $t(u, "tabindex", p);
                break;
            case "dir":
            case "role":
            case "viewBox":
            case "width":
            case "height":
                $t(u, g, p);
                break;
            case "style":
                dl(u, p);
                break;
            case "src":
            case "href":
                if (p === "") break;
            case "action":
            case "formAction":
                if (p == null || typeof p == "function" || typeof p == "symbol" || typeof p == "boolean") break;
                p = ae("" + p), u.push(" ", g, '="', ee(p), '"');
                break;
            case "defaultValue":
            case "defaultChecked":
            case "innerHTML":
            case "suppressContentEditableWarning":
            case "suppressHydrationWarning":
            case "ref":
                break;
            case "autoFocus":
            case "multiple":
            case "muted":
                Ni(u, g.toLowerCase(), p);
                break;
            case "xlinkHref":
                if (typeof p == "function" || typeof p == "symbol" || typeof p == "boolean") break;
                p = ae("" + p), u.push(" ", "xlink:href", '="', ee(p), '"');
                break;
            case "contentEditable":
            case "spellCheck":
            case "draggable":
            case "value":
            case "autoReverse":
            case "externalResourcesRequired":
            case "focusable":
            case "preserveAlpha":
                typeof p != "function" && typeof p != "symbol" && u.push(" ", g, '="', ee(p), '"');
                break;
            case "inert":
            case "allowFullScreen":
            case "async":
            case "autoPlay":
            case "controls":
            case "default":
            case "defer":
            case "disabled":
            case "disablePictureInPicture":
            case "disableRemotePlayback":
            case "formNoValidate":
            case "hidden":
            case "loop":
            case "noModule":
            case "noValidate":
            case "open":
            case "playsInline":
            case "readOnly":
            case "required":
            case "reversed":
            case "scoped":
            case "seamless":
            case "itemScope":
                p && typeof p != "function" && typeof p != "symbol" && u.push(" ", g, '=""');
                break;
            case "capture":
            case "download":
                p === !0 ? u.push(" ", g, '=""') : p !== !1 && typeof p != "function" && typeof p != "symbol" && u.push(" ", g, '="', ee(p), '"');
                break;
            case "cols":
            case "rows":
            case "size":
            case "span":
                typeof p != "function" && typeof p != "symbol" && !isNaN(p) && 1 <= p && u.push(" ", g, '="', ee(p), '"');
                break;
            case "rowSpan":
            case "start":
                typeof p == "function" || typeof p == "symbol" || isNaN(p) || u.push(" ", g, '="', ee(p), '"');
                break;
            case "xlinkActuate":
                $t(u, "xlink:actuate", p);
                break;
            case "xlinkArcrole":
                $t(u, "xlink:arcrole", p);
                break;
            case "xlinkRole":
                $t(u, "xlink:role", p);
                break;
            case "xlinkShow":
                $t(u, "xlink:show", p);
                break;
            case "xlinkTitle":
                $t(u, "xlink:title", p);
                break;
            case "xlinkType":
                $t(u, "xlink:type", p);
                break;
            case "xmlBase":
                $t(u, "xml:base", p);
                break;
            case "xmlLang":
                $t(u, "xml:lang", p);
                break;
            case "xmlSpace":
                $t(u, "xml:space", p);
                break;
            default:
                if ((!(2 < g.length) || g[0] !== "o" && g[0] !== "O" || g[1] !== "n" && g[1] !== "N") && (g = Ae.get(g) || g, _e(g))) {
                    switch (typeof p) {
                        case "function":
                        case "symbol":
                            return;
                        case "boolean":
                            var C = g.toLowerCase().slice(0, 5);
                            if (C !== "data-" && C !== "aria-") return
                    }
                    u.push(" ", g, '="', ee(p), '"')
                }
        }
    }

    function xn(u, g, p) {
        if (g != null) {
            if (p != null) throw Error(l(60));
            if (typeof g != "object" || !("__html" in g)) throw Error(l(61));
            g = g.__html, g != null && u.push("" + g)
        }
    }

    function ro(u) {
        var g = "";
        return n.Children.forEach(u, function(p) {
            p != null && (g += p)
        }), g
    }

    function On(u, g) {
        !(u.instructions & 16) && (u.instructions |= 16, g.bootstrapChunks.unshift(g.startInlineScript, `addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`, "<\/script>"))
    }

    function ya(u, g) {
        u.push(it("link"));
        for (var p in g)
            if (me.call(g, p)) {
                var C = g[p];
                if (C != null) switch (p) {
                    case "children":
                    case "dangerouslySetInnerHTML":
                        throw Error(l(399, "link"));
                    default:
                        Xe(u, p, C)
                }
            } return u.push("/>"), null
    }
    var ss = /(<\/|<)(s)(tyle)/gi;

    function cs(u, g, p, C) {
        return "" + g + (p === "s" ? "\\73 " : "\\53 ") + C
    }

    function Vn(u, g, p) {
        u.push(it(p));
        for (var C in g)
            if (me.call(g, C)) {
                var T = g[C];
                if (T != null) switch (C) {
                    case "children":
                    case "dangerouslySetInnerHTML":
                        throw Error(l(399, p));
                    default:
                        Xe(u, C, T)
                }
            } return u.push("/>"), null
    }

    function cc(u, g) {
        u.push(it("title"));
        var p = null,
            C = null,
            T;
        for (T in g)
            if (me.call(g, T)) {
                var D = g[T];
                if (D != null) switch (T) {
                    case "children":
                        p = D;
                        break;
                    case "dangerouslySetInnerHTML":
                        C = D;
                        break;
                    default:
                        Xe(u, T, D)
                }
            } return u.push(">"), g = Array.isArray(p) ? 2 > p.length ? p[0] : null : p, typeof g != "function" && typeof g != "symbol" && g !== null && g !== void 0 && u.push(ee("" + g)), xn(u, C, p), u.push(Wt("title")), null
    }

    function li(u, g) {
        u.push(it("script"));
        var p = null,
            C = null,
            T;
        for (T in g)
            if (me.call(g, T)) {
                var D = g[T];
                if (D != null) switch (T) {
                    case "children":
                        p = D;
                        break;
                    case "dangerouslySetInnerHTML":
                        C = D;
                        break;
                    default:
                        Xe(u, T, D)
                }
            } return u.push(">"), xn(u, C, p), typeof p == "string" && u.push(("" + p).replace(_l, qa)), u.push(Wt("script")), null
    }

    function ii(u, g, p) {
        u.push(it(p));
        var C = p = null,
            T;
        for (T in g)
            if (me.call(g, T)) {
                var D = g[T];
                if (D != null) switch (T) {
                    case "children":
                        p = D;
                        break;
                    case "dangerouslySetInnerHTML":
                        C = D;
                        break;
                    default:
                        Xe(u, T, D)
                }
            } return u.push(">"), xn(u, C, p), typeof p == "string" ? (u.push(ee(p)), null) : p
    }
    var iu = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
        Ei = new Map;

    function it(u) {
        var g = Ei.get(u);
        if (g === void 0) {
            if (!iu.test(u)) throw Error(l(65, u));
            g = "<" + u, Ei.set(u, g)
        }
        return g
    }

    function so(u, g, p, C, T, D, H, W, K) {
        switch (g) {
            case "div":
            case "span":
            case "svg":
            case "path":
                break;
            case "a":
                u.push(it("a"));
                var re = null,
                    pe = null,
                    he;
                for (he in p)
                    if (me.call(p, he)) {
                        var Ee = p[he];
                        if (Ee != null) switch (he) {
                            case "children":
                                re = Ee;
                                break;
                            case "dangerouslySetInnerHTML":
                                pe = Ee;
                                break;
                            case "href":
                                Ee === "" ? $t(u, "href", "") : Xe(u, he, Ee);
                                break;
                            default:
                                Xe(u, he, Ee)
                        }
                    } if (u.push(">"), xn(u, pe, re), typeof re == "string") {
                    u.push(ee(re));
                    var Ge = null
                } else Ge = re;
                return Ge;
            case "g":
            case "p":
            case "li":
                break;
            case "select":
                u.push(it("select"));
                var we = null,
                    ze = null,
                    mt;
                for (mt in p)
                    if (me.call(p, mt)) {
                        var Qe = p[mt];
                        if (Qe != null) switch (mt) {
                            case "children":
                                we = Qe;
                                break;
                            case "dangerouslySetInnerHTML":
                                ze = Qe;
                                break;
                            case "defaultValue":
                            case "value":
                                break;
                            default:
                                Xe(u, mt, Qe)
                        }
                    } return u.push(">"), xn(u, ze, we), we;
            case "option":
                var tt = H.selectedValue;
                u.push(it("option"));
                var $e = null,
                    ft = null,
                    Je = null,
                    Rt = null,
                    nn;
                for (nn in p)
                    if (me.call(p, nn)) {
                        var ln = p[nn];
                        if (ln != null) switch (nn) {
                            case "children":
                                $e = ln;
                                break;
                            case "selected":
                                Je = ln;
                                break;
                            case "dangerouslySetInnerHTML":
                                Rt = ln;
                                break;
                            case "value":
                                ft = ln;
                            default:
                                Xe(u, nn, ln)
                        }
                    } if (tt != null) {
                    var wt = ft !== null ? "" + ft : ro($e);
                    if (be(tt)) {
                        for (var Ye = 0; Ye < tt.length; Ye++)
                            if ("" + tt[Ye] === wt) {
                                u.push(' selected=""');
                                break
                            }
                    } else "" + tt === wt && u.push(' selected=""')
                } else Je && u.push(' selected=""');
                return u.push(">"), xn(u, Rt, $e), $e;
            case "textarea":
                u.push(it("textarea"));
                var Yt = null,
                    tl = null,
                    wa = null,
                    rn;
                for (rn in p)
                    if (me.call(p, rn)) {
                        var ka = p[rn];
                        if (ka != null) switch (rn) {
                            case "children":
                                wa = ka;
                                break;
                            case "value":
                                Yt = ka;
                                break;
                            case "defaultValue":
                                tl = ka;
                                break;
                            case "dangerouslySetInnerHTML":
                                throw Error(l(91));
                            default:
                                Xe(u, rn, ka)
                        }
                    } if (Yt === null && tl !== null && (Yt = tl), u.push(">"), wa != null) {
                    if (Yt != null) throw Error(l(92));
                    if (be(wa)) {
                        if (1 < wa.length) throw Error(l(93));
                        Yt = "" + wa[0]
                    }
                    Yt = "" + wa
                }
                return typeof Yt == "string" && Yt[0] === `
` && u.push(`
`), Yt !== null && u.push(ee("" + Yt)), null;
            case "input":
                u.push(it("input"));
                var za = null,
                    da = null,
                    Pa = null,
                    di = null,
                    sn = null,
                    fi = null,
                    hi = null,
                    Da = null,
                    Gl = null,
                    xl;
                for (xl in p)
                    if (me.call(p, xl)) {
                        var va = p[xl];
                        if (va != null) switch (xl) {
                            case "children":
                            case "dangerouslySetInnerHTML":
                                throw Error(l(399, "input"));
                            case "name":
                                za = va;
                                break;
                            case "formAction":
                                da = va;
                                break;
                            case "formEncType":
                                Pa = va;
                                break;
                            case "formMethod":
                                di = va;
                                break;
                            case "formTarget":
                                sn = va;
                                break;
                            case "defaultChecked":
                                Gl = va;
                                break;
                            case "defaultValue":
                                hi = va;
                                break;
                            case "checked":
                                Da = va;
                                break;
                            case "value":
                                fi = va;
                                break;
                            default:
                                Xe(u, xl, va)
                        }
                    } var Cs = bn(u, C, T, da, Pa, di, sn, za);
                return Da !== null ? Ni(u, "checked", Da) : Gl !== null && Ni(u, "checked", Gl), fi !== null ? Xe(u, "value", fi) : hi !== null && Xe(u, "value", hi), u.push("/>"), Cs != null && Cs.forEach(Pn, u), null;
            case "button":
                u.push(it("button"));
                var Na = null,
                    gi = null,
                    mi = null,
                    Qi = null,
                    Wi = null,
                    cn = null,
                    ba = null,
                    Va;
                for (Va in p)
                    if (me.call(p, Va)) {
                        var It = p[Va];
                        if (It != null) switch (Va) {
                            case "children":
                                Na = It;
                                break;
                            case "dangerouslySetInnerHTML":
                                gi = It;
                                break;
                            case "name":
                                mi = It;
                                break;
                            case "formAction":
                                Qi = It;
                                break;
                            case "formEncType":
                                Wi = It;
                                break;
                            case "formMethod":
                                cn = It;
                                break;
                            case "formTarget":
                                ba = It;
                                break;
                            default:
                                Xe(u, Va, It)
                        }
                    } var al = bn(u, C, T, Qi, Wi, cn, ba, mi);
                if (u.push(">"), al != null && al.forEach(Pn, u), xn(u, gi, Na), typeof Na == "string") {
                    u.push(ee(Na));
                    var nl = null
                } else nl = Na;
                return nl;
            case "form":
                u.push(it("form"));
                var vi = null,
                    pl = null,
                    kn = null,
                    Dt = null,
                    Lt = null,
                    qe = null,
                    Kt;
                for (Kt in p)
                    if (me.call(p, Kt)) {
                        var xa = p[Kt];
                        if (xa != null) switch (Kt) {
                            case "children":
                                vi = xa;
                                break;
                            case "dangerouslySetInnerHTML":
                                pl = xa;
                                break;
                            case "action":
                                kn = xa;
                                break;
                            case "encType":
                                Dt = xa;
                                break;
                            case "method":
                                Lt = xa;
                                break;
                            case "target":
                                qe = xa;
                                break;
                            default:
                                Xe(u, Kt, xa)
                        }
                    } var Ii = null,
                    yl = null;
                if (typeof kn == "function") {
                    var Nt = rs(C, kn);
                    Nt !== null ? (kn = Nt.action || "", Dt = Nt.encType, Lt = Nt.method, qe = Nt.target, Ii = Nt.data, yl = Nt.name) : (u.push(" ", "action", '="', Rn, '"'), qe = Lt = Dt = kn = null, On(C, T))
                }
                if (kn != null && Xe(u, "action", kn), Dt != null && Xe(u, "encType", Dt), Lt != null && Xe(u, "method", Lt), qe != null && Xe(u, "target", qe), u.push(">"), yl !== null && (u.push('<input type="hidden"'), $t(u, "name", yl), u.push("/>"), Ii != null && Ii.forEach(Pn, u)), xn(u, pl, vi), typeof vi == "string") {
                    u.push(ee(vi));
                    var Es = null
                } else Es = vi;
                return Es;
            case "menuitem":
                u.push(it("menuitem"));
                for (var ll in p)
                    if (me.call(p, ll)) {
                        var Sl = p[ll];
                        if (Sl != null) switch (ll) {
                            case "children":
                            case "dangerouslySetInnerHTML":
                                throw Error(l(400));
                            default:
                                Xe(u, ll, Sl)
                        }
                    } return u.push(">"), null;
            case "object":
                u.push(it("object"));
                var il = null,
                    rl = null,
                    sl;
                for (sl in p)
                    if (me.call(p, sl)) {
                        var on = p[sl];
                        if (on != null) switch (sl) {
                            case "children":
                                il = on;
                                break;
                            case "dangerouslySetInnerHTML":
                                rl = on;
                                break;
                            case "data":
                                var La = ae("" + on);
                                if (La === "") break;
                                u.push(" ", "data", '="', ee(La), '"');
                                break;
                            default:
                                Xe(u, sl, on)
                        }
                    } if (u.push(">"), xn(u, rl, il), typeof il == "string") {
                    u.push(ee(il));
                    var wl = null
                } else wl = il;
                return wl;
            case "title":
                if (H.insertionMode === 3 || H.tagScope & 1 || p.itemProp != null) var Or = cc(u, p);
                else K ? Or = null : (cc(T.hoistableChunks, p), Or = void 0);
                return Or;
            case "link":
                var Ki = p.rel,
                    Cn = p.href,
                    zn = p.precedence;
                if (H.insertionMode === 3 || H.tagScope & 1 || p.itemProp != null || typeof Ki != "string" || typeof Cn != "string" || Cn === "") {
                    ya(u, p);
                    var Jt = null
                } else if (p.rel === "stylesheet")
                    if (typeof zn != "string" || p.disabled != null || p.onLoad || p.onError) Jt = ya(u, p);
                    else {
                        var Dn = T.styles.get(zn),
                            cl = C.styleResources.hasOwnProperty(Cn) ? C.styleResources[Cn] : void 0;
                        if (cl !== null) {
                            C.styleResources[Cn] = null, Dn || (Dn = {
                                precedence: ee(zn),
                                rules: [],
                                hrefs: [],
                                sheets: new Map
                            }, T.styles.set(zn, Dn));
                            var Nl = {
                                state: 0,
                                props: De({}, p, {
                                    "data-precedence": p.precedence,
                                    precedence: null
                                })
                            };
                            if (cl) {
                                cl.length === 2 && _n(Nl.props, cl);
                                var _r = T.preloads.stylesheets.get(Cn);
                                _r && 0 < _r.length ? _r.length = 0 : Nl.state = 1
                            }
                            Dn.sheets.set(Cn, Nl), D && D.stylesheets.add(Nl)
                        } else if (Dn) {
                            var Ts = Dn.sheets.get(Cn);
                            Ts && D && D.stylesheets.add(Ts)
                        }
                        W && u.push("<!-- -->"), Jt = null
                    }
                else p.onLoad || p.onError ? Jt = ya(u, p) : (W && u.push("<!-- -->"), Jt = K ? null : ya(T.hoistableChunks, p));
                return Jt;
            case "script":
                var aa = p.async;
                if (typeof p.src != "string" || !p.src || !aa || typeof aa == "function" || typeof aa == "symbol" || p.onLoad || p.onError || H.insertionMode === 3 || H.tagScope & 1 || p.itemProp != null) var Ac = li(u, p);
                else {
                    var un = p.src;
                    if (p.type === "module") var Yl = C.moduleScriptResources,
                        jr = T.preloads.moduleScripts;
                    else Yl = C.scriptResources, jr = T.preloads.scripts;
                    var Xl = Yl.hasOwnProperty(un) ? Yl[un] : void 0;
                    if (Xl !== null) {
                        Yl[un] = null;
                        var Pl = p;
                        if (Xl) {
                            Xl.length === 2 && (Pl = De({}, p), _n(Pl, Xl));
                            var pa = jr.get(un);
                            pa && (pa.length = 0)
                        }
                        var dn = [];
                        T.scripts.add(dn), li(dn, Pl)
                    }
                    W && u.push("<!-- -->"), Ac = null
                }
                return Ac;
            case "style":
                var fn = p.precedence,
                    Ln = p.href;
                if (H.insertionMode === 3 || H.tagScope & 1 || p.itemProp != null || typeof fn != "string" || typeof Ln != "string" || Ln === "") {
                    u.push(it("style"));
                    var Ca = null,
                        En = null,
                        Ct;
                    for (Ct in p)
                        if (me.call(p, Ct)) {
                            var Vl = p[Ct];
                            if (Vl != null) switch (Ct) {
                                case "children":
                                    Ca = Vl;
                                    break;
                                case "dangerouslySetInnerHTML":
                                    En = Vl;
                                    break;
                                default:
                                    Xe(u, Ct, Vl)
                            }
                        } u.push(">");
                    var Zl = Array.isArray(Ca) ? 2 > Ca.length ? Ca[0] : null : Ca;
                    typeof Zl != "function" && typeof Zl != "symbol" && Zl !== null && Zl !== void 0 && u.push(("" + Zl).replace(ss, cs)), xn(u, En, Ca), u.push(Wt("style"));
                    var Rc = null
                } else {
                    var hn = T.styles.get(fn);
                    if ((C.styleResources.hasOwnProperty(Ln) ? C.styleResources[Ln] : void 0) !== null) {
                        C.styleResources[Ln] = null, hn ? hn.hrefs.push(ee(Ln)) : (hn = {
                            precedence: ee(fn),
                            rules: [],
                            hrefs: [ee(Ln)],
                            sheets: new Map
                        }, T.styles.set(fn, hn));
                        var Xt = hn.rules,
                            gn = null,
                            bi = null,
                            o;
                        for (o in p)
                            if (me.call(p, o)) {
                                var f = p[o];
                                if (f != null) switch (o) {
                                    case "children":
                                        gn = f;
                                        break;
                                    case "dangerouslySetInnerHTML":
                                        bi = f
                                }
                            } var b = Array.isArray(gn) ? 2 > gn.length ? gn[0] : null : gn;
                        typeof b != "function" && typeof b != "symbol" && b !== null && b !== void 0 && Xt.push(("" + b).replace(ss, cs)), xn(Xt, bi, gn)
                    }
                    hn && D && D.styles.add(hn), W && u.push("<!-- -->"), Rc = void 0
                }
                return Rc;
            case "meta":
                if (H.insertionMode === 3 || H.tagScope & 1 || p.itemProp != null) var N = Vn(u, p, "meta");
                else W && u.push("<!-- -->"), N = K ? null : typeof p.charSet == "string" ? Vn(T.charsetChunks, p, "meta") : p.name === "viewport" ? Vn(T.viewportChunks, p, "meta") : Vn(T.hoistableChunks, p, "meta");
                return N;
            case "listing":
            case "pre":
                u.push(it(g));
                var M = null,
                    z = null,
                    B;
                for (B in p)
                    if (me.call(p, B)) {
                        var X = p[B];
                        if (X != null) switch (B) {
                            case "children":
                                M = X;
                                break;
                            case "dangerouslySetInnerHTML":
                                z = X;
                                break;
                            default:
                                Xe(u, B, X)
                        }
                    } if (u.push(">"), z != null) {
                    if (M != null) throw Error(l(60));
                    if (typeof z != "object" || !("__html" in z)) throw Error(l(61));
                    var G = z.__html;
                    G != null && (typeof G == "string" && 0 < G.length && G[0] === `
` ? u.push(`
`, G) : u.push("" + G))
                }
                return typeof M == "string" && M[0] === `
` && u.push(`
`), M;
            case "img":
                var q = p.src,
                    ce = p.srcSet;
                if (!(p.loading === "lazy" || !q && !ce || typeof q != "string" && q != null || typeof ce != "string" && ce != null) && p.fetchPriority !== "low" && !(H.tagScope & 3) && (typeof q != "string" || q[4] !== ":" || q[0] !== "d" && q[0] !== "D" || q[1] !== "a" && q[1] !== "A" || q[2] !== "t" && q[2] !== "T" || q[3] !== "a" && q[3] !== "A") && (typeof ce != "string" || ce[4] !== ":" || ce[0] !== "d" && ce[0] !== "D" || ce[1] !== "a" && ce[1] !== "A" || ce[2] !== "t" && ce[2] !== "T" || ce[3] !== "a" && ce[3] !== "A")) {
                    var le = typeof p.sizes == "string" ? p.sizes : void 0,
                        de = ce ? ce + `
` + (le || "") : q,
                        ge = T.preloads.images,
                        ye = ge.get(de);
                    if (ye)(p.fetchPriority === "high" || 10 > T.highImagePreloads.size) && (ge.delete(de), T.highImagePreloads.add(ye));
                    else if (!C.imageResources.hasOwnProperty(de)) {
                        C.imageResources[de] = Ra;
                        var Ne = p.crossOrigin,
                            Ot = typeof Ne == "string" ? Ne === "use-credentials" ? Ne : "" : void 0,
                            _t = T.headers,
                            Pt;
                        _t && 0 < _t.remainingCapacity && (p.fetchPriority === "high" || 500 > _t.highImagePreloads.length) && (Pt = St(q, "image", {
                            imageSrcSet: p.srcSet,
                            imageSizes: p.sizes,
                            crossOrigin: Ot,
                            integrity: p.integrity,
                            nonce: p.nonce,
                            type: p.type,
                            fetchPriority: p.fetchPriority,
                            referrerPolicy: p.refererPolicy
                        }), 0 <= (_t.remainingCapacity -= Pt.length + 2)) ? (T.resets.image[de] = Ra, _t.highImagePreloads && (_t.highImagePreloads += ", "), _t.highImagePreloads += Pt) : (ye = [], ya(ye, {
                            rel: "preload",
                            as: "image",
                            href: ce ? void 0 : q,
                            imageSrcSet: ce,
                            imageSizes: le,
                            crossOrigin: Ot,
                            integrity: p.integrity,
                            type: p.type,
                            fetchPriority: p.fetchPriority,
                            referrerPolicy: p.referrerPolicy
                        }), p.fetchPriority === "high" || 10 > T.highImagePreloads.size ? T.highImagePreloads.add(ye) : (T.bulkPreloads.add(ye), ge.set(de, ye)))
                    }
                }
                return Vn(u, p, "img");
            case "base":
            case "area":
            case "br":
            case "col":
            case "embed":
            case "hr":
            case "keygen":
            case "param":
            case "source":
            case "track":
            case "wbr":
                return Vn(u, p, g);
            case "annotation-xml":
            case "color-profile":
            case "font-face":
            case "font-face-src":
            case "font-face-uri":
            case "font-face-format":
            case "font-face-name":
            case "missing-glyph":
                break;
            case "head":
                if (2 > H.insertionMode && T.headChunks === null) {
                    T.headChunks = [];
                    var yt = ii(T.headChunks, p, "head")
                } else yt = ii(u, p, "head");
                return yt;
            case "html":
                if (H.insertionMode === 0 && T.htmlChunks === null) {
                    T.htmlChunks = [""];
                    var Ut = ii(T.htmlChunks, p, "html")
                } else Ut = ii(u, p, "html");
                return Ut;
            default:
                if (g.indexOf("-") !== -1) {
                    u.push(it(g));
                    var qt = null,
                        Ua = null,
                        Ie;
                    for (Ie in p)
                        if (me.call(p, Ie)) {
                            var Et = p[Ie];
                            if (Et != null) {
                                var na = Ie;
                                switch (Ie) {
                                    case "children":
                                        qt = Et;
                                        break;
                                    case "dangerouslySetInnerHTML":
                                        Ua = Et;
                                        break;
                                    case "style":
                                        dl(u, Et);
                                        break;
                                    case "suppressContentEditableWarning":
                                    case "suppressHydrationWarning":
                                    case "ref":
                                        break;
                                    case "className":
                                        na = "class";
                                    default:
                                        if (_e(Ie) && typeof Et != "function" && typeof Et != "symbol" && Et !== !1) {
                                            if (Et === !0) Et = "";
                                            else if (typeof Et == "object") continue;
                                            u.push(" ", na, '="', ee(Et), '"')
                                        }
                                }
                            }
                        } return u.push(">"), xn(u, Ua, qt), qt
                }
        }
        return ii(u, p, g)
    }
    var At = new Map;

    function Wt(u) {
        var g = At.get(u);
        return g === void 0 && (g = "</" + u + ">", At.set(u, g)), g
    }

    function oc(u, g) {
        g = g.bootstrapChunks;
        for (var p = 0; p < g.length - 1; p++) u.push(g[p]);
        return p < g.length ? (p = g[p], g.length = 0, u.push(p)) : !0
    }

    function Zn(u, g, p) {
        if (u.push('<!--$?--><template id="'), p === null) throw Error(l(395));
        return u.push(g.boundaryPrefix), g = p.toString(16), u.push(g), u.push('"></template>')
    }

    function co(u, g, p, C) {
        switch (p.insertionMode) {
            case 0:
            case 1:
            case 2:
                return u.push('<div hidden id="'), u.push(g.segmentPrefix), g = C.toString(16), u.push(g), u.push('">');
            case 3:
                return u.push('<svg aria-hidden="true" style="display:none" id="'), u.push(g.segmentPrefix), g = C.toString(16), u.push(g), u.push('">');
            case 4:
                return u.push('<math aria-hidden="true" style="display:none" id="'), u.push(g.segmentPrefix), g = C.toString(16), u.push(g), u.push('">');
            case 5:
                return u.push('<table hidden id="'), u.push(g.segmentPrefix), g = C.toString(16), u.push(g), u.push('">');
            case 6:
                return u.push('<table hidden><tbody id="'), u.push(g.segmentPrefix), g = C.toString(16), u.push(g), u.push('">');
            case 7:
                return u.push('<table hidden><tr id="'), u.push(g.segmentPrefix), g = C.toString(16), u.push(g), u.push('">');
            case 8:
                return u.push('<table hidden><colgroup id="'), u.push(g.segmentPrefix), g = C.toString(16), u.push(g), u.push('">');
            default:
                throw Error(l(397))
        }
    }

    function dr(u, g) {
        switch (g.insertionMode) {
            case 0:
            case 1:
            case 2:
                return u.push("</div>");
            case 3:
                return u.push("</svg>");
            case 4:
                return u.push("</math>");
            case 5:
                return u.push("</table>");
            case 6:
                return u.push("</tbody></table>");
            case 7:
                return u.push("</tr></table>");
            case 8:
                return u.push("</colgroup></table>");
            default:
                throw Error(l(397))
        }
    }
    var os = /[<\u2028\u2029]/g;

    function jl(u) {
        return JSON.stringify(u).replace(os, function(g) {
            switch (g) {
                case "<":
                    return "\\u003c";
                case "\u2028":
                    return "\\u2028";
                case "\u2029":
                    return "\\u2029";
                default:
                    throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
            }
        })
    }
    var us = /[&><\u2028\u2029]/g;

    function Qn(u) {
        return JSON.stringify(u).replace(us, function(g) {
            switch (g) {
                case "&":
                    return "\\u0026";
                case ">":
                    return "\\u003e";
                case "<":
                    return "\\u003c";
                case "\u2028":
                    return "\\u2028";
                case "\u2029":
                    return "\\u2029";
                default:
                    throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
            }
        })
    }
    var ua = !1,
        Oa = !0;

    function Ga(u) {
        var g = u.rules,
            p = u.hrefs,
            C = 0;
        if (p.length) {
            for (this.push('<style media="not all" data-precedence="'), this.push(u.precedence), this.push('" data-href="'); C < p.length - 1; C++) this.push(p[C]), this.push(" ");
            for (this.push(p[C]), this.push('">'), C = 0; C < g.length; C++) this.push(g[C]);
            Oa = this.push("</style>"), ua = !0, g.length = 0, p.length = 0
        }
    }

    function fr(u) {
        return u.state !== 2 ? ua = !0 : !1
    }

    function kl(u, g, p) {
        return ua = !1, Oa = !0, g.styles.forEach(Ga, u), g.stylesheets.forEach(fr), ua && (p.stylesToHoist = !0), Oa
    }

    function bt(u) {
        for (var g = 0; g < u.length; g++) this.push(u[g]);
        u.length = 0
    }
    var Wn = [];

    function uc(u) {
        ya(Wn, u.props);
        for (var g = 0; g < Wn.length; g++) this.push(Wn[g]);
        Wn.length = 0, u.state = 2
    }

    function ds(u) {
        var g = 0 < u.sheets.size;
        u.sheets.forEach(uc, this), u.sheets.clear();
        var p = u.rules,
            C = u.hrefs;
        if (!g || C.length) {
            if (this.push('<style data-precedence="'), this.push(u.precedence), u = 0, C.length) {
                for (this.push('" data-href="'); u < C.length - 1; u++) this.push(C[u]), this.push(" ");
                this.push(C[u])
            }
            for (this.push('">'), u = 0; u < p.length; u++) this.push(p[u]);
            this.push("</style>"), p.length = 0, C.length = 0
        }
    }

    function dc(u) {
        if (u.state === 0) {
            u.state = 1;
            var g = u.props;
            for (ya(Wn, {
                    rel: "preload",
                    as: "style",
                    href: u.props.href,
                    crossOrigin: g.crossOrigin,
                    fetchPriority: g.fetchPriority,
                    integrity: g.integrity,
                    media: g.media,
                    hrefLang: g.hrefLang,
                    referrerPolicy: g.referrerPolicy
                }), u = 0; u < Wn.length; u++) this.push(Wn[u]);
            Wn.length = 0
        }
    }

    function oo(u) {
        u.sheets.forEach(dc, this), u.sheets.clear()
    }

    function fl(u, g) {
        u.push("[");
        var p = "[";
        g.stylesheets.forEach(function(C) {
            if (C.state !== 2)
                if (C.state === 3) u.push(p), C = Qn("" + C.props.href), u.push(C), u.push("]"), p = ",[";
                else {
                    u.push(p);
                    var T = C.props["data-precedence"],
                        D = C.props,
                        H = ae("" + C.props.href);
                    H = Qn(H), u.push(H), T = "" + T, u.push(","), T = Qn(T), u.push(T);
                    for (var W in D)
                        if (me.call(D, W) && (T = D[W], T != null)) switch (W) {
                            case "href":
                            case "rel":
                            case "precedence":
                            case "data-precedence":
                                break;
                            case "children":
                            case "dangerouslySetInnerHTML":
                                throw Error(l(399, "link"));
                            default:
                                Fe(u, W, T)
                        }
                    u.push("]"), p = ",[", C.state = 3
                }
        }), u.push("]")
    }

    function Fe(u, g, p) {
        var C = g.toLowerCase();
        switch (typeof p) {
            case "function":
            case "symbol":
                return
        }
        switch (g) {
            case "innerHTML":
            case "dangerouslySetInnerHTML":
            case "suppressContentEditableWarning":
            case "suppressHydrationWarning":
            case "style":
            case "ref":
                return;
            case "className":
                C = "class", g = "" + p;
                break;
            case "hidden":
                if (p === !1) return;
                g = "";
                break;
            case "src":
            case "href":
                p = ae(p), g = "" + p;
                break;
            default:
                if (2 < g.length && (g[0] === "o" || g[0] === "O") && (g[1] === "n" || g[1] === "N") || !_e(g)) return;
                g = "" + p
        }
        u.push(","), C = Qn(C), u.push(C), u.push(","), C = Qn(g), u.push(C)
    }

    function dt() {
        return {
            styles: new Set,
            stylesheets: new Set
        }
    }

    function In(u) {
        var g = ta || null;
        if (g) {
            var p = g.resumableState,
                C = g.renderState;
            if (typeof u == "string" && u) {
                if (!p.dnsResources.hasOwnProperty(u)) {
                    p.dnsResources[u] = null, p = C.headers;
                    var T, D;
                    (D = p && 0 < p.remainingCapacity) && (D = (T = "<" + ("" + u).replace(zl, hl) + ">; rel=dns-prefetch", 0 <= (p.remainingCapacity -= T.length + 2))), D ? (C.resets.dns[u] = null, p.preconnects && (p.preconnects += ", "), p.preconnects += T) : (T = [], ya(T, {
                        href: u,
                        rel: "dns-prefetch"
                    }), C.preconnects.add(T))
                }
                el(g)
            }
        } else Qt.D(u)
    }

    function Ya(u, g) {
        var p = ta || null;
        if (p) {
            var C = p.resumableState,
                T = p.renderState;
            if (typeof u == "string" && u) {
                var D = g === "use-credentials" ? "credentials" : typeof g == "string" ? "anonymous" : "default";
                if (!C.connectResources[D].hasOwnProperty(u)) {
                    C.connectResources[D][u] = null, C = T.headers;
                    var H, W;
                    if (W = C && 0 < C.remainingCapacity) {
                        if (W = "<" + ("" + u).replace(zl, hl) + ">; rel=preconnect", typeof g == "string") {
                            var K = ("" + g).replace(pt, hr);
                            W += '; crossorigin="' + K + '"'
                        }
                        W = (H = W, 0 <= (C.remainingCapacity -= H.length + 2))
                    }
                    W ? (T.resets.connect[D][u] = null, C.preconnects && (C.preconnects += ", "), C.preconnects += H) : (D = [], ya(D, {
                        rel: "preconnect",
                        href: u,
                        crossOrigin: g
                    }), T.preconnects.add(D))
                }
                el(p)
            }
        } else Qt.C(u, g)
    }

    function ru(u, g, p) {
        var C = ta || null;
        if (C) {
            var T = C.resumableState,
                D = C.renderState;
            if (g && u) {
                switch (g) {
                    case "image":
                        if (p) var H = p.imageSrcSet,
                            W = p.imageSizes,
                            K = p.fetchPriority;
                        var re = H ? H + `
` + (W || "") : u;
                        if (T.imageResources.hasOwnProperty(re)) return;
                        T.imageResources[re] = Ra, T = D.headers;
                        var pe;
                        T && 0 < T.remainingCapacity && K === "high" && (pe = St(u, g, p), 0 <= (T.remainingCapacity -= pe.length + 2)) ? (D.resets.image[re] = Ra, T.highImagePreloads && (T.highImagePreloads += ", "), T.highImagePreloads += pe) : (T = [], ya(T, De({
                            rel: "preload",
                            href: H ? void 0 : u,
                            as: g
                        }, p)), K === "high" ? D.highImagePreloads.add(T) : (D.bulkPreloads.add(T), D.preloads.images.set(re, T)));
                        break;
                    case "style":
                        if (T.styleResources.hasOwnProperty(u)) return;
                        H = [], ya(H, De({
                            rel: "preload",
                            href: u,
                            as: g
                        }, p)), T.styleResources[u] = !p || typeof p.crossOrigin != "string" && typeof p.integrity != "string" ? Ra : [p.crossOrigin, p.integrity], D.preloads.stylesheets.set(u, H), D.bulkPreloads.add(H);
                        break;
                    case "script":
                        if (T.scriptResources.hasOwnProperty(u)) return;
                        H = [], D.preloads.scripts.set(u, H), D.bulkPreloads.add(H), ya(H, De({
                            rel: "preload",
                            href: u,
                            as: g
                        }, p)), T.scriptResources[u] = !p || typeof p.crossOrigin != "string" && typeof p.integrity != "string" ? Ra : [p.crossOrigin, p.integrity];
                        break;
                    default:
                        if (T.unknownResources.hasOwnProperty(g)) {
                            if (H = T.unknownResources[g], H.hasOwnProperty(u)) return
                        } else H = {}, T.unknownResources[g] = H;
                        if (H[u] = Ra, (T = D.headers) && 0 < T.remainingCapacity && g === "font" && (re = St(u, g, p), 0 <= (T.remainingCapacity -= re.length + 2))) D.resets.font[u] = Ra, T.fontPreloads && (T.fontPreloads += ", "), T.fontPreloads += re;
                        else switch (T = [], u = De({
                                rel: "preload",
                                href: u,
                                as: g
                            }, p), ya(T, u), g) {
                            case "font":
                                D.fontPreloads.add(T);
                                break;
                            default:
                                D.bulkPreloads.add(T)
                        }
                }
                el(C)
            }
        } else Qt.L(u, g, p)
    }

    function fc(u, g) {
        var p = ta || null;
        if (p) {
            var C = p.resumableState,
                T = p.renderState;
            if (u) {
                var D = g && typeof g.as == "string" ? g.as : "script";
                switch (D) {
                    case "script":
                        if (C.moduleScriptResources.hasOwnProperty(u)) return;
                        D = [], C.moduleScriptResources[u] = !g || typeof g.crossOrigin != "string" && typeof g.integrity != "string" ? Ra : [g.crossOrigin, g.integrity], T.preloads.moduleScripts.set(u, D);
                        break;
                    default:
                        if (C.moduleUnknownResources.hasOwnProperty(D)) {
                            var H = C.unknownResources[D];
                            if (H.hasOwnProperty(u)) return
                        } else H = {}, C.moduleUnknownResources[D] = H;
                        D = [], H[u] = Ra
                }
                ya(D, De({
                    rel: "modulepreload",
                    href: u
                }, g)), T.bulkPreloads.add(D), el(p)
            }
        } else Qt.m(u, g)
    }

    function uo(u, g, p) {
        var C = ta || null;
        if (C) {
            var T = C.resumableState,
                D = C.renderState;
            if (u) {
                g = g || "default";
                var H = D.styles.get(g),
                    W = T.styleResources.hasOwnProperty(u) ? T.styleResources[u] : void 0;
                W !== null && (T.styleResources[u] = null, H || (H = {
                    precedence: ee(g),
                    rules: [],
                    hrefs: [],
                    sheets: new Map
                }, D.styles.set(g, H)), g = {
                    state: 0,
                    props: De({
                        rel: "stylesheet",
                        href: u,
                        "data-precedence": g
                    }, p)
                }, W && (W.length === 2 && _n(g.props, W), (D = D.preloads.stylesheets.get(u)) && 0 < D.length ? D.length = 0 : g.state = 1), H.sheets.set(u, g), el(C))
            }
        } else Qt.S(u, g, p)
    }

    function Ti(u, g) {
        var p = ta || null;
        if (p) {
            var C = p.resumableState,
                T = p.renderState;
            if (u) {
                var D = C.scriptResources.hasOwnProperty(u) ? C.scriptResources[u] : void 0;
                D !== null && (C.scriptResources[u] = null, g = De({
                    src: u,
                    async: !0
                }, g), D && (D.length === 2 && _n(g, D), u = T.preloads.scripts.get(u)) && (u.length = 0), u = [], T.scripts.add(u), li(u, g), el(p))
            }
        } else Qt.X(u, g)
    }

    function hc(u, g) {
        var p = ta || null;
        if (p) {
            var C = p.resumableState,
                T = p.renderState;
            if (u) {
                var D = C.moduleScriptResources.hasOwnProperty(u) ? C.moduleScriptResources[u] : void 0;
                D !== null && (C.moduleScriptResources[u] = null, g = De({
                    src: u,
                    type: "module",
                    async: !0
                }, g), D && (D.length === 2 && _n(g, D), u = T.preloads.moduleScripts.get(u)) && (u.length = 0), u = [], T.scripts.add(u), li(u, g), el(p))
            }
        } else Qt.M(u, g)
    }

    function _n(u, g) {
        u.crossOrigin == null && (u.crossOrigin = g[0]), u.integrity == null && (u.integrity = g[1])
    }

    function St(u, g, p) {
        u = ("" + u).replace(zl, hl), g = ("" + g).replace(pt, hr), g = "<" + u + '>; rel=preload; as="' + g + '"';
        for (var C in p) me.call(p, C) && (u = p[C], typeof u == "string" && (g += "; " + C.toLowerCase() + '="' + ("" + u).replace(pt, hr) + '"'));
        return g
    }
    var zl = /[<>\r\n]/g;

    function hl(u) {
        switch (u) {
            case "<":
                return "%3C";
            case ">":
                return "%3E";
            case `
`:
                return "%0A";
            case "\r":
                return "%0D";
            default:
                throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
        }
    }
    var pt = /["';,\r\n]/g;

    function hr(u) {
        switch (u) {
            case '"':
                return "%22";
            case "'":
                return "%27";
            case ";":
                return "%3B";
            case ",":
                return "%2C";
            case `
`:
                return "%0A";
            case "\r":
                return "%0D";
            default:
                throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
        }
    }

    function Mi(u) {
        this.styles.add(u)
    }

    function pn(u) {
        this.stylesheets.add(u)
    }

    function Dl(u, g) {
        var p = u.idPrefix,
            C = [],
            T = u.bootstrapScriptContent,
            D = u.bootstrapScripts,
            H = u.bootstrapModules;
        T !== void 0 && C.push("<script>", ("" + T).replace(_l, qa), "<\/script>"), T = p + "P:";
        var W = p + "S:";
        p += "B:";
        var K = new Set,
            re = new Set,
            pe = new Set,
            he = new Map,
            Ee = new Set,
            Ge = new Set,
            we = new Set,
            ze = {
                images: new Map,
                stylesheets: new Map,
                scripts: new Map,
                moduleScripts: new Map
            };
        if (D !== void 0)
            for (var mt = 0; mt < D.length; mt++) {
                var Qe = D[mt],
                    tt, $e = void 0,
                    ft = void 0,
                    Je = {
                        rel: "preload",
                        as: "script",
                        fetchPriority: "low",
                        nonce: void 0
                    };
                typeof Qe == "string" ? Je.href = tt = Qe : (Je.href = tt = Qe.src, Je.integrity = ft = typeof Qe.integrity == "string" ? Qe.integrity : void 0, Je.crossOrigin = $e = typeof Qe == "string" || Qe.crossOrigin == null ? void 0 : Qe.crossOrigin === "use-credentials" ? "use-credentials" : ""), Qe = u;
                var Rt = tt;
                Qe.scriptResources[Rt] = null, Qe.moduleScriptResources[Rt] = null, Qe = [], ya(Qe, Je), Ee.add(Qe), C.push('<script src="', ee(tt)), typeof ft == "string" && C.push('" integrity="', ee(ft)), typeof $e == "string" && C.push('" crossorigin="', ee($e)), C.push('" async=""><\/script>')
            }
        if (H !== void 0)
            for (D = 0; D < H.length; D++) Je = H[D], $e = tt = void 0, ft = {
                rel: "modulepreload",
                fetchPriority: "low",
                nonce: void 0
            }, typeof Je == "string" ? ft.href = mt = Je : (ft.href = mt = Je.src, ft.integrity = $e = typeof Je.integrity == "string" ? Je.integrity : void 0, ft.crossOrigin = tt = typeof Je == "string" || Je.crossOrigin == null ? void 0 : Je.crossOrigin === "use-credentials" ? "use-credentials" : ""), Je = u, Qe = mt, Je.scriptResources[Qe] = null, Je.moduleScriptResources[Qe] = null, Je = [], ya(Je, ft), Ee.add(Je), C.push('<script type="module" src="', ee(mt)), typeof $e == "string" && C.push('" integrity="', ee($e)), typeof tt == "string" && C.push('" crossorigin="', ee(tt)), C.push('" async=""><\/script>');
        return {
            placeholderPrefix: T,
            segmentPrefix: W,
            boundaryPrefix: p,
            startInlineScript: "<script>",
            htmlChunks: null,
            headChunks: null,
            externalRuntimeScript: null,
            bootstrapChunks: C,
            importMapChunks: [],
            onHeaders: void 0,
            headers: null,
            resets: {
                font: {},
                dns: {},
                connect: {
                    default: {},
                    anonymous: {},
                    credentials: {}
                },
                image: {},
                style: {}
            },
            charsetChunks: [],
            viewportChunks: [],
            hoistableChunks: [],
            preconnects: K,
            fontPreloads: re,
            highImagePreloads: pe,
            styles: he,
            bootstrapScripts: Ee,
            scripts: Ge,
            bulkPreloads: we,
            preloads: ze,
            stylesToHoist: !1,
            generateStaticMarkup: g
        }
    }

    function Kn(u, g, p, C) {
        return p.generateStaticMarkup ? (u.push(ee(g)), !1) : (g === "" ? u = C : (C && u.push("<!-- -->"), u.push(ee(g)), u = !0), u)
    }

    function fs(u, g, p, C) {
        g.generateStaticMarkup || p && C && u.push("<!-- -->")
    }
    var ea = Function.prototype.bind,
        fo = Symbol.for("react.client.reference");

    function hs(u) {
        if (u == null) return null;
        if (typeof u == "function") return u.$$typeof === fo ? null : u.displayName || u.name || null;
        if (typeof u == "string") return u;
        switch (u) {
            case m:
                return "Fragment";
            case h:
                return "Portal";
            case y:
                return "Profiler";
            case x:
                return "StrictMode";
            case _:
                return "Suspense";
            case O:
                return "SuspenseList"
        }
        if (typeof u == "object") switch (u.$$typeof) {
            case R:
                return (u.displayName || "Context") + ".Provider";
            case S:
                return (u._context.displayName || "Context") + ".Consumer";
            case A:
                var g = u.render;
                return u = u.displayName, u || (u = g.displayName || g.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
            case k:
                return g = u.displayName || null, g !== null ? g : hs(u.type) || "Memo";
            case U:
                g = u._payload, u = u._init;
                try {
                    return hs(u(g))
                } catch {}
        }
        return null
    }
    var Ai = {},
        Sa = null;

    function $a(u, g) {
        if (u !== g) {
            u.context._currentValue2 = u.parentValue, u = u.parent;
            var p = g.parent;
            if (u === null) {
                if (p !== null) throw Error(l(401))
            } else {
                if (p === null) throw Error(l(401));
                $a(u, p)
            }
            g.context._currentValue2 = g.value
        }
    }

    function en(u) {
        u.context._currentValue2 = u.parentValue, u = u.parent, u !== null && en(u)
    }

    function gc(u) {
        var g = u.parent;
        g !== null && gc(g), u.context._currentValue2 = u.value
    }

    function ho(u, g) {
        if (u.context._currentValue2 = u.parentValue, u = u.parent, u === null) throw Error(l(402));
        u.depth === g.depth ? $a(u, g) : ho(u, g)
    }

    function gr(u, g) {
        var p = g.parent;
        if (p === null) throw Error(l(402));
        u.depth === p.depth ? $a(u, p) : gr(u, p), g.context._currentValue2 = g.value
    }

    function gl(u) {
        var g = Sa;
        g !== u && (g === null ? gc(u) : u === null ? en(g) : g.depth === u.depth ? $a(g, u) : g.depth > u.depth ? ho(g, u) : gr(g, u), Sa = u)
    }
    var mr = {
            isMounted: function() {
                return !1
            },
            enqueueSetState: function(u, g) {
                u = u._reactInternals, u.queue !== null && u.queue.push(g)
            },
            enqueueReplaceState: function(u, g) {
                u = u._reactInternals, u.replace = !0, u.queue = [g]
            },
            enqueueForceUpdate: function() {}
        },
        su = {
            id: 1,
            overflow: ""
        };

    function Xa(u, g, p) {
        var C = u.id;
        u = u.overflow;
        var T = 32 - Ri(C) - 1;
        C &= ~(1 << T), p += 1;
        var D = 32 - Ri(g) + T;
        if (30 < D) {
            var H = T - T % 5;
            return D = (C & (1 << H) - 1).toString(32), C >>= H, T -= H, {
                id: 1 << 32 - Ri(g) + T | p << T | C,
                overflow: D + u
            }
        }
        return {
            id: 1 << D | p << T | C,
            overflow: u
        }
    }
    var Ri = Math.clz32 ? Math.clz32 : ri,
        go = Math.log,
        mc = Math.LN2;

    function ri(u) {
        return u >>>= 0, u === 0 ? 32 : 31 - (go(u) / mc | 0) | 0
    }
    var Ll = Error(l(460));

    function vr() {}

    function Oi(u, g, p) {
        switch (p = u[p], p === void 0 ? u.push(g) : p !== g && (g.then(vr, vr), g = p), g.status) {
            case "fulfilled":
                return g.value;
            case "rejected":
                throw g.reason;
            default:
                switch (typeof g.status == "string" ? g.then(vr, vr) : (u = g, u.status = "pending", u.then(function(C) {
                        if (g.status === "pending") {
                            var T = g;
                            T.status = "fulfilled", T.value = C
                        }
                    }, function(C) {
                        if (g.status === "pending") {
                            var T = g;
                            T.status = "rejected", T.reason = C
                        }
                    })), g.status) {
                    case "fulfilled":
                        return g.value;
                    case "rejected":
                        throw g.reason
                }
                throw gs = g, Ll
        }
    }
    var gs = null;

    function br() {
        if (gs === null) throw Error(l(459));
        var u = gs;
        return gs = null, u
    }

    function mo(u, g) {
        return u === g && (u !== 0 || 1 / u === 1 / g) || u !== u && g !== g
    }
    var vc = typeof Object.is == "function" ? Object.is : mo,
        ml = null,
        bc = null,
        _i = null,
        xr = null,
        ji = null,
        rt = null,
        Jn = !1,
        pr = !1,
        si = 0,
        ki = 0,
        vl = -1,
        zi = 0,
        qn = null,
        _a = null,
        Di = 0;

    function yn() {
        if (ml === null) throw Error(l(321));
        return ml
    }

    function xc() {
        if (0 < Di) throw Error(l(312));
        return {
            memoizedState: null,
            queue: null,
            next: null
        }
    }

    function Li() {
        return rt === null ? ji === null ? (Jn = !1, ji = rt = xc()) : (Jn = !0, rt = ji) : rt.next === null ? (Jn = !1, rt = rt.next = xc()) : (Jn = !0, rt = rt.next), rt
    }

    function bl() {
        var u = qn;
        return qn = null, u
    }

    function Ui() {
        xr = _i = bc = ml = null, pr = !1, ji = null, Di = 0, rt = _a = null
    }

    function ja(u, g) {
        return typeof g == "function" ? g(u) : g
    }

    function Ul(u, g, p) {
        if (ml = yn(), rt = Li(), Jn) {
            var C = rt.queue;
            if (g = C.dispatch, _a !== null && (p = _a.get(C), p !== void 0)) {
                _a.delete(C), C = rt.memoizedState;
                do C = u(C, p.action), p = p.next; while (p !== null);
                return rt.memoizedState = C, [C, g]
            }
            return [rt.memoizedState, g]
        }
        return u = u === ja ? typeof g == "function" ? g() : g : p !== void 0 ? p(g) : g, rt.memoizedState = u, u = rt.queue = {
            last: null,
            dispatch: null
        }, u = u.dispatch = Sr.bind(null, ml, u), [rt.memoizedState, u]
    }

    function yr(u, g) {
        if (ml = yn(), rt = Li(), g = g === void 0 ? null : g, rt !== null) {
            var p = rt.memoizedState;
            if (p !== null && g !== null) {
                var C = p[1];
                e: if (C === null) C = !1;
                    else {
                        for (var T = 0; T < C.length && T < g.length; T++)
                            if (!vc(g[T], C[T])) {
                                C = !1;
                                break e
                            } C = !0
                    }
                if (C) return p[0]
            }
        }
        return u = u(), rt.memoizedState = [u, g], u
    }

    function Sr(u, g, p) {
        if (25 <= Di) throw Error(l(301));
        if (u === ml)
            if (pr = !0, u = {
                    action: p,
                    next: null
                }, _a === null && (_a = new Map), p = _a.get(g), p === void 0) _a.set(g, u);
            else {
                for (g = p; g.next !== null;) g = g.next;
                g.next = u
            }
    }

    function cu() {
        throw Error(l(394))
    }

    function pc() {
        throw Error(l(479))
    }

    function ms(u, g, p) {
        yn();
        var C = ki++,
            T = _i;
        if (typeof u.$$FORM_ACTION == "function") {
            var D = null,
                H = xr;
            T = T.formState;
            var W = u.$$IS_SIGNATURE_EQUAL;
            if (T !== null && typeof W == "function") {
                var K = T[1];
                W.call(u, T[2], T[3]) && (D = p !== void 0 ? "p" + p : "k" + vt(JSON.stringify([H, null, C]), 0), K === D && (vl = C, g = T[0]))
            }
            var re = u.bind(null, g);
            return u = function(he) {
                re(he)
            }, typeof re.$$FORM_ACTION == "function" && (u.$$FORM_ACTION = function(he) {
                he = re.$$FORM_ACTION(he), p !== void 0 && (p += "", he.action = p);
                var Ee = he.data;
                return Ee && (D === null && (D = p !== void 0 ? "p" + p : "k" + vt(JSON.stringify([H, null, C]), 0)), Ee.append("$ACTION_KEY", D)), he
            }), [g, u, !1]
        }
        var pe = u.bind(null, g);
        return [g, function(he) {
            pe(he)
        }, !1]
    }

    function Bi(u) {
        var g = zi;
        return zi += 1, qn === null && (qn = []), Oi(qn, u, g)
    }

    function vs() {
        throw Error(l(393))
    }

    function Hi() {}
    var bs = {
        readContext: function(u) {
            return u._currentValue2
        },
        use: function(u) {
            if (u !== null && typeof u == "object") {
                if (typeof u.then == "function") return Bi(u);
                if (u.$$typeof === R) return u._currentValue2
            }
            throw Error(l(438, String(u)))
        },
        useContext: function(u) {
            return yn(), u._currentValue2
        },
        useMemo: yr,
        useReducer: Ul,
        useRef: function(u) {
            ml = yn(), rt = Li();
            var g = rt.memoizedState;
            return g === null ? (u = {
                current: u
            }, rt.memoizedState = u) : g
        },
        useState: function(u) {
            return Ul(ja, u)
        },
        useInsertionEffect: Hi,
        useLayoutEffect: Hi,
        useCallback: function(u, g) {
            return yr(function() {
                return u
            }, g)
        },
        useImperativeHandle: Hi,
        useEffect: Hi,
        useDebugValue: Hi,
        useDeferredValue: function(u, g) {
            return yn(), g !== void 0 ? g : u
        },
        useTransition: function() {
            return yn(), [!1, cu]
        },
        useId: function() {
            var u = bc.treeContext,
                g = u.overflow;
            u = u.id, u = (u & ~(1 << 32 - Ri(u) - 1)).toString(32) + g;
            var p = xs;
            if (p === null) throw Error(l(404));
            return g = si++, u = ":" + p.idPrefix + "R" + u, 0 < g && (u += "H" + g.toString(32)), u + ":"
        },
        useSyncExternalStore: function(u, g, p) {
            if (p === void 0) throw Error(l(407));
            return p()
        },
        useCacheRefresh: function() {
            return vs
        },
        useMemoCache: function(u) {
            for (var g = Array(u), p = 0; p < u; p++) g[p] = fe;
            return g
        },
        useHostTransitionStatus: function() {
            return yn(), Re
        },
        useOptimistic: function(u) {
            return yn(), [u, pc]
        }
    };
    bs.useFormState = ms, bs.useActionState = ms;
    var xs = null,
        ou = {
            getCacheForType: function() {
                throw Error(l(248))
            }
        },
        wr, vo;

    function Fi(u) {
        if (wr === void 0) try {
            throw Error()
        } catch (p) {
            var g = p.stack.trim().match(/\n( *(at )?)/);
            wr = g && g[1] || "", vo = -1 < p.stack.indexOf(`
    at`) ? " (<anonymous>)" : -1 < p.stack.indexOf("@") ? "@unknown:0:0" : ""
        }
        return `
` + wr + u + vo
    }
    var yc = !1;

    function Bl(u, g) {
        if (!u || yc) return "";
        yc = !0;
        var p = Error.prepareStackTrace;
        Error.prepareStackTrace = void 0;
        try {
            var C = {
                DetermineComponentFrameRoot: function() {
                    try {
                        if (g) {
                            var he = function() {
                                throw Error()
                            };
                            if (Object.defineProperty(he.prototype, "props", {
                                    set: function() {
                                        throw Error()
                                    }
                                }), typeof Reflect == "object" && Reflect.construct) {
                                try {
                                    Reflect.construct(he, [])
                                } catch (Ge) {
                                    var Ee = Ge
                                }
                                Reflect.construct(u, [], he)
                            } else {
                                try {
                                    he.call()
                                } catch (Ge) {
                                    Ee = Ge
                                }
                                u.call(he.prototype)
                            }
                        } else {
                            try {
                                throw Error()
                            } catch (Ge) {
                                Ee = Ge
                            }(he = u()) && typeof he.catch == "function" && he.catch(function() {})
                        }
                    } catch (Ge) {
                        if (Ge && Ee && typeof Ge.stack == "string") return [Ge.stack, Ee.stack]
                    }
                    return [null, null]
                }
            };
            C.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
            var T = Object.getOwnPropertyDescriptor(C.DetermineComponentFrameRoot, "name");
            T && T.configurable && Object.defineProperty(C.DetermineComponentFrameRoot, "name", {
                value: "DetermineComponentFrameRoot"
            });
            var D = C.DetermineComponentFrameRoot(),
                H = D[0],
                W = D[1];
            if (H && W) {
                var K = H.split(`
`),
                    re = W.split(`
`);
                for (T = C = 0; C < K.length && !K[C].includes("DetermineComponentFrameRoot");) C++;
                for (; T < re.length && !re[T].includes("DetermineComponentFrameRoot");) T++;
                if (C === K.length || T === re.length)
                    for (C = K.length - 1, T = re.length - 1; 1 <= C && 0 <= T && K[C] !== re[T];) T--;
                for (; 1 <= C && 0 <= T; C--, T--)
                    if (K[C] !== re[T]) {
                        if (C !== 1 || T !== 1)
                            do
                                if (C--, T--, 0 > T || K[C] !== re[T]) {
                                    var pe = `
` + K[C].replace(" at new ", " at ");
                                    return u.displayName && pe.includes("<anonymous>") && (pe = pe.replace("<anonymous>", u.displayName)), pe
                                } while (1 <= C && 0 <= T);
                        break
                    }
            }
        } finally {
            yc = !1, Error.prepareStackTrace = p
        }
        return (p = u ? u.displayName || u.name : "") ? Fi(p) : ""
    }

    function bo(u) {
        if (typeof u == "string") return Fi(u);
        if (typeof u == "function") return u.prototype && u.prototype.isReactComponent ? (u = Bl(u, !0), u) : Bl(u, !1);
        if (typeof u == "object" && u !== null) {
            switch (u.$$typeof) {
                case A:
                    return Bl(u.render, !1);
                case k:
                    return Bl(u.type, !1);
                case U:
                    var g = u,
                        p = g._payload;
                    g = g._init;
                    try {
                        u = g(p)
                    } catch {
                        return Fi("Lazy")
                    }
                    return bo(u)
            }
            if (typeof u.name == "string") return p = u.env, Fi(u.name + (p ? " [" + p + "]" : ""))
        }
        switch (u) {
            case O:
                return Fi("SuspenseList");
            case _:
                return Fi("Suspense")
        }
        return ""
    }

    function xo(u) {
        if (typeof u == "object" && u !== null && typeof u.environmentName == "string") {
            var g = u.environmentName;
            u = [u].slice(0), typeof u[0] == "string" ? u.splice(0, 1, "[%s] " + u[0], " " + g + " ") : u.splice(0, 0, "[%s] ", " " + g + " "), u.unshift(console), g = ea.apply(console.error, u), g()
        } else console.error(u);
        return null
    }

    function Gi() {}

    function uu(u, g, p, C, T, D, H, W, K, re, pe) {
        var he = new Set;
        this.destination = null, this.flushScheduled = !1, this.resumableState = u, this.renderState = g, this.rootFormatContext = p, this.progressiveChunkSize = C === void 0 ? 12800 : C, this.status = 10, this.fatalError = null, this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0, this.completedRootSegment = null, this.abortableTasks = he, this.pingedTasks = [], this.clientRenderedBoundaries = [], this.completedBoundaries = [], this.partialBoundaries = [], this.trackedPostpones = null, this.onError = T === void 0 ? xo : T, this.onPostpone = re === void 0 ? Gi : re, this.onAllReady = D === void 0 ? Gi : D, this.onShellReady = H === void 0 ? Gi : H, this.onShellError = W === void 0 ? Gi : W, this.onFatalError = K === void 0 ? Gi : K, this.formState = pe === void 0 ? null : pe
    }

    function ps(u, g, p, C, T, D, H, W, K, re, pe, he) {
        return g = new uu(g, p, C, T, D, H, W, K, re, pe, he), p = tn(g, 0, null, C, !1, !1), p.parentFlushed = !0, u = Nr(g, null, u, -1, null, p, null, g.abortableTasks, null, C, null, su, null, !1), Cr(u), g.pingedTasks.push(u), g
    }
    var ta = null;

    function ys(u, g) {
        u.pingedTasks.push(g), u.pingedTasks.length === 1 && (u.flushScheduled = u.destination !== null, $n(u))
    }

    function Sc(u, g) {
        return {
            status: 0,
            rootSegmentID: -1,
            parentFlushed: !1,
            pendingTasks: 0,
            completedSegments: [],
            byteSize: 0,
            fallbackAbortableTasks: g,
            errorDigest: null,
            contentState: dt(),
            fallbackState: dt(),
            trackedContentKeyPath: null,
            trackedFallbackNode: null
        }
    }

    function Nr(u, g, p, C, T, D, H, W, K, re, pe, he, Ee, Ge) {
        u.allPendingTasks++, T === null ? u.pendingRootTasks++ : T.pendingTasks++;
        var we = {
            replay: null,
            node: p,
            childIndex: C,
            ping: function() {
                return ys(u, we)
            },
            blockedBoundary: T,
            blockedSegment: D,
            hoistableState: H,
            abortSet: W,
            keyPath: K,
            formatContext: re,
            context: pe,
            treeContext: he,
            componentStack: Ee,
            thenableState: g,
            isFallback: Ge
        };
        return W.add(we), we
    }

    function Sn(u, g, p, C, T, D, H, W, K, re, pe, he, Ee, Ge) {
        u.allPendingTasks++, D === null ? u.pendingRootTasks++ : D.pendingTasks++, p.pendingTasks++;
        var we = {
            replay: p,
            node: C,
            childIndex: T,
            ping: function() {
                return ys(u, we)
            },
            blockedBoundary: D,
            blockedSegment: null,
            hoistableState: H,
            abortSet: W,
            keyPath: K,
            formatContext: re,
            context: pe,
            treeContext: he,
            componentStack: Ee,
            thenableState: g,
            isFallback: Ge
        };
        return W.add(we), we
    }

    function tn(u, g, p, C, T, D) {
        return {
            status: 0,
            id: -1,
            index: g,
            parentFlushed: !1,
            chunks: [],
            children: [],
            parentFormatContext: C,
            boundary: p,
            lastPushedText: T,
            textEmbedded: D
        }
    }

    function Cr(u) {
        var g = u.node;
        if (typeof g == "object" && g !== null) switch (g.$$typeof) {
            case c:
                u.componentStack = {
                    parent: u.componentStack,
                    type: g.type
                }
        }
    }

    function ci(u) {
        var g = {};
        return u && Object.defineProperty(g, "componentStack", {
            configurable: !0,
            enumerable: !0,
            get: function() {
                try {
                    var p = "",
                        C = u;
                    do p += bo(C.type), C = C.parent; while (C);
                    var T = p
                } catch (D) {
                    T = `
Error generating stack: ` + D.message + `
` + D.stack
                }
                return Object.defineProperty(g, "componentStack", {
                    value: T
                }), T
            }
        }), g
    }

    function an(u, g, p) {
        if (u = u.onError, g = u(g, p), g == null || typeof g == "string") return g
    }

    function Yi(u, g) {
        var p = u.onShellError,
            C = u.onFatalError;
        p(g), C(g), u.destination !== null ? (u.status = 14, u.destination.destroy(g)) : (u.status = 13, u.fatalError = g)
    }

    function po(u, g, p, C, T, D) {
        var H = g.thenableState;
        for (g.thenableState = null, ml = {}, bc = g, _i = u, xr = p, ki = si = 0, vl = -1, zi = 0, qn = H, u = C(T, D); pr;) pr = !1, ki = si = 0, vl = -1, zi = 0, Di += 1, rt = null, u = C(T, D);
        return Ui(), u
    }

    function yo(u, g, p, C, T, D, H) {
        var W = !1;
        if (D !== 0 && u.formState !== null) {
            var K = g.blockedSegment;
            if (K !== null) {
                W = !0, K = K.chunks;
                for (var re = 0; re < D; re++) re === H ? K.push("<!--F!-->") : K.push("<!--F-->")
            }
        }
        D = g.keyPath, g.keyPath = p, T ? (p = g.treeContext, g.treeContext = Xa(p, 1, 0), Nn(u, g, C, -1), g.treeContext = p) : W ? Nn(u, g, C, -1) : wn(u, g, C, -1), g.keyPath = D
    }

    function Ss(u, g, p, C, T, D) {
        if (typeof C == "function")
            if (C.prototype && C.prototype.isReactComponent) {
                var H = T;
                if ("ref" in T) {
                    H = {};
                    for (var W in T) W !== "ref" && (H[W] = T[W])
                }
                var K = C.defaultProps;
                if (K) {
                    H === T && (H = De({}, H, T));
                    for (var re in K) H[re] === void 0 && (H[re] = K[re])
                }
                T = H, H = Ai, K = C.contextType, typeof K == "object" && K !== null && (H = K._currentValue2), H = new C(T, H);
                var pe = H.state !== void 0 ? H.state : null;
                if (H.updater = mr, H.props = T, H.state = pe, K = {
                        queue: [],
                        replace: !1
                    }, H._reactInternals = K, D = C.contextType, H.context = typeof D == "object" && D !== null ? D._currentValue2 : Ai, D = C.getDerivedStateFromProps, typeof D == "function" && (D = D(T, pe), pe = D == null ? pe : De({}, pe, D), H.state = pe), typeof C.getDerivedStateFromProps != "function" && typeof H.getSnapshotBeforeUpdate != "function" && (typeof H.UNSAFE_componentWillMount == "function" || typeof H.componentWillMount == "function"))
                    if (C = H.state, typeof H.componentWillMount == "function" && H.componentWillMount(), typeof H.UNSAFE_componentWillMount == "function" && H.UNSAFE_componentWillMount(), C !== H.state && mr.enqueueReplaceState(H, H.state, null), K.queue !== null && 0 < K.queue.length)
                        if (C = K.queue, D = K.replace, K.queue = null, K.replace = !1, D && C.length === 1) H.state = C[0];
                        else {
                            for (K = D ? C[0] : H.state, pe = !0, D = D ? 1 : 0; D < C.length; D++) re = C[D], re = typeof re == "function" ? re.call(H, K, T, void 0) : re, re != null && (pe ? (pe = !1, K = De({}, K, re)) : De(K, re));
                            H.state = K
                        }
                else K.queue = null;
                if (C = H.render(), u.status === 12) throw null;
                T = g.keyPath, g.keyPath = p, wn(u, g, C, -1), g.keyPath = T
            } else {
                if (C = po(u, g, p, C, T, void 0), u.status === 12) throw null;
                yo(u, g, p, C, si !== 0, ki, vl)
            }
        else if (typeof C == "string")
            if (H = g.blockedSegment, H === null) H = T.children, K = g.formatContext, pe = g.keyPath, g.formatContext = An(K, C, T), g.keyPath = p, Nn(u, g, H, -1), g.formatContext = K, g.keyPath = pe;
            else {
                pe = so(H.chunks, C, T, u.resumableState, u.renderState, g.hoistableState, g.formatContext, H.lastPushedText, g.isFallback), H.lastPushedText = !1, K = g.formatContext, D = g.keyPath, g.formatContext = An(K, C, T), g.keyPath = p, Nn(u, g, pe, -1), g.formatContext = K, g.keyPath = D;
                e: {
                    switch (g = H.chunks, u = u.resumableState, C) {
                        case "title":
                        case "style":
                        case "script":
                        case "area":
                        case "base":
                        case "br":
                        case "col":
                        case "embed":
                        case "hr":
                        case "img":
                        case "input":
                        case "keygen":
                        case "link":
                        case "meta":
                        case "param":
                        case "source":
                        case "track":
                        case "wbr":
                            break e;
                        case "body":
                            if (1 >= K.insertionMode) {
                                u.hasBody = !0;
                                break e
                            }
                            break;
                        case "html":
                            if (K.insertionMode === 0) {
                                u.hasHtml = !0;
                                break e
                            }
                    }
                    g.push(Wt(C))
                }
                H.lastPushedText = !1
            }
        else {
            switch (C) {
                case ve:
                case te:
                case x:
                case y:
                case m:
                    C = g.keyPath, g.keyPath = p, wn(u, g, T.children, -1), g.keyPath = C;
                    return;
                case $:
                    T.mode !== "hidden" && (C = g.keyPath, g.keyPath = p, wn(u, g, T.children, -1), g.keyPath = C);
                    return;
                case O:
                    C = g.keyPath, g.keyPath = p, wn(u, g, T.children, -1), g.keyPath = C;
                    return;
                case V:
                    throw Error(l(343));
                case _:
                    e: if (g.replay !== null) {
                        C = g.keyPath, g.keyPath = p, p = T.children;
                        try {
                            Nn(u, g, p, -1)
                        } finally {
                            g.keyPath = C
                        }
                    } else {
                        C = g.keyPath;
                        var he = g.blockedBoundary,
                            Ee = g.hoistableState;
                        D = g.blockedSegment, re = T.fallback, T = T.children;
                        var Ge = new Set;
                        W = Sc(u, Ge), u.trackedPostpones !== null && (W.trackedContentKeyPath = p);
                        var we = tn(u, D.chunks.length, W, g.formatContext, !1, !1);
                        D.children.push(we), D.lastPushedText = !1;
                        var ze = tn(u, 0, null, g.formatContext, !1, !1);
                        if (ze.parentFlushed = !0, u.trackedPostpones !== null) {
                            H = [p[0], "Suspense Fallback", p[2]], K = [H[1], H[2],
                                [], null
                            ], u.trackedPostpones.workingMap.set(H, K), W.trackedFallbackNode = K, g.blockedSegment = we, g.keyPath = H, we.status = 6;
                            try {
                                Nn(u, g, re, -1), fs(we.chunks, u.renderState, we.lastPushedText, we.textEmbedded), we.status = 1
                            } catch (mt) {
                                throw we.status = u.status === 12 ? 3 : 4, mt
                            } finally {
                                g.blockedSegment = D, g.keyPath = C
                            }
                            g = Nr(u, null, T, -1, W, ze, W.contentState, g.abortSet, p, g.formatContext, g.context, g.treeContext, g.componentStack, g.isFallback), Cr(g), u.pingedTasks.push(g)
                        } else {
                            g.blockedBoundary = W, g.hoistableState = W.contentState, g.blockedSegment = ze, g.keyPath = p, ze.status = 6;
                            try {
                                if (Nn(u, g, T, -1), fs(ze.chunks, u.renderState, ze.lastPushedText, ze.textEmbedded), ze.status = 1, Vi(W, ze), W.pendingTasks === 0 && W.status === 0) {
                                    W.status = 1;
                                    break e
                                }
                            } catch (mt) {
                                W.status = 4, u.status === 12 ? (ze.status = 3, H = u.fatalError) : (ze.status = 4, H = mt), K = ci(g.componentStack), pe = an(u, H, K), W.errorDigest = pe, Er(u, W)
                            } finally {
                                g.blockedBoundary = he, g.hoistableState = Ee, g.blockedSegment = D, g.keyPath = C
                            }
                            g = Nr(u, null, re, -1, he, we, W.fallbackState, Ge, [p[0], "Suspense Fallback", p[2]], g.formatContext, g.context, g.treeContext, g.componentStack, !0), Cr(g), u.pingedTasks.push(g)
                        }
                    }
                    return
            }
            if (typeof C == "object" && C !== null) switch (C.$$typeof) {
                case A:
                    if ("ref" in T)
                        for (we in H = {}, T) we !== "ref" && (H[we] = T[we]);
                    else H = T;
                    C = po(u, g, p, C.render, H, D), yo(u, g, p, C, si !== 0, ki, vl);
                    return;
                case k:
                    Ss(u, g, p, C.type, T, D);
                    return;
                case w:
                case R:
                    if (K = T.children, H = g.keyPath, T = T.value, pe = C._currentValue2, C._currentValue2 = T, D = Sa, Sa = C = {
                            parent: D,
                            depth: D === null ? 0 : D.depth + 1,
                            context: C,
                            parentValue: pe,
                            value: T
                        }, g.context = C, g.keyPath = p, wn(u, g, K, -1), u = Sa, u === null) throw Error(l(403));
                    u.context._currentValue2 = u.parentValue, u = Sa = u.parent, g.context = u, g.keyPath = H;
                    return;
                case S:
                    T = T.children, C = T(C._context._currentValue2), T = g.keyPath, g.keyPath = p, wn(u, g, C, -1), g.keyPath = T;
                    return;
                case U:
                    if (H = C._init, C = H(C._payload), u.status === 12) throw null;
                    Ss(u, g, p, C, T, D);
                    return
            }
            throw Error(l(130, C == null ? C : typeof C, ""))
        }
    }

    function wc(u, g, p, C, T) {
        var D = g.replay,
            H = g.blockedBoundary,
            W = tn(u, 0, null, g.formatContext, !1, !1);
        W.id = p, W.parentFlushed = !0;
        try {
            g.replay = null, g.blockedSegment = W, Nn(u, g, C, T), W.status = 1, H === null ? u.completedRootSegment = W : (Vi(H, W), H.parentFlushed && u.partialBoundaries.push(H))
        } finally {
            g.replay = D, g.blockedSegment = null
        }
    }

    function wn(u, g, p, C) {
        g.replay !== null && typeof g.replay.slots == "number" ? wc(u, g, g.replay.slots, p, C) : (g.node = p, g.childIndex = C, p = g.componentStack, Cr(g), Xi(u, g), g.componentStack = p)
    }

    function Xi(u, g) {
        var p = g.node,
            C = g.childIndex;
        if (p !== null) {
            if (typeof p == "object") {
                switch (p.$$typeof) {
                    case c:
                        var T = p.type,
                            D = p.key,
                            H = p.props;
                        p = H.ref;
                        var W = p !== void 0 ? p : null,
                            K = hs(T),
                            re = D ?? (C === -1 ? 0 : C);
                        if (D = [g.keyPath, K, re], g.replay !== null) e: {
                            var pe = g.replay;
                            for (C = pe.nodes, p = 0; p < C.length; p++) {
                                var he = C[p];
                                if (re === he[1]) {
                                    if (he.length === 4) {
                                        if (K !== null && K !== he[0]) throw Error(l(490, he[0], K));
                                        var Ee = he[2];
                                        K = he[3], re = g.node, g.replay = {
                                            nodes: Ee,
                                            slots: K,
                                            pendingTasks: 1
                                        };
                                        try {
                                            if (Ss(u, g, D, T, H, W), g.replay.pendingTasks === 1 && 0 < g.replay.nodes.length) throw Error(l(488));
                                            g.replay.pendingTasks--
                                        } catch (ft) {
                                            if (typeof ft == "object" && ft !== null && (ft === Ll || typeof ft.then == "function")) throw g.node === re && (g.replay = pe), ft;
                                            g.replay.pendingTasks--, H = ci(g.componentStack), D = g.blockedBoundary, T = ft, H = an(u, T, H), Pi(u, D, Ee, K, T, H)
                                        }
                                        g.replay = pe
                                    } else {
                                        if (T !== _) throw Error(l(490, "Suspense", hs(T) || "Unknown"));
                                        t: {
                                            pe = void 0,
                                            T = he[5],
                                            W = he[2],
                                            K = he[3],
                                            re = he[4] === null ? [] : he[4][2],
                                            he = he[4] === null ? null : he[4][3];
                                            var Ge = g.keyPath,
                                                we = g.replay,
                                                ze = g.blockedBoundary,
                                                mt = g.hoistableState,
                                                Qe = H.children;H = H.fallback;
                                            var tt = new Set,
                                                $e = Sc(u, tt);$e.parentFlushed = !0,
                                            $e.rootSegmentID = T,
                                            g.blockedBoundary = $e,
                                            g.hoistableState = $e.contentState,
                                            g.keyPath = D,
                                            g.replay = {
                                                nodes: W,
                                                slots: K,
                                                pendingTasks: 1
                                            };
                                            try {
                                                if (Nn(u, g, Qe, -1), g.replay.pendingTasks === 1 && 0 < g.replay.nodes.length) throw Error(l(488));
                                                if (g.replay.pendingTasks--, $e.pendingTasks === 0 && $e.status === 0) {
                                                    $e.status = 1, u.completedBoundaries.push($e);
                                                    break t
                                                }
                                            } catch (ft) {
                                                $e.status = 4, Ee = ci(g.componentStack), pe = an(u, ft, Ee), $e.errorDigest = pe, g.replay.pendingTasks--, u.clientRenderedBoundaries.push($e)
                                            } finally {
                                                g.blockedBoundary = ze, g.hoistableState = mt, g.replay = we, g.keyPath = Ge
                                            }
                                            g = Sn(u, null, {
                                                nodes: re,
                                                slots: he,
                                                pendingTasks: 0
                                            }, H, -1, ze, $e.fallbackState, tt, [D[0], "Suspense Fallback", D[2]], g.formatContext, g.context, g.treeContext, g.componentStack, !0),
                                            Cr(g),
                                            u.pingedTasks.push(g)
                                        }
                                    }
                                    C.splice(p, 1);
                                    break e
                                }
                            }
                        }
                        else Ss(u, g, D, T, H, W);
                        return;
                    case h:
                        throw Error(l(257));
                    case U:
                        if (Ee = p._init, p = Ee(p._payload), u.status === 12) throw null;
                        wn(u, g, p, C);
                        return
                }
                if (be(p)) {
                    Hl(u, g, p, C);
                    return
                }
                if (p === null || typeof p != "object" ? Ee = null : (Ee = Se && p[Se] || p["@@iterator"], Ee = typeof Ee == "function" ? Ee : null), Ee && (Ee = Ee.call(p))) {
                    if (p = Ee.next(), !p.done) {
                        H = [];
                        do H.push(p.value), p = Ee.next(); while (!p.done);
                        Hl(u, g, H, C)
                    }
                    return
                }
                if (typeof p.then == "function") return g.thenableState = null, wn(u, g, Bi(p), C);
                if (p.$$typeof === R) return wn(u, g, p._currentValue2, C);
                throw C = Object.prototype.toString.call(p), Error(l(31, C === "[object Object]" ? "object with keys {" + Object.keys(p).join(", ") + "}" : C))
            }
            typeof p == "string" ? (C = g.blockedSegment, C !== null && (C.lastPushedText = Kn(C.chunks, p, u.renderState, C.lastPushedText))) : (typeof p == "number" || typeof p == "bigint") && (C = g.blockedSegment, C !== null && (C.lastPushedText = Kn(C.chunks, "" + p, u.renderState, C.lastPushedText)))
        }
    }

    function Hl(u, g, p, C) {
        var T = g.keyPath;
        if (C !== -1 && (g.keyPath = [g.keyPath, "Fragment", C], g.replay !== null)) {
            for (var D = g.replay, H = D.nodes, W = 0; W < H.length; W++) {
                var K = H[W];
                if (K[1] === C) {
                    C = K[2], K = K[3], g.replay = {
                        nodes: C,
                        slots: K,
                        pendingTasks: 1
                    };
                    try {
                        if (Hl(u, g, p, -1), g.replay.pendingTasks === 1 && 0 < g.replay.nodes.length) throw Error(l(488));
                        g.replay.pendingTasks--
                    } catch (he) {
                        if (typeof he == "object" && he !== null && (he === Ll || typeof he.then == "function")) throw he;
                        g.replay.pendingTasks--, p = ci(g.componentStack);
                        var re = g.blockedBoundary,
                            pe = he;
                        p = an(u, pe, p), Pi(u, re, C, K, pe, p)
                    }
                    g.replay = D, H.splice(W, 1);
                    break
                }
            }
            g.keyPath = T;
            return
        }
        if (D = g.treeContext, H = p.length, g.replay !== null && (W = g.replay.slots, W !== null && typeof W == "object")) {
            for (C = 0; C < H; C++) K = p[C], g.treeContext = Xa(D, H, C), re = W[C], typeof re == "number" ? (wc(u, g, re, K, C), delete W[C]) : Nn(u, g, K, C);
            g.treeContext = D, g.keyPath = T;
            return
        }
        for (W = 0; W < H; W++) C = p[W], g.treeContext = Xa(D, H, W), Nn(u, g, C, W);
        g.treeContext = D, g.keyPath = T
    }

    function Er(u, g) {
        u = u.trackedPostpones, u !== null && (g = g.trackedContentKeyPath, g !== null && (g = u.workingMap.get(g), g !== void 0 && (g.length = 4, g[2] = [], g[3] = null)))
    }

    function Tr(u, g, p) {
        return Sn(u, p, g.replay, g.node, g.childIndex, g.blockedBoundary, g.hoistableState, g.abortSet, g.keyPath, g.formatContext, g.context, g.treeContext, g.componentStack, g.isFallback)
    }

    function Nc(u, g, p) {
        var C = g.blockedSegment,
            T = tn(u, C.chunks.length, null, g.formatContext, C.lastPushedText, !0);
        return C.children.push(T), C.lastPushedText = !1, Nr(u, p, g.node, g.childIndex, g.blockedBoundary, T, g.hoistableState, g.abortSet, g.keyPath, g.formatContext, g.context, g.treeContext, g.componentStack, g.isFallback)
    }

    function Nn(u, g, p, C) {
        var T = g.formatContext,
            D = g.context,
            H = g.keyPath,
            W = g.treeContext,
            K = g.componentStack,
            re = g.blockedSegment;
        if (re === null) try {
            return wn(u, g, p, C)
        } catch (Ee) {
            if (Ui(), p = Ee === Ll ? br() : Ee, typeof p == "object" && p !== null) {
                if (typeof p.then == "function") {
                    C = bl(), u = Tr(u, g, C).ping, p.then(u, u), g.formatContext = T, g.context = D, g.keyPath = H, g.treeContext = W, g.componentStack = K, gl(D);
                    return
                }
                if (p.message === "Maximum call stack size exceeded") {
                    p = bl(), p = Tr(u, g, p), u.pingedTasks.push(p), g.formatContext = T, g.context = D, g.keyPath = H, g.treeContext = W, g.componentStack = K, gl(D);
                    return
                }
            }
        } else {
            var pe = re.children.length,
                he = re.chunks.length;
            try {
                return wn(u, g, p, C)
            } catch (Ee) {
                if (Ui(), re.children.length = pe, re.chunks.length = he, p = Ee === Ll ? br() : Ee, typeof p == "object" && p !== null) {
                    if (typeof p.then == "function") {
                        C = bl(), u = Nc(u, g, C).ping, p.then(u, u), g.formatContext = T, g.context = D, g.keyPath = H, g.treeContext = W, g.componentStack = K, gl(D);
                        return
                    }
                    if (p.message === "Maximum call stack size exceeded") {
                        p = bl(), p = Nc(u, g, p), u.pingedTasks.push(p), g.formatContext = T, g.context = D, g.keyPath = H, g.treeContext = W, g.componentStack = K, gl(D);
                        return
                    }
                }
            }
        }
        throw g.formatContext = T, g.context = D, g.keyPath = H, g.treeContext = W, gl(D), p
    }

    function Cc(u) {
        var g = u.blockedBoundary;
        u = u.blockedSegment, u !== null && (u.status = 3, Ns(this, g, u))
    }

    function Pi(u, g, p, C, T, D) {
        for (var H = 0; H < p.length; H++) {
            var W = p[H];
            if (W.length === 4) Pi(u, g, W[2], W[3], T, D);
            else {
                W = W[5];
                var K = u,
                    re = D,
                    pe = Sc(K, new Set);
                pe.parentFlushed = !0, pe.rootSegmentID = W, pe.status = 4, pe.errorDigest = re, pe.parentFlushed && K.clientRenderedBoundaries.push(pe)
            }
        }
        if (p.length = 0, C !== null) {
            if (g === null) throw Error(l(487));
            if (g.status !== 4 && (g.status = 4, g.errorDigest = D, g.parentFlushed && u.clientRenderedBoundaries.push(g)), typeof C == "object")
                for (var he in C) delete C[he]
        }
    }

    function oi(u, g, p) {
        var C = u.blockedBoundary,
            T = u.blockedSegment;
        if (T !== null) {
            if (T.status === 6) return;
            T.status = 3
        }
        if (T = ci(u.componentStack), C === null) {
            if (g.status !== 13 && g.status !== 14) {
                if (C = u.replay, C === null) {
                    an(g, p, T), Yi(g, p);
                    return
                }
                C.pendingTasks--, C.pendingTasks === 0 && 0 < C.nodes.length && (u = an(g, p, T), Pi(g, null, C.nodes, C.slots, p, u)), g.pendingRootTasks--, g.pendingRootTasks === 0 && Tc(g)
            }
        } else C.pendingTasks--, C.status !== 4 && (C.status = 4, u = an(g, p, T), C.status = 4, C.errorDigest = u, Er(g, C), C.parentFlushed && g.clientRenderedBoundaries.push(C)), C.fallbackAbortableTasks.forEach(function(D) {
            return oi(D, g, p)
        }), C.fallbackAbortableTasks.clear();
        g.allPendingTasks--, g.allPendingTasks === 0 && ws(g)
    }

    function Ec(u, g) {
        try {
            var p = u.renderState,
                C = p.onHeaders;
            if (C) {
                var T = p.headers;
                if (T) {
                    p.headers = null;
                    var D = T.preconnects;
                    if (T.fontPreloads && (D && (D += ", "), D += T.fontPreloads), T.highImagePreloads && (D && (D += ", "), D += T.highImagePreloads), !g) {
                        var H = p.styles.values(),
                            W = H.next();
                        e: for (; 0 < T.remainingCapacity && !W.done; W = H.next())
                            for (var K = W.value.sheets.values(), re = K.next(); 0 < T.remainingCapacity && !re.done; re = K.next()) {
                                var pe = re.value,
                                    he = pe.props,
                                    Ee = he.href,
                                    Ge = pe.props,
                                    we = St(Ge.href, "style", {
                                        crossOrigin: Ge.crossOrigin,
                                        integrity: Ge.integrity,
                                        nonce: Ge.nonce,
                                        type: Ge.type,
                                        fetchPriority: Ge.fetchPriority,
                                        referrerPolicy: Ge.referrerPolicy,
                                        media: Ge.media
                                    });
                                if (0 <= (T.remainingCapacity -= we.length + 2)) p.resets.style[Ee] = Ra, D && (D += ", "), D += we, p.resets.style[Ee] = typeof he.crossOrigin == "string" || typeof he.integrity == "string" ? [he.crossOrigin, he.integrity] : Ra;
                                else break e
                            }
                    }
                    C(D ? {
                        Link: D
                    } : {})
                }
            }
        } catch (ze) {
            an(u, ze, {})
        }
    }

    function Tc(u) {
        u.trackedPostpones === null && Ec(u, !0), u.onShellError = Gi, u = u.onShellReady, u()
    }

    function ws(u) {
        Ec(u, u.trackedPostpones === null ? !0 : u.completedRootSegment === null || u.completedRootSegment.status !== 5), u = u.onAllReady, u()
    }

    function Vi(u, g) {
        if (g.chunks.length === 0 && g.children.length === 1 && g.children[0].boundary === null && g.children[0].id === -1) {
            var p = g.children[0];
            p.id = g.id, p.parentFlushed = !0, p.status === 1 && Vi(u, p)
        } else u.completedSegments.push(g)
    }

    function Ns(u, g, p) {
        if (g === null) {
            if (p !== null && p.parentFlushed) {
                if (u.completedRootSegment !== null) throw Error(l(389));
                u.completedRootSegment = p
            }
            u.pendingRootTasks--, u.pendingRootTasks === 0 && Tc(u)
        } else g.pendingTasks--, g.status !== 4 && (g.pendingTasks === 0 ? (g.status === 0 && (g.status = 1), p !== null && p.parentFlushed && p.status === 1 && Vi(g, p), g.parentFlushed && u.completedBoundaries.push(g), g.status === 1 && (g.fallbackAbortableTasks.forEach(Cc, u), g.fallbackAbortableTasks.clear())) : p !== null && p.parentFlushed && p.status === 1 && (Vi(g, p), g.completedSegments.length === 1 && g.parentFlushed && u.partialBoundaries.push(g)));
        u.allPendingTasks--, u.allPendingTasks === 0 && ws(u)
    }

    function $n(u) {
        if (u.status !== 14 && u.status !== 13) {
            var g = Sa,
                p = Aa.H;
            Aa.H = bs;
            var C = Aa.A;
            Aa.A = ou;
            var T = ta;
            ta = u;
            var D = xs;
            xs = u.resumableState;
            try {
                var H = u.pingedTasks,
                    W;
                for (W = 0; W < H.length; W++) {
                    var K = H[W],
                        re = u,
                        pe = K.blockedSegment;
                    if (pe === null) {
                        var he = re;
                        if (K.replay.pendingTasks !== 0) {
                            gl(K.context);
                            try {
                                if (typeof K.replay.slots == "number" ? wc(he, K, K.replay.slots, K.node, K.childIndex) : Xi(he, K), K.replay.pendingTasks === 1 && 0 < K.replay.nodes.length) throw Error(l(488));
                                K.replay.pendingTasks--, K.abortSet.delete(K), Ns(he, K.blockedBoundary, null)
                            } catch (Ye) {
                                Ui();
                                var Ee = Ye === Ll ? br() : Ye;
                                if (typeof Ee == "object" && Ee !== null && typeof Ee.then == "function") {
                                    var Ge = K.ping;
                                    Ee.then(Ge, Ge), K.thenableState = bl()
                                } else {
                                    K.replay.pendingTasks--, K.abortSet.delete(K);
                                    var we = ci(K.componentStack);
                                    re = void 0;
                                    var ze = he,
                                        mt = K.blockedBoundary,
                                        Qe = he.status === 12 ? he.fatalError : Ee,
                                        tt = K.replay.nodes,
                                        $e = K.replay.slots;
                                    re = an(ze, Qe, we), Pi(ze, mt, tt, $e, Qe, re), he.pendingRootTasks--, he.pendingRootTasks === 0 && Tc(he), he.allPendingTasks--, he.allPendingTasks === 0 && ws(he)
                                }
                            } finally {}
                        }
                    } else if (he = void 0, ze = pe, ze.status === 0) {
                        ze.status = 6, gl(K.context);
                        var ft = ze.children.length,
                            Je = ze.chunks.length;
                        try {
                            Xi(re, K), fs(ze.chunks, re.renderState, ze.lastPushedText, ze.textEmbedded), K.abortSet.delete(K), ze.status = 1, Ns(re, K.blockedBoundary, ze)
                        } catch (Ye) {
                            Ui(), ze.children.length = ft, ze.chunks.length = Je;
                            var Rt = Ye === Ll ? br() : re.status === 12 ? re.fatalError : Ye;
                            if (typeof Rt == "object" && Rt !== null && typeof Rt.then == "function") {
                                ze.status = 0, K.thenableState = bl();
                                var nn = K.ping;
                                Rt.then(nn, nn)
                            } else {
                                var ln = ci(K.componentStack);
                                K.abortSet.delete(K), ze.status = 4;
                                var wt = K.blockedBoundary;
                                he = an(re, Rt, ln), wt === null ? Yi(re, Rt) : (wt.pendingTasks--, wt.status !== 4 && (wt.status = 4, wt.errorDigest = he, Er(re, wt), wt.parentFlushed && re.clientRenderedBoundaries.push(wt))), re.allPendingTasks--, re.allPendingTasks === 0 && ws(re)
                            }
                        } finally {}
                    }
                }
                H.splice(0, W), u.destination !== null && ui(u, u.destination)
            } catch (Ye) {
                an(u, Ye, {}), Yi(u, Ye)
            } finally {
                xs = D, Aa.H = p, Aa.A = C, p === bs && gl(g), ta = T
            }
        }
    }

    function jn(u, g, p, C) {
        switch (p.parentFlushed = !0, p.status) {
            case 0:
                p.id = u.nextSegmentId++;
            case 5:
                return C = p.id, p.lastPushedText = !1, p.textEmbedded = !1, u = u.renderState, g.push('<template id="'), g.push(u.placeholderPrefix), u = C.toString(16), g.push(u), g.push('"></template>');
            case 1:
                p.status = 2;
                var T = !0,
                    D = p.chunks,
                    H = 0;
                p = p.children;
                for (var W = 0; W < p.length; W++) {
                    for (T = p[W]; H < T.index; H++) g.push(D[H]);
                    T = Zi(u, g, T, C)
                }
                for (; H < D.length - 1; H++) g.push(D[H]);
                return H < D.length && (T = g.push(D[H])), T;
            default:
                throw Error(l(390))
        }
    }

    function Zi(u, g, p, C) {
        var T = p.boundary;
        if (T === null) return jn(u, g, p, C);
        if (T.parentFlushed = !0, T.status === 4) return u.renderState.generateStaticMarkup || (T = T.errorDigest, g.push("<!--$!-->"), g.push("<template"), T && (g.push(' data-dgst="'), T = ee(T), g.push(T), g.push('"')), g.push("></template>")), jn(u, g, p, C), u = u.renderState.generateStaticMarkup ? !0 : g.push("<!--/$-->"), u;
        if (T.status !== 1) return T.status === 0 && (T.rootSegmentID = u.nextSegmentId++), 0 < T.completedSegments.length && u.partialBoundaries.push(T), Zn(g, u.renderState, T.rootSegmentID), C && (T = T.fallbackState, T.styles.forEach(Mi, C), T.stylesheets.forEach(pn, C)), jn(u, g, p, C), g.push("<!--/$-->");
        if (T.byteSize > u.progressiveChunkSize) return T.rootSegmentID = u.nextSegmentId++, u.completedBoundaries.push(T), Zn(g, u.renderState, T.rootSegmentID), jn(u, g, p, C), g.push("<!--/$-->");
        if (C && (p = T.contentState, p.styles.forEach(Mi, C), p.stylesheets.forEach(pn, C)), u.renderState.generateStaticMarkup || g.push("<!--$-->"), p = T.completedSegments, p.length !== 1) throw Error(l(391));
        return Zi(u, g, p[0], C), u = u.renderState.generateStaticMarkup ? !0 : g.push("<!--/$-->"), u
    }

    function Fl(u, g, p, C) {
        return co(g, u.renderState, p.parentFormatContext, p.id), Zi(u, g, p, C), dr(g, p.parentFormatContext)
    }

    function Mr(u, g, p) {
        for (var C = p.completedSegments, T = 0; T < C.length; T++) Ar(u, g, p, C[T]);
        C.length = 0, kl(g, p.contentState, u.renderState), C = u.resumableState, u = u.renderState, T = p.rootSegmentID, p = p.contentState;
        var D = u.stylesToHoist;
        return u.stylesToHoist = !1, g.push(u.startInlineScript), D ? C.instructions & 2 ? C.instructions & 8 ? g.push('$RR("') : (C.instructions |= 8, g.push(`$RM=new Map;
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`)) : (C.instructions |= 10, g.push(`$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`)) : C.instructions & 2 ? g.push('$RC("') : (C.instructions |= 2, g.push('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("')), C = T.toString(16), g.push(u.boundaryPrefix), g.push(C), g.push('","'), g.push(u.segmentPrefix), g.push(C), D ? (g.push('",'), fl(g, p)) : g.push('"'), p = g.push(")<\/script>"), oc(g, u) && p
    }

    function Ar(u, g, p, C) {
        if (C.status === 2) return !0;
        var T = p.contentState,
            D = C.id;
        if (D === -1) {
            if ((C.id = p.rootSegmentID) === -1) throw Error(l(392));
            return Fl(u, g, C, T)
        }
        return D === p.rootSegmentID ? Fl(u, g, C, T) : (Fl(u, g, C, T), p = u.resumableState, u = u.renderState, g.push(u.startInlineScript), p.instructions & 1 ? g.push('$RS("') : (p.instructions |= 1, g.push('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')), g.push(u.segmentPrefix), D = D.toString(16), g.push(D), g.push('","'), g.push(u.placeholderPrefix), g.push(D), g = g.push('")<\/script>'), g)
    }

    function ui(u, g) {
        try {
            if (!(0 < u.pendingRootTasks)) {
                var p, C = u.completedRootSegment;
                if (C !== null) {
                    if (C.status === 5) return;
                    var T = u.renderState,
                        D = T.htmlChunks,
                        H = T.headChunks,
                        W;
                    if (D) {
                        for (W = 0; W < D.length; W++) g.push(D[W]);
                        if (H)
                            for (W = 0; W < H.length; W++) g.push(H[W]);
                        else {
                            var K = it("head");
                            g.push(K), g.push(">")
                        }
                    } else if (H)
                        for (W = 0; W < H.length; W++) g.push(H[W]);
                    var re = T.charsetChunks;
                    for (W = 0; W < re.length; W++) g.push(re[W]);
                    re.length = 0, T.preconnects.forEach(bt, g), T.preconnects.clear();
                    var pe = T.viewportChunks;
                    for (W = 0; W < pe.length; W++) g.push(pe[W]);
                    pe.length = 0, T.fontPreloads.forEach(bt, g), T.fontPreloads.clear(), T.highImagePreloads.forEach(bt, g), T.highImagePreloads.clear(), T.styles.forEach(ds, g);
                    var he = T.importMapChunks;
                    for (W = 0; W < he.length; W++) g.push(he[W]);
                    he.length = 0, T.bootstrapScripts.forEach(bt, g), T.scripts.forEach(bt, g), T.scripts.clear(), T.bulkPreloads.forEach(bt, g), T.bulkPreloads.clear();
                    var Ee = T.hoistableChunks;
                    for (W = 0; W < Ee.length; W++) g.push(Ee[W]);
                    if (Ee.length = 0, D && H === null) {
                        var Ge = Wt("head");
                        g.push(Ge)
                    }
                    Zi(u, g, C, null), u.completedRootSegment = null, oc(g, u.renderState)
                }
                var we = u.renderState;
                C = 0;
                var ze = we.viewportChunks;
                for (C = 0; C < ze.length; C++) g.push(ze[C]);
                ze.length = 0, we.preconnects.forEach(bt, g), we.preconnects.clear(), we.fontPreloads.forEach(bt, g), we.fontPreloads.clear(), we.highImagePreloads.forEach(bt, g), we.highImagePreloads.clear(), we.styles.forEach(oo, g), we.scripts.forEach(bt, g), we.scripts.clear(), we.bulkPreloads.forEach(bt, g), we.bulkPreloads.clear();
                var mt = we.hoistableChunks;
                for (C = 0; C < mt.length; C++) g.push(mt[C]);
                mt.length = 0;
                var Qe = u.clientRenderedBoundaries;
                for (p = 0; p < Qe.length; p++) {
                    var tt = Qe[p];
                    we = g;
                    var $e = u.resumableState,
                        ft = u.renderState,
                        Je = tt.rootSegmentID,
                        Rt = tt.errorDigest;
                    we.push(ft.startInlineScript), $e.instructions & 4 ? we.push('$RX("') : ($e.instructions |= 4, we.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("')), we.push(ft.boundaryPrefix);
                    var nn = Je.toString(16);
                    if (we.push(nn), we.push('"'), Rt) {
                        we.push(",");
                        var ln = jl(Rt || "");
                        we.push(ln)
                    }
                    var wt = we.push(")<\/script>");
                    if (!wt) {
                        u.destination = null, p++, Qe.splice(0, p);
                        return
                    }
                }
                Qe.splice(0, p);
                var Ye = u.completedBoundaries;
                for (p = 0; p < Ye.length; p++)
                    if (!Mr(u, g, Ye[p])) {
                        u.destination = null, p++, Ye.splice(0, p);
                        return
                    } Ye.splice(0, p);
                var Yt = u.partialBoundaries;
                for (p = 0; p < Yt.length; p++) {
                    var tl = Yt[p];
                    e: {
                        Qe = u,
                        tt = g;
                        var wa = tl.completedSegments;
                        for (wt = 0; wt < wa.length; wt++)
                            if (!Ar(Qe, tt, tl, wa[wt])) {
                                wt++, wa.splice(0, wt);
                                var rn = !1;
                                break e
                            } wa.splice(0, wt),
                        rn = kl(tt, tl.contentState, Qe.renderState)
                    }
                    if (!rn) {
                        u.destination = null, p++, Yt.splice(0, p);
                        return
                    }
                }
                Yt.splice(0, p);
                var ka = u.completedBoundaries;
                for (p = 0; p < ka.length; p++)
                    if (!Mr(u, g, ka[p])) {
                        u.destination = null, p++, ka.splice(0, p);
                        return
                    } ka.splice(0, p)
            }
        } finally {
            u.allPendingTasks === 0 && u.pingedTasks.length === 0 && u.clientRenderedBoundaries.length === 0 && u.completedBoundaries.length === 0 && (u.flushScheduled = !1, p = u.resumableState, p.hasBody && (Yt = Wt("body"), g.push(Yt)), p.hasHtml && (p = Wt("html"), g.push(p)), u.status = 14, g.push(null), u.destination = null)
        }
    }

    function el(u) {
        if (u.flushScheduled === !1 && u.pingedTasks.length === 0 && u.destination !== null) {
            u.flushScheduled = !0;
            var g = u.destination;
            g ? ui(u, g) : u.flushScheduled = !1
        }
    }

    function So(u, g) {
        if (u.status === 13) u.status = 14, g.destroy(u.fatalError);
        else if (u.status !== 14 && u.destination === null) {
            u.destination = g;
            try {
                ui(u, g)
            } catch (p) {
                an(u, p, {}), Yi(u, p)
            }
        }
    }

    function wo(u, g) {
        (u.status === 11 || u.status === 10) && (u.status = 12);
        try {
            var p = u.abortableTasks;
            if (0 < p.size) {
                var C = g === void 0 ? Error(l(432)) : typeof g == "object" && g !== null && typeof g.then == "function" ? Error(l(530)) : g;
                u.fatalError = C, p.forEach(function(T) {
                    return oi(T, u, C)
                }), p.clear()
            }
            u.destination !== null && ui(u, u.destination)
        } catch (T) {
            an(u, T, {}), Yi(u, T)
        }
    }

    function Rr() {}

    function Mc(u, g, p, C) {
        var T = !1,
            D = null,
            H = "",
            W = !1;
        if (g = oa(g ? g.identifierPrefix : void 0), u = ps(u, g, Dl(g, p), We(0, null, 0), 1 / 0, Rr, void 0, function() {
                W = !0
            }, void 0, void 0, void 0), u.flushScheduled = u.destination !== null, $n(u), u.status === 10 && (u.status = 11), u.trackedPostpones === null && Ec(u, u.pendingRootTasks === 0), wo(u, C), So(u, {
                push: function(K) {
                    return K !== null && (H += K), !0
                },
                destroy: function(K) {
                    T = !0, D = K
                }
            }), T && D !== C) throw D;
        if (!W) throw Error(l(426));
        return H
    }
    return ld.renderToStaticMarkup = function(u, g) {
        return Mc(u, g, !0, 'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')
    }, ld.renderToString = function(u, g) {
        return Mc(u, g, !1, 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')
    }, ld.version = "19.0.0", ld
}
var id = {};
/**
 * @license React
 * react-dom-server.browser.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var _v;

function V2() {
    if (_v) return id;
    _v = 1;
    var n = og(),
        s = ug();

    function l(o) {
        var f = "https://react.dev/errors/" + o;
        if (1 < arguments.length) {
            f += "?args[]=" + encodeURIComponent(arguments[1]);
            for (var b = 2; b < arguments.length; b++) f += "&args[]=" + encodeURIComponent(arguments[b])
        }
        return "Minified React error #" + o + "; visit " + f + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
    }
    var c = Symbol.for("react.transitional.element"),
        h = Symbol.for("react.portal"),
        m = Symbol.for("react.fragment"),
        x = Symbol.for("react.strict_mode"),
        y = Symbol.for("react.profiler"),
        w = Symbol.for("react.provider"),
        S = Symbol.for("react.consumer"),
        R = Symbol.for("react.context"),
        A = Symbol.for("react.forward_ref"),
        _ = Symbol.for("react.suspense"),
        O = Symbol.for("react.suspense_list"),
        k = Symbol.for("react.memo"),
        U = Symbol.for("react.lazy"),
        V = Symbol.for("react.scope"),
        te = Symbol.for("react.debug_trace_mode"),
        $ = Symbol.for("react.offscreen"),
        ve = Symbol.for("react.legacy_hidden"),
        fe = Symbol.for("react.memo_cache_sentinel"),
        Se = Symbol.iterator,
        be = Array.isArray;

    function vt(o, f) {
        var b = o.length & 3,
            N = o.length - b,
            M = f;
        for (f = 0; f < N;) {
            var z = o.charCodeAt(f) & 255 | (o.charCodeAt(++f) & 255) << 8 | (o.charCodeAt(++f) & 255) << 16 | (o.charCodeAt(++f) & 255) << 24;
            ++f, z = 3432918353 * (z & 65535) + ((3432918353 * (z >>> 16) & 65535) << 16) & 4294967295, z = z << 15 | z >>> 17, z = 461845907 * (z & 65535) + ((461845907 * (z >>> 16) & 65535) << 16) & 4294967295, M ^= z, M = M << 13 | M >>> 19, M = 5 * (M & 65535) + ((5 * (M >>> 16) & 65535) << 16) & 4294967295, M = (M & 65535) + 27492 + (((M >>> 16) + 58964 & 65535) << 16)
        }
        switch (z = 0, b) {
            case 3:
                z ^= (o.charCodeAt(f + 2) & 255) << 16;
            case 2:
                z ^= (o.charCodeAt(f + 1) & 255) << 8;
            case 1:
                z ^= o.charCodeAt(f) & 255, z = 3432918353 * (z & 65535) + ((3432918353 * (z >>> 16) & 65535) << 16) & 4294967295, z = z << 15 | z >>> 17, M ^= 461845907 * (z & 65535) + ((461845907 * (z >>> 16) & 65535) << 16) & 4294967295
        }
        return M ^= o.length, M ^= M >>> 16, M = 2246822507 * (M & 65535) + ((2246822507 * (M >>> 16) & 65535) << 16) & 4294967295, M ^= M >>> 13, M = 3266489909 * (M & 65535) + ((3266489909 * (M >>> 16) & 65535) << 16) & 4294967295, (M ^ M >>> 16) >>> 0
    }
    var De = new MessageChannel,
        me = [];
    De.port1.onmessage = function() {
        var o = me.shift();
        o && o()
    };

    function Le(o) {
        me.push(o), De.port2.postMessage(null)
    }

    function Mt(o) {
        setTimeout(function() {
            throw o
        })
    }
    var zt = Promise,
        _e = typeof queueMicrotask == "function" ? queueMicrotask : function(o) {
            zt.resolve(null).then(o).catch(Mt)
        },
        Be = null,
        Ae = 0;

    function F(o, f) {
        if (f.byteLength !== 0)
            if (2048 < f.byteLength) 0 < Ae && (o.enqueue(new Uint8Array(Be.buffer, 0, Ae)), Be = new Uint8Array(2048), Ae = 0), o.enqueue(f);
            else {
                var b = Be.length - Ae;
                b < f.byteLength && (b === 0 ? o.enqueue(Be) : (Be.set(f.subarray(0, b), Ae), o.enqueue(Be), f = f.subarray(b)), Be = new Uint8Array(2048), Ae = 0), Be.set(f, Ae), Ae += f.byteLength
            }
    }

    function ee(o, f) {
        return F(o, f), !0
    }

    function Me(o) {
        Be && 0 < Ae && (o.enqueue(new Uint8Array(Be.buffer, 0, Ae)), Be = null, Ae = 0)
    }
    var ct = new TextEncoder;

    function oe(o) {
        return ct.encode(o)
    }

    function ae(o) {
        return ct.encode(o)
    }

    function Aa(o, f) {
        typeof o.error == "function" ? o.error(f) : o.close()
    }
    var xt = Object.assign,
        Re = Object.prototype.hasOwnProperty,
        Qt = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),
        Ra = {},
        _l = {};

    function qa(o) {
        return Re.call(_l, o) ? !0 : Re.call(Ra, o) ? !1 : Qt.test(o) ? _l[o] = !0 : (Ra[o] = !0, !1)
    }
    var oa = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),
        We = new Map([
            ["acceptCharset", "accept-charset"],
            ["htmlFor", "for"],
            ["httpEquiv", "http-equiv"],
            ["crossOrigin", "crossorigin"],
            ["accentHeight", "accent-height"],
            ["alignmentBaseline", "alignment-baseline"],
            ["arabicForm", "arabic-form"],
            ["baselineShift", "baseline-shift"],
            ["capHeight", "cap-height"],
            ["clipPath", "clip-path"],
            ["clipRule", "clip-rule"],
            ["colorInterpolation", "color-interpolation"],
            ["colorInterpolationFilters", "color-interpolation-filters"],
            ["colorProfile", "color-profile"],
            ["colorRendering", "color-rendering"],
            ["dominantBaseline", "dominant-baseline"],
            ["enableBackground", "enable-background"],
            ["fillOpacity", "fill-opacity"],
            ["fillRule", "fill-rule"],
            ["floodColor", "flood-color"],
            ["floodOpacity", "flood-opacity"],
            ["fontFamily", "font-family"],
            ["fontSize", "font-size"],
            ["fontSizeAdjust", "font-size-adjust"],
            ["fontStretch", "font-stretch"],
            ["fontStyle", "font-style"],
            ["fontVariant", "font-variant"],
            ["fontWeight", "font-weight"],
            ["glyphName", "glyph-name"],
            ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
            ["glyphOrientationVertical", "glyph-orientation-vertical"],
            ["horizAdvX", "horiz-adv-x"],
            ["horizOriginX", "horiz-origin-x"],
            ["imageRendering", "image-rendering"],
            ["letterSpacing", "letter-spacing"],
            ["lightingColor", "lighting-color"],
            ["markerEnd", "marker-end"],
            ["markerMid", "marker-mid"],
            ["markerStart", "marker-start"],
            ["overlinePosition", "overline-position"],
            ["overlineThickness", "overline-thickness"],
            ["paintOrder", "paint-order"],
            ["panose-1", "panose-1"],
            ["pointerEvents", "pointer-events"],
            ["renderingIntent", "rendering-intent"],
            ["shapeRendering", "shape-rendering"],
            ["stopColor", "stop-color"],
            ["stopOpacity", "stop-opacity"],
            ["strikethroughPosition", "strikethrough-position"],
            ["strikethroughThickness", "strikethrough-thickness"],
            ["strokeDasharray", "stroke-dasharray"],
            ["strokeDashoffset", "stroke-dashoffset"],
            ["strokeLinecap", "stroke-linecap"],
            ["strokeLinejoin", "stroke-linejoin"],
            ["strokeMiterlimit", "stroke-miterlimit"],
            ["strokeOpacity", "stroke-opacity"],
            ["strokeWidth", "stroke-width"],
            ["textAnchor", "text-anchor"],
            ["textDecoration", "text-decoration"],
            ["textRendering", "text-rendering"],
            ["transformOrigin", "transform-origin"],
            ["underlinePosition", "underline-position"],
            ["underlineThickness", "underline-thickness"],
            ["unicodeBidi", "unicode-bidi"],
            ["unicodeRange", "unicode-range"],
            ["unitsPerEm", "units-per-em"],
            ["vAlphabetic", "v-alphabetic"],
            ["vHanging", "v-hanging"],
            ["vIdeographic", "v-ideographic"],
            ["vMathematical", "v-mathematical"],
            ["vectorEffect", "vector-effect"],
            ["vertAdvY", "vert-adv-y"],
            ["vertOriginX", "vert-origin-x"],
            ["vertOriginY", "vert-origin-y"],
            ["wordSpacing", "word-spacing"],
            ["writingMode", "writing-mode"],
            ["xmlnsXlink", "xmlns:xlink"],
            ["xHeight", "x-height"]
        ]),
        An = /["'&<>]/;

    function He(o) {
        if (typeof o == "boolean" || typeof o == "number" || typeof o == "bigint") return "" + o;
        o = "" + o;
        var f = An.exec(o);
        if (f) {
            var b = "",
                N, M = 0;
            for (N = f.index; N < o.length; N++) {
                switch (o.charCodeAt(N)) {
                    case 34:
                        f = "&quot;";
                        break;
                    case 38:
                        f = "&amp;";
                        break;
                    case 39:
                        f = "&#x27;";
                        break;
                    case 60:
                        f = "&lt;";
                        break;
                    case 62:
                        f = "&gt;";
                        break;
                    default:
                        continue
                }
                M !== N && (b += o.slice(M, N)), M = N + 1, b += f
            }
            o = M !== N ? b + o.slice(M, N) : b
        }
        return o
    }
    var dl = /([A-Z])/g,
        Ni = /^ms-/,
        $t = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;

    function Rn(o) {
        return $t.test("" + o) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : o
    }
    var Pn = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
        Ci = s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
        rs = {
            pending: !1,
            data: null,
            method: null,
            action: null
        },
        bn = Ci.d;
    Ci.d = {
        f: bn.f,
        r: bn.r,
        D: Pi,
        C: oi,
        L: Ec,
        m: Tc,
        X: Vi,
        S: ws,
        M: Ns
    };
    var Xe = [];
    ae('"></template>');
    var xn = ae("<script>"),
        ro = ae("<\/script>"),
        On = ae('<script src="'),
        ya = ae('<script type="module" src="'),
        ss = ae('" nonce="'),
        cs = ae('" integrity="'),
        Vn = ae('" crossorigin="'),
        cc = ae('" async=""><\/script>'),
        li = /(<\/|<)(s)(cript)/gi;

    function ii(o, f, b, N) {
        return "" + f + (b === "s" ? "\\u0073" : "\\u0053") + N
    }
    var iu = ae('<script type="importmap">'),
        Ei = ae("<\/script>");

    function it(o, f, b, N, M, z) {
        var B = f === void 0 ? xn : ae('<script nonce="' + He(f) + '">'),
            X = o.idPrefix;
        b = [];
        var G = o.bootstrapScriptContent,
            q = o.bootstrapScripts,
            ce = o.bootstrapModules;
        if (G !== void 0 && b.push(B, oe(("" + G).replace(li, ii)), ro), G = [], N !== void 0 && (G.push(iu), G.push(oe(("" + JSON.stringify(N)).replace(li, ii))), G.push(Ei)), N = M ? {
                preconnects: "",
                fontPreloads: "",
                highImagePreloads: "",
                remainingCapacity: 2 + (typeof z == "number" ? z : 2e3)
            } : null, M = {
                placeholderPrefix: ae(X + "P:"),
                segmentPrefix: ae(X + "S:"),
                boundaryPrefix: ae(X + "B:"),
                startInlineScript: B,
                htmlChunks: null,
                headChunks: null,
                externalRuntimeScript: null,
                bootstrapChunks: b,
                importMapChunks: G,
                onHeaders: M,
                headers: N,
                resets: {
                    font: {},
                    dns: {},
                    connect: {
                        default: {},
                        anonymous: {},
                        credentials: {}
                    },
                    image: {},
                    style: {}
                },
                charsetChunks: [],
                viewportChunks: [],
                hoistableChunks: [],
                preconnects: new Set,
                fontPreloads: new Set,
                highImagePreloads: new Set,
                styles: new Map,
                bootstrapScripts: new Set,
                scripts: new Set,
                bulkPreloads: new Set,
                preloads: {
                    images: new Map,
                    stylesheets: new Map,
                    scripts: new Map,
                    moduleScripts: new Map
                },
                nonce: f,
                hoistableState: null,
                stylesToHoist: !1
            }, q !== void 0)
            for (N = 0; N < q.length; N++) {
                var le = q[N];
                X = B = void 0, G = {
                    rel: "preload",
                    as: "script",
                    fetchPriority: "low",
                    nonce: f
                }, typeof le == "string" ? G.href = z = le : (G.href = z = le.src, G.integrity = X = typeof le.integrity == "string" ? le.integrity : void 0, G.crossOrigin = B = typeof le == "string" || le.crossOrigin == null ? void 0 : le.crossOrigin === "use-credentials" ? "use-credentials" : ""), le = o;
                var de = z;
                le.scriptResources[de] = null, le.moduleScriptResources[de] = null, le = [], St(le, G), M.bootstrapScripts.add(le), b.push(On, oe(He(z))), f && b.push(ss, oe(He(f))), typeof X == "string" && b.push(cs, oe(He(X))), typeof B == "string" && b.push(Vn, oe(He(B))), b.push(cc)
            }
        if (ce !== void 0)
            for (q = 0; q < ce.length; q++) G = ce[q], B = z = void 0, X = {
                rel: "modulepreload",
                fetchPriority: "low",
                nonce: f
            }, typeof G == "string" ? X.href = N = G : (X.href = N = G.src, X.integrity = B = typeof G.integrity == "string" ? G.integrity : void 0, X.crossOrigin = z = typeof G == "string" || G.crossOrigin == null ? void 0 : G.crossOrigin === "use-credentials" ? "use-credentials" : ""), G = o, le = N, G.scriptResources[le] = null, G.moduleScriptResources[le] = null, G = [], St(G, X), M.bootstrapScripts.add(G), b.push(ya, oe(He(N))), f && b.push(ss, oe(He(f))), typeof B == "string" && b.push(cs, oe(He(B))), typeof z == "string" && b.push(Vn, oe(He(z))), b.push(cc);
        return M
    }

    function so(o, f, b, N, M) {
        return {
            idPrefix: o === void 0 ? "" : o,
            nextFormID: 0,
            streamingFormat: 0,
            bootstrapScriptContent: b,
            bootstrapScripts: N,
            bootstrapModules: M,
            instructions: 0,
            hasBody: !1,
            hasHtml: !1,
            unknownResources: {},
            dnsResources: {},
            connectResources: {
                default: {},
                anonymous: {},
                credentials: {}
            },
            imageResources: {},
            styleResources: {},
            scriptResources: {},
            moduleUnknownResources: {},
            moduleScriptResources: {}
        }
    }

    function At(o, f, b) {
        return {
            insertionMode: o,
            selectedValue: f,
            tagScope: b
        }
    }

    function Wt(o) {
        return At(o === "http://www.w3.org/2000/svg" ? 3 : o === "http://www.w3.org/1998/Math/MathML" ? 4 : 0, null, 0)
    }

    function oc(o, f, b) {
        switch (f) {
            case "noscript":
                return At(2, null, o.tagScope | 1);
            case "select":
                return At(2, b.value != null ? b.value : b.defaultValue, o.tagScope);
            case "svg":
                return At(3, null, o.tagScope);
            case "picture":
                return At(2, null, o.tagScope | 2);
            case "math":
                return At(4, null, o.tagScope);
            case "foreignObject":
                return At(2, null, o.tagScope);
            case "table":
                return At(5, null, o.tagScope);
            case "thead":
            case "tbody":
            case "tfoot":
                return At(6, null, o.tagScope);
            case "colgroup":
                return At(8, null, o.tagScope);
            case "tr":
                return At(7, null, o.tagScope)
        }
        return 5 <= o.insertionMode ? At(2, null, o.tagScope) : o.insertionMode === 0 ? At(f === "html" ? 1 : 2, null, o.tagScope) : o.insertionMode === 1 ? At(2, null, o.tagScope) : o
    }
    var Zn = ae("<!-- -->");

    function co(o, f, b, N) {
        return f === "" ? N : (N && o.push(Zn), o.push(oe(He(f))), !0)
    }
    var dr = new Map,
        os = ae(' style="'),
        jl = ae(":"),
        us = ae(";");

    function Qn(o, f) {
        if (typeof f != "object") throw Error(l(62));
        var b = !0,
            N;
        for (N in f)
            if (Re.call(f, N)) {
                var M = f[N];
                if (M != null && typeof M != "boolean" && M !== "") {
                    if (N.indexOf("--") === 0) {
                        var z = oe(He(N));
                        M = oe(He(("" + M).trim()))
                    } else z = dr.get(N), z === void 0 && (z = ae(He(N.replace(dl, "-$1").toLowerCase().replace(Ni, "-ms-"))), dr.set(N, z)), M = typeof M == "number" ? M === 0 || oa.has(N) ? oe("" + M) : oe(M + "px") : oe(He(("" + M).trim()));
                    b ? (b = !1, o.push(os, z, jl, M)) : o.push(us, z, jl, M)
                }
            } b || o.push(Ga)
    }
    var ua = ae(" "),
        Oa = ae('="'),
        Ga = ae('"'),
        fr = ae('=""');

    function kl(o, f, b) {
        b && typeof b != "function" && typeof b != "symbol" && o.push(ua, oe(f), fr)
    }

    function bt(o, f, b) {
        typeof b != "function" && typeof b != "symbol" && typeof b != "boolean" && o.push(ua, oe(f), Oa, oe(He(b)), Ga)
    }
    var Wn = ae(He("javascript:throw new Error('React form unexpectedly submitted.')")),
        uc = ae('<input type="hidden"');

    function ds(o, f) {
        this.push(uc), dc(o), bt(this, "name", f), bt(this, "value", o), this.push(In)
    }

    function dc(o) {
        if (typeof o != "string") throw Error(l(480))
    }

    function oo(o, f) {
        if (typeof f.$$FORM_ACTION == "function") {
            var b = o.nextFormID++;
            o = o.idPrefix + b;
            try {
                var N = f.$$FORM_ACTION(o);
                if (N) {
                    var M = N.data;
                    M != null && M.forEach(dc)
                }
                return N
            } catch (z) {
                if (typeof z == "object" && z !== null && typeof z.then == "function") throw z
            }
        }
        return null
    }

    function fl(o, f, b, N, M, z, B, X) {
        var G = null;
        if (typeof N == "function") {
            var q = oo(f, N);
            q !== null ? (X = q.name, N = q.action || "", M = q.encType, z = q.method, B = q.target, G = q.data) : (o.push(ua, oe("formAction"), Oa, Wn, Ga), B = z = M = N = X = null, Ti(f, b))
        }
        return X != null && Fe(o, "name", X), N != null && Fe(o, "formAction", N), M != null && Fe(o, "formEncType", M), z != null && Fe(o, "formMethod", z), B != null && Fe(o, "formTarget", B), G
    }

    function Fe(o, f, b) {
        switch (f) {
            case "className":
                bt(o, "class", b);
                break;
            case "tabIndex":
                bt(o, "tabindex", b);
                break;
            case "dir":
            case "role":
            case "viewBox":
            case "width":
            case "height":
                bt(o, f, b);
                break;
            case "style":
                Qn(o, b);
                break;
            case "src":
            case "href":
                if (b === "") break;
            case "action":
            case "formAction":
                if (b == null || typeof b == "function" || typeof b == "symbol" || typeof b == "boolean") break;
                b = Rn("" + b), o.push(ua, oe(f), Oa, oe(He(b)), Ga);
                break;
            case "defaultValue":
            case "defaultChecked":
            case "innerHTML":
            case "suppressContentEditableWarning":
            case "suppressHydrationWarning":
            case "ref":
                break;
            case "autoFocus":
            case "multiple":
            case "muted":
                kl(o, f.toLowerCase(), b);
                break;
            case "xlinkHref":
                if (typeof b == "function" || typeof b == "symbol" || typeof b == "boolean") break;
                b = Rn("" + b), o.push(ua, oe("xlink:href"), Oa, oe(He(b)), Ga);
                break;
            case "contentEditable":
            case "spellCheck":
            case "draggable":
            case "value":
            case "autoReverse":
            case "externalResourcesRequired":
            case "focusable":
            case "preserveAlpha":
                typeof b != "function" && typeof b != "symbol" && o.push(ua, oe(f), Oa, oe(He(b)), Ga);
                break;
            case "inert":
            case "allowFullScreen":
            case "async":
            case "autoPlay":
            case "controls":
            case "default":
            case "defer":
            case "disabled":
            case "disablePictureInPicture":
            case "disableRemotePlayback":
            case "formNoValidate":
            case "hidden":
            case "loop":
            case "noModule":
            case "noValidate":
            case "open":
            case "playsInline":
            case "readOnly":
            case "required":
            case "reversed":
            case "scoped":
            case "seamless":
            case "itemScope":
                b && typeof b != "function" && typeof b != "symbol" && o.push(ua, oe(f), fr);
                break;
            case "capture":
            case "download":
                b === !0 ? o.push(ua, oe(f), fr) : b !== !1 && typeof b != "function" && typeof b != "symbol" && o.push(ua, oe(f), Oa, oe(He(b)), Ga);
                break;
            case "cols":
            case "rows":
            case "size":
            case "span":
                typeof b != "function" && typeof b != "symbol" && !isNaN(b) && 1 <= b && o.push(ua, oe(f), Oa, oe(He(b)), Ga);
                break;
            case "rowSpan":
            case "start":
                typeof b == "function" || typeof b == "symbol" || isNaN(b) || o.push(ua, oe(f), Oa, oe(He(b)), Ga);
                break;
            case "xlinkActuate":
                bt(o, "xlink:actuate", b);
                break;
            case "xlinkArcrole":
                bt(o, "xlink:arcrole", b);
                break;
            case "xlinkRole":
                bt(o, "xlink:role", b);
                break;
            case "xlinkShow":
                bt(o, "xlink:show", b);
                break;
            case "xlinkTitle":
                bt(o, "xlink:title", b);
                break;
            case "xlinkType":
                bt(o, "xlink:type", b);
                break;
            case "xmlBase":
                bt(o, "xml:base", b);
                break;
            case "xmlLang":
                bt(o, "xml:lang", b);
                break;
            case "xmlSpace":
                bt(o, "xml:space", b);
                break;
            default:
                if ((!(2 < f.length) || f[0] !== "o" && f[0] !== "O" || f[1] !== "n" && f[1] !== "N") && (f = We.get(f) || f, qa(f))) {
                    switch (typeof b) {
                        case "function":
                        case "symbol":
                            return;
                        case "boolean":
                            var N = f.toLowerCase().slice(0, 5);
                            if (N !== "data-" && N !== "aria-") return
                    }
                    o.push(ua, oe(f), Oa, oe(He(b)), Ga)
                }
        }
    }
    var dt = ae(">"),
        In = ae("/>");

    function Ya(o, f, b) {
        if (f != null) {
            if (b != null) throw Error(l(60));
            if (typeof f != "object" || !("__html" in f)) throw Error(l(61));
            f = f.__html, f != null && o.push(oe("" + f))
        }
    }

    function ru(o) {
        var f = "";
        return n.Children.forEach(o, function(b) {
            b != null && (f += b)
        }), f
    }
    var fc = ae(' selected=""'),
        uo = ae(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`);

    function Ti(o, f) {
        !(o.instructions & 16) && (o.instructions |= 16, f.bootstrapChunks.unshift(f.startInlineScript, uo, ro))
    }
    var hc = ae("<!--F!-->"),
        _n = ae("<!--F-->");

    function St(o, f) {
        o.push(ea("link"));
        for (var b in f)
            if (Re.call(f, b)) {
                var N = f[b];
                if (N != null) switch (b) {
                    case "children":
                    case "dangerouslySetInnerHTML":
                        throw Error(l(399, "link"));
                    default:
                        Fe(o, b, N)
                }
            } return o.push(In), null
    }
    var zl = /(<\/|<)(s)(tyle)/gi;

    function hl(o, f, b, N) {
        return "" + f + (b === "s" ? "\\73 " : "\\53 ") + N
    }

    function pt(o, f, b) {
        o.push(ea(b));
        for (var N in f)
            if (Re.call(f, N)) {
                var M = f[N];
                if (M != null) switch (N) {
                    case "children":
                    case "dangerouslySetInnerHTML":
                        throw Error(l(399, b));
                    default:
                        Fe(o, N, M)
                }
            } return o.push(In), null
    }

    function hr(o, f) {
        o.push(ea("title"));
        var b = null,
            N = null,
            M;
        for (M in f)
            if (Re.call(f, M)) {
                var z = f[M];
                if (z != null) switch (M) {
                    case "children":
                        b = z;
                        break;
                    case "dangerouslySetInnerHTML":
                        N = z;
                        break;
                    default:
                        Fe(o, M, z)
                }
            } return o.push(dt), f = Array.isArray(b) ? 2 > b.length ? b[0] : null : b, typeof f != "function" && typeof f != "symbol" && f !== null && f !== void 0 && o.push(oe(He("" + f))), Ya(o, N, b), o.push(Sa("title")), null
    }

    function Mi(o, f) {
        o.push(ea("script"));
        var b = null,
            N = null,
            M;
        for (M in f)
            if (Re.call(f, M)) {
                var z = f[M];
                if (z != null) switch (M) {
                    case "children":
                        b = z;
                        break;
                    case "dangerouslySetInnerHTML":
                        N = z;
                        break;
                    default:
                        Fe(o, M, z)
                }
            } return o.push(dt), Ya(o, N, b), typeof b == "string" && o.push(oe(("" + b).replace(li, ii))), o.push(Sa("script")), null
    }

    function pn(o, f, b) {
        o.push(ea(b));
        var N = b = null,
            M;
        for (M in f)
            if (Re.call(f, M)) {
                var z = f[M];
                if (z != null) switch (M) {
                    case "children":
                        b = z;
                        break;
                    case "dangerouslySetInnerHTML":
                        N = z;
                        break;
                    default:
                        Fe(o, M, z)
                }
            } return o.push(dt), Ya(o, N, b), typeof b == "string" ? (o.push(oe(He(b))), null) : b
    }
    var Dl = ae(`
`),
        Kn = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
        fs = new Map;

    function ea(o) {
        var f = fs.get(o);
        if (f === void 0) {
            if (!Kn.test(o)) throw Error(l(65, o));
            f = ae("<" + o), fs.set(o, f)
        }
        return f
    }
    var fo = ae("<!DOCTYPE html>");

    function hs(o, f, b, N, M, z, B, X, G) {
        switch (f) {
            case "div":
            case "span":
            case "svg":
            case "path":
                break;
            case "a":
                o.push(ea("a"));
                var q = null,
                    ce = null,
                    le;
                for (le in b)
                    if (Re.call(b, le)) {
                        var de = b[le];
                        if (de != null) switch (le) {
                            case "children":
                                q = de;
                                break;
                            case "dangerouslySetInnerHTML":
                                ce = de;
                                break;
                            case "href":
                                de === "" ? bt(o, "href", "") : Fe(o, le, de);
                                break;
                            default:
                                Fe(o, le, de)
                        }
                    } if (o.push(dt), Ya(o, ce, q), typeof q == "string") {
                    o.push(oe(He(q)));
                    var ge = null
                } else ge = q;
                return ge;
            case "g":
            case "p":
            case "li":
                break;
            case "select":
                o.push(ea("select"));
                var ye = null,
                    Ne = null,
                    Ot;
                for (Ot in b)
                    if (Re.call(b, Ot)) {
                        var _t = b[Ot];
                        if (_t != null) switch (Ot) {
                            case "children":
                                ye = _t;
                                break;
                            case "dangerouslySetInnerHTML":
                                Ne = _t;
                                break;
                            case "defaultValue":
                            case "value":
                                break;
                            default:
                                Fe(o, Ot, _t)
                        }
                    } return o.push(dt), Ya(o, Ne, ye), ye;
            case "option":
                var Pt = B.selectedValue;
                o.push(ea("option"));
                var yt = null,
                    Ut = null,
                    qt = null,
                    Ua = null,
                    Ie;
                for (Ie in b)
                    if (Re.call(b, Ie)) {
                        var Et = b[Ie];
                        if (Et != null) switch (Ie) {
                            case "children":
                                yt = Et;
                                break;
                            case "selected":
                                qt = Et;
                                break;
                            case "dangerouslySetInnerHTML":
                                Ua = Et;
                                break;
                            case "value":
                                Ut = Et;
                            default:
                                Fe(o, Ie, Et)
                        }
                    } if (Pt != null) {
                    var na = Ut !== null ? "" + Ut : ru(yt);
                    if (be(Pt)) {
                        for (var Za = 0; Za < Pt.length; Za++)
                            if ("" + Pt[Za] === na) {
                                o.push(fc);
                                break
                            }
                    } else "" + Pt === na && o.push(fc)
                } else qt && o.push(fc);
                return o.push(dt), Ya(o, Ua, yt), yt;
            case "textarea":
                o.push(ea("textarea"));
                var Qa = null,
                    du = null,
                    Ji = null,
                    kr;
                for (kr in b)
                    if (Re.call(b, kr)) {
                        var zr = b[kr];
                        if (zr != null) switch (kr) {
                            case "children":
                                Ji = zr;
                                break;
                            case "value":
                                Qa = zr;
                                break;
                            case "defaultValue":
                                du = zr;
                                break;
                            case "dangerouslySetInnerHTML":
                                throw Error(l(91));
                            default:
                                Fe(o, kr, zr)
                        }
                    } if (Qa === null && du !== null && (Qa = du), o.push(dt), Ji != null) {
                    if (Qa != null) throw Error(l(92));
                    if (be(Ji)) {
                        if (1 < Ji.length) throw Error(l(93));
                        Qa = "" + Ji[0]
                    }
                    Qa = "" + Ji
                }
                return typeof Qa == "string" && Qa[0] === `
` && o.push(Dl), Qa !== null && o.push(oe(He("" + Qa))), null;
            case "input":
                o.push(ea("input"));
                var mn = null,
                    la = null,
                    Oc = null,
                    Ms = null,
                    _c = null,
                    jc = null,
                    Cl = null,
                    As = null,
                    kc = null,
                    Dr;
                for (Dr in b)
                    if (Re.call(b, Dr)) {
                        var ol = b[Dr];
                        if (ol != null) switch (Dr) {
                            case "children":
                            case "dangerouslySetInnerHTML":
                                throw Error(l(399, "input"));
                            case "name":
                                mn = ol;
                                break;
                            case "formAction":
                                la = ol;
                                break;
                            case "formEncType":
                                Oc = ol;
                                break;
                            case "formMethod":
                                Ms = ol;
                                break;
                            case "formTarget":
                                _c = ol;
                                break;
                            case "defaultChecked":
                                kc = ol;
                                break;
                            case "defaultValue":
                                Cl = ol;
                                break;
                            case "checked":
                                As = ol;
                                break;
                            case "value":
                                jc = ol;
                                break;
                            default:
                                Fe(o, Dr, ol)
                        }
                    } var fu = fl(o, N, M, la, Oc, Ms, _c, mn);
                return As !== null ? kl(o, "checked", As) : kc !== null && kl(o, "checked", kc), jc !== null ? Fe(o, "value", jc) : Cl !== null && Fe(o, "value", Cl), o.push(In), fu != null && fu.forEach(ds, o), null;
            case "button":
                o.push(ea("button"));
                var Rs = null,
                    hu = null,
                    gu = null,
                    mu = null,
                    No = null,
                    vu = null,
                    bd = null,
                    Os;
                for (Os in b)
                    if (Re.call(b, Os)) {
                        var Ql = b[Os];
                        if (Ql != null) switch (Os) {
                            case "children":
                                Rs = Ql;
                                break;
                            case "dangerouslySetInnerHTML":
                                hu = Ql;
                                break;
                            case "name":
                                gu = Ql;
                                break;
                            case "formAction":
                                mu = Ql;
                                break;
                            case "formEncType":
                                No = Ql;
                                break;
                            case "formMethod":
                                vu = Ql;
                                break;
                            case "formTarget":
                                bd = Ql;
                                break;
                            default:
                                Fe(o, Os, Ql)
                        }
                    } var bu = fl(o, N, M, mu, No, vu, bd, gu);
                if (o.push(dt), bu != null && bu.forEach(ds, o), Ya(o, hu, Rs), typeof Rs == "string") {
                    o.push(oe(He(Rs)));
                    var Co = null
                } else Co = Rs;
                return Co;
            case "form":
                o.push(ea("form"));
                var _s = null,
                    xu = null,
                    qi = null,
                    js = null,
                    ks = null,
                    zc = null,
                    zs;
                for (zs in b)
                    if (Re.call(b, zs)) {
                        var Un = b[zs];
                        if (Un != null) switch (zs) {
                            case "children":
                                _s = Un;
                                break;
                            case "dangerouslySetInnerHTML":
                                xu = Un;
                                break;
                            case "action":
                                qi = Un;
                                break;
                            case "encType":
                                js = Un;
                                break;
                            case "method":
                                ks = Un;
                                break;
                            case "target":
                                zc = Un;
                                break;
                            default:
                                Fe(o, zs, Un)
                        }
                    } var Eo = null,
                    Ds = null;
                if (typeof qi == "function") {
                    var Wl = oo(N, qi);
                    Wl !== null ? (qi = Wl.action || "", js = Wl.encType, ks = Wl.method, zc = Wl.target, Eo = Wl.data, Ds = Wl.name) : (o.push(ua, oe("action"), Oa, Wn, Ga), zc = ks = js = qi = null, Ti(N, M))
                }
                if (qi != null && Fe(o, "action", qi), js != null && Fe(o, "encType", js), ks != null && Fe(o, "method", ks), zc != null && Fe(o, "target", zc), o.push(dt), Ds !== null && (o.push(uc), bt(o, "name", Ds), o.push(In), Eo != null && Eo.forEach(ds, o)), Ya(o, xu, _s), typeof _s == "string") {
                    o.push(oe(He(_s)));
                    var pu = null
                } else pu = _s;
                return pu;
            case "menuitem":
                o.push(ea("menuitem"));
                for (var Ls in b)
                    if (Re.call(b, Ls)) {
                        var yu = b[Ls];
                        if (yu != null) switch (Ls) {
                            case "children":
                            case "dangerouslySetInnerHTML":
                                throw Error(l(400));
                            default:
                                Fe(o, Ls, yu)
                        }
                    } return o.push(dt), null;
            case "object":
                o.push(ea("object"));
                var Us = null,
                    Su = null,
                    Bs;
                for (Bs in b)
                    if (Re.call(b, Bs)) {
                        var Lr = b[Bs];
                        if (Lr != null) switch (Bs) {
                            case "children":
                                Us = Lr;
                                break;
                            case "dangerouslySetInnerHTML":
                                Su = Lr;
                                break;
                            case "data":
                                var wu = Rn("" + Lr);
                                if (wu === "") break;
                                o.push(ua, oe("data"), Oa, oe(He(wu)), Ga);
                                break;
                            default:
                                Fe(o, Bs, Lr)
                        }
                    } if (o.push(dt), Ya(o, Su, Us), typeof Us == "string") {
                    o.push(oe(He(Us)));
                    var Nu = null
                } else Nu = Us;
                return Nu;
            case "title":
                if (B.insertionMode === 3 || B.tagScope & 1 || b.itemProp != null) var Dc = hr(o, b);
                else G ? Dc = null : (hr(M.hoistableChunks, b), Dc = void 0);
                return Dc;
            case "link":
                var xd = b.rel,
                    xi = b.href,
                    To = b.precedence;
                if (B.insertionMode === 3 || B.tagScope & 1 || b.itemProp != null || typeof xd != "string" || typeof xi != "string" || xi === "") {
                    St(o, b);
                    var Ur = null
                } else if (b.rel === "stylesheet")
                    if (typeof To != "string" || b.disabled != null || b.onLoad || b.onError) Ur = St(o, b);
                    else {
                        var Br = M.styles.get(To),
                            Lc = N.styleResources.hasOwnProperty(xi) ? N.styleResources[xi] : void 0;
                        if (Lc !== null) {
                            N.styleResources[xi] = null, Br || (Br = {
                                precedence: oe(He(To)),
                                rules: [],
                                hrefs: [],
                                sheets: new Map
                            }, M.styles.set(To, Br));
                            var Hs = {
                                state: 0,
                                props: xt({}, b, {
                                    "data-precedence": b.precedence,
                                    precedence: null
                                })
                            };
                            if (Lc) {
                                Lc.length === 2 && $n(Hs.props, Lc);
                                var Mo = M.preloads.stylesheets.get(xi);
                                Mo && 0 < Mo.length ? Mo.length = 0 : Hs.state = 1
                            }
                            Br.sheets.set(xi, Hs), z && z.stylesheets.add(Hs)
                        } else if (Br) {
                            var Cu = Br.sheets.get(xi);
                            Cu && z && z.stylesheets.add(Cu)
                        }
                        X && o.push(Zn), Ur = null
                    }
                else b.onLoad || b.onError ? Ur = St(o, b) : (X && o.push(Zn), Ur = G ? null : St(M.hoistableChunks, b));
                return Ur;
            case "script":
                var Eu = b.async;
                if (typeof b.src != "string" || !b.src || !Eu || typeof Eu == "function" || typeof Eu == "symbol" || b.onLoad || b.onError || B.insertionMode === 3 || B.tagScope & 1 || b.itemProp != null) var pd = Mi(o, b);
                else {
                    var Uc = b.src;
                    if (b.type === "module") var $i = N.moduleScriptResources,
                        Ao = M.preloads.moduleScripts;
                    else $i = N.scriptResources, Ao = M.preloads.scripts;
                    var Hr = $i.hasOwnProperty(Uc) ? $i[Uc] : void 0;
                    if (Hr !== null) {
                        $i[Uc] = null;
                        var Ro = b;
                        if (Hr) {
                            Hr.length === 2 && (Ro = xt({}, b), $n(Ro, Hr));
                            var Tu = Ao.get(Uc);
                            Tu && (Tu.length = 0)
                        }
                        var El = [];
                        M.scripts.add(El), Mi(El, Ro)
                    }
                    X && o.push(Zn), pd = null
                }
                return pd;
            case "style":
                var Il = b.precedence,
                    Tn = b.href;
                if (B.insertionMode === 3 || B.tagScope & 1 || b.itemProp != null || typeof Il != "string" || typeof Tn != "string" || Tn === "") {
                    o.push(ea("style"));
                    var ul = null,
                        Oo = null,
                        Fr;
                    for (Fr in b)
                        if (Re.call(b, Fr)) {
                            var Bc = b[Fr];
                            if (Bc != null) switch (Fr) {
                                case "children":
                                    ul = Bc;
                                    break;
                                case "dangerouslySetInnerHTML":
                                    Oo = Bc;
                                    break;
                                default:
                                    Fe(o, Fr, Bc)
                            }
                        } o.push(dt);
                    var Fs = Array.isArray(ul) ? 2 > ul.length ? ul[0] : null : ul;
                    typeof Fs != "function" && typeof Fs != "symbol" && Fs !== null && Fs !== void 0 && o.push(oe(("" + Fs).replace(zl, hl))), Ya(o, Oo, ul), o.push(Sa("style"));
                    var er = null
                } else {
                    var Kl = M.styles.get(Il);
                    if ((N.styleResources.hasOwnProperty(Tn) ? N.styleResources[Tn] : void 0) !== null) {
                        N.styleResources[Tn] = null, Kl ? Kl.hrefs.push(oe(He(Tn))) : (Kl = {
                            precedence: oe(He(Il)),
                            rules: [],
                            hrefs: [oe(He(Tn))],
                            sheets: new Map
                        }, M.styles.set(Il, Kl));
                        var Mu = Kl.rules,
                            Gr = null,
                            Au = null,
                            Yr;
                        for (Yr in b)
                            if (Re.call(b, Yr)) {
                                var _o = b[Yr];
                                if (_o != null) switch (Yr) {
                                    case "children":
                                        Gr = _o;
                                        break;
                                    case "dangerouslySetInnerHTML":
                                        Au = _o
                                }
                            } var Xr = Array.isArray(Gr) ? 2 > Gr.length ? Gr[0] : null : Gr;
                        typeof Xr != "function" && typeof Xr != "symbol" && Xr !== null && Xr !== void 0 && Mu.push(oe(("" + Xr).replace(zl, hl))), Ya(Mu, Au, Gr)
                    }
                    Kl && z && z.styles.add(Kl), X && o.push(Zn), er = void 0
                }
                return er;
            case "meta":
                if (B.insertionMode === 3 || B.tagScope & 1 || b.itemProp != null) var Ru = pt(o, b, "meta");
                else X && o.push(Zn), Ru = G ? null : typeof b.charSet == "string" ? pt(M.charsetChunks, b, "meta") : b.name === "viewport" ? pt(M.viewportChunks, b, "meta") : pt(M.hoistableChunks, b, "meta");
                return Ru;
            case "listing":
            case "pre":
                o.push(ea(f));
                var Gs = null,
                    Hc = null,
                    Ys;
                for (Ys in b)
                    if (Re.call(b, Ys)) {
                        var ia = b[Ys];
                        if (ia != null) switch (Ys) {
                            case "children":
                                Gs = ia;
                                break;
                            case "dangerouslySetInnerHTML":
                                Hc = ia;
                                break;
                            default:
                                Fe(o, Ys, ia)
                        }
                    } if (o.push(dt), Hc != null) {
                    if (Gs != null) throw Error(l(60));
                    if (typeof Hc != "object" || !("__html" in Hc)) throw Error(l(61));
                    var Vt = Hc.__html;
                    Vt != null && (typeof Vt == "string" && 0 < Vt.length && Vt[0] === `
` ? o.push(Dl, oe(Vt)) : o.push(oe("" + Vt)))
                }
                return typeof Gs == "string" && Gs[0] === `
` && o.push(Dl), Gs;
            case "img":
                var Ba = b.src,
                    Ea = b.srcSet;
                if (!(b.loading === "lazy" || !Ba && !Ea || typeof Ba != "string" && Ba != null || typeof Ea != "string" && Ea != null) && b.fetchPriority !== "low" && !(B.tagScope & 3) && (typeof Ba != "string" || Ba[4] !== ":" || Ba[0] !== "d" && Ba[0] !== "D" || Ba[1] !== "a" && Ba[1] !== "A" || Ba[2] !== "t" && Ba[2] !== "T" || Ba[3] !== "a" && Ba[3] !== "A") && (typeof Ea != "string" || Ea[4] !== ":" || Ea[0] !== "d" && Ea[0] !== "D" || Ea[1] !== "a" && Ea[1] !== "A" || Ea[2] !== "t" && Ea[2] !== "T" || Ea[3] !== "a" && Ea[3] !== "A")) {
                    var Ou = typeof b.sizes == "string" ? b.sizes : void 0,
                        Pr = Ea ? Ea + `
` + (Ou || "") : Ba,
                        jo = M.preloads.images,
                        Tl = jo.get(Pr);
                    if (Tl)(b.fetchPriority === "high" || 10 > M.highImagePreloads.size) && (jo.delete(Pr), M.highImagePreloads.add(Tl));
                    else if (!N.imageResources.hasOwnProperty(Pr)) {
                        N.imageResources[Pr] = Xe;
                        var Fc = b.crossOrigin,
                            _u = typeof Fc == "string" ? Fc === "use-credentials" ? Fc : "" : void 0,
                            tr = M.headers,
                            ko;
                        tr && 0 < tr.remainingCapacity && (b.fetchPriority === "high" || 500 > tr.highImagePreloads.length) && (ko = jn(Ba, "image", {
                            imageSrcSet: b.srcSet,
                            imageSizes: b.sizes,
                            crossOrigin: _u,
                            integrity: b.integrity,
                            nonce: b.nonce,
                            type: b.type,
                            fetchPriority: b.fetchPriority,
                            referrerPolicy: b.refererPolicy
                        }), 0 <= (tr.remainingCapacity -= ko.length + 2)) ? (M.resets.image[Pr] = Xe, tr.highImagePreloads && (tr.highImagePreloads += ", "), tr.highImagePreloads += ko) : (Tl = [], St(Tl, {
                            rel: "preload",
                            as: "image",
                            href: Ea ? void 0 : Ba,
                            imageSrcSet: Ea,
                            imageSizes: Ou,
                            crossOrigin: _u,
                            integrity: b.integrity,
                            type: b.type,
                            fetchPriority: b.fetchPriority,
                            referrerPolicy: b.referrerPolicy
                        }), b.fetchPriority === "high" || 10 > M.highImagePreloads.size ? M.highImagePreloads.add(Tl) : (M.bulkPreloads.add(Tl), jo.set(Pr, Tl)))
                    }
                }
                return pt(o, b, "img");
            case "base":
            case "area":
            case "br":
            case "col":
            case "embed":
            case "hr":
            case "keygen":
            case "param":
            case "source":
            case "track":
            case "wbr":
                return pt(o, b, f);
            case "annotation-xml":
            case "color-profile":
            case "font-face":
            case "font-face-src":
            case "font-face-uri":
            case "font-face-format":
            case "font-face-name":
            case "missing-glyph":
                break;
            case "head":
                if (2 > B.insertionMode && M.headChunks === null) {
                    M.headChunks = [];
                    var zo = pn(M.headChunks, b, "head")
                } else zo = pn(o, b, "head");
                return zo;
            case "html":
                if (B.insertionMode === 0 && M.htmlChunks === null) {
                    M.htmlChunks = [fo];
                    var Do = pn(M.htmlChunks, b, "html")
                } else Do = pn(o, b, "html");
                return Do;
            default:
                if (f.indexOf("-") !== -1) {
                    o.push(ea(f));
                    var Gc = null,
                        ju = null,
                        ar;
                    for (ar in b)
                        if (Re.call(b, ar)) {
                            var Bn = b[ar];
                            if (Bn != null) {
                                var Lo = ar;
                                switch (ar) {
                                    case "children":
                                        Gc = Bn;
                                        break;
                                    case "dangerouslySetInnerHTML":
                                        ju = Bn;
                                        break;
                                    case "style":
                                        Qn(o, Bn);
                                        break;
                                    case "suppressContentEditableWarning":
                                    case "suppressHydrationWarning":
                                    case "ref":
                                        break;
                                    case "className":
                                        Lo = "class";
                                    default:
                                        if (qa(ar) && typeof Bn != "function" && typeof Bn != "symbol" && Bn !== !1) {
                                            if (Bn === !0) Bn = "";
                                            else if (typeof Bn == "object") continue;
                                            o.push(ua, oe(Lo), Oa, oe(He(Bn)), Ga)
                                        }
                                }
                            }
                        } return o.push(dt), Ya(o, ju, Gc), Gc
                }
        }
        return pn(o, b, f)
    }
    var Ai = new Map;

    function Sa(o) {
        var f = Ai.get(o);
        return f === void 0 && (f = ae("</" + o + ">"), Ai.set(o, f)), f
    }

    function $a(o, f) {
        f = f.bootstrapChunks;
        for (var b = 0; b < f.length - 1; b++) F(o, f[b]);
        return b < f.length ? (b = f[b], f.length = 0, ee(o, b)) : !0
    }
    var en = ae('<template id="'),
        gc = ae('"></template>'),
        ho = ae("<!--$-->"),
        gr = ae('<!--$?--><template id="'),
        gl = ae('"></template>'),
        mr = ae("<!--$!-->"),
        su = ae("<!--/$-->"),
        Xa = ae("<template"),
        Ri = ae('"'),
        go = ae(' data-dgst="');
    ae(' data-msg="'), ae(' data-stck="'), ae(' data-cstck="');
    var mc = ae("></template>");

    function ri(o, f, b) {
        if (F(o, gr), b === null) throw Error(l(395));
        return F(o, f.boundaryPrefix), F(o, oe(b.toString(16))), ee(o, gl)
    }
    var Ll = ae('<div hidden id="'),
        vr = ae('">'),
        Oi = ae("</div>"),
        gs = ae('<svg aria-hidden="true" style="display:none" id="'),
        br = ae('">'),
        mo = ae("</svg>"),
        vc = ae('<math aria-hidden="true" style="display:none" id="'),
        ml = ae('">'),
        bc = ae("</math>"),
        _i = ae('<table hidden id="'),
        xr = ae('">'),
        ji = ae("</table>"),
        rt = ae('<table hidden><tbody id="'),
        Jn = ae('">'),
        pr = ae("</tbody></table>"),
        si = ae('<table hidden><tr id="'),
        ki = ae('">'),
        vl = ae("</tr></table>"),
        zi = ae('<table hidden><colgroup id="'),
        qn = ae('">'),
        _a = ae("</colgroup></table>");

    function Di(o, f, b, N) {
        switch (b.insertionMode) {
            case 0:
            case 1:
            case 2:
                return F(o, Ll), F(o, f.segmentPrefix), F(o, oe(N.toString(16))), ee(o, vr);
            case 3:
                return F(o, gs), F(o, f.segmentPrefix), F(o, oe(N.toString(16))), ee(o, br);
            case 4:
                return F(o, vc), F(o, f.segmentPrefix), F(o, oe(N.toString(16))), ee(o, ml);
            case 5:
                return F(o, _i), F(o, f.segmentPrefix), F(o, oe(N.toString(16))), ee(o, xr);
            case 6:
                return F(o, rt), F(o, f.segmentPrefix), F(o, oe(N.toString(16))), ee(o, Jn);
            case 7:
                return F(o, si), F(o, f.segmentPrefix), F(o, oe(N.toString(16))), ee(o, ki);
            case 8:
                return F(o, zi), F(o, f.segmentPrefix), F(o, oe(N.toString(16))), ee(o, qn);
            default:
                throw Error(l(397))
        }
    }

    function yn(o, f) {
        switch (f.insertionMode) {
            case 0:
            case 1:
            case 2:
                return ee(o, Oi);
            case 3:
                return ee(o, mo);
            case 4:
                return ee(o, bc);
            case 5:
                return ee(o, ji);
            case 6:
                return ee(o, pr);
            case 7:
                return ee(o, vl);
            case 8:
                return ee(o, _a);
            default:
                throw Error(l(397))
        }
    }
    var xc = ae('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),
        Li = ae('$RS("'),
        bl = ae('","'),
        Ui = ae('")<\/script>');
    ae('<template data-rsi="" data-sid="'), ae('" data-pid="');
    var ja = ae('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'),
        Ul = ae('$RC("'),
        yr = ae(`$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`),
        Sr = ae(`$RM=new Map;
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`),
        cu = ae('$RR("'),
        pc = ae('","'),
        ms = ae('",'),
        Bi = ae('"'),
        vs = ae(")<\/script>");
    ae('<template data-rci="" data-bid="'), ae('<template data-rri="" data-bid="'), ae('" data-sid="'), ae('" data-sty="');
    var Hi = ae('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),
        bs = ae('$RX("'),
        xs = ae('"'),
        ou = ae(","),
        wr = ae(")<\/script>");
    ae('<template data-rxi="" data-bid="'), ae('" data-dgst="'), ae('" data-msg="'), ae('" data-stck="'), ae('" data-cstck="');
    var vo = /[<\u2028\u2029]/g;

    function Fi(o) {
        return JSON.stringify(o).replace(vo, function(f) {
            switch (f) {
                case "<":
                    return "\\u003c";
                case "\u2028":
                    return "\\u2028";
                case "\u2029":
                    return "\\u2029";
                default:
                    throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
            }
        })
    }
    var yc = /[&><\u2028\u2029]/g;

    function Bl(o) {
        return JSON.stringify(o).replace(yc, function(f) {
            switch (f) {
                case "&":
                    return "\\u0026";
                case ">":
                    return "\\u003e";
                case "<":
                    return "\\u003c";
                case "\u2028":
                    return "\\u2028";
                case "\u2029":
                    return "\\u2029";
                default:
                    throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
            }
        })
    }
    var bo = ae('<style media="not all" data-precedence="'),
        xo = ae('" data-href="'),
        Gi = ae('">'),
        uu = ae("</style>"),
        ps = !1,
        ta = !0;

    function ys(o) {
        var f = o.rules,
            b = o.hrefs,
            N = 0;
        if (b.length) {
            for (F(this, bo), F(this, o.precedence), F(this, xo); N < b.length - 1; N++) F(this, b[N]), F(this, Yi);
            for (F(this, b[N]), F(this, Gi), N = 0; N < f.length; N++) F(this, f[N]);
            ta = ee(this, uu), ps = !0, f.length = 0, b.length = 0
        }
    }

    function Sc(o) {
        return o.state !== 2 ? ps = !0 : !1
    }

    function Nr(o, f, b) {
        return ps = !1, ta = !0, f.styles.forEach(ys, o), f.stylesheets.forEach(Sc), ps && (b.stylesToHoist = !0), ta
    }

    function Sn(o) {
        for (var f = 0; f < o.length; f++) F(this, o[f]);
        o.length = 0
    }
    var tn = [];

    function Cr(o) {
        St(tn, o.props);
        for (var f = 0; f < tn.length; f++) F(this, tn[f]);
        tn.length = 0, o.state = 2
    }
    var ci = ae('<style data-precedence="'),
        an = ae('" data-href="'),
        Yi = ae(" "),
        po = ae('">'),
        yo = ae("</style>");

    function Ss(o) {
        var f = 0 < o.sheets.size;
        o.sheets.forEach(Cr, this), o.sheets.clear();
        var b = o.rules,
            N = o.hrefs;
        if (!f || N.length) {
            if (F(this, ci), F(this, o.precedence), o = 0, N.length) {
                for (F(this, an); o < N.length - 1; o++) F(this, N[o]), F(this, Yi);
                F(this, N[o])
            }
            for (F(this, po), o = 0; o < b.length; o++) F(this, b[o]);
            F(this, yo), b.length = 0, N.length = 0
        }
    }

    function wc(o) {
        if (o.state === 0) {
            o.state = 1;
            var f = o.props;
            for (St(tn, {
                    rel: "preload",
                    as: "style",
                    href: o.props.href,
                    crossOrigin: f.crossOrigin,
                    fetchPriority: f.fetchPriority,
                    integrity: f.integrity,
                    media: f.media,
                    hrefLang: f.hrefLang,
                    referrerPolicy: f.referrerPolicy
                }), o = 0; o < tn.length; o++) F(this, tn[o]);
            tn.length = 0
        }
    }

    function wn(o) {
        o.sheets.forEach(wc, this), o.sheets.clear()
    }
    var Xi = ae("["),
        Hl = ae(",["),
        Er = ae(","),
        Tr = ae("]");

    function Nc(o, f) {
        F(o, Xi);
        var b = Xi;
        f.stylesheets.forEach(function(N) {
            if (N.state !== 2)
                if (N.state === 3) F(o, b), F(o, oe(Bl("" + N.props.href))), F(o, Tr), b = Hl;
                else {
                    F(o, b);
                    var M = N.props["data-precedence"],
                        z = N.props,
                        B = Rn("" + N.props.href);
                    F(o, oe(Bl(B))), M = "" + M, F(o, Er), F(o, oe(Bl(M)));
                    for (var X in z)
                        if (Re.call(z, X) && (M = z[X], M != null)) switch (X) {
                            case "href":
                            case "rel":
                            case "precedence":
                            case "data-precedence":
                                break;
                            case "children":
                            case "dangerouslySetInnerHTML":
                                throw Error(l(399, "link"));
                            default:
                                Nn(o, X, M)
                        }
                    F(o, Tr), b = Hl, N.state = 3
                }
        }), F(o, Tr)
    }

    function Nn(o, f, b) {
        var N = f.toLowerCase();
        switch (typeof b) {
            case "function":
            case "symbol":
                return
        }
        switch (f) {
            case "innerHTML":
            case "dangerouslySetInnerHTML":
            case "suppressContentEditableWarning":
            case "suppressHydrationWarning":
            case "style":
            case "ref":
                return;
            case "className":
                N = "class", f = "" + b;
                break;
            case "hidden":
                if (b === !1) return;
                f = "";
                break;
            case "src":
            case "href":
                b = Rn(b), f = "" + b;
                break;
            default:
                if (2 < f.length && (f[0] === "o" || f[0] === "O") && (f[1] === "n" || f[1] === "N") || !qa(f)) return;
                f = "" + b
        }
        F(o, Er), F(o, oe(Bl(N))), F(o, Er), F(o, oe(Bl(f)))
    }

    function Cc() {
        return {
            styles: new Set,
            stylesheets: new Set
        }
    }

    function Pi(o) {
        var f = Nt || null;
        if (f) {
            var b = f.resumableState,
                N = f.renderState;
            if (typeof o == "string" && o) {
                if (!b.dnsResources.hasOwnProperty(o)) {
                    b.dnsResources[o] = null, b = N.headers;
                    var M, z;
                    (z = b && 0 < b.remainingCapacity) && (z = (M = "<" + ("" + o).replace(Zi, Fl) + ">; rel=dns-prefetch", 0 <= (b.remainingCapacity -= M.length + 2))), z ? (N.resets.dns[o] = null, b.preconnects && (b.preconnects += ", "), b.preconnects += M) : (M = [], St(M, {
                        href: o,
                        rel: "dns-prefetch"
                    }), N.preconnects.add(M))
                }
                hn(f)
            }
        } else bn.D(o)
    }

    function oi(o, f) {
        var b = Nt || null;
        if (b) {
            var N = b.resumableState,
                M = b.renderState;
            if (typeof o == "string" && o) {
                var z = f === "use-credentials" ? "credentials" : typeof f == "string" ? "anonymous" : "default";
                if (!N.connectResources[z].hasOwnProperty(o)) {
                    N.connectResources[z][o] = null, N = M.headers;
                    var B, X;
                    if (X = N && 0 < N.remainingCapacity) {
                        if (X = "<" + ("" + o).replace(Zi, Fl) + ">; rel=preconnect", typeof f == "string") {
                            var G = ("" + f).replace(Mr, Ar);
                            X += '; crossorigin="' + G + '"'
                        }
                        X = (B = X, 0 <= (N.remainingCapacity -= B.length + 2))
                    }
                    X ? (M.resets.connect[z][o] = null, N.preconnects && (N.preconnects += ", "), N.preconnects += B) : (z = [], St(z, {
                        rel: "preconnect",
                        href: o,
                        crossOrigin: f
                    }), M.preconnects.add(z))
                }
                hn(b)
            }
        } else bn.C(o, f)
    }

    function Ec(o, f, b) {
        var N = Nt || null;
        if (N) {
            var M = N.resumableState,
                z = N.renderState;
            if (f && o) {
                switch (f) {
                    case "image":
                        if (b) var B = b.imageSrcSet,
                            X = b.imageSizes,
                            G = b.fetchPriority;
                        var q = B ? B + `
` + (X || "") : o;
                        if (M.imageResources.hasOwnProperty(q)) return;
                        M.imageResources[q] = Xe, M = z.headers;
                        var ce;
                        M && 0 < M.remainingCapacity && G === "high" && (ce = jn(o, f, b), 0 <= (M.remainingCapacity -= ce.length + 2)) ? (z.resets.image[q] = Xe, M.highImagePreloads && (M.highImagePreloads += ", "), M.highImagePreloads += ce) : (M = [], St(M, xt({
                            rel: "preload",
                            href: B ? void 0 : o,
                            as: f
                        }, b)), G === "high" ? z.highImagePreloads.add(M) : (z.bulkPreloads.add(M), z.preloads.images.set(q, M)));
                        break;
                    case "style":
                        if (M.styleResources.hasOwnProperty(o)) return;
                        B = [], St(B, xt({
                            rel: "preload",
                            href: o,
                            as: f
                        }, b)), M.styleResources[o] = !b || typeof b.crossOrigin != "string" && typeof b.integrity != "string" ? Xe : [b.crossOrigin, b.integrity], z.preloads.stylesheets.set(o, B), z.bulkPreloads.add(B);
                        break;
                    case "script":
                        if (M.scriptResources.hasOwnProperty(o)) return;
                        B = [], z.preloads.scripts.set(o, B), z.bulkPreloads.add(B), St(B, xt({
                            rel: "preload",
                            href: o,
                            as: f
                        }, b)), M.scriptResources[o] = !b || typeof b.crossOrigin != "string" && typeof b.integrity != "string" ? Xe : [b.crossOrigin, b.integrity];
                        break;
                    default:
                        if (M.unknownResources.hasOwnProperty(f)) {
                            if (B = M.unknownResources[f], B.hasOwnProperty(o)) return
                        } else B = {}, M.unknownResources[f] = B;
                        if (B[o] = Xe, (M = z.headers) && 0 < M.remainingCapacity && f === "font" && (q = jn(o, f, b), 0 <= (M.remainingCapacity -= q.length + 2))) z.resets.font[o] = Xe, M.fontPreloads && (M.fontPreloads += ", "), M.fontPreloads += q;
                        else switch (M = [], o = xt({
                                rel: "preload",
                                href: o,
                                as: f
                            }, b), St(M, o), f) {
                            case "font":
                                z.fontPreloads.add(M);
                                break;
                            default:
                                z.bulkPreloads.add(M)
                        }
                }
                hn(N)
            }
        } else bn.L(o, f, b)
    }

    function Tc(o, f) {
        var b = Nt || null;
        if (b) {
            var N = b.resumableState,
                M = b.renderState;
            if (o) {
                var z = f && typeof f.as == "string" ? f.as : "script";
                switch (z) {
                    case "script":
                        if (N.moduleScriptResources.hasOwnProperty(o)) return;
                        z = [], N.moduleScriptResources[o] = !f || typeof f.crossOrigin != "string" && typeof f.integrity != "string" ? Xe : [f.crossOrigin, f.integrity], M.preloads.moduleScripts.set(o, z);
                        break;
                    default:
                        if (N.moduleUnknownResources.hasOwnProperty(z)) {
                            var B = N.unknownResources[z];
                            if (B.hasOwnProperty(o)) return
                        } else B = {}, N.moduleUnknownResources[z] = B;
                        z = [], B[o] = Xe
                }
                St(z, xt({
                    rel: "modulepreload",
                    href: o
                }, f)), M.bulkPreloads.add(z), hn(b)
            }
        } else bn.m(o, f)
    }

    function ws(o, f, b) {
        var N = Nt || null;
        if (N) {
            var M = N.resumableState,
                z = N.renderState;
            if (o) {
                f = f || "default";
                var B = z.styles.get(f),
                    X = M.styleResources.hasOwnProperty(o) ? M.styleResources[o] : void 0;
                X !== null && (M.styleResources[o] = null, B || (B = {
                    precedence: oe(He(f)),
                    rules: [],
                    hrefs: [],
                    sheets: new Map
                }, z.styles.set(f, B)), f = {
                    state: 0,
                    props: xt({
                        rel: "stylesheet",
                        href: o,
                        "data-precedence": f
                    }, b)
                }, X && (X.length === 2 && $n(f.props, X), (z = z.preloads.stylesheets.get(o)) && 0 < z.length ? z.length = 0 : f.state = 1), B.sheets.set(o, f), hn(N))
            }
        } else bn.S(o, f, b)
    }

    function Vi(o, f) {
        var b = Nt || null;
        if (b) {
            var N = b.resumableState,
                M = b.renderState;
            if (o) {
                var z = N.scriptResources.hasOwnProperty(o) ? N.scriptResources[o] : void 0;
                z !== null && (N.scriptResources[o] = null, f = xt({
                    src: o,
                    async: !0
                }, f), z && (z.length === 2 && $n(f, z), o = M.preloads.scripts.get(o)) && (o.length = 0), o = [], M.scripts.add(o), Mi(o, f), hn(b))
            }
        } else bn.X(o, f)
    }

    function Ns(o, f) {
        var b = Nt || null;
        if (b) {
            var N = b.resumableState,
                M = b.renderState;
            if (o) {
                var z = N.moduleScriptResources.hasOwnProperty(o) ? N.moduleScriptResources[o] : void 0;
                z !== null && (N.moduleScriptResources[o] = null, f = xt({
                    src: o,
                    type: "module",
                    async: !0
                }, f), z && (z.length === 2 && $n(f, z), o = M.preloads.moduleScripts.get(o)) && (o.length = 0), o = [], M.scripts.add(o), Mi(o, f), hn(b))
            }
        } else bn.M(o, f)
    }

    function $n(o, f) {
        o.crossOrigin == null && (o.crossOrigin = f[0]), o.integrity == null && (o.integrity = f[1])
    }

    function jn(o, f, b) {
        o = ("" + o).replace(Zi, Fl), f = ("" + f).replace(Mr, Ar), f = "<" + o + '>; rel=preload; as="' + f + '"';
        for (var N in b) Re.call(b, N) && (o = b[N], typeof o == "string" && (f += "; " + N.toLowerCase() + '="' + ("" + o).replace(Mr, Ar) + '"'));
        return f
    }
    var Zi = /[<>\r\n]/g;

    function Fl(o) {
        switch (o) {
            case "<":
                return "%3C";
            case ">":
                return "%3E";
            case `
`:
                return "%0A";
            case "\r":
                return "%0D";
            default:
                throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
        }
    }
    var Mr = /["';,\r\n]/g;

    function Ar(o) {
        switch (o) {
            case '"':
                return "%22";
            case "'":
                return "%27";
            case ";":
                return "%3B";
            case ",":
                return "%2C";
            case `
`:
                return "%0A";
            case "\r":
                return "%0D";
            default:
                throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")
        }
    }

    function ui(o) {
        this.styles.add(o)
    }

    function el(o) {
        this.stylesheets.add(o)
    }
    var So = Function.prototype.bind,
        wo = Symbol.for("react.client.reference");

    function Rr(o) {
        if (o == null) return null;
        if (typeof o == "function") return o.$$typeof === wo ? null : o.displayName || o.name || null;
        if (typeof o == "string") return o;
        switch (o) {
            case m:
                return "Fragment";
            case h:
                return "Portal";
            case y:
                return "Profiler";
            case x:
                return "StrictMode";
            case _:
                return "Suspense";
            case O:
                return "SuspenseList"
        }
        if (typeof o == "object") switch (o.$$typeof) {
            case R:
                return (o.displayName || "Context") + ".Provider";
            case S:
                return (o._context.displayName || "Context") + ".Consumer";
            case A:
                var f = o.render;
                return o = o.displayName, o || (o = f.displayName || f.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
            case k:
                return f = o.displayName || null, f !== null ? f : Rr(o.type) || "Memo";
            case U:
                f = o._payload, o = o._init;
                try {
                    return Rr(o(f))
                } catch {}
        }
        return null
    }
    var Mc = {},
        u = null;

    function g(o, f) {
        if (o !== f) {
            o.context._currentValue = o.parentValue, o = o.parent;
            var b = f.parent;
            if (o === null) {
                if (b !== null) throw Error(l(401))
            } else {
                if (b === null) throw Error(l(401));
                g(o, b)
            }
            f.context._currentValue = f.value
        }
    }

    function p(o) {
        o.context._currentValue = o.parentValue, o = o.parent, o !== null && p(o)
    }

    function C(o) {
        var f = o.parent;
        f !== null && C(f), o.context._currentValue = o.value
    }

    function T(o, f) {
        if (o.context._currentValue = o.parentValue, o = o.parent, o === null) throw Error(l(402));
        o.depth === f.depth ? g(o, f) : T(o, f)
    }

    function D(o, f) {
        var b = f.parent;
        if (b === null) throw Error(l(402));
        o.depth === b.depth ? g(o, b) : D(o, b), f.context._currentValue = f.value
    }

    function H(o) {
        var f = u;
        f !== o && (f === null ? C(o) : o === null ? p(f) : f.depth === o.depth ? g(f, o) : f.depth > o.depth ? T(f, o) : D(f, o), u = o)
    }
    var W = {
            isMounted: function() {
                return !1
            },
            enqueueSetState: function(o, f) {
                o = o._reactInternals, o.queue !== null && o.queue.push(f)
            },
            enqueueReplaceState: function(o, f) {
                o = o._reactInternals, o.replace = !0, o.queue = [f]
            },
            enqueueForceUpdate: function() {}
        },
        K = {
            id: 1,
            overflow: ""
        };

    function re(o, f, b) {
        var N = o.id;
        o = o.overflow;
        var M = 32 - pe(N) - 1;
        N &= ~(1 << M), b += 1;
        var z = 32 - pe(f) + M;
        if (30 < z) {
            var B = M - M % 5;
            return z = (N & (1 << B) - 1).toString(32), N >>= B, M -= B, {
                id: 1 << 32 - pe(f) + M | b << M | N,
                overflow: z + o
            }
        }
        return {
            id: 1 << z | b << M | N,
            overflow: o
        }
    }
    var pe = Math.clz32 ? Math.clz32 : Ge,
        he = Math.log,
        Ee = Math.LN2;

    function Ge(o) {
        return o >>>= 0, o === 0 ? 32 : 31 - (he(o) / Ee | 0) | 0
    }
    var we = Error(l(460));

    function ze() {}

    function mt(o, f, b) {
        switch (b = o[b], b === void 0 ? o.push(f) : b !== f && (f.then(ze, ze), f = b), f.status) {
            case "fulfilled":
                return f.value;
            case "rejected":
                throw f.reason;
            default:
                switch (typeof f.status == "string" ? f.then(ze, ze) : (o = f, o.status = "pending", o.then(function(N) {
                        if (f.status === "pending") {
                            var M = f;
                            M.status = "fulfilled", M.value = N
                        }
                    }, function(N) {
                        if (f.status === "pending") {
                            var M = f;
                            M.status = "rejected", M.reason = N
                        }
                    })), f.status) {
                    case "fulfilled":
                        return f.value;
                    case "rejected":
                        throw f.reason
                }
                throw Qe = f, we
        }
    }
    var Qe = null;

    function tt() {
        if (Qe === null) throw Error(l(459));
        var o = Qe;
        return Qe = null, o
    }

    function $e(o, f) {
        return o === f && (o !== 0 || 1 / o === 1 / f) || o !== o && f !== f
    }
    var ft = typeof Object.is == "function" ? Object.is : $e,
        Je = null,
        Rt = null,
        nn = null,
        ln = null,
        wt = null,
        Ye = null,
        Yt = !1,
        tl = !1,
        wa = 0,
        rn = 0,
        ka = -1,
        za = 0,
        da = null,
        Pa = null,
        di = 0;

    function sn() {
        if (Je === null) throw Error(l(321));
        return Je
    }

    function fi() {
        if (0 < di) throw Error(l(312));
        return {
            memoizedState: null,
            queue: null,
            next: null
        }
    }

    function hi() {
        return Ye === null ? wt === null ? (Yt = !1, wt = Ye = fi()) : (Yt = !0, Ye = wt) : Ye.next === null ? (Yt = !1, Ye = Ye.next = fi()) : (Yt = !0, Ye = Ye.next), Ye
    }

    function Da() {
        var o = da;
        return da = null, o
    }

    function Gl() {
        ln = nn = Rt = Je = null, tl = !1, wt = null, di = 0, Ye = Pa = null
    }

    function xl(o, f) {
        return typeof f == "function" ? f(o) : f
    }

    function va(o, f, b) {
        if (Je = sn(), Ye = hi(), Yt) {
            var N = Ye.queue;
            if (f = N.dispatch, Pa !== null && (b = Pa.get(N), b !== void 0)) {
                Pa.delete(N), N = Ye.memoizedState;
                do N = o(N, b.action), b = b.next; while (b !== null);
                return Ye.memoizedState = N, [N, f]
            }
            return [Ye.memoizedState, f]
        }
        return o = o === xl ? typeof f == "function" ? f() : f : b !== void 0 ? b(f) : f, Ye.memoizedState = o, o = Ye.queue = {
            last: null,
            dispatch: null
        }, o = o.dispatch = Na.bind(null, Je, o), [Ye.memoizedState, o]
    }

    function Cs(o, f) {
        if (Je = sn(), Ye = hi(), f = f === void 0 ? null : f, Ye !== null) {
            var b = Ye.memoizedState;
            if (b !== null && f !== null) {
                var N = b[1];
                e: if (N === null) N = !1;
                    else {
                        for (var M = 0; M < N.length && M < f.length; M++)
                            if (!ft(f[M], N[M])) {
                                N = !1;
                                break e
                            } N = !0
                    }
                if (N) return b[0]
            }
        }
        return o = o(), Ye.memoizedState = [o, f], o
    }

    function Na(o, f, b) {
        if (25 <= di) throw Error(l(301));
        if (o === Je)
            if (tl = !0, o = {
                    action: b,
                    next: null
                }, Pa === null && (Pa = new Map), b = Pa.get(f), b === void 0) Pa.set(f, o);
            else {
                for (f = b; f.next !== null;) f = f.next;
                f.next = o
            }
    }

    function gi() {
        throw Error(l(394))
    }

    function mi() {
        throw Error(l(479))
    }

    function Qi(o, f, b) {
        sn();
        var N = rn++,
            M = nn;
        if (typeof o.$$FORM_ACTION == "function") {
            var z = null,
                B = ln;
            M = M.formState;
            var X = o.$$IS_SIGNATURE_EQUAL;
            if (M !== null && typeof X == "function") {
                var G = M[1];
                X.call(o, M[2], M[3]) && (z = b !== void 0 ? "p" + b : "k" + vt(JSON.stringify([B, null, N]), 0), G === z && (ka = N, f = M[0]))
            }
            var q = o.bind(null, f);
            return o = function(le) {
                q(le)
            }, typeof q.$$FORM_ACTION == "function" && (o.$$FORM_ACTION = function(le) {
                le = q.$$FORM_ACTION(le), b !== void 0 && (b += "", le.action = b);
                var de = le.data;
                return de && (z === null && (z = b !== void 0 ? "p" + b : "k" + vt(JSON.stringify([B, null, N]), 0)), de.append("$ACTION_KEY", z)), le
            }), [f, o, !1]
        }
        var ce = o.bind(null, f);
        return [f, function(le) {
            ce(le)
        }, !1]
    }

    function Wi(o) {
        var f = za;
        return za += 1, da === null && (da = []), mt(da, o, f)
    }

    function cn() {
        throw Error(l(393))
    }

    function ba() {}
    var Va = {
        readContext: function(o) {
            return o._currentValue
        },
        use: function(o) {
            if (o !== null && typeof o == "object") {
                if (typeof o.then == "function") return Wi(o);
                if (o.$$typeof === R) return o._currentValue
            }
            throw Error(l(438, String(o)))
        },
        useContext: function(o) {
            return sn(), o._currentValue
        },
        useMemo: Cs,
        useReducer: va,
        useRef: function(o) {
            Je = sn(), Ye = hi();
            var f = Ye.memoizedState;
            return f === null ? (o = {
                current: o
            }, Ye.memoizedState = o) : f
        },
        useState: function(o) {
            return va(xl, o)
        },
        useInsertionEffect: ba,
        useLayoutEffect: ba,
        useCallback: function(o, f) {
            return Cs(function() {
                return o
            }, f)
        },
        useImperativeHandle: ba,
        useEffect: ba,
        useDebugValue: ba,
        useDeferredValue: function(o, f) {
            return sn(), f !== void 0 ? f : o
        },
        useTransition: function() {
            return sn(), [!1, gi]
        },
        useId: function() {
            var o = Rt.treeContext,
                f = o.overflow;
            o = o.id, o = (o & ~(1 << 32 - pe(o) - 1)).toString(32) + f;
            var b = It;
            if (b === null) throw Error(l(404));
            return f = wa++, o = ":" + b.idPrefix + "R" + o, 0 < f && (o += "H" + f.toString(32)), o + ":"
        },
        useSyncExternalStore: function(o, f, b) {
            if (b === void 0) throw Error(l(407));
            return b()
        },
        useCacheRefresh: function() {
            return cn
        },
        useMemoCache: function(o) {
            for (var f = Array(o), b = 0; b < o; b++) f[b] = fe;
            return f
        },
        useHostTransitionStatus: function() {
            return sn(), rs
        },
        useOptimistic: function(o) {
            return sn(), [o, mi]
        }
    };
    Va.useFormState = Qi, Va.useActionState = Qi;
    var It = null,
        al = {
            getCacheForType: function() {
                throw Error(l(248))
            }
        },
        nl, vi;

    function pl(o) {
        if (nl === void 0) try {
            throw Error()
        } catch (b) {
            var f = b.stack.trim().match(/\n( *(at )?)/);
            nl = f && f[1] || "", vi = -1 < b.stack.indexOf(`
    at`) ? " (<anonymous>)" : -1 < b.stack.indexOf("@") ? "@unknown:0:0" : ""
        }
        return `
` + nl + o + vi
    }
    var kn = !1;

    function Dt(o, f) {
        if (!o || kn) return "";
        kn = !0;
        var b = Error.prepareStackTrace;
        Error.prepareStackTrace = void 0;
        try {
            var N = {
                DetermineComponentFrameRoot: function() {
                    try {
                        if (f) {
                            var le = function() {
                                throw Error()
                            };
                            if (Object.defineProperty(le.prototype, "props", {
                                    set: function() {
                                        throw Error()
                                    }
                                }), typeof Reflect == "object" && Reflect.construct) {
                                try {
                                    Reflect.construct(le, [])
                                } catch (ge) {
                                    var de = ge
                                }
                                Reflect.construct(o, [], le)
                            } else {
                                try {
                                    le.call()
                                } catch (ge) {
                                    de = ge
                                }
                                o.call(le.prototype)
                            }
                        } else {
                            try {
                                throw Error()
                            } catch (ge) {
                                de = ge
                            }(le = o()) && typeof le.catch == "function" && le.catch(function() {})
                        }
                    } catch (ge) {
                        if (ge && de && typeof ge.stack == "string") return [ge.stack, de.stack]
                    }
                    return [null, null]
                }
            };
            N.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
            var M = Object.getOwnPropertyDescriptor(N.DetermineComponentFrameRoot, "name");
            M && M.configurable && Object.defineProperty(N.DetermineComponentFrameRoot, "name", {
                value: "DetermineComponentFrameRoot"
            });
            var z = N.DetermineComponentFrameRoot(),
                B = z[0],
                X = z[1];
            if (B && X) {
                var G = B.split(`
`),
                    q = X.split(`
`);
                for (M = N = 0; N < G.length && !G[N].includes("DetermineComponentFrameRoot");) N++;
                for (; M < q.length && !q[M].includes("DetermineComponentFrameRoot");) M++;
                if (N === G.length || M === q.length)
                    for (N = G.length - 1, M = q.length - 1; 1 <= N && 0 <= M && G[N] !== q[M];) M--;
                for (; 1 <= N && 0 <= M; N--, M--)
                    if (G[N] !== q[M]) {
                        if (N !== 1 || M !== 1)
                            do
                                if (N--, M--, 0 > M || G[N] !== q[M]) {
                                    var ce = `
` + G[N].replace(" at new ", " at ");
                                    return o.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", o.displayName)), ce
                                } while (1 <= N && 0 <= M);
                        break
                    }
            }
        } finally {
            kn = !1, Error.prepareStackTrace = b
        }
        return (b = o ? o.displayName || o.name : "") ? pl(b) : ""
    }

    function Lt(o) {
        if (typeof o == "string") return pl(o);
        if (typeof o == "function") return o.prototype && o.prototype.isReactComponent ? (o = Dt(o, !0), o) : Dt(o, !1);
        if (typeof o == "object" && o !== null) {
            switch (o.$$typeof) {
                case A:
                    return Dt(o.render, !1);
                case k:
                    return Dt(o.type, !1);
                case U:
                    var f = o,
                        b = f._payload;
                    f = f._init;
                    try {
                        o = f(b)
                    } catch {
                        return pl("Lazy")
                    }
                    return Lt(o)
            }
            if (typeof o.name == "string") return b = o.env, pl(o.name + (b ? " [" + b + "]" : ""))
        }
        switch (o) {
            case O:
                return pl("SuspenseList");
            case _:
                return pl("Suspense")
        }
        return ""
    }

    function qe(o) {
        if (typeof o == "object" && o !== null && typeof o.environmentName == "string") {
            var f = o.environmentName;
            o = [o].slice(0), typeof o[0] == "string" ? o.splice(0, 1, "%c%s%c " + o[0], "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", " " + f + " ", "") : o.splice(0, 0, "%c%s%c ", "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", " " + f + " ", ""), o.unshift(console), f = So.apply(console.error, o), f()
        } else console.error(o);
        return null
    }

    function Kt() {}

    function xa(o, f, b, N, M, z, B, X, G, q, ce) {
        var le = new Set;
        this.destination = null, this.flushScheduled = !1, this.resumableState = o, this.renderState = f, this.rootFormatContext = b, this.progressiveChunkSize = N === void 0 ? 12800 : N, this.status = 10, this.fatalError = null, this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0, this.completedRootSegment = null, this.abortableTasks = le, this.pingedTasks = [], this.clientRenderedBoundaries = [], this.completedBoundaries = [], this.partialBoundaries = [], this.trackedPostpones = null, this.onError = M === void 0 ? qe : M, this.onPostpone = q === void 0 ? Kt : q, this.onAllReady = z === void 0 ? Kt : z, this.onShellReady = B === void 0 ? Kt : B, this.onShellError = X === void 0 ? Kt : X, this.onFatalError = G === void 0 ? Kt : G, this.formState = ce === void 0 ? null : ce
    }

    function Ii(o, f, b, N, M, z, B, X, G, q, ce, le) {
        return f = new xa(f, b, N, M, z, B, X, G, q, ce, le), b = rl(f, 0, null, N, !1, !1), b.parentFlushed = !0, o = Sl(f, null, o, -1, null, b, null, f.abortableTasks, null, N, null, K, null, !1), sl(o), f.pingedTasks.push(o), f
    }

    function yl(o, f, b, N, M, z, B, X, G, q, ce) {
        return o = Ii(o, f, b, N, M, z, B, X, G, q, ce, void 0), o.trackedPostpones = {
            workingMap: new Map,
            rootNodes: [],
            rootSlots: null
        }, o
    }
    var Nt = null;

    function Es(o, f) {
        o.pingedTasks.push(f), o.pingedTasks.length === 1 && (o.flushScheduled = o.destination !== null, o.trackedPostpones !== null || o.status === 10 ? _e(function() {
            return fn(o)
        }) : Le(function() {
            return fn(o)
        }))
    }

    function ll(o, f) {
        return {
            status: 0,
            rootSegmentID: -1,
            parentFlushed: !1,
            pendingTasks: 0,
            completedSegments: [],
            byteSize: 0,
            fallbackAbortableTasks: f,
            errorDigest: null,
            contentState: Cc(),
            fallbackState: Cc(),
            trackedContentKeyPath: null,
            trackedFallbackNode: null
        }
    }

    function Sl(o, f, b, N, M, z, B, X, G, q, ce, le, de, ge) {
        o.allPendingTasks++, M === null ? o.pendingRootTasks++ : M.pendingTasks++;
        var ye = {
            replay: null,
            node: b,
            childIndex: N,
            ping: function() {
                return Es(o, ye)
            },
            blockedBoundary: M,
            blockedSegment: z,
            hoistableState: B,
            abortSet: X,
            keyPath: G,
            formatContext: q,
            context: ce,
            treeContext: le,
            componentStack: de,
            thenableState: f,
            isFallback: ge
        };
        return X.add(ye), ye
    }

    function il(o, f, b, N, M, z, B, X, G, q, ce, le, de, ge) {
        o.allPendingTasks++, z === null ? o.pendingRootTasks++ : z.pendingTasks++, b.pendingTasks++;
        var ye = {
            replay: b,
            node: N,
            childIndex: M,
            ping: function() {
                return Es(o, ye)
            },
            blockedBoundary: z,
            blockedSegment: null,
            hoistableState: B,
            abortSet: X,
            keyPath: G,
            formatContext: q,
            context: ce,
            treeContext: le,
            componentStack: de,
            thenableState: f,
            isFallback: ge
        };
        return X.add(ye), ye
    }

    function rl(o, f, b, N, M, z) {
        return {
            status: 0,
            id: -1,
            index: f,
            parentFlushed: !1,
            chunks: [],
            children: [],
            parentFormatContext: N,
            boundary: b,
            lastPushedText: M,
            textEmbedded: z
        }
    }

    function sl(o) {
        var f = o.node;
        if (typeof f == "object" && f !== null) switch (f.$$typeof) {
            case c:
                o.componentStack = {
                    parent: o.componentStack,
                    type: f.type
                }
        }
    }

    function on(o) {
        var f = {};
        return o && Object.defineProperty(f, "componentStack", {
            configurable: !0,
            enumerable: !0,
            get: function() {
                try {
                    var b = "",
                        N = o;
                    do b += Lt(N.type), N = N.parent; while (N);
                    var M = b
                } catch (z) {
                    M = `
Error generating stack: ` + z.message + `
` + z.stack
                }
                return Object.defineProperty(f, "componentStack", {
                    value: M
                }), M
            }
        }), f
    }

    function La(o, f, b) {
        if (o = o.onError, f = o(f, b), f == null || typeof f == "string") return f
    }

    function wl(o, f) {
        var b = o.onShellError,
            N = o.onFatalError;
        b(f), N(f), o.destination !== null ? (o.status = 14, Aa(o.destination, f)) : (o.status = 13, o.fatalError = f)
    }

    function Or(o, f, b, N, M, z) {
        var B = f.thenableState;
        for (f.thenableState = null, Je = {}, Rt = f, nn = o, ln = b, rn = wa = 0, ka = -1, za = 0, da = B, o = N(M, z); tl;) tl = !1, rn = wa = 0, ka = -1, za = 0, di += 1, Ye = null, o = N(M, z);
        return Gl(), o
    }

    function Ki(o, f, b, N, M, z, B) {
        var X = !1;
        if (z !== 0 && o.formState !== null) {
            var G = f.blockedSegment;
            if (G !== null) {
                X = !0, G = G.chunks;
                for (var q = 0; q < z; q++) q === B ? G.push(hc) : G.push(_n)
            }
        }
        z = f.keyPath, f.keyPath = b, M ? (b = f.treeContext, f.treeContext = re(b, 1, 0), aa(o, f, N, -1), f.treeContext = b) : X ? aa(o, f, N, -1) : Jt(o, f, N, -1), f.keyPath = z
    }

    function Cn(o, f, b, N, M, z) {
        if (typeof N == "function")
            if (N.prototype && N.prototype.isReactComponent) {
                var B = M;
                if ("ref" in M) {
                    B = {};
                    for (var X in M) X !== "ref" && (B[X] = M[X])
                }
                var G = N.defaultProps;
                if (G) {
                    B === M && (B = xt({}, B, M));
                    for (var q in G) B[q] === void 0 && (B[q] = G[q])
                }
                M = B, B = Mc, G = N.contextType, typeof G == "object" && G !== null && (B = G._currentValue), B = new N(M, B);
                var ce = B.state !== void 0 ? B.state : null;
                if (B.updater = W, B.props = M, B.state = ce, G = {
                        queue: [],
                        replace: !1
                    }, B._reactInternals = G, z = N.contextType, B.context = typeof z == "object" && z !== null ? z._currentValue : Mc, z = N.getDerivedStateFromProps, typeof z == "function" && (z = z(M, ce), ce = z == null ? ce : xt({}, ce, z), B.state = ce), typeof N.getDerivedStateFromProps != "function" && typeof B.getSnapshotBeforeUpdate != "function" && (typeof B.UNSAFE_componentWillMount == "function" || typeof B.componentWillMount == "function"))
                    if (N = B.state, typeof B.componentWillMount == "function" && B.componentWillMount(), typeof B.UNSAFE_componentWillMount == "function" && B.UNSAFE_componentWillMount(), N !== B.state && W.enqueueReplaceState(B, B.state, null), G.queue !== null && 0 < G.queue.length)
                        if (N = G.queue, z = G.replace, G.queue = null, G.replace = !1, z && N.length === 1) B.state = N[0];
                        else {
                            for (G = z ? N[0] : B.state, ce = !0, z = z ? 1 : 0; z < N.length; z++) q = N[z], q = typeof q == "function" ? q.call(B, G, M, void 0) : q, q != null && (ce ? (ce = !1, G = xt({}, G, q)) : xt(G, q));
                            B.state = G
                        }
                else G.queue = null;
                if (N = B.render(), o.status === 12) throw null;
                M = f.keyPath, f.keyPath = b, Jt(o, f, N, -1), f.keyPath = M
            } else {
                if (N = Or(o, f, b, N, M, void 0), o.status === 12) throw null;
                Ki(o, f, b, N, wa !== 0, rn, ka)
            }
        else if (typeof N == "string")
            if (B = f.blockedSegment, B === null) B = M.children, G = f.formatContext, ce = f.keyPath, f.formatContext = oc(G, N, M), f.keyPath = b, aa(o, f, B, -1), f.formatContext = G, f.keyPath = ce;
            else {
                ce = hs(B.chunks, N, M, o.resumableState, o.renderState, f.hoistableState, f.formatContext, B.lastPushedText, f.isFallback), B.lastPushedText = !1, G = f.formatContext, z = f.keyPath, f.formatContext = oc(G, N, M), f.keyPath = b, aa(o, f, ce, -1), f.formatContext = G, f.keyPath = z;
                e: {
                    switch (f = B.chunks, o = o.resumableState, N) {
                        case "title":
                        case "style":
                        case "script":
                        case "area":
                        case "base":
                        case "br":
                        case "col":
                        case "embed":
                        case "hr":
                        case "img":
                        case "input":
                        case "keygen":
                        case "link":
                        case "meta":
                        case "param":
                        case "source":
                        case "track":
                        case "wbr":
                            break e;
                        case "body":
                            if (1 >= G.insertionMode) {
                                o.hasBody = !0;
                                break e
                            }
                            break;
                        case "html":
                            if (G.insertionMode === 0) {
                                o.hasHtml = !0;
                                break e
                            }
                    }
                    f.push(Sa(N))
                }
                B.lastPushedText = !1
            }
        else {
            switch (N) {
                case ve:
                case te:
                case x:
                case y:
                case m:
                    N = f.keyPath, f.keyPath = b, Jt(o, f, M.children, -1), f.keyPath = N;
                    return;
                case $:
                    M.mode !== "hidden" && (N = f.keyPath, f.keyPath = b, Jt(o, f, M.children, -1), f.keyPath = N);
                    return;
                case O:
                    N = f.keyPath, f.keyPath = b, Jt(o, f, M.children, -1), f.keyPath = N;
                    return;
                case V:
                    throw Error(l(343));
                case _:
                    e: if (f.replay !== null) {
                        N = f.keyPath, f.keyPath = b, b = M.children;
                        try {
                            aa(o, f, b, -1)
                        } finally {
                            f.keyPath = N
                        }
                    } else {
                        N = f.keyPath;
                        var le = f.blockedBoundary,
                            de = f.hoistableState;
                        z = f.blockedSegment, q = M.fallback, M = M.children;
                        var ge = new Set;
                        X = ll(o, ge), o.trackedPostpones !== null && (X.trackedContentKeyPath = b);
                        var ye = rl(o, z.chunks.length, X, f.formatContext, !1, !1);
                        z.children.push(ye), z.lastPushedText = !1;
                        var Ne = rl(o, 0, null, f.formatContext, !1, !1);
                        if (Ne.parentFlushed = !0, o.trackedPostpones !== null) {
                            B = [b[0], "Suspense Fallback", b[2]], G = [B[1], B[2],
                                [], null
                            ], o.trackedPostpones.workingMap.set(B, G), X.trackedFallbackNode = G, f.blockedSegment = ye, f.keyPath = B, ye.status = 6;
                            try {
                                aa(o, f, q, -1), ye.lastPushedText && ye.textEmbedded && ye.chunks.push(Zn), ye.status = 1
                            } catch (Ot) {
                                throw ye.status = o.status === 12 ? 3 : 4, Ot
                            } finally {
                                f.blockedSegment = z, f.keyPath = N
                            }
                            f = Sl(o, null, M, -1, X, Ne, X.contentState, f.abortSet, b, f.formatContext, f.context, f.treeContext, f.componentStack, f.isFallback), sl(f), o.pingedTasks.push(f)
                        } else {
                            f.blockedBoundary = X, f.hoistableState = X.contentState, f.blockedSegment = Ne, f.keyPath = b, Ne.status = 6;
                            try {
                                if (aa(o, f, M, -1), Ne.lastPushedText && Ne.textEmbedded && Ne.chunks.push(Zn), Ne.status = 1, pa(X, Ne), X.pendingTasks === 0 && X.status === 0) {
                                    X.status = 1;
                                    break e
                                }
                            } catch (Ot) {
                                X.status = 4, o.status === 12 ? (Ne.status = 3, B = o.fatalError) : (Ne.status = 4, B = Ot), G = on(f.componentStack), ce = La(o, B, G), X.errorDigest = ce, Nl(o, X)
                            } finally {
                                f.blockedBoundary = le, f.hoistableState = de, f.blockedSegment = z, f.keyPath = N
                            }
                            f = Sl(o, null, q, -1, le, ye, X.fallbackState, ge, [b[0], "Suspense Fallback", b[2]], f.formatContext, f.context, f.treeContext, f.componentStack, !0), sl(f), o.pingedTasks.push(f)
                        }
                    }
                    return
            }
            if (typeof N == "object" && N !== null) switch (N.$$typeof) {
                case A:
                    if ("ref" in M)
                        for (ye in B = {}, M) ye !== "ref" && (B[ye] = M[ye]);
                    else B = M;
                    N = Or(o, f, b, N.render, B, z), Ki(o, f, b, N, wa !== 0, rn, ka);
                    return;
                case k:
                    Cn(o, f, b, N.type, M, z);
                    return;
                case w:
                case R:
                    if (G = M.children, B = f.keyPath, M = M.value, ce = N._currentValue, N._currentValue = M, z = u, u = N = {
                            parent: z,
                            depth: z === null ? 0 : z.depth + 1,
                            context: N,
                            parentValue: ce,
                            value: M
                        }, f.context = N, f.keyPath = b, Jt(o, f, G, -1), o = u, o === null) throw Error(l(403));
                    o.context._currentValue = o.parentValue, o = u = o.parent, f.context = o, f.keyPath = B;
                    return;
                case S:
                    M = M.children, N = M(N._context._currentValue), M = f.keyPath, f.keyPath = b, Jt(o, f, N, -1), f.keyPath = M;
                    return;
                case U:
                    if (B = N._init, N = B(N._payload), o.status === 12) throw null;
                    Cn(o, f, b, N, M, z);
                    return
            }
            throw Error(l(130, N == null ? N : typeof N, ""))
        }
    }

    function zn(o, f, b, N, M) {
        var z = f.replay,
            B = f.blockedBoundary,
            X = rl(o, 0, null, f.formatContext, !1, !1);
        X.id = b, X.parentFlushed = !0;
        try {
            f.replay = null, f.blockedSegment = X, aa(o, f, N, M), X.status = 1, B === null ? o.completedRootSegment = X : (pa(B, X), B.parentFlushed && o.partialBoundaries.push(B))
        } finally {
            f.replay = z, f.blockedSegment = null
        }
    }

    function Jt(o, f, b, N) {
        f.replay !== null && typeof f.replay.slots == "number" ? zn(o, f, f.replay.slots, b, N) : (f.node = b, f.childIndex = N, b = f.componentStack, sl(f), Dn(o, f), f.componentStack = b)
    }

    function Dn(o, f) {
        var b = f.node,
            N = f.childIndex;
        if (b !== null) {
            if (typeof b == "object") {
                switch (b.$$typeof) {
                    case c:
                        var M = b.type,
                            z = b.key,
                            B = b.props;
                        b = B.ref;
                        var X = b !== void 0 ? b : null,
                            G = Rr(M),
                            q = z ?? (N === -1 ? 0 : N);
                        if (z = [f.keyPath, G, q], f.replay !== null) e: {
                            var ce = f.replay;
                            for (N = ce.nodes, b = 0; b < N.length; b++) {
                                var le = N[b];
                                if (q === le[1]) {
                                    if (le.length === 4) {
                                        if (G !== null && G !== le[0]) throw Error(l(490, le[0], G));
                                        var de = le[2];
                                        G = le[3], q = f.node, f.replay = {
                                            nodes: de,
                                            slots: G,
                                            pendingTasks: 1
                                        };
                                        try {
                                            if (Cn(o, f, z, M, B, X), f.replay.pendingTasks === 1 && 0 < f.replay.nodes.length) throw Error(l(488));
                                            f.replay.pendingTasks--
                                        } catch (Ut) {
                                            if (typeof Ut == "object" && Ut !== null && (Ut === we || typeof Ut.then == "function")) throw f.node === q && (f.replay = ce), Ut;
                                            f.replay.pendingTasks--, B = on(f.componentStack), z = f.blockedBoundary, M = Ut, B = La(o, M, B), un(o, z, de, G, M, B)
                                        }
                                        f.replay = ce
                                    } else {
                                        if (M !== _) throw Error(l(490, "Suspense", Rr(M) || "Unknown"));
                                        t: {
                                            ce = void 0,
                                            M = le[5],
                                            X = le[2],
                                            G = le[3],
                                            q = le[4] === null ? [] : le[4][2],
                                            le = le[4] === null ? null : le[4][3];
                                            var ge = f.keyPath,
                                                ye = f.replay,
                                                Ne = f.blockedBoundary,
                                                Ot = f.hoistableState,
                                                _t = B.children;B = B.fallback;
                                            var Pt = new Set,
                                                yt = ll(o, Pt);yt.parentFlushed = !0,
                                            yt.rootSegmentID = M,
                                            f.blockedBoundary = yt,
                                            f.hoistableState = yt.contentState,
                                            f.keyPath = z,
                                            f.replay = {
                                                nodes: X,
                                                slots: G,
                                                pendingTasks: 1
                                            };
                                            try {
                                                if (aa(o, f, _t, -1), f.replay.pendingTasks === 1 && 0 < f.replay.nodes.length) throw Error(l(488));
                                                if (f.replay.pendingTasks--, yt.pendingTasks === 0 && yt.status === 0) {
                                                    yt.status = 1, o.completedBoundaries.push(yt);
                                                    break t
                                                }
                                            } catch (Ut) {
                                                yt.status = 4, de = on(f.componentStack), ce = La(o, Ut, de), yt.errorDigest = ce, f.replay.pendingTasks--, o.clientRenderedBoundaries.push(yt)
                                            } finally {
                                                f.blockedBoundary = Ne, f.hoistableState = Ot, f.replay = ye, f.keyPath = ge
                                            }
                                            f = il(o, null, {
                                                nodes: q,
                                                slots: le,
                                                pendingTasks: 0
                                            }, B, -1, Ne, yt.fallbackState, Pt, [z[0], "Suspense Fallback", z[2]], f.formatContext, f.context, f.treeContext, f.componentStack, !0),
                                            sl(f),
                                            o.pingedTasks.push(f)
                                        }
                                    }
                                    N.splice(b, 1);
                                    break e
                                }
                            }
                        }
                        else Cn(o, f, z, M, B, X);
                        return;
                    case h:
                        throw Error(l(257));
                    case U:
                        if (de = b._init, b = de(b._payload), o.status === 12) throw null;
                        Jt(o, f, b, N);
                        return
                }
                if (be(b)) {
                    cl(o, f, b, N);
                    return
                }
                if (b === null || typeof b != "object" ? de = null : (de = Se && b[Se] || b["@@iterator"], de = typeof de == "function" ? de : null), de && (de = de.call(b))) {
                    if (b = de.next(), !b.done) {
                        B = [];
                        do B.push(b.value), b = de.next(); while (!b.done);
                        cl(o, f, B, N)
                    }
                    return
                }
                if (typeof b.then == "function") return f.thenableState = null, Jt(o, f, Wi(b), N);
                if (b.$$typeof === R) return Jt(o, f, b._currentValue, N);
                throw N = Object.prototype.toString.call(b), Error(l(31, N === "[object Object]" ? "object with keys {" + Object.keys(b).join(", ") + "}" : N))
            }
            typeof b == "string" ? (N = f.blockedSegment, N !== null && (N.lastPushedText = co(N.chunks, b, o.renderState, N.lastPushedText))) : (typeof b == "number" || typeof b == "bigint") && (N = f.blockedSegment, N !== null && (N.lastPushedText = co(N.chunks, "" + b, o.renderState, N.lastPushedText)))
        }
    }

    function cl(o, f, b, N) {
        var M = f.keyPath;
        if (N !== -1 && (f.keyPath = [f.keyPath, "Fragment", N], f.replay !== null)) {
            for (var z = f.replay, B = z.nodes, X = 0; X < B.length; X++) {
                var G = B[X];
                if (G[1] === N) {
                    N = G[2], G = G[3], f.replay = {
                        nodes: N,
                        slots: G,
                        pendingTasks: 1
                    };
                    try {
                        if (cl(o, f, b, -1), f.replay.pendingTasks === 1 && 0 < f.replay.nodes.length) throw Error(l(488));
                        f.replay.pendingTasks--
                    } catch (le) {
                        if (typeof le == "object" && le !== null && (le === we || typeof le.then == "function")) throw le;
                        f.replay.pendingTasks--, b = on(f.componentStack);
                        var q = f.blockedBoundary,
                            ce = le;
                        b = La(o, ce, b), un(o, q, N, G, ce, b)
                    }
                    f.replay = z, B.splice(X, 1);
                    break
                }
            }
            f.keyPath = M;
            return
        }
        if (z = f.treeContext, B = b.length, f.replay !== null && (X = f.replay.slots, X !== null && typeof X == "object")) {
            for (N = 0; N < B; N++) G = b[N], f.treeContext = re(z, B, N), q = X[N], typeof q == "number" ? (zn(o, f, q, G, N), delete X[N]) : aa(o, f, G, N);
            f.treeContext = z, f.keyPath = M;
            return
        }
        for (X = 0; X < B; X++) N = b[X], f.treeContext = re(z, B, X), aa(o, f, N, X);
        f.treeContext = z, f.keyPath = M
    }

    function Nl(o, f) {
        o = o.trackedPostpones, o !== null && (f = f.trackedContentKeyPath, f !== null && (f = o.workingMap.get(f), f !== void 0 && (f.length = 4, f[2] = [], f[3] = null)))
    }

    function _r(o, f, b) {
        return il(o, b, f.replay, f.node, f.childIndex, f.blockedBoundary, f.hoistableState, f.abortSet, f.keyPath, f.formatContext, f.context, f.treeContext, f.componentStack, f.isFallback)
    }

    function Ts(o, f, b) {
        var N = f.blockedSegment,
            M = rl(o, N.chunks.length, null, f.formatContext, N.lastPushedText, !0);
        return N.children.push(M), N.lastPushedText = !1, Sl(o, b, f.node, f.childIndex, f.blockedBoundary, M, f.hoistableState, f.abortSet, f.keyPath, f.formatContext, f.context, f.treeContext, f.componentStack, f.isFallback)
    }

    function aa(o, f, b, N) {
        var M = f.formatContext,
            z = f.context,
            B = f.keyPath,
            X = f.treeContext,
            G = f.componentStack,
            q = f.blockedSegment;
        if (q === null) try {
            return Jt(o, f, b, N)
        } catch (de) {
            if (Gl(), b = de === we ? tt() : de, typeof b == "object" && b !== null) {
                if (typeof b.then == "function") {
                    N = Da(), o = _r(o, f, N).ping, b.then(o, o), f.formatContext = M, f.context = z, f.keyPath = B, f.treeContext = X, f.componentStack = G, H(z);
                    return
                }
                if (b.message === "Maximum call stack size exceeded") {
                    b = Da(), b = _r(o, f, b), o.pingedTasks.push(b), f.formatContext = M, f.context = z, f.keyPath = B, f.treeContext = X, f.componentStack = G, H(z);
                    return
                }
            }
        } else {
            var ce = q.children.length,
                le = q.chunks.length;
            try {
                return Jt(o, f, b, N)
            } catch (de) {
                if (Gl(), q.children.length = ce, q.chunks.length = le, b = de === we ? tt() : de, typeof b == "object" && b !== null) {
                    if (typeof b.then == "function") {
                        N = Da(), o = Ts(o, f, N).ping, b.then(o, o), f.formatContext = M, f.context = z, f.keyPath = B, f.treeContext = X, f.componentStack = G, H(z);
                        return
                    }
                    if (b.message === "Maximum call stack size exceeded") {
                        b = Da(), b = Ts(o, f, b), o.pingedTasks.push(b), f.formatContext = M, f.context = z, f.keyPath = B, f.treeContext = X, f.componentStack = G, H(z);
                        return
                    }
                }
            }
        }
        throw f.formatContext = M, f.context = z, f.keyPath = B, f.treeContext = X, H(z), b
    }

    function Ac(o) {
        var f = o.blockedBoundary;
        o = o.blockedSegment, o !== null && (o.status = 3, dn(this, f, o))
    }

    function un(o, f, b, N, M, z) {
        for (var B = 0; B < b.length; B++) {
            var X = b[B];
            if (X.length === 4) un(o, f, X[2], X[3], M, z);
            else {
                X = X[5];
                var G = o,
                    q = z,
                    ce = ll(G, new Set);
                ce.parentFlushed = !0, ce.rootSegmentID = X, ce.status = 4, ce.errorDigest = q, ce.parentFlushed && G.clientRenderedBoundaries.push(ce)
            }
        }
        if (b.length = 0, N !== null) {
            if (f === null) throw Error(l(487));
            if (f.status !== 4 && (f.status = 4, f.errorDigest = z, f.parentFlushed && o.clientRenderedBoundaries.push(f)), typeof N == "object")
                for (var le in N) delete N[le]
        }
    }

    function Yl(o, f, b) {
        var N = o.blockedBoundary,
            M = o.blockedSegment;
        if (M !== null) {
            if (M.status === 6) return;
            M.status = 3
        }
        if (M = on(o.componentStack), N === null) {
            if (f.status !== 13 && f.status !== 14) {
                if (N = o.replay, N === null) {
                    La(f, b, M), wl(f, b);
                    return
                }
                N.pendingTasks--, N.pendingTasks === 0 && 0 < N.nodes.length && (o = La(f, b, M), un(f, null, N.nodes, N.slots, b, o)), f.pendingRootTasks--, f.pendingRootTasks === 0 && Xl(f)
            }
        } else N.pendingTasks--, N.status !== 4 && (N.status = 4, o = La(f, b, M), N.status = 4, N.errorDigest = o, Nl(f, N), N.parentFlushed && f.clientRenderedBoundaries.push(N)), N.fallbackAbortableTasks.forEach(function(z) {
            return Yl(z, f, b)
        }), N.fallbackAbortableTasks.clear();
        f.allPendingTasks--, f.allPendingTasks === 0 && Pl(f)
    }

    function jr(o, f) {
        try {
            var b = o.renderState,
                N = b.onHeaders;
            if (N) {
                var M = b.headers;
                if (M) {
                    b.headers = null;
                    var z = M.preconnects;
                    if (M.fontPreloads && (z && (z += ", "), z += M.fontPreloads), M.highImagePreloads && (z && (z += ", "), z += M.highImagePreloads), !f) {
                        var B = b.styles.values(),
                            X = B.next();
                        e: for (; 0 < M.remainingCapacity && !X.done; X = B.next())
                            for (var G = X.value.sheets.values(), q = G.next(); 0 < M.remainingCapacity && !q.done; q = G.next()) {
                                var ce = q.value,
                                    le = ce.props,
                                    de = le.href,
                                    ge = ce.props,
                                    ye = jn(ge.href, "style", {
                                        crossOrigin: ge.crossOrigin,
                                        integrity: ge.integrity,
                                        nonce: ge.nonce,
                                        type: ge.type,
                                        fetchPriority: ge.fetchPriority,
                                        referrerPolicy: ge.referrerPolicy,
                                        media: ge.media
                                    });
                                if (0 <= (M.remainingCapacity -= ye.length + 2)) b.resets.style[de] = Xe, z && (z += ", "), z += ye, b.resets.style[de] = typeof le.crossOrigin == "string" || typeof le.integrity == "string" ? [le.crossOrigin, le.integrity] : Xe;
                                else break e
                            }
                    }
                    N(z ? {
                        Link: z
                    } : {})
                }
            }
        } catch (Ne) {
            La(o, Ne, {})
        }
    }

    function Xl(o) {
        o.trackedPostpones === null && jr(o, !0), o.onShellError = Kt, o = o.onShellReady, o()
    }

    function Pl(o) {
        jr(o, o.trackedPostpones === null ? !0 : o.completedRootSegment === null || o.completedRootSegment.status !== 5), o = o.onAllReady, o()
    }

    function pa(o, f) {
        if (f.chunks.length === 0 && f.children.length === 1 && f.children[0].boundary === null && f.children[0].id === -1) {
            var b = f.children[0];
            b.id = f.id, b.parentFlushed = !0, b.status === 1 && pa(o, b)
        } else o.completedSegments.push(f)
    }

    function dn(o, f, b) {
        if (f === null) {
            if (b !== null && b.parentFlushed) {
                if (o.completedRootSegment !== null) throw Error(l(389));
                o.completedRootSegment = b
            }
            o.pendingRootTasks--, o.pendingRootTasks === 0 && Xl(o)
        } else f.pendingTasks--, f.status !== 4 && (f.pendingTasks === 0 ? (f.status === 0 && (f.status = 1), b !== null && b.parentFlushed && b.status === 1 && pa(f, b), f.parentFlushed && o.completedBoundaries.push(f), f.status === 1 && (f.fallbackAbortableTasks.forEach(Ac, o), f.fallbackAbortableTasks.clear())) : b !== null && b.parentFlushed && b.status === 1 && (pa(f, b), f.completedSegments.length === 1 && f.parentFlushed && o.partialBoundaries.push(f)));
        o.allPendingTasks--, o.allPendingTasks === 0 && Pl(o)
    }

    function fn(o) {
        if (o.status !== 14 && o.status !== 13) {
            var f = u,
                b = Pn.H;
            Pn.H = Va;
            var N = Pn.A;
            Pn.A = al;
            var M = Nt;
            Nt = o;
            var z = It;
            It = o.resumableState;
            try {
                var B = o.pingedTasks,
                    X;
                for (X = 0; X < B.length; X++) {
                    var G = B[X],
                        q = o,
                        ce = G.blockedSegment;
                    if (ce === null) {
                        var le = q;
                        if (G.replay.pendingTasks !== 0) {
                            H(G.context);
                            try {
                                if (typeof G.replay.slots == "number" ? zn(le, G, G.replay.slots, G.node, G.childIndex) : Dn(le, G), G.replay.pendingTasks === 1 && 0 < G.replay.nodes.length) throw Error(l(488));
                                G.replay.pendingTasks--, G.abortSet.delete(G), dn(le, G.blockedBoundary, null)
                            } catch (Za) {
                                Gl();
                                var de = Za === we ? tt() : Za;
                                if (typeof de == "object" && de !== null && typeof de.then == "function") {
                                    var ge = G.ping;
                                    de.then(ge, ge), G.thenableState = Da()
                                } else {
                                    G.replay.pendingTasks--, G.abortSet.delete(G);
                                    var ye = on(G.componentStack);
                                    q = void 0;
                                    var Ne = le,
                                        Ot = G.blockedBoundary,
                                        _t = le.status === 12 ? le.fatalError : de,
                                        Pt = G.replay.nodes,
                                        yt = G.replay.slots;
                                    q = La(Ne, _t, ye), un(Ne, Ot, Pt, yt, _t, q), le.pendingRootTasks--, le.pendingRootTasks === 0 && Xl(le), le.allPendingTasks--, le.allPendingTasks === 0 && Pl(le)
                                }
                            } finally {}
                        }
                    } else if (le = void 0, Ne = ce, Ne.status === 0) {
                        Ne.status = 6, H(G.context);
                        var Ut = Ne.children.length,
                            qt = Ne.chunks.length;
                        try {
                            Dn(q, G), Ne.lastPushedText && Ne.textEmbedded && Ne.chunks.push(Zn), G.abortSet.delete(G), Ne.status = 1, dn(q, G.blockedBoundary, Ne)
                        } catch (Za) {
                            Gl(), Ne.children.length = Ut, Ne.chunks.length = qt;
                            var Ua = Za === we ? tt() : q.status === 12 ? q.fatalError : Za;
                            if (typeof Ua == "object" && Ua !== null && typeof Ua.then == "function") {
                                Ne.status = 0, G.thenableState = Da();
                                var Ie = G.ping;
                                Ua.then(Ie, Ie)
                            } else {
                                var Et = on(G.componentStack);
                                G.abortSet.delete(G), Ne.status = 4;
                                var na = G.blockedBoundary;
                                le = La(q, Ua, Et), na === null ? wl(q, Ua) : (na.pendingTasks--, na.status !== 4 && (na.status = 4, na.errorDigest = le, Nl(q, na), na.parentFlushed && q.clientRenderedBoundaries.push(na))), q.allPendingTasks--, q.allPendingTasks === 0 && Pl(q)
                            }
                        } finally {}
                    }
                }
                B.splice(0, X), o.destination !== null && Zl(o, o.destination)
            } catch (Za) {
                La(o, Za, {}), wl(o, Za)
            } finally {
                It = z, Pn.H = b, Pn.A = N, b === Va && H(f), Nt = M
            }
        }
    }

    function Ln(o, f, b, N) {
        switch (b.parentFlushed = !0, b.status) {
            case 0:
                b.id = o.nextSegmentId++;
            case 5:
                return N = b.id, b.lastPushedText = !1, b.textEmbedded = !1, o = o.renderState, F(f, en), F(f, o.placeholderPrefix), o = oe(N.toString(16)), F(f, o), ee(f, gc);
            case 1:
                b.status = 2;
                var M = !0,
                    z = b.chunks,
                    B = 0;
                b = b.children;
                for (var X = 0; X < b.length; X++) {
                    for (M = b[X]; B < M.index; B++) F(f, z[B]);
                    M = Ca(o, f, M, N)
                }
                for (; B < z.length - 1; B++) F(f, z[B]);
                return B < z.length && (M = ee(f, z[B])), M;
            default:
                throw Error(l(390))
        }
    }

    function Ca(o, f, b, N) {
        var M = b.boundary;
        if (M === null) return Ln(o, f, b, N);
        if (M.parentFlushed = !0, M.status === 4) M = M.errorDigest, ee(f, mr), F(f, Xa), M && (F(f, go), F(f, oe(He(M))), F(f, Ri)), ee(f, mc), Ln(o, f, b, N);
        else if (M.status !== 1) M.status === 0 && (M.rootSegmentID = o.nextSegmentId++), 0 < M.completedSegments.length && o.partialBoundaries.push(M), ri(f, o.renderState, M.rootSegmentID), N && (M = M.fallbackState, M.styles.forEach(ui, N), M.stylesheets.forEach(el, N)), Ln(o, f, b, N);
        else if (M.byteSize > o.progressiveChunkSize) M.rootSegmentID = o.nextSegmentId++, o.completedBoundaries.push(M), ri(f, o.renderState, M.rootSegmentID), Ln(o, f, b, N);
        else {
            if (N && (b = M.contentState, b.styles.forEach(ui, N), b.stylesheets.forEach(el, N)), ee(f, ho), b = M.completedSegments, b.length !== 1) throw Error(l(391));
            Ca(o, f, b[0], N)
        }
        return ee(f, su)
    }

    function En(o, f, b, N) {
        return Di(f, o.renderState, b.parentFormatContext, b.id), Ca(o, f, b, N), yn(f, b.parentFormatContext)
    }

    function Ct(o, f, b) {
        for (var N = b.completedSegments, M = 0; M < N.length; M++) Vl(o, f, b, N[M]);
        N.length = 0, Nr(f, b.contentState, o.renderState), N = o.resumableState, o = o.renderState, M = b.rootSegmentID, b = b.contentState;
        var z = o.stylesToHoist;
        return o.stylesToHoist = !1, F(f, o.startInlineScript), z ? N.instructions & 2 ? N.instructions & 8 ? F(f, cu) : (N.instructions |= 8, F(f, Sr)) : (N.instructions |= 10, F(f, yr)) : N.instructions & 2 ? F(f, Ul) : (N.instructions |= 2, F(f, ja)), N = oe(M.toString(16)), F(f, o.boundaryPrefix), F(f, N), F(f, pc), F(f, o.segmentPrefix), F(f, N), z ? (F(f, ms), Nc(f, b)) : F(f, Bi), b = ee(f, vs), $a(f, o) && b
    }

    function Vl(o, f, b, N) {
        if (N.status === 2) return !0;
        var M = b.contentState,
            z = N.id;
        if (z === -1) {
            if ((N.id = b.rootSegmentID) === -1) throw Error(l(392));
            return En(o, f, N, M)
        }
        return z === b.rootSegmentID ? En(o, f, N, M) : (En(o, f, N, M), b = o.resumableState, o = o.renderState, F(f, o.startInlineScript), b.instructions & 1 ? F(f, Li) : (b.instructions |= 1, F(f, xc)), F(f, o.segmentPrefix), z = oe(z.toString(16)), F(f, z), F(f, bl), F(f, o.placeholderPrefix), F(f, z), f = ee(f, Ui), f)
    }

    function Zl(o, f) {
        Be = new Uint8Array(2048), Ae = 0;
        try {
            if (!(0 < o.pendingRootTasks)) {
                var b, N = o.completedRootSegment;
                if (N !== null) {
                    if (N.status === 5) return;
                    var M = o.renderState,
                        z = M.htmlChunks,
                        B = M.headChunks,
                        X;
                    if (z) {
                        for (X = 0; X < z.length; X++) F(f, z[X]);
                        if (B)
                            for (X = 0; X < B.length; X++) F(f, B[X]);
                        else F(f, ea("head")), F(f, dt)
                    } else if (B)
                        for (X = 0; X < B.length; X++) F(f, B[X]);
                    var G = M.charsetChunks;
                    for (X = 0; X < G.length; X++) F(f, G[X]);
                    G.length = 0, M.preconnects.forEach(Sn, f), M.preconnects.clear();
                    var q = M.viewportChunks;
                    for (X = 0; X < q.length; X++) F(f, q[X]);
                    q.length = 0, M.fontPreloads.forEach(Sn, f), M.fontPreloads.clear(), M.highImagePreloads.forEach(Sn, f), M.highImagePreloads.clear(), M.styles.forEach(Ss, f);
                    var ce = M.importMapChunks;
                    for (X = 0; X < ce.length; X++) F(f, ce[X]);
                    ce.length = 0, M.bootstrapScripts.forEach(Sn, f), M.scripts.forEach(Sn, f), M.scripts.clear(), M.bulkPreloads.forEach(Sn, f), M.bulkPreloads.clear();
                    var le = M.hoistableChunks;
                    for (X = 0; X < le.length; X++) F(f, le[X]);
                    le.length = 0, z && B === null && F(f, Sa("head")), Ca(o, f, N, null), o.completedRootSegment = null, $a(f, o.renderState)
                }
                var de = o.renderState;
                N = 0;
                var ge = de.viewportChunks;
                for (N = 0; N < ge.length; N++) F(f, ge[N]);
                ge.length = 0, de.preconnects.forEach(Sn, f), de.preconnects.clear(), de.fontPreloads.forEach(Sn, f), de.fontPreloads.clear(), de.highImagePreloads.forEach(Sn, f), de.highImagePreloads.clear(), de.styles.forEach(wn, f), de.scripts.forEach(Sn, f), de.scripts.clear(), de.bulkPreloads.forEach(Sn, f), de.bulkPreloads.clear();
                var ye = de.hoistableChunks;
                for (N = 0; N < ye.length; N++) F(f, ye[N]);
                ye.length = 0;
                var Ne = o.clientRenderedBoundaries;
                for (b = 0; b < Ne.length; b++) {
                    var Ot = Ne[b];
                    de = f;
                    var _t = o.resumableState,
                        Pt = o.renderState,
                        yt = Ot.rootSegmentID,
                        Ut = Ot.errorDigest;
                    F(de, Pt.startInlineScript), _t.instructions & 4 ? F(de, bs) : (_t.instructions |= 4, F(de, Hi)), F(de, Pt.boundaryPrefix), F(de, oe(yt.toString(16))), F(de, xs), Ut && (F(de, ou), F(de, oe(Fi(Ut || ""))));
                    var qt = ee(de, wr);
                    if (!qt) {
                        o.destination = null, b++, Ne.splice(0, b);
                        return
                    }
                }
                Ne.splice(0, b);
                var Ua = o.completedBoundaries;
                for (b = 0; b < Ua.length; b++)
                    if (!Ct(o, f, Ua[b])) {
                        o.destination = null, b++, Ua.splice(0, b);
                        return
                    } Ua.splice(0, b), Me(f), Be = new Uint8Array(2048), Ae = 0;
                var Ie = o.partialBoundaries;
                for (b = 0; b < Ie.length; b++) {
                    var Et = Ie[b];
                    e: {
                        Ne = o,
                        Ot = f;
                        var na = Et.completedSegments;
                        for (qt = 0; qt < na.length; qt++)
                            if (!Vl(Ne, Ot, Et, na[qt])) {
                                qt++, na.splice(0, qt);
                                var Za = !1;
                                break e
                            } na.splice(0, qt),
                        Za = Nr(Ot, Et.contentState, Ne.renderState)
                    }
                    if (!Za) {
                        o.destination = null, b++, Ie.splice(0, b);
                        return
                    }
                }
                Ie.splice(0, b);
                var Qa = o.completedBoundaries;
                for (b = 0; b < Qa.length; b++)
                    if (!Ct(o, f, Qa[b])) {
                        o.destination = null, b++, Qa.splice(0, b);
                        return
                    } Qa.splice(0, b)
            }
        } finally {
            o.allPendingTasks === 0 && o.pingedTasks.length === 0 && o.clientRenderedBoundaries.length === 0 && o.completedBoundaries.length === 0 ? (o.flushScheduled = !1, b = o.resumableState, b.hasBody && F(f, Sa("body")), b.hasHtml && F(f, Sa("html")), Me(f), o.status = 14, f.close(), o.destination = null) : Me(f)
        }
    }

    function Rc(o) {
        o.flushScheduled = o.destination !== null, _e(function() {
            return fn(o)
        }), Le(function() {
            o.status === 10 && (o.status = 11), o.trackedPostpones === null && jr(o, o.pendingRootTasks === 0)
        })
    }

    function hn(o) {
        o.flushScheduled === !1 && o.pingedTasks.length === 0 && o.destination !== null && (o.flushScheduled = !0, Le(function() {
            var f = o.destination;
            f ? Zl(o, f) : o.flushScheduled = !1
        }))
    }

    function Xt(o, f) {
        if (o.status === 13) o.status = 14, Aa(f, o.fatalError);
        else if (o.status !== 14 && o.destination === null) {
            o.destination = f;
            try {
                Zl(o, f)
            } catch (b) {
                La(o, b, {}), wl(o, b)
            }
        }
    }

    function gn(o, f) {
        (o.status === 11 || o.status === 10) && (o.status = 12);
        try {
            var b = o.abortableTasks;
            if (0 < b.size) {
                var N = f === void 0 ? Error(l(432)) : typeof f == "object" && f !== null && typeof f.then == "function" ? Error(l(530)) : f;
                o.fatalError = N, b.forEach(function(M) {
                    return Yl(M, o, N)
                }), b.clear()
            }
            o.destination !== null && Zl(o, o.destination)
        } catch (M) {
            La(o, M, {}), wl(o, M)
        }
    }

    function bi() {
        var o = n.version;
        if (o !== "19.0.0") throw Error(l(527, o, "19.0.0"))
    }
    return bi(), bi(), id.prerender = function(o, f) {
        return new Promise(function(b, N) {
            var M = f ? f.onHeaders : void 0,
                z;
            M && (z = function(ce) {
                M(new Headers(ce))
            });
            var B = so(f ? f.identifierPrefix : void 0, f ? f.unstable_externalRuntimeSrc : void 0, f ? f.bootstrapScriptContent : void 0, f ? f.bootstrapScripts : void 0, f ? f.bootstrapModules : void 0),
                X = yl(o, B, it(B, void 0, f ? f.unstable_externalRuntimeSrc : void 0, f ? f.importMap : void 0, z, f ? f.maxHeadersLength : void 0), Wt(f ? f.namespaceURI : void 0), f ? f.progressiveChunkSize : void 0, f ? f.onError : void 0, function() {
                    var ce = {
                        prelude: new ReadableStream({
                            type: "bytes",
                            pull: function(le) {
                                Xt(X, le)
                            },
                            cancel: function(le) {
                                X.destination = null, gn(X, le)
                            }
                        }, {
                            highWaterMark: 0
                        })
                    };
                    b(ce)
                }, void 0, void 0, N, f ? f.onPostpone : void 0);
            if (f && f.signal) {
                var G = f.signal;
                if (G.aborted) gn(X, G.reason);
                else {
                    var q = function() {
                        gn(X, G.reason), G.removeEventListener("abort", q)
                    };
                    G.addEventListener("abort", q)
                }
            }
            Rc(X)
        })
    }, id.renderToReadableStream = function(o, f) {
        return new Promise(function(b, N) {
            var M, z, B = new Promise(function(ge, ye) {
                    z = ge, M = ye
                }),
                X = f ? f.onHeaders : void 0,
                G;
            X && (G = function(ge) {
                X(new Headers(ge))
            });
            var q = so(f ? f.identifierPrefix : void 0, f ? f.unstable_externalRuntimeSrc : void 0, f ? f.bootstrapScriptContent : void 0, f ? f.bootstrapScripts : void 0, f ? f.bootstrapModules : void 0),
                ce = Ii(o, q, it(q, f ? f.nonce : void 0, f ? f.unstable_externalRuntimeSrc : void 0, f ? f.importMap : void 0, G, f ? f.maxHeadersLength : void 0), Wt(f ? f.namespaceURI : void 0), f ? f.progressiveChunkSize : void 0, f ? f.onError : void 0, z, function() {
                    var ge = new ReadableStream({
                        type: "bytes",
                        pull: function(ye) {
                            Xt(ce, ye)
                        },
                        cancel: function(ye) {
                            ce.destination = null, gn(ce, ye)
                        }
                    }, {
                        highWaterMark: 0
                    });
                    ge.allReady = B, b(ge)
                }, function(ge) {
                    B.catch(function() {}), N(ge)
                }, M, f ? f.onPostpone : void 0, f ? f.formState : void 0);
            if (f && f.signal) {
                var le = f.signal;
                if (le.aborted) gn(ce, le.reason);
                else {
                    var de = function() {
                        gn(ce, le.reason), le.removeEventListener("abort", de)
                    };
                    le.addEventListener("abort", de)
                }
            }
            Rc(ce)
        })
    }, id.version = "19.0.0", id
}
var jv;

function Z2() {
    if (jv) return Kc;
    jv = 1;
    var n, s;
    return n = P2(), s = V2(), Kc.version = n.version, Kc.renderToString = n.renderToString, Kc.renderToStaticMarkup = n.renderToStaticMarkup, Kc.renderToReadableStream = s.renderToReadableStream, s.resume && (Kc.resume = s.resume), Kc
}
var Q2 = Z2();
const W2 = u0(Q2);

function M1(n) {
    var s = n.element,
        l = n.input;
    return function(h) {
        var m = h.container,
            x = s.getBoundingClientRect(),
            y = m.getBoundingClientRect(),
            w = Math.min(l.clientX - x.x, y.width),
            S = Math.min(l.clientY - x.y, y.height);
        return {
            x: w,
            y: S
        }
    }
}

function I2() {
    return {
        x: 0,
        y: 0
    }
}

function A1(n) {
    var s = n.render,
        l = n.nativeSetDragImage,
        c = n.getOffset,
        h = c === void 0 ? I2 : c,
        m = document.createElement("div");
    Object.assign(m.style, {
        position: "fixed",
        top: 0,
        left: 0,
        zIndex: l1,
        pointerEvents: "none"
    }), document.body.append(m);
    var x = s({
        container: m
    });
    queueMicrotask(function() {
        var S = h({
            container: m
        });
        if (Rf()) {
            var R = m.getBoundingClientRect();
            if (R.width === 0) return;
            m.style.left = "-".concat(R.width - 1e-4, "px")
        }
        l == null || l(m, S.x, S.y)
    });

    function y() {
        w(), x == null || x(), document.body.removeChild(m)
    }
    var w = dd({
        onDragStart: y,
        onDrop: y
    })
}
const K2 = (n, s) => n.map(l => {
        const c = s.find(h => h.id === l.id);
        return c ? {
            ...l,
            ...c
        } : l
    }),
    Fh = n => (n == null ? void 0 : n.replace(/[^a-zA-Z0-9]/g, "").toLowerCase()) || "",
    J2 = (n, s) => {
        const l = Fh(s);
        return n.filter(c => {
            const h = Fh(c.id).includes(l),
                m = Fh(c.name).includes(l);
            return h || m
        })
    },
    q2 = n => Ke()((s, l) => {
        const c = n;
        return {
            search: !1,
            setSearch: h => {
                const {
                    renderFilterCards: m
                } = l();
                h ? m("") : s({
                    filterCards: []
                }), s({
                    search: h,
                    text: ""
                })
            },
            text: "",
            setText: h => {
                l().renderFilterCards(h), s({
                    text: h
                })
            },
            filterCards: [],
            renderFilterCards: h => {
                var S;
                const {
                    data: m
                } = Gt.getState(), {
                    cards: x
                } = Fa.getState(), y = (S = m.columns.find(R => R.id === c)) == null ? void 0 : S.cards, w = K2(y, x);
                s({
                    filterCards: J2(w, h)
                })
            }
        }
    }),
    Of = Ke()((n, s) => ({
        container: {},
        getContainer: l => {
            const {
                container: c
            } = s();
            if (c[l]) return c[l];
            {
                const h = q2(l);
                return n(m => ({
                    container: {
                        ...m.container,
                        [l]: h
                    }
                })), h
            }
        },
        deleteContainer: l => n(c => {
            const h = {
                ...c.container
            };
            return delete h[l], {
                container: h
            }
        }),
        closeSearchInContainer: () => {
            const {
                container: l
            } = s();
            Object.keys(l).forEach(c => {
                const {
                    setSearch: h
                } = l[c].getState();
                h(!1)
            })
        }
    })),
    $2 = io(function() {
        const {
            userAgent: s
        } = navigator;
        return s.includes("AppleWebKit") && !s.includes("Chrome")
    });

function R1(n, s) {
    const l = Object.keys(n),
        c = Object.keys(s);
    return l.length !== c.length ? !1 : l.every(h => Object.is(n[h], s[h]))
}
const O1 = "data-block-board-panning";

function Ko(n, s, l) {
    let c = l.initialDeps ?? [],
        h;

    function m() {
        var x, y, w, S;
        let R;
        l.key && ((x = l.debug) != null && x.call(l)) && (R = Date.now());
        const A = n();
        if (!(A.length !== c.length || A.some((k, U) => c[U] !== k))) return h;
        c = A;
        let O;
        if (l.key && ((y = l.debug) != null && y.call(l)) && (O = Date.now()), h = s(...A), l.key && ((w = l.debug) != null && w.call(l))) {
            const k = Math.round((Date.now() - R) * 100) / 100,
                U = Math.round((Date.now() - O) * 100) / 100,
                V = U / 16,
                te = ($, ve) => {
                    for ($ = String($); $.length < ve;) $ = " " + $;
                    return $
                };
            console.info(`%c⏱ ${te(U,5)} /${te(k,5)} ms`, `
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*V,120))}deg 100% 31%);`, l == null ? void 0 : l.key)
        }
        return (S = l == null ? void 0 : l.onChange) == null || S.call(l, h), h
    }
    return m.updateDeps = x => {
        c = x
    }, m
}

function kv(n, s) {
    if (n === void 0) throw new Error("Unexpected undefined");
    return n
}
const e3 = (n, s) => Math.abs(n - s) < 1.01,
    t3 = (n, s, l) => {
        let c;
        return function(...h) {
            n.clearTimeout(c), c = n.setTimeout(() => s.apply(this, h), l)
        }
    },
    zv = n => {
        const {
            offsetWidth: s,
            offsetHeight: l
        } = n;
        return {
            width: s,
            height: l
        }
    },
    a3 = n => n,
    n3 = n => {
        const s = Math.max(n.startIndex - n.overscan, 0),
            l = Math.min(n.endIndex + n.overscan, n.count - 1),
            c = [];
        for (let h = s; h <= l; h++) c.push(h);
        return c
    },
    l3 = (n, s) => {
        const l = n.scrollElement;
        if (!l) return;
        const c = n.targetWindow;
        if (!c) return;
        const h = x => {
            const {
                width: y,
                height: w
            } = x;
            s({
                width: Math.round(y),
                height: Math.round(w)
            })
        };
        if (h(zv(l)), !c.ResizeObserver) return () => {};
        const m = new c.ResizeObserver(x => {
            const y = () => {
                const w = x[0];
                if (w != null && w.borderBoxSize) {
                    const S = w.borderBoxSize[0];
                    if (S) {
                        h({
                            width: S.inlineSize,
                            height: S.blockSize
                        });
                        return
                    }
                }
                h(zv(l))
            };
            n.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(y) : y()
        });
        return m.observe(l, {
            box: "border-box"
        }), () => {
            m.unobserve(l)
        }
    },
    Dv = {
        passive: !0
    },
    Lv = typeof window > "u" ? !0 : "onscrollend" in window,
    i3 = (n, s) => {
        const l = n.scrollElement;
        if (!l) return;
        const c = n.targetWindow;
        if (!c) return;
        let h = 0;
        const m = n.options.useScrollendEvent && Lv ? () => {} : t3(c, () => {
                s(h, !1)
            }, n.options.isScrollingResetDelay),
            x = R => () => {
                const {
                    horizontal: A,
                    isRtl: _
                } = n.options;
                h = A ? l.scrollLeft * (_ && -1 || 1) : l.scrollTop, m(), s(h, R)
            },
            y = x(!0),
            w = x(!1);
        w(), l.addEventListener("scroll", y, Dv);
        const S = n.options.useScrollendEvent && Lv;
        return S && l.addEventListener("scrollend", w, Dv), () => {
            l.removeEventListener("scroll", y), S && l.removeEventListener("scrollend", w)
        }
    },
    r3 = (n, s, l) => {
        if (s != null && s.borderBoxSize) {
            const c = s.borderBoxSize[0];
            if (c) return Math.round(c[l.options.horizontal ? "inlineSize" : "blockSize"])
        }
        return n[l.options.horizontal ? "offsetWidth" : "offsetHeight"]
    },
    s3 = (n, {
        adjustments: s = 0,
        behavior: l
    }, c) => {
        var h, m;
        const x = n + s;
        (m = (h = c.scrollElement) == null ? void 0 : h.scrollTo) == null || m.call(h, {
            [c.options.horizontal ? "left" : "top"]: x,
            behavior: l
        })
    };
class c3 {
    constructor(s) {
        this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.measurementsCache = [], this.itemSizeCache = new Map, this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = new Map, this.observer = (() => {
            let l = null;
            const c = () => l || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : l = new this.targetWindow.ResizeObserver(h => {
                h.forEach(m => {
                    const x = () => {
                        this._measureElement(m.target, m)
                    };
                    this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(x) : x()
                })
            }));
            return {
                disconnect: () => {
                    var h;
                    (h = c()) == null || h.disconnect(), l = null
                },
                observe: h => {
                    var m;
                    return (m = c()) == null ? void 0 : m.observe(h, {
                        box: "border-box"
                    })
                },
                unobserve: h => {
                    var m;
                    return (m = c()) == null ? void 0 : m.unobserve(h)
                }
            }
        })(), this.range = null, this.setOptions = l => {
            Object.entries(l).forEach(([c, h]) => {
                typeof h > "u" && delete l[c]
            }), this.options = {
                debug: !1,
                initialOffset: 0,
                overscan: 1,
                paddingStart: 0,
                paddingEnd: 0,
                scrollPaddingStart: 0,
                scrollPaddingEnd: 0,
                horizontal: !1,
                getItemKey: a3,
                rangeExtractor: n3,
                onChange: () => {},
                measureElement: r3,
                initialRect: {
                    width: 0,
                    height: 0
                },
                scrollMargin: 0,
                gap: 0,
                indexAttribute: "data-index",
                initialMeasurementsCache: [],
                lanes: 1,
                isScrollingResetDelay: 150,
                enabled: !0,
                isRtl: !1,
                useScrollendEvent: !1,
                useAnimationFrameWithResizeObserver: !1,
                ...l
            }
        }, this.notify = l => {
            var c, h;
            (h = (c = this.options).onChange) == null || h.call(c, this, l)
        }, this.maybeNotify = Ko(() => (this.calculateRange(), [this.isScrolling, this.range ? this.range.startIndex : null, this.range ? this.range.endIndex : null]), l => {
            this.notify(l)
        }, {
            key: !1,
            debug: () => this.options.debug,
            initialDeps: [this.isScrolling, this.range ? this.range.startIndex : null, this.range ? this.range.endIndex : null]
        }), this.cleanup = () => {
            this.unsubs.filter(Boolean).forEach(l => l()), this.unsubs = [], this.observer.disconnect(), this.scrollElement = null, this.targetWindow = null
        }, this._didMount = () => () => {
            this.cleanup()
        }, this._willUpdate = () => {
            var l;
            const c = this.options.enabled ? this.options.getScrollElement() : null;
            if (this.scrollElement !== c) {
                if (this.cleanup(), !c) {
                    this.maybeNotify();
                    return
                }
                this.scrollElement = c, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = ((l = this.scrollElement) == null ? void 0 : l.window) ?? null, this.elementsCache.forEach(h => {
                    this.observer.observe(h)
                }), this._scrollToOffset(this.getScrollOffset(), {
                    adjustments: void 0,
                    behavior: void 0
                }), this.unsubs.push(this.options.observeElementRect(this, h => {
                    this.scrollRect = h, this.maybeNotify()
                })), this.unsubs.push(this.options.observeElementOffset(this, (h, m) => {
                    this.scrollAdjustments = 0, this.scrollDirection = m ? this.getScrollOffset() < h ? "forward" : "backward" : null, this.scrollOffset = h, this.isScrolling = m, this.maybeNotify()
                }))
            }
        }, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (l, c) => {
            const h = new Map,
                m = new Map;
            for (let x = c - 1; x >= 0; x--) {
                const y = l[x];
                if (h.has(y.lane)) continue;
                const w = m.get(y.lane);
                if (w == null || y.end > w.end ? m.set(y.lane, y) : y.end < w.end && h.set(y.lane, !0), h.size === this.options.lanes) break
            }
            return m.size === this.options.lanes ? Array.from(m.values()).sort((x, y) => x.end === y.end ? x.index - y.index : x.end - y.end)[0] : void 0
        }, this.getMeasurementOptions = Ko(() => [this.options.count, this.options.paddingStart, this.options.scrollMargin, this.options.getItemKey, this.options.enabled], (l, c, h, m, x) => (this.pendingMeasuredCacheIndexes = [], {
            count: l,
            paddingStart: c,
            scrollMargin: h,
            getItemKey: m,
            enabled: x
        }), {
            key: !1
        }), this.getMeasurements = Ko(() => [this.getMeasurementOptions(), this.itemSizeCache], ({
            count: l,
            paddingStart: c,
            scrollMargin: h,
            getItemKey: m,
            enabled: x
        }, y) => {
            if (!x) return this.measurementsCache = [], this.itemSizeCache.clear(), [];
            this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach(R => {
                this.itemSizeCache.set(R.key, R.size)
            }));
            const w = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
            this.pendingMeasuredCacheIndexes = [];
            const S = this.measurementsCache.slice(0, w);
            for (let R = w; R < l; R++) {
                const A = m(R),
                    _ = this.options.lanes === 1 ? S[R - 1] : this.getFurthestMeasurement(S, R),
                    O = _ ? _.end + this.options.gap : c + h,
                    k = y.get(A),
                    U = typeof k == "number" ? k : this.options.estimateSize(R),
                    V = O + U,
                    te = _ ? _.lane : R % this.options.lanes;
                S[R] = {
                    index: R,
                    start: O,
                    size: U,
                    end: V,
                    key: A,
                    lane: te
                }
            }
            return this.measurementsCache = S, S
        }, {
            key: !1,
            debug: () => this.options.debug
        }), this.calculateRange = Ko(() => [this.getMeasurements(), this.getSize(), this.getScrollOffset(), this.options.lanes], (l, c, h, m) => this.range = l.length > 0 && c > 0 ? o3({
            measurements: l,
            outerSize: c,
            scrollOffset: h,
            lanes: m
        }) : null, {
            key: !1,
            debug: () => this.options.debug
        }), this.getVirtualIndexes = Ko(() => {
            let l = null,
                c = null;
            const h = this.calculateRange();
            return h && (l = h.startIndex, c = h.endIndex), this.maybeNotify.updateDeps([this.isScrolling, l, c]), [this.options.rangeExtractor, this.options.overscan, this.options.count, l, c]
        }, (l, c, h, m, x) => m === null || x === null ? [] : l({
            startIndex: m,
            endIndex: x,
            overscan: c,
            count: h
        }), {
            key: !1,
            debug: () => this.options.debug
        }), this.indexFromElement = l => {
            const c = this.options.indexAttribute,
                h = l.getAttribute(c);
            return h ? parseInt(h, 10) : (console.warn(`Missing attribute name '${c}={index}' on measured element.`), -1)
        }, this._measureElement = (l, c) => {
            const h = this.indexFromElement(l),
                m = this.measurementsCache[h];
            if (!m) return;
            const x = m.key,
                y = this.elementsCache.get(x);
            y !== l && (y && this.observer.unobserve(y), this.observer.observe(l), this.elementsCache.set(x, l)), l.isConnected && this.resizeItem(h, this.options.measureElement(l, c, this))
        }, this.resizeItem = (l, c) => {
            const h = this.measurementsCache[l];
            if (!h) return;
            const m = this.itemSizeCache.get(h.key) ?? h.size,
                x = c - m;
            x !== 0 && ((this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(h, x, this) : h.start < this.getScrollOffset() + this.scrollAdjustments) && this._scrollToOffset(this.getScrollOffset(), {
                adjustments: this.scrollAdjustments += x,
                behavior: void 0
            }), this.pendingMeasuredCacheIndexes.push(h.index), this.itemSizeCache = new Map(this.itemSizeCache.set(h.key, c)), this.notify(!1))
        }, this.measureElement = l => {
            if (!l) {
                this.elementsCache.forEach((c, h) => {
                    c.isConnected || (this.observer.unobserve(c), this.elementsCache.delete(h))
                });
                return
            }
            this._measureElement(l, void 0)
        }, this.getVirtualItems = Ko(() => [this.getVirtualIndexes(), this.getMeasurements()], (l, c) => {
            const h = [];
            for (let m = 0, x = l.length; m < x; m++) {
                const y = l[m],
                    w = c[y];
                h.push(w)
            }
            return h
        }, {
            key: !1,
            debug: () => this.options.debug
        }), this.getVirtualItemForOffset = l => {
            const c = this.getMeasurements();
            if (c.length !== 0) return kv(c[_1(0, c.length - 1, h => kv(c[h]).start, l)])
        }, this.getOffsetForAlignment = (l, c, h = 0) => {
            const m = this.getSize(),
                x = this.getScrollOffset();
            c === "auto" && (c = l >= x + m ? "end" : "start"), c === "center" ? l += (h - m) / 2 : c === "end" && (l -= m);
            const y = this.getTotalSize() + this.options.scrollMargin - m;
            return Math.max(Math.min(y, l), 0)
        }, this.getOffsetForIndex = (l, c = "auto") => {
            l = Math.max(0, Math.min(l, this.options.count - 1));
            const h = this.measurementsCache[l];
            if (!h) return;
            const m = this.getSize(),
                x = this.getScrollOffset();
            if (c === "auto")
                if (h.end >= x + m - this.options.scrollPaddingEnd) c = "end";
                else if (h.start <= x + this.options.scrollPaddingStart) c = "start";
            else return [x, c];
            const y = c === "end" ? h.end + this.options.scrollPaddingEnd : h.start - this.options.scrollPaddingStart;
            return [this.getOffsetForAlignment(y, c, h.size), c]
        }, this.isDynamicMode = () => this.elementsCache.size > 0, this.scrollToOffset = (l, {
            align: c = "start",
            behavior: h
        } = {}) => {
            h === "smooth" && this.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."), this._scrollToOffset(this.getOffsetForAlignment(l, c), {
                adjustments: void 0,
                behavior: h
            })
        }, this.scrollToIndex = (l, {
            align: c = "auto",
            behavior: h
        } = {}) => {
            h === "smooth" && this.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."), l = Math.max(0, Math.min(l, this.options.count - 1));
            let m = 0;
            const x = 10,
                y = S => {
                    if (!this.targetWindow) return;
                    const R = this.getOffsetForIndex(l, S);
                    if (!R) {
                        console.warn("Failed to get offset for index:", l);
                        return
                    }
                    const [A, _] = R;
                    this._scrollToOffset(A, {
                        adjustments: void 0,
                        behavior: h
                    }), this.targetWindow.requestAnimationFrame(() => {
                        const O = this.getScrollOffset(),
                            k = this.getOffsetForIndex(l, _);
                        if (!k) {
                            console.warn("Failed to get offset for index:", l);
                            return
                        }
                        e3(k[0], O) || w(_)
                    })
                },
                w = S => {
                    this.targetWindow && (m++, m < x ? this.targetWindow.requestAnimationFrame(() => y(S)) : console.warn(`Failed to scroll to index ${l} after ${x} attempts.`))
                };
            y(c)
        }, this.scrollBy = (l, {
            behavior: c
        } = {}) => {
            c === "smooth" && this.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."), this._scrollToOffset(this.getScrollOffset() + l, {
                adjustments: void 0,
                behavior: c
            })
        }, this.getTotalSize = () => {
            var l;
            const c = this.getMeasurements();
            let h;
            if (c.length === 0) h = this.options.paddingStart;
            else if (this.options.lanes === 1) h = ((l = c[c.length - 1]) == null ? void 0 : l.end) ?? 0;
            else {
                const m = Array(this.options.lanes).fill(null);
                let x = c.length - 1;
                for (; x >= 0 && m.some(y => y === null);) {
                    const y = c[x];
                    m[y.lane] === null && (m[y.lane] = y.end), x--
                }
                h = Math.max(...m.filter(y => y !== null))
            }
            return Math.max(h - this.options.scrollMargin + this.options.paddingEnd, 0)
        }, this._scrollToOffset = (l, {
            adjustments: c,
            behavior: h
        }) => {
            this.options.scrollToFn(l, {
                behavior: h,
                adjustments: c
            }, this)
        }, this.measure = () => {
            this.itemSizeCache = new Map, this.notify(!1)
        }, this.setOptions(s)
    }
}
const _1 = (n, s, l, c) => {
    for (; n <= s;) {
        const h = (n + s) / 2 | 0,
            m = l(h);
        if (m < c) n = h + 1;
        else if (m > c) s = h - 1;
        else return h
    }
    return n > 0 ? n - 1 : 0
};

function o3({
    measurements: n,
    outerSize: s,
    scrollOffset: l,
    lanes: c
}) {
    const h = n.length - 1,
        m = w => n[w].start;
    if (n.length <= c) return {
        startIndex: 0,
        endIndex: h
    };
    let x = _1(0, h, m, l),
        y = x;
    if (c === 1)
        for (; y < h && n[y].end < l + s;) y++;
    else if (c > 1) {
        const w = Array(c).fill(0);
        for (; y < h && w.some(R => R < l + s);) {
            const R = n[y];
            w[R.lane] = R.end, y++
        }
        const S = Array(c).fill(l + s);
        for (; x >= 0 && S.some(R => R >= l);) {
            const R = n[x];
            S[R.lane] = R.start, x--
        }
        x = Math.max(0, x - x % c), y = Math.min(h, y + (c - 1 - y % c))
    }
    return {
        startIndex: x,
        endIndex: y
    }
}
const Uv = typeof document < "u" ? Q.useLayoutEffect : Q.useEffect;

function u3(n) {
    const s = Q.useReducer(() => ({}), {})[1],
        l = {
            ...n,
            onChange: (h, m) => {
                var x;
                m ? b0.flushSync(s) : s(), (x = n.onChange) == null || x.call(n, h, m)
            }
        },
        [c] = Q.useState(() => new c3(l));
    return c.setOptions(l), Uv(() => c._didMount(), []), Uv(() => c._willUpdate()), c
}

function d3(n) {
    return u3({
        observeElementRect: l3,
        observeElementOffset: i3,
        scrollToFn: s3,
        ...n
    })
}

function Eg({
    style: n
}) {
    return r.jsxs("svg", {
        viewBox: "0 0 212 212",
        height: "212",
        width: "212",
        preserveAspectRatio: "xMidYMid meet",
        className: n || "w-full h-full",
        fill: "none",
        children: [r.jsx("title", {
            children: "default-group"
        }), r.jsx("path", {
            className: "fill-[var(--avatar-placeholder-background)]",
            d: "M105.946 0.25C164.318 0.25 211.64 47.596 211.64 106C211.64 164.404 164.318 211.75 105.945 211.75C47.571 211.75 0.25 164.404 0.25 106C0.25 47.596 47.571 0.25 105.946 0.25Z",
            fill: "#DFE5E7"
        }), r.jsx("path", {
            className: "fill-[var(--avatar-placeholder-primary)]",
            fillRule: "evenodd",
            clipRule: "evenodd",
            d: "M102.282 77.2856C102.282 87.957 93.8569 96.5713 83.3419 96.5713C72.827 96.5713 64.339 87.957 64.339 77.2856C64.339 66.6143 72.827 58 83.3419 58C93.8569 58 102.282 66.6143 102.282 77.2856ZM150.35 80.1427C150.35 89.9446 142.612 97.857 132.954 97.857C123.296 97.857 115.5 89.9446 115.5 80.1427C115.5 70.3409 123.296 62.4285 132.954 62.4285C142.612 62.4285 150.35 70.3409 150.35 80.1427ZM83.3402 109.428C68.5812 109.428 39 116.95 39 131.928V143.714C39 147.25 41.8504 148 45.3343 148H121.346C124.83 148 127.68 147.25 127.68 143.714V131.928C127.68 116.95 98.0991 109.428 83.3402 109.428ZM126.804 110.853C127.707 110.871 128.485 110.886 129 110.886C143.759 110.886 174 116.95 174 131.929V141.571C174 145.107 171.15 148 167.666 148H134.854C135.551 146.007 135.995 143.821 135.995 141.571L135.75 131.071C135.75 121.51 130.136 117.858 124.162 113.971C122.772 113.067 121.363 112.15 120 111.143C119.981 111.123 119.962 111.098 119.941 111.07C119.893 111.007 119.835 110.931 119.747 110.886C121.343 110.747 124.485 110.808 126.804 110.853Z"
        })]
    })
}

function j1({
    card: n
}) {
    var y;
    const {
        getCard: s
    } = Fa(), l = s(n.id), [c, h] = Q.useState(!1), m = r.jsx("span", {
        children: l.id.length > 17 ? r.jsx(Eg, {
            style: "w-8 h-8"
        }) : r.jsx(vd, {
            style: "w-8 h-8"
        })
    }), x = r.jsx("div", {
        children: r.jsx("img", {
            className: "w-8 h-8 rounded-full pointer-events-none",
            src: l.picture,
            onError: () => h(!0)
        })
    });
    return r.jsx("div", {
        children: (l == null ? void 0 : l.picture) != null && ((y = l == null ? void 0 : l.picture) == null ? void 0 : y.length) !== 0 ? c ? m : x : m
    })
}
const f3 = n => !n || !n.length ? r.jsx(r.Fragment, {}) : n.split(/(\*\_.*?\_\*|\*.*?\*)/).map((l, c) => l.startsWith("*_") && l.endsWith("_*") ? r.jsx("strong", {
        className: "italic",
        children: l.slice(2, -2)
    }, c) : l.startsWith("*") && l.endsWith("*") ? r.jsx("strong", {
        children: l.slice(1, -1)
    }, c) : r.jsx("span", {
        children: l
    }, c)),
    h3 = ({
        card: n
    }) => {
        var m, x;
        const {
            getCard: s
        } = Fa(), l = s(n.id), {
            language: c
        } = Ce(), h = () => !l || !l.lastMessage || !l.lastMessage.type ? "" : l.lastMessage.type === "chat" ? l.lastMessage.text : l.lastMessage.type === "document" || l.lastMessage.type === "ptt" || l.lastMessage.type === "video" || l.lastMessage.type === "image" || l.lastMessage.type === "vcard" ? l.lastMessage.text || c[`crm_${l.lastMessage.type}`] : "";
        return r.jsx("div", {
            children: r.jsxs("div", {
                className: "flex flex-col items-start",
                children: [r.jsx("span", {
                    className: "block flex-auto overflow-hidden text-ellipsis whitespace-nowrap max-w-[150px]",
                    children: l.name
                }), r.jsxs("div", {
                    className: "flex items-center gap-1 text-gray-900 dark:text-gray-100",
                    children: [r.jsx("span", {
                        children: ((m = l == null ? void 0 : l.lastMessage) == null ? void 0 : m.type) && r.jsx(ig, {
                            type: (x = l == null ? void 0 : l.lastMessage) == null ? void 0 : x.type
                        })
                    }), r.jsx("span", {
                        className: "block flex-auto text-sm text-gray-500 overflow-hidden text-ellipsis whitespace-nowrap max-w-[130px]",
                        children: f3(h())
                    })]
                })]
            })
        })
    };

function g3({
    card: n
}) {
    return r.jsxs("div", {
        className: "flex items-center gap-2",
        children: [r.jsx(j1, {
            card: n
        }), r.jsx(h3, {
            card: n
        })]
    })
}
const nu = Ke()(n => ({
    chatName: {
        name: "",
        number: "",
        autoSave: !1
    },
    setAutoSaveChatName: s => n(l => (to("autoSaveChat", "autoSave", [s]), {
        chatName: {
            ...l.chatName,
            autoSave: s
        }
    })),
    getActiveChat: async s => {
        const {
            contatos: l,
            setContatos: c
        } = md.getState(), {
            chatName: h,
            setAutoSaveChatName: m
        } = nu.getState(), x = await Ve.Utils("getContato", s), y = l.find(w => w.id === s);
        if (n(y ? {
                chatName: {
                    ...h,
                    name: y.name,
                    number: s
                }
            } : {
                chatName: {
                    ...h,
                    name: x.name,
                    number: s
                }
            }), h.autoSave && await Yn("contatos") === !0) {
            m(!1);
            return
        }
        if (h.autoSave && !y && x.name !== x.number) {
            const w = {
                id: s,
                name: x.name
            };
            Ve.Utils("contatoSave", w);
            const S = [...l, w];
            c(S)
        }
    }
}));
(async () => {
    const n = await wf("autoSaveChat", "autoSave");
    n && n[0] && n[0][0] && nu.getState().setAutoSaveChatName(n[0][0])
})();

function m3({
    userId: n
}) {
    const {
        variaveisWA: s
    } = wi(), {
        userTabs: l,
        setNewUser: c,
        setRemoveUser: h,
        setCreateUserTab: m
    } = et(), {
        language: x
    } = Ce(), {
        close: y
    } = Ma(), [w, S] = Q.useState(""), [R, A] = Q.useState([]), _ = async $ => {
        $.chats.find(fe => fe.id === n) ? h(n, !1, $.id) : c(n, $.id)
    }, O = () => {
        ng({
            icon: r.jsx(Cf, {
                size: 32,
                style: {
                    color: "var(--primaria)"
                }
            }),
            content: r.jsx(r.Fragment, {
                children: x.menuTab_CreateNameTab
            }),
            confirmText: x.create,
            submit: $ => m($),
            errorMsg: x.insiraAoMenos3Car,
            placeholder: x.insiraNomeAba
        })
    };
    x.insiraNomeAba;
    const k = r.jsxs("div", {
            className: "p-4 flex flex-col gap-2",
            children: [r.jsx("span", {
                children: x.emptyAba
            }), r.jsx(Zt, {
                name: x.create,
                funcao: () => {
                    y(), O()
                }
            })]
        }),
        U = r.jsx("div", {
            className: "p-4 text-center",
            children: r.jsx("span", {
                children: x.notFound
            })
        }),
        V = r.jsx(hd, {
            filtragem: $ => {
                let ve = [];
                l.forEach(fe => {
                    var Se;
                    (Se = fe.tag) != null && Se.toUpperCase().includes($.toUpperCase()) && ve.push(fe)
                }), A(ve), S($)
            },
            placeholder: x.pesquisarAbas,
            dependenciasADD: [l],
            btnClear: !0
        }),
        te = r.jsx("div", {
            className: s.modalOptions.content3 + "overflow-auto max-w-[350px]",
            style: {
                maxHeight: "calc(100vh - 200px)"
            },
            children: R.slice().sort(($, ve) => $.tag.localeCompare(ve.tag)).map(($, ve) => r.jsx("div", {
                className: s.listagem.content1 + "hoverShadown",
                children: r.jsx("li", {
                    tabIndex: 1,
                    className: s.listagem.content2,
                    "data-animate-dropdown-item": "true",
                    style: {
                        opacity: 1
                    },
                    children: r.jsx("label", {
                        htmlFor: "user_tab&" + ve,
                        children: r.jsxs("div", {
                            className: s.listagem.content3,
                            children: [r.jsx("div", {
                                className: s.listagem.content4,
                                children: r.jsx(rg, {
                                    id: "user_tab&" + ve,
                                    estado: !!$.chats.find(fe => fe.id === n),
                                    checkedUpdade: () => {
                                        _($)
                                    }
                                })
                            }), r.jsxs("span", {
                                className: s.listagem.content5 + " flex",
                                children: [r.jsx("span", {
                                    className: "pr-1 overflow-hidden text-ellipsis whitespace-nowrap",
                                    children: $.tag
                                }), r.jsx("span", {
                                    className: s.aba + "tam-aba bg-[var(--primaria)] !text-[var(--letra)]",
                                    children: $.chats.length
                                })]
                            })]
                        })
                    })
                })
            }, ve))
        });
    return w.length > 0 && R.length === 0 ? r.jsxs("div", {
        children: [V, U]
    }) : l.length > 0 ? r.jsxs("div", {
        children: [V, te]
    }) : k
}

function v3({
    userId: n
}) {
    return r.jsx(m3, {
        userId: n
    })
}

function b3({
    labels: n,
    submit: s
}) {
    const {
        variaveisWA: l
    } = wi(), c = r.jsx("div", {
        className: "p-4",
        children: r.jsx("span", {
            children: "Crie Pelo menos uma etiqueta para poder inserir contatos nelas"
        })
    }), h = r.jsx("div", {
        className: l.modalOptions.content3 + "overflow-auto",
        style: {
            maxHeight: "calc(100vh - 200px)"
        },
        children: n.slice().sort((m, x) => m.name.localeCompare(x.name)).map((m, x) => r.jsx("div", {
            className: l.listagem.content1 + "hoverShadown",
            children: r.jsx("li", {
                tabIndex: 1,
                className: l.listagem.content2,
                "data-animate-dropdown-item": "true",
                style: {
                    opacity: 1
                },
                children: r.jsx("label", {
                    htmlFor: "user_labels&" + x,
                    children: r.jsxs("div", {
                        className: l.listagem.content3,
                        children: [r.jsx("div", {
                            className: l.listagem.content4,
                            children: r.jsx(rg, {
                                id: "user_labels&" + x,
                                estado: m.active,
                                checkedUpdade: () => {
                                    s(!m.active, m.id, x)
                                }
                            })
                        }), r.jsx("span", {
                            className: l.listagem.content5,
                            children: r.jsxs("div", {
                                className: "flex gap-4",
                                children: [r.jsxs("div", {
                                    className: "pr-1",
                                    children: [r.jsx("span", {
                                        children: m.name
                                    }), r.jsx("span", {
                                        className: l.aba + "tam-aba ml-1",
                                        style: {
                                            backgroundColor: "var(--primaria)"
                                        },
                                        children: m.count
                                    })]
                                }), r.jsx("span", {
                                    children: r.jsx(Ef, {
                                        className: "w-6 h-6",
                                        style: {
                                            color: m.hexColor
                                        }
                                    })
                                })]
                            })
                        })]
                    })
                })
            })
        }, x))
    });
    return n.length > 0 ? h : c
}

function k1({
    userId: n,
    setUserLabels: s,
    userLabels: l
}) {
    const {
        isBusiness: c
    } = Pe(), [h, m] = Q.useState([]), [x, y] = Q.useState(l);
    Q.useEffect(() => {
        c && (async () => {
            try {
                const R = await Ve.Labels("getAllLabels"),
                    A = await Ve.Chat("get", n),
                    _ = A.labels.map(k => R.find(U => U.hexColor && U.id === k)).filter(Boolean).map(({
                        id: k,
                        name: U,
                        hexColor: V
                    }) => ({
                        id: k,
                        name: U,
                        color: V
                    }));
                let O = [];
                R.forEach(k => {
                    const U = A.labels.find(V => V === k.id);
                    O.push({
                        ...k,
                        active: !!U
                    })
                }), s && s(_), m(O)
            } catch (R) {
                console.error("Erro ao buscar labels:", R)
            }
        })()
    }, [n]);
    const w = (S, R, A) => {
        m(k => {
            const U = [...k],
                V = U.findIndex(te => te.id === R);
            return V !== -1 && (U[V] = {
                ...U[V],
                active: S
            }), U
        });
        const _ = x.map(k => ({
            ...k
        }));
        if (S) {
            const k = h.find(U => U.id === R);
            _.unshift({
                id: k.id,
                name: k.name,
                color: k.hexColor
            }), y(_), s && s(_)
        } else {
            const k = _.filter(U => U.id !== R);
            y(k), s && s(k)
        }
        chrome.runtime.sendMessage({
            action: "update-card",
            userId: n
        }), window.postMessage({
            action: "update-card",
            userId: n
        });
        const O = {
            labelId: R,
            type: S ? "add" : "remove"
        };
        Ve.Labels("addOrRemoveLabels", {
            id: n,
            label: O
        })
    };
    return r.jsx(b3, {
        labels: h,
        submit: w
    })
}

function x3({
    card: n
}) {
    const {
        variaveisWA: s
    } = wi(), {
        userTabs: l
    } = et(), {
        chatName: c
    } = nu(), {
        language: h
    } = Ce(), {
        menuLateral: m
    } = ur(), {
        isBusiness: x
    } = Pe(), {
        open: y
    } = Ma(), {
        close: w
    } = lu(), [S, R] = Q.useState(0), [A, _] = Q.useState(null), O = Q.useRef(null), k = Q.useRef(null);
    Q.useEffect(() => {
        x && (async () => {
            try {
                const $ = await Ve.Labels("getAllLabels"),
                    fe = (await Ve.Utils("getContato", n.id)).labels.map(Se => $.find(be => be.hexColor && be.id === Se)).filter(Boolean).map(({
                        id: Se,
                        name: be,
                        hexColor: vt
                    }) => ({
                        id: Se,
                        name: be,
                        color: vt
                    }));
                _(fe)
            } catch ($) {
                console.error("Erro ao buscar labels:", $)
            }
        })()
    }, [n.id]), Q.useEffect(() => {
        (() => {
            const $ = l.reduce((ve, fe) => {
                const Se = fe.chats.some(be => be.id === n.id);
                return ve + (Se ? 1 : 0)
            }, 0);
            R($)
        })()
    }, [n, l]);
    const U = (te, $) => {
        y(te, {
            placement: "bottom"
        }, $.current, 15)
    };
    return r.jsxs("div", {
        className: "h-[60px] bg-[var(--panel-header-background)] px-4 py-[10px] flex justify-between shadow-lg " + (m.children.length !== 0 ? "rounded-ss-lg" : "rounded-t-lg"),
        children: [r.jsxs("div", {
            className: "flex items-center justify-center gap-4",
            children: [r.jsx(j1, {
                card: n
            }), r.jsx("div", {
                className: "h-[21px] relative",
                children: r.jsx("span", {
                    className: "block flex-auto overflow-hidden text-ellipsis whitespace-nowrap max-w-[170px] absolute",
                    id: "chatName",
                    children: c.name
                })
            })]
        }), r.jsxs("div", {
            className: "flex items-center justify-center gap-2",
            children: [r.jsx("div", {
                className: s.confgIcone + "pulse",
                ref: O,
                children: r.jsxs("div", {
                    onClick: () => U(r.jsx(v3, {
                        userId: n.id
                    }), O),
                    "aria-disabled": "false",
                    role: "button",
                    tabIndex: 0,
                    className: "_3ndVb fbgy3m38 ft2m32mm oq31bsqd nu34rnf1",
                    children: [S > 0 && r.jsx("div", {
                        className: "absolute",
                        children: r.jsx("span", {
                            className: s.aba + "relative -top-3 -left-3 tam-aba bg-[var(--primaria)]",
                            children: S
                        })
                    }), r.jsx("span", {
                        children: r.jsx(Cf, {
                            className: "w-6 h-6 text-[var(--icon)]"
                        })
                    })]
                })
            }), x ? r.jsx("div", {
                className: s.confgIcone + "pulse ",
                ref: k,
                style: {
                    borderRadius: "8px"
                },
                children: r.jsx("div", {
                    onClick: () => U(r.jsx(k1, {
                        userId: n.id,
                        setUserLabels: _,
                        userLabels: A
                    }), k),
                    "aria-disabled": "false",
                    role: "button",
                    tabIndex: 0,
                    className: "_3ndVb fbgy3m38 ft2m32mm oq31bsqd nu34rnf1",
                    children: A && A.length > 0 ? r.jsx("div", {
                        className: "flex",
                        children: A.map((te, $) => r.jsx("span", {
                            style: $ !== 0 ? {
                                marginLeft: "-1rem"
                            } : null,
                            children: r.jsx(Ef, {
                                className: "w-6 h-6",
                                style: {
                                    color: te.color
                                }
                            })
                        }, $))
                    }) : r.jsx($v, {
                        className: "w-6 h-6 text-[var(--icon)]"
                    })
                })
            }) : void 0, r.jsx("div", {
                children: r.jsx(ax, {
                    name: h.close,
                    funcao: w
                })
            })]
        })]
    })
}

function p3({
    children: n,
    position: s
}) {
    return r.jsx("div", {
        className: "chat " + (s ? "chat-end" : "chat-start"),
        children: r.jsx("div", {
            className: "chat-bubble text-[var(--primary-strong)] shadow-sm max-w-lg " + (s ? "bg-[var(--outgoing-background)]" : "bg-[var(--incoming-background)]"),
            children: r.jsx("span", {
                dangerouslySetInnerHTML: {
                    __html: n.replace(/\*\_(.*?)\_\*/g, '<strong class="italic">$1</strong>').replace(/\*(.*?)\*/g, "<strong>$1</strong>").replace(/\n/g, "<br>")
                },
                style: {
                    overflowWrap: "break-word"
                }
            })
        })
    })
}

function y3({
    children: n,
    id: s,
    position: l,
    captureBase64: c
}) {
    const [h, m] = Q.useState("");
    return Q.useEffect(() => {
        (async () => {
            const S = (await Ve.Chat("downloadMedia", s)).split(",")[1],
                R = atob(S),
                A = new Uint8Array(R.length);
            for (let k = 0; k < R.length; k++) A[k] = R.charCodeAt(k);
            const _ = new Blob([A], {
                    type: "image/jpeg"
                }),
                O = URL.createObjectURL(_);
            m(O), c(O)
        })()
    }, []), r.jsx("div", {
        className: "chat " + (l ? "chat-end" : "chat-start"),
        children: r.jsxs("div", {
            className: "chat-bubble text-[var(--primary-strong)] shadow-sm max-w-lg " + (l ? "bg-[var(--outgoing-background)]" : "bg-[var(--incoming-background)]"),
            children: [r.jsx("img", {
                src: h,
                className: "h-[330px] rounded-lg m-auto shadow-lg"
            }), n && r.jsx("span", {
                dangerouslySetInnerHTML: {
                    __html: n.replace(/\*\_(.*?)\_\*/g, '<strong class="italic">$1</strong>').replace(/\*(.*?)\*/g, "<strong>$1</strong>").replace(/\n/g, "<br>")
                },
                style: {
                    overflowWrap: "break-word"
                }
            })]
        })
    })
}

function S3({
    children: n,
    id: s,
    position: l,
    captureBase64: c
}) {
    const [h, m] = Q.useState("");
    return Q.useEffect(() => {
        (async () => {
            for (var S = (await Ve.Chat("downloadMedia", s)).split(",")[1], R = atob(S), A = new Uint8Array(R.length), _ = 0; _ < R.length; _++) A[_] = R.charCodeAt(_);
            var O = new Blob([A], {
                type: "video/mp4"
            });
            const k = URL.createObjectURL(O);
            m(k), c(k)
        })()
    }, []), r.jsx("div", {
        className: "chat " + (l ? "chat-end" : "chat-start"),
        children: r.jsxs("div", {
            className: "chat-bubble text-[var(--primary-strong)] shadow-sm max-w-lg " + (l ? "bg-[var(--outgoing-background)]" : "bg-[var(--incoming-background)]"),
            children: [r.jsx("video", {
                src: h,
                className: "rounded-lg m-auto shadow-lg",
                controls: !0
            }), n && r.jsx("span", {
                dangerouslySetInnerHTML: {
                    __html: n.replace(/\n/g, "<br>")
                }
            })]
        })
    })
}

function w3({
    id: n,
    position: s,
    from: l,
    captureBase64: c
}) {
    const h = Q.useRef(null),
        [m, x] = Q.useState(!1),
        [y, w] = Q.useState(""),
        [S, R] = Q.useState();
    Q.useEffect(() => {
        (async () => {
            R(await Ve.Contact("getProfilePictureUrl", l.split("@")[0]));
            const U = (await Ve.Chat("downloadMedia", n)).split(",")[1],
                V = atob(U),
                te = new Uint8Array(V.length);
            for (var $ = 0; $ < V.length; $++) te[$] = V.charCodeAt($);
            const ve = new Blob([te], {
                    type: "audio/mp3"
                }),
                fe = URL.createObjectURL(ve);
            w(fe), c(fe)
        })()
    }, []);
    const A = () => {
        m ? h.current.pause() : h.current.play(), x(!m)
    };
    return r.jsx("div", {
        className: "chat " + (s ? "chat-end" : "chat-start"),
        children: r.jsx("div", {
            className: "chat-bubble text-[var(--primary-strong)] shadow-sm max-w-lg " + (s ? "bg-[var(--outgoing-background)]" : "bg-[var(--incoming-background)]"),
            children: r.jsxs("div", {
                className: "flex gap-1 items-center",
                children: [r.jsx("div", {
                    className: "avatar",
                    children: S && S !== "undefined" ? r.jsx("div", {
                        className: "w-10 rounded-full",
                        children: r.jsx("img", {
                            src: S
                        })
                    }) : r.jsx("span", {
                        children: l.split("@")[0].length > 17 ? r.jsx(Eg, {
                            style: "w-10 h-10"
                        }) : r.jsx(vd, {
                            style: "w-10 h-10"
                        })
                    })
                }), r.jsxs("div", {
                    className: "flex gap-2",
                    children: [r.jsx("span", {
                        className: "cursor-pointer pulse",
                        onClick: A,
                        children: m ? r.jsx(nx, {
                            className: "h-5 w-5 text-[var(--audio-control-incoming)]"
                        }) : r.jsx(lx, {
                            className: "h-5 w-5 text-[var(--audio-control-incoming)]"
                        })
                    }), r.jsx("span", {
                        children: r.jsx("div", {
                            className: "h8id8 relative flex-1 w-[150px]",
                            children: r.jsx("div", {
                                className: "ajgl1lbb",
                                children: r.jsxs("div", {
                                    className: "_3SpYC YZRf3 relatuve top-[-1px] flex items-center w-full h-[21px] overflow-hidden",
                                    children: [r.jsx("div", {
                                        className: "_1EsIB bg-[var(--audio-track-outgoing)] absolute w-full h-[3px]"
                                    }), r.jsx("span", {
                                        className: "_2HJjp bg-[var(--audio-progress-played-outgoing)] absolute left-0 w-0 h-[3px] ",
                                        style: {
                                            width: " 0%"
                                        }
                                    }), r.jsx("div", {
                                        className: "_3ZhaQ flex w-full",
                                        children: r.jsx("div", {
                                            className: "_2MvVt relative left-[-6.5px] w-full",
                                            style: {
                                                transform: "translateX(0%)"
                                            },
                                            children: r.jsx("div", {
                                                className: "_2TVHO bg-[var(--audio-progress-played-outgoing)] h-[13px] w-[13px] rounded-full ml-2"
                                            })
                                        })
                                    })]
                                })
                            })
                        })
                    })]
                }), r.jsx("audio", {
                    ref: h,
                    src: y,
                    className: "rounded-lg m-auto shadow-lg bg-[var(--bg-chat)] hidden ",
                    controls: !0
                })]
            })
        })
    })
}

function N3({
    children: n,
    id: s,
    captureBase64: l
}) {
    const [c, h] = Q.useState(""), m = n == null ? void 0 : n.filename.lastIndexOf("."), x = m !== -1 ? n.filename.slice(0, m) : n.filename, w = (m !== -1 ? n.filename.slice(m + 1) : "").toLowerCase();
    return r.jsx("div", {
        className: "chat " + (n.id.fromMe ? "chat-end" : "chat-start"),
        children: r.jsx("div", {
            className: "chat-bubble text-[var(--primary-strong)] shadow-sm max-w-lg " + (n.id.fromMe ? "bg-[var(--outgoing-background)]" : "bg-[var(--incoming-background)]"),
            children: r.jsxs("div", {
                className: "flex items-center",
                children: [r.jsx("span", {
                    "data-icon": "preview-generic",
                    children: r.jsxs("svg", {
                        viewBox: "0 0 88 110",
                        height: "110",
                        width: "88",
                        preserveAspectRatio: "xMidYMid meet",
                        children: [r.jsx("g", {
                            transform: "translate(4 3)",
                            children: r.jsx("path", {
                                strokeOpacity: "0.08",
                                stroke: "#000",
                                d: "M3-.5h56.929a5.5 5.5 0 0 1 3.889 1.61l15.071 15.072a5.5 5.5 0 0 1 1.611 3.89V101a3.5 3.5 0 0 1-3.5 3.5H3A3.5 3.5 0 0 1-.5 101V3A3.5 3.5 0 0 1 3-.5z",
                                fill: "#FFF",
                                fillRule: "evenodd"
                            })
                        }), r.jsx("path", {
                            d: "M65.5 3.5v15a3 3 0 0 0 3 3h15",
                            strokeOpacity: "0.12",
                            stroke: "#000",
                            fill: "#FFF"
                        })]
                    })
                }), r.jsxs("div", {
                    className: "flex flex-col",
                    children: [r.jsx("span", {
                        className: "font-bold text-xl w-[350px]",
                        style: {
                            overflowWrap: "break-word"
                        },
                        children: x
                    }), r.jsxs("span", {
                        className: "text-sm",
                        children: ["Tipo: ", w]
                    })]
                })]
            })
        })
    })
}

function C3({
    children: n
}) {
    var h;
    const [s, l] = Q.useState("");
    return Q.useEffect(() => {
        (async () => {
            l(await Ve.Contact("getProfilePictureUrl", n.body.match(/waid=(\d+)/)[1]))
        })()
    }, []), r.jsx("div", {
        className: "chat " + (n.id.fromMe ? "chat-end" : "chat-start"),
        children: r.jsx("div", {
            className: "chat-bubble text-[var(--primary-strong)] shadow-sm max-w-lg " + (n.id.fromMe ? "bg-[var(--outgoing-background)]" : "bg-[var(--incoming-background)]"),
            children: r.jsxs("div", {
                className: "flex items-center gap-2",
                children: [s && s !== "undefined" ? r.jsx("div", {
                    className: "avatar",
                    children: r.jsx("div", {
                        className: "w-12 rounded-full  ring-offset-2",
                        children: r.jsx("img", {
                            src: s
                        })
                    })
                }) : r.jsx("div", {
                    className: "avatar placeholder",
                    children: r.jsx("div", {
                        className: "bg-base-100 rounded-full w-12",
                        children: r.jsx(Tf, {
                            className: "w-12 h-12 text-[var(--avatarBackground)]"
                        })
                    })
                }), r.jsxs("div", {
                    className: "flex flex-col",
                    children: [r.jsx("span", {
                        className: "font-bold text-xl",
                        children: n.vcardFormattedName
                    }), r.jsx("span", {
                        className: "text-sm",
                        children: (h = n == null ? void 0 : n.body) == null ? void 0 : h.match(/waid=(\d+)/)[1]
                    })]
                })]
            })
        })
    })
}

function E3({
    viewMidia: n
}) {
    const {
        language: s
    } = Ce(), c = (x => {
        var y = new Blob([x], {
                type: x.type
            }),
            w = URL.createObjectURL(y);
        return w
    })(n.content);
    let h;
    switch (n.type) {
        case "image/*":
            h = r.jsx("img", {
                src: c,
                className: "m-auto rounded",
                style: {
                    height: "calc(100vh - 260px)"
                }
            });
            break;
        case "video/*":
            h = r.jsx("video", {
                src: c,
                className: "m-auto rounded",
                style: {
                    height: "calc(100vh - 260px)"
                },
                controls: !0
            });
            break;
        case "audio/*":
            h = r.jsx("div", {
                style: {
                    height: "calc(100vh - 260px)"
                },
                children: r.jsx("video", {
                    src: c,
                    controls: !0
                })
            });
            break;
        default:
        case "*":
            h = r.jsxs("div", {
                style: {
                    height: "calc(100vh - 260px)"
                },
                className: "flex flex-col justify-center items-center",
                children: [r.jsx("span", {
                    "data-icon": "preview-generic",
                    children: r.jsxs("svg", {
                        viewBox: "0 0 88 110",
                        height: "110",
                        width: "88",
                        preserveAspectRatio: "xMidYMid meet",
                        children: [r.jsx("g", {
                            transform: "translate(4 3)",
                            children: r.jsx("path", {
                                "stroke-opacity": "0.08",
                                stroke: "#000",
                                d: "M3-.5h56.929a5.5 5.5 0 0 1 3.889 1.61l15.071 15.072a5.5 5.5 0 0 1 1.611 3.89V101a3.5 3.5 0 0 1-3.5 3.5H3A3.5 3.5 0 0 1-.5 101V3A3.5 3.5 0 0 1 3-.5z",
                                fill: "#FFF",
                                "fill-rule": "evenodd"
                            })
                        }), r.jsx("path", {
                            d: "M65.5 3.5v15a3 3 0 0 0 3 3h15",
                            "stroke-opacity": "0.12",
                            stroke: "#000",
                            fill: "#FFF"
                        })]
                    })
                }), r.jsx("span", {
                    className: "font-medium text-2xl",
                    children: s.previewUnavailable
                }), r.jsxs("div", {
                    className: "f8jlpxt4 ",
                    children: [(n.content.size / (1024 * 1024)).toFixed(2), " MB - ", n.content.name.split(".")[0]]
                })]
            });
            break
    }
    return r.jsx("div", {
        className: "relative",
        children: r.jsx("div", {
            className: "h-full mt-1 p-1 overflow-auto ",
            style: {
                height: "calc(100vh - 213px)"
            },
            children: r.jsx("div", {
                className: "m-auto",
                children: h
            })
        })
    })
}
const Bv = ({
    userID: n,
    onBackBtnClickHnd: s,
    create: l,
    product: c
}) => {
    const {
        editProduct: h,
        addProduct: m
    } = as(), {
        language: x
    } = Ce(), [y, w] = Q.useState({
        id: "",
        nome: "",
        date: new Date().toISOString().split("T")[0],
        transportadora: "",
        codigo: "",
        orderID: ""
    }), [S, R] = Q.useState(!1);
    Q.useEffect(() => {
        c && w(c)
    }, [c]);
    const A = (k, U) => {
            w({
                ...y,
                [k]: U
            })
        },
        _ = k => {
            let U = "";
            switch (y.transportadora) {
                case "Correios":
                    U = `https://www.linkcorreios.com.br/?id=${y.codigo}`;
                    break;
                case "Jadlog":
                    U = `https://t.17track.net/pt#nums=${y.codigo}`;
                    break;
                case "Shopee":
                case "Aliexpress":
                case "Gear Best":
                case "China Post":
                    U = `https://www.muambator.com.br/pacotes/${y.codigo}/detalhes/`;
                    break;
                default:
                    U = `https://parcelsapp.com/pt/tracking/${y.codigo}`;
                    break
            }
            return U
        },
        O = async k => {
            if (k.preventDefault(), await Yn("encomendas") === !0) return;
            if (S) {
                let V = `*${x.modal_table_info}:*
*${x.modal_product}:* ${y.nome}
*${x.modal_table_code}:* ${y.codigo}
*${x.modal_table_rastreio}:* ${_(y.id)}`;
                Ve.Chat("sendTxt", {
                    id: n,
                    msg: V
                })
            }
            const U = {
                id: (c == null ? void 0 : c.id) || Si(),
                nome: y.nome,
                date: y.date,
                transportadora: y.transportadora,
                codigo: y.codigo,
                orderID: y.orderID
            };
            U.nome.length > 0 && U.date.length > 0 && U.transportadora.length > 0 && U.codigo.length > 0 ? (l ? m(n, U) : h(n, (c == null ? void 0 : c.id) || "", U), s(), xe({
                type: "Success",
                message: `${l?x.encomendas_Notif_success:x.encomendas_Notif_success_edit}`,
                position: "top-right"
            })) : xe({
                type: "Error",
                message: x.agendamento_Notif_error,
                position: "top-right"
            })
        };
    return r.jsxs("form", {
        className: "w-[600px] grid gap-4 overflow-auto pr-1",
        style: {
            maxHeight: "calc(100vh - 70px)"
        },
        onSubmit: O,
        children: [r.jsx(Xn, {
            children: l ? x.modal_orders_title : x.modal_orders_title_edit
        }), r.jsxs("div", {
            className: "flex justify-between gap-6",
            children: [r.jsxs("div", {
                className: "form-control w-full",
                children: [r.jsx("label", {
                    className: "label",
                    children: r.jsx("span", {
                        className: "label-text",
                        children: x.modal_table_name
                    })
                }), r.jsx("input", {
                    type: "text",
                    placeholder: x.modal_table_insert_name,
                    className: "input input-bordered w-full input-sm",
                    value: y.nome,
                    onChange: k => A("nome", k.target.value)
                })]
            }), r.jsxs("div", {
                className: "form-control w-full",
                children: [r.jsx("label", {
                    className: "label",
                    children: r.jsx("span", {
                        className: "label-text",
                        children: `ID (${x.opcional})`
                    })
                }), r.jsx("input", {
                    type: "text",
                    placeholder: x.modal_table_insert_id,
                    className: "input input-bordered w-full input-sm",
                    value: y.orderID,
                    onChange: k => A("orderID", k.target.value)
                })]
            })]
        }), r.jsxs("div", {
            className: "flex justify-between gap-6",
            children: [r.jsxs("div", {
                className: "form-control w-full max-w-xs",
                children: [r.jsx("label", {
                    className: "label",
                    children: r.jsx("span", {
                        className: "label-text",
                        children: x.modal_table_data
                    })
                }), r.jsx("input", {
                    type: "Date",
                    className: "input input-bordered w-full max-w-xs input-sm",
                    value: y.date,
                    onChange: k => A("date", k.target.value)
                })]
            }), r.jsxs("div", {
                className: "form-control w-full max-w-xs",
                children: [r.jsx("label", {
                    className: "label",
                    children: r.jsx("span", {
                        className: "label-text",
                        children: x.modal_table_code
                    })
                }), r.jsx("input", {
                    type: "text",
                    className: "input input-bordered w-full max-w-xs input-sm",
                    placeholder: x.modal_table_insert_code,
                    value: y.codigo,
                    onChange: k => A("codigo", k.target.value)
                })]
            })]
        }), r.jsxs("div", {
            className: "form-control w-full",
            children: [r.jsx("label", {
                className: "label",
                children: r.jsx("span", {
                    className: "label-text",
                    children: x.modal_table_transport
                })
            }), r.jsxs("select", {
                className: "!py-0 select select-bordered !select-sm w-full",
                value: y.transportadora,
                onChange: k => A("transportadora", k.target.value),
                children: [r.jsx("option", {
                    value: "",
                    children: x.noneSelected
                }), r.jsx("option", {
                    value: "Correios",
                    children: "Correios"
                }), r.jsx("option", {
                    value: "Jadlog",
                    children: "Jadlog"
                }), r.jsx("option", {
                    value: "Shopee",
                    children: "Shopee"
                }), r.jsx("option", {
                    value: "Aliexpress",
                    children: "Aliexpress"
                }), r.jsx("option", {
                    value: "Gear Best",
                    children: "Gear Best"
                }), r.jsx("option", {
                    value: "China Post",
                    children: "China Post"
                }), r.jsx("option", {
                    value: x.modal_table_outras,
                    children: x.modal_table_outras
                })]
            })]
        }), r.jsxs("div", {
            className: "flex gap-3 w-full items-center",
            children: [r.jsx("input", {
                type: "checkbox",
                name: "Send Mensage",
                checked: S,
                onChange: () => R(!S)
            }), r.jsx(Gn, {
                children: x.modal_encomendas_checkBoxText
            })]
        }), r.jsxs("div", {
            className: "flex justify-between gap-2 pt-4 w-full",
            children: [r.jsx(Zt, {
                funcao: s,
                name: x.cancel
            }), r.jsx(Zt, {
                funcao: O,
                name: l ? x.modal_add : x.edit
            })]
        })]
    })
};

function tg({
    userID: n
}) {
    const {
        getProduct: s,
        openLink: l,
        removeProduct: c
    } = as(), {
        language: h
    } = Ce(), {
        open: m
    } = kt(), x = _ => {
        m(r.jsx(Bv, {
            userID: n,
            create: !1,
            product: _,
            onBackBtnClickHnd: () => m(r.jsx(tg, {
                userID: n
            }))
        }))
    }, y = _ => {
        c(n, _), xe({
            type: "Success",
            message: h.encomendas_Notif_success_remove,
            position: "top-right"
        })
    }, w = async _ => {
        const O = S.find(U => U.id === _);
        let k = "";
        switch (O.transportadora) {
            case "Correios":
                k = `https://www.linkcorreios.com.br/?id=${O.codigo}`;
                break;
            case "Jadlog":
                k = `https://t.17track.net/pt#nums=${O.codigo}`;
                break;
            case "Shopee":
            case "Aliexpress":
            case "Gear Best":
            case "China Post":
                k = `https://www.muambator.com.br/pacotes/${O.codigo}/detalhes/`;
                break;
            default:
                k = `https://parcelsapp.com/pt/tracking/${O.codigo}`;
                break
        }
        try {
            await navigator.clipboard.writeText(k), xe({
                type: "Success",
                message: h.encomendas_Notif_copyLink_sucess,
                position: "top-right"
            })
        } catch (U) {
            console.error(`Error copying message: ${U}`)
        }
    }, S = s(n), R = () => S.map(_ => r.jsxs("tr", {
        className: "hover:bg-base-200 cursor-pointer",
        children: [r.jsx("td", {
            className: "rounded-l-lg",
            children: r.jsx("div", {
                className: "flex justify-center",
                children: r.jsx("span", {
                    className: "block max-w-[130px]",
                    children: `${_.nome}`
                })
            })
        }), r.jsx("td", {
            children: Fn.converterData(_.date)
        }), r.jsx("td", {
            children: `${_.transportadora}`
        }), r.jsx("td", {
            children: `${_.codigo}`
        }), r.jsx("td", {
            children: `${_.orderID}`
        }), r.jsx("td", {
            className: "h-full",
            children: r.jsx("button", {
                className: "pulse bg-[var(--button-round-background)] uppercase text-xs hover:bg-[var(--button-secondary-hover)] text-white font-bold py-1 px-3 rounded",
                onClick: () => l(_),
                children: h.modal_table_rastrear
            })
        }), r.jsx("td", {
            className: "rounded-r-lg",
            children: r.jsxs("div", {
                className: "flex justify-center gap-2",
                children: [r.jsx("span", {
                    className: "pulse",
                    onClick: () => x(_),
                    children: r.jsx(no, {
                        className: "h-5 w-5"
                    })
                }), r.jsx("span", {
                    className: "pulse",
                    onClick: () => y(_.id),
                    children: r.jsx(is, {
                        className: "h-5 w-5"
                    })
                }), r.jsx("span", {
                    className: "pulse",
                    onClick: () => w(_.id),
                    children: r.jsx(ix, {
                        className: "h-5 w-5"
                    })
                })]
            })
        })]
    }, _.id));
    return r.jsxs("div", {
        className: "w-auto min-w-[600px] grid gap-4",
        children: [r.jsxs("div", {
            className: "flex items-center gap-2",
            children: [r.jsx(Xn, {
                children: h.modal_orders_title
            }), r.jsx("div", {
                className: "cursor-pointer lg:tooltip lg:tooltip-bottom",
                "data-tip": h.cadastreEncomentasParaAcompanhar,
                children: r.jsx("span", {
                    className: "pulse",
                    children: r.jsx(Jo, {
                        className: "h-5 w-5"
                    })
                })
            })]
        }), r.jsx("div", {
            className: "overflow-auto",
            style: {
                maxHeight: "calc(100vh - 300px)"
            },
            children: S.length > 0 ? r.jsxs("table", {
                className: "table text-center",
                children: [r.jsx("thead", {
                    children: r.jsxs("tr", {
                        children: [r.jsx("th", {
                            children: h.modal_table_name
                        }), r.jsx("th", {
                            children: h.modal_table_data
                        }), r.jsx("th", {
                            children: h.modal_table_transport
                        }), r.jsx("th", {
                            children: h.modal_table_code
                        }), r.jsx("th", {
                            children: "ID"
                        }), r.jsx("th", {
                            children: h.modal_table_link
                        }), r.jsx("th", {
                            children: h.modal_table_acoes
                        })]
                    })
                }), r.jsx("tbody", {
                    children: R()
                })]
            }) : r.jsx(sg, {
                title: h.no_orders_added_title,
                description: h.no_orders_added_desc,
                icon: r.jsx(e0, {
                    className: "w-7 h-7 text-[var(--primaria)]"
                })
            })
        }), r.jsx("div", {
            className: "flex justify-center py-3",
            children: r.jsx(Zt, {
                name: h.modal_add,
                funcao: () => m(r.jsx(Bv, {
                    userID: n,
                    create: !0,
                    onBackBtnClickHnd: () => m(r.jsx(tg, {
                        userID: n
                    }))
                }))
            })
        })]
    })
}

function T3({
    onSelect: n,
    btnCancel: s = !1
}) {
    const {
        quickReplies: l
    } = rc(), {
        variaveisWA: c
    } = wi(), {
        close: h
    } = Ma(), {
        language: m
    } = Ce(), [x, y] = Q.useState([]);
    return r.jsx("div", {
        children: r.jsx("ul", {
            className: "overflow-hidden flex " + c.modalOptions.content2,
            children: r.jsxs("div", {
                className: c.modalOptions.content3,
                children: [r.jsx(hd, {
                    filtragem: S => {
                        let R = [];
                        l.forEach(A => {
                            var _;
                            (_ = A.titulo) != null && _.toUpperCase().includes(S.toUpperCase()) && R.push(A)
                        }), y(R)
                    },
                    placeholder: m.searchQuickReply,
                    dependenciasADD: [l],
                    btnClear: !0
                }), r.jsxs("div", {
                    className: "max-w-[300px] overflow-x-hidden overflow-y-auto " + c.listagem.content1,
                    style: {
                        maxHeight: "60vh"
                    },
                    children: [s && r.jsx(Ka, {
                        content: m.cancelSelection,
                        icon: r.jsx(Af, {
                            className: "w-5 h-5 text-red-500"
                        }),
                        setFunction: () => {
                            n(null), h()
                        },
                        stroke: "1"
                    }), x.map((S, R) => r.jsx(Ka, {
                        content: S.titulo,
                        icon: r.jsx(ig, {
                            type: S.type
                        }),
                        setFunction: () => {
                            n(S), h()
                        },
                        stroke: "1"
                    }, R))]
                })]
            })
        })
    })
}
const M3 = Q.lazy(() => or(() => import("./assets/js/comp.Di9ngQey.js"), __vite__mapDeps([13, 1, 2, 3, 14, 4, 5, 6, 7, 8])));

function A3({
    type: n,
    style: s = "w-4 h-4 text-[var(--icon)]"
}) {
    return r.jsx(Q.Suspense, {
        fallback: r.jsx(r.Fragment, {}),
        children: r.jsx(M3, {
            type: n,
            style: s
        })
    })
}
const R3 = ({
    updateForm: n,
    resID: s
}) => {
    const {
        quickReplies: l
    } = rc(), {
        open: c
    } = Ma(), {
        language: h
    } = Ce(), m = x => {
        const y = x.currentTarget;
        c(r.jsx(T3, {
            onSelect: w => {
                n("respostaRapida", w.id)
            }
        }), {
            placement: "top"
        }, y, -10, {
            mounted: () => y.setAttribute("style", "outline-style: solid; outline-width: 2px; outline-offset: 2px; outline-color: hsl(var(--bc) / 0.2);"),
            desmouted: () => y.removeAttribute("style")
        })
    };
    return r.jsxs("div", {
        className: "flex flex-col gap-2 shadow-md border border-solid border-[var(--intro-background)] p-2 rounded-lg",
        children: [r.jsx("div", {
            className: "flex justify-between items-center",
            children: r.jsxs("div", {
                className: "flex gap-2 items-center",
                children: [r.jsx("span", {
                    children: r.jsx(cg, {
                        className: "w-4 h-4 text-[var(--icon)]"
                    })
                }), r.jsx("span", {
                    children: r.jsx("h2", {
                        className: "label-text",
                        children: h.agendamento_select_respostaRapida
                    })
                })]
            })
        }), r.jsx("div", {
            className: "form-control w-full",
            children: r.jsx("div", {
                className: "select select-bordered select-sm cursor-pointer border border-solid",
                onClick: x => m(x),
                children: l.map(x => x.id === s ? r.jsxs("div", {
                    className: "pulse flex gap-2 py-1 items-center",
                    children: [r.jsx("span", {
                        children: r.jsx(A3, {
                            type: x.type
                        })
                    }), r.jsx("span", {
                        className: "text-base overflow-hidden text-ellipsis whitespace-nowrap",
                        style: {
                            width: "calc(300px - 100px)"
                        },
                        children: x.titulo
                    })]
                }, x.id) : null)
            })
        })]
    })
};
Q.lazy(function() {
    return or(() => import("./assets/js/index.CaZiXyEl.js"), __vite__mapDeps([15, 1, 2, 3, 4, 5, 6, 7, 8]))
});
var af = {
        useUserLogin: null,
        useModal: null,
        useModalOptions: null
    },
    eo = function() {
        return eo = Object.assign || function(n) {
            for (var s, l = 1, c = arguments.length; l < c; l++) {
                s = arguments[l];
                for (var h in s) Object.prototype.hasOwnProperty.call(s, h) && (n[h] = s[h])
            }
            return n
        }, eo.apply(this, arguments)
    },
    O3 = function() {
        return Ke(function(n, s) {
            return {
                renderView: "list",
                setRenderView: function(l) {
                    return n({
                        renderView: l
                    })
                },
                userID: "",
                viwerModel: "modal",
                note: {
                    id: NaN,
                    userID: "",
                    text: "",
                    base64: ""
                },
                setNote: function(l, c) {
                    return n(function(h) {
                        var m;
                        return {
                            note: Object.freeze(eo(eo({}, h.note), (m = {}, m[l] = c, m)))
                        }
                    })
                }
            }
        })
    },
    Hv = Ke()(function(n, s) {
        return {
            container: {},
            getContainer: function(l) {
                var c = s().container;
                if (c[l]) return c[l];
                var h = O3();
                return n(function(m) {
                    var x;
                    return {
                        container: eo(eo({}, m.container), (x = {}, x[l] = h, x))
                    }
                }), h
            },
            deleteContainer: function(l) {
                return n(function(c) {
                    var h = eo({}, c.container);
                    return delete h[l], {
                        container: h
                    }
                })
            }
        }
    }),
    _3 = function(n, s, l, c) {
        function h(m) {
            return m instanceof l ? m : new l(function(x) {
                x(m)
            })
        }
        return new(l || (l = Promise))(function(m, x) {
            function y(R) {
                try {
                    S(c.next(R))
                } catch (A) {
                    x(A)
                }
            }

            function w(R) {
                try {
                    S(c.throw(R))
                } catch (A) {
                    x(A)
                }
            }

            function S(R) {
                R.done ? m(R.value) : h(R.value).then(y, w)
            }
            S((c = c.apply(n, s || [])).next())
        })
    },
    j3 = function(n, s) {
        var l = {
                label: 0,
                sent: function() {
                    if (m[0] & 1) throw m[1];
                    return m[1]
                },
                trys: [],
                ops: []
            },
            c, h, m, x = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
        return x.next = y(0), x.throw = y(1), x.return = y(2), typeof Symbol == "function" && (x[Symbol.iterator] = function() {
            return this
        }), x;

        function y(S) {
            return function(R) {
                return w([S, R])
            }
        }

        function w(S) {
            if (c) throw new TypeError("Generator is already executing.");
            for (; x && (x = 0, S[0] && (l = 0)), l;) try {
                if (c = 1, h && (m = S[0] & 2 ? h.return : S[0] ? h.throw || ((m = h.return) && m.call(h), 0) : h.next) && !(m = m.call(h, S[1])).done) return m;
                switch (h = 0, m && (S = [S[0] & 2, m.value]), S[0]) {
                    case 0:
                    case 1:
                        m = S;
                        break;
                    case 4:
                        return l.label++, {
                            value: S[1],
                            done: !1
                        };
                    case 5:
                        l.label++, h = S[1], S = [0];
                        continue;
                    case 7:
                        S = l.ops.pop(), l.trys.pop();
                        continue;
                    default:
                        if (m = l.trys, !(m = m.length > 0 && m[m.length - 1]) && (S[0] === 6 || S[0] === 2)) {
                            l = 0;
                            continue
                        }
                        if (S[0] === 3 && (!m || S[1] > m[0] && S[1] < m[3])) {
                            l.label = S[1];
                            break
                        }
                        if (S[0] === 6 && l.label < m[1]) {
                            l.label = m[1], m = S;
                            break
                        }
                        if (m && l.label < m[2]) {
                            l.label = m[2], l.ops.push(S);
                            break
                        }
                        m[2] && l.ops.pop(), l.trys.pop();
                        continue
                }
                S = s.call(n, l)
            } catch (R) {
                S = [6, R], h = 0
            } finally {
                c = m = 0
            }
            if (S[0] & 5) throw S[1];
            return {
                value: S[0] ? S[1] : void 0,
                done: !0
            }
        }
    },
    z1 = function() {
        return _3(void 0, void 0, void 0, function() {
            var n;
            return j3(this, function(s) {
                switch (s.label) {
                    case 0:
                        return [4, ni("notes")];
                    case 1:
                        return n = s.sent() || [], hf.setState({
                            notes: n
                        }), [2]
                }
            })
        })
    },
    k3 = function(n, s) {
        var l = typeof Symbol == "function" && n[Symbol.iterator];
        if (!l) return n;
        var c = l.call(n),
            h, m = [],
            x;
        try {
            for (;
                (s === void 0 || s-- > 0) && !(h = c.next()).done;) m.push(h.value)
        } catch (y) {
            x = {
                error: y
            }
        } finally {
            try {
                h && !h.done && (l = c.return) && l.call(c)
            } finally {
                if (x) throw x.error
            }
        }
        return m
    },
    z3 = function(n, s, l) {
        if (l || arguments.length === 2)
            for (var c = 0, h = s.length, m; c < h; c++)(m || !(c in s)) && (m || (m = Array.prototype.slice.call(s, 0, c)), m[c] = s[c]);
        return n.concat(m || Array.prototype.slice.call(s))
    },
    D3 = Sf({
        createNote: function(n) {
            hf.setState(function(s) {
                return {
                    notes: z3([n.data], k3(s.notes), !1)
                }
            })
        },
        editNote: function(n) {
            hf.setState(function(s) {
                return {
                    notes: s.notes.map(function(l) {
                        return l.id === n.data.id ? n.data : l
                    })
                }
            })
        },
        deleteNote: function(n) {
            hf.getState().deleteNote(n.data, !0)
        },
        notesBackup: function(n) {
            z1()
        }
    });
chrome.runtime.onMessage.addListener(D3);
var nf = function(n, s) {
        var l = typeof Symbol == "function" && n[Symbol.iterator];
        if (!l) return n;
        var c = l.call(n),
            h, m = [],
            x;
        try {
            for (;
                (s === void 0 || s-- > 0) && !(h = c.next()).done;) m.push(h.value)
        } catch (y) {
            x = {
                error: y
            }
        } finally {
            try {
                h && !h.done && (l = c.return) && l.call(c)
            } finally {
                if (x) throw x.error
            }
        }
        return m
    },
    lf = function(n, s, l) {
        if (l || arguments.length === 2)
            for (var c = 0, h = s.length, m; c < h; c++)(m || !(c in s)) && (m || (m = Array.prototype.slice.call(s, 0, c)), m[c] = s[c]);
        return n.concat(m || Array.prototype.slice.call(s))
    },
    hf = Ke(function(n, s) {
        return {
            notes: [],
            createNote: function(l, c) {
                c === void 0 && (c = !1);
                var h = s().notes,
                    m = Ce.getState().language,
                    x = af.useUserLogin.getState().user,
                    y = af.useModal.getState().openRendertype,
                    w = Hv.getState().getContainer,
                    S = w(l).getState(),
                    R = S.note,
                    A = S.setRenderView;
                if (R.text.length < 3 && R.base64.length === 0) {
                    xe({
                        type: "Error",
                        message: m.adicioneAnotacaoCom3,
                        position: "top-right"
                    });
                    return
                }
                if (!x.estado && h.length >= 3) {
                    y("user_free");
                    return
                }!c && ke("notes", lf([R], nf(h), !1)), ca({
                    stopPropag: c,
                    action: "createNote",
                    waitForResponse: !1,
                    data: R
                }), xe({
                    type: "Success",
                    message: m.note_add,
                    position: "top-right"
                }), A("list"), n({
                    notes: lf([R], nf(h), !1)
                })
            },
            createNoteSocket: function(l, c, h) {
                var m = s().notes,
                    x = Ce.getState().language,
                    y = af.useUserLogin.getState().user,
                    w = af.useModal.getState().openRendertype,
                    S = {
                        id: Date.now(),
                        userID: l,
                        text: c,
                        base64: h
                    };
                if (!y.estado && m.length >= 3) {
                    w("user_free");
                    return
                }
                ke("notes", lf([S], nf(m), !1)), ca({
                    stopPropag: !1,
                    action: "createNote",
                    waitForResponse: !1,
                    data: S
                }), xe({
                    type: "Success",
                    message: x.note_add + " via API",
                    position: "top-right"
                }), n({
                    notes: lf([S], nf(m), !1)
                })
            },
            editNote: function(l, c) {
                c === void 0 && (c = !1);
                var h = s().notes,
                    m = Ce.getState().language,
                    x = Hv.getState().getContainer,
                    y = x(l).getState(),
                    w = y.note,
                    S = y.setRenderView;
                if (w.text.length < 3 && w.base64.length === 0) {
                    xe({
                        type: "Error",
                        message: m.adicioneAnotacaoCom3,
                        position: "top-right"
                    });
                    return
                }
                var R = h.map(function(A) {
                    return A.id === w.id ? w : A
                });
                !c && ke("notes", R), ca({
                    stopPropag: c,
                    action: "editNote",
                    waitForResponse: !1,
                    data: w
                }), xe({
                    type: "Success",
                    message: m.note_add,
                    position: "top-right"
                }), S("list"), n({
                    notes: R
                })
            },
            deleteNote: function(l, c) {
                c === void 0 && (c = !1);
                var h = s().notes,
                    m = Ce.getState().language,
                    x = h.filter(function(y) {
                        return y.id !== l
                    });
                !c && ke("notes", x), ca({
                    stopPropag: c,
                    action: "deleteNote",
                    waitForResponse: !1,
                    data: l
                }), xe({
                    type: "Success",
                    message: m.note_delete,
                    position: "top-right"
                }), n({
                    notes: x
                })
            },
            getNotes: function(l) {
                var c = s().notes;
                return c.filter(function(h) {
                    return h.userID === l
                })
            }
        }
    });
z1();
var y4 = Ke()(function(n) {
        return {
            modalEmoji: null,
            options: {},
            childrenRef: null,
            offset: 0,
            auxFunc: {
                mounted: null,
                desmouted: null
            },
            open: function(s, l, c, h, m) {
                return h === void 0 && (h = 10), m === void 0 && (m = {
                    mounted: null,
                    desmouted: null
                }), n(function(x) {
                    return m.mounted && m.mounted(), x.childrenRef !== c && x.auxFunc.desmouted && x.auxFunc.desmouted(), {
                        modalEmoji: s,
                        options: l,
                        childrenRef: c,
                        offset: h,
                        auxFunc: m
                    }
                })
            },
            close: function() {
                return n(function(s) {
                    return s.auxFunc.desmouted && s.auxFunc.desmouted(), {
                        modalEmoji: null,
                        options: {}
                    }
                })
            }
        }
    }),
    pf = function() {
        return pf = Object.assign || function(n) {
            for (var s, l = 1, c = arguments.length; l < c; l++) {
                s = arguments[l];
                for (var h in s) Object.prototype.hasOwnProperty.call(s, h) && (n[h] = s[h])
            }
            return n
        }, pf.apply(this, arguments)
    },
    S4 = function(n, s) {
        var l = D1.getState().getContainer(n),
            c = l.getState().emojiArea;
        c && (c.setText(s), l.setState(function(h) {
            return {
                emojiArea: pf(pf({}, h.emojiArea), {
                    text: s
                })
            }
        }))
    },
    yf = function() {
        return yf = Object.assign || function(n) {
            for (var s, l = 1, c = arguments.length; l < c; l++) {
                s = arguments[l];
                for (var h in s) Object.prototype.hasOwnProperty.call(s, h) && (n[h] = s[h])
            }
            return n
        }, yf.apply(this, arguments)
    },
    w4 = function(n, s) {
        var l = D1.getState().getContainer(n),
            c = l.getState().emojiArea;
        if (c) {
            var h = document.querySelector("aside[render-name='emojiArea'] #".concat(CSS.escape(c.id))),
                m = h.selectionStart || 0,
                x = h.selectionEnd || 0,
                y = h.value.slice(0, m) + s + h.value.slice(x);
            c.setText(y), l.setState({
                emojiArea: yf(yf({}, c), {
                    text: y
                })
            }), setTimeout(function() {
                h.selectionStart = m + s.length, h.selectionEnd = m + s.length, h.focus()
            }, 150)
        }
    },
    L3 = function() {
        return Ke()(function(n, s) {
            return {
                emojiArea: null
            }
        })
    },
    sd = function() {
        return sd = Object.assign || function(n) {
            for (var s, l = 1, c = arguments.length; l < c; l++) {
                s = arguments[l];
                for (var h in s) Object.prototype.hasOwnProperty.call(s, h) && (n[h] = s[h])
            }
            return n
        }, sd.apply(this, arguments)
    },
    D1 = Ke()(function(n, s) {
        return {
            container: {},
            getContainer: function(l) {
                var c = s().container;
                if (c[l]) return c[l];
                var h = L3();
                return n(function(m) {
                    var x;
                    return {
                        container: sd(sd({}, m.container), (x = {}, x[l] = h, x))
                    }
                }), h
            },
            deleteContainer: function(l) {
                return n(function(c) {
                    var h = sd({}, c.container);
                    return delete h[l], {
                        container: h
                    }
                })
            }
        }
    }),
    U3 = Q.lazy(function() {
        return or(() => import("./assets/js/index.C3pFqScA.js"), __vite__mapDeps([16, 1, 2, 3, 4, 5, 6, 7, 8]))
    });

function N4(n) {
    var s = n.id;
    return r.jsx(Q.Suspense, {
        fallback: r.jsx(r.Fragment, {}),
        children: r.jsx(U3, {
            id: s
        })
    })
}
var B3 = Q.lazy(function() {
    return or(() => import("./assets/js/index.BZpIGwND.js"), __vite__mapDeps([17, 1, 2, 3, 4, 5, 6, 7, 8]))
});

function C4(n) {
    var s = n.id;
    return r.jsx(Q.Suspense, {
        fallback: r.jsx(r.Fragment, {}),
        children: r.jsx(B3, {
            id: s
        })
    })
}
var H3 = Q.lazy(function() {
    return or(() => import("./assets/js/index.C3FMbl1U.js"), __vite__mapDeps([18, 1, 2, 3, 4, 5, 6, 7, 8]))
});

function E4(n) {
    var s = n.id;
    return r.jsx(Q.Suspense, {
        fallback: r.jsx(r.Fragment, {}),
        children: r.jsx(H3, {
            id: s
        })
    })
}
var F3 = Q.lazy(function() {
    return or(() => import("./assets/js/index.Bw0WrDeV.js").then(n => n.i), __vite__mapDeps([19, 1, 2, 3, 4, 5]))
});

function G3(n) {
    var s = n.id,
        l = n.base64,
        c = n.onBase64,
        h = n.idioma;
    return r.jsx(Q.Suspense, {
        fallback: r.jsx(r.Fragment, {}),
        children: r.jsx(F3, {
            id: s,
            base64: l,
            onBase64: c,
            idioma: h
        })
    })
}

function Y3(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "g",
            attr: {
                id: "Import"
            },
            child: [{
                tag: "g",
                attr: {},
                child: [{
                    tag: "path",
                    attr: {
                        d: "M5.552,20.968a2.577,2.577,0,0,1-2.5-2.73c-.012-2.153,0-4.306,0-6.459a.5.5,0,0,1,1,0c0,2.2-.032,4.4,0,6.6.016,1.107.848,1.589,1.838,1.589H18.353A1.546,1.546,0,0,0,19.825,19a3.023,3.023,0,0,0,.1-1.061V11.779h0a.5.5,0,0,1,1,0c0,2.224.085,4.465,0,6.687a2.567,2.567,0,0,1-2.67,2.5Z"
                    },
                    child: []
                }, {
                    tag: "path",
                    attr: {
                        d: "M11.63,15.818a.459.459,0,0,0,.312.138c.014,0,.027.005.042.006s.027,0,.041-.006a.457.457,0,0,0,.312-.138l3.669-3.669a.5.5,0,0,0-.707-.707l-2.815,2.815V3.515a.5.5,0,0,0-1,0V14.257L8.668,11.442a.5.5,0,0,0-.707.707Z"
                    },
                    child: []
                }]
            }]
        }]
    })(n)
}
const Fv = ({
    create: n,
    agendamento: s,
    userId: l,
    name: c,
    tipo: h
}) => {
    const {
        addAgendamento: m,
        editAgendamento: x
    } = ma(), {
        language: y,
        idioma: w
    } = Ce(), S = rc.getState().quickReplies, {
        open: R
    } = kt(), [A, _] = Q.useState(() => {
        if (n) return "txt";
        if (s.respostaRapida && s.respostaRapida.length !== 0) return "respostaRapida";
        switch (s.tipo) {
            case "txt":
                return "txt";
            case "audio":
                return "audio";
            case "respostaRapida":
                return "respostaRapida";
            default:
                return "midia"
        }
    }), [O, k] = Q.useState(s || {
        id: "",
        tipo: "txt",
        userID: l,
        titulo: "",
        mensagem: "",
        respostaRapida: "",
        base64: "",
        base64Name: "",
        recorrencia: "",
        recorrenciaManual: !1,
        data: "",
        hora: ""
    }), U = (_e, Be) => {
        _e === "recorrenciaManual" && te(), k(Ae => ({
            ...Ae,
            [_e]: Be
        }))
    }, V = () => {
        k({
            ...O,
            base64: "",
            base64Name: "",
            mensagem: "",
            respostaRapida: ""
        })
    }, te = () => {
        k({
            ...O,
            recorrencia: ""
        })
    }, $ = async () => {
        if (O.data.length === 0 || O.hora.length === 0) {
            xe({
                type: "Error",
                message: y.agendamento_Notif_error,
                position: "top-right"
            });
            return
        }
        const _e = new Date,
            Be = new Date(`${O.data}T${O.hora}`),
            Ae = Math.floor((Be.getTime() - _e.getTime()) / (1e3 * 60));
        if (Be.toDateString() === _e.toDateString()) {
            if (Ae < -1) {
                xe({
                    type: "Error",
                    message: y.agenDataHoraErro,
                    position: "top-right"
                });
                return
            }
        } else if (Be < _e) {
            xe({
                type: "Error",
                message: y.agenDataErro,
                position: "top-right"
            });
            return
        }
        if (O.tipo === "txt" && A !== "respostaRapida" && A !== "audio" && O.mensagem.trim().length === 0) {
            xe({
                type: "Error",
                message: y.agendamento_Notif_msg,
                position: "top-right"
            });
            return
        }
        if (A === "audio" && O.base64.length === 0) {
            xe({
                type: "Error",
                message: y.agendamento_Notif_msgError_audio,
                position: "top-right"
            });
            return
        }
        if (A === "respostaRapida" && S.length === 0) {
            xe({
                type: "Error",
                message: y.agendamento_notRes,
                position: "top-right"
            });
            return
        }
        if (await Yn("agendamentos") !== !0) {
            if (O.titulo.length === 0 && (O.titulo = `${y.naoDefinido}`), O.id = Si(), A === "respostaRapida" && !O.respostaRapida && (O.respostaRapida = S[0].id), (A === "txt" || A === "respostaRapida") && (O.base64 = "", O.base64Name = ""), A !== "respostaRapida" && (O.respostaRapida = ""), A === "txt" && (O.tipo = "txt"), A === "audio" && (O.tipo = "audio", O.base64 = O.base64, O.base64Name = O.base64Name), A === "respostaRapida" && (O.tipo = "respostaRapida"), O.recorrenciaManual && O.recorrencia === "") {
                xe({
                    type: "Error",
                    message: y.recorrenciaPersonalizada,
                    position: "top-right"
                });
                return
            }
            m(O), xe({
                type: "Success",
                message: y.agendamento_Notif_success,
                position: "top-right"
            }), R(r.jsx($o, {
                userId: l,
                name: c
            }))
        }
    }, ve = () => {
        if (O.data.length === 0 || O.hora.length === 0) {
            xe({
                type: "Error",
                message: y.agendamento_Notif_error,
                position: "top-right"
            });
            return
        }
        const _e = new Date,
            Be = new Date(`${O.data}T${O.hora}`),
            Ae = Math.floor((Be.getTime() - _e.getTime()) / (1e3 * 60));
        if (Be.toDateString() === _e.toDateString()) {
            if (Ae < -1) {
                xe({
                    type: "Error",
                    message: y.agenDataHoraErro,
                    position: "top-right"
                });
                return
            }
        } else if (Be < _e) {
            xe({
                type: "Error",
                message: y.agenDataErro,
                position: "top-right"
            });
            return
        }
        if (O.tipo === "txt" && A !== "respostaRapida" && A !== "audio" && O.mensagem.trim().length === 0) {
            xe({
                type: "Error",
                message: y.agendamento_Notif_msg,
                position: "top-right"
            });
            return
        }
        if (A === "audio" && O.base64.length === 0) {
            xe({
                type: "Error",
                message: y.agendamento_Notif_msgError_audio,
                position: "top-right"
            });
            return
        }
        if (A === "respostaRapida" && S.length === 0) {
            xe({
                type: "Error",
                message: y.agendamento_notRes,
                position: "top-right"
            });
            return
        }
        if (O.titulo.length === 0 && (O.titulo = `${y.naoDefinido}`), (A === "txt" || A === "respostaRapida") && (O.base64 = "", O.base64Name = ""), A !== "respostaRapida" && (O.respostaRapida = ""), A === "txt" && (O.tipo = "txt"), A === "audio" && (O.tipo = "audio", O.base64 = O.base64, O.base64Name = O.base64Name), A === "respostaRapida" && (O.tipo = "respostaRapida"), O.recorrenciaManual && O.recorrencia === "") {
            xe({
                type: "Error",
                message: y.recorrenciaPersonalizada,
                position: "top-right"
            });
            return
        }
        x(O, h), xe({
            type: "Success",
            message: y.agendamento_Notif_successEdit,
            position: "top-right"
        }), R(r.jsx($o, {
            userId: l,
            name: c
        }))
    }, fe = () => {
        h === "agendamento" && R(r.jsx($o, {
            userId: l,
            name: c
        }))
    }, Se = _e => {
        let Be = _e.type.split("/")[0];
        Be !== "image" && Be !== "audio" && Be !== "video" && (Be = "doc");
        const Ae = new FileReader;
        Ae.onloadend = function() {
            const F = Ae.result;
            k({
                ...O,
                tipo: Be,
                base64: F,
                base64Name: _e.name.split(".")[0]
            })
        }, Ae.readAsDataURL(_e)
    }, be = r.jsxs("div", {
        className: "form-control w-full",
        children: [r.jsxs("div", {
            className: "!flex gap-1",
            children: [r.jsx("label", {
                className: "label",
                children: r.jsx("span", {
                    className: "label-text",
                    children: y.agendamento_msg
                })
            }), r.jsx("span", {
                className: "pulse cursor-pointer lg:tooltip lg:tooltip-bottom tooltip-w-fit  before:!w-44 mt-2",
                "data-tip": y.agendamento_infoTagNome,
                children: r.jsx(Jo, {
                    className: "w-5 h-5 text-[var(--icon)]"
                })
            })]
        }), r.jsx(vg, {
            id: "emoji-area-agendamento_crm",
            type: "textarea",
            className: "w-full",
            position: "right",
            placeholder: y.agendamento_placeMsg,
            text: O.mensagem,
            setText: _e => U("mensagem", _e),
            heightCamp: 150
        })]
    }), vt = () => r.jsxs("div", {
        className: "flex flex-col justify-start self-start h-full items-start w-auto",
        children: [r.jsxs("div", {
            className: "!flex gap-1",
            children: [r.jsx("label", {
                className: "label",
                children: r.jsx("span", {
                    className: "label-text",
                    children: y.agendamento_GravarAudio
                })
            }), r.jsx("span", {
                className: "pulse cursor-pointer lg:tooltip lg:tooltip-bottom tooltip-w-fit  before:!w-44 mt-2",
                "data-tip": y.agendamento_tolltip_audio,
                children: r.jsx(Jo, {
                    className: "w-5 h-5 text-[var(--icon)]"
                })
            })]
        }), r.jsx("div", {
            className: "w-[250px] m-auto flex justify-center items-center gap-1",
            children: r.jsx(G3, {
                id: "audio_agendamento_crm",
                base64: O.base64,
                onBase64: Be => k({
                    ...O,
                    base64: Be
                }),
                idioma: w
            })
        })]
    }), De = () => r.jsxs("div", {
        className: "flex flex-col justify-start self-start h-full items-start w-auto",
        children: [r.jsxs("div", {
            className: "!flex gap-1",
            children: [r.jsx("label", {
                className: "label",
                children: r.jsx("span", {
                    className: "label-text",
                    children: y.agenGravarAudio
                })
            }), r.jsx("span", {
                className: "pulse cursor-pointer lg:tooltip lg:tooltip-bottom tooltip-w-fit  before:!w-44 mt-2",
                "data-tip": y.botaoIniciarGravcaoAudio,
                children: r.jsx(Jo, {
                    className: "w-5 h-5 text-[var(--icon)]"
                })
            })]
        }), r.jsxs("div", {
            className: "flex w-auto items-center justify-start gap-1",
            children: [r.jsx("audio", {
                src: O.base64,
                className: "w-[250px]",
                controls: !0
            }), r.jsx("span", {
                className: "cursor-pointer pulse",
                onClick: () => U("base64", ""),
                children: r.jsx(is, {
                    className: "w-5 h-5 text-red-500"
                })
            })]
        })]
    }), me = () => r.jsxs("label", {
        className: "m-auto p-2 border-base-200 hover:border-[var(--primaria)] border border-solid rounded-lg h-24 w-20 pulse flex justify-center items-center flex-col shadow-lg cursor-pointer mt-16",
        children: [r.jsx(Y3, {
            className: "h-6 w-6 text-[var(--primaria)]",
            strokeWidth: 1
        }), r.jsx("strong", {
            className: "text-[var(--primaria)]",
            children: y.importar
        }), r.jsx("input", {
            type: "file",
            className: "hidden",
            onChange: Be => Se(Be.target.files[0])
        })]
    }), Le = () => {
        let _e;
        switch (O.tipo) {
            case "image":
                _e = r.jsx("img", {
                    src: O.base64,
                    className: "w-[150px] max-h-[180px]"
                });
                break;
            case "video":
                _e = r.jsx("video", {
                    src: O.base64,
                    className: "w-[150px] max-h-[180px]",
                    controls: !0
                });
                break;
            case "audio":
                _e = r.jsx("audio", {
                    src: O.base64,
                    className: "w-[150px]",
                    controls: !0
                });
                break;
            default:
                _e = r.jsx("div", {
                    className: "animate__animated animate__zoomIn",
                    children: r.jsx("div", {
                        className: "tvf2evcx m0h2a7mj lb5m6g5c j7l1k36l ktfrpxia nu7pwgvd p357zi0d dnb887gk gjuq5ydh i2cterl7 ac2vgrno f8m0rgwh gndfcl4n cm280p3y jmly3brn qqs366u4 ikqdvm1y m3qqxsiz r1ncx0sg mmj7r7ye py-2",
                        children: r.jsxs("div", {
                            className: "du8bjn1j px-2 !m-0",
                            children: [r.jsx("span", {
                                "data-icon": "preview-generic",
                                className: "flex justify-center",
                                children: r.jsxs("svg", {
                                    viewBox: "0 0 88 110",
                                    height: "110",
                                    width: "88",
                                    preserveAspectRatio: "xMidYMid meet",
                                    children: [r.jsx("g", {
                                        transform: "translate(4 3)",
                                        children: r.jsx("path", {
                                            "stroke-opacity": "0.08",
                                            stroke: "#000",
                                            d: "M3-.5h56.929a5.5 5.5 0 0 1 3.889 1.61l15.071 15.072a5.5 5.5 0 0 1 1.611 3.89V101a3.5 3.5 0 0 1-3.5 3.5H3A3.5 3.5 0 0 1-.5 101V3A3.5 3.5 0 0 1 3-.5z",
                                            fill: "#FFF",
                                            "fill-rule": "evenodd"
                                        })
                                    }), r.jsx("path", {
                                        d: "M65.5 3.5v15a3 3 0 0 0 3 3h15",
                                        "stroke-opacity": "0.12",
                                        stroke: "#000",
                                        fill: "#FFF"
                                    })]
                                })
                            }), r.jsx("span", {
                                className: "pt-1 text-center font-semibold w-full block uppercase",
                                children: "documento"
                            })]
                        })
                    })
                });
                break
        }
        return r.jsxs("div", {
            className: "flex flex-col items-center",
            children: [r.jsx("div", {
                className: "flex justify-end w-full",
                children: r.jsx("span", {
                    className: "cursor-pointer pulse",
                    onClick: () => U("base64", ""),
                    children: r.jsx(is, {
                        className: "w-5 h-5 text-red-500"
                    })
                })
            }), _e]
        })
    }, Mt = () => r.jsx("div", {
        className: "mt-4",
        children: r.jsx(R3, {
            updateForm: U,
            resID: O.respostaRapida
        })
    });
    return r.jsxs("div", {
        className: "w-[600px] grid gap-4 overflow-auto pr-1",
        style: {
            maxHeight: "calc(100vh - 70px)"
        },
        children: [r.jsxs(Xn, {
            children: [n ? y.create : y.edit, " ", y.agendamento]
        }), r.jsxs("div", {
            className: "form-control w-full",
            children: [r.jsx("label", {
                className: "label",
                children: r.jsxs("span", {
                    className: "label-text",
                    children: [y.agendamento_table_titulo, " (", y.opcional, ")"]
                })
            }), r.jsx("input", {
                type: "text",
                placeholder: y.agendamento_PlaceTitulo,
                className: "input input-bordered w-full input-sm",
                value: O.titulo,
                onChange: _e => U("titulo", _e.target.value)
            })]
        }), r.jsxs("div", {
            className: "form-control w-full",
            children: [r.jsx("label", {
                className: "label",
                children: r.jsx("span", {
                    className: "label-text",
                    children: y.agendamento_selectType
                })
            }), r.jsxs("div", {
                className: "tabs tabs-boxed w-fit",
                children: [r.jsx("a", {
                    className: "tab font-bold " + (A === "txt" ? "tab-active !bg-[var(--primaria)] !text-[var(--letra)]" : ""),
                    onClick: () => {
                        _("txt"), V()
                    },
                    children: y.agendamento_createText
                }), r.jsx("a", {
                    className: "tab font-bold " + (A === "midia" ? "tab-active !bg-[var(--primaria)] !text-[var(--letra)]" : ""),
                    onClick: () => {
                        _("midia"), V()
                    },
                    children: y.agendamento_midia
                }), r.jsx("a", {
                    className: "tab font-bold " + (A === "audio" ? "tab-active !bg-[var(--primaria)] !text-[var(--letra)]" : ""),
                    onClick: () => {
                        _("audio"), V()
                    },
                    children: y.agendamento_audio
                }), r.jsx("a", {
                    className: "tab font-bold " + (A === "respostaRapida" ? "tab-active !bg-[var(--primaria)] !text-[var(--letra)]" : ""),
                    onClick: () => {
                        _("respostaRapida"), V(), U("respostaRapida", S[0].id)
                    },
                    children: y.agendamento_select_resposta
                })]
            }), A === "respostaRapida" ? r.jsx(Mt, {}) : r.jsxs("div", {
                className: "flex gap-4 items-center pt-4",
                children: [A === "midia" && (!O.base64 || O.base64.length === 0 ? me() : Le()), A === "audio" && (!O.base64 || O.base64.length === 0 ? vt() : De()), be]
            })]
        }), r.jsxs("div", {
            className: "flex justify-between gap-6",
            children: [r.jsxs("div", {
                className: "form-control w-full max-w-xs",
                children: [r.jsx("label", {
                    className: "label",
                    children: r.jsx("span", {
                        className: "label-text",
                        children: y.agendamento_table_data
                    })
                }), r.jsx("input", {
                    type: "Date",
                    className: "input input-bordered w-full max-w-xs input-sm",
                    value: O.data,
                    onChange: _e => U("data", _e.target.value)
                })]
            }), r.jsxs("div", {
                className: "form-control w-full max-w-xs",
                children: [r.jsx("label", {
                    className: "label",
                    children: r.jsx("span", {
                        className: "label-text",
                        children: y.agendamento_table_hora
                    })
                }), r.jsx("input", {
                    type: "time",
                    className: "input input-bordered w-full max-w-xs input-sm cursor-pointer",
                    value: O.hora,
                    onChange: _e => U("hora", _e.target.value)
                })]
            })]
        }), !O.recorrenciaManual && r.jsxs("div", {
            className: "form-control w-full",
            children: [r.jsx("label", {
                className: "label",
                children: r.jsx("span", {
                    className: "label-text",
                    children: y.agendamento_recorrencia
                })
            }), r.jsxs("select", {
                className: "!py-0 select select-bordered !select-sm w-full",
                onChange: _e => U("recorrencia", _e.target.value),
                value: O.recorrencia ? O.recorrencia : "",
                children: [r.jsx("option", {
                    value: "",
                    children: y.noneSelected
                }), r.jsx("option", {
                    value: "diario",
                    children: y.diario
                }), r.jsx("option", {
                    value: "semanal",
                    children: y.semanal
                }), r.jsx("option", {
                    value: "quinzenal",
                    children: y.quinzenal
                }), r.jsx("option", {
                    value: "mensal",
                    children: y.mensal
                }), r.jsx("option", {
                    value: "trimestral",
                    children: y.trimestral
                }), r.jsx("option", {
                    value: "semestral",
                    children: y.semestral
                }), r.jsx("option", {
                    value: "anual",
                    children: y.anual
                })]
            })]
        }), r.jsxs("div", {
            children: [r.jsx("div", {
                className: "form-control w-full",
                children: r.jsxs("label", {
                    className: "label gap-2 cursor-pointer w-fit !pt-0",
                    htmlFor: "set-recorrencia",
                    children: [r.jsx(rg, {
                        id: "set-recorrencia",
                        estado: O.recorrenciaManual,
                        checkedUpdade: () => U("recorrenciaManual", !O.recorrenciaManual)
                    }), r.jsx(Gn, {
                        children: y.addRecorrenciaPersonalizada
                    })]
                })
            }), O.recorrenciaManual && r.jsxs("div", {
                className: "form-control w-full",
                children: [r.jsx("label", {
                    className: "label",
                    children: r.jsx("span", {
                        className: "label-text",
                        children: y.recorrenciaPersonalizadaTitle
                    })
                }), r.jsx("input", {
                    type: "number",
                    placeholder: y.recorrenciaPlace,
                    className: "input input-bordered w-full input-sm",
                    value: O.recorrencia,
                    onChange: _e => U("recorrencia", _e.target.value)
                })]
            })]
        }), r.jsxs("div", {
            className: "flex justify-between pt-4 resize-none",
            children: [r.jsx(Zt, {
                name: y.cancel,
                funcao: fe
            }), n ? r.jsx(Zt, {
                name: y.create,
                funcao: $
            }) : r.jsx(Zt, {
                name: y.edit,
                funcao: ve
            })]
        })]
    })
};

function $o({
    userId: n,
    name: s
}) {
    const {
        agendamentos: l,
        agendamentosNaoDisparados: c,
        removeAgendamento: h,
        buttonActive: m,
        setButtonActive: x,
        openUserChat: y
    } = ma(), [w, S] = Q.useState(!1), [R, A] = Q.useState(m ? l : l.filter(Ae => Ae.userID === n)), {
        language: _
    } = Ce(), [O, k] = Q.useState(new Map), U = async Ae => {
        const F = await Ve.Contact("getProfilePictureUrl", Ae),
            {
                name: ee
            } = await Ve.Utils("getContato", Ae);
        return {
            nome: ee,
            base64: F
        }
    }, V = async Ae => {
        const F = Array.from(new Set(Ae.map(Me => Me.userID))),
            ee = new Map;
        for (const Me of F) {
            const ct = await U(Me);
            ee.set(Me, ct)
        }
        k(ee)
    };
    Q.useEffect(() => {
        V(R)
    }, [R]);
    const te = Ae => O.get(Ae) || {
        nome: "",
        base64: ""
    };
    Q.useEffect(() => {
        const Ae = new Date().getTime(),
            ee = (m ? l : l.filter(Me => Me.userID === n)).sort((Me, ct) => {
                const oe = new Date(`${Me.data}T${Me.hora}:00`).getTime(),
                    ae = new Date(`${ct.data}T${ct.hora}:00`).getTime(),
                    Aa = Math.abs(oe - Ae),
                    xt = Math.abs(ae - Ae);
                return Aa - xt
            });
        A(ee)
    }, [l, m, n, c]);
    const {
        open: $
    } = kt(), {
        open: ve
    } = Ma(), fe = 50, Se = 37, be = "calc(85vh - 300px)", vt = "950px", De = () => {
        const Ae = R.length * fe + Se,
            F = parseInt(be.replace(/[^\d]/g, ""));
        return Math.min(Ae, F)
    }, me = Ae => {
        $(r.jsx(Fv, {
            agendamento: Ae,
            create: !1,
            userId: n,
            name: s,
            tipo: "agendamento"
        }))
    }, Le = async () => {
        $(r.jsx(Fv, {
            agendamento: null,
            create: !0,
            userId: n,
            name: s,
            tipo: "agendamento"
        }))
    }, Mt = Ae => {
        y(Ae.userID), $(r.jsx($o, {
            userId: Ae.userID,
            name: s
        }))
    }, zt = ({
        index: Ae,
        style: F
    }) => {
        const ee = R[Ae];
        return r.jsxs("div", {
            style: F,
            className: "flex items-center rounded-lg hover:bg-base-200 cursor-pointer h-full border-solid border-b border-[var(--border-list)] last-of-type:border-none",
            children: [r.jsx("div", {
                className: "flex-1 flex items-center justify-center",
                children: r.jsx("span", {
                    className: "break-words truncate",
                    style: {
                        maxWidth: "100px"
                    },
                    children: ee.titulo
                })
            }), r.jsx("div", {
                className: "flex-1 flex items-center justify-center",
                children: r.jsxs("div", {
                    className: "flex items-center gap-2",
                    children: [te(ee.userID).base64 === "undefined" ? r.jsx("div", {
                        className: "w-8 h-8 rounded-full flex items-center justify-center",
                        children: r.jsx(vd, {})
                    }) : r.jsx("img", {
                        src: te(ee.userID).base64,
                        className: "w-8 h-8 rounded-full object-cover",
                        alt: "User"
                    }), r.jsx("p", {
                        className: "break-words truncate",
                        style: {
                            maxWidth: "92px"
                        },
                        children: te(ee.userID).nome
                    })]
                })
            }), r.jsx("div", {
                className: "flex-1 flex items-center justify-center",
                children: ee.tipo
            }), r.jsx("div", {
                className: "flex-1 flex items-center justify-center",
                children: Fn.converterData(ee.data)
            }), r.jsx("div", {
                className: "flex-1 flex items-center justify-center",
                children: ee.hora
            }), r.jsx("div", {
                className: "flex-1 flex items-center justify-center",
                children: ee.recorrenciaManual ? ee.recorrencia ? `${ee.recorrencia} ${_.dias}` : _.vazia : _[ee.recorrencia] || _.vazia
            }), r.jsxs("div", {
                className: "flex-1 flex items-center justify-center gap-1",
                children: [r.jsx("span", {
                    className: "pulse",
                    onClick: () => me(ee),
                    children: r.jsx(no, {
                        className: "h-4 w-4"
                    })
                }), r.jsx("span", {
                    className: "pulse",
                    onClick: () => h(ee.id, "agendamento"),
                    children: r.jsx(is, {
                        className: "h-4 w-4"
                    })
                }), m && n !== ee.userID && r.jsx("span", {
                    className: "pulse lg:tooltip lg:tooltip-left",
                    onClick: () => Mt(ee),
                    "data-tip": _.agenOpenChat,
                    children: r.jsx(Dp, {
                        className: "h-4 w-4"
                    })
                })]
            })]
        }, ee.id)
    }, _e = () => r.jsx("div", {
        className: "w-full border-collapse",
        children: r.jsxs("div", {
            className: "flex font-bold",
            children: [r.jsx("div", {
                className: "flex-1 px-4 py-3 text-xs align-middle text-center table-cell text-[#1f293799] dark:text-[#a6adbb99]",
                children: _.agendamento_table_titulo
            }), r.jsx("div", {
                className: "flex-1 px-4 py-3 text-xs align-middle text-center table-cell text-[#1f293799] dark:text-[#a6adbb99]",
                children: _.agendamento_table_cliente
            }), r.jsx("div", {
                className: "flex-1 px-4 py-3 text-xs align-middle text-center table-cell text-[#1f293799] dark:text-[#a6adbb99]",
                children: _.agendamento_table_tipo
            }), r.jsx("div", {
                className: "flex-1 px-4 py-3 text-xs align-middle text-center table-cell text-[#1f293799] dark:text-[#a6adbb99]",
                children: _.agendamento_table_data
            }), r.jsx("div", {
                className: "flex-1 px-4 py-3 text-xs align-middle text-center table-cell text-[#1f293799] dark:text-[#a6adbb99]",
                children: _.agendamento_table_hora
            }), r.jsx("div", {
                className: "flex-1 px-4 py-3 text-xs align-middle text-center table-cell text-[#1f293799] dark:text-[#a6adbb99]",
                children: _.agendamento_recorrencia
            }), r.jsx("div", {
                className: "flex-1 px-4 py-3 text-xs align-middle text-center table-cell text-[#1f293799] dark:text-[#a6adbb99]",
                children: _.agendamento_table_acao
            })]
        })
    });
    return r.jsxs("div", {
        className: "grid gap-4",
        style: {
            maxHeight: "90vh",
            width: vt
        },
        children: [r.jsx("div", {
            className: "w-full flex items-center justify-between pr-2",
            children: r.jsx("div", {
                className: `${w?"animate__animated animate__fadeIn":""}`,
                children: r.jsxs(Xn, {
                    children: [m && _.todas, " ", _.agendamento_title, " ", s ? _.para + " " + s : ""]
                })
            })
        }), r.jsx("div", {
            className: `${w?"animate__animated animate__fadeIn":""}`,
            children: R.length > 0 ? r.jsxs("div", {
                style: {
                    height: De(),
                    maxHeight: be,
                    width: "100%"
                },
                children: [r.jsx(_e, {}), r.jsx(Qx, {
                    children: ({
                        height: Ae,
                        width: F
                    }) => r.jsx(Wx, {
                        height: Ae - Se,
                        itemCount: R.length,
                        itemSize: fe,
                        width: vt,
                        style: {
                            overflowX: "hidden",
                            width: vt,
                            minHeight: "50px"
                        },
                        children: zt
                    })
                })]
            }) : r.jsx("div", {
                className: "!h-fit",
                children: r.jsx(sg, {
                    title: _.agendamentoEmptyTitle,
                    description: _.agendamentoEmptyDesc,
                    icon: r.jsx(t0, {
                        className: "w-7 h-7 text-[var(--primaria)]"
                    })
                })
            })
        }), r.jsx("div", {
            className: "flex justify-end",
            children: r.jsx(Zt, {
                name: _.create,
                funcao: Le
            })
        })]
    })
}

function Gv(n, s) {
    const c = new Date(`${n}T${s}:00`).getTimezoneOffset(),
        h = Math.abs(Math.floor(c / 60)),
        m = Math.abs(c % 60),
        y = `${c>0?"-":"+"}${h.toString().padStart(2,"0")}:${m.toString().padStart(2,"0")}`;
    return `${n}T${s}:00${y}`
}

function X3({
    plugin_page: n
}) {
    var R;
    const {
        language: s
    } = Ce(), {
        close: l
    } = kt(), c = Fn.dayDate(), h = Fn.timeDate(), [m, x] = Q.useState({
        title: (R = document.getElementById("chatName")) == null ? void 0 : R.innerHTML,
        init_date: c.year + "-" + c.month + "-" + c.day,
        init_hora: h.hours + ":" + h.minutes,
        fim_date: "",
        fim_hora: "",
        location: "",
        descricao: ""
    }), y = (A, _) => {
        x({
            ...m,
            [A]: _
        })
    }, w = async () => {
        if (m.init_date.length === 0 || m.init_hora.length === 0 || m.fim_date.length === 0 || m.fim_hora.length === 0) {
            xe({
                type: "Error",
                message: s.preenchaTodosCamposDataHora,
                position: "top-right"
            });
            return
        }
        const A = new Date(m.init_date + " " + m.init_hora).getTime();
        if (new Date(m.fim_date + " " + m.fim_hora).getTime() < A) {
            xe({
                type: "Error",
                message: s.dataDeTerminoInferiorDataInicio,
                position: "top-right"
            });
            return
        }
        if (await Yn("googleCalendario") === !0) return;
        xe({
            type: "Success",
            message: s.eventoGoogleCalendarioCriado,
            position: "top-right"
        });
        let O = "https://calendar.google.com/calendar/render?action=TEMPLATE",
            k = `&text=${encodeURIComponent(m.title)}`,
            U = Gv(m.init_date, m.init_hora),
            V = Gv(m.fim_date, m.fim_hora),
            te = `&dates=${U.replace(new RegExp("[-:+]","g"),"")}/${V.replace(new RegExp("[-:+]","g"),"")}`,
            $ = `&details=${encodeURIComponent(m.descricao)}`,
            ve = `&location=${encodeURIComponent(m.location)}`;
        O = O + k + te + $ + ve, window.open(O, "_blank"), l()
    };
    return r.jsxs("div", {
        className: "w-[35rem] p-2 flex flex-col items-center",
        children: [r.jsx("header", {
            className: "w-full",
            children: r.jsx(Gn, {
                size: "22px",
                weight: "bold",
                children: s.modal_schedulingCallendar_title
            })
        }), r.jsxs("main", {
            className: "w-full flex flex-col gap-3 mt-2",
            children: [r.jsx(ir, {
                size: "15px",
                title: s.modal_schedulingCallendar_placeTitle,
                type: "text",
                placeHolder: s.modal_schedulingCallendar_placeMessage,
                value: m.title,
                onchange: A => y("title", A.target.value)
            }), r.jsxs("div", {
                className: "w-full flex flex-col gap-2",
                children: [r.jsxs("div", {
                    className: "w-full gap-3 flex items-center",
                    children: [r.jsx("div", {
                        className: "w-3/6",
                        children: r.jsx(ir, {
                            size: "12px",
                            title: s.modal_schedulingCallendar_since,
                            type: "date",
                            value: m.init_date,
                            onchange: A => y("init_date", A.target.value)
                        })
                    }), r.jsx("div", {
                        className: "w-3/6 self-end",
                        children: r.jsx(ir, {
                            title: "",
                            type: "time",
                            value: m.init_hora,
                            onchange: A => y("init_hora", A.target.value)
                        })
                    })]
                }), r.jsxs("div", {
                    className: "w-full gap-3 flex items-center",
                    children: [r.jsx("div", {
                        className: "w-3/6",
                        children: r.jsx(ir, {
                            size: "12px",
                            title: s.modal_schedulingCallendar_until,
                            type: "date",
                            value: m.fim_date,
                            onchange: A => y("fim_date", A.target.value)
                        })
                    }), r.jsx("div", {
                        className: "w-3/6 self-end",
                        children: r.jsx(ir, {
                            title: "",
                            type: "time",
                            value: m.fim_hora,
                            onchange: A => y("fim_hora", A.target.value)
                        })
                    })]
                })]
            }), r.jsx(ir, {
                size: "15px",
                title: s.modal_schedulingCallendar_location,
                type: "text",
                placeHolder: s.inserirLocalizacao,
                value: m.location,
                onchange: A => y("location", A.target.value)
            }), r.jsx(ir, {
                size: "15px",
                title: s.modal_schedulingCallendar_description,
                type: "text",
                placeHolder: s.modal_schedulingCallendar_placeMessageAbout,
                value: m.descricao,
                onchange: A => y("descricao", A.target.value)
            })]
        }), r.jsx("footer", {
            className: "mt-2",
            children: r.jsx(Zt, {
                funcao: w,
                name: s.modal_schedulingCallendar_saveButton
            })
        })]
    })
}

function Yv({
    userId: n,
    create: s,
    notification: l,
    onBackBtnClickHnd: c
}) {
    const {
        language: h
    } = Ce(), {
        setNotifications: m,
        editNotification: x,
        notifications: y
    } = ao(), [w, S] = Q.useState({
        id: Si(),
        date: "",
        read: !1,
        timeOut: !1,
        time: "",
        title: "",
        desc: "",
        user_id: n
    }), [R, A] = Q.useState(!1);
    Q.useEffect(() => {
        l && S(l)
    }, [l]);
    const _ = (V, te) => {
            S({
                ...w,
                [V]: te
            })
        },
        O = async V => {
            if (V.preventDefault(), await Yn("lembretes")) console.error("User is FREE, cannot proceed.");
            else {
                const $ = {
                    id: w.id || Si(),
                    date: w.date,
                    read: !1,
                    timeOut: !1,
                    time: w.time,
                    title: w.title,
                    desc: w.desc,
                    user_id: n
                };
                if (R) {
                    let ve = new Date;
                    ve.setHours(ve.getHours() - 3), ve.setMinutes(ve.getMinutes() - 5);
                    let fe = ve.toISOString().slice(0, 10),
                        Se = ve.toISOString().slice(11, 16).replace(":", ""),
                        be = "https://calendar.google.com/calendar/render?action=TEMPLATE&text=";
                    be += `${encodeURIComponent(w.title)}&dates=${fe.replace(new RegExp("[-:+]","g"),"")}T${Se}/${w.date.replace(new RegExp("[-:+]","g"),"")}T${w.time.replace(new RegExp("[-:+]","g"),"")}`, be += `&details=${encodeURIComponent(w.desc)}`, be += "&ctz=America/Sao_Paulo", window.open(be, "_blank")
                }
                if ($.title.length > 0 && $.desc.length > 0 && $.date.length > 0 && $.time.length > 0) {
                    if (s) m([...y, $]);
                    else if (l.id) x(l.id, $);
                    else {
                        console.error("Invalid notification ID:", l == null ? void 0 : l.id);
                        return
                    }
                    xe({
                        type: "Success",
                        message: `${s?h.modal_createAReminder_alertMessageSucess:h.modal_createAReminder_alertMessageSucessEdit}`,
                        position: "top-right"
                    }), c()
                } else xe({
                    type: "Error",
                    message: h.modal_createAReminder_FillAllFields,
                    position: "top-right"
                })
            }
        }, k = V => {
            const {
                value: te
            } = V.target, $ = te, ve = new Date().toISOString().slice(0, 10);
            if ($ < ve) {
                xe({
                    type: "Error",
                    message: h.modal_createAReminder_alertMessageDataError,
                    position: "top-right"
                });
                return
            }
            _("date", te)
        };
    return r.jsxs("form", {
        className: "w-[30rem] h-auto flex flex-col gap-2 p-2",
        onSubmit: O,
        children: [r.jsxs("header", {
            className: "flex flex-col gap-3",
            children: [r.jsx(Gn, {
                size: "20px",
                weight: "bold",
                children: s ? h.modal_createAReminder_title : h.modal_editAReminder_title
            }), r.jsx(Gn, {
                size: "14px",
                children: h.modal_createAReminder_subTitle
            })]
        }), r.jsxs("main", {
            className: "flex flex-col gap-2",
            children: [r.jsx(ir, {
                icon: r.jsx(sp, {
                    size: 16
                }),
                title: h.modal_name,
                type: "text",
                placeHolder: h.modal_createAReminder_PlaceHoldertittle,
                value: w.title,
                onchange: V => _("title", V.target.value),
                maxLength: 55
            }), r.jsxs("div", {
                className: "flex flex-col gap-2",
                children: [r.jsx(Gn, {
                    size: "17px",
                    weight: "bold",
                    children: h.description
                }), r.jsx("textarea", {
                    placeholder: h.modal_createAReminder_subDesc,
                    rows: 6,
                    maxLength: 784,
                    className: "w-full p-2 text-sm leading-5 text-[var(--primary)] bg-base-200 input-bordered rounded-md resize-none",
                    onChange: V => _("desc", V.target.value),
                    value: w.desc
                })]
            }), r.jsx(ir, {
                title: h.modal_date,
                type: "date",
                value: w.date,
                onchange: k
            }), r.jsx(ir, {
                title: h.modal_hours,
                type: "time",
                value: w.time,
                onchange: V => _("time", V.target.value)
            })]
        }), r.jsxs("footer", {
            className: "flex flex-col mt-2 gap-3",
            children: [r.jsxs("div", {
                className: "flex gap-3 w-full items-center",
                children: [r.jsx("input", {
                    type: "checkbox",
                    name: "Google Calendar",
                    checked: R,
                    onChange: () => A(!R)
                }), r.jsx(Gn, {
                    children: h.modal_createAReminder_checkBoxText
                })]
            }), r.jsxs("div", {
                className: "flex w-full justify-evenly",
                children: [r.jsx(Zt, {
                    funcao: c,
                    name: h.modal_schedulingCallendar_cancelButton
                }), r.jsx(Zt, {
                    funcao: O,
                    name: s ? h.modal_schedulingCallendar_saveButton : h.modal_schedulingCallendar_editButton
                })]
            })]
        })]
    })
}

function gf(n) {
    return nt({
        attr: {
            version: "1.1",
            viewBox: "0 0 17 17"
        },
        child: [{
            tag: "g",
            attr: {},
            child: []
        }, {
            tag: "path",
            attr: {
                d: "M14.714 6.791c0.504-0.512 0.786-1.181 0.786-1.903 0-1.503-1.223-2.726-2.725-2.726-0.886 0-1.695 0.434-2.207 1.15-0.501-0.155-1.026-0.249-1.568-0.287v-1.025h1v-1h-3v1h1v1.025c-0.542 0.038-1.067 0.132-1.568 0.287-0.512-0.717-1.32-1.15-2.207-1.15-1.502 0-2.725 1.223-2.725 2.726 0 0.723 0.282 1.392 0.786 1.903-0.499 0.962-0.786 2.052-0.786 3.209 0 1.707 0.616 3.271 1.635 4.487l-1.285 1.713 0.8 0.6 1.192-1.59c1.239 1.109 2.868 1.79 4.658 1.79s3.419-0.681 4.658-1.79l1.192 1.59 0.8-0.6-1.285-1.713c1.019-1.216 1.635-2.78 1.635-4.487 0-1.157-0.287-2.247-0.786-3.209zM12.775 3.162c0.951 0 1.725 0.774 1.725 1.726 0 0.373-0.12 0.724-0.335 1.017-0.678-0.936-1.581-1.694-2.63-2.202 0.322-0.339 0.762-0.541 1.24-0.541zM2.5 4.888c0-0.951 0.774-1.726 1.725-1.726 0.478 0 0.918 0.202 1.24 0.54-1.049 0.508-1.951 1.267-2.63 2.202-0.215-0.293-0.335-0.643-0.335-1.016zM8.5 16c-3.309 0-6-2.691-6-6s2.691-6 6-6 6 2.691 6 6-2.691 6-6 6zM9 10h4v1h-5v-4h1v3z"
            },
            child: []
        }]
    })(n)
}

function ag({
    userID: n
}) {
    const {
        notifications: s,
        removeNotification: l
    } = ao(), {
        language: c
    } = Ce(), {
        open: h
    } = kt(), m = S => {
        h(r.jsx(Yv, {
            userId: n,
            create: !1,
            notification: S,
            onBackBtnClickHnd: () => h(r.jsx(ag, {
                userID: n
            }))
        }))
    }, x = S => {
        l(S), xe({
            type: "Success",
            message: c.modal_createAReminder_alertMessageRemove,
            position: "top-right"
        })
    }, y = ({
        notifications: S,
        user_id: R
    }) => {
        const _ = S.filter(O => O.user_id === R).sort((O, k) => {
            if (O.timeOut !== k.timeOut) return O.timeOut ? -1 : 1;
            const U = new Date(O.date + "T" + O.time),
                V = new Date(k.date + "T" + k.time);
            return U.getTime() - V.getTime()
        });
        return r.jsx("div", {
            className: "flex flex-col gap-2 my-4 overflow-auto",
            style: {
                maxHeight: "calc(100vh - 280px)"
            },
            children: _.slice().reverse().map(O => r.jsxs("li", {
                className: "flex justify-between w-full gap-0.5 bg-[var(--background-default-active)] border-solid border border-[var(--conversation-header-border)] p-2 rounded-2xl list-none",
                children: [r.jsxs("div", {
                    className: "flex flex-col w-auto gap-2 justify-center",
                    children: [r.jsxs("div", {
                        className: "flex items-center gap-1",
                        children: [r.jsx(Gn, {
                            size: "18px",
                            weight: "bold",
                            children: O.title
                        }), O.timeOut ? r.jsx(gf, {
                            className: "w-5 h-5 text-red-500"
                        }) : r.jsx(gf, {
                            className: "w-5 h-5 text-yellow-500"
                        })]
                    }), r.jsx("span", {
                        className: "text-base",
                        style: {
                            overflowWrap: "break-word"
                        },
                        children: O.desc
                    }), r.jsx("span", {
                        className: "text-xs font-bold",
                        children: `${Fn.convertDate(O.date)} at ${O.time}`
                    })]
                }), r.jsxs("div", {
                    className: "flex flex-row w-auto justify-center items-center gap-1",
                    children: [r.jsx("span", {
                        className: "pulse cursor-pointer",
                        onClick: () => m(O),
                        children: r.jsx(no, {
                            className: "h-5 w-5"
                        })
                    }), r.jsx("span", {
                        className: "pulse cursor-pointer",
                        onClick: () => x(O.id),
                        children: r.jsx(is, {
                            className: "h-5 w-5"
                        })
                    })]
                })]
            }, O.id))
        })
    };
    return r.jsxs("div", {
        className: "w-auto min-w-[780px] max-w-[780px] flex flex-col gap-4",
        children: [r.jsxs("div", {
            className: "flex items-center gap-2",
            children: [r.jsx(Xn, {
                children: c.modal_reminder_title
            }), r.jsx("div", {
                className: "cursor-pointer lg:tooltip lg:tooltip-bottom",
                "data-tip": c.modal_createAReminder_dataTip,
                children: r.jsx("span", {
                    className: "pulse",
                    children: r.jsx(Jo, {
                        className: "h-5 w-5"
                    })
                })
            })]
        }), r.jsx("div", {
            className: "w-full self-center",
            children: s.filter(S => S.user_id === n).length > 0 && r.jsx(y, {
                user_id: n,
                notifications: s.filter(S => S.user_id === n)
            })
        }), r.jsx("div", {
            className: "overflow-auto",
            style: {
                maxHeight: "calc(100vh - 300px)"
            },
            children: s.filter(S => S.user_id === n).length === 0 && r.jsx(sg, {
                title: c.modal_reminder_emptyMsg_title,
                description: c.modal_reminder_emptyMsg_desc,
                icon: r.jsx(gf, {
                    className: "w-7 h-7 text-[var(--primaria)]"
                })
            })
        }), r.jsx("div", {
            className: "flex justify-center py-3",
            children: r.jsx(Zt, {
                name: c.create,
                funcao: () => h(r.jsx(Yv, {
                    userId: n,
                    create: !0,
                    onBackBtnClickHnd: () => h(r.jsx(ag, {
                        userID: n
                    }))
                }))
            })
        })]
    })
}

function P3({
    userId: n
}) {
    const {
        language: s
    } = Ce(), {
        getProduct: l
    } = as(), {
        notifications: c
    } = ao(), {
        notes: h
    } = qo(), {
        agendamentos: m
    } = ma(), {
        variaveisWA: x
    } = wi(), {
        menuLateral: y,
        setMenuLateral: w,
        menuVerticalOpen: S,
        setMenuVerticalOpen: R
    } = ur(), {
        open: A
    } = kt(), _ = [{
        id: 1,
        title: s.modal_createAReminder_title,
        ico: r.jsx(gf, {
            className: "w-6 h-6 text-[var(--primaria)] mb-[3px]"
        }),
        funcao: () => A(r.jsx(ag, {
            userID: n
        })),
        tam: c.filter(O => O.user_id === n).length
    }, {
        id: 2,
        title: s.note_list_title,
        ico: r.jsx(ip, {
            size: 24,
            className: "text-[var(--primaria)]"
        }),
        funcao: () => A(r.jsx(p0, {
            id: "crm_menu",
            userID: n,
            viwerModel: "modal"
        })),
        tam: h.filter(O => O.userID === n).length
    }, {
        id: 3,
        title: s.modal_schedulingCallendar_title,
        ico: r.jsx(rx, {
            className: "w-6 h-6 text-[var(--primaria)]"
        }),
        funcao: () => A(r.jsx(X3, {
            plugin_page: !0
        }))
    }, {
        id: 4,
        title: s.agendamento_title,
        ico: r.jsx(t0, {
            className: "w-6 h-6 text-[var(--primaria)]"
        }),
        funcao: () => A(r.jsx($o, {
            userId: n
        })),
        tam: m.filter(O => O.userID === n).length
    }, {
        id: 5,
        title: s.modal_contactProfile,
        ico: r.jsx(V0, {
            className: "w-6 h-6 text-[var(--primaria)]"
        }),
        funcao: () => w({
            ...y,
            children: "perfilContato"
        })
    }, {
        id: 6,
        title: s.modal_orders_title,
        ico: r.jsx(e0, {
            className: "w-6 h-6 text-[var(--primaria)]"
        }),
        funcao: () => A(r.jsx(tg, {
            userID: n
        })),
        tam: n ? l(n).length : 0
    }];
    return r.jsxs("div", {
        className: "z-[1] absolute bottom-[10px] left-2 gap-2 flex items-center flex-col-reverse",
        children: [r.jsx("li", {
            className: "lg:tooltip  lg:tooltip-right",
            "data-tip": s.chat_horizontal_btn,
            children: r.jsx("div", {
                className: "pulse cursor-pointer bg-[var(--dropdown-background)] rounded-full w-9 h-9 shadow-lg flex items-center justify-center",
                onClick: () => R(!S),
                children: r.jsx("span", {
                    children: r.jsx("img", {
                        src: chrome.runtime.getURL("label/icons/icon.png"),
                        className: "w-10 rounded-full"
                    })
                })
            })
        }), S && _.map(({
            id: O,
            title: k,
            ico: U,
            funcao: V,
            tam: te
        }) => r.jsx("li", {
            className: "lg:tooltip  lg:tooltip-right",
            "data-tip": k,
            children: r.jsxs("div", {
                className: "pulse cursor-pointer bg-[var(--dropdown-background)] rounded-full w-9 h-9 shadow-lg flex items-center justify-center",
                onClick: V,
                children: [r.jsx("span", {
                    children: U
                }), te > 0 && r.jsx("div", {
                    className: "absolute -top-1 -right-1",
                    children: r.jsx("span", {
                        className: x.aba + " bg-[var(--primaria)]",
                        children: te
                    })
                })]
            })
        }, O))]
    })
}
const V3 = ({
    chat: n,
    removeScript: s
}) => {
    const [l, c] = Q.useState(null), {
        language: h
    } = Ce(), m = k => {
        c(k)
    }, x = () => {
        if (l) {
            const k = document.createElement("a");
            k.href = l, k.download = "download", k.click(), xe({
                type: "Success",
                message: `${h.chat_downloadSucess}...`,
                position: "top-right"
            })
        } else xe({
            type: "Error",
            message: h.chat_downloadError,
            position: "top-right"
        })
    }, [y, w] = Q.useState(!1), S = () => {
        (n.type === "document" || n.type === "video" || n.type === "image" || n.type === "audio" || n.type === "ptt") && w(!0)
    }, R = () => {
        w(!1)
    }, [A, _] = Q.useState(!1);
    let O;
    switch (n.type) {
        case "chat":
            O = r.jsx(p3, {
                position: n.id.fromMe,
                children: n.body
            });
            break;
        case "image":
            O = r.jsx(y3, {
                captureBase64: m,
                position: n.id.fromMe,
                id: n.id._serialized,
                children: n.caption
            });
            break;
        case "video":
            O = r.jsx(S3, {
                captureBase64: m,
                position: n.id.fromMe,
                id: n.id._serialized,
                children: n.caption
            });
            break;
        case "audio":
        case "ptt":
            O = r.jsx(w3, {
                captureBase64: m,
                position: n.id.fromMe,
                from: n.from,
                id: n.id._serialized
            });
            break;
        case "document":
            O = r.jsx(N3, {
                id: n.id._serialized,
                captureBase64: m,
                children: n
            });
            break;
        case "vcard":
            O = r.jsx(C3, {
                children: n
            });
            break
    }
    return r.jsx("div", {
        onMouseEnter: S,
        onMouseLeave: R,
        className: "w-full flex items-center gap-2 relative " + (n.id.fromMe ? "justify-end" : "justify-start"),
        children: r.jsxs("div", {
            className: "flex items-center gap-2 " + (n.id.fromMe ? "flex-row" : "flex-row-reverse"),
            children: [n.type !== "document" && y && r.jsx("div", {
                onClick: x,
                className: "lg:tooltip " + (n.id.fromMe ? "lg:tooltip-left" : "lg:tooltip-right"),
                "data-tip": "Realizar Download",
                children: r.jsx(sx, {
                    className: "text-[var(--primaria)] w-6 h-6 cursor-pointer hover:scale-105 transition-transform delay-100"
                })
            }), O]
        })
    })
};

function Z3({
    userID: n,
    viewMidia: s
}) {
    const [l, c] = Q.useState([]), h = async () => {
        const S = await Ve.Chat("getMessages", {
            id: n,
            quant: 20
        });
        JSON.stringify(S) !== JSON.stringify(l) && c(S.reverse())
    };
    Q.useEffect(() => {
        h()
    }, []), Q.useEffect(() => (chrome.runtime.onMessage.addListener(m), () => {
        chrome.runtime.onMessage.removeListener(m)
    }), [l]);
    const m = function(S, R, A) {
            switch (S.action) {
                case "chat.new_message":
                    const _ = JSON.parse(S.model);
                    if (_.id.remote.includes(n)) {
                        const k = [_, ...l];
                        c(k)
                    }
                    break
            }
        },
        x = S => {},
        y = r.jsxs("div", {
            children: [r.jsx("div", {
                className: "relative",
                children: r.jsx("div", {
                    className: "bg-whatsFundo absolute dark:contrast-0 contrast-50 h-full",
                    style: {
                        width: "calc(100% - 15px)",
                        height: "calc(90vh - 110px)"
                    }
                })
            }), r.jsx("div", {
                className: "h-full overflow-auto bg-[var(--conversation-panel-background)] px-[50px] py-4 flex flex-col-reverse",
                style: {
                    height: "calc(90vh - 110px)"
                },
                children: l.map((S, R) => r.jsx("div", {
                    tabIndex: R,
                    children: r.jsx(V3, {
                        chat: S,
                        removeScript: x
                    })
                }, R))
            }), r.jsx("div", {
                className: "relative",
                children: r.jsx(P3, {
                    userId: n
                })
            })]
        }),
        w = r.jsx("div", {
            className: "bg-[var(--background-default)] p-2 shadow-lg h-full w-full",
            style: {
                height: "calc(-200px + 100vh)"
            },
            children: r.jsx(E3, {
                viewMidia: s
            })
        });
    return s.open ? w : y
}
const Q3 = Q.memo(Z3);

function W3({
    userID: n
}) {
    const {
        language: s
    } = Ce(), {
        close: l
    } = kt(), [c, h] = Q.useState(""), [m, x] = Q.useState(""), y = async () => {
        if (c.length < 3 || m.length < 8) {
            xe({
                type: "Error",
                message: s.preenchaTodosOsCampos,
                position: "top-right"
            });
            return
        }
        const S = cx.whatsapp(m);
        Ve.Chat("sendContact", {
            id: n,
            phone: S,
            name: c
        }), l()
    };
    return r.jsxs("div", {
        className: "w-96 grid gap-4",
        children: [r.jsx(Xn, {
            children: s.criarContato
        }), r.jsxs("div", {
            className: "form-control w-full",
            children: [r.jsx("label", {
                className: "label",
                children: r.jsx("span", {
                    className: "label-text",
                    children: s.name
                })
            }), r.jsx("input", {
                type: "text",
                placeholder: s.inserirNomeContato,
                className: "input input-bordered w-full input-sm",
                value: c,
                onChange: S => h(S.target.value)
            })]
        }), r.jsxs("div", {
            className: "form-control w-full",
            children: [r.jsx("label", {
                className: "label",
                children: r.jsx("span", {
                    className: "label-text",
                    children: s.number
                })
            }), r.jsx("input", {
                type: "text",
                placeholder: "(xx) xxxx-xxxx",
                className: "input input-bordered w-full input-sm",
                value: m,
                onChange: S => x(S.target.value)
            })]
        }), r.jsx("div", {
            className: "m-auto",
            children: r.jsx(Zt, {
                name: s.criarContato,
                funcao: y
            })
        })]
    })
}
const rf = "h-5 w-5 text-[var(--icon)]",
    I3 = [{
        name: "Imagem",
        ico: r.jsx(a0, {
            className: rf
        }),
        type: "image/*"
    }, {
        name: "Video",
        ico: r.jsx(e1, {
            className: rf
        }),
        type: "video/*"
    }, {
        name: "Audio",
        ico: r.jsx(n0, {
            className: rf
        }),
        type: "audio/*"
    }, {
        name: "Documento",
        ico: r.jsx(l0, {
            className: rf
        }),
        type: "*"
    }, {
        name: "Contato",
        ico: r.jsx(Tf, {
            className: "h-6 w-6 text-[var(--icon)]"
        }),
        type: "contato"
    }];

function K3({
    setViewMidia: n,
    userID: s
}) {
    const {
        open: l
    } = kt(), {
        close: c
    } = Ma(), h = Q.useRef(null);
    let m;
    const x = S => {
            S === "contato" ? (c(), l(r.jsx(W3, {
                userID: s
            }))) : (h.current.setAttribute("accept", S), m = S, h.current.click())
        },
        y = async S => {
            switch (c(), m) {
                case "*":
                    Ve.Chat("sendDoc", {
                        id: s,
                        name: S.target.files[0].name,
                        base64: await vf(S.target.files[0])
                    });
                    break;
                case "audio/*":
                    Ve.Chat("sendAudio", {
                        id: s,
                        base64: await vf(S.target.files[0])
                    });
                    break;
                default:
                    n({
                        open: !0,
                        type: m,
                        content: S.target.files[0]
                    });
                    break
            }
        };
    return r.jsxs("div", {
        children: [I3.map((S, R) => r.jsx("span", {
            children: r.jsx(Ka, {
                content: S.name,
                icon: S.ico,
                setFunction: () => x(S.type),
                stroke: "1"
            })
        }, R)), r.jsx("input", {
            className: "hidden",
            type: "file",
            ref: h,
            onChange: y
        })]
    })
}

function J3(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M1.513 1.96a1.374 1.374 0 0 1 1.499-.21l19.335 9.215a1.147 1.147 0 0 1 0 2.07L3.012 22.25a1.374 1.374 0 0 1-1.947-1.46L2.49 12 1.065 3.21a1.375 1.375 0 0 1 .448-1.25Zm2.375 10.79-1.304 8.042L21.031 12 2.584 3.208l1.304 8.042h7.362a.75.75 0 0 1 0 1.5Z"
            },
            child: []
        }]
    })(n)
}

function T4(n) {
    return nt({
        attr: {
            viewBox: "0 0 24 24"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H9.75a.75.75 0 0 1 0-1.5h10.5a.25.25 0 0 0 .25-.25V9h-17v3A.75.75 0 0 1 2 12ZM9 7.5h11.5V3.75a.25.25 0 0 0-.25-.25H9Zm-5.5 0h4v-4H3.75a.25.25 0 0 0-.25.25Z"
            },
            child: []
        }, {
            tag: "path",
            attr: {
                d: "m9.308 14.5-2.104-2.236a.75.75 0 1 1 1.092-1.028l3.294 3.5a.75.75 0 0 1 0 1.028l-3.294 3.5a.75.75 0 1 1-1.092-1.028L9.308 16H6.09a2.59 2.59 0 0 0-2.59 2.59v2.66a.75.75 0 0 1-1.5 0v-2.66a4.09 4.09 0 0 1 4.09-4.09h3.218Z"
            },
            child: []
        }]
    })(n)
}

function q3(n) {
    return nt({
        attr: {
            viewBox: "0 0 32 32"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M 16 2 C 14.74 2 13.850156 2.89 13.410156 4 L 5 4 L 5 29 L 27 29 L 27 4 L 18.589844 4 C 18.149844 2.89 17.26 2 16 2 z M 16 4 C 16.55 4 17 4.45 17 5 L 17 6 L 20 6 L 20 8 L 12 8 L 12 6 L 15 6 L 15 5 C 15 4.45 15.45 4 16 4 z M 7 6 L 10 6 L 10 10 L 22 10 L 22 6 L 25 6 L 25 27 L 7 27 L 7 6 z M 9 13 L 9 15 L 11 15 L 11 13 L 9 13 z M 13 13 L 13 15 L 23 15 L 23 13 L 13 13 z M 9 17 L 9 19 L 11 19 L 11 17 L 9 17 z M 13 17 L 13 19 L 23 19 L 23 17 L 13 17 z M 9 21 L 9 23 L 11 23 L 11 21 L 9 21 z M 13 21 L 13 23 L 23 23 L 23 21 L 13 21 z"
            },
            child: []
        }]
    })(n)
}

function $3(n) {
    return nt({
        attr: {
            viewBox: "0 0 32 32"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M 16 5 C 12.1 5 9 8.1 9 12 C 9 14.4375 10.209961 16.561523 12.070312 17.8125 C 8.5100119 19.34733 6 22.893578 6 27 L 8 27 C 8 22.6 11.6 19 16 19 C 19.9 19 23 15.9 23 12 C 23 8.1 19.9 5 16 5 z M 16 7 C 18.8 7 21 9.2 21 12 C 21 14.8 18.8 17 16 17 C 13.2 17 11 14.8 11 12 C 11 9.2 13.2 7 16 7 z M 21 19 C 19.9 19 19 19.9 19 21 L 19 25.400391 L 25 31.400391 C 25.4 31.800391 25.900391 32 26.400391 32 C 26.900391 32 27.400781 31.800391 27.800781 31.400391 L 31.400391 27.800781 C 31.800391 27.400781 32 26.900391 32 26.400391 C 32 25.900391 31.800391 25.4 31.400391 25 L 25.400391 19 L 21 19 z M 21 21 L 24.599609 21 L 30 26.400391 L 26.400391 30 L 21 24.599609 L 21 21 z M 23 22 A 1 1 0 0 0 23 24 A 1 1 0 0 0 23 22 z"
            },
            child: []
        }]
    })(n)
}
const Xv = "footer_crm";

function e5({
    viewMidia: n,
    setViewMidia: s,
    userID: l
}) {
    const {
        variaveisWA: c
    } = wi(), {
        language: h
    } = Ce(), {
        menuLateral: m,
        setMenuLateral: x
    } = ur(), {
        getCard: y
    } = Fa(), {
        open: w
    } = Ma(), {
        open: S
    } = kt(), {
        assinatura: R,
        setAssinatura: A
    } = fg(), [_, O] = Q.useState(""), k = Q.useRef(null);
    Q.useEffect(() => {
        const fe = document.getElementById("footer_crm");
        fe && fe.scrollHeight > 32 && fe.scrollHeight < 120 && (fe.style.height = "auto", fe.style.height = `${fe.scrollHeight+6}px`), fe && fe.style && _.length === 0 && (fe.style.height = "32px")
    }, [_]), Q.useEffect(() => {
        const fe = be => {
                be.key === "Enter" && !be.shiftKey && (be.preventDefault(), te())
            },
            Se = document.getElementById("footer_crm");
        return Se && (Se == null || Se.addEventListener("keydown", fe)), () => {
            Se && (Se == null || Se.removeEventListener("keydown", fe))
        }
    }, [_, n]);
    const U = () => {
            w(r.jsx(K3, {
                setViewMidia: s,
                userID: l
            }), {
                placement: "top"
            }, k.current, 10)
        },
        V = fe => R.active && R.name.length !== 0 ? fe = `*_${R.name}:_*
${fe}` : fe,
        te = async () => {
            if (R.active && await Yn("assinatura") === !0) {
                A("active", !1);
                return
            }
            switch (n.type) {
                case "image/*":
                    Ve.Chat("sendImage", {
                        id: l,
                        msg: V(_),
                        base64: await vf(n.content)
                    });
                    break;
                case "video/*":
                    Ve.Chat("sendVideo", {
                        id: l,
                        msg: V(_),
                        base64: await vf(n.content)
                    });
                    break;
                default:
                    _.length !== 0 && Ve.Chat("sendTxt", {
                        id: l,
                        msg: V(_)
                    });
                    break
            }
            s({
                open: !1,
                type: "",
                content: ""
            }), O(""), Ip(Xv, "")
        }, $ = () => {
            O(fe => fe + " " + y(l).name)
        };
    return r.jsx("div", {
        className: "relative h-[55px] z-[2]",
        children: r.jsx("div", {
            className: "absolute p-3  w-full bg-[var(--rich-text-panel-background)] bottom-0 shadow-lg " + (m.children.length !== 0 ? "rounded-es-lg" : "rounded-b-lg"),
            children: r.jsxs("div", {
                className: "flex items-center gap-3",
                children: [r.jsx("div", {
                    className: "flex-auto pulse cursor-pointer",
                    ref: k,
                    onClick: U,
                    children: r.jsx(ox, {
                        className: "h-7 w-7 text-[var(--icon)]"
                    })
                }), r.jsx("div", {
                    className: c.confgIcone + "cursor-pointer lg:tooltip",
                    "data-tip": h.menuFooter_colarNome,
                    children: r.jsx("div", {
                        className: "_3ndVb fbgy3m38 ft2m32mm oq31bsqd nu34rnf1",
                        children: r.jsx("div", {
                            className: "bo8jc6qi p4t1lx4y brjalhku",
                            onClick: $,
                            children: r.jsx("span", {
                                children: r.jsx($3, {
                                    className: "h-6 w-6 text-[var(--icon)]",
                                    strokeWidth: 1
                                })
                            })
                        })
                    })
                }), r.jsx("div", {
                    className: c.confgIcone + "cursor-pointer lg:tooltip",
                    "data-tip": h.menuFooter_Ass,
                    children: r.jsx("div", {
                        onClick: () => S(r.jsx(S0, {})),
                        className: "_3ndVb fbgy3m38 ft2m32mm oq31bsqd nu34rnf1",
                        children: r.jsx("div", {
                            className: "bo8jc6qi p4t1lx4y brjalhku",
                            children: r.jsx("span", {
                                children: r.jsx(ux, {
                                    className: "text-[var(--icon)]",
                                    style: R.active ? {
                                        color: "var(--wds-teal-500)",
                                        width: "22px",
                                        height: "22px"
                                    } : {
                                        width: "22px",
                                        height: "22px"
                                    }
                                })
                            })
                        })
                    })
                }), r.jsx("div", {
                    className: "w-full",
                    children: r.jsx(vg, {
                        id: Xv,
                        type: "textarea",
                        position: "top",
                        placeholder: "Digite uma mensagem",
                        text: _,
                        setText: fe => O(fe),
                        heightCamp: 32,
                        heightTextArea: 390
                    })
                }), r.jsxs("div", {
                    className: "flex-auto flex gap-3",
                    children: [r.jsx("span", {
                        className: "pulse cursor-pointer",
                        children: r.jsx(J3, {
                            className: "h-6 w-6 text-[var(--icon)]",
                            onClick: te
                        })
                    }), r.jsx("span", {
                        className: "pulse cursor-pointer",
                        onClick: () => x({
                            ...m,
                            children: "RespostaRapida"
                        }),
                        children: m.children === "RespostaRapida" || m.children === "Categoria" ? r.jsx(dx, {
                            className: "w-[25px] h-[25px] text-[var(--primaria)]"
                        }) : r.jsx(cg, {
                            className: "w-[25px] h-[25px] text-[var(--icon)]"
                        })
                    })]
                })]
            })
        })
    })
}

function t5(n) {
    return nt({
        attr: {
            viewBox: "0 0 512 512"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"
            },
            child: []
        }]
    })(n)
}

function a5(n) {
    return nt({
        attr: {
            viewBox: "0 0 512 512"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M256 217.9L383 345c9.4 9.4 24.6 9.4 33.9 0 9.4-9.4 9.3-24.6 0-34L273 167c-9.1-9.1-23.7-9.3-33.1-.7L95 310.9c-4.7 4.7-7 10.9-7 17s2.3 12.3 7 17c9.4 9.4 24.6 9.4 33.9 0l127.1-127z"
            },
            child: []
        }]
    })(n)
}

function Tg(n) {
    return nt({
        attr: {
            viewBox: "0 0 512 512"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"
            },
            child: []
        }]
    })(n)
}

function Pv({
    children: n
}) {
    const {
        plugin_page: s
    } = Pe(), {
        label: l
    } = tu(), {
        menuLateral: c,
        setMenuLateral: h
    } = ur(), m = () => {
        parseInt(c.width) >= 480 ? xe({
            type: "Info",
            message: "Tamanho maximo alcançado",
            position: "top-right"
        }) : h({
            ...c,
            width: (parseInt(c.width) + 10).toString()
        })
    }, x = () => {
        parseInt(c.width) <= 260 ? xe({
            type: "Info",
            message: "Tamanho mínimo alcançado",
            position: "top-right"
        }) : h({
            ...c,
            width: (parseInt(c.width) - 10).toString()
        })
    }, y = [{
        id: 2,
        ico: r.jsx(V0, {
            className: l.cor_primaria ? "text-[var(--primaria)]" : "text-[var(--panel-header-icon)]",
            size: 20
        }),
        name: "perfilContato",
        funcao: () => h({
            ...c,
            children: "perfilContato"
        })
    }, {
        id: 1,
        ico: r.jsx(cg, {
            className: l.cor_primaria ? "text-[var(--primaria)]" : "text-[var(--panel-header-icon)]",
            size: 20
        }),
        name: "RespostaRapida",
        funcao: () => h({
            ...c,
            children: "RespostaRapida"
        })
    }, {
        id: 3,
        ico: r.jsx(fx, {
            className: l.cor_primaria ? "text-[var(--primaria)]" : "text-[var(--panel-header-icon)]",
            size: 20
        }),
        name: void 0,
        funcao: () => m()
    }, {
        id: 5,
        ico: r.jsx(hx, {
            className: l.cor_primaria ? "text-[var(--primaria)]" : "text-[var(--panel-header-icon)]",
            size: 20
        }),
        name: void 0,
        funcao: () => x()
    }, {
        id: 7,
        ico: r.jsx(Tg, {
            className: l.cor_primaria ? "text-[var(--primaria)]" : "text-[var(--panel-header-icon)]",
            size: 20
        }),
        name: void 0,
        funcao: () => h({
            ...c,
            children: ""
        })
    }], w = r.jsx("div", {
        className: "h-[60px] flex justify-around items-center bg-[var(--panel-header-background)] " + (s ? "rounded-se-lg" : ""),
        children: y.map(S => {
            if (!(s && S.name === "centralDeAgendamentos")) return r.jsx("div", {
                className: "pulse cursor-pointer" + (c.children === S.name ? " bg-[var(--menu-bar-item-background-active)] p-2 rounded-full" : ""),
                onClick: S.funcao,
                children: r.jsx("span", {
                    children: S.ico
                })
            }, S.id)
        })
    });
    return r.jsxs("div", {
        className: "border-[var(--conversation-header-border)] border-solid border-l shadow-sm ",
        style: {
            width: `${c.width}px`,
            height: s ? "calc(90vh + 5px)" : "calc(100vh - 120px)"
        },
        children: [w, r.jsx("div", {
            className: "bg-[var(--background-default)] flex flex-col gap-2 " + (s ? "rounded-ee-lg shadow-lg" : ""),
            style: {
                height: s ? "calc(90vh - 55px)" : "calc(100vh - 120px)"
            },
            children: n
        })]
    })
}

function n5({
    setPesquisar: n,
    plugin_page: s
}) {
    const {
        variaveisWA: l
    } = wi(), {
        language: c
    } = Ce(), {
        close: h
    } = Ma(), m = y => {
        h(), n(y)
    };
    return r.jsx("div", {
        style: {
            position: "initial"
        },
        children: r.jsx("ul", {
            className: "overflow-hidden flex " + l.modalOptions.content2,
            children: r.jsx("div", {
                className: l.modalOptions.content3,
                children: r.jsxs("div", {
                    className: l.listagem.content1,
                    children: [r.jsx("div", {
                        children: r.jsx(Gn, {
                            children: c.filter
                        })
                    }), r.jsx(Ka, {
                        content: c.txt,
                        icon: r.jsx(gx, {
                            className: "w-5 h-5 text-[var(--panel-header-icon)]"
                        }),
                        setFunction: () => m("txt"),
                        stroke: "1"
                    }), r.jsx(Ka, {
                        content: c.image,
                        icon: r.jsx(a0, {
                            className: "w-5 h-5 text-[var(--panel-header-icon)]"
                        }),
                        setFunction: () => {
                            m("image")
                        },
                        stroke: "1"
                    }), r.jsx(Ka, {
                        content: c.video,
                        icon: r.jsx(e1, {
                            className: "w-5 h-5 text-[var(--panel-header-icon)]"
                        }),
                        setFunction: () => {
                            m("video")
                        },
                        stroke: "1"
                    }), r.jsx(Ka, {
                        content: c.audio,
                        icon: r.jsx(n0, {
                            className: "w-5 h-5 text-[var(--panel-header-icon)]"
                        }),
                        setFunction: () => m("audio"),
                        stroke: "1"
                    }), r.jsx(Ka, {
                        content: c.doc,
                        icon: r.jsx(l0, {
                            className: "w-5 h-5 text-[var(--panel-header-icon)]"
                        }),
                        setFunction: () => {
                            m("doc")
                        },
                        stroke: "1"
                    }), r.jsx(Ka, {
                        content: c.contact,
                        icon: r.jsx(Tf, {
                            className: "w-6 h-6 text-[var(--panel-header-icon)]"
                        }),
                        setFunction: () => m("contact"),
                        stroke: "1"
                    }), r.jsx(Ka, {
                        content: c.script,
                        icon: r.jsx(mx, {
                            className: "w-5 h-5 text-[var(--panel-header-icon)]"
                        }),
                        setFunction: () => m("script"),
                        stroke: "2"
                    })]
                })
            })
        })
    })
}

function l5({
    pesquisar: n,
    setPesquisar: s,
    setCreate: l,
    envioEmMassa: c
}) {
    const {
        plugin_page: h
    } = Pe(), {
        language: m
    } = Ce(), {
        open: x
    } = Ma();
    Q.useRef(null);
    const y = Q.useRef(null);
    return r.jsxs("div", {
        className: "flex justify-center gap-2 pt-2 px-2",
        children: [r.jsxs("div", {
            className: "bg-[var(--search-input-background)] flex items-center px-2 w-full rounded-lg",
            children: [r.jsx("span", {
                className: "pr-2",
                children: r.jsx(i0, {
                    className: "w-4 h-4 text-[var(--panel-header-icon)]"
                })
            }), r.jsx("span", {
                className: "w-full",
                children: r.jsx("input", {
                    type: "text",
                    placeholder: m.searchQuickReply,
                    className: "bg-[var(--search-input-background)] text-sm placeholder:!text-sm w-full py-[5px]",
                    value: n,
                    onChange: S => s(S.target.value)
                })
            }), n.length !== 0 && r.jsx("span", {
                className: "pulse cursor-pointer pl-1",
                onClick: () => s(""),
                children: r.jsx(r0, {
                    className: "w-5 h-5 text-[var(--panel-header-icon)]"
                })
            })]
        }), r.jsx("span", {
            className: "cursor-pointer pulse lg:tooltip lg:tooltip-left m-auto",
            "data-tip": m.filter,
            onClick: () => x(r.jsx(n5, {
                setPesquisar: s,
                plugin_page: h
            }), {
                placement: "bottom"
            }, y.current, 10),
            ref: y,
            children: r.jsx("svg", {
                className: "w-5 h-5 text-[var(--icon-lighter)]",
                viewBox: "0 0 24 24",
                height: "20",
                width: "20",
                preserveAspectRatio: "xMidYMid meet",
                version: "1.1",
                x: "0px",
                y: "0px",
                "enable-background": "new 0 0 24 24",
                children: r.jsx("path", {
                    fill: "currentColor",
                    d: "M10,18.1h4v-2h-4V18.1z M3,6.1v2h18v-2H3z M6,13.1h12v-2H6V13.1z"
                })
            })
        })]
    })
}
const i5 = ({
        setCreate: n,
        cat: s,
        plugin_page: l
    }) => {
        const {
            language: c
        } = Ce(), {
            addCategory: h,
            editCategory: m
        } = ai(), [x, y] = Q.useState(!1), [w, S] = Q.useState(s ? s.name : ""), [R, A] = Q.useState(s ? s.hexColor : lg()), _ = Q.useRef(null), O = Q.useRef(null);
        Q.useEffect(() => {
            const te = $ => {
                var ve;
                _.current && !_.current.contains($.target) && !O.current.contains($.target) && !((ve = document.querySelector("#pane-side ._21S-L span")) != null && ve.contains($.target)) && y(!1)
            };
            return x && document.addEventListener("click", te), () => {
                document.removeEventListener("click", te)
            }
        }, [x]);
        const k = () => {
                if (w.length < 3) {
                    xe({
                        type: "Error",
                        message: c.insertNameAtLeast3Chars,
                        position: "top-right"
                    });
                    return
                }
                const te = {
                    id: Si(),
                    name: w,
                    hexColor: R
                };
                h(te), n({
                    open: !1,
                    cat: void 0
                }), xe({
                    type: "Success",
                    message: c.categoryCreated,
                    position: "top-right"
                })
            },
            U = () => {
                if (w.length < 3) {
                    xe({
                        type: "Error",
                        message: c.insertNameAtLeast3Chars,
                        position: "top-right"
                    });
                    return
                }
                m({
                    id: s.id,
                    hexColor: R,
                    name: w
                }), n({
                    open: !1,
                    cat: void 0
                }), xe({
                    type: "Success",
                    message: c.categoryEdited,
                    position: "top-right"
                })
            };
        return r.jsxs(r.Fragment, {
            children: [r.jsxs("div", {
                className: "flex justify-center",
                children: [r.jsx("div", {
                    children: r.jsx("span", {
                        className: "pulse cursor-pointer lg:tooltip lg:tooltip-right !absolute left-1",
                        "data-tip": c.back,
                        onClick: () => n(!1),
                        children: r.jsx(s0, {
                            className: "h-6 w-6 text-[var(--primaria)]"
                        })
                    })
                }), r.jsx(Gn, {
                    children: s ? c.editCategory : c.createCategory
                })]
            }), r.jsxs("div", {
                className: "grid gap-4 pt-2 px-2",
                children: [r.jsx(vg, {
                    id: "cat_crm",
                    titulo: c.insertName,
                    type: "input",
                    position: "bottom-end",
                    placeholder: c.insertCategoryName,
                    text: w,
                    setText: S,
                    heightTextArea: 290
                }), r.jsxs("div", {
                    className: "flex justify-between items-center pt-3",
                    children: [r.jsx("h2", {
                        children: c.pickColor
                    }), r.jsx("span", {
                        className: "pulse cursor-pointer border border-black rounded border-solid",
                        ref: O,
                        onClick: () => y(!x),
                        children: r.jsx(bx, {
                            className: "h-8 w-8",
                            style: {
                                color: R
                            }
                        })
                    })]
                })]
            }), r.jsx("div", {
                className: "flex justify-center",
                children: s ? r.jsx(Zt, {
                    name: c.saveEdit,
                    funcao: U
                }) : r.jsx(Zt, {
                    name: c.save,
                    funcao: k
                })
            }), x && r.jsx("div", {
                className: "absolute",
                children: r.jsx("div", {
                    className: "relative",
                    ref: _,
                    children: r.jsx(o0, {
                        disableAlpha: !0,
                        color: R,
                        onChange: te => A(te.hex),
                        className: "p-2 rounded"
                    })
                })
            })]
        })
    },
    r5 = ({
        cat: n,
        snapshot: s,
        remove: l,
        editar: c
    }) => r.jsx("li", {
        children: r.jsxs("div", {
            className: `
        hover:bg-[var(--background-default-active)]
        flex 
        px-1
        py-1
        gap-1 
        animate__animated 
        animate__zoomIn 
        cursor-pointer rounded 
        border-b
        border-solid
        border-[var(--border-list)]
    ` + (s.isDragging && "bg-[var(--background-default-active)]"),
            children: [r.jsx("span", {
                className: "w-5",
                children: r.jsx(c0, {
                    className: "w-5 h-5",
                    style: {
                        color: n.hexColor
                    }
                })
            }), r.jsx("span", {
                className: "flex-auto overflow-hidden text-ellipsis whitespace-nowrap",
                children: n.name
            }), r.jsxs("span", {
                className: "flex w-[50px] justify-between",
                children: [r.jsx("span", {
                    className: "pulse",
                    onClick: () => c(n),
                    children: r.jsx(no, {
                        className: "w-5 h-5 text-[var(--panel-header-icon)]"
                    })
                }), r.jsx("span", {
                    className: "pulse",
                    onClick: () => l(n),
                    children: r.jsx(is, {
                        className: "w-5 h-5 text-[var(--panel-header-icon)]"
                    })
                })]
            })]
        })
    });

function s5({
    setCreateMain: n,
    plugin_page: s
}) {
    const {
        language: l
    } = Ce(), {
        categories: c,
        sortCategories: h,
        removeCategory: m
    } = ai(), {
        quickReplies: x
    } = rc(), [y, w] = Q.useState(c), [S, R] = Q.useState({
        open: !1,
        cat: void 0
    }), [A, _] = Q.useState("");
    Q.useEffect(() => {
        let fe = [];
        c.forEach(Se => {
            var be;
            (be = Se.name) != null && be.replace(new RegExp("\\p{Emoji}", "gu"), "").toUpperCase().includes(A.toUpperCase()) && fe.push(Se)
        }), w(fe)
    }, [c, A]);
    const O = () => {
            R({
                open: !0,
                cat: void 0
            })
        },
        k = fe => {
            Nf({
                icon: r.jsx(X0, {
                    className: "text-[var(--primaria)]",
                    size: 22
                }),
                content: r.jsxs(r.Fragment, {
                    children: [l.removeCategory, r.jsx("strong", {
                        children: fe.name
                    }), "?"]
                }),
                confirmText: l.confirm,
                submit: () => {}
            }), m(fe.id);
            const Se = x.map(be => (be.categoria === fe.id && (be.categoria = ""), be));
            rc.setState({
                quickReplies: Se
            }), xe({
                type: "Success",
                message: l.deletedCategory,
                position: "top-right"
            })
        },
        U = async fe => {
            R({
                open: !0,
                cat: fe
            })
        }, V = () => {
            n({
                view: "list",
                model: "",
                type: "",
                input: "",
                content: void 0,
                script: []
            })
        }, te = r.jsx("div", {
            className: "p-4 border-dotted border rounded-lg text-center mx-2",
            children: l.noneCategoryFound
        }), $ = () => {
            const fe = Se => {
                Se.destination && (h(Se), _(""))
            };
            return r.jsx(Px, {
                onDragEnd: fe,
                children: r.jsx(Vx, {
                    droppableId: "categoria",
                    direction: "vertical",
                    children: Se => r.jsxs("div", {
                        className: "flex flex-col border-t border-solid border-[var(--border-list)] px-2 overflow-auto",
                        ...Se.droppableProps,
                        ref: Se.innerRef,
                        style: {
                            height: "calc(100vh - 222px)"
                        },
                        children: [y.map((be, vt) => r.jsx(Zx, {
                            draggableId: be.id,
                            index: vt,
                            children: (De, me) => r.jsx("div", {
                                ref: De.innerRef,
                                ...De.draggableProps,
                                ...De.dragHandleProps,
                                children: r.jsx(r5, {
                                    cat: be,
                                    snapshot: me,
                                    remove: k,
                                    editar: U
                                })
                            })
                        }, vt)), Se.placeholder]
                    })
                })
            })
        }, ve = r.jsxs(r.Fragment, {
            children: [r.jsxs("div", {
                className: "grid gap-2 p-2",
                children: [r.jsxs("div", {
                    className: "flex gap-1 items-center",
                    children: [r.jsx("span", {
                        className: "pulse cursor-pointer lg:tooltip lg:tooltip-right",
                        "data-tip": l.back,
                        onClick: V,
                        children: r.jsx(s0, {
                            className: "h-6 w-6 text-[var(--primaria)]"
                        })
                    }), r.jsx(Gn, {
                        children: l.category
                    }), r.jsx("span", {
                        className: "pulse cursor-pointer lg:tooltip lg:tooltip-bottom",
                        "data-tip": l.categoryPopUp,
                        children: r.jsx(Jo, {
                            className: "h-4 w-4"
                        })
                    })]
                }), r.jsxs("div", {
                    className: "flex justify-center gap-2",
                    children: [r.jsxs("div", {
                        className: "bg-[var(--search-input-background)] flex items-center px-2 w-full rounded-lg",
                        children: [r.jsx("span", {
                            className: "pr-2",
                            children: r.jsx(i0, {
                                className: "w-4 h-4 text-[var(--panel-header-icon)]"
                            })
                        }), r.jsx("span", {
                            className: "w-full",
                            children: r.jsx("input", {
                                type: "text",
                                placeholder: l.searchCategory,
                                className: "bg-[var(--search-input-background)] text-sm placeholder:!text-sm w-full",
                                value: A,
                                onChange: fe => _(fe.target.value)
                            })
                        }), A.length !== 0 && r.jsx("span", {
                            className: "pulse cursor-pointer pl-1",
                            onClick: () => _(""),
                            children: r.jsx(r0, {
                                className: "w-5 h-5 text-[var(--panel-header-icon)]"
                            })
                        })]
                    }), r.jsx("span", {
                        className: "cursor-pointer pulse lg:tooltip lg:tooltip-left",
                        "data-tip": l.createCategory,
                        onClick: O,
                        children: r.jsx(vx, {
                            className: "!w-[30px] !h-[30px] text-[var(--primaria)]"
                        })
                    })]
                })]
            }), r.jsx("div", {
                className: "pt-3",
                children: r.jsx("ul", {
                    children: y.length === 0 ? te : $()
                })
            })]
        });
    return S.open ? r.jsx(i5, {
        setCreate: R,
        cat: S.cat,
        plugin_page: s
    }) : ve
}

function c5(n) {
    return nt({
        attr: {
            fill: "none",
            viewBox: "0 0 24 24",
            strokeWidth: "1.5",
            stroke: "currentColor",
            "aria-hidden": "true"
        },
        child: [{
            tag: "path",
            attr: {
                strokeLinecap: "round",
                strokeLinejoin: "round",
                d: "M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 0 8.835-2.535m0 0A23.74 23.74 0 0 0 18.795 3m.38 1.125a23.91 23.91 0 0 1 1.014 5.395m-1.014 8.855c-.118.38-.245.754-.38 1.125m.38-1.125a23.91 23.91 0 0 0 1.014-5.395m0-3.46c.495.413.811 1.035.811 1.73 0 .695-.316 1.317-.811 1.73m0-3.46a24.347 24.347 0 0 1 0 3.46"
            },
            child: []
        }]
    })(n)
}

function o5(n) {
    return nt({
        attr: {
            fill: "none",
            viewBox: "0 0 24 24",
            strokeWidth: "1.5",
            stroke: "currentColor",
            "aria-hidden": "true"
        },
        child: [{
            tag: "path",
            attr: {
                strokeLinecap: "round",
                strokeLinejoin: "round",
                d: "M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"
            },
            child: []
        }]
    })(n)
}
const u5 = 50;

function L1({
    res: n,
    snapshot: s,
    index: l,
    hexColor: c,
    CatID: h,
    setCreate: m
}) {
    s || (s = {
        isDragging: !1
    });
    const {
        language: x
    } = Ce(), {
        userId: y
    } = ur(), {
        openRendertype: w
    } = kt(), {
        open: S
    } = Ma(), R = Q.useRef([]);
    Q.useRef(null);
    const A = async (_, O) => {
        if (O.stopPropagation(), await Yn("respostasRapidas") === !0) {
            w("user_free");
            return
        }
        ht("sendAction-Res", {
            userID: y,
            res: _
        })
    };
    return r.jsxs("div", {
        ref: _ => R.current[l] = _,
        className: U1 + (h.length === 0 ? "hover:bg-[var(--background-default-active)] " : "") + (s.isDragging && "bg-[var(--background-default-active)]"),
        onMouseEnter: () => h.length !== 0 && R.current[l].setAttribute("style", "background-color:" + c + 60),
        onMouseLeave: () => h.length !== 0 && R.current[l].removeAttribute("style"),
        onClick: _ => A(n, _),
        children: [r.jsx("span", {
            className: "w-6 pr-1",
            children: r.jsx(ig, {
                type: n.type
            })
        }), n.sizeInMB > u5 && r.jsx("span", {
            className: "w-6 pr-1 pulse cursor-pointer lg:tooltip lg:tooltip-right",
            "data-tip": `${n.sizeInMB}MB`,
            children: r.jsx($0, {
                className: "h-4 w-4 text-red-500"
            })
        }), r.jsx("span", {
            className: "flex-auto overflow-hidden text-ellipsis whitespace-nowrap w-3",
            children: n.titulo
        }), r.jsx("span", {
            className: "pl-1 flex w-[100px] justify-end gap-2 items-center",
            children: r.jsx("span", {
                className: "pulse",
                onClick: _ => A(n, _),
                children: r.jsx(o5, {
                    className: "w-4 h-4 text-[var(--panel-header-icon)]"
                })
            })
        })]
    })
}
const U1 = `
  flex 
  px-1
  py-1
  cursor-pointer rounded 
  border-b
  border-solid
  border-[var(--border-list)]
  items-center
`;

function d5({
    setCreate: n
}) {
    const {
        quickReplies: s
    } = rc(), {
        categories: l,
        sortCategories: c
    } = ai(), {
        language: h
    } = Ce(), {
        openCat: m,
        setOpenCat: x
    } = ur(), y = ({
        cat: R,
        snapshot: A
    }) => {
        let _ = m.find(k => k.id === R.id);
        _ || (_ = {
            id: R.id,
            active: !1
        });
        const O = () => {
            _.active = !_.active;
            let k = m.findIndex(U => U.id === R.id);
            if (k !== -1) {
                const U = [...m];
                U[k] = _, x(U)
            } else {
                const U = [...m, _];
                x(U)
            }
        };
        return r.jsxs("div", {
            className: _.active && "mb-1 rounded",
            style: _.active ? {
                backgroundColor: `${R.hexColor}30`
            } : void 0,
            children: [r.jsxs("div", {
                className: U1 + (!_.active && "hover:bg-[var(--background-default-active)] ") + (A.isDragging && "bg-[var(--background-default-active)] ") + (_.active ? " !border-b-0" : ""),
                onClick: O,
                children: [r.jsx("span", {
                    className: "w-5 mr-1",
                    children: r.jsx(c0, {
                        className: "w-4 h-4",
                        style: {
                            color: R.hexColor
                        }
                    })
                }), r.jsx("span", {
                    className: "flex-auto overflow-hidden text-ellipsis whitespace-nowrap font-medium text-base",
                    children: R.name
                }), r.jsx("span", {
                    className: "flex w-[30px] justify-end",
                    children: _.active ? r.jsx(xx, {
                        className: "w-5 h-5 text-[var(--panel-header-icon)]"
                    }) : r.jsx(px, {
                        className: "w-5 h-5 text-[var(--panel-header-icon)]"
                    })
                })]
            }), _.active && r.jsx("div", {
                className: "pl-5",
                children: r.jsx(w, {
                    CatID: R.id,
                    hexColor: R.hexColor
                })
            })]
        })
    }, w = ({
        CatID: R,
        hexColor: A
    }) => r.jsx("div", {
        className: "flex flex-col border-solid border-[var(--border-list)] overflow-y-auto overflow-x-hidden min-h-[30px]",
        children: s.map((_, O) => {
            if (_.categoria === R || R === "" && !_.categoria) return r.jsx("div", {
                children: r.jsx(L1, {
                    res: _,
                    snapshot: {
                        isDragging: !1
                    },
                    index: O,
                    hexColor: A,
                    CatID: R,
                    setCreate: n
                })
            })
        })
    }), S = r.jsx("div", {
        className: "px-2 overflow-y-auto overflow-x-hidden",
        children: r.jsx("div", {
            children: r.jsxs("div", {
                className: "flex flex-col border-t border-solid border-[var(--border-list)] overflow-auto",
                children: [l.map((R, A) => r.jsx("div", {
                    children: r.jsx(y, {
                        cat: R,
                        snapshot: {
                            isDragging: !1
                        }
                    })
                })), r.jsx("div", {
                    className: "pl-5",
                    children: r.jsx(w, {
                        CatID: "",
                        hexColor: ""
                    })
                })]
            })
        })
    });
    return s.length > 0 ? S : r.jsx("div", {
        className: "p-4 border-dotted border rounded-lg text-center mx-2",
        children: h.noQuickReply
    })
}

function f5() {
    const {
        plugin_page: n
    } = Pe(), {
        quickReplies: s
    } = rc(), {
        language: l
    } = Ce(), [c, h] = Q.useState({
        view: "list",
        model: "",
        type: "",
        input: "",
        content: void 0,
        script: []
    }), [m, x] = Q.useState(""), [y, w] = Q.useState([]);
    Q.useEffect(() => {
        let A = [];
        s.forEach(_ => {
            var O, k;
            ((O = _.titulo) != null && O.toUpperCase().includes(m.toUpperCase()) || (k = _.type) != null && k.toUpperCase().includes(m.toUpperCase())) && A.push(_)
        }), w(A)
    }, [m, s]);
    const S = r.jsxs(r.Fragment, {
        children: [r.jsx(l5, {
            pesquisar: m,
            setPesquisar: x,
            setCreate: h
        }), r.jsx("div", {
            id: "listRes",
            className: "overflow-auto",
            children: m.length === 0 ? r.jsx(d5, {
                setCreate: h
            }) : r.jsx("div", {
                className: "px-2 overflow-auto",
                style: {
                    maxHeight: "calc(100vh - 165px)"
                },
                children: y.length !== 0 ? y.map((A, _) => r.jsx(L1, {
                    res: A,
                    index: _,
                    CatID: "",
                    setCreate: h
                })) : r.jsx("div", {
                    className: "p-4 border-dotted border rounded-lg text-center mx-2",
                    children: l.noQuickReply
                })
            })
        })]
    });
    let R;
    switch (c.view) {
        case "list":
            R = S;
            break;
        case "create":
            R = r.jsx(r.Fragment, {});
            break;
        case "Categoria":
            R = r.jsx(s5, {
                setCreateMain: h,
                plugin_page: n
            });
            break
    }
    return R
}

function h5() {
    const {
        activeUser: n,
        activePerfil: s
    } = Ja();
    return r.jsx("div", {
        className: "avatar m-auto",
        children: r.jsx("div", {
            className: "w-24 rounded-full ring-offset-base-100 ring-offset-2",
            children: n.picture !== "undefined" ? r.jsx("img", {
                src: n.picture
            }) : s.userID.length < 16 ? r.jsx("div", {
                className: "x10l6tqk x13vifvy x17qophe x78zum5 x6s0dn4 xl56j7k xh8yej3 x5yr21d x705qin xsp8fsz",
                children: r.jsx("span", {
                    "data-icon": "default-user",
                    children: r.jsx(vd, {})
                })
            }) : r.jsx("div", {
                className: "x10l6tqk x13vifvy x17qophe x78zum5 x6s0dn4 xl56j7k xh8yej3 x5yr21d x705qin xsp8fsz",
                children: r.jsx("span", {
                    "data-icon": "default-group",
                    children: r.jsx(Eg, {})
                })
            })
        })
    })
}

function g5() {
    const {
        language: n
    } = Ce(), {
        activeUser: s,
        activePerfil: l
    } = Ja();
    return r.jsxs("div", {
        className: "grid gap-2 p-2 mb-[10px] h3bz2vby bg-[var(--drawer-section-background)]",
        children: [r.jsx(h5, {}), r.jsx("span", {
            className: "m-auto",
            children: l.userID.length > 16 ? n.group : l.userID
        }), r.jsx("div", {
            className: "flex m-auto",
            children: s.labels.map((h, m) => r.jsx("span", {
                style: m !== 0 ? {
                    marginLeft: "-1rem"
                } : null,
                children: r.jsx(Ef, {
                    className: "w-6 h-6",
                    style: {
                        color: h.hexColor
                    }
                })
            }, m))
        })]
    })
}
var Gh, Vv;

function m5() {
    return Vv || (Vv = 1, Gh = {
        aa: {
            name: "Afar",
            nativeName: "Afaraf"
        },
        ab: {
            name: "Abkhaz",
            nativeName: "аҧсуа бызшәа"
        },
        ae: {
            name: "Avestan",
            nativeName: "avesta"
        },
        af: {
            name: "Afrikaans",
            nativeName: "Afrikaans"
        },
        ak: {
            name: "Akan",
            nativeName: "Akan"
        },
        am: {
            name: "Amharic",
            nativeName: "አማርኛ"
        },
        an: {
            name: "Aragonese",
            nativeName: "aragonés"
        },
        ar: {
            name: "Arabic",
            nativeName: "العربية"
        },
        as: {
            name: "Assamese",
            nativeName: "অসমীয়া"
        },
        av: {
            name: "Avaric",
            nativeName: "авар мацӀ"
        },
        ay: {
            name: "Aymara",
            nativeName: "aymar aru"
        },
        az: {
            name: "Azerbaijani",
            nativeName: "azərbaycan dili"
        },
        ba: {
            name: "Bashkir",
            nativeName: "башҡорт теле"
        },
        be: {
            name: "Belarusian",
            nativeName: "беларуская мова"
        },
        bg: {
            name: "Bulgarian",
            nativeName: "български език"
        },
        bi: {
            name: "Bislama",
            nativeName: "Bislama"
        },
        bm: {
            name: "Bambara",
            nativeName: "bamanankan"
        },
        bn: {
            name: "Bengali",
            nativeName: "বাংলা"
        },
        bo: {
            name: "Tibetan",
            nativeName: "བོད་ཡིག"
        },
        br: {
            name: "Breton",
            nativeName: "brezhoneg"
        },
        bs: {
            name: "Bosnian",
            nativeName: "bosanski jezik"
        },
        ca: {
            name: "Catalan",
            nativeName: "Català"
        },
        ce: {
            name: "Chechen",
            nativeName: "нохчийн мотт"
        },
        ch: {
            name: "Chamorro",
            nativeName: "Chamoru"
        },
        co: {
            name: "Corsican",
            nativeName: "corsu"
        },
        cr: {
            name: "Cree",
            nativeName: "ᓀᐦᐃᔭᐍᐏᐣ"
        },
        cs: {
            name: "Czech",
            nativeName: "Čeština"
        },
        cu: {
            name: "Old Church Slavonic",
            nativeName: "ѩзыкъ словѣньскъ"
        },
        cv: {
            name: "Chuvash",
            nativeName: "чӑваш чӗлхи"
        },
        cy: {
            name: "Welsh",
            nativeName: "Cymraeg"
        },
        da: {
            name: "Danish",
            nativeName: "Dansk"
        },
        de: {
            name: "German",
            nativeName: "Deutsch"
        },
        dv: {
            name: "Divehi",
            nativeName: "ދިވެހި"
        },
        dz: {
            name: "Dzongkha",
            nativeName: "རྫོང་ཁ"
        },
        ee: {
            name: "Ewe",
            nativeName: "Eʋegbe"
        },
        el: {
            name: "Greek",
            nativeName: "Ελληνικά"
        },
        en: {
            name: "English",
            nativeName: "English"
        },
        eo: {
            name: "Esperanto",
            nativeName: "Esperanto"
        },
        es: {
            name: "Spanish",
            nativeName: "Español"
        },
        et: {
            name: "Estonian",
            nativeName: "eesti"
        },
        eu: {
            name: "Basque",
            nativeName: "euskara"
        },
        fa: {
            name: "Persian",
            nativeName: "فارسی"
        },
        ff: {
            name: "Fula",
            nativeName: "Fulfulde"
        },
        fi: {
            name: "Finnish",
            nativeName: "suomi"
        },
        fj: {
            name: "Fijian",
            nativeName: "vosa Vakaviti"
        },
        fo: {
            name: "Faroese",
            nativeName: "Føroyskt"
        },
        fr: {
            name: "French",
            nativeName: "Français"
        },
        fy: {
            name: "Western Frisian",
            nativeName: "Frysk"
        },
        ga: {
            name: "Irish",
            nativeName: "Gaeilge"
        },
        gd: {
            name: "Scottish Gaelic",
            nativeName: "Gàidhlig"
        },
        gl: {
            name: "Galician",
            nativeName: "galego"
        },
        gn: {
            name: "Guaraní",
            nativeName: "Avañe'ẽ"
        },
        gu: {
            name: "Gujarati",
            nativeName: "ગુજરાતી"
        },
        gv: {
            name: "Manx",
            nativeName: "Gaelg"
        },
        ha: {
            name: "Hausa",
            nativeName: "هَوُسَ"
        },
        he: {
            name: "Hebrew",
            nativeName: "עברית"
        },
        hi: {
            name: "Hindi",
            nativeName: "हिन्दी"
        },
        ho: {
            name: "Hiri Motu",
            nativeName: "Hiri Motu"
        },
        hr: {
            name: "Croatian",
            nativeName: "Hrvatski"
        },
        ht: {
            name: "Haitian",
            nativeName: "Kreyòl ayisyen"
        },
        hu: {
            name: "Hungarian",
            nativeName: "magyar"
        },
        hy: {
            name: "Armenian",
            nativeName: "Հայերեն"
        },
        hz: {
            name: "Herero",
            nativeName: "Otjiherero"
        },
        ia: {
            name: "Interlingua",
            nativeName: "Interlingua"
        },
        id: {
            name: "Indonesian",
            nativeName: "Bahasa Indonesia"
        },
        ie: {
            name: "Interlingue",
            nativeName: "Interlingue"
        },
        ig: {
            name: "Igbo",
            nativeName: "Asụsụ Igbo"
        },
        ii: {
            name: "Nuosu",
            nativeName: "ꆈꌠ꒿ Nuosuhxop"
        },
        ik: {
            name: "Inupiaq",
            nativeName: "Iñupiaq"
        },
        io: {
            name: "Ido",
            nativeName: "Ido"
        },
        is: {
            name: "Icelandic",
            nativeName: "Íslenska"
        },
        it: {
            name: "Italian",
            nativeName: "Italiano"
        },
        iu: {
            name: "Inuktitut",
            nativeName: "ᐃᓄᒃᑎᑐᑦ"
        },
        ja: {
            name: "Japanese",
            nativeName: "日本語"
        },
        jv: {
            name: "Javanese",
            nativeName: "basa Jawa"
        },
        ka: {
            name: "Georgian",
            nativeName: "ქართული"
        },
        kg: {
            name: "Kongo",
            nativeName: "Kikongo"
        },
        ki: {
            name: "Kikuyu",
            nativeName: "Gĩkũyũ"
        },
        kj: {
            name: "Kwanyama",
            nativeName: "Kuanyama"
        },
        kk: {
            name: "Kazakh",
            nativeName: "қазақ тілі"
        },
        kl: {
            name: "Kalaallisut",
            nativeName: "kalaallisut"
        },
        km: {
            name: "Khmer",
            nativeName: "ខេមរភាសា"
        },
        kn: {
            name: "Kannada",
            nativeName: "ಕನ್ನಡ"
        },
        ko: {
            name: "Korean",
            nativeName: "한국어"
        },
        kr: {
            name: "Kanuri",
            nativeName: "Kanuri"
        },
        ks: {
            name: "Kashmiri",
            nativeName: "कश्मीरी"
        },
        ku: {
            name: "Kurdish",
            nativeName: "Kurdî"
        },
        kv: {
            name: "Komi",
            nativeName: "коми кыв"
        },
        kw: {
            name: "Cornish",
            nativeName: "Kernewek"
        },
        ky: {
            name: "Kyrgyz",
            nativeName: "Кыргызча"
        },
        la: {
            name: "Latin",
            nativeName: "latine"
        },
        lb: {
            name: "Luxembourgish",
            nativeName: "Lëtzebuergesch"
        },
        lg: {
            name: "Ganda",
            nativeName: "Luganda"
        },
        li: {
            name: "Limburgish",
            nativeName: "Limburgs"
        },
        ln: {
            name: "Lingala",
            nativeName: "Lingála"
        },
        lo: {
            name: "Lao",
            nativeName: "ພາສາລາວ"
        },
        lt: {
            name: "Lithuanian",
            nativeName: "lietuvių kalba"
        },
        lu: {
            name: "Luba-Katanga",
            nativeName: "Kiluba"
        },
        lv: {
            name: "Latvian",
            nativeName: "latviešu valoda"
        },
        mg: {
            name: "Malagasy",
            nativeName: "fiteny malagasy"
        },
        mh: {
            name: "Marshallese",
            nativeName: "Kajin M̧ajeļ"
        },
        mi: {
            name: "Māori",
            nativeName: "te reo Māori"
        },
        mk: {
            name: "Macedonian",
            nativeName: "македонски јазик"
        },
        ml: {
            name: "Malayalam",
            nativeName: "മലയാളം"
        },
        mn: {
            name: "Mongolian",
            nativeName: "Монгол хэл"
        },
        mr: {
            name: "Marathi",
            nativeName: "मराठी"
        },
        ms: {
            name: "Malay",
            nativeName: "Bahasa Melayu"
        },
        mt: {
            name: "Maltese",
            nativeName: "Malti"
        },
        my: {
            name: "Burmese",
            nativeName: "ဗမာစာ"
        },
        na: {
            name: "Nauru",
            nativeName: "Dorerin Naoero"
        },
        nb: {
            name: "Norwegian Bokmål",
            nativeName: "Norsk bokmål"
        },
        nd: {
            name: "Northern Ndebele",
            nativeName: "isiNdebele"
        },
        ne: {
            name: "Nepali",
            nativeName: "नेपाली"
        },
        ng: {
            name: "Ndonga",
            nativeName: "Owambo"
        },
        nl: {
            name: "Dutch",
            nativeName: "Nederlands"
        },
        nn: {
            name: "Norwegian Nynorsk",
            nativeName: "Norsk nynorsk"
        },
        no: {
            name: "Norwegian",
            nativeName: "Norsk"
        },
        nr: {
            name: "Southern Ndebele",
            nativeName: "isiNdebele"
        },
        nv: {
            name: "Navajo",
            nativeName: "Diné bizaad"
        },
        ny: {
            name: "Chichewa",
            nativeName: "chiCheŵa"
        },
        oc: {
            name: "Occitan",
            nativeName: "occitan"
        },
        oj: {
            name: "Ojibwe",
            nativeName: "ᐊᓂᔑᓈᐯᒧᐎᓐ"
        },
        om: {
            name: "Oromo",
            nativeName: "Afaan Oromoo"
        },
        or: {
            name: "Oriya",
            nativeName: "ଓଡ଼ିଆ"
        },
        os: {
            name: "Ossetian",
            nativeName: "ирон æвзаг"
        },
        pa: {
            name: "Panjabi",
            nativeName: "ਪੰਜਾਬੀ"
        },
        pi: {
            name: "Pāli",
            nativeName: "पाऴि"
        },
        pl: {
            name: "Polish",
            nativeName: "Polski"
        },
        ps: {
            name: "Pashto",
            nativeName: "پښتو"
        },
        pt: {
            name: "Portuguese",
            nativeName: "Português"
        },
        qu: {
            name: "Quechua",
            nativeName: "Runa Simi"
        },
        rm: {
            name: "Romansh",
            nativeName: "rumantsch grischun"
        },
        rn: {
            name: "Kirundi",
            nativeName: "Ikirundi"
        },
        ro: {
            name: "Romanian",
            nativeName: "Română"
        },
        ru: {
            name: "Russian",
            nativeName: "Русский"
        },
        rw: {
            name: "Kinyarwanda",
            nativeName: "Ikinyarwanda"
        },
        sa: {
            name: "Sanskrit",
            nativeName: "संस्कृतम्"
        },
        sc: {
            name: "Sardinian",
            nativeName: "sardu"
        },
        sd: {
            name: "Sindhi",
            nativeName: "सिन्धी"
        },
        se: {
            name: "Northern Sami",
            nativeName: "Davvisámegiella"
        },
        sg: {
            name: "Sango",
            nativeName: "yângâ tî sängö"
        },
        si: {
            name: "Sinhala",
            nativeName: "සිංහල"
        },
        sk: {
            name: "Slovak",
            nativeName: "Slovenčina"
        },
        sl: {
            name: "Slovenian",
            nativeName: "slovenščina"
        },
        sm: {
            name: "Samoan",
            nativeName: "gagana fa'a Samoa"
        },
        sn: {
            name: "Shona",
            nativeName: "chiShona"
        },
        so: {
            name: "Somali",
            nativeName: "Soomaaliga"
        },
        sq: {
            name: "Albanian",
            nativeName: "Shqip"
        },
        sr: {
            name: "Serbian",
            nativeName: "српски језик"
        },
        ss: {
            name: "Swati",
            nativeName: "SiSwati"
        },
        st: {
            name: "Southern Sotho",
            nativeName: "Sesotho"
        },
        su: {
            name: "Sundanese",
            nativeName: "Basa Sunda"
        },
        sv: {
            name: "Swedish",
            nativeName: "Svenska"
        },
        sw: {
            name: "Swahili",
            nativeName: "Kiswahili"
        },
        ta: {
            name: "Tamil",
            nativeName: "தமிழ்"
        },
        te: {
            name: "Telugu",
            nativeName: "తెలుగు"
        },
        tg: {
            name: "Tajik",
            nativeName: "тоҷикӣ"
        },
        th: {
            name: "Thai",
            nativeName: "ไทย"
        },
        ti: {
            name: "Tigrinya",
            nativeName: "ትግርኛ"
        },
        tk: {
            name: "Turkmen",
            nativeName: "Türkmençe"
        },
        tl: {
            name: "Tagalog",
            nativeName: "Wikang Tagalog"
        },
        tn: {
            name: "Tswana",
            nativeName: "Setswana"
        },
        to: {
            name: "Tonga",
            nativeName: "faka Tonga"
        },
        tr: {
            name: "Turkish",
            nativeName: "Türkçe"
        },
        ts: {
            name: "Tsonga",
            nativeName: "Xitsonga"
        },
        tt: {
            name: "Tatar",
            nativeName: "татар теле"
        },
        tw: {
            name: "Twi",
            nativeName: "Twi"
        },
        ty: {
            name: "Tahitian",
            nativeName: "Reo Tahiti"
        },
        ug: {
            name: "Uyghur",
            nativeName: "ئۇيغۇرچە‎"
        },
        uk: {
            name: "Ukrainian",
            nativeName: "Українська"
        },
        ur: {
            name: "Urdu",
            nativeName: "اردو"
        },
        uz: {
            name: "Uzbek",
            nativeName: "Ўзбек"
        },
        ve: {
            name: "Venda",
            nativeName: "Tshivenḓa"
        },
        vi: {
            name: "Vietnamese",
            nativeName: "Tiếng Việt"
        },
        vo: {
            name: "Volapük",
            nativeName: "Volapük"
        },
        wa: {
            name: "Walloon",
            nativeName: "walon"
        },
        wo: {
            name: "Wolof",
            nativeName: "Wollof"
        },
        xh: {
            name: "Xhosa",
            nativeName: "isiXhosa"
        },
        yi: {
            name: "Yiddish",
            nativeName: "ייִדיש"
        },
        yo: {
            name: "Yoruba",
            nativeName: "Yorùbá"
        },
        za: {
            name: "Zhuang",
            nativeName: "Saɯ cueŋƅ"
        },
        zh: {
            name: "Chinese",
            nativeName: "中文"
        },
        zu: {
            name: "Zulu",
            nativeName: "isiZulu"
        }
    }), Gh
}
var Yh, Zv;

function v5() {
    if (Zv) return Yh;
    Zv = 1;
    const n = m5(),
        s = {},
        l = {},
        c = [],
        h = [],
        m = [];
    for (const x in n) {
        const {
            name: y,
            nativeName: w
        } = n[x];
        s[x] = l[y.toLowerCase()] = l[w.toLowerCase()] = {
            code: x,
            name: y,
            nativeName: w
        }, c.push(x), h.push(y), m.push(w)
    }
    return Yh = class mf {
        static getLanguages(y = []) {
            return y.map(w => mf.validate(w) ? Object.assign({}, s[w]) : {
                code: w,
                name: "",
                nativeName: ""
            })
        }
        static getName(y) {
            return mf.validate(y) ? n[y].name : ""
        }
        static getAllNames() {
            return h.slice()
        }
        static getNativeName(y) {
            return mf.validate(y) ? n[y].nativeName : ""
        }
        static getAllNativeNames() {
            return m.slice()
        }
        static getCode(y) {
            return y = y.toLowerCase(), l.hasOwnProperty(y) ? l[y].code : ""
        }
        static getAllCodes() {
            return c.slice()
        }
        static validate(y) {
            return n.hasOwnProperty(y)
        }
    }, Yh
}
var b5 = v5();
const Qv = u0(b5);

function x5({
    onSelect: n,
    btnCancel: s = !1
}) {
    const {
        variaveisWA: l
    } = wi(), {
        close: c
    } = Ma(), {
        language: h
    } = Ce(), m = Qv.getAllCodes().map(A => ({
        value: A,
        label: Qv.getName(A)
    })), [x, y] = Q.useState([]), [w, S] = Q.useState("");
    return r.jsx("div", {
        children: r.jsx("ul", {
            className: "overflow-hidden flex " + l.modalOptions.content2,
            children: r.jsxs("div", {
                className: l.modalOptions.content3,
                children: [r.jsx(hd, {
                    filtragem: A => {
                        S(A);
                        let _ = [];
                        m.forEach(O => {
                            var k;
                            (k = O.label) != null && k.toUpperCase().includes(A.toUpperCase()) && _.push(O)
                        }), y(_)
                    },
                    placeholder: h.pesquisarIdioma,
                    dependenciasADD: [m],
                    btnClear: !0
                }), w.length === 0 && r.jsxs("div", {
                    className: "pb-2",
                    children: [r.jsx("div", {
                        className: "px-4",
                        children: r.jsx(Gn, {
                            weight: "700",
                            children: h.principaisIdiomas
                        })
                    }), r.jsx(Ka, {
                        content: "Português",
                        icon: null,
                        setFunction: () => {
                            n({
                                value: "pt",
                                label: "Português"
                            }), c()
                        },
                        stroke: "1"
                    }, 1), r.jsx(Ka, {
                        content: "English",
                        icon: null,
                        setFunction: () => {
                            n({
                                value: "en",
                                label: "English"
                            }), c()
                        },
                        stroke: "1"
                    }, 2), r.jsx(Ka, {
                        content: "Español",
                        icon: null,
                        setFunction: () => {
                            n({
                                value: "es",
                                label: "Español"
                            }), c()
                        },
                        stroke: "1"
                    }, 2), r.jsx("div", {
                        className: "xjm9jq1 xfw0ycb x7r5mf7 x12nagc mx-2"
                    })]
                }), r.jsxs("div", {
                    className: "max-w-[300px] overflow-x-hidden overflow-y-auto " + l.listagem.content1,
                    style: {
                        maxHeight: "60vh"
                    },
                    children: [s && r.jsx(Ka, {
                        content: h.cancelSelection,
                        icon: r.jsx(Af, {
                            className: "w-5 h-5 text-red-500"
                        }),
                        setFunction: () => {
                            n(null), c()
                        },
                        stroke: "1"
                    }), x.map((A, _) => r.jsx(Ka, {
                        content: A.label,
                        icon: null,
                        setFunction: () => {
                            n(A), c()
                        },
                        stroke: "1"
                    }, _))]
                })]
            })
        })
    })
}

function p5() {
    const {
        language: n
    } = Ce(), {
        activePerfil: s,
        updateActivePerfil: l
    } = Ja(), {
        chatName: c
    } = nu(), {
        open: h
    } = Ma(), {
        contatos: m,
        setContatos: x
    } = md(), [y, w] = Q.useState(c.name);
    Q.useEffect(() => {
        w(c.name)
    }, [c]);
    const S = async () => {
        if (await Yn("contatos") === !0) return;
        const O = m.filter(U => U.id !== c.number),
            k = {
                id: c.number,
                name: y
            };
        O.push(k), Ve.Utils("contatoSave", k), nu.setState({
            chatName: {
                ...c,
                name: y,
                number: c.number
            }
        }), x(O), xe({
            type: "Success",
            message: n.contatosNotifiSave,
            position: "top-right"
        })
    }, R = [{
        name: n.cancelSelection,
        value: ""
    }, {
        name: n.male,
        value: n.male
    }, {
        name: n.female,
        value: n.female
    }], A = r.jsx(Xh, {
        name: n.gender,
        estado: s.sexo.length === 0 ? n.selectGender : s.sexo,
        children: r.jsx("ul", {
            tabIndex: 0,
            className: "dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box w-52 mt-2 mr-4",
            children: R.map((O, k) => r.jsx("li", {
                children: r.jsx("div", {
                    className: "flex",
                    onClick: () => l("sexo", O.value),
                    children: r.jsx("span", {
                        children: O.name
                    })
                })
            }, k))
        })
    });
    return r.jsxs("div", {
        className: "p-2 mb-3 h3bz2vby bg-[var(--drawer-section-background)] grid gap-3",
        children: [r.jsx(yx, {
            name: n.name,
            placeholder: n.contactName,
            funcao: S,
            estado: y,
            setEstado: O => w(O.target.value),
            children: r.jsx(Tf, {
                className: "w-5 h-5 text-[var(--panel-header-icon)]"
            })
        }), r.jsxs("div", {
            className: "flex gap-3 justify-between flex-wrap",
            children: [r.jsx("div", {
                className: "my-auto",
                children: A
            }), r.jsx("div", {
                className: "my-auto",
                children: r.jsx(rr, {
                    name: n.dateOfBirth,
                    placeholder: n.dateOfBirth,
                    type: "Date",
                    estado: s.dataNascimento,
                    setEstado: O => l("dataNascimento", O.target.value),
                    children: r.jsx("input", {
                        type: "date",
                        className: "bg-[var(--search-input-background)] w-[20px] dateON cursor-pointer",
                        value: s.dataNascimento,
                        onChange: O => l("dataNascimento", O.target.value)
                    })
                })
            }), r.jsx("div", {
                onClick: O => h(r.jsx(x5, {
                    onSelect: k => l("idioma", k.label)
                }), {
                    placement: "left"
                }, O.currentTarget, 0),
                children: r.jsx(Xh, {
                    name: "Idioma",
                    estado: s.idioma && s.idioma.length !== 0 ? s.idioma : n.nenhumSelecionado
                })
            })]
        })]
    })
}

function Wv({
    model: n,
    val: s
}) {
    const {
        language: l
    } = Ce(), {
        open: c
    } = kt(), {
        activePerfil: h,
        updateActivePerfil: m
    } = Ja(), [x, y] = Q.useState(s || {
        id: "",
        descricao: "",
        data: "",
        hora: "",
        valor: ""
    }), w = async () => {
        if (await Yn("perfilDoContato") === !0) return;
        x.id = Si(), x.data = `${Fn.dayDate().day}/${Fn.dayDate().month}/${Fn.dayDate().year}`, x.hora = `${Fn.timeDate().hours}:${Fn.timeDate().minutes}:${Fn.timeDate().seconds}`;
        const _ = [x, ...h.valNegocio];
        m("valNegocio", _), c(r.jsx(cd, {})), xe({
            type: "Success",
            message: l.addedValue,
            position: "top-right"
        })
    }, S = async () => {
        if (await Yn("perfilDoContato") === !0) return;
        const _ = h.valNegocio.map(O => O.id === x.id ? x : O);
        m("valNegocio", _), c(r.jsx(cd, {})), xe({
            type: "Success",
            message: l.editedValue,
            position: "top-right"
        })
    }, R = (_, O) => {
        y({
            ...x,
            [_]: O
        })
    };
    return r.jsxs("div", {
        className: "w-[600px] grid gap-4",
        children: [r.jsxs(Xn, {
            children: [n === "Edit" ? l.edit : l.create, " ", l.businessValue]
        }), r.jsxs("div", {
            className: "form-control w-full",
            children: [r.jsx("label", {
                className: "label",
                children: r.jsx("span", {
                    className: "label-text",
                    children: l.description
                })
            }), r.jsx("input", {
                type: "text",
                placeholder: l.valueDescription,
                className: "input input-bordered w-full input-sm",
                value: x.descricao,
                onChange: _ => R("descricao", _.target.value)
            })]
        }), r.jsxs("div", {
            className: "form-control w-full",
            children: [r.jsx("label", {
                className: "label",
                children: r.jsx("span", {
                    className: "label-text",
                    children: l.businessValue
                })
            }), r.jsx(Gx, {
                placeholder: "R$ 0,00",
                className: "input input-bordered w-full input-sm",
                value: x.valor,
                onValueChange: _ => R("valor", _.value),
                thousandSeparator: ".",
                decimalSeparator: ",",
                prefix: "R$ ",
                allowNegative: !1,
                decimalScale: 2,
                fixedDecimalScale: !0
            })]
        }), r.jsxs("div", {
            className: "flex justify-between pt-4 resize-none",
            children: [r.jsx(Zt, {
                name: l.cancel,
                funcao: () => c(r.jsx(cd, {}))
            }), n === "Create" ? r.jsx(Zt, {
                name: l.create,
                funcao: w
            }) : r.jsx(Zt, {
                name: l.edit,
                funcao: S
            })]
        })]
    })
}

function cd() {
    const {
        language: n
    } = Ce(), {
        open: s
    } = kt(), {
        activePerfil: l,
        updateActivePerfil: c
    } = Ja(), h = async w => {
        if (await Yn("perfilDoContato") === !0) return;
        const S = (l.valNegocio ? l.valNegocio : []).filter(R => R.id !== w);
        c("valNegocio", S), xe({
            type: "Success",
            message: n.deletedValue,
            position: "top-right"
        })
    }, m = r.jsx("div", {
        className: "my-6 p-4 border-dotted border rounded-lg text-center",
        children: n.noneValueAdded
    }), x = r.jsx(r.Fragment, {
        children: (l.valNegocio ? l.valNegocio : []).map(w => r.jsxs("tr", {
            className: "hover:bg-base-200 cursor-pointer",
            children: [r.jsx("td", {
                className: "rounded-l-lg",
                children: r.jsx("div", {
                    className: "flex justify-center",
                    children: r.jsx("span", {
                        className: "block max-w-[130px]",
                        children: w.descricao
                    })
                })
            }), r.jsx("td", {
                children: w.data
            }), r.jsx("td", {
                children: w.hora
            }), r.jsx("td", {
                children: parseFloat(w.valor).toLocaleString("pt-BR", {
                    style: "currency",
                    currency: "BRL"
                })
            }), r.jsx("td", {
                className: "rounded-r-lg",
                children: r.jsxs("div", {
                    className: "flex justify-center gap-2",
                    children: [r.jsx("span", {
                        className: "pulse",
                        onClick: () => s(r.jsx(Wv, {
                            model: "Edit",
                            val: w
                        })),
                        children: r.jsx(no, {
                            className: "h-5 w-5"
                        })
                    }), r.jsx("span", {
                        className: "pulse",
                        onClick: () => h(w.id),
                        children: r.jsx(is, {
                            className: "h-5 w-5"
                        })
                    })]
                })
            })]
        }))
    });
    return r.jsxs("div", {
        className: "w-[600px] grid gap-4",
        children: [r.jsx(Xn, {
            children: n.businessValue
        }), r.jsxs("div", {
            className: "overflow-auto",
            style: {
                maxHeight: "calc(100vh - 300px)"
            },
            children: [r.jsxs("table", {
                className: "table text-center",
                children: [r.jsx("thead", {
                    children: r.jsxs("tr", {
                        children: [r.jsx("th", {
                            children: n.description
                        }), r.jsx("th", {
                            children: n.date
                        }), r.jsx("th", {
                            children: n.hour
                        }), r.jsx("th", {
                            children: n.value
                        }), r.jsx("th", {
                            children: n.agendamento_table_acao
                        })]
                    })
                }), r.jsx("tbody", {
                    children: (l.valNegocio ? l.valNegocio : []).length > 0 && x
                })]
            }), (l.valNegocio ? l.valNegocio : []).length <= 0 && m]
        }), r.jsx("div", {
            className: "flex justify-end py-3",
            children: r.jsx(Zt, {
                name: n.create,
                funcao: () => s(r.jsx(Wv, {
                    model: "Create"
                }))
            })
        })]
    })
}
const Iv = ["São Paulo", "Minas Gerais", "Rio de Janeiro", "Santa Catarina", "Acre", "Alagoas", "Amapá", "Amazonas", "Bahia", "Ceará", "Distrito Federal", "Espírito Santo", "Goiás", "Maranhão", "Mato Grosso", "Mato Grosso do Sul", "Pará", "Paraíba", "Paraná", "Pernambuco", "Piauí", "Rio Grande do Norte", "Rio Grande do Sul", "Rondônia", "Roraima", "Sergipe", "Tocantins"];

function y5({
    onSelect: n,
    btnCancel: s = !1
}) {
    const {
        variaveisWA: l
    } = wi(), {
        close: c
    } = Ma(), {
        language: h
    } = Ce(), [m, x] = Q.useState([]);
    return r.jsx("div", {
        style: {
            position: "initial"
        },
        children: r.jsx("ul", {
            className: "overflow-hidden flex " + l.modalOptions.content2,
            children: r.jsxs("div", {
                className: l.modalOptions.content3,
                children: [r.jsx(hd, {
                    filtragem: w => {
                        let S = [];
                        Iv.forEach(R => {
                            R != null && R.toUpperCase().includes(w.toUpperCase()) && S.push(R)
                        }), x(S)
                    },
                    placeholder: "Pesquisar Estados",
                    dependenciasADD: [Iv],
                    btnClear: !0
                }), r.jsxs("div", {
                    className: "max-w-[300px] overflow-x-hidden overflow-y-auto " + l.listagem.content1,
                    style: {
                        maxHeight: "calc(100vh - 63px)"
                    },
                    children: [s && r.jsx(Ka, {
                        content: h.cancelSelection,
                        icon: r.jsx(Af, {
                            className: "w-5 h-5 text-red-500"
                        }),
                        setFunction: () => {
                            n(""), c()
                        },
                        stroke: "1"
                    }), m.map((w, S) => r.jsx(Ka, {
                        content: w,
                        icon: r.jsx(r.Fragment, {}),
                        setFunction: () => {
                            n(w), c()
                        },
                        stroke: "1"
                    }, S))]
                })]
            })
        })
    })
}

function M4(n) {
    return nt({
        attr: {
            viewBox: "0 0 1024 1024"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M388.8 896.4v-27.198c.6-2.2 1.6-4.2 2-6.4 8.8-57.2 56.4-102.4 112.199-106.2 62.4-4.4 115.2 31.199 132.4 89.199 2.2 7.6 3.8 15.6 5.8 23.4v27.2c-.6 1.8-1.6 3.399-1.8 5.399-8.6 52.8-46.6 93-98.6 104.4-4 .8-8 2-12 3h-27.2c-1.8-.6-3.6-1.6-5.4-1.8-52-8.4-91.599-45.4-103.6-96.8-1.2-5-2.6-9.6-3.8-14.2zm252.4-768.797l-.001 27.202c-.6 2.2-1.6 4.2-1.8 6.4-9 57.6-56.8 102.6-113.2 106.2-62.2 4-114.8-32-131.8-90.2-2.2-7.401-3.8-15-5.6-22.401v-27.2c.6-1.8 1.6-3.4 2-5.2 9.6-52 39.8-86 90.2-102.2 6.6-2.2 13.6-3.4 20.4-5.2h27.2c1.8.6 3.6 1.6 5.4 1.8 52.2 8.6 91.6 45.4 103.6 96.8 1.201 4.8 2.401 9.4 3.601 13.999zm-.001 370.801v27.2c-.6 2.2-1.6 4.2-2 6.4-9 57.4-58.6 103.6-114.6 106-63 2.8-116.4-35.2-131.4-93.8-1.6-6.2-3-12.4-4.4-18.6v-27.2c.6-2.2 1.6-4.2 2-6.4 8.8-57.4 58.6-103.601 114.6-106.2 63-3 116.4 35.2 131.4 93.8 1.6 6.4 3 12.6 4.4 18.8z"
            },
            child: []
        }]
    })(n)
}

function S5(n) {
    return nt({
        attr: {
            viewBox: "0 0 1024 1024"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M581.76 80.496c3.808 0 5.999.16 5.999.16h83.568l-.431 96h-83.008c-45.68 0-44.624 39.007-44.624 39.007v152.192h161.632l-22.56 95.872h-139.6v479.776h-95.904l-.064-479.776H319.36l-.256-95.872h127.712V218.671C446.83 88.591 554.864 80.495 581.76 80.495zm89.567.159h.16-.16zm-89.567-64.16c-23.008 0-67.97 3.809-110.562 29.473-40.32 24.256-88.368 73.935-88.368 172.688v85.183h-63.712c-17.008 0-33.312 6.784-45.344 18.817a64.003 64.003 0 0 0-18.655 45.408l.256 95.872c.128 35.248 28.752 63.776 64 63.776h63.408l.064 415.776c0 35.344 28.657 64 64 64h95.905c35.343 0 64-28.656 64-64V527.712h75.6c28.4 0 53.407-18.72 61.407-45.967l22.56-95.873c5.68-19.343 1.903-40.255-10.192-56.368a63.912 63.912 0 0 0-51.217-25.664h-97.632v-63.152l63.632-.032c35.216 0 63.84-28.464 64-63.712l.431-92.752a64.3 64.3 0 0 0 .097-3.536c0-35.344-28.592-64-63.935-64h-81.936c-1.84-.096-4.496-.16-7.807-.161z"
            },
            child: []
        }]
    })(n)
}

function w5(n) {
    return nt({
        attr: {
            viewBox: "0 0 1024 1024"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M707 360c-70-75-128-87-184-88h-2c-126 0-245 104-245 248 0 151 136 239 244 239h1c60 0 133-11 197-103H472V401l523 2c5 26 14 91 14 125 0 289-194 495-493 495C232 1023 1 797 1 515S232 8 516 8c139 0 288 55 382 180zm-187 93v154h263c-12 65-81 195-263 195-159 0-287-130-287-285 0-156 131-287 287-287 91 0 152 40 185 72l126-119C751 108 646 63 520 63 264 63 56 264 56 517c0 251 208 453 464 453 270 0 445-185 445-442 0-29-2-52-6-75H520z"
            },
            child: []
        }]
    })(n)
}

function N5(n) {
    return nt({
        attr: {
            viewBox: "0 0 1024 1024"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M997.795 1002.43H789.769c-14.715 0-26.607-11.892-26.607-26.607V640.806c0-114.898-59.263-114.898-78.816-114.898-52.611 0-74.986 41.525-82.243 59.466-3.427 8.064-5.04 21.77-5.04 40.921v349.732c0 14.715-11.892 26.607-26.606 26.607H362.23c-7.055 0-13.909-2.822-18.948-7.86s-7.861-11.895-7.66-18.95c0-5.643 2.822-567.432 0-624.881-.403-7.257 2.217-14.312 7.257-19.553s11.893-8.265 19.35-8.265h208.228c14.714 0 26.607 11.892 26.607 26.607v15.723c35.074-31.244 85.669-57.046 161.058-57.046 166.702 0 266.28 115.3 266.28 308.409v359.005c0 14.715-11.893 26.607-26.607 26.607zm-181.418-53.214l155.012-.004V616.815c0-162.268-77.606-255.193-213.065-255.193-90.507 0-134.45 45.153-162.066 86.476-3.225 10.885-13.506 18.949-25.6 18.949h-1.41c-9.677 0-18.546-5.242-23.181-13.707-3.628-6.653-4.435-14.313-2.016-21.368v-55.835H389.443c1.411 111.068 0 470.477-.403 572.877h154.809V626.09c0-26.809 2.822-46.16 8.869-60.875 23.383-57.852 72.566-92.724 131.427-92.724 83.855 0 132.03 61.28 132.03 168.113v308.611h.204zm-569.246 53.21H38.904c-14.715 0-26.607-11.892-26.607-26.607V349.73c0-14.715 11.892-26.608 26.607-26.608h208.227c14.715 0 26.607 11.893 26.607 26.607V975.82c0 14.715-11.892 26.608-26.607 26.608zM65.513 949.213h155.01V376.336H65.514v572.876zm77.605-658.344l-1.412-.001c-82.041 0-141.707-56.844-141.707-135.055 0-78.009 60.674-134.854 144.529-134.854 82.444 0 141.305 55.231 142.918 134.249 0 78.816-60.674 135.66-144.328 135.66zm1.41-216.492c-54.627 0-91.313 32.857-91.313 81.639 0 47.974 36.284 81.637 88.492 81.637h1.41c54.426 0 91.112-32.857 91.112-81.638-1.008-49.386-36.283-81.638-89.701-81.638z"
            },
            child: []
        }]
    })(n)
}

function C5(n) {
    return nt({
        attr: {
            viewBox: "0 0 512 512"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M217 25v30h30V25h-30zm48 0v30h30V25h-30zm48 0v30h30V25h-30zm-96 48v46h30V73h-30zm48 0v46h30V73h-30zm48 0v46h30V73h-30zm-96 64v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zm174 6.508l-94 53.715V215h94v-71.492zM217 201v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zm80 32v110h94V233h-94zM39 256v23h18v-23H39zm178 9v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zM37.562 297l-7 14h146.875l-7-14H37.563zM25 329v158h23v-23h32v23h48v-23h32v23h23V329H25zm192 0v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zM48 352h32v16H48v-16zm80 0h32v16h-32v-16zm265 9v126h31v-23h32v23h31V361h-94zM48 384h32v16H48v-16zm80 0h32v16h-32v-16zm89 9v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zM48 416h32v16H48v-16zm80 0h32v16h-32v-16zm89 41v30h30v-30h-30zm48 0v30h30v-30h-30zm48 0v30h30v-30h-30z"
            },
            child: []
        }]
    })(n)
}

function E5(n) {
    return nt({
        attr: {
            viewBox: "0 0 512 512"
        },
        child: [{
            tag: "path",
            attr: {
                d: "M327.027 65.816L229.79 128.23l9.856 5.397 86.51-55.53 146.735 83.116-84.165 54.023 4.1 2.244v6.848l65.923-42.316 13.836 7.838-79.76 51.195v11.723l64.633-41.487 15.127 8.57-79.76 51.195v11.723l64.633-41.487 15.127 8.57-79.76 51.195v11.723l100.033-64.21-24.828-14.062 24.827-15.937-24.828-14.064 24.827-15.937-23.537-13.333 23.842-15.305-166.135-94.106zm31.067 44.74c-21.038 10.556-49.06 12.342-68.79 4.383l-38.57 24.757 126.903 69.47 36.582-23.48c-14.41-11.376-13.21-28.35 2.942-41.67l-59.068-33.46zM227.504 147.5l-70.688 46.094 135.61 78.066 1.33-.85c2.5-1.61 6.03-3.89 10.242-6.613 8.42-5.443 19.563-12.66 30.674-19.86 16.002-10.37 24.248-15.72 31.916-20.694L227.504 147.5zm115.467 1.17a8.583 14.437 82.068 0 1 .003 0 8.583 14.437 82.068 0 1 8.32 1.945 8.583 14.437 82.068 0 1-.87 12.282 8.583 14.437 82.068 0 1-20.273 1.29 8.583 14.437 82.068 0 1 .87-12.28 8.583 14.437 82.068 0 1 11.95-3.237zm-218.423 47.115L19.143 263.44l23.537 13.333-23.842 15.305 24.828 14.063-24.828 15.938 24.828 14.063-24.828 15.938 166.135 94.106L285.277 381.8V370.08l-99.433 63.824L39.11 350.787l14.255-9.15 131.608 74.547L285.277 351.8V340.08l-99.433 63.824L39.11 320.787l14.255-9.15 131.608 74.547L285.277 321.8V310.08l-99.433 63.824L39.11 290.787l13.27-8.52 132.9 75.28 99.997-64.188v-5.05l-5.48-3.154-93.65 60.11-146.73-83.116 94.76-60.824-9.63-5.543zm20.46 11.78l-46.92 30.115c14.41 11.374 13.21 28.348-2.942 41.67l59.068 33.46c21.037-10.557 49.057-12.342 68.787-4.384l45.965-29.504-123.96-71.358zm229.817 32.19c-8.044 5.217-15.138 9.822-30.363 19.688-11.112 7.203-22.258 14.42-30.69 19.873-4.217 2.725-7.755 5.01-10.278 6.632-.09.06-.127.08-.215.137v85.924l71.547-48.088v-84.166zm-200.99 17.48a8.583 14.437 82.068 0 1 8.32 1.947 8.583 14.437 82.068 0 1-.87 12.28 8.583 14.437 82.068 0 1-20.27 1.29 8.583 14.437 82.068 0 1 .87-12.28 8.583 14.437 82.068 0 1 11.95-3.236z"
            },
            child: []
        }]
    })(n)
}

function T5() {
    const {
        language: n
    } = Ce(), {
        activePerfil: s,
        updateActivePerfil: l,
        getValorNegocio: c
    } = Ja(), {
        open: h
    } = Ma(), {
        open: m
    } = kt(), [x, y] = Q.useState(!1), w = Q.useRef(null);
    Q.useEffect(() => {
        function A(_) {
            w.current && !w.current.contains(_.target) && y(!1)
        }
        return document.addEventListener("mouseup", A), () => document.removeEventListener("mouseup", A)
    }, []);
    const S = [{
        name: "Whatsapp",
        ico: r.jsx(Sx, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "Youtube",
        ico: r.jsx(wx, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "Facebook",
        ico: r.jsx(S5, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "Instagram",
        ico: r.jsx(Nx, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "Linkedin",
        ico: r.jsx(N5, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "Tik Tok",
        ico: r.jsx(Cx, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "Google",
        ico: r.jsx(w5, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "Site",
        ico: r.jsx(Ex, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: n.formulary,
        ico: r.jsx(q3, {
            className: "w-5 h-5 text-[var(--panel-header-icon)]"
        })
    }, {
        name: "CRM",
        ico: r.jsx(Tx, {
            size: 20,
            color: "var(--icon)"
        })
    }, {
        name: n.others,
        ico: r.jsx(c5, {
            size: "20px",
            color: "var(--icon)"
        })
    }];
    return r.jsxs("div", {
        className: "p-2 mb-3 h3bz2vby bg-[var(--drawer-section-background)] grid gap-3",
        children: [r.jsx(rr, {
            name: n.email,
            btnClose: !0,
            placeholder: n.insertEmail,
            estado: s.email,
            setEstado: A => l("email", A.target.value),
            children: r.jsx(Mx, {
                className: "w-5 h-5 text-[var(--panel-header-icon)]"
            })
        }), r.jsx(rr, {
            name: n.city,
            btnClose: !0,
            placeholder: n.insertCity,
            estado: s.cidade,
            setEstado: A => l("cidade", A.target.value),
            children: r.jsx(my, {
                className: "w-5 h-5 text-[var(--panel-header-icon)]"
            })
        }), r.jsx("div", {
            className: "w-fit",
            onClick: A => h(r.jsx(y5, {
                onSelect: _ => l("estado", _)
            }), {
                placement: "left"
            }, A.currentTarget, 0),
            children: r.jsx(Xh, {
                name: "Estado",
                estado: s.estado && s.estado.length !== 0 ? s.estado : n.nenhumSelecionado
            })
        }), r.jsxs("div", {
            className: "flex gap-2 relative",
            ref: w,
            onMouseDown: A => {
                const _ = A.target;
                (_.tagName === "INPUT" || _.closest("input")) && y(!1)
            },
            children: [r.jsx(rr, {
                type: "text",
                setEstado: A => {
                    l("origemLead", A.target.value)
                },
                name: n.originOfLead,
                estado: s.origemLead,
                placeholder: n.selectOrigin,
                btnClose: !0,
                onFocus: () => y(!1)
            }), r.jsxs("div", {
                className: "flex gap-2 items-end relative",
                children: [r.jsx("button", {
                    onClick: () => y(!x),
                    className: `group w-[50px] h-[35px] flex items-center justify-center 
                            bg-[var(--search-input-background)] rounded-lg transition-all`,
                    children: x ? r.jsx(a5, {
                        className: "text-2xl hover:text-slate-300 duration-300"
                    }) : r.jsx(t5, {
                        className: "text-2xl hover:text-slate-300 duration-300"
                    })
                }), x && r.jsx("ul", {
                    tabIndex: 0,
                    className: `absolute right-0 top-full z-[9999]
            menu p-2 shadow bg-base-100 rounded-box w-52 transition-transform duration-300`,
                    children: S.map((A, _) => r.jsx("li", {
                        children: r.jsxs("div", {
                            className: "flex",
                            onClick: O => {
                                O.stopPropagation(), l("origemLead", A.name), y(!1)
                            },
                            children: [r.jsx("span", {
                                children: A.ico
                            }), r.jsx("span", {
                                children: A.name
                            })]
                        })
                    }, _))
                })]
            })]
        }), r.jsxs("div", {
            className: "flex gap-3 justify-between flex-wrap",
            children: [r.jsx("div", {
                className: "my-auto",
                children: r.jsx(rr, {
                    name: n.entryDate,
                    type: "Date",
                    estado: s.entrada,
                    setEstado: A => l("entrada", A.target.value),
                    children: r.jsx("input", {
                        type: "date",
                        className: "bg-[var(--search-input-background)] w-[20px] dateON cursor-pointer",
                        value: s.entrada,
                        onChange: A => l("entrada", A.target.value)
                    })
                })
            }), r.jsx("div", {
                className: "my-auto",
                children: r.jsx(rr, {
                    name: n.departureDate,
                    type: "Date",
                    estado: s.saida,
                    setEstado: A => l("saida", A.target.value),
                    children: r.jsx("input", {
                        type: "date",
                        className: "bg-[var(--search-input-background)] w-[20px] dateON cursor-pointer",
                        value: s.saida,
                        onChange: A => l("saida", A.target.value)
                    })
                })
            })]
        }), r.jsxs("div", {
            className: "flex items-center justify-start gap-2",
            children: [r.jsx(rr, {
                name: n.businessValue,
                disabled: !0,
                estado: c(),
                children: r.jsx(E5, {
                    className: "w-5 h-5 text-[var(--panel-header-icon)]"
                })
            }), r.jsx("span", {
                className: "pt-4",
                children: r.jsx(Zt, {
                    name: n.insertValue,
                    funcao: () => m(r.jsx(cd, {}))
                })
            })]
        })]
    })
}

function M5(n) {
    navigator.clipboard.writeText(n)
}

function A5() {
    const {
        language: n
    } = Ce(), {
        activePerfil: s,
        updateActivePerfil: l
    } = Ja(), [c, h] = Q.useState(""), m = async S => {
        await Yn("perfilDoContato") !== !0 && (l("produtos", s.produtos.filter(R => R !== S)), xe({
            type: "Success",
            message: n.deletedProduct,
            position: "top-right"
        }))
    }, x = async () => {
        if (await Yn("perfilDoContato") === !0) return;
        if (c.length < 3) {
            xe({
                type: "Error",
                message: n.insertProductNameAtLeast3Chars,
                position: "top-right"
            });
            return
        }
        const S = [c, ...s.produtos];
        l("produtos", S), h(""), xe({
            type: "Success",
            message: n.registeredProduct,
            position: "top-right"
        })
    }, y = r.jsxs("div", {
        className: "py-1 grid gap-2",
        children: [r.jsx("div", {
            className: "flex gap-2 flex-wrap",
            children: s.produtos.map((S, R) => r.jsxs("div", {
                className: "badge bg-[var(--primaria)] gap-1 flex",
                children: [r.jsx("span", {
                    className: "font-medium text-[var(--letra)]",
                    children: S
                }), r.jsx("span", {
                    className: "pulse cursor-pointer",
                    onClick: () => m(S),
                    children: r.jsx(Tg, {
                        className: "w-5 h-5 text-[var(--letra)]"
                    })
                })]
            }, R))
        }), r.jsxs("div", {
            className: "flex items-end justify-start gap-2 w-full",
            children: [r.jsx("div", {
                className: "w-full",
                children: r.jsx(rr, {
                    name: n.productsInterest,
                    btnClose: !0,
                    placeholder: n.insertProductInterest,
                    estado: c,
                    setEstado: S => h(S.target.value)
                })
            }), r.jsx("div", {
                children: r.jsx(Zt, {
                    name: n.insert,
                    funcao: x
                })
            })]
        })]
    });
    return r.jsxs("div", {
        className: "p-2 mb-3 h3bz2vby bg-[var(--drawer-section-background)] grid gap-3",
        children: [r.jsx(rr, {
            name: n.company,
            btnClose: !0,
            placeholder: n.addCompany,
            estado: s.empresa,
            setEstado: S => l("empresa", S.target.value),
            children: r.jsx(C5, {
                className: "w-5 h-5 text-[var(--panel-header-icon)]"
            })
        }), r.jsx(rr, {
            name: n.job,
            btnClose: !0,
            placeholder: n.jobTitle,
            estado: s.cargo,
            setEstado: S => l("cargo", S.target.value),
            children: r.jsx(Ax, {
                className: "w-5 h-5 text-[var(--panel-header-icon)]"
            })
        }), y, r.jsxs("div", {
            className: "relative",
            children: [r.jsx(Rx, {
                name: n.comments,
                height: "150",
                btnClose: !0,
                placeholder: n.insertComment,
                estado: s.observacoes,
                setEstado: S => l("observacoes", S.target.value),
                children: r.jsx($0, {
                    className: "w-5 h-5 text-[var(--panel-header-icon)]"
                })
            }), s.observacoes.trim().length > 0 && r.jsx("button", {
                className: "absolute right-1 py-1  top-6 p-1 mt-8 z-50 rounded transform transition-transform duration-200 hover:scale-105 ",
                onClick: () => {
                    M5(s.observacoes), xe({
                        type: "Success",
                        message: n.copySuccessMessage,
                        position: "top-right"
                    })
                },
                children: r.jsx(Ty, {
                    className: "w-5 h-5 text-[var(--panel-header-icon)]"
                })
            })]
        })]
    })
}

function R5() {
    return r.jsxs("div", {
        className: "bg-[var(--drawer-background-deep)] h-full overflow-auto",
        children: [r.jsx(g5, {}), r.jsx(p5, {}), r.jsx(T5, {}), r.jsx(A5, {})]
    })
}
const O5 = () => {
    const {
        menuLateral: n
    } = ur(), [s, l] = Q.useState(r.jsx(r.Fragment, {}));
    return Q.useEffect(() => {
        switch (n.children) {
            case "RespostaRapida":
                l(r.jsx(Pv, {
                    children: r.jsx(f5, {})
                }));
                break;
            case "perfilContato":
                l(r.jsx(Pv, {
                    children: r.jsx(R5, {})
                }));
                break;
            default:
                l(r.jsx(r.Fragment, {}));
                break
        }
    }, [n]), r.jsx("div", {
        className: "relative z-[100]",
        children: s
    })
};

function _5() {
    return r.jsx(O5, {})
}

function j5({
    card: n
}) {
    const {
        getCard: s
    } = Fa(), l = s(n.id), {
        setUserId: c
    } = ur(), [h, m] = Q.useState({
        open: !1,
        type: "",
        content: ""
    });
    return Q.useEffect(() => {
        (async () => {
            const y = {
                id: {
                    user: l.id
                },
                labels: l.labels
            };
            Ja.getState().setActiveUser(y), Ja.getState().setActivePerfil(l.id), nu.getState().getActiveChat(l.id), c(l.id)
        })()
    }, [l]), r.jsxs("div", {
        className: "h-[90vh] w-[80vw] m-auto max-w-[1200px] max-h-[1200px] flex",
        children: [r.jsxs("div", {
            className: "w-full h-full",
            children: [r.jsx("header", {
                children: r.jsx(x3, {
                    card: n
                })
            }), r.jsx("main", {
                children: r.jsx(Q3, {
                    userID: n.id,
                    viewMidia: h
                })
            }), r.jsx("footer", {
                children: r.jsx(e5, {
                    setViewMidia: m,
                    viewMidia: h,
                    userID: n.id
                })
            })]
        }), r.jsx(_5, {})]
    })
}
const k5 = (n = 0) => n > 99 ? "+99" : n.toString();

function z5({
    card: n
}) {
    var V;
    const {
        getCard: s,
        updateCard: l
    } = Fa(), c = s(n.id), {
        open: h
    } = Ma(), {
        open: m
    } = lu(), {
        open: x
    } = kt(), {
        isBusiness: y
    } = Pe(), {
        getNotes: w
    } = qo(), S = ((V = w(n.id)) == null ? void 0 : V.length) || 0, {
        agendamentos: R
    } = ma(), [A, _] = Q.useState(0);
    Q.useEffect(() => {
        const te = R.filter($ => $.userID === n.id);
        _(te.length)
    }, [R]);
    const O = () => {
            m(r.jsx(j5, {
                card: n
            })), c.unreadMessages > 0 && (Ve.Chat("markIsRead", {
                id: n.id
            }), chrome.runtime.sendMessage({
                action: "chat.markIsRead",
                userId: n.id
            }), window.postMessage({
                action: "chat.markIsRead",
                userId: n.id
            }, "*")), setTimeout(() => l(n.id), 2e3)
        },
        k = ({
            count: te
        }) => te <= 0 ? null : r.jsx("span", {
            className: "absolute -bottom-2 -right-1 flex items-center justify-center min-w-4 h-4 px-1 text-xs font-medium rounded-full text-white bg-[var(--primaria)] shadow-sm transform transition-transform duration-200 overflow-hidden text-ellipsis whitespace-nowrap max-w-[3ch]",
            children: k5(te)
        }),
        U = r.jsx("div", {
            className: "flex pulse pl-2 cursor-pointer text-gray-400 dark:text-gray-600",
            onClick: te => h(r.jsx(k1, {
                userId: n.id,
                userLabels: c.labels
            }), {}, te.currentTarget),
            children: c.labels && c.labels.length > 0 ? r.jsx("div", {
                className: "flex",
                children: c.labels.map((te, $) => r.jsx("span", {
                    style: $ !== 0 ? {
                        marginLeft: "-1rem",
                        color: te.hexColor
                    } : {
                        color: te.hexColor
                    },
                    children: r.jsx(vy, {
                        className: "h-5 w-5"
                    })
                }, $))
            }) : r.jsx("span", {
                children: r.jsx(gy, {
                    className: "h-5 w-5 text-gray-400"
                })
            })
        });
    return r.jsxs("div", {
        className: "flex items-center justify-between p-1",
        children: [r.jsxs("div", {
            className: "flex text-gray-500 space-x-3",
            children: [r.jsxs("button", {
                className: "relative group hover:text-[var(--primaria)] flex items-center justify-center rounded-full transition-transform  duration-200",
                onClick: () => x(r.jsx(p0, {
                    userID: n.id,
                    viwerModel: "modal",
                    id: "notes_crm"
                })),
                children: [r.jsx(Ox, {
                    className: "h-5 w-5"
                }), r.jsx(k, {
                    count: S
                })]
            }), r.jsxs("button", {
                className: "relative group hover:text-[var(--primaria)] flex items-center justify-center rounded-full transition-transform duration-200",
                onClick: () => x(r.jsx($o, {
                    userId: n.id,
                    name: c.name
                })),
                children: [r.jsx(_x, {
                    className: "h-5 w-5"
                }), r.jsx(k, {
                    count: A
                })]
            }), r.jsxs("button", {
                className: "relative group hover:text-[var(--primaria)] flex items-center justify-center rounded-full transition-transform duration-200",
                onClick: O,
                children: [r.jsx(jx, {
                    className: "h-5 w-5"
                }), r.jsx(k, {
                    count: c.unreadMessages
                })]
            }), r.jsx("button", {
                className: "relative group hover:text-[var(--primaria)] flex items-center justify-center rounded-full transition-transform duration-200",
                onClick: () => {
                    O(), setTimeout(() => x(r.jsx(cd, {})), 1e3)
                },
                children: r.jsx(kp, {
                    className: "h-5 w-5"
                })
            })]
        }), y && U]
    })
}

function Kv({
    dragging: n
}) {
    return r.jsx("div", {
        className: "flex-shrink-0 rounded-md border-2 border-dashed border-slate-300 dark:border-slate-600 bg-slate-100/50 dark:bg-slate-800/50",
        style: {
            height: n.height,
            boxShadow: "inset 0 0 12px rgba(0, 0, 0, 0.05)"
        }
    })
}

function D5({
    card: n
}) {
    const {
        getCard: s
    } = Fa(), l = s(n.id), c = m => {
        let x = 0;
        return m.forEach(y => {
            x += parseFloat(y.valor)
        }), x
    };
    return r.jsx("div", {
        className: "pl-1 stat-value text-[12px] text-gray-600 dark:text-gray-300 font-bold !leading-none flex-col",
        children: l.valNegocio && l.valNegocio.length !== 0 && c(l.valNegocio).toLocaleString("pt-BR", {
            style: "currency",
            currency: "BRL"
        })
    })
}

function L5(n, s) {
    const {
        ativeCRM: l
    } = Gt.getState(), {
        setRemoveUser: c
    } = et.getState();
    switch (l) {
        case "Abas":
            c(s, !1, n);
            break;
        case "Etiquetas":
            Ve.Labels("addOrRemoveLabels", {
                id: s,
                label: [{
                    labelId: n,
                    type: "remove"
                }]
            });
            break;
        default:
            R0(l, n, s);
            break
    }
}

function U5({
    card: n,
    columnId: s
}) {
    return r.jsx("div", {
        className: "flex items-end justify-between",
        children: r.jsx("div", {
            onClick: c => L5(s, n.id),
            children: r.jsx("span", {
                className: "pulse !cursor-pointer",
                children: r.jsx(kx, {
                    className: "h-5 w-5 text-gray-500 dark:text-white hover:text-[var(--primaria)] dark:hover:text-[var(--primaria)]"
                })
            })
        })
    })
}

function B5({
    card: n
}) {
    const {
        getCard: s
    } = Fa(), l = s(n.id);
    return r.jsx("div", {
        className: "items-end justify-between stat-value text-[12px] text-gray-500 dark:text-gray-400 !leading-none",
        children: l.entrada && Fn.converterData(l.entrada)
    })
}
const H5 = {
        idle: "hover:outline outline-2 outline-neutral-50 cursor-grab active:cursor-grabbing transition-transform duration-200 hover:shadow-xl hover:scale-[1.01]",
        "is-dragging": "opacity-40"
    },
    F5 = {
        "is-dragging-and-left-self": "hidden"
    };

function Jv({
    card: n,
    state: s,
    columnId: l,
    column: c,
    outerRef: h,
    innerRef: m
}) {
    return r.jsxs("div", {
        ref: h,
        className: `flex flex-shrink-0 flex-col gap-2 p-2 py-1 ${F5[s.type]}`,
        children: [s.type === "is-over" && s.closestEdge === "top" ? r.jsx(Kv, {
            dragging: s.dragging
        }) : null, r.jsxs("div", {
            className: `group bg-[var(--background-default)] p-1 text-black dark:text-white rounded-md ${H5[s.type]}`,
            ref: m,
            children: [r.jsxs("div", {
                className: "flex justify-between",
                children: [r.jsx(g3, {
                    card: n
                }), l !== "Inbox" && r.jsx("div", {
                    className: "mb-auto mt-0 hidden group-hover:flex",
                    children: r.jsx(U5, {
                        card: n,
                        columnId: l
                    })
                })]
            }), r.jsxs("div", {
                className: "p-1 flex justify-between overflow-hiden",
                children: [r.jsx(D5, {
                    card: n,
                    columnId: l
                }), r.jsx(B5, {
                    card: n,
                    columnId: l
                })]
            }), r.jsx("div", {
                className: "mt-auto mb-0 flex justify-between gap-3",
                children: r.jsx(z5, {
                    card: n
                })
            })]
        }), s.type === "is-over" && s.closestEdge === "bottom" ? r.jsx(Kv, {
            dragging: s.dragging
        }) : null]
    })
}
const sf = {
        type: "idle"
    },
    G5 = Q.memo(function({
        card: s,
        columnId: l
    }) {
        const {
            closeSearchInContainer: c
        } = Of(), h = Q.useRef(null), m = Q.useRef(null), [x, y] = Q.useState(sf);
        return Q.useEffect(() => {
            const w = h.current,
                S = m.current;
            return sr(w && S), lo(pg({
                element: S,
                getInitialData: ({
                    element: R
                }) => D2({
                    card: s,
                    columnId: l,
                    rect: R.getBoundingClientRect()
                }),
                onGenerateDragPreview({
                    nativeSetDragImage: R,
                    location: A,
                    source: _
                }) {
                    const O = _.data;
                    sr(ns(O)), A1({
                        nativeSetDragImage: R,
                        getOffset: M1({
                            element: S,
                            input: A.current.input
                        }),
                        render({
                            container: k
                        }) {
                            y({
                                type: "preview",
                                container: k,
                                dragging: S.getBoundingClientRect()
                            })
                        }
                    })
                },
                onDragStart() {
                    c(), y({
                        type: "is-dragging"
                    })
                },
                onDrop() {
                    y(sf)
                }
            }), s1({
                element: w,
                getIsSticky: () => !0,
                canDrop: qc,
                getData: ({
                    element: R,
                    input: A
                }) => {
                    const _ = L2({
                        card: s,
                        columnId: l
                    });
                    return H2(_, {
                        element: R,
                        input: A,
                        allowedEdges: ["top", "bottom"]
                    })
                },
                onDragEnter({
                    source: R,
                    self: A
                }) {
                    if (!ns(R.data)) return;
                    const _ = $h(A.data);
                    _ && y({
                        type: "is-over",
                        dragging: R.data.rect,
                        closestEdge: _
                    })
                },
                onDrag({
                    source: R,
                    self: A
                }) {
                    if (!ns(R.data)) return;
                    const _ = $h(A.data);
                    if (!_) return;
                    const O = {
                        type: "is-over",
                        dragging: R.data.rect,
                        closestEdge: _
                    };
                    y(k => R1(O, k) ? k : O)
                },
                onDragLeave({
                    source: R
                }) {
                    ns(R.data) && y(sf)
                },
                onDrop() {
                    y(sf)
                }
            }))
        }, [s, l]), r.jsxs(r.Fragment, {
            children: [r.jsx(Jv, {
                outerRef: h,
                innerRef: m,
                state: x,
                card: s,
                columnId: l
            }), x.type === "preview" ? b0.createPortal(r.jsx(Jv, {
                state: x,
                card: s,
                columnId: l
            }), x.container) : null]
        })
    }),
    Y5 = ({
        column: n
    }) => {
        const {
            language: s
        } = Ce();
        return r.jsxs(Ft.div, {
            className: "flex flex-col items-center justify-center h-40 p-6 rounded-xl text-center shadow-sm",
            initial: {
                opacity: 0,
                y: 10
            },
            animate: {
                opacity: 1,
                y: 0
            },
            transition: {
                duration: .5
            },
            children: [r.jsxs(Ft.div, {
                className: "relative mb-5",
                initial: {
                    scale: .8
                },
                animate: {
                    scale: 1
                },
                transition: {
                    duration: .5
                },
                children: [r.jsx(Ft.div, {
                    className: "absolute inset-0 rounded-full bg-[var(--panel-header-background)]",
                    animate: {
                        scale: [1, 1.15, 1],
                        opacity: [.7, .5, .7]
                    },
                    transition: {
                        duration: 3,
                        repeat: 1 / 0,
                        ease: "easeInOut"
                    }
                }), r.jsx(Ft.div, {
                    animate: {
                        y: [0, -5, 0]
                    },
                    transition: {
                        duration: 2,
                        repeat: 1 / 0,
                        ease: "easeInOut"
                    },
                    className: "relative z-10",
                    children: r.jsx(rp, {
                        size: 38
                    })
                })]
            }), r.jsx(Ft.h3, {
                className: "text-sm font-medium text-slate-800 dark:text-white mb-2",
                initial: {
                    opacity: 0
                },
                animate: {
                    opacity: 1
                },
                transition: {
                    delay: .3
                },
                children: s.nenhumContatoEncontrado
            }), r.jsx(Ft.p, {
                className: "text-xs text-slate-500 max-w-xs",
                initial: {
                    opacity: 0
                },
                animate: {
                    opacity: 1
                },
                transition: {
                    delay: .5
                },
                children: s.ajusteSuaPesquisa
            })]
        })
    },
    X5 = Q.memo(function({
        column: s
    }) {
        const {
            getContainer: l
        } = Of(), {
            search: c,
            filterCards: h
        } = l(s.id)(), m = Q.useRef(null), [x, y] = Q.useState(!1), w = c ? h : s.cards, S = d3({
            count: w.length,
            getScrollElement: () => m.current,
            estimateSize: () => 88,
            overscan: 0,
            enabled: !x
        }), R = r.jsx("div", {
            "data-id": "renderCards-customScrollBar",
            ref: m,
            className: "overflow-y-auto bg-[var(--panel-header-background)]",
            children: r.jsx("div", {
                style: {
                    height: S.getTotalSize(),
                    position: "relative"
                },
                children: S.getVirtualItems().map(A => {
                    const _ = w[A.index];
                    return r.jsx("div", {
                        "data-index": A == null ? void 0 : A.index,
                        ref: O => {
                            S.measureElement(O), O && pg({
                                element: O,
                                onDragStart: () => y(!0),
                                onDrop: () => y(!1)
                            })
                        },
                        style: {
                            position: "absolute",
                            top: 0,
                            left: 0,
                            width: "100%",
                            transform: `translateY(${A.start}px)`,
                            zIndex: x ? 1e3 : "auto"
                        },
                        children: r.jsx(G5, {
                            card: _,
                            columnId: s.id
                        })
                    }, _.id)
                })
            })
        });
        return c && h.length === 0 ? r.jsx(Y5, {
            column: s.id
        }) : R
    });

function P5({
    dragging: n
}) {
    return r.jsx("div", {
        className: "flex-shrink-0 rounded-md border-2 border-dashed border-slate-300 dark:border-slate-600 bg-[var(--panel-header-background)]/50",
        style: {
            height: n.height,
            boxShadow: "inset 0 0 12px rgba(0, 0, 0, 0.05)"
        }
    })
}

function V5({
    column: n
}) {
    const {
        ativeCRM: s
    } = Gt(), {
        language: l
    } = Ce(), {
        close: c
    } = kt(), [h, m] = Q.useState(n.color), x = () => {
        O0(s, n.id, h), xe({
            type: "Success",
            message: l.CRM_corAlterada,
            position: "top-right"
        }), c()
    };
    return r.jsxs("div", {
        className: "w-80 grid gap-4",
        children: [r.jsx(Xn, {
            children: l.CRM_corEdit
        }), r.jsx(I0, {
            plugin_page: !0,
            colorInicial: n.color,
            onChange: w => m(w)
        }), r.jsx(Zt, {
            name: l.save,
            funcao: x
        })]
    })
}

function Z5(n, s) {
    const l = new Blob([Uint8Array.from(atob(n), h => h.charCodeAt(0))], {
            type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
        }),
        c = document.createElement("a");
    c.href = URL.createObjectURL(l), c.download = s, c.click(), c.remove()
}
const Q5 = (n, s) => n.map(l => {
    const c = s.find(h => h.id === l.id);
    return c ? {
        ...l,
        ...c
    } : l
});
async function W5(n) {
    const {
        language: s
    } = Ce.getState(), {
        user: l
    } = cr.getState(), {
        label: c
    } = tu.getState(), {
        cards: h
    } = Fa.getState();
    let m = Q5(n.cards, h);
    if (l.estado || (m = m.slice(0, 5), xe({
            type: "Info",
            message: "Modo gratuito permite apenas até 5 contatos exportados por aba",
            position: "top-right"
        })), m.length === 0) {
        xe({
            type: "Error",
            message: "Não há contatos para exportar",
            position: "top-right"
        });
        return
    }
    const x = {
        contacts: m,
        labelName: c.nameID,
        tag: n.name
    };
    try {
        const y = await fetch(`${qv.backend_utils}api/XLSX/exporttab`, {
            method: "POST",
            headers: {
                "Content-Type": "application/json"
            },
            body: JSON.stringify(x)
        });
        if (!y.ok) throw new Error("Erro ao enviar dados para o servidor");
        const w = await y.json();
        Z5(w.XLSXbase64, `${c.nameID}_aba_${n.name}.xlsx`), xe({
            type: "Success",
            message: s.exportSuccess,
            position: "top-right"
        })
    } catch (y) {
        console.error("Erro ao exportar contatos:", y), xe({
            type: "Error",
            message: s.erroEnvio,
            position: "top-right"
        })
    }
}

function I5(n) {
    const {
        language: s
    } = Ce(), {
        ativeCRM: l
    } = Gt(), {
        open: c
    } = kt(), h = et(x => x.setVisibilityUserTab), m = [{
        id: 0,
        nome: s.CRM_renomearAba,
        type: ["Abas", "CRM"],
        is_inbox: !1,
        icon: r.jsx(hy, {
            size: 18
        }),
        funcao: () => q0(n)
    }, {
        id: 1,
        nome: s.CRM_deletarAba,
        type: ["Abas", "CRM"],
        is_inbox: !1,
        icon: r.jsx(zx, {
            size: 18
        }),
        funcao: () => J0(n)
    }, {
        id: 2,
        nome: s.CRM_exportarAba,
        type: ["Abas", "CRM", "Etiquetas", "Inbox"],
        is_inbox: !1,
        icon: r.jsx(fy, {
            size: 18
        }),
        funcao: () => W5(n)
    }, {
        id: 3,
        nome: s.CRM_alterCorAba,
        type: ["CRM"],
        is_inbox: !1,
        icon: r.jsx(Dx, {
            size: 18
        }),
        funcao: () => c(r.jsx(V5, {
            column: n
        }))
    }, {
        id: 4,
        nome: s.menuTab_ocutar,
        type: ["Abas"],
        is_inbox: !1,
        icon: r.jsx(Lx, {
            size: 18
        }),
        funcao: () => h(n.id)
    }];
    return n.is_inbox ? m.filter(x => x.type.includes("Inbox")) : l === "Abas" ? m.filter(x => x.type.includes("Abas")) : l === "Etiquetas" ? m.filter(x => x.type.includes("Etiquetas")) : m.filter(x => x.type.includes("CRM"))
}

function K5({
    column: n
}) {
    const {
        close: s
    } = Ma();
    return r.jsxs("div", {
        className: "p-2 min-w-64",
        children: [r.jsxs("div", {
            className: "flex gap-1 ml-[6px] pb-1 items-center",
            children: [r.jsxs("span", {
                children: [" ", r.jsx(Mf, {
                    color: n.color
                }), " "]
            }), r.jsx(Xn, {
                children: n.name
            })]
        }), r.jsx("div", {
            children: I5(n).map(c => r.jsx(Ka, {
                id: c.id.toString(),
                content: c.nome,
                icon: r.jsx("span", {
                    className: "text-[var(--icon)]",
                    children: c.icon
                }),
                setFunction: () => {
                    c.funcao(), s()
                }
            }))
        })]
    })
}

function J5({
    column: n
}) {
    const s = Ce.getState().idioma,
        {
            cards: l
        } = Fa(),
        c = () => {
            let S = 0;
            const R = n.cards || [],
                A = new Set(R.map(_ => _.id));
            return l.forEach(_ => {
                A.has(_.id) && _.valNegocio && Array.isArray(_.valNegocio) && _.valNegocio.forEach(O => {
                    S += parseFloat(O.valor || 0)
                })
            }), S
        },
        h = S => S >= 1e12 ? (S / 1e12).toFixed(1) + "T" : S >= 1e9 ? (S / 1e9).toFixed(1) + "B" : S >= 1e6 ? (S / 1e6).toFixed(1) + "M" : S >= 1e3 ? (S / 1e3).toFixed(1) + "K" : S.toFixed(2),
        m = c(),
        x = {
            pt: "pt-BR",
            en: "en-US",
            es: "es-ES"
        },
        y = {
            pt: "BRL",
            en: "USD",
            es: "EUR"
        },
        w = m.toLocaleString(x[s], {
            style: "currency",
            currency: y[s]
        });
    return r.jsxs("span", {
        className: "cursor-pointer pulse lg:tooltip lg:tooltip-right",
        "data-tip": w,
        children: [s === "pt" ? "R$" : "$", " ", h(m)]
    })
}

function q5({
    column: n,
    headerRef: s
}) {
    const {
        getContainer: l
    } = Of(), {
        search: c,
        setSearch: h,
        text: m,
        setText: x
    } = l(n.id)(), {
        open: y
    } = Ma(), {
        language: w
    } = Ce();
    return r.jsx(Ft.div, {
        className: "rounded-t-md relative backdrop-blur-sm",
        style: {
            borderTop: `3px solid ${n.color}`
        },
        initial: {
            opacity: .8
        },
        animate: {
            opacity: 1
        },
        transition: {
            duration: .3
        },
        ref: s,
        children: r.jsx("div", {
            className: "px-1.5 bg-[var(--panel-header-background)]",
            children: r.jsx(eu, {
                mode: "wait",
                children: c ? r.jsx(Ft.div, {
                    className: "flex items-center w-full",
                    initial: {
                        opacity: 0,
                        y: -10
                    },
                    animate: {
                        opacity: 1,
                        y: 0
                    },
                    exit: {
                        opacity: 0,
                        y: -10
                    },
                    transition: {
                        duration: .2
                    },
                    children: r.jsxs(Ft.div, {
                        className: "relative flex items-center w-full py-1",
                        children: [r.jsxs(Ft.div, {
                            className: "flex items-center w-full bg-white/90 dark:bg-gray-700/90 rounded-md px-2 shadow-sm",
                            initial: {
                                scale: .98
                            },
                            animate: {
                                scale: 1
                            },
                            transition: {
                                type: "spring",
                                stiffness: 300,
                                damping: 20
                            },
                            children: [r.jsx(Im, {
                                className: "text-gray-800 dark:text-gray-300 mr-1.5",
                                size: 12
                            }), r.jsx("input", {
                                type: "text",
                                value: m,
                                onChange: S => x(S.target.value),
                                placeholder: w.pesquisar,
                                className: "bg-transparent text-gray-800 dark:text-gray-100 text-sm py-1 w-full focus:outline-none placeholder:text-gray-400 dark:placeholder:text-gray-500",
                                autoFocus: !0
                            })]
                        }), r.jsx(Ft.button, {
                            type: "button",
                            className: "absolute right-1 p-1 rounded-full bg-gray-200/80 dark:bg-gray-600/80 hover:bg-gray-300/90 dark:hover:bg-gray-500/90 text-gray-600 dark:text-gray-300",
                            onClick: () => h(!1),
                            whileHover: {
                                scale: 1.1
                            },
                            whileTap: {
                                scale: .95
                            },
                            children: r.jsx(Tg, {
                                size: 14
                            })
                        })]
                    })
                }, "search") : r.jsx(Ft.div, {
                    className: "flex flex-col w-full",
                    initial: {
                        opacity: 0,
                        y: 10
                    },
                    animate: {
                        opacity: 1,
                        y: 0
                    },
                    exit: {
                        opacity: 0,
                        y: 10
                    },
                    transition: {
                        duration: .2
                    },
                    children: r.jsxs("div", {
                        className: "flex items-center justify-between",
                        children: [r.jsxs(Ft.div, {
                            className: "flex items-center",
                            children: [r.jsx("h3", {
                                className: "p-1 font-sans uppercase text-md font-semibold text-gray-700 dark:text-gray-300 truncate max-w-[110px] tracking-tight",
                                children: n.name
                            }), r.jsx("span", {
                                className: "ml-2 text-gray-800 bg-gray-300 dark:bg-gray-700 dark:text-gray-300 px-1 rounded-md text-xs",
                                children: n.cards.length
                            }), n.id !== "Inbox" && r.jsx("div", {
                                className: "ml-2 text-gray-800 bg-gray-300 dark:bg-gray-700 dark:text-gray-300 px-1 rounded-md text-xs",
                                children: r.jsx(J5, {
                                    column: n
                                })
                            })]
                        }), r.jsxs("div", {
                            className: "flex gap-1",
                            children: [n.cards.length > 0 && r.jsx(Ft.button, {
                                type: "button",
                                className: "p-1 rounded-full text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-500 transition-colors duration-150",
                                onClick: () => h(!0),
                                whileHover: {
                                    scale: 1.1
                                },
                                whileTap: {
                                    scale: .95
                                },
                                children: r.jsx(Im, {
                                    size: 14
                                })
                            }), r.jsx(Ft.button, {
                                type: "button",
                                className: "p-1 rounded-full text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-500 transition-colors duration-150",
                                onClick: S => y(r.jsx(K5, {
                                    column: n
                                }), {
                                    placement: "right-start"
                                }, S.target),
                                whileHover: {
                                    scale: 1.1
                                },
                                whileTap: {
                                    scale: .95
                                },
                                children: r.jsx(Ux, {
                                    size: 14
                                })
                            })]
                        })]
                    })
                }, "title")
            })
        })
    })
}
const $5 = {
    idle: "",
    "is-card-over": "",
    "is-dragging": "opacity-60 shadow-lg",
    "is-column-over": "ring-2 ring-slate-300 dark:ring-slate-600 ring-inset bg-[var(--panel-header-background)]/30"
};

function e4({
    outerFullHeightRef: n,
    state: s,
    innerRef: l,
    column: c,
    headerRef: h,
    scrollableRef: m
}) {
    return r.jsx("div", {
        className: "flex w-64 flex-shrink-0 select-none flex-col",
        ref: n,
        children: r.jsxs("div", {
            className: `relative flex max-h-full flex-col rounded-lg overflow-hidden shadow-sm ${$5[s.type]}`,
            ref: l,
            [O1]: !0,
            children: [r.jsx("div", {
                className: "absolute bottom-0 left-0 w-full h-1",
                style: {
                    backgroundColor: c.color
                }
            }), r.jsxs("div", {
                className: `flex max-h-full flex-col ${s.type==="is-column-over"?"invisible":""}`,
                children: [r.jsx(q5, {
                    column: c,
                    headerRef: h
                }), r.jsxs("div", {
                    className: "flex mb-2 flex-col overflow-y-auto overflow-x-hidden custom-scrollbar [overflow-anchor:none] scrollbar-thin",
                    ref: m,
                    children: [r.jsx(X5, {
                        column: c
                    }), s.type === "is-card-over" && !s.isOverChildCard ? r.jsx("div", {
                        className: "flex-shrink-0 px-3 py-1",
                        children: r.jsx(P5, {
                            dragging: s.dragging
                        })
                    }) : null]
                })]
            })]
        })
    })
}
const t4 = n => r.jsx("div", {
        className: "flex w-72 flex-shrink-0 select-none flex-col",
        children: r.jsx("div", {
            className: "flex max-h-full flex-col rounded-lg text-neutral-50",
            style: {
                backgroundColor: n.color
            },
            children: r.jsx("div", {
                className: "flex max-h-full flex-col",
                children: r.jsx("div", {
                    className: "flex flex-row items-center justify-between p-3 pb-2",
                    children: r.jsxs("div", {
                        className: "pl-2 font-bold leading-4",
                        children: [n.name, " (", n.cards.length, ")"]
                    })
                })
            })
        })
    }),
    cf = {
        type: "idle"
    },
    a4 = Q.memo(function({
        column: s
    }) {
        const {
            settings: l
        } = ls(), {
            closeSearchInContainer: c
        } = Of(), h = Q.useRef(null), m = Q.useRef(null), x = Q.useRef(null), y = Q.useRef(null), [w, S] = Q.useState(cf);
        return Q.useEffect(() => {
            const R = m.current,
                A = h.current,
                _ = x.current,
                O = y.current;
            sr(R), sr(A), sr(_), sr(O);
            const k = U2({
                column: s
            });

            function U({
                data: V,
                location: te
            }) {
                const $ = te.current.dropTargets[0],
                    ve = !!($ && S1($.data)),
                    fe = {
                        type: "is-card-over",
                        dragging: V.rect,
                        isOverChildCard: ve
                    };
                S(Se => R1(fe, Se) ? Se : fe)
            }
            return lo(pg({
                element: _,
                getInitialData: () => k,
                onGenerateDragPreview({
                    source: V,
                    location: te,
                    nativeSetDragImage: $
                }) {
                    const ve = V.data;
                    sr($c(ve)), A1({
                        nativeSetDragImage: $,
                        getOffset: M1({
                            element: _,
                            input: te.current.input
                        }),
                        render({
                            container: fe
                        }) {
                            const Se = O.getBoundingClientRect(),
                                be = document.createElement("div");
                            be.innerHTML = W2.renderToString(t4(s)), sr(be instanceof HTMLElement), be.style.width = `${Se.width}px`, be.style.height = `${Se.height}px`, $2() || (be.style.transform = "rotate(4deg)"), fe.appendChild(be)
                        }
                    })
                },
                onDragStart() {
                    c(), S({
                        type: "is-dragging"
                    })
                },
                onDrop() {
                    S(cf)
                }
            }), s1({
                element: R,
                getData: () => k,
                canDrop({
                    source: V
                }) {
                    return qc({
                        source: V
                    }) || ff({
                        source: V
                    })
                },
                getIsSticky: () => !0,
                onDragStart({
                    source: V,
                    location: te
                }) {
                    ns(V.data) && U({
                        data: V.data,
                        location: te
                    })
                },
                onDragEnter({
                    source: V,
                    location: te
                }) {
                    if (ns(V.data)) {
                        U({
                            data: V.data,
                            location: te
                        });
                        return
                    }
                    $c(V.data) && V.data.column.id !== s.id && S({
                        type: "is-column-over"
                    })
                },
                onDropTargetChange({
                    source: V,
                    location: te
                }) {
                    if (ns(V.data)) {
                        U({
                            data: V.data,
                            location: te
                        });
                        return
                    }
                },
                onDragLeave({
                    source: V
                }) {
                    $c(V.data) && V.data.column.id === s.id || S(cf)
                },
                onDrop() {
                    S(cf)
                }
            }), b1({
                canScroll({
                    source: V
                }) {
                    return l.isOverElementAutoScrollEnabled ? qc({
                        source: V
                    }) : !1
                },
                getConfiguration: () => ({
                    maxScrollSpeed: l.columnScrollSpeed
                }),
                element: A
            }), x1({
                element: A,
                getConfiguration: () => ({
                    maxScrollSpeed: l.columnScrollSpeed
                }),
                canScroll({
                    source: V
                }) {
                    return !l.isOverElementAutoScrollEnabled || !l.isOverflowScrollingEnabled ? !1 : qc({
                        source: V
                    })
                },
                getOverflow() {
                    return {
                        forTopEdge: {
                            top: 1e3
                        },
                        forBottomEdge: {
                            bottom: 1e3
                        }
                    }
                }
            }))
        }, [s, l]), r.jsx(e4, {
            outerFullHeightRef: m,
            state: w,
            innerRef: y,
            column: s,
            headerRef: x,
            scrollableRef: h
        })
    });

function n4() {
    const {
        settings: n
    } = ls(), {
        data: s
    } = Gt(), l = Q.useRef(null);
    return X2(l), Q.useEffect(() => {
        let c = null;
        const h = l.current;
        sr(h);

        function m({
            startX: y
        }) {
            let w = y;
            const S = sc.bindAll(window, [{
                type: "pointermove",
                listener(R) {
                    const A = R.clientX,
                        _ = w - A;
                    w = A, h == null || h.scrollBy({
                        left: _
                    })
                }
            }, ...["pointercancel", "pointerup", "pointerdown", "keydown", "resize", "click", "visibilitychange"].map(R => ({
                type: R,
                listener: () => S()
            }))], {
                capture: !0
            });
            c = S
        }
        const x = sc.bindAll(h, [{
            type: "pointerdown",
            listener(y) {
                y.target instanceof HTMLElement && (y.target.closest(`[${O1}]`) || m({
                    startX: y.clientX
                }))
            }
        }]);
        return function() {
            x(), c == null || c()
        }
    }, []), r.jsx("div", {
        className: `flex h-full flex-col ${n.isBoardMoreObvious?"px-32 py-20":""}`,
        children: r.jsx("div", {
            "data-id": "renderCards-customScrollBar",
            className: `flex h-full flex-row gap-3 overflow-x-auto p-3  ${n.isBoardMoreObvious?"rounded border-2 border-dashed":""}`,
            ref: l,
            children: s.columns.map(c => r.jsx(a4, {
                column: c
            }, c.id))
        })
    })
}

function l4(n) {
    if (n.startsWith("55")) {
        const s = n.replace(/\D/g, ""),
            l = /^(55)(\d{2})(\d{4,5})(\d{4})$/,
            c = s.match(l);
        if (c) {
            const h = c[2],
                m = c[3],
                x = c[4];
            return `+${c[1]} (${h}) ${m}-${x}`
        } else throw new Error("Número de telefone inválido")
    } else return n
}
async function i4() {
    const n = await Ve.Conn("getMyUserId"),
        s = await Ve.Profile("getMyProfileName"),
        l = l4(n),
        c = await Ve.Contact("getProfilePictureUrl", n);
    return {
        name: s,
        phone: l,
        profilePic: c === "undefined" ? void 0 : c
    }
}

function r4() {
    const [n, s] = Q.useState(!0), [l, c] = Q.useState(null), h = () => {
        s(!n)
    };
    return Q.useEffect(() => {
        i4().then(m => c(m))
    }, []), r.jsxs("div", {
        className: "flex h-screen w-full bg-[var(--background-default)]",
        children: [r.jsx(My, {
            sidebarCollapsed: n,
            toggleSidebar: h,
            profile: l
        }), r.jsx("div", {
            "data-id": "renderCards-customScrollBar",
            className: "flex-1 flex flex-col select-none overflow-x-auto",
            children: r.jsx("div", {
                "data-id": "Painel",
                className: "flex-1",
                style: {
                    maxHeight: "calc(100vh - 16px)"
                },
                children: r.jsx("div", {
                    className: "h-full overflow-x-auto",
                    children: r.jsx(n4, {})
                })
            })
        })]
    })
}

function s4() {
    const {
        menu: n
    } = ur(), {
        open: s
    } = lu(), {
        ativeCRM: l
    } = Gt(), {
        userTabs: c
    } = et();
    return Q0()(x => {
        (x.altKey && x.keyCode === 77 || x.keyCode === 9) && s(r.jsx(K0, {})), x.altKey && x.keyCode === 65 && W0()
    }, [l, c]), r.jsx("div", {
        className: "flex gap-1 h-[100vh] " + (n === "Right" ? "flex-row-reverse" : n === "Bottom" ? "flex-col-reverse" : n === "Top" ? "flex-col" : ""),
        children: r.jsx(r4, {})
    })
}
const c4 = () => {
        const {
            language: n
        } = Ce(), {
            whatsappOpen: s
        } = Pe(), [l, c] = Q.useState(!1), [h, m] = Q.useState(!1);
        Q.useEffect(() => {
            const w = setTimeout(() => c(!0), 2e3),
                S = setTimeout(() => m(!0), 5e3);
            return () => {
                clearTimeout(w), clearTimeout(S)
            }
        }, []);
        const x = r.jsxs(r.Fragment, {
                children: [r.jsx(dp, {}), r.jsx(Wp, {}), r.jsx(cp, {}), r.jsx(Zp, {}), r.jsx(Fx, {}), r.jsx(s4, {})]
            }),
            y = r.jsxs(r.Fragment, {
                children: [!h && r.jsx(Hx, {}), l && x]
            });
        return s ? y : r.jsx(Bx, {
            language: n
        })
    },
    B1 = () => {
        const {
            label: n
        } = tu.getState();
        if (n.nameID.length === 0) setTimeout(B1, 350);
        else {
            const s = document.createElement("link");
            s.rel = "stylesheet", s.type = "text/css", s.href = chrome.runtime.getURL(`label/css/${n.nameID}.css`), document.head.appendChild(s), document.querySelector("#title").innerHTML = n.name + " CRM", (() => {
                const l = document.querySelector("#app");
                if (!l) throw new Error("Can not find #app");
                Vp.createRoot(l).render(r.jsx(c4, {}))
            })()
        }
    };
B1();
export {
    p4 as B, Y3 as C, vg as E, e1 as F, T4 as G, C4 as I, N4 as M, M4 as S, x4 as T, is as V, Vh as a, Qp as b, b4 as c, Hv as d, D1 as e, y4 as f, w4 as g, S4 as h, gd as i, qo as j, Jc as k, ip as l, E4 as m, hf as n, af as o, J3 as p, Ip as s, Km as u
};