diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..a6344aac8c09253b3b630fb776ae94478aa0275b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,35 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..08211a3868b5075efc2a903acb01b805c5ced889 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3.10.11 + +RUN apt-get update && apt-get install -y supervisor && rm -rf /var/lib/apt/lists/* + +WORKDIR /app + +RUN useradd -m -u 1000 user +USER user +ENV PATH="/home/user/.local/bin:$PATH" + +COPY --chown=user ./requirements.txt requirements.txt +RUN pip install --no-cache-dir --upgrade -r requirements.txt + +COPY --chown=user . /app + +CMD ["supervisord", "-c", "/app/supervisord.conf"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..103e872965f8ca22ae8b352b0f364041bdf3a62f --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +--- +title: Mind Reframe +emoji: 🦀 +colorFrom: indigo +colorTo: purple +sdk: docker +pinned: false +license: apache-2.0 +--- + +Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference diff --git a/Web/backend/.env b/Web/backend/.env new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Web/backend/__pycache__/main.cpython-313.pyc b/Web/backend/__pycache__/main.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..389f39c2b804fcd14a124488d2bb9782dccfa0dd Binary files /dev/null and b/Web/backend/__pycache__/main.cpython-313.pyc differ diff --git a/Web/backend/dataset_feedback.jsonl b/Web/backend/dataset_feedback.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..8a4894418f47dcf2272e0ced36acd5bee6a23ed9 --- /dev/null +++ b/Web/backend/dataset_feedback.jsonl @@ -0,0 +1,50 @@ +{"session_id": "06df2526-3b92-433f-bc81-fa147d4959ab", "timestamp": "2026-01-22T03:28:36.626Z", "input": {"situation": "My wife didn't look up from her phone or answer me when I came to talk to her.", "thought": "Am I not worth her time?"}, "output": {"therapy_type": "ACT", "reframe": "I’m having the thought that I’m not worth her time. I can accept this feeling and choose to connect with her when she’s ready."}, "ratings": {"belief": 4, "helpfulness": 3, "recall": 4, "learning": 3}} +{"session_id": "5f601d8b-cdd3-4bd5-a933-a37fbeac5d9b", "timestamp": "2026-01-22T05:03:31.166Z", "input": {"situation": "My wife didn't look up from her phone or answer me when I came to talk to her.", "thought": "Am I not worth her time?"}, "output": {"therapy_type": "ACT", "reframe": "I’m having the thought that I’m not worth her time. I can accept this feeling and choose to connect with her when she’s ready."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 4, "learning": 4}} +{"session_id": "f6ee1997-0394-40d1-b4f6-6014e5da4224", "timestamp": "2026-01-22T14:10:09.768Z", "input": {"situation": "My wife didn't look up from her phone or answer me when I came to talk to her.", "thought": "Am I not worth her time?"}, "output": {"therapy_type": "CBT", "reframe": "She might be preoccupied with something on her phone; it doesn't mean I'm not important to her."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 4, "learning": 4}} +{"session_id": "efaa369d-f0ff-4da9-a047-b5cba0f11fc6", "timestamp": "2026-01-22T14:29:18.149Z", "input": {"situation": "tôi bị điểm thấp hơn so với năng lực", "thought": "không được chú ý, trọng dụng \n"}, "output": {"therapy_type": "ACT", "reframe": "I'm noticing the thought that I'm not valued, and I can accept this feeling while focusing on my growth and what truly matters to me."}, "ratings": {"belief": 4, "helpfulness": 3, "recall": 4, "learning": 3}} +{"session_id": "c7527b9b-e6b9-4242-97de-521c2d239a18", "timestamp": "2026-01-26T08:58:36.761Z", "input": {"situation": "I called an old friend, but she wasn't home and didn't return my call.\n", "thought": "Maybe she doesn't want to talk to me anymore.\n"}, "output": {"therapy_type": "CBT", "reframe": "She might just be busy or away; it doesn't mean she doesn't want to talk to me."}, "ratings": {"belief": 3, "helpfulness": 3, "recall": 4, "learning": 3}} +{"session_id": "c7527b9b-e6b9-4242-97de-521c2d239a18", "timestamp": "2026-01-26T08:59:51.077Z", "input": {"situation": "I am walking down the street in a new red jeans and a stranger looked at the jeans\n", "thought": "I should have never worn these jeans and stick to blue ones\n"}, "output": {"therapy_type": "REBT", "reframe": "Wearing these jeans is my choice, and it's okay if others have different opinions. I can feel good about my style regardless of their reactions."}, "ratings": {"belief": 4, "helpfulness": 3, "recall": 3, "learning": 4}} +{"session_id": "c7527b9b-e6b9-4242-97de-521c2d239a18", "timestamp": "2026-01-26T09:01:57.083Z", "input": {"situation": "Having problems coming up with words to write essay.\n", "thought": "I will get a bad grade.\n"}, "output": {"therapy_type": "REBT", "reframe": "I can do my best on this essay, and a single grade doesn't define my worth or abilities."}, "ratings": {"belief": 3, "helpfulness": 3, "recall": 3, "learning": 3}} +{"session_id": "2503ab8d-ce18-4a02-843d-cae122866ff2", "timestamp": "2026-01-27T00:56:54.243Z", "input": {"situation": "I sent an email to my boss in the morning and haven't received a reply by 5 PM.", "thought": "He must be angry with me; I'm probably going to get fired."}, "output": {"therapy_type": "Schema Therapy", "reframe": "My boss may be busy or dealing with other priorities; I’ll follow up tomorrow if I don’t hear back."}, "ratings": {"belief": 3, "helpfulness": 3, "recall": 4, "learning": 3}} +{"session_id": "2503ab8d-ce18-4a02-843d-cae122866ff2", "timestamp": "2026-01-27T01:00:12.590Z", "input": {"situation": "I made a small typo in a presentation slide during the team meeting.", "thought": "I am so incompetent. Everyone noticed and thinks I’m an idiot."}, "output": {"therapy_type": "CFT", "reframe": "I made a small mistake, and that's okay. Everyone makes errors, and I can learn and grow from this experience."}, "ratings": {"belief": 4, "helpfulness": 3, "recall": 4, "learning": 3}} +{"session_id": "2503ab8d-ce18-4a02-843d-cae122866ff2", "timestamp": "2026-01-27T01:03:31.027Z", "input": {"situation": "My colleague got the promotion that I also applied for.", "thought": "I’ll never be successful. I’m always going to be stuck at the bottom."}, "output": {"therapy_type": "MI", "reframe": "I can learn from this experience and find new opportunities to grow. I have strengths that can lead me to success."}, "ratings": {"belief": 3, "helpfulness": 3, "recall": 4, "learning": 4}} +{"session_id": "2503ab8d-ce18-4a02-843d-cae122866ff2", "timestamp": "2026-01-27T01:32:01.576Z", "input": {"situation": "I finished my project two days early, but I feel like I could have done more.", "thought": "It doesn't count because it wasn't perfect. I’m a fraud."}, "output": {"therapy_type": "MBCT", "reframe": "I acknowledge my feelings of inadequacy, but I recognize that completing my project early is an achievement, and I am doing my best."}, "ratings": {"belief": 4, "helpfulness": 3, "recall": 3, "learning": 4}} +{"session_id": "2503ab8d-ce18-4a02-843d-cae122866ff2", "timestamp": "2026-01-27T02:17:43.127Z", "input": {"situation": "My manager gave me constructive feedback on how to improve my report.", "thought": "She thinks my work is terrible. I can’t do anything right."}, "output": {"therapy_type": "CBT", "reframe": "My manager's feedback is meant to help me improve, not to criticize my worth. I can learn and grow from this experience."}, "ratings": {"belief": 3, "helpfulness": 3, "recall": 4, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:15:34.527Z", "input": {"situation": "My manager gave me constructive feedback on how to improve my report.", "thought": "She thinks my work is terrible. I can’t do anything right."}, "output": {"therapy_type": "MBCT", "reframe": "I appreciate my manager's feedback as a chance to grow. It's okay to make mistakes; they don't define my worth or abilities."}, "ratings": {"belief": 4, "helpfulness": 3, "recall": 2, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:16:16.437Z", "input": {"situation": "A client cancelled our meeting at the last minute.", "thought": "They must hate working with me. I drove them away."}, "output": {"therapy_type": "CBT", "reframe": "They may have had a valid reason to cancel, and it doesn't reflect their feelings about me or our work together."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 3, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:17:04.356Z", "input": {"situation": "I struggled to solve a bug in the code for a few hours.", "thought": "I’m not cut out for this job. A real engineer would have fixed it instantly."}, "output": {"therapy_type": "Narrative Therapy", "reframe": "I am a dedicated problem-solver who takes the time to understand challenges, and that persistence is a strength that will help me grow as an engineer."}, "ratings": {"belief": 2, "helpfulness": 3, "recall": 4, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:18:08.382Z", "input": {"situation": "I received praise for my part of the group project.", "thought": "They are just being nice. I didn't actually do anything special."}, "output": {"therapy_type": "Schema Therapy", "reframe": "Your contributions were valuable, and it's okay to accept praise. You deserve recognition for your hard work and effort."}, "ratings": {"belief": 4, "helpfulness": 3, "recall": 4, "learning": 2}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:18:52.522Z", "input": {"situation": "I have a lot of tasks to finish by the end of the week.", "thought": "There is no way I can handle this. I am going to fail completely."}, "output": {"therapy_type": "REBT", "reframe": "I can manage my tasks by prioritizing and taking them one step at a time, and it's okay if I don't complete everything perfectly."}, "ratings": {"belief": 3, "helpfulness": 4, "recall": 2, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:19:43.466Z", "input": {"situation": "I voiced an opinion in a meeting and no one commented on it immediately.", "thought": "I should have kept my mouth shut. My ideas are stupid."}, "output": {"therapy_type": "DBT", "reframe": "I feel disappointed that my idea went unnoticed, but I can share it again later or seek feedback. My thoughts are valid, and I can improve my communication."}, "ratings": {"belief": 2, "helpfulness": 3, "recall": 4, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:21:36.579Z", "input": {"situation": "A friend read my message but didn't reply for a few hours.", "thought": "They are ignoring me. I must have annoyed them."}, "output": {"therapy_type": "CBT", "reframe": "They might be busy or distracted; it doesn't mean I've annoyed them. I'll give them time to respond."}, "ratings": {"belief": 3, "helpfulness": 4, "recall": 4, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:22:31.988Z", "input": {"situation": "I wasn't invited to a coworker's weekend gathering.", "thought": "Nobody likes me. I am an outcast."}, "output": {"therapy_type": "CBT", "reframe": "Not being invited doesn't mean I'm unlikable; there could be many reasons for it that have nothing to do with me."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 3, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:23:52.004Z", "input": {"situation": "My partner seems quiet and tired after coming home from work.", "thought": "They are losing interest in me. Our relationship is falling apart."}, "output": {"therapy_type": "SFBT", "reframe": "My partner may be tired from work, and I can support them while also nurturing our connection."}, "ratings": {"belief": 2, "helpfulness": 3, "recall": 3, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:24:41.663Z", "input": {"situation": "I waved at an acquaintance on the street, but they didn't wave back.", "thought": "They pretended not to see me because they think I'm weird."}, "output": {"therapy_type": "CBT", "reframe": "They might not have seen me or were distracted; it doesn't mean they think I'm weird."}, "ratings": {"belief": 2, "helpfulness": 4, "recall": 4, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:25:34.717Z", "input": {"situation": "I stumbled over my words while telling a joke at a party.", "thought": "I ruined the mood. Everyone thinks I'm awkward and boring."}, "output": {"therapy_type": "DBT", "reframe": "I felt embarrassed when I stumbled, but that doesn’t define me. I can learn from this and share more jokes in the future."}, "ratings": {"belief": 3, "helpfulness": 3, "recall": 3, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:27:03.965Z", "input": {"situation": "My friend had to cancel our dinner plans due to a headache.", "thought": "That’s just an excuse. They just don’t want to spend time with me."}, "output": {"therapy_type": "Narrative Therapy", "reframe": "I recognize that my friend's headache is a real issue, and it doesn't define our friendship or their desire to spend time with me."}, "ratings": {"belief": 2, "helpfulness": 2, "recall": 4, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:27:54.138Z", "input": {"situation": "I gained a little weight over the holidays.", "thought": "I am disgusting. No one will ever find me attractive again."}, "output": {"therapy_type": "REBT", "reframe": "I can accept my body as it is now and focus on healthy choices without tying my worth to my appearance."}, "ratings": {"belief": 4, "helpfulness": 3, "recall": 3, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:30:01.157Z", "input": {"situation": "I asked someone on a date and they politely declined.", "thought": "I am unlovable. I will be alone forever."}, "output": {"therapy_type": "MBCT", "reframe": "I acknowledge this feeling of unlovability, but it’s just a thought, not my truth. I am worthy of love and connection, even in this moment."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 4, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:30:40.738Z", "input": {"situation": "People were laughing at a nearby table in the restaurant.", "thought": "They are definitely laughing at me and my outfit."}, "output": {"therapy_type": "CBT", "reframe": "They might be laughing about something unrelated; I can't know their thoughts, and I feel good in my outfit."}, "ratings": {"belief": 3, "helpfulness": 4, "recall": 3, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:31:37.239Z", "input": {"situation": "My parents asked why I haven't visited lately.", "thought": "I am a terrible son/daughter. I always let everyone down."}, "output": {"therapy_type": "CBT", "reframe": "I care about my family, and while I haven't visited lately, it doesn't mean I'm a bad son/daughter. I can make time for them soon."}, "ratings": {"belief": 3, "helpfulness": 4, "recall": 4, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:32:33.113Z", "input": {"situation": "I got a B+ on an exam I studied hard for.", "thought": "If I don’t get an A, I am a total failure."}, "output": {"therapy_type": "CBT", "reframe": "Getting a B+ shows my hard work paid off, and I can still learn and improve for next time."}, "ratings": {"belief": 2, "helpfulness": 3, "recall": 3, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:33:21.554Z", "input": {"situation": "I didn't understand the lecture material as quickly as my classmate.", "thought": "I am stupid. Everyone else is smarter than me."}, "output": {"therapy_type": "MBCT", "reframe": "I notice this thought of being stupid, but I am learning at my own pace, and that is okay."}, "ratings": {"belief": 3, "helpfulness": 2, "recall": 2, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:34:05.671Z", "input": {"situation": "The professor marked a few corrections on my essay.", "thought": "This proves I can't write. I shouldn't even be in this university."}, "output": {"therapy_type": "DBT", "reframe": "I feel discouraged by the corrections, but this feedback helps me grow as a writer. I can improve and succeed in this university."}, "ratings": {"belief": 4, "helpfulness": 3, "recall": 4, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:34:43.986Z", "input": {"situation": "I have a deadline for a thesis coming up in two months.", "thought": "It’s going to be a disaster. I won’t finish in time."}, "output": {"therapy_type": "SFBT", "reframe": "I have two months to focus on my thesis, and I can take small steps each week to make steady progress."}, "ratings": {"belief": 4, "helpfulness": 3, "recall": 3, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:35:30.119Z", "input": {"situation": "I asked a question in class and the teacher asked me to clarify.", "thought": "That was a dumb question. The whole class is judging me."}, "output": {"therapy_type": "REBT", "reframe": "Asking questions is a part of learning; it's okay to seek clarification, and not everyone is judging me."}, "ratings": {"belief": 3, "helpfulness": 3, "recall": 2, "learning": 2}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:39:31.721Z", "input": {"situation": "I missed one day of studying due to illness.", "thought": "My entire study schedule is ruined. I'm going to fail the course."}, "output": {"therapy_type": "CBT", "reframe": "Missing one day of studying is not the end; I can adjust my schedule and still succeed in the course."}, "ratings": {"belief": 3, "helpfulness": 4, "recall": 4, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:40:14.523Z", "input": {"situation": "My peer review feedback was mostly positive but had one suggestion.", "thought": "They only put the positive stuff to be polite. The suggestion is the truth: my work sucks."}, "output": {"therapy_type": "REBT", "reframe": "The feedback is mostly positive, and the suggestion is an opportunity for growth; my work has strengths and areas to improve."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 3, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:41:05.754Z", "input": {"situation": "I feel nervous about the upcoming presentation.", "thought": "My anxiety shows I am weak and incapable."}, "output": {"therapy_type": "Schema Therapy", "reframe": "Feeling anxious is a normal response to challenges; it doesn't define my worth or abilities."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 4, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:41:49.471Z", "input": {"situation": "I saw my classmates discussing a topic I haven't started reviewing yet.", "thought": "I am so far behind. There is no point in even trying now."}, "output": {"therapy_type": "CFT", "reframe": "It's okay to feel behind; I can start now and take small steps. I am capable of learning at my own pace."}, "ratings": {"belief": 3, "helpfulness": 3, "recall": 3, "learning": 2}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:42:31.325Z", "input": {"situation": "I got rejected from one internship program.", "thought": "No company will ever hire me. My career is over before it started."}, "output": {"therapy_type": "MI", "reframe": "I can learn from this experience and keep trying; my journey is just beginning, and I have strengths to build on."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 4, "learning": 2}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:43:25.958Z", "input": {"situation": "The bus arrived late, making me late for an appointment.", "thought": "Why do bad things always happen to me? The universe is against me."}, "output": {"therapy_type": "CBT", "reframe": "Sometimes things go wrong, but it doesn't mean the universe is against me. I can adapt and find solutions."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 4, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:44:10.470Z", "input": {"situation": "I burned the dinner I was cooking.", "thought": "I can’t do anything right. I’m useless."}, "output": {"therapy_type": "REBT", "reframe": "I can make mistakes, and that doesn’t define my worth or abilities. I can learn and improve from this experience."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 3, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:44:52.027Z", "input": {"situation": "I dropped a glass and it shattered.", "thought": "I am such a clumsy idiot. I ruin everything I touch."}, "output": {"therapy_type": "DBT", "reframe": "I feel frustrated and clumsy right now, but accidents happen. I can learn from this and be more careful next time."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 4, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:45:30.498Z", "input": {"situation": "I woke up feeling a bit tired today.", "thought": "This day is going to be terrible. Nothing will go right."}, "output": {"therapy_type": "CBT", "reframe": "I may feel tired now, but I can still take small steps to make today better and see how it unfolds."}, "ratings": {"belief": 3, "helpfulness": 4, "recall": 4, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:46:16.439Z", "input": {"situation": "My car wouldn't start this morning.", "thought": "This is a catastrophe. Now my whole week is destroyed."}, "output": {"therapy_type": "Schema Therapy", "reframe": "This is inconvenient, but I can find solutions and adjust my plans. It's not the end of the week."}, "ratings": {"belief": 4, "helpfulness": 3, "recall": 3, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:47:02.940Z", "input": {"situation": "I tried a new hobby and wasn't good at it immediately.", "thought": "If I'm not good at it right away, I shouldn't bother. I have no talent."}, "output": {"therapy_type": "REBT", "reframe": "It's okay not to be good at something right away; I can improve with practice and enjoy the process of learning."}, "ratings": {"belief": 3, "helpfulness": 3, "recall": 3, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:47:46.582Z", "input": {"situation": "I realized I forgot to pay a utility bill on time.", "thought": "I am so irresponsible. I can't manage my own life."}, "output": {"therapy_type": "REBT", "reframe": "I made a mistake by forgetting the bill, but that doesn't define my ability to manage my life. I can learn from this."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 4, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:48:26.536Z", "input": {"situation": "It started raining when I didn't bring an umbrella.", "thought": "Just my luck. Everything always goes wrong for me."}, "output": {"therapy_type": "CBT", "reframe": "Sometimes things don't go as planned, but this is just a minor inconvenience, not a reflection of my overall luck."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 4, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:57:34.922Z", "input": {"situation": "I have a mild headache.", "thought": "What if it's a brain tumor? Something is seriously wrong with me."}, "output": {"therapy_type": "CBT", "reframe": "I have a mild headache, but it’s more likely due to stress or dehydration than something serious. I’ll take care of myself and monitor how I feel."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 3, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:58:17.883Z", "input": {"situation": "I felt awkward during a brief elevator ride with a neighbor.", "thought": "They must think I'm a social weirdo."}, "output": {"therapy_type": "CBT", "reframe": "It's normal to feel awkward sometimes; they probably didn't think much of it, just like I often don't in similar situations."}, "ratings": {"belief": 4, "helpfulness": 3, "recall": 4, "learning": 4}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:58:54.699Z", "input": {"situation": "I successfully fixed a difficult problem, but it took longer than expected.", "thought": "It shouldn't have taken that long. I'm slow and inefficient."}, "output": {"therapy_type": "CBT", "reframe": "It took longer than expected, but I successfully solved a difficult problem, which shows my persistence and problem-solving skills."}, "ratings": {"belief": 3, "helpfulness": 3, "recall": 3, "learning": 3}} +{"session_id": "7ea9d141-d906-4b4f-873b-ad587d578138", "timestamp": "2026-01-27T14:59:29.565Z", "input": {"situation": "My partner bought me a gift, but it wasn't what I wanted.", "thought": "They don't know me at all. We are completely incompatible."}, "output": {"therapy_type": "REBT", "reframe": "My partner cares about me, and while this gift isn't what I wanted, it doesn't mean we're incompatible."}, "ratings": {"belief": 4, "helpfulness": 4, "recall": 4, "learning": 4}} diff --git a/Web/backend/main.py b/Web/backend/main.py new file mode 100644 index 0000000000000000000000000000000000000000..7e4035915cd20fbd364a011da285f1c7bda3b9c6 --- /dev/null +++ b/Web/backend/main.py @@ -0,0 +1,714 @@ +# File: main.py +from fastapi import FastAPI +from fastapi.middleware.cors import CORSMiddleware +from pydantic import BaseModel +import uuid +from fastapi.staticfiles import StaticFiles +from fastapi.responses import FileResponse +import os +import httpx +from fastapi import HTTPException +from typing import Dict, Optional, Any +from datetime import datetime, timedelta +import json + +import asyncio + +app = FastAPI() + +app.add_middleware( + CORSMiddleware, + allow_origins=["*"], + allow_credentials=True, + allow_methods=["*"], + allow_headers=["*"], +) + +class SessionInit(BaseModel): + pass + +class SessionData(BaseModel): + session_id: str + situation: str + thought: str + distortions: Optional[list] = None + analysis: Optional[dict] = None + candidates: Optional[list] = None + selected_reframe: Optional[dict] = None + created_at: datetime + updated_at: datetime + +def clean_expired_sessions(): + """Remove sessions older than SESSION_EXPIRY_MINUTES""" + now = datetime.now() + expired = [ + sid for sid, data in sessions_store.items() + if (now - data['updated_at']).seconds > SESSION_EXPIRY_MINUTES * 60 + ] + for sid in expired: + del sessions_store[sid] + +def get_session(session_id: str) -> Optional[dict]: + """Get session data by ID""" + clean_expired_sessions() + return sessions_store.get(session_id) + +def update_session(session_id: str, data: dict): + """Update session data""" + if session_id in sessions_store: + sessions_store[session_id].update(data) + sessions_store[session_id]['updated_at'] = datetime.now() + else: + raise HTTPException(status_code=404, detail="Session not found") + +class DetectionRequest(BaseModel): + session_id: str + situation: str + thought: str + +class AnalyzeRequest(BaseModel): + session_id: str + situation: str + thought: str + distortions: list + +class ReframeRequest(BaseModel): + session_id: str + situation: str + thought: str + recommended_therapies: list + +class FeedbackRequest(BaseModel): + session_id: str + situation: str + thought: str + current_reframe: str + +class ImproveRequest(BaseModel): + session_id: str + situation: str + thought: str + current_reframe: str + history_response: list + feedback: str + +API_base = 'http://localhost:1812/api/v1/' + +sessions_store: Dict[str, dict] = {} + +SESSION_EXPIRY_MINUTES = 60 + +class FeedbackData(BaseModel): + session_id: str + timestamp: str + input: dict + output: dict + ratings: dict + +@app.post("/api/feedback") +async def save_feedback(data: FeedbackData): + try: + # Chuyển đổi sang dict + record = data.dict() + + # Ghi vào file dataset_feedback.jsonl + # Mode 'a' (append) để ghi nối tiếp, không ghi đè + with open("dataset_feedback.jsonl", "a", encoding="utf-8") as f: + # Ghi mỗi feedback trên 1 dòng (JSONL format) + f.write(json.dumps(record, ensure_ascii=False) + "\n") + + return {"status": "success", "message": "Feedback saved"} + except Exception as e: + print(f"Error saving file: {e}") + raise HTTPException(status_code=500, detail="Internal Server Error") + +@app.post("/api/session/init") +async def init_session(): + """Initialize a new session""" + session_id = str(uuid.uuid4()) + sessions_store[session_id] = { + 'session_id': session_id, + 'situation': None, + 'thought': None, + 'distortions': None, + 'analysis': None, + 'candidates': None, + 'selected_reframe': None, + 'created_at': datetime.now(), + 'updated_at': datetime.now() + } + return {"session_id": session_id} + +def _check_has_distortion(text: str) -> bool: + """Kiểm tra xem có distortion hay không""" + if not text or len(text.strip()) < 10: + return False + + # if '[' in text and ']' in text: + # return True + + positive_indicators = [ + "all-or-nothing", "mind reading", "catastrophizing", + "overgeneralization", "mental filter", "labeling", + "emotional reasoning", "should statements", + "jumping to conclusions", "fortune telling", + "personalization", "disqualifying" + ] + + text_lower = text.lower() + if any(indicator in text_lower for indicator in positive_indicators): + return True + + negative_indicators = [ + "không có distortion", + "không phát hiện distortion", + "no distortion", + "không tìm thấy distortion" + ] + + return not any(indicator in text_lower for indicator in negative_indicators) + + +def _extract_distortion_types(text: str) -> list: + """ + Extract các loại distortion từ response + Hỗ trợ format: [Type1, Type2, Type3] hoặc text tự do + """ + import re + + bracket_match = re.search(r'\[(.*?)\]', text) + if bracket_match: + content = bracket_match.group(1) + distortions = [d.strip() for d in content.split(',')] + normalized = [] + for d in distortions: + d_normalized = d.strip().title() + if 'all-or-nothing' in d.lower(): + d_normalized = 'All-or-Nothing Thinking' + elif 'mind reading' in d.lower(): + d_normalized = 'Mind Reading' + elif 'catastrophizing' in d.lower(): + d_normalized = 'Catastrophizing' + elif 'overgeneralization' in d.lower(): + d_normalized = 'Overgeneralization' + elif 'mental filter' in d.lower(): + d_normalized = 'Mental Filter' + elif 'jumping to conclusions' in d.lower(): + d_normalized = 'Jumping to Conclusions' + elif 'fortune telling' in d.lower(): + d_normalized = 'Fortune Telling' + elif 'emotional reasoning' in d.lower(): + d_normalized = 'Emotional Reasoning' + elif 'should statements' in d.lower(): + d_normalized = 'Should Statements' + elif 'labeling' in d.lower(): + d_normalized = 'Labeling' + elif 'personalization' in d.lower(): + d_normalized = 'Personalization' + elif 'disqualifying the positive' in d.lower(): + d_normalized = 'Disqualifying the Positive' + elif 'magnification' in d.lower(): + d_normalized = 'Magnification' + elif 'minimization' in d.lower(): + d_normalized = 'Minimization' + elif 'blame' in d.lower(): + d_normalized = 'Blame' + + normalized.append(d_normalized) + + return normalized if normalized else ["Unknown Distortion"] + + common_distortions = { + "all-or-nothing": "All-or-Nothing Thinking", + "overgeneralization": "Overgeneralization", + "mental filter": "Mental Filter", + "disqualifying the positive": "Disqualifying the Positive", + "jumping to conclusions": "Jumping to Conclusions", + "mind reading": "Mind Reading", + "fortune telling": "Fortune Telling", + "magnification": "Magnification", + "catastrophizing": "Catastrophizing", + "minimization": "Minimization", + "emotional reasoning": "Emotional Reasoning", + "should statements": "Should Statements", + "labeling": "Labeling", + "personalization": "Personalization", + "blame": "Blame" + } + + found_distortions = [] + text_lower = text.lower() + + for key, distortion_name in common_distortions.items(): + if key in text_lower: + found_distortions.append(distortion_name) + + seen = set() + unique_distortions = [] + for d in found_distortions: + if d not in seen: + seen.add(d) + unique_distortions.append(d) + + return unique_distortions if unique_distortions else ["Unknown Distortion"] + + +def _extract_explanation(text: str) -> str: + """ + Extract phần giải thích từ response + Bỏ qua phần danh sách distortions trong [] + """ + import re + + text_cleaned = re.sub(r'^\s*\[.*?\]\s*', '', text).strip() + + if text_cleaned: + explanation = text_cleaned.strip() + + prefixes_to_remove = [ + "explanation:", + "giải thích:", + "phân tích:" + # "the speaker" + ] + + explanation_lower = explanation.lower() + for prefix in prefixes_to_remove: + if explanation_lower.startswith(prefix): + explanation = explanation[len(prefix):].strip() + if explanation: + explanation = explanation[0].upper() + explanation[1:] + break + + return explanation + + return text.strip() + +@app.post("/api/detect") +async def detect_distortion(request: DetectionRequest): + try: + update_session(request.session_id, { + 'situation': request.situation, + 'thought': request.thought + }) + + async with httpx.AsyncClient(timeout=30.0) as client: + dot_analysis = await client.post( + f"{API_base}prompts/templates/execute", + json={ + "provider": "groq", + "template_name": "dot.analysis", + "model": "openai/gpt-oss-20b", + "variables": { + "situation": request.situation, + "thought": request.thought + } + }, + headers={ + "accept": "application/json", + "Content-Type": "application/json" + } + ) + + dot_analysis.raise_for_status() + result_analysis = dot_analysis.json() + analysis_response = result_analysis.get("result", "") or result_analysis.get("content", "") # Fix: đổi result thành result_analysis + + # Bước 2: Gọi dot.detection với kết quả từ dot.analysis + dot_detection = await client.post( + f"{API_base}prompts/templates/execute", + json={ + "provider": "groq", + "template_name": "dot.detection", + "model": "openai/gpt-oss-20b", + "variables": { + "situation": request.situation, + "thought": request.thought, + "dot_analysis": analysis_response + } + }, + headers={ + "accept": "application/json", + "Content-Type": "application/json" + } + ) + + dot_detection.raise_for_status() + result_detection = dot_detection.json() # Fix: đổi tên biến để rõ ràng + + ai_response = result_detection.get("result", "") or result_detection.get("content", "") # Fix: dùng result_detection + + has_distortion = _check_has_distortion(ai_response) + distortion_types = _extract_distortion_types(ai_response) + explanation = _extract_explanation(ai_response) + + update_session(request.session_id, { + 'distortions': distortion_types if distortion_types else [] + }) + + return { + "session_id": request.session_id, + "has_distortion": has_distortion, + "distortion_types": distortion_types, + "explanation": explanation, + "raw_response": ai_response + } + + except httpx.HTTPError as e: + raise HTTPException( + status_code=500, + detail=f"Lỗi khi gọi API phân tích: {str(e)}" + ) + except Exception as e: + raise HTTPException( + status_code=500, + detail=f"Lỗi không xác định: {str(e)}" + ) + +def _parse_json_response(text: str) -> dict: + """Parse JSON từ AI response, xử lý markdown và whitespace""" + import json + import re + + try: + # Clean text + text = text.strip() + + # Remove markdown code blocks + if text.startswith("```json"): + text = text[7:] + elif text.startswith("```"): + text = text[3:] + + if text.endswith("```"): + text = text[:-3] + + text = text.strip() + + # Parse JSON + return json.loads(text) + + except json.JSONDecodeError as e: + # Fallback: try to extract JSON from text + json_match = re.search(r'\{.*\}', text, re.DOTALL) + if json_match: + try: + return json.loads(json_match.group()) + except: + pass + + raise ValueError(f"Không thể parse JSON response: {e}\nText: {text[:200]}") + +@app.post("/api/analyze") +async def analyze_thought(request: AnalyzeRequest): + try: + async with httpx.AsyncClient(timeout=30.0) as client: + thera_rcm = await client.post( + f"{API_base}prompts/templates/execute", + json={ + "provider": "groq", + "template_name": "dot.thera_rcm", + "model": "openai/gpt-oss-20b", + "variables": { + "situation": request.situation, + "thought": request.thought, + "distortions_type": request.distortions + } + }, + headers={ + "accept": "application/json", + "Content-Type": "application/json" + } + ) + thera_rcm.raise_for_status() + result = thera_rcm.json() + print(request.situation) + print(request.thought) + print(request.distortions) + + ai_text = result.get("result", "") or result.get("content", "") + parsed_result = _parse_json_response(ai_text) + + # Validate và add defaults nếu thiếu fields + if "emotional_impact" not in parsed_result: + parsed_result["emotional_impact"] = "Tác động cảm xúc đáng kể" + + if "underlying_beliefs" not in parsed_result or not parsed_result["underlying_beliefs"]: + parsed_result["underlying_beliefs"] = ["Niềm tin cốt lõi cần được khám phá thêm"] + + if "triggers" not in parsed_result or not parsed_result["triggers"]: + parsed_result["triggers"] = ["Các tình huống tương tự"] + + if "recommended_therapies" not in parsed_result or not parsed_result["recommended_therapies"]: + # Default therapies based on common distortions + parsed_result["recommended_therapies"] = ["CBT", "ACT"] + parsed_result["session_id"] = request.session_id + return parsed_result + + except json.JSONDecodeError as e: + # Fallback response nếu parse JSON thất bại + return { + "session_id": request.session_id, + "emotional_impact": "Lo âu và căng thẳng đáng kể do các suy nghĩ tiêu cực", + "underlying_beliefs": [ + "Tôi cần được chấp nhận bởi người khác", + "Tôi phải tránh thất bại bằng mọi giá", + "Nếu có vấn đề xảy ra, đó là lỗi của tôi" + ], + "triggers": [ + "Tình huống liên quan đến mối quan hệ", + "Áp lực và kỳ vọng", + "Sự không chắc chắn" + ], + "recommended_therapies": ["CBT", "ACT", "DBT"] + } + + except httpx.HTTPError as e: + raise HTTPException( + status_code=500, + detail=f"Lỗi khi gọi API phân tích: {str(e)}" + ) + except Exception as e: + raise HTTPException( + status_code=500, + detail=f"Lỗi không xác định: {str(e)}" + ) + +# @app.post("/api/reframe") +# async def generate_reframe(request: ReframeRequest): +# reframe_candidates = [] +# for therapy in request.recommended_therapies: +# async with httpx.AsyncClient(timeout=30.0) as client: +# response = await client.post( +# f"{API_base}prompts/templates/execute", +# json={ +# "provider": "groq", +# "template_name": f"reframe.{therapy.lower()}", +# "model": "openai/gpt-oss-20b", +# "variables": { +# "situation": request.situation, +# "thought": request.thought, +# } +# }, +# headers={ +# "accept": "application/json", +# "Content-Type": "application/json" +# } +# ) +# response.raise_for_status() +# result = response.json() + +# reframe = result.get("reframing response", "") +# # parsed_result = _parse_json_response(ai_text) +# reframe_candidates.append({ +# "therapy": f"{therapy}", +# "reframe": f"{reframe}", +# "rationale": "demo", +# "evaluation": {"empathy": 5, "logic": 4, "helpfulness": 5} +# }) +# return reframe_candidates + +@app.post("/api/reframe") +async def generate_reframe(request: ReframeRequest): + async def fetch_reframe(therapy: str) -> Dict[str, Any]: + """Fetch reframe for a single therapy type""" + async with httpx.AsyncClient(timeout=30.0) as client: + response = await client.post( + f"{API_base}prompts/templates/execute", + json={ + "provider": "groq", + "template_name": f"reframe.{therapy.lower()}", + "model": "openai/gpt-oss-20b", + "variables": { + "situation": request.situation, + "thought": request.thought, + } + }, + headers={ + "accept": "application/json", + "Content-Type": "application/json" + } + ) + response.raise_for_status() + result = response.json() + + # Parse JSON string trong trường 'content' + import json + content_str = result.get("content", "{}") + content_json = json.loads(content_str) + + # Thử cả 2 key có thể có + reframe = content_json.get("reframing response") or content_json.get("reframing_response", "") + wtw = content_json.get("why_this_works") or content_json.get("why this works", "") + + feedback = await client.post( + f"{API_base}prompts/templates/execute", + json={ + "provider": "groq", + "template_name": f"dot.thera_supervisor", + "model": "openai/gpt-oss-20b", + "variables": { + "situation": request.situation, + "thought": request.thought, + "reframe_response": reframe + } + }, + headers={ + "accept": "application/json", + "Content-Type": "application/json" + } + ) + feedback.raise_for_status() + feedback = feedback.json() + print(feedback) + feedback_str = feedback.get("content", "{}") + feedback_json = json.loads(feedback_str) + return { + "therapy": therapy, + "reframe": reframe, + "rationale": wtw, + "evaluation": feedback_json + } + + reframe_candidates = await asyncio.gather( + *[fetch_reframe(therapy) for therapy in request.recommended_therapies], + return_exceptions=True + ) + successful_results = [ + result for result in reframe_candidates + if not isinstance(result, Exception) + ] + return { + "session_id": request.session_id, + "candidates": successful_results + } + +@app.post("/api/instruction_feedback") +async def generate_instruction_feedback(request: FeedbackRequest): + try: + async with httpx.AsyncClient(timeout=30.0) as client: + ai_feedback = await client.post( + f"{API_base}prompts/templates/execute", + json={ + "provider": "groq", + "template_name": "reframe.thera_supervisor_full", + "model": "openai/gpt-oss-20b", + "variables": { + "situation": request.situation, + "thought": request.thought, + "reframe_response": request.current_reframe + } + }, + headers={ + "accept": "application/json", + "Content-Type": "application/json" + } + ) + + ai_feedback.raise_for_status() + ai_feedback = ai_feedback.json() + ai_feedback = ai_feedback.get("result", "") or ai_feedback.get("content", "") + + + return { + "session_id": request.session_id, + "ai_feedback": ai_feedback, + } + + except httpx.HTTPError as e: + raise HTTPException( + status_code=500, + detail=f"Lỗi khi gọi API phân tích: {str(e)}" + ) + except Exception as e: + raise HTTPException( + status_code=500, + detail=f"Lỗi không xác định: {str(e)}" + ) + +@app.post("/api/improve") +async def generate_improve_reframe(request: ImproveRequest): + try: + async with httpx.AsyncClient(timeout=30.0) as client: + response = await client.post( + f"{API_base}prompts/templates/execute", + json={ + "provider": "groq", + "template_name": "reframe.cbtwfeedback", + "model": "openai/gpt-oss-20b", + "variables": { + "situation": request.situation, + "thought": request.thought, + "history_response": request.history_response, + "old_response": request.current_reframe, + "feedback": request.feedback + } + }, + headers={ + "accept": "application/json", + "Content-Type": "application/json" + } + ) + + response.raise_for_status() + result = response.json() + import json + content_str = result.get("content", "{}") + content_json = json.loads(content_str) + + reframe = content_json.get("reframing response") or content_json.get("reframing_response", "") + + ai_feedback = await client.post( + f"{API_base}prompts/templates/execute", + json={ + "provider": "groq", + "template_name": "reframe.thera_supervisor_full", + "model": "openai/gpt-oss-20b", + "variables": { + "situation": request.situation, + "thought": request.thought, + "reframe_response": reframe + } + }, + headers={ + "accept": "application/json", + "Content-Type": "application/json" + } + ) + + ai_feedback.raise_for_status() + ai_feedback = ai_feedback.json() + ai_feedback = ai_feedback.get("result", "") or ai_feedback.get("content", "") + + + return { + "session_id": request.session_id, + "new_reframe": reframe, + "ai_feedback": ai_feedback + } + + except httpx.HTTPError as e: + raise HTTPException( + status_code=500, + detail=f"Lỗi khi gọi API phân tích: {str(e)}" + ) + except Exception as e: + raise HTTPException( + status_code=500, + detail=f"Lỗi không xác định: {str(e)}" + ) + +@app.post("/api/save") +async def save_selection(data: dict): + print(f"User saved reframe: {data}") + return {"status": "success"} + + +app.mount("/assets", StaticFiles(directory="../mind-reframe/dist/assets"), name="assets") + +@app.get("/{full_path:path}") +async def serve_react_app(full_path: str): + if full_path.startswith("api/"): + return {"error": "Not Found"} + + return FileResponse("../mind-reframe/dist/index.html") \ No newline at end of file diff --git a/Web/mind-reframe/.gitignore b/Web/mind-reframe/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..a547bf36d8d11a4f89c59c144f24795749086dd1 --- /dev/null +++ b/Web/mind-reframe/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/Web/mind-reframe/README.md b/Web/mind-reframe/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d2e77611fd3d959fee0487c41bd27b318be32b04 --- /dev/null +++ b/Web/mind-reframe/README.md @@ -0,0 +1,73 @@ +# React + TypeScript + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh + +## React Compiler + +The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules: + +```js +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + // Other configs... + + // Remove tseslint.configs.recommended and replace with this + tseslint.configs.recommendedTypeChecked, + // Alternatively, use this for stricter rules + tseslint.configs.strictTypeChecked, + // Optionally, add this for stylistic rules + tseslint.configs.stylisticTypeChecked, + + // Other configs... + ], + languageOptions: { + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + // other options... + }, + }, +]) +``` + +You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules: + +```js +// eslint.config.js +import reactX from 'eslint-plugin-react-x' +import reactDom from 'eslint-plugin-react-dom' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + // Other configs... + // Enable lint rules for React + reactX.configs['recommended-typescript'], + // Enable lint rules for React DOM + reactDom.configs.recommended, + ], + languageOptions: { + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + // other options... + }, + }, +]) +``` diff --git a/Web/mind-reframe/dist/assets/index-Bpbr8g8G.js b/Web/mind-reframe/dist/assets/index-Bpbr8g8G.js new file mode 100644 index 0000000000000000000000000000000000000000..09a0a07cb07b5e327db64acbebcff0d2ccffd052 --- /dev/null +++ b/Web/mind-reframe/dist/assets/index-Bpbr8g8G.js @@ -0,0 +1,10 @@ +Object.create,Object.defineProperty,Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.prototype.hasOwnProperty;var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var ee=Array.isArray;function S(){}var C={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function ne(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function re(e,t){return ne(e.type,t,e.props)}function w(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ie(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ae=/\/+/g;function oe(e,t){return typeof e==`object`&&e&&e.key!=null?ie(``+e.key):t.toString(36)}function se(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(S,S):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ce(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ce(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+oe(e,0):a,ee(o)?(i=``,c!=null&&(i=c.replace(ae,`$&/`)+`/`),ce(o,r,i,``,function(e){return e})):o!=null&&(w(o)&&(o=re(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ae,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(ee(e))for(var u=0;u{n.exports=t()})),r=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,w());else{var t=n(l);t!==null&&oe(x,t.startTime-e)}}var ee=!1,S=-1,C=5,te=-1;function ne(){return g?!0:!(e.unstable_now()-tet&&ne());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&oe(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?w():ee=!1}}}var w;if(typeof y==`function`)w=function(){y(re)};else if(typeof MessageChannel<`u`){var ie=new MessageChannel,ae=ie.port2;ie.port1.onmessage=re,w=function(){ae.postMessage(null)}}else w=function(){_(re,0)};function oe(t,n){S=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(S),S=-1):h=!0,oe(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,w()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(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(e){console.error(e)}}n(),t.exports=a()})),s=e((e=>{var t=i(),r=n(),a=o();function s(e){var t=`https://react.dev/errors/`+e;if(1pe||(e.current=fe[pe],fe[pe]=null,pe--)}function k(e,t){pe++,fe[pe]=e.current,e.current=t}var me=D(null),he=D(null),ge=D(null),_e=D(null);function ve(e,t){switch(k(ge,t),k(he,e),k(me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}O(me),k(me,e)}function ye(){O(me),O(he),O(ge)}function be(e){e.memoizedState!==null&&k(_e,e);var t=me.current,n=Hd(t,e.type);t!==n&&(k(he,e),k(me,n))}function xe(e){he.current===e&&(O(me),O(he)),_e.current===e&&(O(_e),Qf._currentValue=de)}var Se,Ce;function we(e){if(Se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||``,Ce=-1)`:-1i||c[r]!==l[i]){var u=` +`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?we(n):``}function De(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we(`Lazy`);case 13:return e.child!==t&&t!==null?we(`Suspense Fallback`):we(`Suspense`);case 19:return we(`SuspenseList`);case 0:case 15:return Ee(e.type,!1);case 11:return Ee(e.type.render,!1);case 1:return Ee(e.type,!0);case 31:return we(`Activity`);default:return``}}function Oe(e){try{var t=``,n=null;do t+=De(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +Error generating stack: `+e.message+` +`+e.stack}}var ke=Object.prototype.hasOwnProperty,Ae=t.unstable_scheduleCallback,je=t.unstable_cancelCallback,Me=t.unstable_shouldYield,Ne=t.unstable_requestPaint,Pe=t.unstable_now,Fe=t.unstable_getCurrentPriorityLevel,Ie=t.unstable_ImmediatePriority,Le=t.unstable_UserBlockingPriority,Re=t.unstable_NormalPriority,ze=t.unstable_LowPriority,Be=t.unstable_IdlePriority,Ve=t.log,He=t.unstable_setDisableYieldValue,Ue=null,We=null;function Ge(e){if(typeof Ve==`function`&&He(e),We&&typeof We.setStrictMode==`function`)try{We.setStrictMode(Ue,e)}catch{}}var Ke=Math.clz32?Math.clz32:Ye,qe=Math.log,Je=Math.LN2;function Ye(e){return e>>>=0,e===0?32:31-(qe(e)/Je|0)|0}var Xe=256,Ze=262144,Qe=4194304;function $e(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:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 et(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=$e(n))):i=$e(o):i=$e(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=$e(n))):i=$e(o)):i=$e(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function tt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 rt(){var e=Qe;return Qe<<=1,!(Qe&62914560)&&(Qe=4194304),e}function it(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function at(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ot(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),yn=!1;if(vn)try{var bn={};Object.defineProperty(bn,`passive`,{get:function(){yn=!0}}),window.addEventListener(`test`,bn,bn),window.removeEventListener(`test`,bn,bn)}catch{yn=!1}var xn=null,Sn=null,Cn=null;function wn(){if(Cn)return Cn;var e,t=Sn,n=t.length,r,i=`value`in xn?xn.value:xn.textContent,a=i.length;for(e=0;e=nr),ar=` `,or=!1;function sr(e,t){switch(e){case`keyup`:return er.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function cr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var lr=!1;function ur(e,t){switch(e){case`compositionend`:return cr(t);case`keypress`:return t.which===32?(or=!0,ar):null;case`textInput`:return e=t.data,e===ar&&or?null:e;default:return null}}function dr(e,t){if(lr)return e===`compositionend`||!tr&&sr(e,t)?(e=wn(),Cn=Sn=xn=null,lr=!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)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Nr(n)}}function Fr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ir(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Gt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gt(e.document)}return t}function Lr(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`)}var Rr=vn&&`documentMode`in document&&11>=document.documentMode,zr=null,Br=null,Vr=null,Hr=!1;function Ur(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hr||zr==null||zr!==Gt(r)||(r=zr,`selectionStart`in r&&Lr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vr&&Mr(Vr,r)||(Vr=r,r=Ed(Br,`onSelect`),0>=o,i-=o,Fi=1<<32-Ke(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),j&&Li(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),j&&Li(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return j&&Li(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),j&&Li(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===y&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case _:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===y){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===w&&Fa(l)===r.type){n(e,r.sibling),c=i(r,a.props),Ha(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===y?(c=Si(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=xi(a.type,a.key,a.props,null,e.mode,c),Ha(c,a),c.return=e,e=c)}return o(e);case v:a:{for(l=a.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=Ti(a,e.mode,c),c.return=e,e=c}return o(e);case w:return a=Fa(a),b(e,r,a,c)}if(ue(a))return h(e,r,a,c);if(se(a)){if(l=se(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Va(a),c);if(a.$$typeof===S)return b(e,r,ua(e,a),c);Ua(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=Ci(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{Ba=0;var i=b(e,t,n,r);return za=null,i}catch(t){if(t===ka||t===ja)throw t;var a=_i(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ga=Wa(!0),Ka=Wa(!1),qa=!1;function Ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ya(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 Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=mi(e),pi(e,null,n),t}return ui(e,r,t,n),mi(e)}function Qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}function $a(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var eo=!1;function to(){if(eo){var e=ba;if(e!==null)throw e}}function no(e,t,n,r){eo=!1;var i=e.updateQueue;qa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(q&f)===f:(r&f)===f){f!==0&&f===ya&&(eo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:qa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function ro(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function io(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=T.T,s={};T.T=s,zs(e,!1,t,n);try{var c=i(),l=T.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Rs(e,t,Ca(c,r),pu(e)):Rs(e,t,r,pu(e))}catch(n){Rs(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{E.p=a,o!==null&&s.types!==null&&(o.types=s.types),T.T=o}}function Os(){}function ks(e,t,n,r){if(e.tag!==5)throw Error(s(476));var i=As(e).queue;Ds(e,i,t,de,n===null?Os:function(){return js(e),n(r)})}function As(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function js(e){var t=As(e);t.next===null&&(t=e.alternate.memoizedState),Rs(e,t.next.queue,{},pu())}function Ms(){return la(Qf)}function Ns(){return R().memoizedState}function Ps(){return R().memoizedState}function Fs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Xa(n);var r=Za(t,e,n);r!==null&&(hu(r,t,n),Qa(r,t,n)),t={cache:ha()},e.payload=t;return}t=t.return}}function Is(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bs(e)?Vs(t,n):(n=di(e,t,n,r),n!==null&&(hu(n,e,r),Hs(n,t,r)))}function Ls(e,t,n){Rs(e,t,n,pu())}function Rs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Vs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,jr(s,o))return ui(e,t,i,0),G===null&&li(),!1}catch{}if(n=di(e,t,i,r),n!==null)return hu(n,e,r),Hs(n,t,r),!0}return!1}function zs(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(s(479))}else t=di(e,n,r,2),t!==null&&hu(t,e,2)}function Bs(e){var t=e.alternate;return e===P||t!==null&&t===P}function Vs(e,t){xo=bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}var Us={readContext:la,use:Ro,useCallback:L,useContext:L,useEffect:L,useImperativeHandle:L,useLayoutEffect:L,useInsertionEffect:L,useMemo:L,useReducer:L,useRef:L,useState:L,useDebugValue:L,useDeferredValue:L,useTransition:L,useSyncExternalStore:L,useId:L,useHostTransitionStatus:L,useFormState:L,useActionState:L,useOptimistic:L,useMemoCache:L,useCacheRefresh:L};Us.useEffectEvent=L;var Ws={readContext:la,use:Ro,useCallback:function(e,t){return Fo().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:ms,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),fs(4194308,4,bs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fs(4194308,4,e,t)},useInsertionEffect:function(e,t){fs(4,2,e,t)},useMemo:function(e,t){var n=Fo();t=t===void 0?null:t;var r=e();if(So){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Fo();if(n!==void 0){var i=n(t);if(So){Ge(!0);try{n(t)}finally{Ge(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Is.bind(null,P,e),[r.memoizedState,e]},useRef:function(e){var t=Fo();return e={current:e},t.memoizedState=e},useState:function(e){e=Xo(e);var t=e.queue,n=Ls.bind(null,P,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ss,useDeferredValue:function(e,t){return Ts(Fo(),e,t)},useTransition:function(){var e=Xo(!1);return e=Ds.bind(null,P,e.queue,!0,!1),Fo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=P,i=Fo();if(j){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),G===null)throw Error(s(349));q&127||Go(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ms(qo.bind(null,r,a,e),[e]),r.flags|=2048,us(9,{destroy:void 0},Ko.bind(null,r,a,n,t),null),n},useId:function(){var e=Fo(),t=G.identifierPrefix;if(j){var n=Ii,r=Fi;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Co++,0<\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[ht]=t,a[gt]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Pd(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Lc(t)}}return B(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=ge.current,Yi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Hi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Ki(t,!0)}else e=Bd(e).createTextNode(r),e[ht]=t,t.stateNode=e}return B(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Yi(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[ht]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;B(t),e=!1}else n=Zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(_o(t),t):(_o(t),null);if(t.flags&128)throw Error(s(558))}return B(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Yi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[ht]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;B(t),i=!1}else i=Zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(_o(t),t):(_o(t),null)}return _o(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bc(t,t.updateQueue),B(t),null);case 4:return ye(),e===null&&Sd(t.stateNode.containerInfo),B(t),null;case 10:return ra(t.type),B(t),null;case 19:if(O(N),r=t.memoizedState,r===null)return B(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Vc(r,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=vo(e),a!==null){for(t.flags|=128,Vc(r,!1),e=a.updateQueue,t.updateQueue=e,Bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)bi(n,e),n=n.sibling;return k(N,N.current&1|2),j&&Li(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Pe()>nu&&(t.flags|=128,i=!0,Vc(r,!1),t.lanes=4194304)}else{if(!i)if(e=vo(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Bc(t,e),Vc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!j)return B(t),null}else 2*Pe()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,Vc(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(B(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Pe(),e.sibling=null,n=N.current,k(N,i?n&1|2:n&1),j&&Li(t,r.treeForkCount),e);case 22:case 23:return _o(t),lo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(B(t),t.subtreeFlags&6&&(t.flags|=8192)):B(t),n=t.updateQueue,n!==null&&Bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&O(Ta),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ra(M),B(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Uc(e,t){switch(Bi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ra(M),ye(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(_o(t),t.alternate===null)throw Error(s(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(_o(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(N),null;case 4:return ye(),null;case 10:return ra(t.type),null;case 22:case 23:return _o(t),lo(),e!==null&&O(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ra(M),null;case 25:return null;default:return null}}function Wc(e,t){switch(Bi(t),t.tag){case 3:ra(M),ye();break;case 26:case 27:case 5:xe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&_o(t);break;case 13:_o(t);break;case 19:O(N);break;case 10:ra(t.type);break;case 22:case 23:_o(t),lo(),e!==null&&O(Ta);break;case 24:ra(M)}}function Gc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Kc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function qc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{io(t,n)}catch(t){Z(e,e.return,t)}}}function Jc(e,t,n){n.props=Zs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Yc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function Xc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Zc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Qc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[gt]=t}catch(t){Z(e,e.return,t)}}function $c(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function el(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||$c(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ln));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[ht]=e,t[gt]=n}catch(t){Z(e,e.return,t)}}var il=!1,V=!1,al=!1,ol=typeof WeakSet==`function`?WeakSet:Set,H=null;function sl(e,t){if(e=e.containerInfo,Rd=sp,e=Ir(e),Lr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=o),p===a&&++d===r&&(l=o),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,H=t;H!==null;)if(t=H,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,H=e;else for(;H!==null;){switch(t=H,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Pd(a,r,n),a[ht]=e,Ot(a),r=a;break a;case`link`:var o=Vf(`link`,`href`,i).get(r+(n.href||``));if(o){for(var c=0;cg&&(o=g,g=h,h=o);var _=Pr(s,h),v=Pr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,T.T=null,n=lu,lu=null;var a=au,o=su;if(X=0,ou=au=null,su=0,W&6)throw Error(s(331));var c=W;if(W|=4,Il(a.current),Ol(a,a.current,o,n),W=c,id(0,!1),We&&typeof We.onPostCommitFiberRoot==`function`)try{We.onPostCommitFiberRoot(Ue,a)}catch{}return!0}finally{E.p=i,T.T=r,Vu(e,t)}}function Wu(e,t,n){t=Di(n,t),t=rc(e.stateNode,t,2),e=Za(e,t,2),e!==null&&(at(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=Di(n,e),n=ic(2),r=Za(t,n,2),r!==null&&(ac(n,r,t,e),at(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Wl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,G===e&&(q&n)===n&&(Y===4||Y===3&&(q&62914560)===q&&300>Pe()-eu?!(W&2)&&Su(e,0):Jl|=n,Xl===q&&(Xl=0)),rd(e)}function qu(e,t){t===0&&(t=rt()),e=fi(e,t),e!==null&&(at(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return Ae(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ke(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=q,a=et(r,r===G?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||tt(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=Pe(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}X!==0&&X!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=qt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+qt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+qt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+qt(n.imageSizes)+`"]`)):i+=`[href="`+qt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+qt(r)+`"][href="`+qt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),Ot(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=Dt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);Ot(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=Dt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Ot(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=Dt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Ot(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=ge.current)?gf(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=Dt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var a=Dt(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(jf(e)))&&!a._p&&(o.instance=a,o.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),a||Nf(i,e,n,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=Dt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Af(e){return`href="`+qt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),Ot(t),e.head.appendChild(t))}function Pf(e){return`[src="`+qt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+qt(n.href)+`"]`);if(r)return t.instance=r,Ot(r),r;var i=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ot(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var a=e.querySelector(jf(i));if(a)return t.state.loading|=4,t.instance=a,Ot(a),a;r=Mf(n),(i=mf.get(i))&&Rf(r,i),a=(e.ownerDocument||e).createElement(`link`),Ot(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),t.state.loading|=4,Lf(a,n.precedence,e),t.instance=a;case`script`:return a=Pf(n.src),(i=e.querySelector(Ff(a)))?(t.instance=i,Ot(i),i):(r=n,(i=mf.get(a))&&(r=h({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Ot(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Uf(e,t,n){if(n===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 Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ot(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),Ot(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=s()}))(),l=n(),u=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),d=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),f=e=>{let t=d(e);return t.charAt(0).toUpperCase()+t.slice(1)},p=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),m=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},h={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`},g=(0,l.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,l.createElement)(`svg`,{ref:c,...h,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:p(`lucide`,i),...!a&&!m(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,l.createElement)(e,t)),...Array.isArray(a)?a:[a]])),_=(e,t)=>{let n=(0,l.forwardRef)(({className:n,...r},i)=>(0,l.createElement)(g,{ref:i,iconNode:t,className:p(`lucide-${u(f(e))}`,`lucide-${e}`,n),...r}));return n.displayName=f(e),n},v=_(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),y=_(`award`,[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]),b=_(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),x=_(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),ee=_(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),S=_(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),C=_(`clock`,[[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),te=_(`heart`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]),ne=_(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),re=_(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),w=_(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),ie=_(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),ae=_(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),oe=_(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),se=_(`thumbs-up`,[[`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`,key:`emmmcr`}],[`path`,{d:`M7 10v12`,key:`1qc93n`}]]),ce=_(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),le=_(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),ue=_(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),T=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),E=e(((e,t)=>{t.exports=T()}))(),de=`/api`;(0,c.createRoot)(document.getElementById(`root`)).render((0,E.jsx)(l.StrictMode,{children:(0,E.jsx)(()=>{let[e,t]=(0,l.useState)(`home`),[n,r]=(0,l.useState)(!1),[i,a]=(0,l.useState)(1),[o,s]=(0,l.useState)({situation:``,thought:``}),[c,u]=(0,l.useState)({belief:null,helpfulness:null,recall:null,learning:null}),[d,f]=(0,l.useState)(!1),p=[{value:4,label:`Strongly Agree`},{value:3,label:`Somewhat Agree`},{value:2,label:`Somewhat Disagree`},{value:1,label:`Strongly Disagree`}],m=(e,t)=>{u(n=>({...n,[e]:t}))},[h,g]=(0,l.useState)(null),[_,T]=(0,l.useState)(null),[fe,pe]=(0,l.useState)(null),[D,O]=(0,l.useState)([]),[k,me]=(0,l.useState)(null),[he,ge]=(0,l.useState)(!1),[_e,ve]=(0,l.useState)(null);(0,l.useEffect)(()=>{(async()=>{try{g((await(await fetch(`${de}/session/init`,{method:`POST`,headers:{"Content-Type":`application/json`}})).json()).session_id)}catch(e){console.error(`Session init failed:`,e),g(`demo-session-`+Date.now())}})()},[]);let ye=async()=>{ge(!0),ve(null);try{let e=await fetch(`${de}/detect`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought})});if(!e.ok)throw Error(`Detection failed`);T(await e.json()),a(2)}catch(e){ve(`Failed to detect distortions. Please try again.`),console.error(e)}ge(!1)},be=async()=>{if(_){ge(!0),ve(null);try{let e=await fetch(`${de}/analyze`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,distortions:_.distortion_types})});if(!e.ok)throw Error(`Analysis failed`);pe(await e.json()),a(3)}catch(e){ve(`Failed to analyze thought. Please try again.`),console.error(e)}ge(!1)}},[xe,Se]=(0,l.useState)([]),[Ce,we]=(0,l.useState)(0),[Te,Ee]=(0,l.useState)([`CBT`]),[De,Oe]=(0,l.useState)(null),[ke,Ae]=(0,l.useState)(null),[je,Me]=(0,l.useState)(!1),[Ne,Pe]=(0,l.useState)(0),[Fe,Ie]=(0,l.useState)(!1);(0,l.useEffect)(()=>{fe&&fe.recommended_therapies&&Ee([`CBT`])},[fe]);let Le=()=>{s({...o,situation:`I sent a message to my friend 3 hours ago and saw they were online, but they haven't replied yet.`,thought:`They are ignoring me because they find me annoying. I must have said something wrong and now they hate me.`}),Me(!1)};(0,l.useEffect)(()=>{(async()=>{if(i===5&&k!==null&&D[k])try{let e=await fetch(`${de}/instruction_feedback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,current_reframe:D[k].reframe})});if(!e.ok)throw Error(`Network response was not ok`);let t=await e.json();Se([{reframe:D[k].reframe,iteration:0}]),Ae(JSON.parse(t.ai_feedback).summary),Oe(t.ai_feedback),we(0),Pe(0)}catch(e){console.error(`Lỗi khi khởi tạo dữ liệu ở step 5:`,e),Se([{reframe:D[k].reframe,iteration:0}]),we(0),Pe(0)}})()},[i,k,D]);let Re=async()=>{if(!(Ne>=5||k===null||xe.length===0)){Ie(!0);try{let e=xe[xe.length-1],t=await fetch(`${de}/improve`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,current_reframe:e.reframe,history_response:xe,feedback:De})});if(!t.ok)throw Error(`Improvement failed`);let n=await t.json(),r=await fetch(`${de}/instruction_feedback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,current_reframe:n.new_reframe})});if(!t.ok)throw Error(`Network response was not ok`);let i=await r.json();Ae(JSON.parse(i.ai_feedback).summary),Oe(i.ai_feedback);let a={reframe:n.new_reframe,iteration:Ne+1};Se(e=>[...e,a]),Pe(e=>e+1),we(Ne+1),f(!1),u({belief:null,helpfulness:null,recall:null,learning:null})}catch(e){console.error(`Failed to improve reframe:`,e)}finally{Ie(!1)}}},ze=async()=>{if(Te.length){ge(!0),ve(null);try{let e=await fetch(`${de}/reframe`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,recommended_therapies:Te})});if(!e.ok)throw Error(`Generation failed`);O((await e.json()).candidates),a(4)}catch(e){ve(`Failed to generate reframes. Please try again.`),console.error(e)}ge(!1)}},Be=async()=>{let e={session_id:h,timestamp:new Date().toISOString(),input:{situation:o.situation,thought:o.thought},output:{therapy_type:D[k]?.therapy,reframe:D[k]?.reframe},ratings:c};try{if(!(await fetch(`${de}/feedback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})).ok)throw Error(`Failed to save feedback`);console.log(`✅ Feedback saved to server`),f(!0)}catch(e){console.error(`❌ Error saving feedback:`,e),alert(`Could not save feedback. Please check your connection.`)}},Ve=async()=>{if(k!==null)try{await fetch(`${de}/save`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,selected_reframe:D[k],original_thought:o.thought})}),a(5)}catch(e){console.error(`Failed to save selection:`,e),a(5)}},He=()=>{a(1),s({situation:``,thought:``}),T(null),pe(null),O([]),me(null),ve(null),Ee([`CBT`]),u({belief:null,helpfulness:null,recall:null,learning:null}),f(!1),Pe(0),Ie(!1),Se([]),we(0),Oe(null)};return(0,E.jsxs)(`div`,{className:`min-h-screen`,children:[(()=>(0,E.jsx)(`nav`,{className:`bg-white/80 backdrop-blur-md fixed w-full top-0 z-50 shadow-sm`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`flex justify-between items-center h-16`,children:[(0,E.jsxs)(`div`,{className:`flex items-center`,children:[(0,E.jsx)(b,{className:`w-8 h-8 text-indigo-600 mr-2`}),(0,E.jsx)(`span`,{className:`text-xl font-bold text-gray-900`,children:`MindReframe`})]}),(0,E.jsxs)(`div`,{className:`hidden md:flex space-x-8`,children:[(0,E.jsx)(`button`,{onClick:()=>t(`home`),className:`text-gray-700 hover:text-indigo-600 transition`,children:`Home`}),(0,E.jsx)(`button`,{onClick:()=>t(`about`),className:`text-gray-700 hover:text-indigo-600 transition`,children:`About`}),(0,E.jsx)(`button`,{onClick:()=>t(`therapies`),className:`text-gray-700 hover:text-indigo-600 transition`,children:`Therapies`}),(0,E.jsx)(`button`,{onClick:()=>t(`app`),className:`bg-indigo-600 text-white px-6 py-2 rounded-full hover:bg-indigo-700 transition`,children:`Get Started`})]}),(0,E.jsx)(`button`,{className:`md:hidden`,onClick:()=>r(!n),children:n?(0,E.jsx)(ue,{}):(0,E.jsx)(re,{})})]}),n&&(0,E.jsxs)(`div`,{className:`md:hidden pb-4`,children:[(0,E.jsx)(`button`,{onClick:()=>{t(`home`),r(!1)},className:`block w-full text-left py-2 text-gray-700`,children:`Home`}),(0,E.jsx)(`button`,{onClick:()=>{t(`about`),r(!1)},className:`block w-full text-left py-2 text-gray-700`,children:`About`}),(0,E.jsx)(`button`,{onClick:()=>{t(`therapies`),r(!1)},className:`block w-full text-left py-2 text-gray-700`,children:`Therapies`}),(0,E.jsx)(`button`,{onClick:()=>{t(`app`),r(!1)},className:`block w-full text-left py-2 text-indigo-600 font-semibold`,children:`Get Started`})]})]})}))(),e===`home`&&(()=>(0,E.jsxs)(`div`,{className:`pt-16`,children:[(0,E.jsxs)(`section`,{className:`relative min-h-screen flex items-center bg-gradient-to-br from-indigo-50 via-purple-50 to-pink-50`,children:[(0,E.jsxs)(`div`,{className:`absolute inset-0 overflow-hidden`,children:[(0,E.jsx)(`div`,{className:`absolute -top-1/2 -right-1/2 w-full h-full bg-gradient-to-br from-indigo-200/30 to-transparent rounded-full blur-3xl`}),(0,E.jsx)(`div`,{className:`absolute -bottom-1/2 -left-1/2 w-full h-full bg-gradient-to-tr from-purple-200/30 to-transparent rounded-full blur-3xl`})]}),(0,E.jsx)(`div`,{className:`relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20`,children:(0,E.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-12 items-center`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsxs)(`h1`,{className:`text-5xl md:text-6xl font-bold text-gray-900 mb-6 leading-tight`,children:[`Transform Your`,(0,E.jsx)(`span`,{className:`text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600`,children:` Thoughts`})]}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600 mb-8`,children:`Evidence-based cognitive reframing powered by AI and multiple therapeutic approaches. Find the perspective that works for you.`}),(0,E.jsxs)(`div`,{className:`flex flex-col sm:flex-row gap-4`,children:[(0,E.jsxs)(`button`,{onClick:()=>t(`app`),className:`bg-indigo-600 text-white px-8 py-4 rounded-full font-semibold hover:bg-indigo-700 transition shadow-lg hover:shadow-xl flex items-center justify-center`,children:[`Start Your Journey`,(0,E.jsx)(v,{className:`ml-2 w-5 h-5`})]}),(0,E.jsx)(`button`,{onClick:()=>t(`about`),className:`bg-white text-indigo-600 px-8 py-4 rounded-full font-semibold hover:bg-gray-50 transition shadow-lg flex items-center justify-center`,children:`Learn More`})]})]}),(0,E.jsx)(`div`,{className:`hidden md:block`,children:(0,E.jsxs)(`div`,{className:`relative`,children:[(0,E.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-r from-indigo-500 to-purple-500 rounded-3xl blur-2xl opacity-20`}),(0,E.jsx)(`div`,{className:`relative bg-white rounded-3xl shadow-2xl p-8`,children:(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-center space-x-4`,children:[(0,E.jsx)(`div`,{className:`bg-indigo-100 p-3 rounded-full`,children:(0,E.jsx)(b,{className:`w-6 h-6 text-indigo-600`})}),(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(`div`,{className:`h-4 bg-gray-200 rounded w-32`}),(0,E.jsx)(`div`,{className:`h-3 bg-gray-100 rounded w-24`})]})]}),(0,E.jsxs)(`div`,{className:`flex items-center space-x-4`,children:[(0,E.jsx)(`div`,{className:`bg-purple-100 p-3 rounded-full`,children:(0,E.jsx)(oe,{className:`w-6 h-6 text-purple-600`})}),(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(`div`,{className:`h-4 bg-gray-200 rounded w-40`}),(0,E.jsx)(`div`,{className:`h-3 bg-gray-100 rounded w-28`})]})]}),(0,E.jsxs)(`div`,{className:`flex items-center space-x-4`,children:[(0,E.jsx)(`div`,{className:`bg-pink-100 p-3 rounded-full`,children:(0,E.jsx)(te,{className:`w-6 h-6 text-pink-600`})}),(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(`div`,{className:`h-4 bg-gray-200 rounded w-36`}),(0,E.jsx)(`div`,{className:`h-3 bg-gray-100 rounded w-32`})]})]})]})})]})})]})})]}),(0,E.jsx)(`section`,{className:`py-20 bg-white`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`text-center mb-16`,children:[(0,E.jsx)(`h2`,{className:`text-4xl font-bold text-gray-900 mb-4`,children:`Why MindReframe?`}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600`,children:`Science-backed features designed for your well-being`})]}),(0,E.jsxs)(`div`,{className:`grid md:grid-cols-3 gap-8`,children:[(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-indigo-50 to-indigo-100 p-8 rounded-2xl`,children:[(0,E.jsx)(`div`,{className:`bg-indigo-600 w-14 h-14 rounded-full flex items-center justify-center mb-6`,children:(0,E.jsx)(ae,{className:`w-7 h-7 text-white`})}),(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-3`,children:`Evidence-Based`}),(0,E.jsx)(`p`,{className:`text-gray-600`,children:`Built on proven therapeutic frameworks including CBT, ACT, DBT, and 9 other modalities studied in clinical research.`})]}),(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-purple-50 to-purple-100 p-8 rounded-2xl`,children:[(0,E.jsx)(`div`,{className:`bg-purple-600 w-14 h-14 rounded-full flex items-center justify-center mb-6`,children:(0,E.jsx)(le,{className:`w-7 h-7 text-white`})}),(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-3`,children:`Personalized`}),(0,E.jsx)(`p`,{className:`text-gray-600`,children:`Choose the therapeutic approach that resonates with you. Different perspectives for different people.`})]}),(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-pink-50 to-pink-100 p-8 rounded-2xl`,children:[(0,E.jsx)(`div`,{className:`bg-pink-600 w-14 h-14 rounded-full flex items-center justify-center mb-6`,children:(0,E.jsx)(ne,{className:`w-7 h-7 text-white`})}),(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-3`,children:`AI-Powered`}),(0,E.jsx)(`p`,{className:`text-gray-600`,children:`Advanced language models trained to provide empathetic, safe, and clinically appropriate reframes.`})]})]})]})}),(0,E.jsx)(`section`,{className:`py-20 bg-gradient-to-br from-gray-50 to-gray-100`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`text-center mb-16`,children:[(0,E.jsx)(`h2`,{className:`text-4xl font-bold text-gray-900 mb-4`,children:`How It Works`}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600`,children:`Your journey to healthier thinking in 5 simple steps`})]}),(0,E.jsx)(`div`,{className:`grid md:grid-cols-5 gap-8`,children:[{icon:w,title:`Share`,desc:`Tell us your situation and thoughts`},{icon:b,title:`Detect`,desc:`We identify cognitive distortions`},{icon:ce,title:`Analyze`,desc:`Deep analysis of thought patterns`},{icon:oe,title:`Reframe`,desc:`Multiple therapeutic perspectives`},{icon:te,title:`Choose`,desc:`Select what works for you`}].map((e,t)=>(0,E.jsxs)(`div`,{className:`text-center`,children:[(0,E.jsx)(`div`,{className:`bg-white w-20 h-20 rounded-full flex items-center justify-center mx-auto mb-4 shadow-lg`,children:(0,E.jsx)(e.icon,{className:`w-10 h-10 text-indigo-600`})}),(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:e.title}),(0,E.jsx)(`p`,{className:`text-sm text-gray-600`,children:e.desc})]},t))})]})}),(0,E.jsx)(`section`,{className:`py-20 bg-gradient-to-r from-indigo-600 to-purple-600`,children:(0,E.jsxs)(`div`,{className:`max-w-4xl mx-auto text-center px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`h2`,{className:`text-4xl font-bold text-white mb-6`,children:`Ready to Transform Your Thinking?`}),(0,E.jsx)(`p`,{className:`text-xl text-indigo-100 mb-8`,children:`Join thousands who have discovered healthier perspectives through cognitive reframing`}),(0,E.jsxs)(`button`,{onClick:()=>t(`app`),className:`bg-white text-indigo-600 px-10 py-4 rounded-full font-bold text-lg hover:bg-gray-100 transition shadow-xl inline-flex items-center`,children:[`Start Free Today`,(0,E.jsx)(v,{className:`ml-2 w-5 h-5`})]})]})})]}))(),e===`about`&&(()=>(0,E.jsx)(`div`,{className:`pt-24 pb-20 min-h-screen bg-gradient-to-br from-indigo-50 via-white to-purple-50`,children:(0,E.jsxs)(`div`,{className:`max-w-4xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`h1`,{className:`text-5xl font-bold text-gray-900 mb-8`,children:`About MindReframe`}),(0,E.jsxs)(`div`,{className:`bg-white rounded-3xl shadow-xl p-8 mb-8`,children:[(0,E.jsx)(`h2`,{className:`text-2xl font-bold text-gray-900 mb-4`,children:`Our Mission`}),(0,E.jsx)(`p`,{className:`text-gray-700 mb-4`,children:`MindReframe combines cutting-edge AI technology with evidence-based psychotherapy to make mental health support accessible, personalized, and effective for everyone.`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`We believe that mental well-being should be within reach for all, and that the right perspective can make a profound difference in how we experience life's challenges.`})]}),(0,E.jsxs)(`div`,{className:`bg-white rounded-3xl shadow-xl p-8 mb-8`,children:[(0,E.jsx)(`h2`,{className:`text-2xl font-bold text-gray-900 mb-4`,children:`The Science Behind It`}),(0,E.jsxs)(`p`,{className:`text-gray-700 mb-4`,children:[`Our platform is built on `,(0,E.jsx)(`strong`,{children:`ReframeBench`}),`, a comprehensive benchmark evaluating large language models across 12 distinct therapeutic modalities. This research ensures that our AI provides clinically appropriate and safe cognitive reframes.`]}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`We integrate principles from CBT, ACT, DBT, REBT, Schema Therapy, MBCT, CFT, Narrative Therapy, SFBT, and Motivational Interviewing - giving you access to diverse therapeutic perspectives.`})]}),(0,E.jsxs)(`div`,{className:`bg-white rounded-3xl shadow-xl p-8`,children:[(0,E.jsx)(`h2`,{className:`text-2xl font-bold text-gray-900 mb-4`,children:`Important Note`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`MindReframe is designed as a self-help tool and educational resource. It is not a replacement for professional mental health care. If you're experiencing severe distress, please reach out to a qualified mental health professional.`})]})]})}))(),e===`therapies`&&(()=>(0,E.jsx)(`div`,{className:`pt-24 pb-20 min-h-screen bg-gradient-to-br from-purple-50 via-white to-pink-50`,children:(0,E.jsxs)(`div`,{className:`max-w-6xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`h1`,{className:`text-5xl font-bold text-gray-900 mb-4 text-center`,children:`Therapeutic Approaches`}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600 mb-12 text-center`,children:`Explore the diverse perspectives we offer`}),(0,E.jsx)(`div`,{className:`grid md:grid-cols-2 gap-6`,children:[{name:`CBT`,full:`Cognitive Behavioral Therapy`,color:`indigo`,desc:`Challenge and change unhelpful thoughts through evidence and logic`},{name:`ACT`,full:`Acceptance & Commitment Therapy`,color:`purple`,desc:`Accept thoughts and commit to value-driven actions`},{name:`DBT`,full:`Dialectical Behavior Therapy`,color:`pink`,desc:`Balance acceptance with change through mindfulness`},{name:`REBT`,full:`Rational Emotive Behavior Therapy`,color:`blue`,desc:`Dispute irrational beliefs with rational alternatives`},{name:`MBCT`,full:`Mindfulness-Based Cognitive Therapy`,color:`green`,desc:`Combine mindfulness with cognitive techniques`},{name:`CFT`,full:`Compassion-Focused Therapy`,color:`rose`,desc:`Cultivate self-compassion and kindness`},{name:`Schema Therapy`,full:`Schema Therapy`,color:`violet`,desc:`Identify and heal deep-rooted patterns`},{name:`Narrative`,full:`Narrative Therapy`,color:`amber`,desc:`Rewrite your story and externalize problems`},{name:`SFBT`,full:`Solution-Focused Brief Therapy`,color:`cyan`,desc:`Focus on solutions rather than problems`},{name:`MI`,full:`Motivational Interviewing`,color:`emerald`,desc:`Enhance motivation for positive change`}].map((e,t)=>(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-${e.color}-50 to-${e.color}-100 p-6 rounded-2xl border-2 border-${e.color}-200`,children:[(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-2`,children:e.name}),(0,E.jsx)(`p`,{className:`text-sm text-gray-600 mb-3 font-medium`,children:e.full}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:e.desc})]},t))})]})}))(),e===`app`&&(()=>(0,E.jsx)(`div`,{className:`pt-20 pb-12 min-h-screen bg-gradient-to-br from-indigo-50 via-purple-50 to-pink-50`,children:(0,E.jsxs)(`div`,{className:`max-w-4xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`div`,{className:`mb-8 bg-white/80 backdrop-blur-sm rounded-2xl shadow-lg p-6`,children:(0,E.jsx)(`div`,{className:`flex items-center justify-between`,children:[`Input`,`Detect`,`Analyze`,`Reframe`,`Select`].map((e,t)=>(0,E.jsxs)(l.Fragment,{children:[(0,E.jsxs)(`div`,{className:`flex flex-col items-center`,children:[(0,E.jsx)(`div`,{className:`w-12 h-12 rounded-full flex items-center justify-center font-bold transition-all duration-300 ${i>t+1?`bg-green-500 text-white shadow-lg scale-110`:i===t+1?`bg-indigo-600 text-white shadow-lg animate-pulse`:`bg-gray-200 text-gray-400`}`,children:i>t+1?(0,E.jsx)(ee,{className:`w-6 h-6`}):t+1}),(0,E.jsx)(`span`,{className:`mt-2 text-xs font-medium text-gray-700`,children:e})]}),t<4&&(0,E.jsx)(`div`,{className:`flex-1 h-1 mx-2 rounded ${i>t+1?`bg-green-500`:`bg-gray-200`}`})]},t))})}),_e&&(0,E.jsxs)(`div`,{className:`mb-6 bg-red-50 border-2 border-red-200 rounded-xl p-4 flex items-center`,children:[(0,E.jsx)(S,{className:`w-5 h-5 text-red-600 mr-2`}),(0,E.jsx)(`p`,{className:`text-red-800`,children:_e})]}),i===1&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-center`,children:[(0,E.jsx)(`div`,{className:`bg-indigo-100 p-3 rounded-full mr-4`,children:(0,E.jsx)(w,{className:`w-6 h-6 text-indigo-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:`Share Your Thoughts`})]}),(0,E.jsxs)(`button`,{onClick:()=>Me(!je),className:`text-sm font-medium text-indigo-600 hover:text-indigo-800 flex items-center transition-colors`,children:[(0,E.jsx)(ne,{className:`w-4 h-4 mr-1`}),je?`Hide Example`:`See Example`]})]}),je&&(0,E.jsxs)(`div`,{className:`mb-8 bg-blue-50 border border-blue-100 rounded-xl p-5 relative animate-fade-in`,children:[(0,E.jsx)(`button`,{onClick:()=>Me(!1),className:`absolute top-2 right-2 text-gray-400 hover:text-gray-600`,children:(0,E.jsx)(ue,{className:`w-4 h-4`})}),(0,E.jsx)(`h3`,{className:`text-sm font-bold text-blue-800 uppercase tracking-wide mb-3`,children:`Example Scenario`}),(0,E.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-4`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-xs font-semibold text-gray-500 mb-1`,children:`THE SITUATION (Facts only)`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-700 bg-white p-3 rounded-lg border border-blue-100 italic`,children:`"I sent a message to my friend 3 hours ago and haven't received a reply yet."`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-xs font-semibold text-gray-500 mb-1`,children:`THE THOUGHT (Interpretation)`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-700 bg-white p-3 rounded-lg border border-blue-100 italic`,children:`"They are ignoring me because they hate me. I always mess up relationships."`})]})]}),(0,E.jsx)(`button`,{onClick:Le,className:`mt-4 text-xs font-semibold text-blue-600 hover:text-blue-800 hover:underline`,children:`Click to use this example`})]}),(0,E.jsx)(`p`,{className:`text-gray-600 mb-8`,children:`Let's start by understanding what's on your mind. Be as honest and detailed as you'd like.`}),(0,E.jsxs)(`div`,{className:`mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex justify-between items-baseline mb-3`,children:[(0,E.jsx)(`label`,{className:`block text-sm font-semibold text-gray-700`,children:`What's the situation?`}),(0,E.jsx)(`span`,{className:`text-xs text-gray-400 font-medium`,children:`Objective facts (Who, what, where)`})]}),(0,E.jsx)(`textarea`,{className:`w-full p-4 border-2 border-gray-200 rounded-xl focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 focus:outline-none resize-none transition-all placeholder:text-gray-400`,rows:3,placeholder:`E.g., I made a mistake during my presentation...`,value:o.situation,onChange:e=>s({...o,situation:e.target.value})},`situation-input`)]}),(0,E.jsxs)(`div`,{className:`mb-8`,children:[(0,E.jsxs)(`div`,{className:`flex justify-between items-baseline mb-3`,children:[(0,E.jsx)(`label`,{className:`block text-sm font-semibold text-gray-700`,children:`What thoughts came to mind?`}),(0,E.jsx)(`span`,{className:`text-xs text-gray-400 font-medium`,children:`Your interpretation or feeling`})]}),(0,E.jsx)(`textarea`,{className:`w-full p-4 border-2 border-gray-200 rounded-xl focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 focus:outline-none resize-none transition-all placeholder:text-gray-400`,rows:3,placeholder:`E.g., Everyone thinks I'm incompetent. I'll get fired...`,value:o.thought,onChange:e=>s({...o,thought:e.target.value})},`thought-input`)]}),(0,E.jsx)(`button`,{onClick:ye,disabled:!o.situation||!o.thought||he,className:`w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 disabled:from-gray-400 disabled:to-gray-400 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl transform hover:scale-[1.02]`,children:he?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2`}),`Analyzing Your Thoughts...`]}):(0,E.jsxs)(E.Fragment,{children:[`Begin Analysis`,(0,E.jsx)(x,{className:`w-5 h-5 ml-2`})]})})]}),i===2&&_&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-6`,children:[(0,E.jsx)(`div`,{className:`${_.has_distortion?`bg-yellow-100`:`bg-green-100`} p-3 rounded-full mr-4`,children:_.has_distortion?(0,E.jsx)(b,{className:`w-6 h-6 text-yellow-600`}):(0,E.jsx)(ee,{className:`w-6 h-6 text-green-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:_.has_distortion?`Distortion Detection`:`Great News!`})]}),_.has_distortion?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`div`,{className:`bg-gradient-to-r from-yellow-50 to-amber-50 border-2 border-yellow-300 rounded-xl p-6 mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-start mb-4`,children:[(0,E.jsx)(S,{className:`w-8 h-8 text-yellow-600 mr-3 flex-shrink-0 mt-1`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-2`,children:`Cognitive Distortions Detected`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`We've identified some thinking patterns that may be affecting your perspective.`})]})]}),(0,E.jsxs)(`div`,{className:`mb-4`,children:[(0,E.jsx)(`p`,{className:`font-semibold text-gray-700 mb-3`,children:`Distortion Types:`}),(0,E.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:_.distortion_types.map((e,t)=>(0,E.jsx)(`span`,{className:`bg-yellow-200 text-yellow-900 px-4 py-2 rounded-full text-sm font-semibold`,children:e},t))})]}),(0,E.jsxs)(`div`,{className:`bg-white/50 rounded-lg p-4`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-600 font-medium mb-1`,children:`Understanding:`}),(0,E.jsx)(`p`,{className:`text-gray-800`,children:_.explanation})]})]}),(0,E.jsx)(`button`,{onClick:be,disabled:he,className:`w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 disabled:from-gray-400 disabled:to-gray-400 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:he?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2`}),`Deep Analysis in Progress...`]}):(0,E.jsxs)(E.Fragment,{children:[`Continue to Deep Analysis`,(0,E.jsx)(x,{className:`w-5 h-5 ml-2`})]})})]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`div`,{className:`bg-gradient-to-r from-green-50 to-emerald-50 border-2 border-green-300 rounded-xl p-6 mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-start mb-4`,children:[(0,E.jsx)(ee,{className:`w-8 h-8 text-green-600 mr-3 flex-shrink-0 mt-1`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-2`,children:`Healthy Thinking Pattern`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`Your thought appears to be balanced and realistic. We didn't detect any cognitive distortions.`})]})]}),(0,E.jsxs)(`div`,{className:`bg-white/50 rounded-lg p-4`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-600 font-medium mb-1`,children:`Analysis:`}),(0,E.jsx)(`p`,{className:`text-gray-800`,children:_.explanation})]})]}),(0,E.jsx)(`div`,{className:`bg-blue-50 border-2 border-blue-200 rounded-xl p-6 mb-6`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(ne,{className:`w-6 h-6 text-blue-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Keep It Up!`}),(0,E.jsx)(`p`,{className:`text-gray-700 text-sm`,children:`Your thinking seems clear and grounded. This is a sign of good mental health. If you're still feeling distressed about the situation, consider whether the situation itself needs attention rather than your thoughts about it.`})]})]})}),(0,E.jsxs)(`div`,{className:`flex gap-4`,children:[(0,E.jsxs)(`button`,{onClick:()=>a(1),className:`flex-1 bg-gray-200 hover:bg-gray-300 text-gray-800 font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center`,children:[(0,E.jsx)(ie,{className:`w-5 h-5 mr-2`}),`Try Another Thought`]}),(0,E.jsxs)(`button`,{onClick:()=>t(`home`),className:`flex-1 bg-gradient-to-r from-green-600 to-emerald-600 hover:from-green-700 hover:to-emerald-700 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:[(0,E.jsx)(ee,{className:`w-5 h-5 mr-2`}),`Back to Home`]})]})]})]}),i===3&&fe&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-6`,children:[(0,E.jsx)(`div`,{className:`bg-purple-100 p-3 rounded-full mr-4`,children:(0,E.jsx)(ce,{className:`w-6 h-6 text-purple-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:`Deep Analysis`})]}),(0,E.jsxs)(`div`,{className:`space-y-4 mb-8`,children:[(0,E.jsx)(`div`,{className:`bg-gradient-to-r from-blue-50 to-blue-100 border-l-4 border-blue-500 rounded-lg p-5`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(te,{className:`w-5 h-5 text-blue-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Emotional Impact`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:fe.emotional_impact})]})]})}),(0,E.jsx)(`div`,{className:`bg-gradient-to-r from-purple-50 to-purple-100 border-l-4 border-purple-500 rounded-lg p-5`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(ne,{className:`w-5 h-5 text-purple-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Underlying Beliefs`}),(0,E.jsx)(`ul`,{className:`space-y-1`,children:fe.underlying_beliefs.map((e,t)=>(0,E.jsxs)(`li`,{className:`text-gray-700 flex items-start`,children:[(0,E.jsx)(`span`,{className:`text-purple-600 mr-2`,children:`•`}),(0,E.jsx)(`span`,{children:e})]},t))})]})]})}),(0,E.jsx)(`div`,{className:`bg-gradient-to-r from-pink-50 to-pink-100 border-l-4 border-pink-500 rounded-lg p-5`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(C,{className:`w-5 h-5 text-pink-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-3`,children:`Common Triggers`}),(0,E.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:fe.triggers.map((e,t)=>(0,E.jsx)(`span`,{className:`bg-pink-200 text-pink-900 px-3 py-1 rounded-full text-sm font-medium`,children:e},t))})]})]})})]}),(0,E.jsx)(`button`,{onClick:ze,className:`w-full bg-gradient-to-r from-green-600 to-emerald-600 hover:from-green-700 hover:to-emerald-700 disabled:from-gray-400 disabled:to-gray-400 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:he?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2`}),`Generating `,Te.length,` Perspectives...`]}):(0,E.jsxs)(E.Fragment,{children:[`Generate Reframes (`,Te.length,` Selected)`,(0,E.jsx)(oe,{className:`w-5 h-5 ml-2`})]})})]}),i===4&&D.length>0&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-6`,children:[(0,E.jsx)(`div`,{className:`bg-green-100 p-3 rounded-full mr-4`,children:(0,E.jsx)(oe,{className:`w-6 h-6 text-green-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:`Your Reframe Options`})]}),(0,E.jsx)(`p`,{className:`text-gray-600 mb-6`,children:`We've generated multiple perspectives based on different therapeutic approaches. Choose the one that resonates most with you.`}),(0,E.jsx)(`div`,{className:`space-y-4 mb-8`,children:D.map((e,t)=>(0,E.jsxs)(`div`,{onClick:()=>me(t),className:`p-6 border-2 rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-102 ${k===t?`border-indigo-500 bg-gradient-to-r from-indigo-50 to-purple-50 shadow-lg`:`border-gray-200 hover:border-indigo-300 bg-white hover:shadow-md`}`,children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between mb-4`,children:[(0,E.jsx)(`span`,{className:`bg-indigo-600 text-white px-4 py-2 rounded-full text-sm font-bold`,children:e.therapy}),k===t&&(0,E.jsxs)(`div`,{className:`flex items-center text-indigo-600`,children:[(0,E.jsx)(se,{className:`w-5 h-5 mr-2`}),(0,E.jsx)(`span`,{className:`font-semibold`,children:`Selected`})]})]}),(0,E.jsxs)(`p`,{className:`text-gray-900 font-medium text-lg mb-4 leading-relaxed`,children:[`"`,e.reframe,`"`]}),(0,E.jsxs)(`div`,{className:`bg-white/50 rounded-lg p-4 mb-4`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-600 font-semibold mb-1`,children:`Why this works:`}),(0,E.jsx)(`p`,{className:`text-gray-700 text-sm`,children:e.rationale})]}),e.evaluation&&(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-3 pt-4 border-t border-gray-200`,children:Object.entries(e.evaluation).map(([e,t])=>(0,E.jsxs)(`div`,{className:`text-center`,children:[(0,E.jsx)(`p`,{className:`text-xs text-gray-500 uppercase font-semibold mb-1`,children:e}),(0,E.jsx)(`div`,{className:`flex items-center justify-center`,children:[...[,,,,,]].map((e,n)=>(0,E.jsx)(y,{className:`w-4 h-4 ${n0&&(0,E.jsxs)(`div`,{className:`bg-gradient-to-r from-indigo-50 via-purple-50 to-pink-50 rounded-2xl p-8 mb-8 text-left relative transition-all duration-500`,children:[xe.length>1&&(0,E.jsx)(`div`,{className:`mb-6 flex space-x-2 overflow-x-auto pb-2 scrollbar-hide`,children:xe.map((e,t)=>(0,E.jsx)(`button`,{onClick:()=>we(t),className:`px-4 py-1.5 text-xs font-bold rounded-full transition-all whitespace-nowrap ${Ce===t?`bg-indigo-600 text-white shadow-md`:`bg-white text-indigo-600 border border-indigo-200 hover:bg-indigo-50`}`,children:t===0?`Original`:`Version ${t+1}`},t))}),(0,E.jsxs)(`div`,{className:`mb-6`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-500 uppercase font-semibold mb-2`,children:`Situation`}),(0,E.jsxs)(`p`,{className:`text-gray-800 italic`,children:[`"`,o.situation,`"`]})]}),(0,E.jsxs)(`div`,{className:`mb-6`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-500 uppercase font-semibold mb-2`,children:`Original Thought`}),(0,E.jsxs)(`p`,{className:`text-gray-800 italic`,children:[`"`,o.thought,`"`]})]}),(0,E.jsx)(`div`,{className:`flex items-center justify-center my-6`,children:(0,E.jsx)(v,{className:`w-8 h-8 text-indigo-600`})}),(0,E.jsxs)(`div`,{children:[(0,E.jsxs)(`p`,{className:`text-sm text-gray-500 uppercase font-semibold mb-2 flex justify-between items-center`,children:[(0,E.jsxs)(`span`,{children:[`Your New Perspective (`,D[k].therapy,`)`]}),(0,E.jsx)(`span`,{className:`text-xs bg-purple-200 text-purple-800 px-2 py-0.5 rounded-md`,children:Ce===0?`Original`:`Iteration ${Ce}`})]}),(0,E.jsxs)(`p`,{className:`text-xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600 min-h-[3rem]`,children:[`"`,xe[Ce].reframe,`"`]})]}),(0,E.jsxs)(`div`,{className:`mt-8 pt-6 border-t border-purple-200/50`,children:[(0,E.jsxs)(`div`,{className:`flex items-start mb-6 bg-white/60 p-4 rounded-xl`,children:[(0,E.jsx)(b,{className:`w-5 h-5 text-purple-600 mr-3 mt-0.5 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-sm font-bold text-gray-800 mb-1`,children:`AI Feedback`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-700 leading-relaxed`,children:ke})]})]}),(0,E.jsx)(`div`,{className:`flex justify-end`,children:(0,E.jsx)(`button`,{onClick:Re,disabled:Fe||Ne>=5||Ce!==xe.length-1,className:`text-sm font-bold py-2.5 px-5 rounded-xl flex items-center transition-all shadow-sm + ${Fe||Ne>=5||Ce!==xe.length-1?`bg-gray-200 text-gray-400 cursor-not-allowed`:`bg-white border-2 border-purple-200 text-purple-600 hover:bg-purple-50 hover:border-purple-400 hover:shadow-md`}`,children:Fe?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-4 w-4 border-b-2 border-purple-600 mr-2`}),`Refining...`]}):Ce===xe.length-1?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(oe,{className:`w-4 h-4 mr-2`}),Ne>=5?`Max Refinements Reached`:`Improve Reframe (${Ne}/5)`]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(ie,{className:`w-4 h-4 mr-2`}),`View Latest to Improve`]})})})]})]}),d?(0,E.jsxs)(`div`,{className:`bg-green-50 border border-green-100 rounded-xl p-6 mb-8 flex flex-col items-center justify-center animate-fade-in`,children:[(0,E.jsx)(`div`,{className:`bg-green-100 p-3 rounded-full mb-3`,children:(0,E.jsx)(se,{className:`w-8 h-8 text-green-600`})}),(0,E.jsx)(`p`,{className:`text-green-800 font-bold text-lg`,children:`Thank You!`}),(0,E.jsx)(`p`,{className:`text-green-600 text-sm mt-1 text-center max-w-md`,children:`Your feedback is invaluable for improving our therapeutic models. Keep practicing this reframe whenever you need it.`})]}):(0,E.jsxs)(`div`,{className:`bg-white border border-gray-200 shadow-sm rounded-xl p-6 mb-8 text-left animate-fade-in transition-all`,children:[(0,E.jsxs)(`div`,{className:`mb-6 border-b border-gray-100 pb-4`,children:[(0,E.jsxs)(`h3`,{className:`text-lg font-bold text-gray-800 flex items-center`,children:[(0,E.jsx)(w,{className:`w-5 h-5 mr-2 text-indigo-600`}),`Evaluation`]}),(0,E.jsx)(`p`,{className:`text-sm text-gray-500 mt-1`,children:`How strongly do you agree with the following statements regarding your chosen perspective?`})]}),(0,E.jsxs)(`div`,{className:`space-y-8`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`1. I genuinely believe in this new perspective.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`belief`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.belief===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`2. This perspective helps me reduce my distress.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`helpfulness`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.helpfulness===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`3. I will likely recall this perspective next time I feel this way.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`recall`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.recall===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`4. This exercise improved my ability to cope with negative thoughts.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`learning`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.learning===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]})]}),(0,E.jsx)(`div`,{className:`mt-8 text-center animate-fade-in`,children:(0,E.jsx)(`button`,{onClick:Be,disabled:!c.belief||!c.helpfulness||!c.recall||!c.learning,className:`text-sm bg-indigo-50 text-indigo-600 hover:bg-indigo-100 disabled:opacity-50 disabled:cursor-not-allowed px-8 py-3 rounded-full font-bold transition-all shadow-sm hover:shadow-md`,children:`Submit Evaluation`})})]}),(0,E.jsx)(`div`,{className:`bg-blue-50 border-2 border-blue-200 rounded-xl p-6 mb-8 text-left`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(ne,{className:`w-6 h-6 text-blue-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Practice Makes Progress`}),(0,E.jsx)(`p`,{className:`text-gray-700 text-sm`,children:`Try using this reframe when you notice similar thoughts. It may feel unnatural at first, but with repetition, these healthier thinking patterns will become more automatic.`})]})]})}),(0,E.jsxs)(`button`,{onClick:He,className:`w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:[(0,E.jsx)(ie,{className:`w-5 h-5 mr-2`}),`Work on Another Thought`]})]})]})}))(),(0,E.jsx)(`footer`,{className:`bg-gray-900 text-white py-12`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`grid md:grid-cols-3 gap-8 mb-8`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-4`,children:[(0,E.jsx)(b,{className:`w-6 h-6 text-indigo-400 mr-2`}),(0,E.jsx)(`span`,{className:`text-lg font-bold`,children:`MindReframe`})]}),(0,E.jsx)(`p`,{className:`text-gray-400 text-sm`,children:`Evidence-based cognitive reframing powered by AI and clinical psychology.`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold mb-4`,children:`Important`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-400`,children:`This tool is for educational and self-help purposes. If you're in crisis, please seek professional help immediately.`})]})]}),(0,E.jsx)(`div`,{className:`border-t border-gray-800 pt-8 text-center text-sm text-gray-400`,children:(0,E.jsx)(`p`,{children:`© 2026 MindReframe. Based on MindReframe research.`})})]})})]})},{})})); \ No newline at end of file diff --git a/Web/mind-reframe/dist/assets/index-CILzSiom.js b/Web/mind-reframe/dist/assets/index-CILzSiom.js new file mode 100644 index 0000000000000000000000000000000000000000..aa3bae32f6a1dae38ae34e9e9f4101459e38edfb --- /dev/null +++ b/Web/mind-reframe/dist/assets/index-CILzSiom.js @@ -0,0 +1,10 @@ +Object.create,Object.defineProperty,Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.prototype.hasOwnProperty;var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var ee=Array.isArray;function S(){}var C={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function ne(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function re(e,t){return ne(e.type,t,e.props)}function w(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ie(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ae=/\/+/g;function oe(e,t){return typeof e==`object`&&e&&e.key!=null?ie(``+e.key):t.toString(36)}function se(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(S,S):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ce(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ce(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+oe(e,0):a,ee(o)?(i=``,c!=null&&(i=c.replace(ae,`$&/`)+`/`),ce(o,r,i,``,function(e){return e})):o!=null&&(w(o)&&(o=re(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ae,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(ee(e))for(var u=0;u{n.exports=t()})),r=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,w());else{var t=n(l);t!==null&&oe(x,t.startTime-e)}}var ee=!1,S=-1,C=5,te=-1;function ne(){return g?!0:!(e.unstable_now()-tet&&ne());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&oe(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?w():ee=!1}}}var w;if(typeof y==`function`)w=function(){y(re)};else if(typeof MessageChannel<`u`){var ie=new MessageChannel,ae=ie.port2;ie.port1.onmessage=re,w=function(){ae.postMessage(null)}}else w=function(){_(re,0)};function oe(t,n){S=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(S),S=-1):h=!0,oe(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,w()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(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(e){console.error(e)}}n(),t.exports=a()})),s=e((e=>{var t=i(),r=n(),a=o();function s(e){var t=`https://react.dev/errors/`+e;if(1pe||(e.current=fe[pe],fe[pe]=null,pe--)}function k(e,t){pe++,fe[pe]=e.current,e.current=t}var me=D(null),he=D(null),ge=D(null),_e=D(null);function ve(e,t){switch(k(ge,t),k(he,e),k(me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}O(me),k(me,e)}function ye(){O(me),O(he),O(ge)}function be(e){e.memoizedState!==null&&k(_e,e);var t=me.current,n=Hd(t,e.type);t!==n&&(k(he,e),k(me,n))}function xe(e){he.current===e&&(O(me),O(he)),_e.current===e&&(O(_e),Qf._currentValue=de)}var Se,Ce;function we(e){if(Se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||``,Ce=-1)`:-1i||c[r]!==l[i]){var u=` +`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?we(n):``}function De(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we(`Lazy`);case 13:return e.child!==t&&t!==null?we(`Suspense Fallback`):we(`Suspense`);case 19:return we(`SuspenseList`);case 0:case 15:return Ee(e.type,!1);case 11:return Ee(e.type.render,!1);case 1:return Ee(e.type,!0);case 31:return we(`Activity`);default:return``}}function Oe(e){try{var t=``,n=null;do t+=De(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +Error generating stack: `+e.message+` +`+e.stack}}var ke=Object.prototype.hasOwnProperty,Ae=t.unstable_scheduleCallback,je=t.unstable_cancelCallback,Me=t.unstable_shouldYield,Ne=t.unstable_requestPaint,Pe=t.unstable_now,Fe=t.unstable_getCurrentPriorityLevel,Ie=t.unstable_ImmediatePriority,Le=t.unstable_UserBlockingPriority,Re=t.unstable_NormalPriority,ze=t.unstable_LowPriority,Be=t.unstable_IdlePriority,Ve=t.log,He=t.unstable_setDisableYieldValue,Ue=null,We=null;function Ge(e){if(typeof Ve==`function`&&He(e),We&&typeof We.setStrictMode==`function`)try{We.setStrictMode(Ue,e)}catch{}}var Ke=Math.clz32?Math.clz32:Ye,qe=Math.log,Je=Math.LN2;function Ye(e){return e>>>=0,e===0?32:31-(qe(e)/Je|0)|0}var Xe=256,Ze=262144,Qe=4194304;function $e(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:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 et(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=$e(n))):i=$e(o):i=$e(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=$e(n))):i=$e(o)):i=$e(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function tt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 rt(){var e=Qe;return Qe<<=1,!(Qe&62914560)&&(Qe=4194304),e}function it(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function at(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ot(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),yn=!1;if(vn)try{var bn={};Object.defineProperty(bn,`passive`,{get:function(){yn=!0}}),window.addEventListener(`test`,bn,bn),window.removeEventListener(`test`,bn,bn)}catch{yn=!1}var xn=null,Sn=null,Cn=null;function wn(){if(Cn)return Cn;var e,t=Sn,n=t.length,r,i=`value`in xn?xn.value:xn.textContent,a=i.length;for(e=0;e=nr),ar=` `,or=!1;function sr(e,t){switch(e){case`keyup`:return er.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function cr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var lr=!1;function ur(e,t){switch(e){case`compositionend`:return cr(t);case`keypress`:return t.which===32?(or=!0,ar):null;case`textInput`:return e=t.data,e===ar&&or?null:e;default:return null}}function dr(e,t){if(lr)return e===`compositionend`||!tr&&sr(e,t)?(e=wn(),Cn=Sn=xn=null,lr=!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)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Nr(n)}}function Fr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ir(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Gt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gt(e.document)}return t}function Lr(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`)}var Rr=vn&&`documentMode`in document&&11>=document.documentMode,zr=null,Br=null,Vr=null,Hr=!1;function Ur(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hr||zr==null||zr!==Gt(r)||(r=zr,`selectionStart`in r&&Lr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vr&&Mr(Vr,r)||(Vr=r,r=Ed(Br,`onSelect`),0>=o,i-=o,Fi=1<<32-Ke(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),j&&Li(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),j&&Li(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return j&&Li(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),j&&Li(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===y&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case _:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===y){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===w&&Fa(l)===r.type){n(e,r.sibling),c=i(r,a.props),Ha(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===y?(c=Si(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=xi(a.type,a.key,a.props,null,e.mode,c),Ha(c,a),c.return=e,e=c)}return o(e);case v:a:{for(l=a.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=Ti(a,e.mode,c),c.return=e,e=c}return o(e);case w:return a=Fa(a),b(e,r,a,c)}if(ue(a))return h(e,r,a,c);if(se(a)){if(l=se(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Va(a),c);if(a.$$typeof===S)return b(e,r,ua(e,a),c);Ua(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=Ci(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{Ba=0;var i=b(e,t,n,r);return za=null,i}catch(t){if(t===ka||t===ja)throw t;var a=_i(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ga=Wa(!0),Ka=Wa(!1),qa=!1;function Ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ya(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 Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=mi(e),pi(e,null,n),t}return ui(e,r,t,n),mi(e)}function Qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}function $a(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var eo=!1;function to(){if(eo){var e=ba;if(e!==null)throw e}}function no(e,t,n,r){eo=!1;var i=e.updateQueue;qa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(q&f)===f:(r&f)===f){f!==0&&f===ya&&(eo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:qa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function ro(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function io(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=T.T,s={};T.T=s,zs(e,!1,t,n);try{var c=i(),l=T.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Rs(e,t,Ca(c,r),pu(e)):Rs(e,t,r,pu(e))}catch(n){Rs(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{E.p=a,o!==null&&s.types!==null&&(o.types=s.types),T.T=o}}function Os(){}function ks(e,t,n,r){if(e.tag!==5)throw Error(s(476));var i=As(e).queue;Ds(e,i,t,de,n===null?Os:function(){return js(e),n(r)})}function As(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function js(e){var t=As(e);t.next===null&&(t=e.alternate.memoizedState),Rs(e,t.next.queue,{},pu())}function Ms(){return la(Qf)}function Ns(){return R().memoizedState}function Ps(){return R().memoizedState}function Fs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Xa(n);var r=Za(t,e,n);r!==null&&(hu(r,t,n),Qa(r,t,n)),t={cache:ha()},e.payload=t;return}t=t.return}}function Is(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bs(e)?Vs(t,n):(n=di(e,t,n,r),n!==null&&(hu(n,e,r),Hs(n,t,r)))}function Ls(e,t,n){Rs(e,t,n,pu())}function Rs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Vs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,jr(s,o))return ui(e,t,i,0),G===null&&li(),!1}catch{}if(n=di(e,t,i,r),n!==null)return hu(n,e,r),Hs(n,t,r),!0}return!1}function zs(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(s(479))}else t=di(e,n,r,2),t!==null&&hu(t,e,2)}function Bs(e){var t=e.alternate;return e===P||t!==null&&t===P}function Vs(e,t){xo=bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}var Us={readContext:la,use:Ro,useCallback:L,useContext:L,useEffect:L,useImperativeHandle:L,useLayoutEffect:L,useInsertionEffect:L,useMemo:L,useReducer:L,useRef:L,useState:L,useDebugValue:L,useDeferredValue:L,useTransition:L,useSyncExternalStore:L,useId:L,useHostTransitionStatus:L,useFormState:L,useActionState:L,useOptimistic:L,useMemoCache:L,useCacheRefresh:L};Us.useEffectEvent=L;var Ws={readContext:la,use:Ro,useCallback:function(e,t){return Fo().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:ms,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),fs(4194308,4,bs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fs(4194308,4,e,t)},useInsertionEffect:function(e,t){fs(4,2,e,t)},useMemo:function(e,t){var n=Fo();t=t===void 0?null:t;var r=e();if(So){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Fo();if(n!==void 0){var i=n(t);if(So){Ge(!0);try{n(t)}finally{Ge(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Is.bind(null,P,e),[r.memoizedState,e]},useRef:function(e){var t=Fo();return e={current:e},t.memoizedState=e},useState:function(e){e=Xo(e);var t=e.queue,n=Ls.bind(null,P,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ss,useDeferredValue:function(e,t){return Ts(Fo(),e,t)},useTransition:function(){var e=Xo(!1);return e=Ds.bind(null,P,e.queue,!0,!1),Fo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=P,i=Fo();if(j){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),G===null)throw Error(s(349));q&127||Go(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ms(qo.bind(null,r,a,e),[e]),r.flags|=2048,us(9,{destroy:void 0},Ko.bind(null,r,a,n,t),null),n},useId:function(){var e=Fo(),t=G.identifierPrefix;if(j){var n=Ii,r=Fi;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Co++,0<\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[ht]=t,a[gt]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Pd(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Lc(t)}}return B(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=ge.current,Yi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Hi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Ki(t,!0)}else e=Bd(e).createTextNode(r),e[ht]=t,t.stateNode=e}return B(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Yi(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[ht]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;B(t),e=!1}else n=Zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(_o(t),t):(_o(t),null);if(t.flags&128)throw Error(s(558))}return B(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Yi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[ht]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;B(t),i=!1}else i=Zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(_o(t),t):(_o(t),null)}return _o(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bc(t,t.updateQueue),B(t),null);case 4:return ye(),e===null&&Sd(t.stateNode.containerInfo),B(t),null;case 10:return ra(t.type),B(t),null;case 19:if(O(N),r=t.memoizedState,r===null)return B(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Vc(r,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=vo(e),a!==null){for(t.flags|=128,Vc(r,!1),e=a.updateQueue,t.updateQueue=e,Bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)bi(n,e),n=n.sibling;return k(N,N.current&1|2),j&&Li(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Pe()>nu&&(t.flags|=128,i=!0,Vc(r,!1),t.lanes=4194304)}else{if(!i)if(e=vo(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Bc(t,e),Vc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!j)return B(t),null}else 2*Pe()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,Vc(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(B(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Pe(),e.sibling=null,n=N.current,k(N,i?n&1|2:n&1),j&&Li(t,r.treeForkCount),e);case 22:case 23:return _o(t),lo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(B(t),t.subtreeFlags&6&&(t.flags|=8192)):B(t),n=t.updateQueue,n!==null&&Bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&O(Ta),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ra(M),B(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Uc(e,t){switch(Bi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ra(M),ye(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(_o(t),t.alternate===null)throw Error(s(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(_o(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(N),null;case 4:return ye(),null;case 10:return ra(t.type),null;case 22:case 23:return _o(t),lo(),e!==null&&O(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ra(M),null;case 25:return null;default:return null}}function Wc(e,t){switch(Bi(t),t.tag){case 3:ra(M),ye();break;case 26:case 27:case 5:xe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&_o(t);break;case 13:_o(t);break;case 19:O(N);break;case 10:ra(t.type);break;case 22:case 23:_o(t),lo(),e!==null&&O(Ta);break;case 24:ra(M)}}function Gc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Kc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function qc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{io(t,n)}catch(t){Z(e,e.return,t)}}}function Jc(e,t,n){n.props=Zs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Yc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function Xc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Zc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Qc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[gt]=t}catch(t){Z(e,e.return,t)}}function $c(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function el(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||$c(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ln));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[ht]=e,t[gt]=n}catch(t){Z(e,e.return,t)}}var il=!1,V=!1,al=!1,ol=typeof WeakSet==`function`?WeakSet:Set,H=null;function sl(e,t){if(e=e.containerInfo,Rd=sp,e=Ir(e),Lr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=o),p===a&&++d===r&&(l=o),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,H=t;H!==null;)if(t=H,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,H=e;else for(;H!==null;){switch(t=H,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Pd(a,r,n),a[ht]=e,Ot(a),r=a;break a;case`link`:var o=Vf(`link`,`href`,i).get(r+(n.href||``));if(o){for(var c=0;cg&&(o=g,g=h,h=o);var _=Pr(s,h),v=Pr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,T.T=null,n=lu,lu=null;var a=au,o=su;if(X=0,ou=au=null,su=0,W&6)throw Error(s(331));var c=W;if(W|=4,Il(a.current),Ol(a,a.current,o,n),W=c,id(0,!1),We&&typeof We.onPostCommitFiberRoot==`function`)try{We.onPostCommitFiberRoot(Ue,a)}catch{}return!0}finally{E.p=i,T.T=r,Vu(e,t)}}function Wu(e,t,n){t=Di(n,t),t=rc(e.stateNode,t,2),e=Za(e,t,2),e!==null&&(at(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=Di(n,e),n=ic(2),r=Za(t,n,2),r!==null&&(ac(n,r,t,e),at(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Wl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,G===e&&(q&n)===n&&(Y===4||Y===3&&(q&62914560)===q&&300>Pe()-eu?!(W&2)&&Su(e,0):Jl|=n,Xl===q&&(Xl=0)),rd(e)}function qu(e,t){t===0&&(t=rt()),e=fi(e,t),e!==null&&(at(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return Ae(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ke(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=q,a=et(r,r===G?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||tt(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=Pe(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}X!==0&&X!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=qt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+qt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+qt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+qt(n.imageSizes)+`"]`)):i+=`[href="`+qt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+qt(r)+`"][href="`+qt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),Ot(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=Dt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);Ot(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=Dt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Ot(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=Dt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Ot(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=ge.current)?gf(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=Dt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var a=Dt(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(jf(e)))&&!a._p&&(o.instance=a,o.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),a||Nf(i,e,n,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=Dt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Af(e){return`href="`+qt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),Ot(t),e.head.appendChild(t))}function Pf(e){return`[src="`+qt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+qt(n.href)+`"]`);if(r)return t.instance=r,Ot(r),r;var i=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ot(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var a=e.querySelector(jf(i));if(a)return t.state.loading|=4,t.instance=a,Ot(a),a;r=Mf(n),(i=mf.get(i))&&Rf(r,i),a=(e.ownerDocument||e).createElement(`link`),Ot(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),t.state.loading|=4,Lf(a,n.precedence,e),t.instance=a;case`script`:return a=Pf(n.src),(i=e.querySelector(Ff(a)))?(t.instance=i,Ot(i),i):(r=n,(i=mf.get(a))&&(r=h({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Ot(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Uf(e,t,n){if(n===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 Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ot(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),Ot(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=s()}))(),l=n(),u=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),d=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),f=e=>{let t=d(e);return t.charAt(0).toUpperCase()+t.slice(1)},p=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),m=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},h={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`},g=(0,l.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,l.createElement)(`svg`,{ref:c,...h,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:p(`lucide`,i),...!a&&!m(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,l.createElement)(e,t)),...Array.isArray(a)?a:[a]])),_=(e,t)=>{let n=(0,l.forwardRef)(({className:n,...r},i)=>(0,l.createElement)(g,{ref:i,iconNode:t,className:p(`lucide-${u(f(e))}`,`lucide-${e}`,n),...r}));return n.displayName=f(e),n},v=_(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),y=_(`award`,[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]),b=_(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),x=_(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),ee=_(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),S=_(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),C=_(`clock`,[[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),te=_(`heart`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]),ne=_(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),re=_(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),w=_(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),ie=_(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),ae=_(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),oe=_(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),se=_(`thumbs-up`,[[`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`,key:`emmmcr`}],[`path`,{d:`M7 10v12`,key:`1qc93n`}]]),ce=_(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),le=_(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),ue=_(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),T=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),E=e(((e,t)=>{t.exports=T()}))(),de=`/api`;(0,c.createRoot)(document.getElementById(`root`)).render((0,E.jsx)(l.StrictMode,{children:(0,E.jsx)(()=>{let[e,t]=(0,l.useState)(`home`),[n,r]=(0,l.useState)(!1),[i,a]=(0,l.useState)(1),[o,s]=(0,l.useState)({situation:``,thought:``}),[c,u]=(0,l.useState)({belief:null,helpfulness:null,recall:null,learning:null}),[d,f]=(0,l.useState)(!1),p=[{value:4,label:`Strongly Agree`},{value:3,label:`Somewhat Agree`},{value:2,label:`Somewhat Disagree`},{value:1,label:`Strongly Disagree`}],m=(e,t)=>{u(n=>({...n,[e]:t}))},[h,g]=(0,l.useState)(null),[_,T]=(0,l.useState)(null),[fe,pe]=(0,l.useState)(null),[D,O]=(0,l.useState)([]),[k,me]=(0,l.useState)(null),[he,ge]=(0,l.useState)(!1),[_e,ve]=(0,l.useState)(null);(0,l.useEffect)(()=>{(async()=>{try{g((await(await fetch(`${de}/session/init`,{method:`POST`,headers:{"Content-Type":`application/json`}})).json()).session_id)}catch(e){console.error(`Session init failed:`,e),g(`demo-session-`+Date.now())}})()},[]);let ye=async()=>{ge(!0),ve(null);try{let e=await fetch(`${de}/detect`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought})});if(!e.ok)throw Error(`Detection failed`);T(await e.json()),a(2)}catch(e){ve(`Failed to detect distortions. Please try again.`),console.error(e)}ge(!1)},be=async()=>{if(_){ge(!0),ve(null);try{let e=await fetch(`${de}/analyze`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,distortions:_.distortion_types})});if(!e.ok)throw Error(`Analysis failed`);pe(await e.json()),a(3)}catch(e){ve(`Failed to analyze thought. Please try again.`),console.error(e)}ge(!1)}},[xe,Se]=(0,l.useState)([]),[Ce,we]=(0,l.useState)(0),[Te,Ee]=(0,l.useState)([`CBT`]),[De,Oe]=(0,l.useState)(null),[ke,Ae]=(0,l.useState)(null),[je,Me]=(0,l.useState)(!1),[Ne,Pe]=(0,l.useState)(0),[Fe,Ie]=(0,l.useState)(!1);(0,l.useEffect)(()=>{fe&&fe.recommended_therapies&&Ee([`CBT`])},[fe]);let Le=()=>{s({...o,situation:`My wife didn't look up from her phone or answer me when I came to talk to her.`,thought:`Am I not worth her time?`}),Me(!1)};(0,l.useEffect)(()=>{(async()=>{if(i===5&&k!==null&&D[k])try{let e=await fetch(`${de}/instruction_feedback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,current_reframe:D[k].reframe})});if(!e.ok)throw Error(`Network response was not ok`);let t=await e.json();Se([{reframe:D[k].reframe,iteration:0}]),Ae(JSON.parse(t.ai_feedback).summary),Oe(t.ai_feedback),we(0),Pe(0)}catch(e){console.error(`Lỗi khi khởi tạo dữ liệu ở step 5:`,e),Se([{reframe:D[k].reframe,iteration:0}]),we(0),Pe(0)}})()},[i,k,D]);let Re=async()=>{if(!(Ne>=5||k===null||xe.length===0)){Ie(!0);try{let e=xe[xe.length-1],t=await fetch(`${de}/improve`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,current_reframe:e.reframe,history_response:xe,feedback:De})});if(!t.ok)throw Error(`Improvement failed`);let n=await t.json(),r=await fetch(`${de}/instruction_feedback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,current_reframe:n.new_reframe})});if(!t.ok)throw Error(`Network response was not ok`);let i=await r.json();Ae(JSON.parse(i.ai_feedback).summary),Oe(i.ai_feedback);let a={reframe:n.new_reframe,iteration:Ne+1};Se(e=>[...e,a]),Pe(e=>e+1),we(Ne+1),f(!1),u({belief:null,helpfulness:null,recall:null,learning:null})}catch(e){console.error(`Failed to improve reframe:`,e)}finally{Ie(!1)}}},ze=async()=>{if(Te.length){ge(!0),ve(null);try{let e=await fetch(`${de}/reframe`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,recommended_therapies:Te})});if(!e.ok)throw Error(`Generation failed`);O((await e.json()).candidates),a(4)}catch(e){ve(`Failed to generate reframes. Please try again.`),console.error(e)}ge(!1)}},Be=async()=>{let e={session_id:h,timestamp:new Date().toISOString(),input:{situation:o.situation,thought:o.thought},output:{therapy_type:D[k]?.therapy,reframe:D[k]?.reframe},ratings:c};try{if(!(await fetch(`${de}/feedback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})).ok)throw Error(`Failed to save feedback`);console.log(`✅ Feedback saved to server`),f(!0)}catch(e){console.error(`❌ Error saving feedback:`,e),alert(`Could not save feedback. Please check your connection.`)}},Ve=async()=>{if(k!==null)try{await fetch(`${de}/save`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,selected_reframe:D[k],original_thought:o.thought})}),a(5)}catch(e){console.error(`Failed to save selection:`,e),a(5)}},He=()=>{a(1),s({situation:``,thought:``}),T(null),pe(null),O([]),me(null),ve(null),Ee([`CBT`]),u({belief:null,helpfulness:null,recall:null,learning:null}),f(!1),Pe(0),Ie(!1),Se([]),we(0),Oe(null)};return(0,E.jsxs)(`div`,{className:`min-h-screen`,children:[(()=>(0,E.jsx)(`nav`,{className:`bg-white/80 backdrop-blur-md fixed w-full top-0 z-50 shadow-sm`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`flex justify-between items-center h-16`,children:[(0,E.jsxs)(`div`,{className:`flex items-center`,children:[(0,E.jsx)(b,{className:`w-8 h-8 text-indigo-600 mr-2`}),(0,E.jsx)(`span`,{className:`text-xl font-bold text-gray-900`,children:`MindReframe`})]}),(0,E.jsxs)(`div`,{className:`hidden md:flex space-x-8`,children:[(0,E.jsx)(`button`,{onClick:()=>t(`home`),className:`text-gray-700 hover:text-indigo-600 transition`,children:`Home`}),(0,E.jsx)(`button`,{onClick:()=>t(`about`),className:`text-gray-700 hover:text-indigo-600 transition`,children:`About`}),(0,E.jsx)(`button`,{onClick:()=>t(`therapies`),className:`text-gray-700 hover:text-indigo-600 transition`,children:`Therapies`}),(0,E.jsx)(`button`,{onClick:()=>t(`app`),className:`bg-indigo-600 text-white px-6 py-2 rounded-full hover:bg-indigo-700 transition`,children:`Get Started`})]}),(0,E.jsx)(`button`,{className:`md:hidden`,onClick:()=>r(!n),children:n?(0,E.jsx)(ue,{}):(0,E.jsx)(re,{})})]}),n&&(0,E.jsxs)(`div`,{className:`md:hidden pb-4`,children:[(0,E.jsx)(`button`,{onClick:()=>{t(`home`),r(!1)},className:`block w-full text-left py-2 text-gray-700`,children:`Home`}),(0,E.jsx)(`button`,{onClick:()=>{t(`about`),r(!1)},className:`block w-full text-left py-2 text-gray-700`,children:`About`}),(0,E.jsx)(`button`,{onClick:()=>{t(`therapies`),r(!1)},className:`block w-full text-left py-2 text-gray-700`,children:`Therapies`}),(0,E.jsx)(`button`,{onClick:()=>{t(`app`),r(!1)},className:`block w-full text-left py-2 text-indigo-600 font-semibold`,children:`Get Started`})]})]})}))(),e===`home`&&(()=>(0,E.jsxs)(`div`,{className:`pt-16`,children:[(0,E.jsxs)(`section`,{className:`relative min-h-screen flex items-center bg-gradient-to-br from-indigo-50 via-purple-50 to-pink-50`,children:[(0,E.jsxs)(`div`,{className:`absolute inset-0 overflow-hidden`,children:[(0,E.jsx)(`div`,{className:`absolute -top-1/2 -right-1/2 w-full h-full bg-gradient-to-br from-indigo-200/30 to-transparent rounded-full blur-3xl`}),(0,E.jsx)(`div`,{className:`absolute -bottom-1/2 -left-1/2 w-full h-full bg-gradient-to-tr from-purple-200/30 to-transparent rounded-full blur-3xl`})]}),(0,E.jsx)(`div`,{className:`relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20`,children:(0,E.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-12 items-center`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsxs)(`h1`,{className:`text-5xl md:text-6xl font-bold text-gray-900 mb-6 leading-tight`,children:[`Transform Your`,(0,E.jsx)(`span`,{className:`text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600`,children:` Thoughts`})]}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600 mb-8`,children:`Evidence-based cognitive reframing powered by AI and multiple therapeutic approaches. Find the perspective that works for you.`}),(0,E.jsxs)(`div`,{className:`flex flex-col sm:flex-row gap-4`,children:[(0,E.jsxs)(`button`,{onClick:()=>t(`app`),className:`bg-indigo-600 text-white px-8 py-4 rounded-full font-semibold hover:bg-indigo-700 transition shadow-lg hover:shadow-xl flex items-center justify-center`,children:[`Start Your Journey`,(0,E.jsx)(v,{className:`ml-2 w-5 h-5`})]}),(0,E.jsx)(`button`,{onClick:()=>t(`about`),className:`bg-white text-indigo-600 px-8 py-4 rounded-full font-semibold hover:bg-gray-50 transition shadow-lg flex items-center justify-center`,children:`Learn More`})]})]}),(0,E.jsx)(`div`,{className:`hidden md:block`,children:(0,E.jsxs)(`div`,{className:`relative`,children:[(0,E.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-r from-indigo-500 to-purple-500 rounded-3xl blur-2xl opacity-20`}),(0,E.jsx)(`div`,{className:`relative bg-white rounded-3xl shadow-2xl p-8`,children:(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-center space-x-4`,children:[(0,E.jsx)(`div`,{className:`bg-indigo-100 p-3 rounded-full`,children:(0,E.jsx)(b,{className:`w-6 h-6 text-indigo-600`})}),(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(`div`,{className:`h-4 bg-gray-200 rounded w-32`}),(0,E.jsx)(`div`,{className:`h-3 bg-gray-100 rounded w-24`})]})]}),(0,E.jsxs)(`div`,{className:`flex items-center space-x-4`,children:[(0,E.jsx)(`div`,{className:`bg-purple-100 p-3 rounded-full`,children:(0,E.jsx)(oe,{className:`w-6 h-6 text-purple-600`})}),(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(`div`,{className:`h-4 bg-gray-200 rounded w-40`}),(0,E.jsx)(`div`,{className:`h-3 bg-gray-100 rounded w-28`})]})]}),(0,E.jsxs)(`div`,{className:`flex items-center space-x-4`,children:[(0,E.jsx)(`div`,{className:`bg-pink-100 p-3 rounded-full`,children:(0,E.jsx)(te,{className:`w-6 h-6 text-pink-600`})}),(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(`div`,{className:`h-4 bg-gray-200 rounded w-36`}),(0,E.jsx)(`div`,{className:`h-3 bg-gray-100 rounded w-32`})]})]})]})})]})})]})})]}),(0,E.jsx)(`section`,{className:`py-20 bg-white`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`text-center mb-16`,children:[(0,E.jsx)(`h2`,{className:`text-4xl font-bold text-gray-900 mb-4`,children:`Why MindReframe?`}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600`,children:`Science-backed features designed for your well-being`})]}),(0,E.jsxs)(`div`,{className:`grid md:grid-cols-3 gap-8`,children:[(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-indigo-50 to-indigo-100 p-8 rounded-2xl`,children:[(0,E.jsx)(`div`,{className:`bg-indigo-600 w-14 h-14 rounded-full flex items-center justify-center mb-6`,children:(0,E.jsx)(ae,{className:`w-7 h-7 text-white`})}),(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-3`,children:`Evidence-Based`}),(0,E.jsx)(`p`,{className:`text-gray-600`,children:`Built on proven therapeutic frameworks including CBT, ACT, DBT, and 9 other modalities studied in clinical research.`})]}),(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-purple-50 to-purple-100 p-8 rounded-2xl`,children:[(0,E.jsx)(`div`,{className:`bg-purple-600 w-14 h-14 rounded-full flex items-center justify-center mb-6`,children:(0,E.jsx)(le,{className:`w-7 h-7 text-white`})}),(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-3`,children:`Personalized`}),(0,E.jsx)(`p`,{className:`text-gray-600`,children:`Choose the therapeutic approach that resonates with you. Different perspectives for different people.`})]}),(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-pink-50 to-pink-100 p-8 rounded-2xl`,children:[(0,E.jsx)(`div`,{className:`bg-pink-600 w-14 h-14 rounded-full flex items-center justify-center mb-6`,children:(0,E.jsx)(ne,{className:`w-7 h-7 text-white`})}),(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-3`,children:`AI-Powered`}),(0,E.jsx)(`p`,{className:`text-gray-600`,children:`Advanced language models trained to provide empathetic, safe, and clinically appropriate reframes.`})]})]})]})}),(0,E.jsx)(`section`,{className:`py-20 bg-gradient-to-br from-gray-50 to-gray-100`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`text-center mb-16`,children:[(0,E.jsx)(`h2`,{className:`text-4xl font-bold text-gray-900 mb-4`,children:`How It Works`}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600`,children:`Your journey to healthier thinking in 5 simple steps`})]}),(0,E.jsx)(`div`,{className:`grid md:grid-cols-5 gap-8`,children:[{icon:w,title:`Share`,desc:`Tell us your situation and thoughts`},{icon:b,title:`Detect`,desc:`We identify cognitive distortions`},{icon:ce,title:`Analyze`,desc:`Deep analysis of thought patterns`},{icon:oe,title:`Reframe`,desc:`Multiple therapeutic perspectives`},{icon:te,title:`Choose`,desc:`Select what works for you`}].map((e,t)=>(0,E.jsxs)(`div`,{className:`text-center`,children:[(0,E.jsx)(`div`,{className:`bg-white w-20 h-20 rounded-full flex items-center justify-center mx-auto mb-4 shadow-lg`,children:(0,E.jsx)(e.icon,{className:`w-10 h-10 text-indigo-600`})}),(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:e.title}),(0,E.jsx)(`p`,{className:`text-sm text-gray-600`,children:e.desc})]},t))})]})}),(0,E.jsx)(`section`,{className:`py-20 bg-gradient-to-r from-indigo-600 to-purple-600`,children:(0,E.jsxs)(`div`,{className:`max-w-4xl mx-auto text-center px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`h2`,{className:`text-4xl font-bold text-white mb-6`,children:`Ready to Transform Your Thinking?`}),(0,E.jsx)(`p`,{className:`text-xl text-indigo-100 mb-8`,children:`Join thousands who have discovered healthier perspectives through cognitive reframing`}),(0,E.jsxs)(`button`,{onClick:()=>t(`app`),className:`bg-white text-indigo-600 px-10 py-4 rounded-full font-bold text-lg hover:bg-gray-100 transition shadow-xl inline-flex items-center`,children:[`Start Free Today`,(0,E.jsx)(v,{className:`ml-2 w-5 h-5`})]})]})})]}))(),e===`about`&&(()=>(0,E.jsx)(`div`,{className:`pt-24 pb-20 min-h-screen bg-gradient-to-br from-indigo-50 via-white to-purple-50`,children:(0,E.jsxs)(`div`,{className:`max-w-4xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`h1`,{className:`text-5xl font-bold text-gray-900 mb-8`,children:`About MindReframe`}),(0,E.jsxs)(`div`,{className:`bg-white rounded-3xl shadow-xl p-8 mb-8`,children:[(0,E.jsx)(`h2`,{className:`text-2xl font-bold text-gray-900 mb-4`,children:`Our Mission`}),(0,E.jsx)(`p`,{className:`text-gray-700 mb-4`,children:`MindReframe combines cutting-edge AI technology with evidence-based psychotherapy to make mental health support accessible, personalized, and effective for everyone.`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`We believe that mental well-being should be within reach for all, and that the right perspective can make a profound difference in how we experience life's challenges.`})]}),(0,E.jsxs)(`div`,{className:`bg-white rounded-3xl shadow-xl p-8 mb-8`,children:[(0,E.jsx)(`h2`,{className:`text-2xl font-bold text-gray-900 mb-4`,children:`The Science Behind It`}),(0,E.jsxs)(`p`,{className:`text-gray-700 mb-4`,children:[`Our platform is built on `,(0,E.jsx)(`strong`,{children:`ReframeBench`}),`, a comprehensive benchmark evaluating large language models across 12 distinct therapeutic modalities. This research ensures that our AI provides clinically appropriate and safe cognitive reframes.`]}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`We integrate principles from CBT, ACT, DBT, REBT, Schema Therapy, MBCT, CFT, Narrative Therapy, SFBT, and Motivational Interviewing - giving you access to diverse therapeutic perspectives.`})]}),(0,E.jsxs)(`div`,{className:`bg-white rounded-3xl shadow-xl p-8`,children:[(0,E.jsx)(`h2`,{className:`text-2xl font-bold text-gray-900 mb-4`,children:`Important Note`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`MindReframe is designed as a self-help tool and educational resource. It is not a replacement for professional mental health care. If you're experiencing severe distress, please reach out to a qualified mental health professional.`})]})]})}))(),e===`therapies`&&(()=>(0,E.jsx)(`div`,{className:`pt-24 pb-20 min-h-screen bg-gradient-to-br from-purple-50 via-white to-pink-50`,children:(0,E.jsxs)(`div`,{className:`max-w-6xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`h1`,{className:`text-5xl font-bold text-gray-900 mb-4 text-center`,children:`Therapeutic Approaches`}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600 mb-12 text-center`,children:`Explore the diverse perspectives we offer`}),(0,E.jsx)(`div`,{className:`grid md:grid-cols-2 gap-6`,children:[{name:`CBT`,full:`Cognitive Behavioral Therapy`,color:`indigo`,desc:`Challenge and change unhelpful thoughts through evidence and logic`},{name:`ACT`,full:`Acceptance & Commitment Therapy`,color:`purple`,desc:`Accept thoughts and commit to value-driven actions`},{name:`DBT`,full:`Dialectical Behavior Therapy`,color:`pink`,desc:`Balance acceptance with change through mindfulness`},{name:`REBT`,full:`Rational Emotive Behavior Therapy`,color:`blue`,desc:`Dispute irrational beliefs with rational alternatives`},{name:`MBCT`,full:`Mindfulness-Based Cognitive Therapy`,color:`green`,desc:`Combine mindfulness with cognitive techniques`},{name:`CFT`,full:`Compassion-Focused Therapy`,color:`rose`,desc:`Cultivate self-compassion and kindness`},{name:`Schema Therapy`,full:`Schema Therapy`,color:`violet`,desc:`Identify and heal deep-rooted patterns`},{name:`Narrative`,full:`Narrative Therapy`,color:`amber`,desc:`Rewrite your story and externalize problems`},{name:`SFBT`,full:`Solution-Focused Brief Therapy`,color:`cyan`,desc:`Focus on solutions rather than problems`},{name:`MI`,full:`Motivational Interviewing`,color:`emerald`,desc:`Enhance motivation for positive change`}].map((e,t)=>(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-${e.color}-50 to-${e.color}-100 p-6 rounded-2xl border-2 border-${e.color}-200`,children:[(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-2`,children:e.name}),(0,E.jsx)(`p`,{className:`text-sm text-gray-600 mb-3 font-medium`,children:e.full}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:e.desc})]},t))})]})}))(),e===`app`&&(()=>(0,E.jsx)(`div`,{className:`pt-20 pb-12 min-h-screen bg-gradient-to-br from-indigo-50 via-purple-50 to-pink-50`,children:(0,E.jsxs)(`div`,{className:`max-w-4xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`div`,{className:`mb-8 bg-white/80 backdrop-blur-sm rounded-2xl shadow-lg p-6`,children:(0,E.jsx)(`div`,{className:`flex items-center justify-between`,children:[`Input`,`Detect`,`Analyze`,`Reframe`,`Select`].map((e,t)=>(0,E.jsxs)(l.Fragment,{children:[(0,E.jsxs)(`div`,{className:`flex flex-col items-center`,children:[(0,E.jsx)(`div`,{className:`w-12 h-12 rounded-full flex items-center justify-center font-bold transition-all duration-300 ${i>t+1?`bg-green-500 text-white shadow-lg scale-110`:i===t+1?`bg-indigo-600 text-white shadow-lg animate-pulse`:`bg-gray-200 text-gray-400`}`,children:i>t+1?(0,E.jsx)(ee,{className:`w-6 h-6`}):t+1}),(0,E.jsx)(`span`,{className:`mt-2 text-xs font-medium text-gray-700`,children:e})]}),t<4&&(0,E.jsx)(`div`,{className:`flex-1 h-1 mx-2 rounded ${i>t+1?`bg-green-500`:`bg-gray-200`}`})]},t))})}),_e&&(0,E.jsxs)(`div`,{className:`mb-6 bg-red-50 border-2 border-red-200 rounded-xl p-4 flex items-center`,children:[(0,E.jsx)(S,{className:`w-5 h-5 text-red-600 mr-2`}),(0,E.jsx)(`p`,{className:`text-red-800`,children:_e})]}),i===1&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-center`,children:[(0,E.jsx)(`div`,{className:`bg-indigo-100 p-3 rounded-full mr-4`,children:(0,E.jsx)(w,{className:`w-6 h-6 text-indigo-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:`Share Your Thoughts`})]}),(0,E.jsxs)(`button`,{onClick:()=>Me(!je),className:`text-sm font-medium text-indigo-600 hover:text-indigo-800 flex items-center transition-colors`,children:[(0,E.jsx)(ne,{className:`w-4 h-4 mr-1`}),je?`Hide Example`:`See Example`]})]}),je&&(0,E.jsxs)(`div`,{className:`mb-8 bg-blue-50 border border-blue-100 rounded-xl p-5 relative animate-fade-in`,children:[(0,E.jsx)(`button`,{onClick:()=>Me(!1),className:`absolute top-2 right-2 text-gray-400 hover:text-gray-600`,children:(0,E.jsx)(ue,{className:`w-4 h-4`})}),(0,E.jsx)(`h3`,{className:`text-sm font-bold text-blue-800 uppercase tracking-wide mb-3`,children:`Example Scenario`}),(0,E.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-4`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-xs font-semibold text-gray-500 mb-1`,children:`THE SITUATION (Facts only)`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-700 bg-white p-3 rounded-lg border border-blue-100 italic`,children:`"My wife didn't look up from her phone or answer me when I came to talk to her."`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-xs font-semibold text-gray-500 mb-1`,children:`THE THOUGHT (Interpretation)`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-700 bg-white p-3 rounded-lg border border-blue-100 italic`,children:`"Am I not worth her time?"`})]})]}),(0,E.jsx)(`button`,{onClick:Le,className:`mt-4 text-xs font-semibold text-blue-600 hover:text-blue-800 hover:underline`,children:`Click to use this example`})]}),(0,E.jsx)(`p`,{className:`text-gray-600 mb-8`,children:`Let's start by understanding what's on your mind. Be as honest and detailed as you'd like.`}),(0,E.jsxs)(`div`,{className:`mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex justify-between items-baseline mb-3`,children:[(0,E.jsx)(`label`,{className:`block text-sm font-semibold text-gray-700`,children:`What's the situation?`}),(0,E.jsx)(`span`,{className:`text-xs text-gray-400 font-medium`,children:`Objective facts (Who, what, where)`})]}),(0,E.jsx)(`textarea`,{className:`w-full p-4 border-2 border-gray-200 rounded-xl focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 focus:outline-none resize-none transition-all placeholder:text-gray-400`,rows:3,placeholder:`E.g., I made a mistake during my presentation...`,value:o.situation,onChange:e=>s({...o,situation:e.target.value})},`situation-input`)]}),(0,E.jsxs)(`div`,{className:`mb-8`,children:[(0,E.jsxs)(`div`,{className:`flex justify-between items-baseline mb-3`,children:[(0,E.jsx)(`label`,{className:`block text-sm font-semibold text-gray-700`,children:`What thoughts came to mind?`}),(0,E.jsx)(`span`,{className:`text-xs text-gray-400 font-medium`,children:`Your interpretation or feeling`})]}),(0,E.jsx)(`textarea`,{className:`w-full p-4 border-2 border-gray-200 rounded-xl focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 focus:outline-none resize-none transition-all placeholder:text-gray-400`,rows:3,placeholder:`E.g., Everyone thinks I'm incompetent. I'll get fired...`,value:o.thought,onChange:e=>s({...o,thought:e.target.value})},`thought-input`)]}),(0,E.jsx)(`button`,{onClick:ye,disabled:!o.situation||!o.thought||he,className:`w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 disabled:from-gray-400 disabled:to-gray-400 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl transform hover:scale-[1.02]`,children:he?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2`}),`Analyzing Your Thoughts...`]}):(0,E.jsxs)(E.Fragment,{children:[`Begin Analysis`,(0,E.jsx)(x,{className:`w-5 h-5 ml-2`})]})})]}),i===2&&_&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-6`,children:[(0,E.jsx)(`div`,{className:`${_.has_distortion?`bg-yellow-100`:`bg-green-100`} p-3 rounded-full mr-4`,children:_.has_distortion?(0,E.jsx)(b,{className:`w-6 h-6 text-yellow-600`}):(0,E.jsx)(ee,{className:`w-6 h-6 text-green-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:_.has_distortion?`Distortion Detection`:`Great News!`})]}),_.has_distortion?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`div`,{className:`bg-gradient-to-r from-yellow-50 to-amber-50 border-2 border-yellow-300 rounded-xl p-6 mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-start mb-4`,children:[(0,E.jsx)(S,{className:`w-8 h-8 text-yellow-600 mr-3 flex-shrink-0 mt-1`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-2`,children:`Cognitive Distortions Detected`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`We've identified some thinking patterns that may be affecting your perspective.`})]})]}),(0,E.jsxs)(`div`,{className:`mb-4`,children:[(0,E.jsx)(`p`,{className:`font-semibold text-gray-700 mb-3`,children:`Distortion Types:`}),(0,E.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:_.distortion_types.map((e,t)=>(0,E.jsx)(`span`,{className:`bg-yellow-200 text-yellow-900 px-4 py-2 rounded-full text-sm font-semibold`,children:e},t))})]}),(0,E.jsxs)(`div`,{className:`bg-white/50 rounded-lg p-4`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-600 font-medium mb-1`,children:`Understanding:`}),(0,E.jsx)(`p`,{className:`text-gray-800`,children:_.explanation})]})]}),(0,E.jsx)(`button`,{onClick:be,disabled:he,className:`w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 disabled:from-gray-400 disabled:to-gray-400 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:he?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2`}),`Deep Analysis in Progress...`]}):(0,E.jsxs)(E.Fragment,{children:[`Continue to Deep Analysis`,(0,E.jsx)(x,{className:`w-5 h-5 ml-2`})]})})]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`div`,{className:`bg-gradient-to-r from-green-50 to-emerald-50 border-2 border-green-300 rounded-xl p-6 mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-start mb-4`,children:[(0,E.jsx)(ee,{className:`w-8 h-8 text-green-600 mr-3 flex-shrink-0 mt-1`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-2`,children:`Healthy Thinking Pattern`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`Your thought appears to be balanced and realistic. We didn't detect any cognitive distortions.`})]})]}),(0,E.jsxs)(`div`,{className:`bg-white/50 rounded-lg p-4`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-600 font-medium mb-1`,children:`Analysis:`}),(0,E.jsx)(`p`,{className:`text-gray-800`,children:_.explanation})]})]}),(0,E.jsx)(`div`,{className:`bg-blue-50 border-2 border-blue-200 rounded-xl p-6 mb-6`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(ne,{className:`w-6 h-6 text-blue-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Keep It Up!`}),(0,E.jsx)(`p`,{className:`text-gray-700 text-sm`,children:`Your thinking seems clear and grounded. This is a sign of good mental health. If you're still feeling distressed about the situation, consider whether the situation itself needs attention rather than your thoughts about it.`})]})]})}),(0,E.jsxs)(`div`,{className:`flex gap-4`,children:[(0,E.jsxs)(`button`,{onClick:()=>a(1),className:`flex-1 bg-gray-200 hover:bg-gray-300 text-gray-800 font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center`,children:[(0,E.jsx)(ie,{className:`w-5 h-5 mr-2`}),`Try Another Thought`]}),(0,E.jsxs)(`button`,{onClick:()=>t(`home`),className:`flex-1 bg-gradient-to-r from-green-600 to-emerald-600 hover:from-green-700 hover:to-emerald-700 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:[(0,E.jsx)(ee,{className:`w-5 h-5 mr-2`}),`Back to Home`]})]})]})]}),i===3&&fe&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-6`,children:[(0,E.jsx)(`div`,{className:`bg-purple-100 p-3 rounded-full mr-4`,children:(0,E.jsx)(ce,{className:`w-6 h-6 text-purple-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:`Deep Analysis`})]}),(0,E.jsxs)(`div`,{className:`space-y-4 mb-8`,children:[(0,E.jsx)(`div`,{className:`bg-gradient-to-r from-blue-50 to-blue-100 border-l-4 border-blue-500 rounded-lg p-5`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(te,{className:`w-5 h-5 text-blue-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Emotional Impact`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:fe.emotional_impact})]})]})}),(0,E.jsx)(`div`,{className:`bg-gradient-to-r from-purple-50 to-purple-100 border-l-4 border-purple-500 rounded-lg p-5`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(ne,{className:`w-5 h-5 text-purple-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Underlying Beliefs`}),(0,E.jsx)(`ul`,{className:`space-y-1`,children:fe.underlying_beliefs.map((e,t)=>(0,E.jsxs)(`li`,{className:`text-gray-700 flex items-start`,children:[(0,E.jsx)(`span`,{className:`text-purple-600 mr-2`,children:`•`}),(0,E.jsx)(`span`,{children:e})]},t))})]})]})}),(0,E.jsx)(`div`,{className:`bg-gradient-to-r from-pink-50 to-pink-100 border-l-4 border-pink-500 rounded-lg p-5`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(C,{className:`w-5 h-5 text-pink-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-3`,children:`Common Triggers`}),(0,E.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:fe.triggers.map((e,t)=>(0,E.jsx)(`span`,{className:`bg-pink-200 text-pink-900 px-3 py-1 rounded-full text-sm font-medium`,children:e},t))})]})]})})]}),(0,E.jsx)(`button`,{onClick:ze,className:`w-full bg-gradient-to-r from-green-600 to-emerald-600 hover:from-green-700 hover:to-emerald-700 disabled:from-gray-400 disabled:to-gray-400 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:he?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2`}),`Generating `,Te.length,` Perspectives...`]}):(0,E.jsxs)(E.Fragment,{children:[`Generate Reframes (`,Te.length,` Selected)`,(0,E.jsx)(oe,{className:`w-5 h-5 ml-2`})]})})]}),i===4&&D.length>0&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-6`,children:[(0,E.jsx)(`div`,{className:`bg-green-100 p-3 rounded-full mr-4`,children:(0,E.jsx)(oe,{className:`w-6 h-6 text-green-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:`Your Reframe Options`})]}),(0,E.jsx)(`p`,{className:`text-gray-600 mb-6`,children:`We've generated multiple perspectives based on different therapeutic approaches. Choose the one that resonates most with you.`}),(0,E.jsx)(`div`,{className:`space-y-4 mb-8`,children:D.map((e,t)=>(0,E.jsxs)(`div`,{onClick:()=>me(t),className:`p-6 border-2 rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-102 ${k===t?`border-indigo-500 bg-gradient-to-r from-indigo-50 to-purple-50 shadow-lg`:`border-gray-200 hover:border-indigo-300 bg-white hover:shadow-md`}`,children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between mb-4`,children:[(0,E.jsx)(`span`,{className:`bg-indigo-600 text-white px-4 py-2 rounded-full text-sm font-bold`,children:e.therapy}),k===t&&(0,E.jsxs)(`div`,{className:`flex items-center text-indigo-600`,children:[(0,E.jsx)(se,{className:`w-5 h-5 mr-2`}),(0,E.jsx)(`span`,{className:`font-semibold`,children:`Selected`})]})]}),(0,E.jsxs)(`p`,{className:`text-gray-900 font-medium text-lg mb-4 leading-relaxed`,children:[`"`,e.reframe,`"`]}),(0,E.jsxs)(`div`,{className:`bg-white/50 rounded-lg p-4 mb-4`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-600 font-semibold mb-1`,children:`Why this works:`}),(0,E.jsx)(`p`,{className:`text-gray-700 text-sm`,children:e.rationale})]}),e.evaluation&&(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-3 pt-4 border-t border-gray-200`,children:Object.entries(e.evaluation).map(([e,t])=>(0,E.jsxs)(`div`,{className:`text-center`,children:[(0,E.jsx)(`p`,{className:`text-xs text-gray-500 uppercase font-semibold mb-1`,children:e}),(0,E.jsx)(`div`,{className:`flex items-center justify-center`,children:[...[,,,,,]].map((e,n)=>(0,E.jsx)(y,{className:`w-4 h-4 ${n0&&(0,E.jsxs)(`div`,{className:`bg-gradient-to-r from-indigo-50 via-purple-50 to-pink-50 rounded-2xl p-8 mb-8 text-left relative transition-all duration-500`,children:[xe.length>1&&(0,E.jsx)(`div`,{className:`mb-6 flex space-x-2 overflow-x-auto pb-2 scrollbar-hide`,children:xe.map((e,t)=>(0,E.jsx)(`button`,{onClick:()=>we(t),className:`px-4 py-1.5 text-xs font-bold rounded-full transition-all whitespace-nowrap ${Ce===t?`bg-indigo-600 text-white shadow-md`:`bg-white text-indigo-600 border border-indigo-200 hover:bg-indigo-50`}`,children:t===0?`Original`:`Version ${t+1}`},t))}),(0,E.jsxs)(`div`,{className:`mb-6`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-500 uppercase font-semibold mb-2`,children:`Situation`}),(0,E.jsxs)(`p`,{className:`text-gray-800 italic`,children:[`"`,o.situation,`"`]})]}),(0,E.jsxs)(`div`,{className:`mb-6`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-500 uppercase font-semibold mb-2`,children:`Original Thought`}),(0,E.jsxs)(`p`,{className:`text-gray-800 italic`,children:[`"`,o.thought,`"`]})]}),(0,E.jsx)(`div`,{className:`flex items-center justify-center my-6`,children:(0,E.jsx)(v,{className:`w-8 h-8 text-indigo-600`})}),(0,E.jsxs)(`div`,{children:[(0,E.jsxs)(`p`,{className:`text-sm text-gray-500 uppercase font-semibold mb-2 flex justify-between items-center`,children:[(0,E.jsxs)(`span`,{children:[`Your New Perspective (`,D[k].therapy,`)`]}),(0,E.jsx)(`span`,{className:`text-xs bg-purple-200 text-purple-800 px-2 py-0.5 rounded-md`,children:Ce===0?`Original`:`Iteration ${Ce}`})]}),(0,E.jsxs)(`p`,{className:`text-xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600 min-h-[3rem]`,children:[`"`,xe[Ce].reframe,`"`]})]}),(0,E.jsxs)(`div`,{className:`mt-8 pt-6 border-t border-purple-200/50`,children:[(0,E.jsxs)(`div`,{className:`flex items-start mb-6 bg-white/60 p-4 rounded-xl`,children:[(0,E.jsx)(b,{className:`w-5 h-5 text-purple-600 mr-3 mt-0.5 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-sm font-bold text-gray-800 mb-1`,children:`AI Feedback`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-700 leading-relaxed`,children:ke})]})]}),(0,E.jsx)(`div`,{className:`flex justify-end`,children:(0,E.jsx)(`button`,{onClick:Re,disabled:Fe||Ne>=5||Ce!==xe.length-1,className:`text-sm font-bold py-2.5 px-5 rounded-xl flex items-center transition-all shadow-sm + ${Fe||Ne>=5||Ce!==xe.length-1?`bg-gray-200 text-gray-400 cursor-not-allowed`:`bg-white border-2 border-purple-200 text-purple-600 hover:bg-purple-50 hover:border-purple-400 hover:shadow-md`}`,children:Fe?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-4 w-4 border-b-2 border-purple-600 mr-2`}),`Refining...`]}):Ce===xe.length-1?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(oe,{className:`w-4 h-4 mr-2`}),Ne>=5?`Max Refinements Reached`:`Improve Reframe (${Ne}/5)`]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(ie,{className:`w-4 h-4 mr-2`}),`View Latest to Improve`]})})})]})]}),d?(0,E.jsxs)(`div`,{className:`bg-green-50 border border-green-100 rounded-xl p-6 mb-8 flex flex-col items-center justify-center animate-fade-in`,children:[(0,E.jsx)(`div`,{className:`bg-green-100 p-3 rounded-full mb-3`,children:(0,E.jsx)(se,{className:`w-8 h-8 text-green-600`})}),(0,E.jsx)(`p`,{className:`text-green-800 font-bold text-lg`,children:`Thank You!`}),(0,E.jsx)(`p`,{className:`text-green-600 text-sm mt-1 text-center max-w-md`,children:`Your feedback is invaluable for improving our therapeutic models. Keep practicing this reframe whenever you need it.`})]}):(0,E.jsxs)(`div`,{className:`bg-white border border-gray-200 shadow-sm rounded-xl p-6 mb-8 text-left animate-fade-in transition-all`,children:[(0,E.jsxs)(`div`,{className:`mb-6 border-b border-gray-100 pb-4`,children:[(0,E.jsxs)(`h3`,{className:`text-lg font-bold text-gray-800 flex items-center`,children:[(0,E.jsx)(w,{className:`w-5 h-5 mr-2 text-indigo-600`}),`Evaluation`]}),(0,E.jsx)(`p`,{className:`text-sm text-gray-500 mt-1`,children:`How strongly do you agree with the following statements regarding your chosen perspective?`})]}),(0,E.jsxs)(`div`,{className:`space-y-8`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`1. I genuinely believe in this new perspective.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`belief`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.belief===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`2. This perspective helps me reduce my distress.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`helpfulness`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.helpfulness===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`3. I will likely recall this perspective next time I feel this way.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`recall`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.recall===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`4. This exercise improved my ability to cope with negative thoughts.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`learning`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.learning===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]})]}),(0,E.jsx)(`div`,{className:`mt-8 text-center animate-fade-in`,children:(0,E.jsx)(`button`,{onClick:Be,disabled:!c.belief||!c.helpfulness||!c.recall||!c.learning,className:`text-sm bg-indigo-50 text-indigo-600 hover:bg-indigo-100 disabled:opacity-50 disabled:cursor-not-allowed px-8 py-3 rounded-full font-bold transition-all shadow-sm hover:shadow-md`,children:`Submit Evaluation`})})]}),(0,E.jsx)(`div`,{className:`bg-blue-50 border-2 border-blue-200 rounded-xl p-6 mb-8 text-left`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(ne,{className:`w-6 h-6 text-blue-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Practice Makes Progress`}),(0,E.jsx)(`p`,{className:`text-gray-700 text-sm`,children:`Try using this reframe when you notice similar thoughts. It may feel unnatural at first, but with repetition, these healthier thinking patterns will become more automatic.`})]})]})}),(0,E.jsxs)(`button`,{onClick:He,className:`w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:[(0,E.jsx)(ie,{className:`w-5 h-5 mr-2`}),`Work on Another Thought`]})]})]})}))(),(0,E.jsx)(`footer`,{className:`bg-gray-900 text-white py-12`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`grid md:grid-cols-3 gap-8 mb-8`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-4`,children:[(0,E.jsx)(b,{className:`w-6 h-6 text-indigo-400 mr-2`}),(0,E.jsx)(`span`,{className:`text-lg font-bold`,children:`MindReframe`})]}),(0,E.jsx)(`p`,{className:`text-gray-400 text-sm`,children:`Evidence-based cognitive reframing powered by AI and clinical psychology.`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold mb-4`,children:`Important`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-400`,children:`This tool is for educational and self-help purposes. If you're in crisis, please seek professional help immediately.`})]})]}),(0,E.jsx)(`div`,{className:`border-t border-gray-800 pt-8 text-center text-sm text-gray-400`,children:(0,E.jsx)(`p`,{children:`© 2026 MindReframe. Based on MindReframe research.`})})]})})]})},{})})); \ No newline at end of file diff --git a/Web/mind-reframe/dist/assets/index-Cm8lmTTn.css b/Web/mind-reframe/dist/assets/index-Cm8lmTTn.css new file mode 100644 index 0000000000000000000000000000000000000000..a5f9d3094faa3efb908643490c8415919125787d --- /dev/null +++ b/Web/mind-reframe/dist/assets/index-Cm8lmTTn.css @@ -0,0 +1 @@ +*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder{opacity:1;color:#9ca3af}textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-bottom-1\/2{bottom:-50%}.-left-1\/2{left:-50%}.-right-1\/2{right:-50%}.-right-2{right:-.5rem}.-top-1\/2{top:-50%}.-top-2{top:-.5rem}.right-2{right:.5rem}.top-0{top:0}.top-2{top:.5rem}.z-50{z-index:50}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-full{height:100%}.min-h-\[3rem\]{min-height:3rem}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-md{max-width:28rem}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:1s linear infinite spin}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-blue-100{--tw-border-opacity:1;border-color:rgb(219 234 254/var(--tw-border-opacity,1))}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity,1))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-gray-800{--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity,1))}.border-green-100{--tw-border-opacity:1;border-color:rgb(220 252 231/var(--tw-border-opacity,1))}.border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}.border-green-300{--tw-border-opacity:1;border-color:rgb(134 239 172/var(--tw-border-opacity,1))}.border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity,1))}.border-indigo-200{--tw-border-opacity:1;border-color:rgb(199 210 254/var(--tw-border-opacity,1))}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity,1))}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(79 70 229/var(--tw-border-opacity,1))}.border-pink-500{--tw-border-opacity:1;border-color:rgb(236 72 153/var(--tw-border-opacity,1))}.border-purple-200{--tw-border-opacity:1;border-color:rgb(233 213 255/var(--tw-border-opacity,1))}.border-purple-200\/50{border-color:#e9d5ff80}.border-purple-500{--tw-border-opacity:1;border-color:rgb(168 85 247/var(--tw-border-opacity,1))}.border-purple-600{--tw-border-opacity:1;border-color:rgb(147 51 234/var(--tw-border-opacity,1))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}.border-yellow-300{--tw-border-opacity:1;border-color:rgb(253 224 71/var(--tw-border-opacity,1))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(187 247 208/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(238 242 255/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity,1))}.bg-pink-100{--tw-bg-opacity:1;background-color:rgb(252 231 243/var(--tw-bg-opacity,1))}.bg-pink-200{--tw-bg-opacity:1;background-color:rgb(251 207 232/var(--tw-bg-opacity,1))}.bg-pink-600{--tw-bg-opacity:1;background-color:rgb(219 39 119/var(--tw-bg-opacity,1))}.bg-purple-100{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity,1))}.bg-purple-200{--tw-bg-opacity:1;background-color:rgb(233 213 255/var(--tw-bg-opacity,1))}.bg-purple-600{--tw-bg-opacity:1;background-color:rgb(147 51 234/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\/50{background-color:#ffffff80}.bg-white\/60{background-color:#fff9}.bg-white\/80{background-color:#fffc}.bg-white\/90{background-color:#ffffffe6}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.bg-yellow-200{--tw-bg-opacity:1;background-color:rgb(254 240 138/var(--tw-bg-opacity,1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right, var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right, var(--tw-gradient-stops))}.bg-gradient-to-tr{background-image:linear-gradient(to top right, var(--tw-gradient-stops))}.from-blue-50{--tw-gradient-from:#eff6ff var(--tw-gradient-from-position);--tw-gradient-to:#eff6ff00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-50{--tw-gradient-from:#f9fafb var(--tw-gradient-from-position);--tw-gradient-to:#f9fafb00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-50{--tw-gradient-from:#f0fdf4 var(--tw-gradient-from-position);--tw-gradient-to:#f0fdf400 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-600{--tw-gradient-from:#16a34a var(--tw-gradient-from-position);--tw-gradient-to:#16a34a00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-200\/30{--tw-gradient-from:#c7d2fe4d var(--tw-gradient-from-position);--tw-gradient-to:#c7d2fe00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-50{--tw-gradient-from:#eef2ff var(--tw-gradient-from-position);--tw-gradient-to:#eef2ff00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-500{--tw-gradient-from:#6366f1 var(--tw-gradient-from-position);--tw-gradient-to:#6366f100 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from:#4f46e5 var(--tw-gradient-from-position);--tw-gradient-to:#4f46e500 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-50{--tw-gradient-from:#fdf2f8 var(--tw-gradient-from-position);--tw-gradient-to:#fdf2f800 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-200\/30{--tw-gradient-from:#e9d5ff4d var(--tw-gradient-from-position);--tw-gradient-to:#e9d5ff00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-50{--tw-gradient-from:#faf5ff var(--tw-gradient-from-position);--tw-gradient-to:#faf5ff00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.from-yellow-50{--tw-gradient-from:#fefce8 var(--tw-gradient-from-position);--tw-gradient-to:#fefce800 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.via-purple-50{--tw-gradient-to:#faf5ff00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), #faf5ff var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-white{--tw-gradient-to:#fff0 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), #fff var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-amber-50{--tw-gradient-to:#fffbeb var(--tw-gradient-to-position)}.to-blue-100{--tw-gradient-to:#dbeafe var(--tw-gradient-to-position)}.to-emerald-50{--tw-gradient-to:#ecfdf5 var(--tw-gradient-to-position)}.to-emerald-600{--tw-gradient-to:#059669 var(--tw-gradient-to-position)}.to-gray-100{--tw-gradient-to:#f3f4f6 var(--tw-gradient-to-position)}.to-green-100{--tw-gradient-to:#dcfce7 var(--tw-gradient-to-position)}.to-indigo-100{--tw-gradient-to:#e0e7ff var(--tw-gradient-to-position)}.to-pink-100{--tw-gradient-to:#fce7f3 var(--tw-gradient-to-position)}.to-pink-50{--tw-gradient-to:#fdf2f8 var(--tw-gradient-to-position)}.to-purple-100{--tw-gradient-to:#f3e8ff var(--tw-gradient-to-position)}.to-purple-50{--tw-gradient-to:#faf5ff var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to:#a855f7 var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to:#9333ea var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to:transparent var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.fill-yellow-400{fill:#facc15}.fill-yellow-500{fill:#eab308}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-4{padding-bottom:1rem}.pt-16{padding-top:4rem}.pt-20{padding-top:5rem}.pt-24{padding-top:6rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\[10px\]{font-size:10px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.text-green-900{--tw-text-opacity:1;color:rgb(20 83 45/var(--tw-text-opacity,1))}.text-indigo-100{--tw-text-opacity:1;color:rgb(224 231 255/var(--tw-text-opacity,1))}.text-indigo-400{--tw-text-opacity:1;color:rgb(129 140 248/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity,1))}.text-indigo-700{--tw-text-opacity:1;color:rgb(67 56 202/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(49 46 129/var(--tw-text-opacity,1))}.text-pink-600{--tw-text-opacity:1;color:rgb(219 39 119/var(--tw-text-opacity,1))}.text-pink-900{--tw-text-opacity:1;color:rgb(131 24 67/var(--tw-text-opacity,1))}.text-purple-600{--tw-text-opacity:1;color:rgb(147 51 234/var(--tw-text-opacity,1))}.text-purple-800{--tw-text-opacity:1;color:rgb(107 33 168/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.text-transparent{color:#0000}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity,1))}.text-yellow-900{--tw-text-opacity:1;color:rgb(113 63 18/var(--tw-text-opacity,1))}.opacity-20{opacity:.2}.shadow-2xl{--tw-shadow:0 25px 50px -12px #00000040;--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.blur-2xl{--tw-blur:blur(40px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-3xl{--tw-blur:blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.placeholder\:text-gray-400::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-\[1\.02\]:hover{--tw-scale-x:1.02;--tw-scale-y:1.02;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-indigo-200:hover{--tw-border-opacity:1;border-color:rgb(199 210 254/var(--tw-border-opacity,1))}.hover\:border-indigo-300:hover{--tw-border-opacity:1;border-color:rgb(165 180 252/var(--tw-border-opacity,1))}.hover\:border-purple-400:hover{--tw-border-opacity:1;border-color:rgb(192 132 252/var(--tw-border-opacity,1))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.hover\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.hover\:bg-indigo-100:hover{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity,1))}.hover\:bg-indigo-50:hover{--tw-bg-opacity:1;background-color:rgb(238 242 255/var(--tw-bg-opacity,1))}.hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity,1))}.hover\:bg-purple-50:hover{--tw-bg-opacity:1;background-color:rgb(250 245 255/var(--tw-bg-opacity,1))}.hover\:from-green-700:hover{--tw-gradient-from:#15803d var(--tw-gradient-from-position);--tw-gradient-to:#15803d00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-indigo-700:hover{--tw-gradient-from:#4338ca var(--tw-gradient-from-position);--tw-gradient-to:#4338ca00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-emerald-700:hover{--tw-gradient-to:#047857 var(--tw-gradient-to-position)}.hover\:to-purple-700:hover{--tw-gradient-to:#7e22ce var(--tw-gradient-to-position)}.hover\:text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.hover\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.hover\:text-indigo-600:hover{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity,1))}.hover\:text-indigo-800:hover{--tw-text-opacity:1;color:rgb(55 48 163/var(--tw-text-opacity,1))}.hover\:text-yellow-200:hover{--tw-text-opacity:1;color:rgb(254 240 138/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.focus\:border-indigo-500:focus{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity,1))}.focus\:outline-none:focus{outline-offset:2px;outline:2px solid #0000}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow,0 0 #0000)}.focus\:ring-indigo-200:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(199 210 254/var(--tw-ring-opacity,1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:from-gray-400:disabled{--tw-gradient-from:#9ca3af var(--tw-gradient-from-position);--tw-gradient-to:#9ca3af00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.disabled\:to-gray-400:disabled{--tw-gradient-to:#9ca3af var(--tw-gradient-to-position)}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width:640px){.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:768px){.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:text-6xl{font-size:3.75rem;line-height:1}}@media (min-width:1024px){.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}} diff --git a/Web/mind-reframe/dist/assets/index-D75GAFpb.js b/Web/mind-reframe/dist/assets/index-D75GAFpb.js new file mode 100644 index 0000000000000000000000000000000000000000..5626b816801b873dd3adbf2f65a27e9f258024a6 --- /dev/null +++ b/Web/mind-reframe/dist/assets/index-D75GAFpb.js @@ -0,0 +1,10 @@ +Object.create,Object.defineProperty,Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.prototype.hasOwnProperty;var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var ee=Array.isArray;function S(){}var C={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function ne(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function re(e,t){return ne(e.type,t,e.props)}function w(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ie(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ae=/\/+/g;function oe(e,t){return typeof e==`object`&&e&&e.key!=null?ie(``+e.key):t.toString(36)}function se(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(S,S):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ce(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ce(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+oe(e,0):a,ee(o)?(i=``,c!=null&&(i=c.replace(ae,`$&/`)+`/`),ce(o,r,i,``,function(e){return e})):o!=null&&(w(o)&&(o=re(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ae,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(ee(e))for(var u=0;u{n.exports=t()})),r=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,w());else{var t=n(l);t!==null&&oe(x,t.startTime-e)}}var ee=!1,S=-1,C=5,te=-1;function ne(){return g?!0:!(e.unstable_now()-tet&&ne());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&oe(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?w():ee=!1}}}var w;if(typeof y==`function`)w=function(){y(re)};else if(typeof MessageChannel<`u`){var ie=new MessageChannel,ae=ie.port2;ie.port1.onmessage=re,w=function(){ae.postMessage(null)}}else w=function(){_(re,0)};function oe(t,n){S=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(S),S=-1):h=!0,oe(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,w()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(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(e){console.error(e)}}n(),t.exports=a()})),s=e((e=>{var t=i(),r=n(),a=o();function s(e){var t=`https://react.dev/errors/`+e;if(1pe||(e.current=fe[pe],fe[pe]=null,pe--)}function k(e,t){pe++,fe[pe]=e.current,e.current=t}var me=D(null),he=D(null),ge=D(null),_e=D(null);function ve(e,t){switch(k(ge,t),k(he,e),k(me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}O(me),k(me,e)}function ye(){O(me),O(he),O(ge)}function be(e){e.memoizedState!==null&&k(_e,e);var t=me.current,n=Hd(t,e.type);t!==n&&(k(he,e),k(me,n))}function xe(e){he.current===e&&(O(me),O(he)),_e.current===e&&(O(_e),Qf._currentValue=de)}var Se,Ce;function we(e){if(Se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||``,Ce=-1)`:-1i||c[r]!==l[i]){var u=` +`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?we(n):``}function De(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we(`Lazy`);case 13:return e.child!==t&&t!==null?we(`Suspense Fallback`):we(`Suspense`);case 19:return we(`SuspenseList`);case 0:case 15:return Ee(e.type,!1);case 11:return Ee(e.type.render,!1);case 1:return Ee(e.type,!0);case 31:return we(`Activity`);default:return``}}function Oe(e){try{var t=``,n=null;do t+=De(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +Error generating stack: `+e.message+` +`+e.stack}}var ke=Object.prototype.hasOwnProperty,Ae=t.unstable_scheduleCallback,je=t.unstable_cancelCallback,Me=t.unstable_shouldYield,Ne=t.unstable_requestPaint,Pe=t.unstable_now,Fe=t.unstable_getCurrentPriorityLevel,Ie=t.unstable_ImmediatePriority,Le=t.unstable_UserBlockingPriority,Re=t.unstable_NormalPriority,ze=t.unstable_LowPriority,Be=t.unstable_IdlePriority,Ve=t.log,He=t.unstable_setDisableYieldValue,Ue=null,We=null;function Ge(e){if(typeof Ve==`function`&&He(e),We&&typeof We.setStrictMode==`function`)try{We.setStrictMode(Ue,e)}catch{}}var Ke=Math.clz32?Math.clz32:Ye,qe=Math.log,Je=Math.LN2;function Ye(e){return e>>>=0,e===0?32:31-(qe(e)/Je|0)|0}var Xe=256,Ze=262144,Qe=4194304;function $e(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:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 et(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=$e(n))):i=$e(o):i=$e(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=$e(n))):i=$e(o)):i=$e(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function tt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 rt(){var e=Qe;return Qe<<=1,!(Qe&62914560)&&(Qe=4194304),e}function it(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function at(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ot(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),yn=!1;if(vn)try{var bn={};Object.defineProperty(bn,`passive`,{get:function(){yn=!0}}),window.addEventListener(`test`,bn,bn),window.removeEventListener(`test`,bn,bn)}catch{yn=!1}var xn=null,Sn=null,Cn=null;function wn(){if(Cn)return Cn;var e,t=Sn,n=t.length,r,i=`value`in xn?xn.value:xn.textContent,a=i.length;for(e=0;e=nr),ar=` `,or=!1;function sr(e,t){switch(e){case`keyup`:return er.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function cr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var lr=!1;function ur(e,t){switch(e){case`compositionend`:return cr(t);case`keypress`:return t.which===32?(or=!0,ar):null;case`textInput`:return e=t.data,e===ar&&or?null:e;default:return null}}function dr(e,t){if(lr)return e===`compositionend`||!tr&&sr(e,t)?(e=wn(),Cn=Sn=xn=null,lr=!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)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Nr(n)}}function Fr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ir(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Gt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gt(e.document)}return t}function Lr(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`)}var Rr=vn&&`documentMode`in document&&11>=document.documentMode,zr=null,Br=null,Vr=null,Hr=!1;function Ur(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hr||zr==null||zr!==Gt(r)||(r=zr,`selectionStart`in r&&Lr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vr&&Mr(Vr,r)||(Vr=r,r=Ed(Br,`onSelect`),0>=o,i-=o,Fi=1<<32-Ke(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),j&&Li(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),j&&Li(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return j&&Li(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),j&&Li(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===y&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case _:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===y){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===w&&Fa(l)===r.type){n(e,r.sibling),c=i(r,a.props),Ha(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===y?(c=Si(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=xi(a.type,a.key,a.props,null,e.mode,c),Ha(c,a),c.return=e,e=c)}return o(e);case v:a:{for(l=a.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=Ti(a,e.mode,c),c.return=e,e=c}return o(e);case w:return a=Fa(a),b(e,r,a,c)}if(ue(a))return h(e,r,a,c);if(se(a)){if(l=se(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Va(a),c);if(a.$$typeof===S)return b(e,r,ua(e,a),c);Ua(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=Ci(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{Ba=0;var i=b(e,t,n,r);return za=null,i}catch(t){if(t===ka||t===ja)throw t;var a=_i(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ga=Wa(!0),Ka=Wa(!1),qa=!1;function Ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ya(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 Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=mi(e),pi(e,null,n),t}return ui(e,r,t,n),mi(e)}function Qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}function $a(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var eo=!1;function to(){if(eo){var e=ba;if(e!==null)throw e}}function no(e,t,n,r){eo=!1;var i=e.updateQueue;qa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(q&f)===f:(r&f)===f){f!==0&&f===ya&&(eo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:qa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function ro(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function io(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=T.T,s={};T.T=s,zs(e,!1,t,n);try{var c=i(),l=T.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Rs(e,t,Ca(c,r),pu(e)):Rs(e,t,r,pu(e))}catch(n){Rs(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{E.p=a,o!==null&&s.types!==null&&(o.types=s.types),T.T=o}}function Os(){}function ks(e,t,n,r){if(e.tag!==5)throw Error(s(476));var i=As(e).queue;Ds(e,i,t,de,n===null?Os:function(){return js(e),n(r)})}function As(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function js(e){var t=As(e);t.next===null&&(t=e.alternate.memoizedState),Rs(e,t.next.queue,{},pu())}function Ms(){return la(Qf)}function Ns(){return R().memoizedState}function Ps(){return R().memoizedState}function Fs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Xa(n);var r=Za(t,e,n);r!==null&&(hu(r,t,n),Qa(r,t,n)),t={cache:ha()},e.payload=t;return}t=t.return}}function Is(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bs(e)?Vs(t,n):(n=di(e,t,n,r),n!==null&&(hu(n,e,r),Hs(n,t,r)))}function Ls(e,t,n){Rs(e,t,n,pu())}function Rs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Vs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,jr(s,o))return ui(e,t,i,0),G===null&&li(),!1}catch{}if(n=di(e,t,i,r),n!==null)return hu(n,e,r),Hs(n,t,r),!0}return!1}function zs(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(s(479))}else t=di(e,n,r,2),t!==null&&hu(t,e,2)}function Bs(e){var t=e.alternate;return e===P||t!==null&&t===P}function Vs(e,t){xo=bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}var Us={readContext:la,use:Ro,useCallback:L,useContext:L,useEffect:L,useImperativeHandle:L,useLayoutEffect:L,useInsertionEffect:L,useMemo:L,useReducer:L,useRef:L,useState:L,useDebugValue:L,useDeferredValue:L,useTransition:L,useSyncExternalStore:L,useId:L,useHostTransitionStatus:L,useFormState:L,useActionState:L,useOptimistic:L,useMemoCache:L,useCacheRefresh:L};Us.useEffectEvent=L;var Ws={readContext:la,use:Ro,useCallback:function(e,t){return Fo().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:ms,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),fs(4194308,4,bs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fs(4194308,4,e,t)},useInsertionEffect:function(e,t){fs(4,2,e,t)},useMemo:function(e,t){var n=Fo();t=t===void 0?null:t;var r=e();if(So){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Fo();if(n!==void 0){var i=n(t);if(So){Ge(!0);try{n(t)}finally{Ge(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Is.bind(null,P,e),[r.memoizedState,e]},useRef:function(e){var t=Fo();return e={current:e},t.memoizedState=e},useState:function(e){e=Xo(e);var t=e.queue,n=Ls.bind(null,P,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ss,useDeferredValue:function(e,t){return Ts(Fo(),e,t)},useTransition:function(){var e=Xo(!1);return e=Ds.bind(null,P,e.queue,!0,!1),Fo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=P,i=Fo();if(j){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),G===null)throw Error(s(349));q&127||Go(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ms(qo.bind(null,r,a,e),[e]),r.flags|=2048,us(9,{destroy:void 0},Ko.bind(null,r,a,n,t),null),n},useId:function(){var e=Fo(),t=G.identifierPrefix;if(j){var n=Ii,r=Fi;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Co++,0<\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[ht]=t,a[gt]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Pd(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Lc(t)}}return B(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=ge.current,Yi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Hi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Ki(t,!0)}else e=Bd(e).createTextNode(r),e[ht]=t,t.stateNode=e}return B(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Yi(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[ht]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;B(t),e=!1}else n=Zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(_o(t),t):(_o(t),null);if(t.flags&128)throw Error(s(558))}return B(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Yi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[ht]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;B(t),i=!1}else i=Zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(_o(t),t):(_o(t),null)}return _o(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bc(t,t.updateQueue),B(t),null);case 4:return ye(),e===null&&Sd(t.stateNode.containerInfo),B(t),null;case 10:return ra(t.type),B(t),null;case 19:if(O(N),r=t.memoizedState,r===null)return B(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Vc(r,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=vo(e),a!==null){for(t.flags|=128,Vc(r,!1),e=a.updateQueue,t.updateQueue=e,Bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)bi(n,e),n=n.sibling;return k(N,N.current&1|2),j&&Li(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Pe()>nu&&(t.flags|=128,i=!0,Vc(r,!1),t.lanes=4194304)}else{if(!i)if(e=vo(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Bc(t,e),Vc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!j)return B(t),null}else 2*Pe()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,Vc(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(B(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Pe(),e.sibling=null,n=N.current,k(N,i?n&1|2:n&1),j&&Li(t,r.treeForkCount),e);case 22:case 23:return _o(t),lo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(B(t),t.subtreeFlags&6&&(t.flags|=8192)):B(t),n=t.updateQueue,n!==null&&Bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&O(Ta),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ra(M),B(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Uc(e,t){switch(Bi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ra(M),ye(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(_o(t),t.alternate===null)throw Error(s(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(_o(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(N),null;case 4:return ye(),null;case 10:return ra(t.type),null;case 22:case 23:return _o(t),lo(),e!==null&&O(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ra(M),null;case 25:return null;default:return null}}function Wc(e,t){switch(Bi(t),t.tag){case 3:ra(M),ye();break;case 26:case 27:case 5:xe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&_o(t);break;case 13:_o(t);break;case 19:O(N);break;case 10:ra(t.type);break;case 22:case 23:_o(t),lo(),e!==null&&O(Ta);break;case 24:ra(M)}}function Gc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Kc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function qc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{io(t,n)}catch(t){Z(e,e.return,t)}}}function Jc(e,t,n){n.props=Zs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Yc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function Xc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Zc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Qc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[gt]=t}catch(t){Z(e,e.return,t)}}function $c(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function el(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||$c(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ln));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[ht]=e,t[gt]=n}catch(t){Z(e,e.return,t)}}var il=!1,V=!1,al=!1,ol=typeof WeakSet==`function`?WeakSet:Set,H=null;function sl(e,t){if(e=e.containerInfo,Rd=sp,e=Ir(e),Lr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=o),p===a&&++d===r&&(l=o),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,H=t;H!==null;)if(t=H,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,H=e;else for(;H!==null;){switch(t=H,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Pd(a,r,n),a[ht]=e,Ot(a),r=a;break a;case`link`:var o=Vf(`link`,`href`,i).get(r+(n.href||``));if(o){for(var c=0;cg&&(o=g,g=h,h=o);var _=Pr(s,h),v=Pr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,T.T=null,n=lu,lu=null;var a=au,o=su;if(X=0,ou=au=null,su=0,W&6)throw Error(s(331));var c=W;if(W|=4,Il(a.current),Ol(a,a.current,o,n),W=c,id(0,!1),We&&typeof We.onPostCommitFiberRoot==`function`)try{We.onPostCommitFiberRoot(Ue,a)}catch{}return!0}finally{E.p=i,T.T=r,Vu(e,t)}}function Wu(e,t,n){t=Di(n,t),t=rc(e.stateNode,t,2),e=Za(e,t,2),e!==null&&(at(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=Di(n,e),n=ic(2),r=Za(t,n,2),r!==null&&(ac(n,r,t,e),at(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Wl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,G===e&&(q&n)===n&&(Y===4||Y===3&&(q&62914560)===q&&300>Pe()-eu?!(W&2)&&Su(e,0):Jl|=n,Xl===q&&(Xl=0)),rd(e)}function qu(e,t){t===0&&(t=rt()),e=fi(e,t),e!==null&&(at(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return Ae(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ke(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=q,a=et(r,r===G?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||tt(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=Pe(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}X!==0&&X!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=qt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+qt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+qt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+qt(n.imageSizes)+`"]`)):i+=`[href="`+qt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+qt(r)+`"][href="`+qt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),Ot(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=Dt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);Ot(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=Dt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Ot(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=Dt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Ot(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=ge.current)?gf(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=Dt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var a=Dt(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(jf(e)))&&!a._p&&(o.instance=a,o.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),a||Nf(i,e,n,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=Dt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Af(e){return`href="`+qt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),Ot(t),e.head.appendChild(t))}function Pf(e){return`[src="`+qt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+qt(n.href)+`"]`);if(r)return t.instance=r,Ot(r),r;var i=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ot(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var a=e.querySelector(jf(i));if(a)return t.state.loading|=4,t.instance=a,Ot(a),a;r=Mf(n),(i=mf.get(i))&&Rf(r,i),a=(e.ownerDocument||e).createElement(`link`),Ot(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),t.state.loading|=4,Lf(a,n.precedence,e),t.instance=a;case`script`:return a=Pf(n.src),(i=e.querySelector(Ff(a)))?(t.instance=i,Ot(i),i):(r=n,(i=mf.get(a))&&(r=h({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Ot(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Uf(e,t,n){if(n===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 Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ot(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),Ot(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=s()}))(),l=n(),u=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),d=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),f=e=>{let t=d(e);return t.charAt(0).toUpperCase()+t.slice(1)},p=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),m=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},h={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`},g=(0,l.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,l.createElement)(`svg`,{ref:c,...h,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:p(`lucide`,i),...!a&&!m(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,l.createElement)(e,t)),...Array.isArray(a)?a:[a]])),_=(e,t)=>{let n=(0,l.forwardRef)(({className:n,...r},i)=>(0,l.createElement)(g,{ref:i,iconNode:t,className:p(`lucide-${u(f(e))}`,`lucide-${e}`,n),...r}));return n.displayName=f(e),n},v=_(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),y=_(`award`,[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]),b=_(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),x=_(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),ee=_(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),S=_(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),C=_(`clock`,[[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),te=_(`heart`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]),ne=_(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),re=_(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),w=_(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),ie=_(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),ae=_(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),oe=_(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),se=_(`thumbs-up`,[[`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`,key:`emmmcr`}],[`path`,{d:`M7 10v12`,key:`1qc93n`}]]),ce=_(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),le=_(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),ue=_(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),T=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),E=e(((e,t)=>{t.exports=T()}))(),de=`/api`;(0,c.createRoot)(document.getElementById(`root`)).render((0,E.jsx)(l.StrictMode,{children:(0,E.jsx)(()=>{let[e,t]=(0,l.useState)(`home`),[n,r]=(0,l.useState)(!1),[i,a]=(0,l.useState)(1),[o,s]=(0,l.useState)({situation:``,thought:``}),[c,u]=(0,l.useState)({belief:null,helpfulness:null,recall:null,learning:null}),[d,f]=(0,l.useState)(!1),p=[{value:4,label:`Strongly Agree`},{value:3,label:`Somewhat Agree`},{value:2,label:`Somewhat Disagree`},{value:1,label:`Strongly Disagree`}],m=(e,t)=>{u(n=>({...n,[e]:t}))},[h,g]=(0,l.useState)(null),[_,T]=(0,l.useState)(null),[fe,pe]=(0,l.useState)(null),[D,O]=(0,l.useState)([]),[k,me]=(0,l.useState)(null),[he,ge]=(0,l.useState)(!1),[_e,ve]=(0,l.useState)(null);(0,l.useEffect)(()=>{(async()=>{try{g((await(await fetch(`${de}/session/init`,{method:`POST`,headers:{"Content-Type":`application/json`}})).json()).session_id)}catch(e){console.error(`Session init failed:`,e),g(`demo-session-`+Date.now())}})()},[]);let ye=async()=>{ge(!0),ve(null);try{let e=await fetch(`${de}/detect`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought})});if(!e.ok)throw Error(`Detection failed`);T(await e.json()),a(2)}catch(e){ve(`Failed to detect distortions. Please try again.`),console.error(e)}ge(!1)},be=async()=>{if(_){ge(!0),ve(null);try{let e=await fetch(`${de}/analyze`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,distortions:_.distortion_types})});if(!e.ok)throw Error(`Analysis failed`);pe(await e.json()),a(3)}catch(e){ve(`Failed to analyze thought. Please try again.`),console.error(e)}ge(!1)}},[xe,Se]=(0,l.useState)([]),[Ce,we]=(0,l.useState)(0),[Te,Ee]=(0,l.useState)([`CBT`]),[De,Oe]=(0,l.useState)(null),[ke,Ae]=(0,l.useState)(null),[je,Me]=(0,l.useState)(!1),[Ne,Pe]=(0,l.useState)(0),[Fe,Ie]=(0,l.useState)(!1);(0,l.useEffect)(()=>{fe&&fe.recommended_therapies&&Ee([`CBT`])},[fe]);let Le=()=>{s({...o,situation:`My wife didn't look up from her phone or answer me when I came to talk to her.`,thought:`Am I not worth her time?`}),Me(!1)};(0,l.useEffect)(()=>{(async()=>{if(i===5&&k!==null&&D[k])try{let e=await fetch(`${de}/instruction_feedback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,current_reframe:D[k].reframe})});if(!e.ok)throw Error(`Network response was not ok`);let t=await e.json();Se([{reframe:D[k].reframe,iteration:0}]),Ae(JSON.parse(t.ai_feedback).summary),Oe(t.ai_feedback),we(0),Pe(0)}catch(e){console.error(`Lỗi khi khởi tạo dữ liệu ở step 5:`,e),Se([{reframe:D[k].reframe,iteration:0}]),we(0),Pe(0)}})()},[i,k,D]);let Re=async()=>{if(!(Ne>=5||k===null||xe.length===0)){Ie(!0);try{let e=xe[xe.length-1],t=await fetch(`${de}/improve`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,current_reframe:e.reframe,history_response:xe,feedback:De})});if(!t.ok)throw Error(`Improvement failed`);let n=await t.json(),r=await fetch(`${de}/instruction_feedback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,current_reframe:n.new_reframe})});if(!t.ok)throw Error(`Network response was not ok`);let i=await r.json();Ae(JSON.parse(i.ai_feedback).summary),Oe(i.ai_feedback);let a={reframe:n.new_reframe,iteration:Ne+1};Se(e=>[...e,a]),Pe(e=>e+1),we(Ne+1),f(!1),u({belief:null,helpfulness:null,recall:null,learning:null})}catch(e){console.error(`Failed to improve reframe:`,e)}finally{Ie(!1)}}},ze=async()=>{if(Te.length){ge(!0),ve(null);try{let e=await fetch(`${de}/reframe`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,recommended_therapies:Te})});if(!e.ok)throw Error(`Generation failed`);O((await e.json()).candidates),a(4)}catch(e){ve(`Failed to generate reframes. Please try again.`),console.error(e)}ge(!1)}},Be=async()=>{let e={session_id:h,timestamp:new Date().toISOString(),input:{situation:o.situation,thought:o.thought},output:{therapy_type:D[k]?.therapy,reframe:D[k]?.reframe},ratings:c};try{if(!(await fetch(`${de}/feedback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})).ok)throw Error(`Failed to save feedback`);console.log(`✅ Feedback saved to server`),f(!0)}catch(e){console.error(`❌ Error saving feedback:`,e),alert(`Could not save feedback. Please check your connection.`)}},Ve=async()=>{if(k!==null)try{await fetch(`${de}/save`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,selected_reframe:D[k],original_thought:o.thought})}),a(5)}catch(e){console.error(`Failed to save selection:`,e),a(5)}},He=()=>{a(1),s({situation:``,thought:``}),T(null),pe(null),O([]),me(null),ve(null),Ee([`CBT`]),u({belief:null,helpfulness:null,recall:null,learning:null}),f(!1),Pe(0),Ie(!1),Se([]),we(0),Oe(null)};return(0,E.jsxs)(`div`,{className:`min-h-screen`,children:[(()=>(0,E.jsx)(`nav`,{className:`bg-white/80 backdrop-blur-md fixed w-full top-0 z-50 shadow-sm`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`flex justify-between items-center h-16`,children:[(0,E.jsxs)(`div`,{className:`flex items-center`,children:[(0,E.jsx)(b,{className:`w-8 h-8 text-indigo-600 mr-2`}),(0,E.jsx)(`span`,{className:`text-xl font-bold text-gray-900`,children:`MindReframe`})]}),(0,E.jsxs)(`div`,{className:`hidden md:flex space-x-8`,children:[(0,E.jsx)(`button`,{onClick:()=>t(`home`),className:`text-gray-700 hover:text-indigo-600 transition`,children:`Home`}),(0,E.jsx)(`button`,{onClick:()=>t(`about`),className:`text-gray-700 hover:text-indigo-600 transition`,children:`About`}),(0,E.jsx)(`button`,{onClick:()=>t(`therapies`),className:`text-gray-700 hover:text-indigo-600 transition`,children:`Therapies`}),(0,E.jsx)(`button`,{onClick:()=>t(`app`),className:`bg-indigo-600 text-white px-6 py-2 rounded-full hover:bg-indigo-700 transition`,children:`Get Started`})]}),(0,E.jsx)(`button`,{className:`md:hidden`,onClick:()=>r(!n),children:n?(0,E.jsx)(ue,{}):(0,E.jsx)(re,{})})]}),n&&(0,E.jsxs)(`div`,{className:`md:hidden pb-4`,children:[(0,E.jsx)(`button`,{onClick:()=>{t(`home`),r(!1)},className:`block w-full text-left py-2 text-gray-700`,children:`Home`}),(0,E.jsx)(`button`,{onClick:()=>{t(`about`),r(!1)},className:`block w-full text-left py-2 text-gray-700`,children:`About`}),(0,E.jsx)(`button`,{onClick:()=>{t(`therapies`),r(!1)},className:`block w-full text-left py-2 text-gray-700`,children:`Therapies`}),(0,E.jsx)(`button`,{onClick:()=>{t(`app`),r(!1)},className:`block w-full text-left py-2 text-indigo-600 font-semibold`,children:`Get Started`})]})]})}))(),e===`home`&&(()=>(0,E.jsxs)(`div`,{className:`pt-16`,children:[(0,E.jsxs)(`section`,{className:`relative min-h-screen flex items-center bg-gradient-to-br from-indigo-50 via-purple-50 to-pink-50`,children:[(0,E.jsxs)(`div`,{className:`absolute inset-0 overflow-hidden`,children:[(0,E.jsx)(`div`,{className:`absolute -top-1/2 -right-1/2 w-full h-full bg-gradient-to-br from-indigo-200/30 to-transparent rounded-full blur-3xl`}),(0,E.jsx)(`div`,{className:`absolute -bottom-1/2 -left-1/2 w-full h-full bg-gradient-to-tr from-purple-200/30 to-transparent rounded-full blur-3xl`})]}),(0,E.jsx)(`div`,{className:`relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20`,children:(0,E.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-12 items-center`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsxs)(`h1`,{className:`text-5xl md:text-6xl font-bold text-gray-900 mb-6 leading-tight`,children:[`Transform Your`,(0,E.jsx)(`span`,{className:`text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600`,children:` Thoughts`})]}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600 mb-8`,children:`Evidence-based cognitive reframing powered by AI and multiple therapeutic approaches. Find the perspective that works for you.`}),(0,E.jsxs)(`div`,{className:`flex flex-col sm:flex-row gap-4`,children:[(0,E.jsxs)(`button`,{onClick:()=>t(`app`),className:`bg-indigo-600 text-white px-8 py-4 rounded-full font-semibold hover:bg-indigo-700 transition shadow-lg hover:shadow-xl flex items-center justify-center`,children:[`Start Your Journey`,(0,E.jsx)(v,{className:`ml-2 w-5 h-5`})]}),(0,E.jsx)(`button`,{onClick:()=>t(`about`),className:`bg-white text-indigo-600 px-8 py-4 rounded-full font-semibold hover:bg-gray-50 transition shadow-lg flex items-center justify-center`,children:`Learn More`})]})]}),(0,E.jsx)(`div`,{className:`hidden md:block`,children:(0,E.jsxs)(`div`,{className:`relative`,children:[(0,E.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-r from-indigo-500 to-purple-500 rounded-3xl blur-2xl opacity-20`}),(0,E.jsx)(`div`,{className:`relative bg-white rounded-3xl shadow-2xl p-8`,children:(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-center space-x-4`,children:[(0,E.jsx)(`div`,{className:`bg-indigo-100 p-3 rounded-full`,children:(0,E.jsx)(b,{className:`w-6 h-6 text-indigo-600`})}),(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(`div`,{className:`h-4 bg-gray-200 rounded w-32`}),(0,E.jsx)(`div`,{className:`h-3 bg-gray-100 rounded w-24`})]})]}),(0,E.jsxs)(`div`,{className:`flex items-center space-x-4`,children:[(0,E.jsx)(`div`,{className:`bg-purple-100 p-3 rounded-full`,children:(0,E.jsx)(oe,{className:`w-6 h-6 text-purple-600`})}),(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(`div`,{className:`h-4 bg-gray-200 rounded w-40`}),(0,E.jsx)(`div`,{className:`h-3 bg-gray-100 rounded w-28`})]})]}),(0,E.jsxs)(`div`,{className:`flex items-center space-x-4`,children:[(0,E.jsx)(`div`,{className:`bg-pink-100 p-3 rounded-full`,children:(0,E.jsx)(te,{className:`w-6 h-6 text-pink-600`})}),(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(`div`,{className:`h-4 bg-gray-200 rounded w-36`}),(0,E.jsx)(`div`,{className:`h-3 bg-gray-100 rounded w-32`})]})]})]})})]})})]})})]}),(0,E.jsx)(`section`,{className:`py-20 bg-white`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`text-center mb-16`,children:[(0,E.jsx)(`h2`,{className:`text-4xl font-bold text-gray-900 mb-4`,children:`Why MindReframe?`}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600`,children:`Science-backed features designed for your well-being`})]}),(0,E.jsxs)(`div`,{className:`grid md:grid-cols-3 gap-8`,children:[(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-indigo-50 to-indigo-100 p-8 rounded-2xl`,children:[(0,E.jsx)(`div`,{className:`bg-indigo-600 w-14 h-14 rounded-full flex items-center justify-center mb-6`,children:(0,E.jsx)(ae,{className:`w-7 h-7 text-white`})}),(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-3`,children:`Evidence-Based`}),(0,E.jsx)(`p`,{className:`text-gray-600`,children:`Built on proven therapeutic frameworks including CBT, ACT, DBT, and 9 other modalities studied in clinical research.`})]}),(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-purple-50 to-purple-100 p-8 rounded-2xl`,children:[(0,E.jsx)(`div`,{className:`bg-purple-600 w-14 h-14 rounded-full flex items-center justify-center mb-6`,children:(0,E.jsx)(le,{className:`w-7 h-7 text-white`})}),(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-3`,children:`Personalized`}),(0,E.jsx)(`p`,{className:`text-gray-600`,children:`Choose the therapeutic approach that resonates with you. Different perspectives for different people.`})]}),(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-pink-50 to-pink-100 p-8 rounded-2xl`,children:[(0,E.jsx)(`div`,{className:`bg-pink-600 w-14 h-14 rounded-full flex items-center justify-center mb-6`,children:(0,E.jsx)(ne,{className:`w-7 h-7 text-white`})}),(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-3`,children:`AI-Powered`}),(0,E.jsx)(`p`,{className:`text-gray-600`,children:`Advanced language models trained to provide empathetic, safe, and clinically appropriate reframes.`})]})]})]})}),(0,E.jsx)(`section`,{className:`py-20 bg-gradient-to-br from-gray-50 to-gray-100`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`text-center mb-16`,children:[(0,E.jsx)(`h2`,{className:`text-4xl font-bold text-gray-900 mb-4`,children:`How It Works`}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600`,children:`Your journey to healthier thinking in 5 simple steps`})]}),(0,E.jsx)(`div`,{className:`grid md:grid-cols-5 gap-8`,children:[{icon:w,title:`Share`,desc:`Tell us your situation and thoughts`},{icon:b,title:`Detect`,desc:`We identify cognitive distortions`},{icon:ce,title:`Analyze`,desc:`Deep analysis of thought patterns`},{icon:oe,title:`Reframe`,desc:`Multiple therapeutic perspectives`},{icon:te,title:`Choose`,desc:`Select what works for you`}].map((e,t)=>(0,E.jsxs)(`div`,{className:`text-center`,children:[(0,E.jsx)(`div`,{className:`bg-white w-20 h-20 rounded-full flex items-center justify-center mx-auto mb-4 shadow-lg`,children:(0,E.jsx)(e.icon,{className:`w-10 h-10 text-indigo-600`})}),(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:e.title}),(0,E.jsx)(`p`,{className:`text-sm text-gray-600`,children:e.desc})]},t))})]})}),(0,E.jsx)(`section`,{className:`py-20 bg-gradient-to-r from-indigo-600 to-purple-600`,children:(0,E.jsxs)(`div`,{className:`max-w-4xl mx-auto text-center px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`h2`,{className:`text-4xl font-bold text-white mb-6`,children:`Ready to Transform Your Thinking?`}),(0,E.jsx)(`p`,{className:`text-xl text-indigo-100 mb-8`,children:`Join thousands who have discovered healthier perspectives through cognitive reframing`}),(0,E.jsxs)(`button`,{onClick:()=>t(`app`),className:`bg-white text-indigo-600 px-10 py-4 rounded-full font-bold text-lg hover:bg-gray-100 transition shadow-xl inline-flex items-center`,children:[`Start Free Today`,(0,E.jsx)(v,{className:`ml-2 w-5 h-5`})]})]})})]}))(),e===`about`&&(()=>(0,E.jsx)(`div`,{className:`pt-24 pb-20 min-h-screen bg-gradient-to-br from-indigo-50 via-white to-purple-50`,children:(0,E.jsxs)(`div`,{className:`max-w-4xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`h1`,{className:`text-5xl font-bold text-gray-900 mb-8`,children:`About MindReframe`}),(0,E.jsxs)(`div`,{className:`bg-white rounded-3xl shadow-xl p-8 mb-8`,children:[(0,E.jsx)(`h2`,{className:`text-2xl font-bold text-gray-900 mb-4`,children:`Our Mission`}),(0,E.jsx)(`p`,{className:`text-gray-700 mb-4`,children:`MindReframe combines cutting-edge AI technology with evidence-based psychotherapy to make mental health support accessible, personalized, and effective for everyone.`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`We believe that mental well-being should be within reach for all, and that the right perspective can make a profound difference in how we experience life's challenges.`})]}),(0,E.jsxs)(`div`,{className:`bg-white rounded-3xl shadow-xl p-8 mb-8`,children:[(0,E.jsx)(`h2`,{className:`text-2xl font-bold text-gray-900 mb-4`,children:`The Science Behind It`}),(0,E.jsxs)(`p`,{className:`text-gray-700 mb-4`,children:[`Our platform is built on `,(0,E.jsx)(`strong`,{children:`ReframeBench`}),`, a comprehensive benchmark evaluating large language models across 12 distinct therapeutic modalities. This research ensures that our AI provides clinically appropriate and safe cognitive reframes.`]}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`We integrate principles from CBT, ACT, DBT, REBT, Schema Therapy, MBCT, CFT, Narrative Therapy, SFBT, and Motivational Interviewing - giving you access to diverse therapeutic perspectives.`})]}),(0,E.jsxs)(`div`,{className:`bg-white rounded-3xl shadow-xl p-8`,children:[(0,E.jsx)(`h2`,{className:`text-2xl font-bold text-gray-900 mb-4`,children:`Important Note`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`MindReframe is designed as a self-help tool and educational resource. It is not a replacement for professional mental health care. If you're experiencing severe distress, please reach out to a qualified mental health professional.`})]})]})}))(),e===`therapies`&&(()=>(0,E.jsx)(`div`,{className:`pt-24 pb-20 min-h-screen bg-gradient-to-br from-purple-50 via-white to-pink-50`,children:(0,E.jsxs)(`div`,{className:`max-w-6xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`h1`,{className:`text-5xl font-bold text-gray-900 mb-4 text-center`,children:`Therapeutic Approaches`}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600 mb-12 text-center`,children:`Explore the diverse perspectives we offer`}),(0,E.jsx)(`div`,{className:`grid md:grid-cols-2 gap-6`,children:[{name:`CBT`,full:`Cognitive Behavioral Therapy`,color:`indigo`,desc:`Challenge and change unhelpful thoughts through evidence and logic`},{name:`ACT`,full:`Acceptance & Commitment Therapy`,color:`purple`,desc:`Accept thoughts and commit to value-driven actions`},{name:`DBT`,full:`Dialectical Behavior Therapy`,color:`pink`,desc:`Balance acceptance with change through mindfulness`},{name:`REBT`,full:`Rational Emotive Behavior Therapy`,color:`blue`,desc:`Dispute irrational beliefs with rational alternatives`},{name:`MBCT`,full:`Mindfulness-Based Cognitive Therapy`,color:`green`,desc:`Combine mindfulness with cognitive techniques`},{name:`CFT`,full:`Compassion-Focused Therapy`,color:`rose`,desc:`Cultivate self-compassion and kindness`},{name:`Schema Therapy`,full:`Schema Therapy`,color:`violet`,desc:`Identify and heal deep-rooted patterns`},{name:`Narrative`,full:`Narrative Therapy`,color:`amber`,desc:`Rewrite your story and externalize problems`},{name:`SFBT`,full:`Solution-Focused Brief Therapy`,color:`cyan`,desc:`Focus on solutions rather than problems`},{name:`MI`,full:`Motivational Interviewing`,color:`emerald`,desc:`Enhance motivation for positive change`}].map((e,t)=>(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-${e.color}-50 to-${e.color}-100 p-6 rounded-2xl border-2 border-${e.color}-200`,children:[(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-2`,children:e.name}),(0,E.jsx)(`p`,{className:`text-sm text-gray-600 mb-3 font-medium`,children:e.full}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:e.desc})]},t))})]})}))(),e===`app`&&(()=>(0,E.jsx)(`div`,{className:`pt-20 pb-12 min-h-screen bg-gradient-to-br from-indigo-50 via-purple-50 to-pink-50`,children:(0,E.jsxs)(`div`,{className:`max-w-4xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`div`,{className:`mb-8 bg-white/80 backdrop-blur-sm rounded-2xl shadow-lg p-6`,children:(0,E.jsx)(`div`,{className:`flex items-center justify-between`,children:[`Input`,`Detect`,`Analyze`,`Reframe`,`Select`].map((e,t)=>(0,E.jsxs)(l.Fragment,{children:[(0,E.jsxs)(`div`,{className:`flex flex-col items-center`,children:[(0,E.jsx)(`div`,{className:`w-12 h-12 rounded-full flex items-center justify-center font-bold transition-all duration-300 ${i>t+1?`bg-green-500 text-white shadow-lg scale-110`:i===t+1?`bg-indigo-600 text-white shadow-lg animate-pulse`:`bg-gray-200 text-gray-400`}`,children:i>t+1?(0,E.jsx)(ee,{className:`w-6 h-6`}):t+1}),(0,E.jsx)(`span`,{className:`mt-2 text-xs font-medium text-gray-700`,children:e})]}),t<4&&(0,E.jsx)(`div`,{className:`flex-1 h-1 mx-2 rounded ${i>t+1?`bg-green-500`:`bg-gray-200`}`})]},t))})}),_e&&(0,E.jsxs)(`div`,{className:`mb-6 bg-red-50 border-2 border-red-200 rounded-xl p-4 flex items-center`,children:[(0,E.jsx)(S,{className:`w-5 h-5 text-red-600 mr-2`}),(0,E.jsx)(`p`,{className:`text-red-800`,children:_e})]}),i===1&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-center`,children:[(0,E.jsx)(`div`,{className:`bg-indigo-100 p-3 rounded-full mr-4`,children:(0,E.jsx)(w,{className:`w-6 h-6 text-indigo-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:`Share Your Thoughts`})]}),(0,E.jsxs)(`button`,{onClick:()=>Me(!je),className:`text-sm font-medium text-indigo-600 hover:text-indigo-800 flex items-center transition-colors`,children:[(0,E.jsx)(ne,{className:`w-4 h-4 mr-1`}),je?`Hide Example`:`See Example`]})]}),je&&(0,E.jsxs)(`div`,{className:`mb-8 bg-blue-50 border border-blue-100 rounded-xl p-5 relative animate-fade-in`,children:[(0,E.jsx)(`button`,{onClick:()=>Me(!1),className:`absolute top-2 right-2 text-gray-400 hover:text-gray-600`,children:(0,E.jsx)(ue,{className:`w-4 h-4`})}),(0,E.jsx)(`h3`,{className:`text-sm font-bold text-blue-800 uppercase tracking-wide mb-3`,children:`Example Scenario`}),(0,E.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-4`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-xs font-semibold text-gray-500 mb-1`,children:`THE SITUATION (Facts only)`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-700 bg-white p-3 rounded-lg border border-blue-100 italic`,children:`"I sent a message to my friend 3 hours ago and haven't received a reply yet."`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-xs font-semibold text-gray-500 mb-1`,children:`THE THOUGHT (Interpretation)`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-700 bg-white p-3 rounded-lg border border-blue-100 italic`,children:`"They are ignoring me because they hate me. I always mess up relationships."`})]})]}),(0,E.jsx)(`button`,{onClick:Le,className:`mt-4 text-xs font-semibold text-blue-600 hover:text-blue-800 hover:underline`,children:`Click to use this example`})]}),(0,E.jsx)(`p`,{className:`text-gray-600 mb-8`,children:`Let's start by understanding what's on your mind. Be as honest and detailed as you'd like.`}),(0,E.jsxs)(`div`,{className:`mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex justify-between items-baseline mb-3`,children:[(0,E.jsx)(`label`,{className:`block text-sm font-semibold text-gray-700`,children:`What's the situation?`}),(0,E.jsx)(`span`,{className:`text-xs text-gray-400 font-medium`,children:`Objective facts (Who, what, where)`})]}),(0,E.jsx)(`textarea`,{className:`w-full p-4 border-2 border-gray-200 rounded-xl focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 focus:outline-none resize-none transition-all placeholder:text-gray-400`,rows:3,placeholder:`E.g., I made a mistake during my presentation...`,value:o.situation,onChange:e=>s({...o,situation:e.target.value})},`situation-input`)]}),(0,E.jsxs)(`div`,{className:`mb-8`,children:[(0,E.jsxs)(`div`,{className:`flex justify-between items-baseline mb-3`,children:[(0,E.jsx)(`label`,{className:`block text-sm font-semibold text-gray-700`,children:`What thoughts came to mind?`}),(0,E.jsx)(`span`,{className:`text-xs text-gray-400 font-medium`,children:`Your interpretation or feeling`})]}),(0,E.jsx)(`textarea`,{className:`w-full p-4 border-2 border-gray-200 rounded-xl focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 focus:outline-none resize-none transition-all placeholder:text-gray-400`,rows:3,placeholder:`E.g., Everyone thinks I'm incompetent. I'll get fired...`,value:o.thought,onChange:e=>s({...o,thought:e.target.value})},`thought-input`)]}),(0,E.jsx)(`button`,{onClick:ye,disabled:!o.situation||!o.thought||he,className:`w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 disabled:from-gray-400 disabled:to-gray-400 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl transform hover:scale-[1.02]`,children:he?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2`}),`Analyzing Your Thoughts...`]}):(0,E.jsxs)(E.Fragment,{children:[`Begin Analysis`,(0,E.jsx)(x,{className:`w-5 h-5 ml-2`})]})})]}),i===2&&_&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-6`,children:[(0,E.jsx)(`div`,{className:`${_.has_distortion?`bg-yellow-100`:`bg-green-100`} p-3 rounded-full mr-4`,children:_.has_distortion?(0,E.jsx)(b,{className:`w-6 h-6 text-yellow-600`}):(0,E.jsx)(ee,{className:`w-6 h-6 text-green-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:_.has_distortion?`Distortion Detection`:`Great News!`})]}),_.has_distortion?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`div`,{className:`bg-gradient-to-r from-yellow-50 to-amber-50 border-2 border-yellow-300 rounded-xl p-6 mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-start mb-4`,children:[(0,E.jsx)(S,{className:`w-8 h-8 text-yellow-600 mr-3 flex-shrink-0 mt-1`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-2`,children:`Cognitive Distortions Detected`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`We've identified some thinking patterns that may be affecting your perspective.`})]})]}),(0,E.jsxs)(`div`,{className:`mb-4`,children:[(0,E.jsx)(`p`,{className:`font-semibold text-gray-700 mb-3`,children:`Distortion Types:`}),(0,E.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:_.distortion_types.map((e,t)=>(0,E.jsx)(`span`,{className:`bg-yellow-200 text-yellow-900 px-4 py-2 rounded-full text-sm font-semibold`,children:e},t))})]}),(0,E.jsxs)(`div`,{className:`bg-white/50 rounded-lg p-4`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-600 font-medium mb-1`,children:`Understanding:`}),(0,E.jsx)(`p`,{className:`text-gray-800`,children:_.explanation})]})]}),(0,E.jsx)(`button`,{onClick:be,disabled:he,className:`w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 disabled:from-gray-400 disabled:to-gray-400 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:he?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2`}),`Deep Analysis in Progress...`]}):(0,E.jsxs)(E.Fragment,{children:[`Continue to Deep Analysis`,(0,E.jsx)(x,{className:`w-5 h-5 ml-2`})]})})]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`div`,{className:`bg-gradient-to-r from-green-50 to-emerald-50 border-2 border-green-300 rounded-xl p-6 mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-start mb-4`,children:[(0,E.jsx)(ee,{className:`w-8 h-8 text-green-600 mr-3 flex-shrink-0 mt-1`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-2`,children:`Healthy Thinking Pattern`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`Your thought appears to be balanced and realistic. We didn't detect any cognitive distortions.`})]})]}),(0,E.jsxs)(`div`,{className:`bg-white/50 rounded-lg p-4`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-600 font-medium mb-1`,children:`Analysis:`}),(0,E.jsx)(`p`,{className:`text-gray-800`,children:_.explanation})]})]}),(0,E.jsx)(`div`,{className:`bg-blue-50 border-2 border-blue-200 rounded-xl p-6 mb-6`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(ne,{className:`w-6 h-6 text-blue-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Keep It Up!`}),(0,E.jsx)(`p`,{className:`text-gray-700 text-sm`,children:`Your thinking seems clear and grounded. This is a sign of good mental health. If you're still feeling distressed about the situation, consider whether the situation itself needs attention rather than your thoughts about it.`})]})]})}),(0,E.jsxs)(`div`,{className:`flex gap-4`,children:[(0,E.jsxs)(`button`,{onClick:()=>a(1),className:`flex-1 bg-gray-200 hover:bg-gray-300 text-gray-800 font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center`,children:[(0,E.jsx)(ie,{className:`w-5 h-5 mr-2`}),`Try Another Thought`]}),(0,E.jsxs)(`button`,{onClick:()=>t(`home`),className:`flex-1 bg-gradient-to-r from-green-600 to-emerald-600 hover:from-green-700 hover:to-emerald-700 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:[(0,E.jsx)(ee,{className:`w-5 h-5 mr-2`}),`Back to Home`]})]})]})]}),i===3&&fe&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-6`,children:[(0,E.jsx)(`div`,{className:`bg-purple-100 p-3 rounded-full mr-4`,children:(0,E.jsx)(ce,{className:`w-6 h-6 text-purple-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:`Deep Analysis`})]}),(0,E.jsxs)(`div`,{className:`space-y-4 mb-8`,children:[(0,E.jsx)(`div`,{className:`bg-gradient-to-r from-blue-50 to-blue-100 border-l-4 border-blue-500 rounded-lg p-5`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(te,{className:`w-5 h-5 text-blue-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Emotional Impact`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:fe.emotional_impact})]})]})}),(0,E.jsx)(`div`,{className:`bg-gradient-to-r from-purple-50 to-purple-100 border-l-4 border-purple-500 rounded-lg p-5`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(ne,{className:`w-5 h-5 text-purple-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Underlying Beliefs`}),(0,E.jsx)(`ul`,{className:`space-y-1`,children:fe.underlying_beliefs.map((e,t)=>(0,E.jsxs)(`li`,{className:`text-gray-700 flex items-start`,children:[(0,E.jsx)(`span`,{className:`text-purple-600 mr-2`,children:`•`}),(0,E.jsx)(`span`,{children:e})]},t))})]})]})}),(0,E.jsx)(`div`,{className:`bg-gradient-to-r from-pink-50 to-pink-100 border-l-4 border-pink-500 rounded-lg p-5`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(C,{className:`w-5 h-5 text-pink-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-3`,children:`Common Triggers`}),(0,E.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:fe.triggers.map((e,t)=>(0,E.jsx)(`span`,{className:`bg-pink-200 text-pink-900 px-3 py-1 rounded-full text-sm font-medium`,children:e},t))})]})]})})]}),(0,E.jsx)(`button`,{onClick:ze,className:`w-full bg-gradient-to-r from-green-600 to-emerald-600 hover:from-green-700 hover:to-emerald-700 disabled:from-gray-400 disabled:to-gray-400 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:he?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2`}),`Generating `,Te.length,` Perspectives...`]}):(0,E.jsxs)(E.Fragment,{children:[`Generate Reframes (`,Te.length,` Selected)`,(0,E.jsx)(oe,{className:`w-5 h-5 ml-2`})]})})]}),i===4&&D.length>0&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-6`,children:[(0,E.jsx)(`div`,{className:`bg-green-100 p-3 rounded-full mr-4`,children:(0,E.jsx)(oe,{className:`w-6 h-6 text-green-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:`Your Reframe Options`})]}),(0,E.jsx)(`p`,{className:`text-gray-600 mb-6`,children:`We've generated multiple perspectives based on different therapeutic approaches. Choose the one that resonates most with you.`}),(0,E.jsx)(`div`,{className:`space-y-4 mb-8`,children:D.map((e,t)=>(0,E.jsxs)(`div`,{onClick:()=>me(t),className:`p-6 border-2 rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-102 ${k===t?`border-indigo-500 bg-gradient-to-r from-indigo-50 to-purple-50 shadow-lg`:`border-gray-200 hover:border-indigo-300 bg-white hover:shadow-md`}`,children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between mb-4`,children:[(0,E.jsx)(`span`,{className:`bg-indigo-600 text-white px-4 py-2 rounded-full text-sm font-bold`,children:e.therapy}),k===t&&(0,E.jsxs)(`div`,{className:`flex items-center text-indigo-600`,children:[(0,E.jsx)(se,{className:`w-5 h-5 mr-2`}),(0,E.jsx)(`span`,{className:`font-semibold`,children:`Selected`})]})]}),(0,E.jsxs)(`p`,{className:`text-gray-900 font-medium text-lg mb-4 leading-relaxed`,children:[`"`,e.reframe,`"`]}),(0,E.jsxs)(`div`,{className:`bg-white/50 rounded-lg p-4 mb-4`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-600 font-semibold mb-1`,children:`Why this works:`}),(0,E.jsx)(`p`,{className:`text-gray-700 text-sm`,children:e.rationale})]}),e.evaluation&&(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-3 pt-4 border-t border-gray-200`,children:Object.entries(e.evaluation).map(([e,t])=>(0,E.jsxs)(`div`,{className:`text-center`,children:[(0,E.jsx)(`p`,{className:`text-xs text-gray-500 uppercase font-semibold mb-1`,children:e}),(0,E.jsx)(`div`,{className:`flex items-center justify-center`,children:[...[,,,,,]].map((e,n)=>(0,E.jsx)(y,{className:`w-4 h-4 ${n0&&(0,E.jsxs)(`div`,{className:`bg-gradient-to-r from-indigo-50 via-purple-50 to-pink-50 rounded-2xl p-8 mb-8 text-left relative transition-all duration-500`,children:[xe.length>1&&(0,E.jsx)(`div`,{className:`mb-6 flex space-x-2 overflow-x-auto pb-2 scrollbar-hide`,children:xe.map((e,t)=>(0,E.jsx)(`button`,{onClick:()=>we(t),className:`px-4 py-1.5 text-xs font-bold rounded-full transition-all whitespace-nowrap ${Ce===t?`bg-indigo-600 text-white shadow-md`:`bg-white text-indigo-600 border border-indigo-200 hover:bg-indigo-50`}`,children:t===0?`Original`:`Version ${t+1}`},t))}),(0,E.jsxs)(`div`,{className:`mb-6`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-500 uppercase font-semibold mb-2`,children:`Situation`}),(0,E.jsxs)(`p`,{className:`text-gray-800 italic`,children:[`"`,o.situation,`"`]})]}),(0,E.jsxs)(`div`,{className:`mb-6`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-500 uppercase font-semibold mb-2`,children:`Original Thought`}),(0,E.jsxs)(`p`,{className:`text-gray-800 italic`,children:[`"`,o.thought,`"`]})]}),(0,E.jsx)(`div`,{className:`flex items-center justify-center my-6`,children:(0,E.jsx)(v,{className:`w-8 h-8 text-indigo-600`})}),(0,E.jsxs)(`div`,{children:[(0,E.jsxs)(`p`,{className:`text-sm text-gray-500 uppercase font-semibold mb-2 flex justify-between items-center`,children:[(0,E.jsxs)(`span`,{children:[`Your New Perspective (`,D[k].therapy,`)`]}),(0,E.jsx)(`span`,{className:`text-xs bg-purple-200 text-purple-800 px-2 py-0.5 rounded-md`,children:Ce===0?`Original`:`Iteration ${Ce}`})]}),(0,E.jsxs)(`p`,{className:`text-xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600 min-h-[3rem]`,children:[`"`,xe[Ce].reframe,`"`]})]}),(0,E.jsxs)(`div`,{className:`mt-8 pt-6 border-t border-purple-200/50`,children:[(0,E.jsxs)(`div`,{className:`flex items-start mb-6 bg-white/60 p-4 rounded-xl`,children:[(0,E.jsx)(b,{className:`w-5 h-5 text-purple-600 mr-3 mt-0.5 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-sm font-bold text-gray-800 mb-1`,children:`AI Feedback`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-700 leading-relaxed`,children:ke})]})]}),(0,E.jsx)(`div`,{className:`flex justify-end`,children:(0,E.jsx)(`button`,{onClick:Re,disabled:Fe||Ne>=5||Ce!==xe.length-1,className:`text-sm font-bold py-2.5 px-5 rounded-xl flex items-center transition-all shadow-sm + ${Fe||Ne>=5||Ce!==xe.length-1?`bg-gray-200 text-gray-400 cursor-not-allowed`:`bg-white border-2 border-purple-200 text-purple-600 hover:bg-purple-50 hover:border-purple-400 hover:shadow-md`}`,children:Fe?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-4 w-4 border-b-2 border-purple-600 mr-2`}),`Refining...`]}):Ce===xe.length-1?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(oe,{className:`w-4 h-4 mr-2`}),Ne>=5?`Max Refinements Reached`:`Improve Reframe (${Ne}/5)`]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(ie,{className:`w-4 h-4 mr-2`}),`View Latest to Improve`]})})})]})]}),d?(0,E.jsxs)(`div`,{className:`bg-green-50 border border-green-100 rounded-xl p-6 mb-8 flex flex-col items-center justify-center animate-fade-in`,children:[(0,E.jsx)(`div`,{className:`bg-green-100 p-3 rounded-full mb-3`,children:(0,E.jsx)(se,{className:`w-8 h-8 text-green-600`})}),(0,E.jsx)(`p`,{className:`text-green-800 font-bold text-lg`,children:`Thank You!`}),(0,E.jsx)(`p`,{className:`text-green-600 text-sm mt-1 text-center max-w-md`,children:`Your feedback is invaluable for improving our therapeutic models. Keep practicing this reframe whenever you need it.`})]}):(0,E.jsxs)(`div`,{className:`bg-white border border-gray-200 shadow-sm rounded-xl p-6 mb-8 text-left animate-fade-in transition-all`,children:[(0,E.jsxs)(`div`,{className:`mb-6 border-b border-gray-100 pb-4`,children:[(0,E.jsxs)(`h3`,{className:`text-lg font-bold text-gray-800 flex items-center`,children:[(0,E.jsx)(w,{className:`w-5 h-5 mr-2 text-indigo-600`}),`Evaluation`]}),(0,E.jsx)(`p`,{className:`text-sm text-gray-500 mt-1`,children:`How strongly do you agree with the following statements regarding your chosen perspective?`})]}),(0,E.jsxs)(`div`,{className:`space-y-8`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`1. I genuinely believe in this new perspective.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`belief`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.belief===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`2. This perspective helps me reduce my distress.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`helpfulness`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.helpfulness===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`3. I will likely recall this perspective next time I feel this way.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`recall`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.recall===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`4. This exercise improved my ability to cope with negative thoughts.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`learning`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.learning===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]})]}),(0,E.jsx)(`div`,{className:`mt-8 text-center animate-fade-in`,children:(0,E.jsx)(`button`,{onClick:Be,disabled:!c.belief||!c.helpfulness||!c.recall||!c.learning,className:`text-sm bg-indigo-50 text-indigo-600 hover:bg-indigo-100 disabled:opacity-50 disabled:cursor-not-allowed px-8 py-3 rounded-full font-bold transition-all shadow-sm hover:shadow-md`,children:`Submit Evaluation`})})]}),(0,E.jsx)(`div`,{className:`bg-blue-50 border-2 border-blue-200 rounded-xl p-6 mb-8 text-left`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(ne,{className:`w-6 h-6 text-blue-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Practice Makes Progress`}),(0,E.jsx)(`p`,{className:`text-gray-700 text-sm`,children:`Try using this reframe when you notice similar thoughts. It may feel unnatural at first, but with repetition, these healthier thinking patterns will become more automatic.`})]})]})}),(0,E.jsxs)(`button`,{onClick:He,className:`w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:[(0,E.jsx)(ie,{className:`w-5 h-5 mr-2`}),`Work on Another Thought`]})]})]})}))(),(0,E.jsx)(`footer`,{className:`bg-gray-900 text-white py-12`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`grid md:grid-cols-3 gap-8 mb-8`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-4`,children:[(0,E.jsx)(b,{className:`w-6 h-6 text-indigo-400 mr-2`}),(0,E.jsx)(`span`,{className:`text-lg font-bold`,children:`MindReframe`})]}),(0,E.jsx)(`p`,{className:`text-gray-400 text-sm`,children:`Evidence-based cognitive reframing powered by AI and clinical psychology.`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold mb-4`,children:`Important`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-400`,children:`This tool is for educational and self-help purposes. If you're in crisis, please seek professional help immediately.`})]})]}),(0,E.jsx)(`div`,{className:`border-t border-gray-800 pt-8 text-center text-sm text-gray-400`,children:(0,E.jsx)(`p`,{children:`© 2026 MindReframe. Based on MindReframe research.`})})]})})]})},{})})); \ No newline at end of file diff --git a/Web/mind-reframe/dist/assets/index-DNBzG3Ln.js b/Web/mind-reframe/dist/assets/index-DNBzG3Ln.js new file mode 100644 index 0000000000000000000000000000000000000000..342901a51e4fca7ecf043da6b0d0cf8b332ace61 --- /dev/null +++ b/Web/mind-reframe/dist/assets/index-DNBzG3Ln.js @@ -0,0 +1,13 @@ +Object.create,Object.defineProperty,Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.prototype.hasOwnProperty;var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var ee=Array.isArray;function S(){}var C={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function ne(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function re(e,t){return ne(e.type,t,e.props)}function w(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ie(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ae=/\/+/g;function oe(e,t){return typeof e==`object`&&e&&e.key!=null?ie(``+e.key):t.toString(36)}function se(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(S,S):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ce(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ce(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+oe(e,0):a,ee(o)?(i=``,c!=null&&(i=c.replace(ae,`$&/`)+`/`),ce(o,r,i,``,function(e){return e})):o!=null&&(w(o)&&(o=re(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ae,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(ee(e))for(var u=0;u{n.exports=t()})),r=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,w());else{var t=n(l);t!==null&&oe(x,t.startTime-e)}}var ee=!1,S=-1,C=5,te=-1;function ne(){return g?!0:!(e.unstable_now()-tet&&ne());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&oe(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?w():ee=!1}}}var w;if(typeof y==`function`)w=function(){y(re)};else if(typeof MessageChannel<`u`){var ie=new MessageChannel,ae=ie.port2;ie.port1.onmessage=re,w=function(){ae.postMessage(null)}}else w=function(){_(re,0)};function oe(t,n){S=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(S),S=-1):h=!0,oe(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,w()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(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(e){console.error(e)}}n(),t.exports=a()})),s=e((e=>{var t=i(),r=n(),a=o();function s(e){var t=`https://react.dev/errors/`+e;if(1pe||(e.current=fe[pe],fe[pe]=null,pe--)}function O(e,t){pe++,fe[pe]=e.current,e.current=t}var k=me(null),he=me(null),ge=me(null),_e=me(null);function ve(e,t){switch(O(ge,t),O(he,e),O(k,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}D(k),O(k,e)}function ye(){D(k),D(he),D(ge)}function be(e){e.memoizedState!==null&&O(_e,e);var t=k.current,n=Hd(t,e.type);t!==n&&(O(he,e),O(k,n))}function xe(e){he.current===e&&(D(k),D(he)),_e.current===e&&(D(_e),Qf._currentValue=de)}var Se,Ce;function we(e){if(Se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||``,Ce=-1)`:-1i||c[r]!==l[i]){var u=` +`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?we(n):``}function De(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we(`Lazy`);case 13:return e.child!==t&&t!==null?we(`Suspense Fallback`):we(`Suspense`);case 19:return we(`SuspenseList`);case 0:case 15:return Ee(e.type,!1);case 11:return Ee(e.type.render,!1);case 1:return Ee(e.type,!0);case 31:return we(`Activity`);default:return``}}function Oe(e){try{var t=``,n=null;do t+=De(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +Error generating stack: `+e.message+` +`+e.stack}}var ke=Object.prototype.hasOwnProperty,Ae=t.unstable_scheduleCallback,je=t.unstable_cancelCallback,Me=t.unstable_shouldYield,Ne=t.unstable_requestPaint,A=t.unstable_now,Pe=t.unstable_getCurrentPriorityLevel,Fe=t.unstable_ImmediatePriority,Ie=t.unstable_UserBlockingPriority,Le=t.unstable_NormalPriority,Re=t.unstable_LowPriority,ze=t.unstable_IdlePriority,Be=t.log,Ve=t.unstable_setDisableYieldValue,He=null,Ue=null;function We(e){if(typeof Be==`function`&&Ve(e),Ue&&typeof Ue.setStrictMode==`function`)try{Ue.setStrictMode(He,e)}catch{}}var Ge=Math.clz32?Math.clz32:Je,Ke=Math.log,qe=Math.LN2;function Je(e){return e>>>=0,e===0?32:31-(Ke(e)/qe|0)|0}var Ye=256,Xe=262144,Ze=4194304;function Qe(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:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 $e(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Qe(n))):i=Qe(o):i=Qe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Qe(n))):i=Qe(o)):i=Qe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function et(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 nt(){var e=Ze;return Ze<<=1,!(Ze&62914560)&&(Ze=4194304),e}function rt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function it(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function at(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),vn=!1;if(_n)try{var yn={};Object.defineProperty(yn,`passive`,{get:function(){vn=!0}}),window.addEventListener(`test`,yn,yn),window.removeEventListener(`test`,yn,yn)}catch{vn=!1}var bn=null,xn=null,Sn=null;function Cn(){if(Sn)return Sn;var e,t=xn,n=t.length,r,i=`value`in bn?bn.value:bn.textContent,a=i.length;for(e=0;e=tr),ir=` `,ar=!1;function or(e,t){switch(e){case`keyup`:return $n.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function sr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var cr=!1;function lr(e,t){switch(e){case`compositionend`:return sr(t);case`keypress`:return t.which===32?(ar=!0,ir):null;case`textInput`:return e=t.data,e===ir&&ar?null:e;default:return null}}function ur(e,t){if(cr)return e===`compositionend`||!er&&or(e,t)?(e=Cn(),Sn=xn=bn=null,cr=!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)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Mr(n)}}function Pr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wt(e.document)}return t}function Ir(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`)}var Lr=_n&&`documentMode`in document&&11>=document.documentMode,Rr=null,zr=null,Br=null,Vr=!1;function Hr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vr||Rr==null||Rr!==Wt(r)||(r=Rr,`selectionStart`in r&&Ir(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Br&&jr(Br,r)||(Br=r,r=Ed(zr,`onSelect`),0>=o,i-=o,Pi=1<<32-Ge(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),M&&Ii(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),M&&Ii(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return M&&Ii(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),M&&Ii(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===y&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case _:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===y){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===w&&Pa(l)===r.type){n(e,r.sibling),c=i(r,a.props),Va(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===y?(c=xi(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=bi(a.type,a.key,a.props,null,e.mode,c),Va(c,a),c.return=e,e=c)}return o(e);case v:a:{for(l=a.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=wi(a,e.mode,c),c.return=e,e=c}return o(e);case w:return a=Pa(a),b(e,r,a,c)}if(ue(a))return h(e,r,a,c);if(se(a)){if(l=se(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Ba(a),c);if(a.$$typeof===S)return b(e,r,la(e,a),c);Ha(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=Si(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{za=0;var i=b(e,t,n,r);return Ra=null,i}catch(t){if(t===Oa||t===Aa)throw t;var a=gi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Wa=Ua(!0),Ga=Ua(!1),Ka=!1;function qa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ja(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 Ya(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=pi(e),fi(e,null,n),t}return li(e,r,t,n),pi(e)}function Za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,st(e,n)}}function Qa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var $a=!1;function eo(){if($a){var e=ya;if(e!==null)throw e}}function to(e,t,n,r){$a=!1;var i=e.updateQueue;Ka=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(q&f)===f:(r&f)===f){f!==0&&f===va&&($a=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Ka=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function no(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function ro(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=T.T,s={};T.T=s,Rs(e,!1,t,n);try{var c=i(),l=T.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ls(e,t,Sa(c,r),pu(e)):Ls(e,t,r,pu(e))}catch(n){Ls(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{E.p=a,o!==null&&s.types!==null&&(o.types=s.types),T.T=o}}function Ds(){}function Os(e,t,n,r){if(e.tag!==5)throw Error(s(476));var i=ks(e).queue;Es(e,i,t,de,n===null?Ds:function(){return As(e),n(r)})}function ks(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function As(e){var t=ks(e);t.next===null&&(t=e.alternate.memoizedState),Ls(e,t.next.queue,{},pu())}function js(){return ca(Qf)}function Ms(){return z().memoizedState}function Ns(){return z().memoizedState}function Ps(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Ya(n);var r=Xa(t,e,n);r!==null&&(hu(r,t,n),Za(r,t,n)),t={cache:ma()},e.payload=t;return}t=t.return}}function Fs(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},zs(e)?Bs(t,n):(n=ui(e,t,n,r),n!==null&&(hu(n,e,r),Vs(n,t,r)))}function Is(e,t,n){Ls(e,t,n,pu())}function Ls(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(zs(e))Bs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ar(s,o))return li(e,t,i,0),G===null&&ci(),!1}catch{}if(n=ui(e,t,i,r),n!==null)return hu(n,e,r),Vs(n,t,r),!0}return!1}function Rs(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},zs(e)){if(t)throw Error(s(479))}else t=ui(e,n,r,2),t!==null&&hu(t,e,2)}function zs(e){var t=e.alternate;return e===F||t!==null&&t===F}function Bs(e,t){bo=yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,st(e,n)}}var Hs={readContext:ca,use:Lo,useCallback:R,useContext:R,useEffect:R,useImperativeHandle:R,useLayoutEffect:R,useInsertionEffect:R,useMemo:R,useReducer:R,useRef:R,useState:R,useDebugValue:R,useDeferredValue:R,useTransition:R,useSyncExternalStore:R,useId:R,useHostTransitionStatus:R,useFormState:R,useActionState:R,useOptimistic:R,useMemoCache:R,useCacheRefresh:R};Hs.useEffectEvent=R;var Us={readContext:ca,use:Lo,useCallback:function(e,t){return Po().memoizedState=[e,t===void 0?null:t],e},useContext:ca,useEffect:ps,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ds(4194308,4,ys.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ds(4194308,4,e,t)},useInsertionEffect:function(e,t){ds(4,2,e,t)},useMemo:function(e,t){var n=Po();t=t===void 0?null:t;var r=e();if(xo){We(!0);try{e()}finally{We(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Po();if(n!==void 0){var i=n(t);if(xo){We(!0);try{n(t)}finally{We(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Fs.bind(null,F,e),[r.memoizedState,e]},useRef:function(e){var t=Po();return e={current:e},t.memoizedState=e},useState:function(e){e=Yo(e);var t=e.queue,n=Is.bind(null,F,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:xs,useDeferredValue:function(e,t){return ws(Po(),e,t)},useTransition:function(){var e=Yo(!1);return e=Es.bind(null,F,e.queue,!0,!1),Po().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=F,i=Po();if(M){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),G===null)throw Error(s(349));q&127||Wo(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ps(Ko.bind(null,r,a,e),[e]),r.flags|=2048,ls(9,{destroy:void 0},Go.bind(null,r,a,n,t),null),n},useId:function(){var e=Po(),t=G.identifierPrefix;if(M){var n=Fi,r=Pi;n=(r&~(1<<32-Ge(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=So++,0<\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[mt]=t,a[ht]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Pd(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ic(t)}}return V(t),Lc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=ge.current,Ji(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Vi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[mt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Gi(t,!0)}else e=Bd(e).createTextNode(r),e[mt]=t,t.stateNode=e}return V(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ji(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[mt]=t}else Yi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;V(t),e=!1}else n=Xi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(go(t),t):(go(t),null);if(t.flags&128)throw Error(s(558))}return V(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ji(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[mt]=t}else Yi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;V(t),i=!1}else i=Xi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(go(t),t):(go(t),null)}return go(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),zc(t,t.updateQueue),V(t),null);case 4:return ye(),e===null&&Sd(t.stateNode.containerInfo),V(t),null;case 10:return na(t.type),V(t),null;case 19:if(D(P),r=t.memoizedState,r===null)return V(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Bc(r,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=_o(e),a!==null){for(t.flags|=128,Bc(r,!1),e=a.updateQueue,t.updateQueue=e,zc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)yi(n,e),n=n.sibling;return O(P,P.current&1|2),M&&Ii(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&A()>nu&&(t.flags|=128,i=!0,Bc(r,!1),t.lanes=4194304)}else{if(!i)if(e=_o(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,zc(t,e),Bc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!M)return V(t),null}else 2*A()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,Bc(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(V(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=A(),e.sibling=null,n=P.current,O(P,i?n&1|2:n&1),M&&Ii(t,r.treeForkCount),e);case 22:case 23:return go(t),co(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(V(t),t.subtreeFlags&6&&(t.flags|=8192)):V(t),n=t.updateQueue,n!==null&&zc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&D(wa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),na(N),V(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Hc(e,t){switch(zi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(N),ye(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(go(t),t.alternate===null)throw Error(s(340));Yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(go(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(P),null;case 4:return ye(),null;case 10:return na(t.type),null;case 22:case 23:return go(t),co(),e!==null&&D(wa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(N),null;case 25:return null;default:return null}}function Uc(e,t){switch(zi(t),t.tag){case 3:na(N),ye();break;case 26:case 27:case 5:xe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&go(t);break;case 13:go(t);break;case 19:D(P);break;case 10:na(t.type);break;case 22:case 23:go(t),co(),e!==null&&D(wa);break;case 24:na(N)}}function Wc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Gc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Kc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ro(t,n)}catch(t){Z(e,e.return,t)}}}function qc(e,t,n){n.props=Xs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Jc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function Yc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Xc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Zc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[ht]=t}catch(t){Z(e,e.return,t)}}function Qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function $c(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Qc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function el(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cn));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[mt]=e,t[ht]=n}catch(t){Z(e,e.return,t)}}var rl=!1,H=!1,il=!1,al=typeof WeakSet==`function`?WeakSet:Set,ol=null;function sl(e,t){if(e=e.containerInfo,Rd=sp,e=Fr(e),Ir(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=o),p===a&&++d===r&&(l=o),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,ol=t;ol!==null;)if(t=ol,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ol=e;else for(;ol!==null;){switch(t=ol,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Pd(a,r,n),a[mt]=e,Dt(a),r=a;break a;case`link`:var o=Vf(`link`,`href`,i).get(r+(n.href||``));if(o){for(var c=0;cg&&(o=g,g=h,h=o);var _=Nr(s,h),v=Nr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,T.T=null,n=lu,lu=null;var a=au,o=su;if(X=0,ou=au=null,su=0,W&6)throw Error(s(331));var c=W;if(W|=4,Il(a.current),Ol(a,a.current,o,n),W=c,id(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot==`function`)try{Ue.onPostCommitFiberRoot(He,a)}catch{}return!0}finally{E.p=i,T.T=r,Vu(e,t)}}function Wu(e,t,n){t=Ei(n,t),t=nc(e.stateNode,t,2),e=Xa(e,t,2),e!==null&&(it(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=Ei(n,e),n=rc(2),r=Xa(t,n,2),r!==null&&(ic(n,r,t,e),it(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Wl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,G===e&&(q&n)===n&&(Y===4||Y===3&&(q&62914560)===q&&300>A()-eu?!(W&2)&&Su(e,0):Jl|=n,Xl===q&&(Xl=0)),rd(e)}function qu(e,t){t===0&&(t=nt()),e=di(e,t),e!==null&&(it(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return Ae(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ge(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=q,a=$e(r,r===G?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||et(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=A(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}X!==0&&X!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Kt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),Dt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Kt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Kt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Kt(n.imageSizes)+`"]`)):i+=`[href="`+Kt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),Dt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Kt(r)+`"][href="`+Kt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),Dt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=Et(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);Dt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=Et(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Dt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=Et(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Dt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=ge.current)?gf(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=Et(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var a=Et(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(jf(e)))&&!a._p&&(o.instance=a,o.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),a||Nf(i,e,n,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=Et(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Af(e){return`href="`+Kt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),Dt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Kt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Kt(n.href)+`"]`);if(r)return t.instance=r,Dt(r),r;var i=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Dt(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var a=e.querySelector(jf(i));if(a)return t.state.loading|=4,t.instance=a,Dt(a),a;r=Mf(n),(i=mf.get(i))&&Rf(r,i),a=(e.ownerDocument||e).createElement(`link`),Dt(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),t.state.loading|=4,Lf(a,n.precedence,e),t.instance=a;case`script`:return a=Pf(n.src),(i=e.querySelector(Ff(a)))?(t.instance=i,Dt(i),i):(r=n,(i=mf.get(a))&&(r=h({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Dt(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Uf(e,t,n){if(n===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 Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Dt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),Dt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=s()}))(),l=n(),u=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),d=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),f=e=>{let t=d(e);return t.charAt(0).toUpperCase()+t.slice(1)},p=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),m=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},h={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`},g=(0,l.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,l.createElement)(`svg`,{ref:c,...h,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:p(`lucide`,i),...!a&&!m(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,l.createElement)(e,t)),...Array.isArray(a)?a:[a]])),_=(e,t)=>{let n=(0,l.forwardRef)(({className:n,...r},i)=>(0,l.createElement)(g,{ref:i,iconNode:t,className:p(`lucide-${u(f(e))}`,`lucide-${e}`,n),...r}));return n.displayName=f(e),n},v=_(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),y=_(`award`,[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]),b=_(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),x=_(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),ee=_(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),S=_(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),C=_(`clock`,[[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),te=_(`heart`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]),ne=_(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),re=_(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),w=_(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),ie=_(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),ae=_(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),oe=_(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),se=_(`thumbs-up`,[[`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`,key:`emmmcr`}],[`path`,{d:`M7 10v12`,key:`1qc93n`}]]),ce=_(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),le=_(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),ue=_(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),T=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),E=e(((e,t)=>{t.exports=T()}))(),de=`/api`,fe={CBT:`Cognitive Behavioral Therapy`,ACT:`Acceptance and Commitment Therapy`,DBT:`Dialectical Behavior Therapy`,REBT:`Rational Emotive Behavior Therapy`,MBCT:`Mindfulness-Based Cognitive Therapy`,CFT:`Compassion-Focused Therapy`,SFBT:`Solution-Focused Brief Therapy`,MI:`Motivational Interviewing`,"Schema Therapy":`Schema Therapy`,"Narrative Therapy":`Narrative Therapy`};(0,c.createRoot)(document.getElementById(`root`)).render((0,E.jsx)(l.StrictMode,{children:(0,E.jsx)(()=>{let[e,t]=(0,l.useState)(`home`),[n,r]=(0,l.useState)(!1),[i,a]=(0,l.useState)(1),[o,s]=(0,l.useState)({situation:``,thought:``}),[c,u]=(0,l.useState)({belief:null,helpfulness:null,recall:null,learning:null}),[d,f]=(0,l.useState)(!1),p=[{value:4,label:`Strongly Agree`},{value:3,label:`Somewhat Agree`},{value:2,label:`Somewhat Disagree`},{value:1,label:`Strongly Disagree`}],m=(e,t)=>{u(n=>({...n,[e]:t}))},[h,g]=(0,l.useState)(null),[_,T]=(0,l.useState)(null),[pe,me]=(0,l.useState)(null),[D,O]=(0,l.useState)([]),[k,he]=(0,l.useState)(null),[ge,_e]=(0,l.useState)(!1),[ve,ye]=(0,l.useState)(null);(0,l.useEffect)(()=>{(async()=>{try{g((await(await fetch(`${de}/session/init`,{method:`POST`,headers:{"Content-Type":`application/json`}})).json()).session_id)}catch(e){console.error(`Session init failed:`,e),g(`demo-session-`+Date.now())}})()},[]);let be=async()=>{_e(!0),ye(null);try{let e=await fetch(`${de}/detect`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought})});if(!e.ok)throw Error(`Detection failed`);T(await e.json()),a(2)}catch(e){ye(`Failed to detect distortions. Please try again.`),console.error(e)}_e(!1)},xe=async()=>{if(_){_e(!0),ye(null);try{let e=await fetch(`${de}/analyze`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,distortions:_.distortion_types})});if(!e.ok)throw Error(`Analysis failed`);me(await e.json()),a(3)}catch(e){ye(`Failed to analyze thought. Please try again.`),console.error(e)}_e(!1)}},[Se,Ce]=(0,l.useState)([]),[we,Te]=(0,l.useState)(0),[Ee,De]=(0,l.useState)([]),[Oe,ke]=(0,l.useState)(null),[Ae,je]=(0,l.useState)(null),[Me,Ne]=(0,l.useState)(!1),[A,Pe]=(0,l.useState)(0),[Fe,Ie]=(0,l.useState)(!1);(0,l.useEffect)(()=>{pe&&pe.recommended_therapies&&De(pe.recommended_therapies)},[pe]);let Le=()=>{s({...o,situation:`I sent a message to my friend 3 hours ago and saw they were online, but they haven't replied yet.`,thought:`They are ignoring me because they find me annoying. I must have said something wrong and now they hate me.`}),Ne(!1)},Re=e=>{De(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])};(0,l.useEffect)(()=>{(async()=>{if(i===5&&k!==null&&D[k])try{let e=await fetch(`${de}/instruction_feedback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,current_reframe:D[k].reframe})});if(!e.ok)throw Error(`Network response was not ok`);let t=await e.json();Ce([{reframe:D[k].reframe,iteration:0}]),je(JSON.parse(t.ai_feedback).summary),ke(t.ai_feedback),Te(0),Pe(0)}catch(e){console.error(`Lỗi khi khởi tạo dữ liệu ở step 5:`,e),Ce([{reframe:D[k].reframe,iteration:0}]),Te(0),Pe(0)}})()},[i,k,D]);let ze=async()=>{if(!(A>=5||k===null||Se.length===0)){Ie(!0);try{let e=Se[Se.length-1],t=await fetch(`${de}/improve`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,current_reframe:e.reframe,history_response:Se,feedback:Oe})});if(!t.ok)throw Error(`Improvement failed`);let n=await t.json(),r=await fetch(`${de}/instruction_feedback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,current_reframe:n.new_reframe})});if(!t.ok)throw Error(`Network response was not ok`);let i=await r.json();je(JSON.parse(i.ai_feedback).summary),ke(i.ai_feedback);let a={reframe:n.new_reframe,iteration:A+1};Ce(e=>[...e,a]),Pe(e=>e+1),Te(A+1),f(!1),u({belief:null,helpfulness:null,recall:null,learning:null})}catch(e){console.error(`Failed to improve reframe:`,e)}finally{Ie(!1)}}},Be=async()=>{if(Ee.length){_e(!0),ye(null);try{let e=await fetch(`${de}/reframe`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,situation:o.situation,thought:o.thought,recommended_therapies:Ee})});if(!e.ok)throw Error(`Generation failed`);O((await e.json()).candidates),a(4)}catch(e){ye(`Failed to generate reframes. Please try again.`),console.error(e)}_e(!1)}},Ve=async()=>{let e={session_id:h,timestamp:new Date().toISOString(),input:{situation:o.situation,thought:o.thought},output:{therapy_type:D[k]?.therapy,reframe:D[k]?.reframe},ratings:c};try{if(!(await fetch(`${de}/feedback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})).ok)throw Error(`Failed to save feedback`);console.log(`✅ Feedback saved to server`),f(!0)}catch(e){console.error(`❌ Error saving feedback:`,e),alert(`Could not save feedback. Please check your connection.`)}},He=async()=>{if(k!==null)try{await fetch(`${de}/save`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({session_id:h,selected_reframe:D[k],original_thought:o.thought})}),a(5)}catch(e){console.error(`Failed to save selection:`,e),a(5)}},Ue=()=>{a(1),s({situation:``,thought:``}),T(null),me(null),O([]),he(null),ye(null),De([]),u({belief:null,helpfulness:null,recall:null,learning:null}),f(!1),Pe(0),Ie(!1),Ce([]),Te(0),ke(null)};return(0,E.jsxs)(`div`,{className:`min-h-screen`,children:[(()=>(0,E.jsx)(`nav`,{className:`bg-white/80 backdrop-blur-md fixed w-full top-0 z-50 shadow-sm`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`flex justify-between items-center h-16`,children:[(0,E.jsxs)(`div`,{className:`flex items-center`,children:[(0,E.jsx)(b,{className:`w-8 h-8 text-indigo-600 mr-2`}),(0,E.jsx)(`span`,{className:`text-xl font-bold text-gray-900`,children:`MindReframe`})]}),(0,E.jsxs)(`div`,{className:`hidden md:flex space-x-8`,children:[(0,E.jsx)(`button`,{onClick:()=>t(`home`),className:`text-gray-700 hover:text-indigo-600 transition`,children:`Home`}),(0,E.jsx)(`button`,{onClick:()=>t(`about`),className:`text-gray-700 hover:text-indigo-600 transition`,children:`About`}),(0,E.jsx)(`button`,{onClick:()=>t(`therapies`),className:`text-gray-700 hover:text-indigo-600 transition`,children:`Therapies`}),(0,E.jsx)(`button`,{onClick:()=>t(`app`),className:`bg-indigo-600 text-white px-6 py-2 rounded-full hover:bg-indigo-700 transition`,children:`Get Started`})]}),(0,E.jsx)(`button`,{className:`md:hidden`,onClick:()=>r(!n),children:n?(0,E.jsx)(ue,{}):(0,E.jsx)(re,{})})]}),n&&(0,E.jsxs)(`div`,{className:`md:hidden pb-4`,children:[(0,E.jsx)(`button`,{onClick:()=>{t(`home`),r(!1)},className:`block w-full text-left py-2 text-gray-700`,children:`Home`}),(0,E.jsx)(`button`,{onClick:()=>{t(`about`),r(!1)},className:`block w-full text-left py-2 text-gray-700`,children:`About`}),(0,E.jsx)(`button`,{onClick:()=>{t(`therapies`),r(!1)},className:`block w-full text-left py-2 text-gray-700`,children:`Therapies`}),(0,E.jsx)(`button`,{onClick:()=>{t(`app`),r(!1)},className:`block w-full text-left py-2 text-indigo-600 font-semibold`,children:`Get Started`})]})]})}))(),e===`home`&&(()=>(0,E.jsxs)(`div`,{className:`pt-16`,children:[(0,E.jsxs)(`section`,{className:`relative min-h-screen flex items-center bg-gradient-to-br from-indigo-50 via-purple-50 to-pink-50`,children:[(0,E.jsxs)(`div`,{className:`absolute inset-0 overflow-hidden`,children:[(0,E.jsx)(`div`,{className:`absolute -top-1/2 -right-1/2 w-full h-full bg-gradient-to-br from-indigo-200/30 to-transparent rounded-full blur-3xl`}),(0,E.jsx)(`div`,{className:`absolute -bottom-1/2 -left-1/2 w-full h-full bg-gradient-to-tr from-purple-200/30 to-transparent rounded-full blur-3xl`})]}),(0,E.jsx)(`div`,{className:`relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20`,children:(0,E.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-12 items-center`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsxs)(`h1`,{className:`text-5xl md:text-6xl font-bold text-gray-900 mb-6 leading-tight`,children:[`Transform Your`,(0,E.jsx)(`span`,{className:`text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600`,children:` Thoughts`})]}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600 mb-8`,children:`Evidence-based cognitive reframing powered by AI and multiple therapeutic approaches. Find the perspective that works for you.`}),(0,E.jsxs)(`div`,{className:`flex flex-col sm:flex-row gap-4`,children:[(0,E.jsxs)(`button`,{onClick:()=>t(`app`),className:`bg-indigo-600 text-white px-8 py-4 rounded-full font-semibold hover:bg-indigo-700 transition shadow-lg hover:shadow-xl flex items-center justify-center`,children:[`Start Your Journey`,(0,E.jsx)(v,{className:`ml-2 w-5 h-5`})]}),(0,E.jsx)(`button`,{onClick:()=>t(`about`),className:`bg-white text-indigo-600 px-8 py-4 rounded-full font-semibold hover:bg-gray-50 transition shadow-lg flex items-center justify-center`,children:`Learn More`})]})]}),(0,E.jsx)(`div`,{className:`hidden md:block`,children:(0,E.jsxs)(`div`,{className:`relative`,children:[(0,E.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-r from-indigo-500 to-purple-500 rounded-3xl blur-2xl opacity-20`}),(0,E.jsx)(`div`,{className:`relative bg-white rounded-3xl shadow-2xl p-8`,children:(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-center space-x-4`,children:[(0,E.jsx)(`div`,{className:`bg-indigo-100 p-3 rounded-full`,children:(0,E.jsx)(b,{className:`w-6 h-6 text-indigo-600`})}),(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(`div`,{className:`h-4 bg-gray-200 rounded w-32`}),(0,E.jsx)(`div`,{className:`h-3 bg-gray-100 rounded w-24`})]})]}),(0,E.jsxs)(`div`,{className:`flex items-center space-x-4`,children:[(0,E.jsx)(`div`,{className:`bg-purple-100 p-3 rounded-full`,children:(0,E.jsx)(oe,{className:`w-6 h-6 text-purple-600`})}),(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(`div`,{className:`h-4 bg-gray-200 rounded w-40`}),(0,E.jsx)(`div`,{className:`h-3 bg-gray-100 rounded w-28`})]})]}),(0,E.jsxs)(`div`,{className:`flex items-center space-x-4`,children:[(0,E.jsx)(`div`,{className:`bg-pink-100 p-3 rounded-full`,children:(0,E.jsx)(te,{className:`w-6 h-6 text-pink-600`})}),(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(`div`,{className:`h-4 bg-gray-200 rounded w-36`}),(0,E.jsx)(`div`,{className:`h-3 bg-gray-100 rounded w-32`})]})]})]})})]})})]})})]}),(0,E.jsx)(`section`,{className:`py-20 bg-white`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`text-center mb-16`,children:[(0,E.jsx)(`h2`,{className:`text-4xl font-bold text-gray-900 mb-4`,children:`Why MindReframe?`}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600`,children:`Science-backed features designed for your well-being`})]}),(0,E.jsxs)(`div`,{className:`grid md:grid-cols-3 gap-8`,children:[(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-indigo-50 to-indigo-100 p-8 rounded-2xl`,children:[(0,E.jsx)(`div`,{className:`bg-indigo-600 w-14 h-14 rounded-full flex items-center justify-center mb-6`,children:(0,E.jsx)(ae,{className:`w-7 h-7 text-white`})}),(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-3`,children:`Evidence-Based`}),(0,E.jsx)(`p`,{className:`text-gray-600`,children:`Built on proven therapeutic frameworks including CBT, ACT, DBT, and 9 other modalities studied in clinical research.`})]}),(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-purple-50 to-purple-100 p-8 rounded-2xl`,children:[(0,E.jsx)(`div`,{className:`bg-purple-600 w-14 h-14 rounded-full flex items-center justify-center mb-6`,children:(0,E.jsx)(le,{className:`w-7 h-7 text-white`})}),(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-3`,children:`Personalized`}),(0,E.jsx)(`p`,{className:`text-gray-600`,children:`Choose the therapeutic approach that resonates with you. Different perspectives for different people.`})]}),(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-pink-50 to-pink-100 p-8 rounded-2xl`,children:[(0,E.jsx)(`div`,{className:`bg-pink-600 w-14 h-14 rounded-full flex items-center justify-center mb-6`,children:(0,E.jsx)(ne,{className:`w-7 h-7 text-white`})}),(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-3`,children:`AI-Powered`}),(0,E.jsx)(`p`,{className:`text-gray-600`,children:`Advanced language models trained to provide empathetic, safe, and clinically appropriate reframes.`})]})]})]})}),(0,E.jsx)(`section`,{className:`py-20 bg-gradient-to-br from-gray-50 to-gray-100`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`text-center mb-16`,children:[(0,E.jsx)(`h2`,{className:`text-4xl font-bold text-gray-900 mb-4`,children:`How It Works`}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600`,children:`Your journey to healthier thinking in 5 simple steps`})]}),(0,E.jsx)(`div`,{className:`grid md:grid-cols-5 gap-8`,children:[{icon:w,title:`Share`,desc:`Tell us your situation and thoughts`},{icon:b,title:`Detect`,desc:`We identify cognitive distortions`},{icon:ce,title:`Analyze`,desc:`Deep analysis of thought patterns`},{icon:oe,title:`Reframe`,desc:`Multiple therapeutic perspectives`},{icon:te,title:`Choose`,desc:`Select what works for you`}].map((e,t)=>(0,E.jsxs)(`div`,{className:`text-center`,children:[(0,E.jsx)(`div`,{className:`bg-white w-20 h-20 rounded-full flex items-center justify-center mx-auto mb-4 shadow-lg`,children:(0,E.jsx)(e.icon,{className:`w-10 h-10 text-indigo-600`})}),(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:e.title}),(0,E.jsx)(`p`,{className:`text-sm text-gray-600`,children:e.desc})]},t))})]})}),(0,E.jsx)(`section`,{className:`py-20 bg-gradient-to-r from-indigo-600 to-purple-600`,children:(0,E.jsxs)(`div`,{className:`max-w-4xl mx-auto text-center px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`h2`,{className:`text-4xl font-bold text-white mb-6`,children:`Ready to Transform Your Thinking?`}),(0,E.jsx)(`p`,{className:`text-xl text-indigo-100 mb-8`,children:`Join thousands who have discovered healthier perspectives through cognitive reframing`}),(0,E.jsxs)(`button`,{onClick:()=>t(`app`),className:`bg-white text-indigo-600 px-10 py-4 rounded-full font-bold text-lg hover:bg-gray-100 transition shadow-xl inline-flex items-center`,children:[`Start Free Today`,(0,E.jsx)(v,{className:`ml-2 w-5 h-5`})]})]})})]}))(),e===`about`&&(()=>(0,E.jsx)(`div`,{className:`pt-24 pb-20 min-h-screen bg-gradient-to-br from-indigo-50 via-white to-purple-50`,children:(0,E.jsxs)(`div`,{className:`max-w-4xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`h1`,{className:`text-5xl font-bold text-gray-900 mb-8`,children:`About MindReframe`}),(0,E.jsxs)(`div`,{className:`bg-white rounded-3xl shadow-xl p-8 mb-8`,children:[(0,E.jsx)(`h2`,{className:`text-2xl font-bold text-gray-900 mb-4`,children:`Our Mission`}),(0,E.jsx)(`p`,{className:`text-gray-700 mb-4`,children:`MindReframe combines cutting-edge AI technology with evidence-based psychotherapy to make mental health support accessible, personalized, and effective for everyone.`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`We believe that mental well-being should be within reach for all, and that the right perspective can make a profound difference in how we experience life's challenges.`})]}),(0,E.jsxs)(`div`,{className:`bg-white rounded-3xl shadow-xl p-8 mb-8`,children:[(0,E.jsx)(`h2`,{className:`text-2xl font-bold text-gray-900 mb-4`,children:`The Science Behind It`}),(0,E.jsxs)(`p`,{className:`text-gray-700 mb-4`,children:[`Our platform is built on `,(0,E.jsx)(`strong`,{children:`ReframeBench`}),`, a comprehensive benchmark evaluating large language models across 12 distinct therapeutic modalities. This research ensures that our AI provides clinically appropriate and safe cognitive reframes.`]}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`We integrate principles from CBT, ACT, DBT, REBT, Schema Therapy, MBCT, CFT, Narrative Therapy, SFBT, and Motivational Interviewing - giving you access to diverse therapeutic perspectives.`})]}),(0,E.jsxs)(`div`,{className:`bg-white rounded-3xl shadow-xl p-8`,children:[(0,E.jsx)(`h2`,{className:`text-2xl font-bold text-gray-900 mb-4`,children:`Important Note`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`MindReframe is designed as a self-help tool and educational resource. It is not a replacement for professional mental health care. If you're experiencing severe distress, please reach out to a qualified mental health professional.`})]})]})}))(),e===`therapies`&&(()=>(0,E.jsx)(`div`,{className:`pt-24 pb-20 min-h-screen bg-gradient-to-br from-purple-50 via-white to-pink-50`,children:(0,E.jsxs)(`div`,{className:`max-w-6xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`h1`,{className:`text-5xl font-bold text-gray-900 mb-4 text-center`,children:`Therapeutic Approaches`}),(0,E.jsx)(`p`,{className:`text-xl text-gray-600 mb-12 text-center`,children:`Explore the diverse perspectives we offer`}),(0,E.jsx)(`div`,{className:`grid md:grid-cols-2 gap-6`,children:[{name:`CBT`,full:`Cognitive Behavioral Therapy`,color:`indigo`,desc:`Challenge and change unhelpful thoughts through evidence and logic`},{name:`ACT`,full:`Acceptance & Commitment Therapy`,color:`purple`,desc:`Accept thoughts and commit to value-driven actions`},{name:`DBT`,full:`Dialectical Behavior Therapy`,color:`pink`,desc:`Balance acceptance with change through mindfulness`},{name:`REBT`,full:`Rational Emotive Behavior Therapy`,color:`blue`,desc:`Dispute irrational beliefs with rational alternatives`},{name:`MBCT`,full:`Mindfulness-Based Cognitive Therapy`,color:`green`,desc:`Combine mindfulness with cognitive techniques`},{name:`CFT`,full:`Compassion-Focused Therapy`,color:`rose`,desc:`Cultivate self-compassion and kindness`},{name:`Schema Therapy`,full:`Schema Therapy`,color:`violet`,desc:`Identify and heal deep-rooted patterns`},{name:`Narrative`,full:`Narrative Therapy`,color:`amber`,desc:`Rewrite your story and externalize problems`},{name:`SFBT`,full:`Solution-Focused Brief Therapy`,color:`cyan`,desc:`Focus on solutions rather than problems`},{name:`MI`,full:`Motivational Interviewing`,color:`emerald`,desc:`Enhance motivation for positive change`}].map((e,t)=>(0,E.jsxs)(`div`,{className:`bg-gradient-to-br from-${e.color}-50 to-${e.color}-100 p-6 rounded-2xl border-2 border-${e.color}-200`,children:[(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-2`,children:e.name}),(0,E.jsx)(`p`,{className:`text-sm text-gray-600 mb-3 font-medium`,children:e.full}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:e.desc})]},t))})]})}))(),e===`app`&&(()=>(0,E.jsx)(`div`,{className:`pt-20 pb-12 min-h-screen bg-gradient-to-br from-indigo-50 via-purple-50 to-pink-50`,children:(0,E.jsxs)(`div`,{className:`max-w-4xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsx)(`div`,{className:`mb-8 bg-white/80 backdrop-blur-sm rounded-2xl shadow-lg p-6`,children:(0,E.jsx)(`div`,{className:`flex items-center justify-between`,children:[`Input`,`Detect`,`Analyze`,`Reframe`,`Select`].map((e,t)=>(0,E.jsxs)(l.Fragment,{children:[(0,E.jsxs)(`div`,{className:`flex flex-col items-center`,children:[(0,E.jsx)(`div`,{className:`w-12 h-12 rounded-full flex items-center justify-center font-bold transition-all duration-300 ${i>t+1?`bg-green-500 text-white shadow-lg scale-110`:i===t+1?`bg-indigo-600 text-white shadow-lg animate-pulse`:`bg-gray-200 text-gray-400`}`,children:i>t+1?(0,E.jsx)(ee,{className:`w-6 h-6`}):t+1}),(0,E.jsx)(`span`,{className:`mt-2 text-xs font-medium text-gray-700`,children:e})]}),t<4&&(0,E.jsx)(`div`,{className:`flex-1 h-1 mx-2 rounded ${i>t+1?`bg-green-500`:`bg-gray-200`}`})]},t))})}),ve&&(0,E.jsxs)(`div`,{className:`mb-6 bg-red-50 border-2 border-red-200 rounded-xl p-4 flex items-center`,children:[(0,E.jsx)(S,{className:`w-5 h-5 text-red-600 mr-2`}),(0,E.jsx)(`p`,{className:`text-red-800`,children:ve})]}),i===1&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-center`,children:[(0,E.jsx)(`div`,{className:`bg-indigo-100 p-3 rounded-full mr-4`,children:(0,E.jsx)(w,{className:`w-6 h-6 text-indigo-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:`Share Your Thoughts`})]}),(0,E.jsxs)(`button`,{onClick:()=>Ne(!Me),className:`text-sm font-medium text-indigo-600 hover:text-indigo-800 flex items-center transition-colors`,children:[(0,E.jsx)(ne,{className:`w-4 h-4 mr-1`}),Me?`Hide Example`:`See Example`]})]}),Me&&(0,E.jsxs)(`div`,{className:`mb-8 bg-blue-50 border border-blue-100 rounded-xl p-5 relative animate-fade-in`,children:[(0,E.jsx)(`button`,{onClick:()=>Ne(!1),className:`absolute top-2 right-2 text-gray-400 hover:text-gray-600`,children:(0,E.jsx)(ue,{className:`w-4 h-4`})}),(0,E.jsx)(`h3`,{className:`text-sm font-bold text-blue-800 uppercase tracking-wide mb-3`,children:`Example Scenario`}),(0,E.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-4`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-xs font-semibold text-gray-500 mb-1`,children:`THE SITUATION (Facts only)`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-700 bg-white p-3 rounded-lg border border-blue-100 italic`,children:`"I sent a message to my friend 3 hours ago and haven't received a reply yet."`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-xs font-semibold text-gray-500 mb-1`,children:`THE THOUGHT (Interpretation)`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-700 bg-white p-3 rounded-lg border border-blue-100 italic`,children:`"They are ignoring me because they hate me. I always mess up relationships."`})]})]}),(0,E.jsx)(`button`,{onClick:Le,className:`mt-4 text-xs font-semibold text-blue-600 hover:text-blue-800 hover:underline`,children:`Click to use this example`})]}),(0,E.jsx)(`p`,{className:`text-gray-600 mb-8`,children:`Let's start by understanding what's on your mind. Be as honest and detailed as you'd like.`}),(0,E.jsxs)(`div`,{className:`mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex justify-between items-baseline mb-3`,children:[(0,E.jsx)(`label`,{className:`block text-sm font-semibold text-gray-700`,children:`What's the situation?`}),(0,E.jsx)(`span`,{className:`text-xs text-gray-400 font-medium`,children:`Objective facts (Who, what, where)`})]}),(0,E.jsx)(`textarea`,{className:`w-full p-4 border-2 border-gray-200 rounded-xl focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 focus:outline-none resize-none transition-all placeholder:text-gray-400`,rows:3,placeholder:`E.g., I made a mistake during my presentation...`,value:o.situation,onChange:e=>s({...o,situation:e.target.value})},`situation-input`)]}),(0,E.jsxs)(`div`,{className:`mb-8`,children:[(0,E.jsxs)(`div`,{className:`flex justify-between items-baseline mb-3`,children:[(0,E.jsx)(`label`,{className:`block text-sm font-semibold text-gray-700`,children:`What thoughts came to mind?`}),(0,E.jsx)(`span`,{className:`text-xs text-gray-400 font-medium`,children:`Your interpretation or feeling`})]}),(0,E.jsx)(`textarea`,{className:`w-full p-4 border-2 border-gray-200 rounded-xl focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 focus:outline-none resize-none transition-all placeholder:text-gray-400`,rows:3,placeholder:`E.g., Everyone thinks I'm incompetent. I'll get fired...`,value:o.thought,onChange:e=>s({...o,thought:e.target.value})},`thought-input`)]}),(0,E.jsx)(`button`,{onClick:be,disabled:!o.situation||!o.thought||ge,className:`w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 disabled:from-gray-400 disabled:to-gray-400 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl transform hover:scale-[1.02]`,children:ge?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2`}),`Analyzing Your Thoughts...`]}):(0,E.jsxs)(E.Fragment,{children:[`Begin Analysis`,(0,E.jsx)(x,{className:`w-5 h-5 ml-2`})]})})]}),i===2&&_&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-6`,children:[(0,E.jsx)(`div`,{className:`${_.has_distortion?`bg-yellow-100`:`bg-green-100`} p-3 rounded-full mr-4`,children:_.has_distortion?(0,E.jsx)(b,{className:`w-6 h-6 text-yellow-600`}):(0,E.jsx)(ee,{className:`w-6 h-6 text-green-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:_.has_distortion?`Distortion Detection`:`Great News!`})]}),_.has_distortion?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`div`,{className:`bg-gradient-to-r from-yellow-50 to-amber-50 border-2 border-yellow-300 rounded-xl p-6 mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-start mb-4`,children:[(0,E.jsx)(S,{className:`w-8 h-8 text-yellow-600 mr-3 flex-shrink-0 mt-1`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-2`,children:`Cognitive Distortions Detected`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`We've identified some thinking patterns that may be affecting your perspective.`})]})]}),(0,E.jsxs)(`div`,{className:`mb-4`,children:[(0,E.jsx)(`p`,{className:`font-semibold text-gray-700 mb-3`,children:`Distortion Types:`}),(0,E.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:_.distortion_types.map((e,t)=>(0,E.jsx)(`span`,{className:`bg-yellow-200 text-yellow-900 px-4 py-2 rounded-full text-sm font-semibold`,children:e},t))})]}),(0,E.jsxs)(`div`,{className:`bg-white/50 rounded-lg p-4`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-600 font-medium mb-1`,children:`Understanding:`}),(0,E.jsx)(`p`,{className:`text-gray-800`,children:_.explanation})]})]}),(0,E.jsx)(`button`,{onClick:xe,disabled:ge,className:`w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 disabled:from-gray-400 disabled:to-gray-400 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:ge?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2`}),`Deep Analysis in Progress...`]}):(0,E.jsxs)(E.Fragment,{children:[`Continue to Deep Analysis`,(0,E.jsx)(x,{className:`w-5 h-5 ml-2`})]})})]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`div`,{className:`bg-gradient-to-r from-green-50 to-emerald-50 border-2 border-green-300 rounded-xl p-6 mb-6`,children:[(0,E.jsxs)(`div`,{className:`flex items-start mb-4`,children:[(0,E.jsx)(ee,{className:`w-8 h-8 text-green-600 mr-3 flex-shrink-0 mt-1`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900 mb-2`,children:`Healthy Thinking Pattern`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:`Your thought appears to be balanced and realistic. We didn't detect any cognitive distortions.`})]})]}),(0,E.jsxs)(`div`,{className:`bg-white/50 rounded-lg p-4`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-600 font-medium mb-1`,children:`Analysis:`}),(0,E.jsx)(`p`,{className:`text-gray-800`,children:_.explanation})]})]}),(0,E.jsx)(`div`,{className:`bg-blue-50 border-2 border-blue-200 rounded-xl p-6 mb-6`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(ne,{className:`w-6 h-6 text-blue-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Keep It Up!`}),(0,E.jsx)(`p`,{className:`text-gray-700 text-sm`,children:`Your thinking seems clear and grounded. This is a sign of good mental health. If you're still feeling distressed about the situation, consider whether the situation itself needs attention rather than your thoughts about it.`})]})]})}),(0,E.jsxs)(`div`,{className:`flex gap-4`,children:[(0,E.jsxs)(`button`,{onClick:()=>a(1),className:`flex-1 bg-gray-200 hover:bg-gray-300 text-gray-800 font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center`,children:[(0,E.jsx)(ie,{className:`w-5 h-5 mr-2`}),`Try Another Thought`]}),(0,E.jsxs)(`button`,{onClick:()=>t(`home`),className:`flex-1 bg-gradient-to-r from-green-600 to-emerald-600 hover:from-green-700 hover:to-emerald-700 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:[(0,E.jsx)(ee,{className:`w-5 h-5 mr-2`}),`Back to Home`]})]})]})]}),i===3&&pe&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-6`,children:[(0,E.jsx)(`div`,{className:`bg-purple-100 p-3 rounded-full mr-4`,children:(0,E.jsx)(ce,{className:`w-6 h-6 text-purple-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:`Deep Analysis`})]}),(0,E.jsxs)(`div`,{className:`space-y-4 mb-8`,children:[(0,E.jsx)(`div`,{className:`bg-gradient-to-r from-blue-50 to-blue-100 border-l-4 border-blue-500 rounded-lg p-5`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(te,{className:`w-5 h-5 text-blue-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Emotional Impact`}),(0,E.jsx)(`p`,{className:`text-gray-700`,children:pe.emotional_impact})]})]})}),(0,E.jsx)(`div`,{className:`bg-gradient-to-r from-purple-50 to-purple-100 border-l-4 border-purple-500 rounded-lg p-5`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(ne,{className:`w-5 h-5 text-purple-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Underlying Beliefs`}),(0,E.jsx)(`ul`,{className:`space-y-1`,children:pe.underlying_beliefs.map((e,t)=>(0,E.jsxs)(`li`,{className:`text-gray-700 flex items-start`,children:[(0,E.jsx)(`span`,{className:`text-purple-600 mr-2`,children:`•`}),(0,E.jsx)(`span`,{children:e})]},t))})]})]})}),(0,E.jsx)(`div`,{className:`bg-gradient-to-r from-pink-50 to-pink-100 border-l-4 border-pink-500 rounded-lg p-5`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(C,{className:`w-5 h-5 text-pink-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-3`,children:`Common Triggers`}),(0,E.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:pe.triggers.map((e,t)=>(0,E.jsx)(`span`,{className:`bg-pink-200 text-pink-900 px-3 py-1 rounded-full text-sm font-medium`,children:e},t))})]})]})})]}),(0,E.jsxs)(`div`,{className:`mb-8`,children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-4`,children:[(0,E.jsx)(oe,{className:`w-5 h-5 text-indigo-600 mr-2`}),(0,E.jsx)(`h3`,{className:`text-xl font-bold text-gray-900`,children:`Select Perspectives`})]}),(0,E.jsx)(`p`,{className:`text-gray-600 text-sm mb-4`,children:`Based on your analysis, we've selected the best approaches (highlighted). You can tap to add or remove other perspectives you'd like to explore.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3`,children:Object.entries(fe).map(([e,t])=>{let n=Ee.includes(e),r=pe.recommended_therapies.includes(e);return(0,E.jsxs)(`button`,{onClick:()=>Re(e),className:` + relative p-3 rounded-xl border-2 text-left transition-all duration-200 + ${n?`border-indigo-500 bg-indigo-50 shadow-md`:`border-gray-200 bg-white hover:border-indigo-200 hover:bg-gray-50 text-gray-400`} + `,children:[r&&(0,E.jsx)(`span`,{className:`absolute -top-2 -right-2 bg-green-100 text-green-700 text-[10px] font-bold px-2 py-0.5 rounded-full border border-green-200 shadow-sm`,children:`Recommended`}),(0,E.jsxs)(`div`,{className:`flex items-center justify-between mb-1`,children:[(0,E.jsx)(`span`,{className:`font-bold text-sm ${n?`text-indigo-900`:`text-gray-500`}`,children:e}),n&&(0,E.jsx)(ee,{className:`w-4 h-4 text-indigo-600`})]}),(0,E.jsx)(`p`,{className:`text-[10px] leading-tight line-clamp-2 ${n?`text-indigo-700`:`text-gray-400`}`,children:t})]},e)})}),(0,E.jsxs)(`div`,{className:`mt-4 bg-gray-50 rounded-lg p-4 border border-gray-200`,children:[(0,E.jsx)(`p`,{className:`text-xs font-bold text-gray-500 uppercase mb-2`,children:`Why these were recommended:`}),(0,E.jsx)(`div`,{className:`space-y-2`,children:pe.recommended_therapies.map(e=>Ee.includes(e)&&(0,E.jsxs)(`div`,{className:`text-sm`,children:[(0,E.jsxs)(`span`,{className:`font-bold text-gray-800`,children:[e,`: `]}),(0,E.jsx)(`span`,{className:`text-gray-600`,children:pe.therapy_rationales?.[e]})]},e))})]})]}),(0,E.jsx)(`button`,{onClick:Be,disabled:ge||Ee.length===0,className:`w-full bg-gradient-to-r from-green-600 to-emerald-600 hover:from-green-700 hover:to-emerald-700 disabled:from-gray-400 disabled:to-gray-400 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:ge?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2`}),`Generating `,Ee.length,` Perspectives...`]}):(0,E.jsxs)(E.Fragment,{children:[`Generate Reframes (`,Ee.length,` Selected)`,(0,E.jsx)(oe,{className:`w-5 h-5 ml-2`})]})})]}),i===4&&D.length>0&&(0,E.jsxs)(`div`,{className:`bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl p-8 animate-fade-in`,children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-6`,children:[(0,E.jsx)(`div`,{className:`bg-green-100 p-3 rounded-full mr-4`,children:(0,E.jsx)(oe,{className:`w-6 h-6 text-green-600`})}),(0,E.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:`Your Reframe Options`})]}),(0,E.jsx)(`p`,{className:`text-gray-600 mb-6`,children:`We've generated multiple perspectives based on different therapeutic approaches. Choose the one that resonates most with you.`}),(0,E.jsx)(`div`,{className:`space-y-4 mb-8`,children:D.map((e,t)=>(0,E.jsxs)(`div`,{onClick:()=>he(t),className:`p-6 border-2 rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-102 ${k===t?`border-indigo-500 bg-gradient-to-r from-indigo-50 to-purple-50 shadow-lg`:`border-gray-200 hover:border-indigo-300 bg-white hover:shadow-md`}`,children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between mb-4`,children:[(0,E.jsx)(`span`,{className:`bg-indigo-600 text-white px-4 py-2 rounded-full text-sm font-bold`,children:e.therapy}),k===t&&(0,E.jsxs)(`div`,{className:`flex items-center text-indigo-600`,children:[(0,E.jsx)(se,{className:`w-5 h-5 mr-2`}),(0,E.jsx)(`span`,{className:`font-semibold`,children:`Selected`})]})]}),(0,E.jsxs)(`p`,{className:`text-gray-900 font-medium text-lg mb-4 leading-relaxed`,children:[`"`,e.reframe,`"`]}),(0,E.jsxs)(`div`,{className:`bg-white/50 rounded-lg p-4 mb-4`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-600 font-semibold mb-1`,children:`Why this works:`}),(0,E.jsx)(`p`,{className:`text-gray-700 text-sm`,children:e.rationale})]}),e.evaluation&&(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-3 pt-4 border-t border-gray-200`,children:Object.entries(e.evaluation).map(([e,t])=>(0,E.jsxs)(`div`,{className:`text-center`,children:[(0,E.jsx)(`p`,{className:`text-xs text-gray-500 uppercase font-semibold mb-1`,children:e}),(0,E.jsx)(`div`,{className:`flex items-center justify-center`,children:[...[,,,,,]].map((e,n)=>(0,E.jsx)(y,{className:`w-4 h-4 ${n0&&(0,E.jsxs)(`div`,{className:`bg-gradient-to-r from-indigo-50 via-purple-50 to-pink-50 rounded-2xl p-8 mb-8 text-left relative transition-all duration-500`,children:[Se.length>1&&(0,E.jsx)(`div`,{className:`mb-6 flex space-x-2 overflow-x-auto pb-2 scrollbar-hide`,children:Se.map((e,t)=>(0,E.jsx)(`button`,{onClick:()=>Te(t),className:`px-4 py-1.5 text-xs font-bold rounded-full transition-all whitespace-nowrap ${we===t?`bg-indigo-600 text-white shadow-md`:`bg-white text-indigo-600 border border-indigo-200 hover:bg-indigo-50`}`,children:t===0?`Original`:`Version ${t+1}`},t))}),(0,E.jsxs)(`div`,{className:`mb-6`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-500 uppercase font-semibold mb-2`,children:`Situation`}),(0,E.jsxs)(`p`,{className:`text-gray-800 italic`,children:[`"`,o.situation,`"`]})]}),(0,E.jsxs)(`div`,{className:`mb-6`,children:[(0,E.jsx)(`p`,{className:`text-sm text-gray-500 uppercase font-semibold mb-2`,children:`Original Thought`}),(0,E.jsxs)(`p`,{className:`text-gray-800 italic`,children:[`"`,o.thought,`"`]})]}),(0,E.jsx)(`div`,{className:`flex items-center justify-center my-6`,children:(0,E.jsx)(v,{className:`w-8 h-8 text-indigo-600`})}),(0,E.jsxs)(`div`,{children:[(0,E.jsxs)(`p`,{className:`text-sm text-gray-500 uppercase font-semibold mb-2 flex justify-between items-center`,children:[(0,E.jsxs)(`span`,{children:[`Your New Perspective (`,D[k].therapy,`)`]}),(0,E.jsx)(`span`,{className:`text-xs bg-purple-200 text-purple-800 px-2 py-0.5 rounded-md`,children:we===0?`Original`:`Iteration ${we}`})]}),(0,E.jsxs)(`p`,{className:`text-xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600 min-h-[3rem]`,children:[`"`,Se[we].reframe,`"`]})]}),(0,E.jsxs)(`div`,{className:`mt-8 pt-6 border-t border-purple-200/50`,children:[(0,E.jsxs)(`div`,{className:`flex items-start mb-6 bg-white/60 p-4 rounded-xl`,children:[(0,E.jsx)(b,{className:`w-5 h-5 text-purple-600 mr-3 mt-0.5 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-sm font-bold text-gray-800 mb-1`,children:`AI Feedback`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-700 leading-relaxed`,children:Ae})]})]}),(0,E.jsx)(`div`,{className:`flex justify-end`,children:(0,E.jsx)(`button`,{onClick:ze,disabled:Fe||A>=5||we!==Se.length-1,className:`text-sm font-bold py-2.5 px-5 rounded-xl flex items-center transition-all shadow-sm + ${Fe||A>=5||we!==Se.length-1?`bg-gray-200 text-gray-400 cursor-not-allowed`:`bg-white border-2 border-purple-200 text-purple-600 hover:bg-purple-50 hover:border-purple-400 hover:shadow-md`}`,children:Fe?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`animate-spin rounded-full h-4 w-4 border-b-2 border-purple-600 mr-2`}),`Refining...`]}):we===Se.length-1?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(oe,{className:`w-4 h-4 mr-2`}),A>=5?`Max Refinements Reached`:`Improve Reframe (${A}/5)`]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(ie,{className:`w-4 h-4 mr-2`}),`View Latest to Improve`]})})})]})]}),d?(0,E.jsxs)(`div`,{className:`bg-green-50 border border-green-100 rounded-xl p-6 mb-8 flex flex-col items-center justify-center animate-fade-in`,children:[(0,E.jsx)(`div`,{className:`bg-green-100 p-3 rounded-full mb-3`,children:(0,E.jsx)(se,{className:`w-8 h-8 text-green-600`})}),(0,E.jsx)(`p`,{className:`text-green-800 font-bold text-lg`,children:`Thank You!`}),(0,E.jsx)(`p`,{className:`text-green-600 text-sm mt-1 text-center max-w-md`,children:`Your feedback is invaluable for improving our therapeutic models. Keep practicing this reframe whenever you need it.`})]}):(0,E.jsxs)(`div`,{className:`bg-white border border-gray-200 shadow-sm rounded-xl p-6 mb-8 text-left animate-fade-in transition-all`,children:[(0,E.jsxs)(`div`,{className:`mb-6 border-b border-gray-100 pb-4`,children:[(0,E.jsxs)(`h3`,{className:`text-lg font-bold text-gray-800 flex items-center`,children:[(0,E.jsx)(w,{className:`w-5 h-5 mr-2 text-indigo-600`}),`Evaluation`]}),(0,E.jsx)(`p`,{className:`text-sm text-gray-500 mt-1`,children:`How strongly do you agree with the following statements regarding your chosen perspective?`})]}),(0,E.jsxs)(`div`,{className:`space-y-8`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`1. I genuinely believe in this new perspective.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`belief`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.belief===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`2. This perspective helps me reduce my distress.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`helpfulness`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.helpfulness===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`3. I will likely recall this perspective next time I feel this way.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`recall`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.recall===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-gray-800 font-medium mb-3 text-sm`,children:`4. This exercise improved my ability to cope with negative thoughts.`}),(0,E.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 gap-2`,children:p.map(e=>(0,E.jsx)(`button`,{onClick:()=>m(`learning`,e.value),className:`py-2 px-3 text-xs rounded-lg border transition-all duration-200 ${c.learning===e.value?`bg-indigo-600 text-white border-indigo-600 shadow-md font-semibold`:`bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50`}`,children:e.label},e.value))})]})]}),(0,E.jsx)(`div`,{className:`mt-8 text-center animate-fade-in`,children:(0,E.jsx)(`button`,{onClick:Ve,disabled:!c.belief||!c.helpfulness||!c.recall||!c.learning,className:`text-sm bg-indigo-50 text-indigo-600 hover:bg-indigo-100 disabled:opacity-50 disabled:cursor-not-allowed px-8 py-3 rounded-full font-bold transition-all shadow-sm hover:shadow-md`,children:`Submit Evaluation`})})]}),(0,E.jsx)(`div`,{className:`bg-blue-50 border-2 border-blue-200 rounded-xl p-6 mb-8 text-left`,children:(0,E.jsxs)(`div`,{className:`flex items-start`,children:[(0,E.jsx)(ne,{className:`w-6 h-6 text-blue-600 mr-3 mt-1 flex-shrink-0`}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold text-gray-900 mb-2`,children:`Practice Makes Progress`}),(0,E.jsx)(`p`,{className:`text-gray-700 text-sm`,children:`Try using this reframe when you notice similar thoughts. It may feel unnatural at first, but with repetition, these healthier thinking patterns will become more automatic.`})]})]})}),(0,E.jsxs)(`button`,{onClick:Ue,className:`w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 text-white font-semibold py-4 px-6 rounded-xl transition-all duration-300 flex items-center justify-center shadow-lg hover:shadow-xl`,children:[(0,E.jsx)(ie,{className:`w-5 h-5 mr-2`}),`Work on Another Thought`]})]})]})}))(),(0,E.jsx)(`footer`,{className:`bg-gray-900 text-white py-12`,children:(0,E.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,E.jsxs)(`div`,{className:`grid md:grid-cols-3 gap-8 mb-8`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsxs)(`div`,{className:`flex items-center mb-4`,children:[(0,E.jsx)(b,{className:`w-6 h-6 text-indigo-400 mr-2`}),(0,E.jsx)(`span`,{className:`text-lg font-bold`,children:`MindReframe`})]}),(0,E.jsx)(`p`,{className:`text-gray-400 text-sm`,children:`Evidence-based cognitive reframing powered by AI and clinical psychology.`})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h3`,{className:`font-bold mb-4`,children:`Important`}),(0,E.jsx)(`p`,{className:`text-sm text-gray-400`,children:`This tool is for educational and self-help purposes. If you're in crisis, please seek professional help immediately.`})]})]}),(0,E.jsx)(`div`,{className:`border-t border-gray-800 pt-8 text-center text-sm text-gray-400`,children:(0,E.jsx)(`p`,{children:`© 2026 MindReframe. Based on MindReframe research.`})})]})})]})},{})})); \ No newline at end of file diff --git a/Web/mind-reframe/dist/index.html b/Web/mind-reframe/dist/index.html new file mode 100644 index 0000000000000000000000000000000000000000..c87f23d469fa3d3fa6f84951087145a8c9c788ed --- /dev/null +++ b/Web/mind-reframe/dist/index.html @@ -0,0 +1,14 @@ + + + + + + + mind-reframe + + + + +
+ + diff --git a/Web/mind-reframe/dist/vite.svg b/Web/mind-reframe/dist/vite.svg new file mode 100644 index 0000000000000000000000000000000000000000..e7b8dfb1b2a60bd50538bec9f876511b9cac21e3 --- /dev/null +++ b/Web/mind-reframe/dist/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Web/mind-reframe/eslint.config.js b/Web/mind-reframe/eslint.config.js new file mode 100644 index 0000000000000000000000000000000000000000..5e6b472f583e34a1cca751440d4f241495475723 --- /dev/null +++ b/Web/mind-reframe/eslint.config.js @@ -0,0 +1,23 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import tseslint from 'typescript-eslint' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + js.configs.recommended, + tseslint.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + }, +]) diff --git a/Web/mind-reframe/index.html b/Web/mind-reframe/index.html new file mode 100644 index 0000000000000000000000000000000000000000..d588337def0672db9649d147866ea5b7d61cef88 --- /dev/null +++ b/Web/mind-reframe/index.html @@ -0,0 +1,13 @@ + + + + + + + mind-reframe + + +
+ + + diff --git a/Web/mind-reframe/package-lock.json b/Web/mind-reframe/package-lock.json new file mode 100644 index 0000000000000000000000000000000000000000..2e4aad6675d53a2ba1743859e9e6dd8dc0440bdb --- /dev/null +++ b/Web/mind-reframe/package-lock.json @@ -0,0 +1,3929 @@ +{ + "name": "mind-reframe", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "mind-reframe", + "version": "0.0.0", + "dependencies": { + "lucide-react": "^0.562.0", + "react": "^19.2.0", + "react-dom": "^19.2.0" + }, + "devDependencies": { + "@eslint/js": "^9.39.1", + "@types/node": "^24.10.1", + "@types/react": "^19.2.5", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^5.1.1", + "autoprefixer": "^10.4.23", + "eslint": "^9.39.1", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-refresh": "^0.4.24", + "globals": "^16.5.0", + "postcss": "^8.5.6", + "tailwindcss": "^3.4.17", + "typescript": "~5.9.3", + "typescript-eslint": "^8.46.4", + "vite": "npm:rolldown-vite@7.2.5" + } + }, + "node_modules/@alloc/quick-lru": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", + "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz", + "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", + "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz", + "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz", + "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz", + "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz", + "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@emnapi/core": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.8.1.tgz", + "integrity": "sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.1.0", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.8.1.tgz", + "integrity": "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.1.0.tgz", + "integrity": "sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", + "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.21.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz", + "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.7", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", + "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", + "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz", + "integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.1", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "9.39.3", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.3.tgz", + "integrity": "sha512-1B1VkCq6FuUNlQvlBYb+1jDu/gV297TIs/OeiaSR9l1H27SVW55ONE1e1Vp16NqP683+xEGzxYtv4XCiDPaQiw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", + "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", + "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.1.tgz", + "integrity": "sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1", + "@tybys/wasm-util": "^0.10.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@oxc-project/runtime": { + "version": "0.97.0", + "resolved": "https://registry.npmjs.org/@oxc-project/runtime/-/runtime-0.97.0.tgz", + "integrity": "sha512-yH0zw7z+jEws4dZ4IUKoix5Lh3yhqIJWF9Dc8PWvhpo7U7O+lJrv7ZZL4BeRO0la8LBQFwcCewtLBnVV7hPe/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.97.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.97.0.tgz", + "integrity": "sha512-lxmZK4xFrdvU0yZiDwgVQTCvh2gHWBJCBk5ALsrtsBWhs0uDIi+FTOnXRQeQfs304imdvTdaakT/lqwQ8hkOXQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Boshen" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-beta.50.tgz", + "integrity": "sha512-XlEkrOIHLyGT3avOgzfTFSjG+f+dZMw+/qd+Y3HLN86wlndrB/gSimrJCk4gOhr1XtRtEKfszpadI3Md4Z4/Ag==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-beta.50.tgz", + "integrity": "sha512-+JRqKJhoFlt5r9q+DecAGPLZ5PxeLva+wCMtAuoFMWPoZzgcYrr599KQ+Ix0jwll4B4HGP43avu9My8KtSOR+w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-beta.50.tgz", + "integrity": "sha512-fFXDjXnuX7/gQZQm/1FoivVtRcyAzdjSik7Eo+9iwPQ9EgtA5/nB2+jmbzaKtMGG3q+BnZbdKHCtOacmNrkIDA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-beta.50.tgz", + "integrity": "sha512-F1b6vARy49tjmT/hbloplzgJS7GIvwWZqt+tAHEstCh0JIh9sa8FAMVqEmYxDviqKBaAI8iVvUREm/Kh/PD26Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-beta.50.tgz", + "integrity": "sha512-U6cR76N8T8M6lHj7EZrQ3xunLPxSvYYxA8vJsBKZiFZkT8YV4kjgCO3KwMJL0NOjQCPGKyiXO07U+KmJzdPGRw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-beta.50.tgz", + "integrity": "sha512-ONgyjofCrrE3bnh5GZb8EINSFyR/hmwTzZ7oVuyUB170lboza1VMCnb8jgE6MsyyRgHYmN8Lb59i3NKGrxrYjw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-beta.50.tgz", + "integrity": "sha512-L0zRdH2oDPkmB+wvuTl+dJbXCsx62SkqcEqdM+79LOcB+PxbAxxjzHU14BuZIQdXcAVDzfpMfaHWzZuwhhBTcw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-beta.50.tgz", + "integrity": "sha512-gyoI8o/TGpQd3OzkJnh1M2kxy1Bisg8qJ5Gci0sXm9yLFzEXIFdtc4EAzepxGvrT2ri99ar5rdsmNG0zP0SbIg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-beta.50.tgz", + "integrity": "sha512-zti8A7M+xFDpKlghpcCAzyOi+e5nfUl3QhU023ce5NCgUxRG5zGP2GR9LTydQ1rnIPwZUVBWd4o7NjZDaQxaXA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-beta.50.tgz", + "integrity": "sha512-eZUssog7qljrrRU9Mi0eqYEPm3Ch0UwB+qlWPMKSUXHNqhm3TvDZarJQdTevGEfu3EHAXJvBIe0YFYr0TPVaMA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-beta.50.tgz", + "integrity": "sha512-nmCN0nIdeUnmgeDXiQ+2HU6FT162o+rxnF7WMkBm4M5Ds8qTU7Dzv2Wrf22bo4ftnlrb2hKK6FSwAJSAe2FWLg==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@napi-rs/wasm-runtime": "^1.0.7" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-beta.50.tgz", + "integrity": "sha512-7kcNLi7Ua59JTTLvbe1dYb028QEPaJPJQHqkmSZ5q3tJueUeb6yjRtx8mw4uIqgWZcnQHAR3PrLN4XRJxvgIkA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-ia32-msvc": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.0.0-beta.50.tgz", + "integrity": "sha512-lL70VTNvSCdSZkDPPVMwWn/M2yQiYvSoXw9hTLgdIWdUfC3g72UaruezusR6ceRuwHCY1Ayu2LtKqXkBO5LIwg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-beta.50.tgz", + "integrity": "sha512-4qU4x5DXWB4JPjyTne/wBNPqkbQU8J45bl21geERBKtEittleonioACBL1R0PsBu0Aq21SwMK5a9zdBkWSlQtQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz", + "integrity": "sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz", + "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "24.10.13", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.13.tgz", + "integrity": "sha512-oH72nZRfDv9lADUBSo104Aq7gPHpQZc4BTx38r9xf9pg5LfP6EzSyH2n7qFmmxRQXh7YlUXODcYsg6PuTDSxGg==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/@types/react": { + "version": "19.2.14", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz", + "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==", + "dev": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.2.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.56.0.tgz", + "integrity": "sha512-lRyPDLzNCuae71A3t9NEINBiTn7swyOhvUj3MyUOxb8x6g6vPEFoOU+ZRmGMusNC3X3YMhqMIX7i8ShqhT74Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.12.2", + "@typescript-eslint/scope-manager": "8.56.0", + "@typescript-eslint/type-utils": "8.56.0", + "@typescript-eslint/utils": "8.56.0", + "@typescript-eslint/visitor-keys": "8.56.0", + "ignore": "^7.0.5", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.56.0", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.56.0.tgz", + "integrity": "sha512-IgSWvLobTDOjnaxAfDTIHaECbkNlAlKv2j5SjpB2v7QHKv1FIfjwMy8FsDbVfDX/KjmCmYICcw7uGaXLhtsLNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.56.0", + "@typescript-eslint/types": "8.56.0", + "@typescript-eslint/typescript-estree": "8.56.0", + "@typescript-eslint/visitor-keys": "8.56.0", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.56.0.tgz", + "integrity": "sha512-M3rnyL1vIQOMeWxTWIW096/TtVP+8W3p/XnaFflhmcFp+U4zlxUxWj4XwNs6HbDeTtN4yun0GNTTDBw/SvufKg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.56.0", + "@typescript-eslint/types": "^8.56.0", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.56.0.tgz", + "integrity": "sha512-7UiO/XwMHquH+ZzfVCfUNkIXlp/yQjjnlYUyYz7pfvlK3/EyyN6BK+emDmGNyQLBtLGaYrTAI6KOw8tFucWL2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.56.0", + "@typescript-eslint/visitor-keys": "8.56.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.56.0.tgz", + "integrity": "sha512-bSJoIIt4o3lKXD3xmDh9chZcjCz5Lk8xS7Rxn+6l5/pKrDpkCwtQNQQwZ2qRPk7TkUYhrq3WPIHXOXlbXP0itg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.56.0.tgz", + "integrity": "sha512-qX2L3HWOU2nuDs6GzglBeuFXviDODreS58tLY/BALPC7iu3Fa+J7EOTwnX9PdNBxUI7Uh0ntP0YWGnxCkXzmfA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.56.0", + "@typescript-eslint/typescript-estree": "8.56.0", + "@typescript-eslint/utils": "8.56.0", + "debug": "^4.4.3", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.56.0.tgz", + "integrity": "sha512-DBsLPs3GsWhX5HylbP9HNG15U0bnwut55Lx12bHB9MpXxQ+R5GC8MwQe+N1UFXxAeQDvEsEDY6ZYwX03K7Z6HQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.56.0.tgz", + "integrity": "sha512-ex1nTUMWrseMltXUHmR2GAQ4d+WjkZCT4f+4bVsps8QEdh0vlBsaCokKTPlnqBFqqGaxilDNJG7b8dolW2m43Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.56.0", + "@typescript-eslint/tsconfig-utils": "8.56.0", + "@typescript-eslint/types": "8.56.0", + "@typescript-eslint/visitor-keys": "8.56.0", + "debug": "^4.4.3", + "minimatch": "^9.0.5", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.56.0.tgz", + "integrity": "sha512-RZ3Qsmi2nFGsS+n+kjLAYDPVlrzf7UhTffrDIKr+h2yzAlYP/y5ZulU0yeDEPItos2Ph46JAL5P/On3pe7kDIQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.56.0", + "@typescript-eslint/types": "8.56.0", + "@typescript-eslint/typescript-estree": "8.56.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.56.0.tgz", + "integrity": "sha512-q+SL+b+05Ud6LbEE35qe4A99P+htKTKVbyiNEe45eCbJFyh/HVK9QXwlrbz+Q4L8SOW4roxSVwXYj4DMBT7Ieg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.56.0", + "eslint-visitor-keys": "^5.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.1.4.tgz", + "integrity": "sha512-VIcFLdRi/VYRU8OL/puL7QXMYafHmqOnwTZY50U1JPlCNj30PxCMx65c494b1K9be9hX83KVt0+gTEwTWLqToA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.29.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-rc.3", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.18.0" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" + } + }, + "node_modules/acorn": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true, + "license": "MIT" + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true, + "license": "MIT" + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/autoprefixer": { + "version": "10.4.24", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.24.tgz", + "integrity": "sha512-uHZg7N9ULTVbutaIsDRoUkoS8/h3bdsmVJYZ5l3wv8Cp/6UIIoRDm90hZ+BwxUj/hGBEzLxdHNSKuFpn8WOyZw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "browserslist": "^4.28.1", + "caniuse-lite": "^1.0.30001766", + "fraction.js": "^5.3.4", + "picocolors": "^1.1.1", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.0.tgz", + "integrity": "sha512-lIyg0szRfYbiy67j9KN8IyeD7q7hcmqnJ1ddWmNt19ItGpNN64mnllmxUNFIOdOm6by97jlL6wfpTTJrmnjWAA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001770", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001770.tgz", + "integrity": "sha512-x/2CLQ1jHENRbHg5PSId2sXq1CIO1CISvwWAj027ltMVG2UNgW+w9oH2+HzgEIRFembL8bUlXtfbBHR1fCg2xw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true, + "license": "MIT" + }, + "node_modules/electron-to-chromium": { + "version": "1.5.302", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.302.tgz", + "integrity": "sha512-sM6HAN2LyK82IyPBpznDRqlTQAtuSaO+ShzFiWTvoMJLHyZ+Y39r8VMfHzwbU8MVBzQ4Wdn85+wlZl2TLGIlwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.39.3", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.3.tgz", + "integrity": "sha512-VmQ+sifHUbI/IcSopBCF/HO3YiHQx/AVd3UVyYL6weuwW+HvON9VYn5l6Zl1WZzPWXPNZrSQpxwkkZ/VuvJZzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.1", + "@eslint/config-helpers": "^0.4.2", + "@eslint/core": "^0.17.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.39.3", + "@eslint/plugin-kit": "^0.4.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.0.1.tgz", + "integrity": "sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.24.4", + "@babel/parser": "^7.24.4", + "hermes-parser": "^0.25.1", + "zod": "^3.25.0 || ^4.0.0", + "zod-validation-error": "^3.5.0 || ^4.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" + } + }, + "node_modules/eslint-plugin-react-refresh": { + "version": "0.4.26", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.26.tgz", + "integrity": "sha512-1RETEylht2O6FM/MvgnyvT+8K21wLqDNg4qD51Zj3guhjt433XbnnkVttHMyaVyAFD03QSV4LPS5iE3VQmO7XQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "eslint": ">=8.40" + } + }, + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", + "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/fraction.js": { + "version": "5.3.4", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz", + "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "*" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/rawify" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", + "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hermes-estree": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz", + "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", + "dev": true, + "license": "MIT" + }, + "node_modules/hermes-parser": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz", + "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hermes-estree": "0.25.1" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/jiti": { + "version": "1.21.7", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz", + "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lightningcss": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.31.1.tgz", + "integrity": "sha512-l51N2r93WmGUye3WuFoN5k10zyvrVs0qfKBhyC5ogUQ6Ew6JUSswh78mbSO+IU3nTWsyOArqPCcShdQSadghBQ==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.31.1", + "lightningcss-darwin-arm64": "1.31.1", + "lightningcss-darwin-x64": "1.31.1", + "lightningcss-freebsd-x64": "1.31.1", + "lightningcss-linux-arm-gnueabihf": "1.31.1", + "lightningcss-linux-arm64-gnu": "1.31.1", + "lightningcss-linux-arm64-musl": "1.31.1", + "lightningcss-linux-x64-gnu": "1.31.1", + "lightningcss-linux-x64-musl": "1.31.1", + "lightningcss-win32-arm64-msvc": "1.31.1", + "lightningcss-win32-x64-msvc": "1.31.1" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.31.1.tgz", + "integrity": "sha512-HXJF3x8w9nQ4jbXRiNppBCqeZPIAfUo8zE/kOEGbW5NZvGc/K7nMxbhIr+YlFlHW5mpbg/YFPdbnCh1wAXCKFg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.31.1.tgz", + "integrity": "sha512-02uTEqf3vIfNMq3h/z2cJfcOXnQ0GRwQrkmPafhueLb2h7mqEidiCzkE4gBMEH65abHRiQvhdcQ+aP0D0g67sg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.31.1.tgz", + "integrity": "sha512-1ObhyoCY+tGxtsz1lSx5NXCj3nirk0Y0kB/g8B8DT+sSx4G9djitg9ejFnjb3gJNWo7qXH4DIy2SUHvpoFwfTA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.31.1.tgz", + "integrity": "sha512-1RINmQKAItO6ISxYgPwszQE1BrsVU5aB45ho6O42mu96UiZBxEXsuQ7cJW4zs4CEodPUioj/QrXW1r9pLUM74A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.31.1.tgz", + "integrity": "sha512-OOCm2//MZJ87CdDK62rZIu+aw9gBv4azMJuA8/KB74wmfS3lnC4yoPHm0uXZ/dvNNHmnZnB8XLAZzObeG0nS1g==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.31.1.tgz", + "integrity": "sha512-WKyLWztD71rTnou4xAD5kQT+982wvca7E6QoLpoawZ1gP9JM0GJj4Tp5jMUh9B3AitHbRZ2/H3W5xQmdEOUlLg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.31.1.tgz", + "integrity": "sha512-mVZ7Pg2zIbe3XlNbZJdjs86YViQFoJSpc41CbVmKBPiGmC4YrfeOyz65ms2qpAobVd7WQsbW4PdsSJEMymyIMg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.31.1.tgz", + "integrity": "sha512-xGlFWRMl+0KvUhgySdIaReQdB4FNudfUTARn7q0hh/V67PVGCs3ADFjw+6++kG1RNd0zdGRlEKa+T13/tQjPMA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.31.1.tgz", + "integrity": "sha512-eowF8PrKHw9LpoZii5tdZwnBcYDxRw2rRCyvAXLi34iyeYfqCQNA9rmUM0ce62NlPhCvof1+9ivRaTY6pSKDaA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.31.1.tgz", + "integrity": "sha512-aJReEbSEQzx1uBlQizAOBSjcmr9dCdL3XuC/6HLXAxmtErsj2ICo5yYggg1qOODQMtnjNQv2UHb9NpOuFtYe4w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.31.1.tgz", + "integrity": "sha512-I9aiFrbd7oYHwlnQDqr1Roz+fTz61oDDJX7n9tYF9FJymH1cIN1DtKw3iYt6b8WZgEjoNwVSncwF4wx/ZedMhw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lilconfig": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", + "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lucide-react": { + "version": "0.562.0", + "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.562.0.tgz", + "integrity": "sha512-82hOAu7y0dbVuFfmO4bYF1XEwYk/mEbM5E+b1jgci/udUBEE/R7LF5Ip0CCEmXe8AybRM8L+04eP+LGZeDvkiw==", + "license": "ISC", + "peerDependencies": { + "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/postcss": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", + "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz", + "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-load-config": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz", + "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "lilconfig": "^3.1.1" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "jiti": ">=1.21.0", + "postcss": ">=8.0.9", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + }, + "postcss": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/postcss-nested": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz", + "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.1.1" + }, + "engines": { + "node": ">=12.0" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", + "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/react": { + "version": "19.2.4", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz", + "integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.4", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz", + "integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.4" + } + }, + "node_modules/react-refresh": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz", + "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rolldown": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-beta.50.tgz", + "integrity": "sha512-JFULvCNl/anKn99eKjOSEubi0lLmNqQDAjyEMME2T4CwezUDL0i6t1O9xZsu2OMehPnV2caNefWpGF+8TnzB6A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.97.0", + "@rolldown/pluginutils": "1.0.0-beta.50" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm64": "1.0.0-beta.50", + "@rolldown/binding-darwin-arm64": "1.0.0-beta.50", + "@rolldown/binding-darwin-x64": "1.0.0-beta.50", + "@rolldown/binding-freebsd-x64": "1.0.0-beta.50", + "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.50", + "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.50", + "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.50", + "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.50", + "@rolldown/binding-linux-x64-musl": "1.0.0-beta.50", + "@rolldown/binding-openharmony-arm64": "1.0.0-beta.50", + "@rolldown/binding-wasm32-wasi": "1.0.0-beta.50", + "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.50", + "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.50", + "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.50" + } + }, + "node_modules/rolldown/node_modules/@rolldown/pluginutils": { + "version": "1.0.0-beta.50", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.50.tgz", + "integrity": "sha512-5e76wQiQVeL1ICOZVUg4LSOVYg9jyhGCin+icYozhsUzM+fHE7kddi1bdiE0jwVqTfkjba3jUFbEkoC9WkdvyA==", + "dev": true, + "license": "MIT" + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/scheduler": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/sucrase": { + "version": "3.35.1", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz", + "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "tinyglobby": "^0.2.11", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tailwindcss": { + "version": "3.4.19", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz", + "integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.6.0", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.3.2", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.21.7", + "lilconfig": "^3.1.3", + "micromatch": "^4.0.8", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.1.1", + "postcss": "^8.4.47", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0", + "postcss-nested": "^6.2.0", + "postcss-selector-parser": "^6.1.2", + "resolve": "^1.22.8", + "sucrase": "^3.35.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinyglobby/node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/tinyglobby/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.4.0.tgz", + "integrity": "sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD", + "optional": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.56.0.tgz", + "integrity": "sha512-c7toRLrotJ9oixgdW7liukZpsnq5CZ7PuKztubGYlNppuTqhIoWfhgHo/7EU0v06gS2l/x0i2NEFK1qMIf0rIg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.56.0", + "@typescript-eslint/parser": "8.56.0", + "@typescript-eslint/typescript-estree": "8.56.0", + "@typescript-eslint/utils": "8.56.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "dev": true, + "license": "MIT" + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/vite": { + "name": "rolldown-vite", + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/rolldown-vite/-/rolldown-vite-7.2.5.tgz", + "integrity": "sha512-u09tdk/huMiN8xwoiBbig197jKdCamQTtOruSalOzbqGje3jdHiV0njQlAW0YvzoahkirFePNQ4RYlfnRQpXZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/runtime": "0.97.0", + "fdir": "^6.5.0", + "lightningcss": "^1.30.2", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rolldown": "1.0.0-beta.50", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "esbuild": "^0.25.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite/node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/vite/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz", + "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-validation-error": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", + "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + } + } +} diff --git a/Web/mind-reframe/package.json b/Web/mind-reframe/package.json new file mode 100644 index 0000000000000000000000000000000000000000..58e857374bae2d94e2986bba26bc254cdb8f5bb3 --- /dev/null +++ b/Web/mind-reframe/package.json @@ -0,0 +1,37 @@ +{ + "name": "mind-reframe", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc -b && vite build", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "lucide-react": "^0.562.0", + "react": "^19.2.0", + "react-dom": "^19.2.0" + }, + "devDependencies": { + "@eslint/js": "^9.39.1", + "@types/node": "^24.10.1", + "@types/react": "^19.2.5", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^5.1.1", + "autoprefixer": "^10.4.23", + "eslint": "^9.39.1", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-refresh": "^0.4.24", + "globals": "^16.5.0", + "postcss": "^8.5.6", + "tailwindcss": "^3.4.17", + "typescript": "~5.9.3", + "typescript-eslint": "^8.46.4", + "vite": "npm:rolldown-vite@7.2.5" + }, + "overrides": { + "vite": "npm:rolldown-vite@7.2.5" + } +} diff --git a/Web/mind-reframe/postcss.config.js b/Web/mind-reframe/postcss.config.js new file mode 100644 index 0000000000000000000000000000000000000000..e99ebc2c0e00cc37de4cefee2bf2a332abb73d8d --- /dev/null +++ b/Web/mind-reframe/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} \ No newline at end of file diff --git a/Web/mind-reframe/public/vite.svg b/Web/mind-reframe/public/vite.svg new file mode 100644 index 0000000000000000000000000000000000000000..e7b8dfb1b2a60bd50538bec9f876511b9cac21e3 --- /dev/null +++ b/Web/mind-reframe/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Web/mind-reframe/src/App.css b/Web/mind-reframe/src/App.css new file mode 100644 index 0000000000000000000000000000000000000000..b9d355df2a5956b526c004531b7b0ffe412461e0 --- /dev/null +++ b/Web/mind-reframe/src/App.css @@ -0,0 +1,42 @@ +#root { + max-width: 1280px; + margin: 0 auto; + padding: 2rem; + text-align: center; +} + +.logo { + height: 6em; + padding: 1.5em; + will-change: filter; + transition: filter 300ms; +} +.logo:hover { + filter: drop-shadow(0 0 2em #646cffaa); +} +.logo.react:hover { + filter: drop-shadow(0 0 2em #61dafbaa); +} + +@keyframes logo-spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} + +@media (prefers-reduced-motion: no-preference) { + a:nth-of-type(2) .logo { + animation: logo-spin infinite 20s linear; + } +} + +.card { + padding: 2em; +} + +.read-the-docs { + color: #888; +} diff --git a/Web/mind-reframe/src/App.tsx b/Web/mind-reframe/src/App.tsx new file mode 100644 index 0000000000000000000000000000000000000000..dd97a6e31845fd64d07cfde9aad40cf4cda65730 --- /dev/null +++ b/Web/mind-reframe/src/App.tsx @@ -0,0 +1,2589 @@ +// import React, { useState, useEffect } from 'react'; +// import { +// Brain, Sparkles, CheckCircle, XCircle, ChevronRight, RotateCcw, +// ThumbsUp, Award, Clock, Heart, Shield, Lightbulb, ArrowRight, +// MessageCircle, TrendingUp, Users, Menu, X +// } from 'lucide-react'; + +// // --- Type Definitions (Interfaces) --- +// interface DistortionResult { +// has_distortion: boolean; +// distortion_types: string[]; +// explanation: string; +// } + +// interface AnalysisResult { +// emotional_impact: string; +// underlying_beliefs: string[]; +// triggers: string[]; +// recommended_therapies: string[]; +// } + +// interface Candidate { +// therapy: string; +// reframe: string; +// rationale: string; +// evaluation?: { +// [key: string]: number; // Allow dynamic evaluation keys like 'empathy', 'logic' +// }; +// } + +// interface FormData { +// situation: string; +// thought: string; +// } + +// const API_BASE_URL = 'http://localhost:8000/api'; + +// const CognitiveReframingPlatform = () => { +// const [currentPage, setCurrentPage] = useState('home'); +// const [mobileMenuOpen, setMobileMenuOpen] = useState(false); +// const [step, setStep] = useState(1); + +// const [formData, setFormData] = useState({ +// situation: '', +// thought: '' +// }); + +// // State with explicit types allowing null +// const [sessionId, setSessionId] = useState(null); +// const [distortionResult, setDistortionResult] = useState(null); +// const [analysis, setAnalysis] = useState(null); +// const [candidates, setCandidates] = useState([]); // Array of Candidates +// const [selectedReframe, setSelectedReframe] = useState(null); +// const [loading, setLoading] = useState(false); +// const [error, setError] = useState(null); + +// useEffect(() => { +// // Initialize session +// const initSession = async () => { +// try { +// const response = await fetch(`${API_BASE_URL}/session/init`, { +// method: 'POST', +// headers: { 'Content-Type': 'application/json' } +// }); +// const data = await response.json(); +// setSessionId(data.session_id); +// } catch (err) { +// console.error('Session init failed:', err); +// setSessionId('demo-session-' + Date.now()); +// } +// }; +// initSession(); +// }, []); + +// const Navigation = () => ( +// +// ); + +// const HomePage = () => ( +//
+// {/* Hero Section */} +//
+//
+//
+//
+//
+ +//
+//
+//
+//

+// Transform Your +// Thoughts +//

+//

+// Evidence-based cognitive reframing powered by AI and multiple therapeutic approaches. +// Find the perspective that works for you. +//

+//
+// +// +//
+//
+ +//
+//
+//
+//
+//
+//
+//
+// +//
+//
+//
+//
+//
+//
+//
+//
+// +//
+//
+//
+//
+//
+//
+//
+//
+// +//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+ +// {/* Features Section */} +//
+//
+//
+//

Why MindReframe?

+//

Science-backed features designed for your well-being

+//
+ +//
+//
+//
+// +//
+//

Evidence-Based

+//

+// Built on proven therapeutic frameworks including CBT, ACT, DBT, and 9 other modalities studied in clinical research. +//

+//
+ +//
+//
+// +//
+//

Personalized

+//

+// Choose the therapeutic approach that resonates with you. Different perspectives for different people. +//

+//
+ +//
+//
+// +//
+//

AI-Powered

+//

+// Advanced language models trained to provide empathetic, safe, and clinically appropriate reframes. +//

+//
+//
+//
+//
+ +// {/* How It Works */} +//
+//
+//
+//

How It Works

+//

Your journey to healthier thinking in 5 simple steps

+//
+ +//
+// {[ +// { icon: MessageCircle, title: 'Share', desc: 'Tell us your situation and thoughts' }, +// { icon: Brain, title: 'Detect', desc: 'We identify cognitive distortions' }, +// { icon: TrendingUp, title: 'Analyze', desc: 'Deep analysis of thought patterns' }, +// { icon: Sparkles, title: 'Reframe', desc: 'Multiple therapeutic perspectives' }, +// { icon: Heart, title: 'Choose', desc: 'Select what works for you' } +// ].map((item, idx) => ( +//
+//
+// +//
+//

{item.title}

+//

{item.desc}

+//
+// ))} +//
+//
+//
+ +// {/* CTA Section */} +//
+//
+//

Ready to Transform Your Thinking?

+//

+// Join thousands who have discovered healthier perspectives through cognitive reframing +//

+// +//
+//
+//
+// ); + +// const AboutPage = () => ( +//
+//
+//

About MindReframe

+ +//
+//

Our Mission

+//

+// MindReframe combines cutting-edge AI technology with evidence-based psychotherapy to make mental health +// support accessible, personalized, and effective for everyone. +//

+//

+// We believe that mental well-being should be within reach for all, and that the right perspective +// can make a profound difference in how we experience life's challenges. +//

+//
+ +//
+//

The Science Behind It

+//

+// Our platform is built on ReframeBench, a comprehensive benchmark evaluating large +// language models across 12 distinct therapeutic modalities. This research ensures that our AI +// provides clinically appropriate and safe cognitive reframes. +//

+//

+// We integrate principles from CBT, ACT, DBT, REBT, Schema Therapy, MBCT, CFT, Narrative Therapy, +// SFBT, and Motivational Interviewing - giving you access to diverse therapeutic perspectives. +//

+//
+ +//
+//

Important Note

+//

+// MindReframe is designed as a self-help tool and educational resource. It is not a replacement +// for professional mental health care. If you're experiencing severe distress, please reach out +// to a qualified mental health professional. +//

+//
+//
+//
+// ); + +// const TherapiesPage = () => ( +//
+//
+//

Therapeutic Approaches

+//

+// Explore the diverse perspectives we offer +//

+ +//
+// {[ +// { name: 'CBT', full: 'Cognitive Behavioral Therapy', color: 'indigo', desc: 'Challenge and change unhelpful thoughts through evidence and logic' }, +// { name: 'ACT', full: 'Acceptance & Commitment Therapy', color: 'purple', desc: 'Accept thoughts and commit to value-driven actions' }, +// { name: 'DBT', full: 'Dialectical Behavior Therapy', color: 'pink', desc: 'Balance acceptance with change through mindfulness' }, +// { name: 'REBT', full: 'Rational Emotive Behavior Therapy', color: 'blue', desc: 'Dispute irrational beliefs with rational alternatives' }, +// { name: 'MBCT', full: 'Mindfulness-Based Cognitive Therapy', color: 'green', desc: 'Combine mindfulness with cognitive techniques' }, +// { name: 'CFT', full: 'Compassion-Focused Therapy', color: 'rose', desc: 'Cultivate self-compassion and kindness' }, +// { name: 'Schema Therapy', full: 'Schema Therapy', color: 'violet', desc: 'Identify and heal deep-rooted patterns' }, +// { name: 'Narrative', full: 'Narrative Therapy', color: 'amber', desc: 'Rewrite your story and externalize problems' }, +// { name: 'SFBT', full: 'Solution-Focused Brief Therapy', color: 'cyan', desc: 'Focus on solutions rather than problems' }, +// { name: 'MI', full: 'Motivational Interviewing', color: 'emerald', desc: 'Enhance motivation for positive change' } +// ].map((therapy, idx) => ( +//
+//

{therapy.name}

+//

{therapy.full}

+//

{therapy.desc}

+//
+// ))} +//
+//
+//
+// ); + +// const detectDistortion = async () => { +// setLoading(true); +// setError(null); +// try { +// const response = await fetch(`${API_BASE_URL}/detect`, { +// method: 'POST', +// headers: { 'Content-Type': 'application/json' }, +// body: JSON.stringify({ +// session_id: sessionId, +// situation: formData.situation, +// thought: formData.thought +// }) +// }); + +// if (!response.ok) throw new Error('Detection failed'); + +// const data = await response.json(); +// setDistortionResult(data); +// if (data.has_distortion) { +// setStep(2); +// } +// } catch (err) { +// setError('Failed to detect distortions. Please try again.'); +// console.error(err); +// } +// setLoading(false); +// }; + +// const analyzeThought = async () => { +// if (!distortionResult) return; + +// setLoading(true); +// setError(null); +// try { +// const response = await fetch(`${API_BASE_URL}/analyze`, { +// method: 'POST', +// headers: { 'Content-Type': 'application/json' }, +// body: JSON.stringify({ +// session_id: sessionId, +// situation: formData.situation, +// thought: formData.thought, +// distortions: distortionResult.distortion_types +// }) +// }); + +// if (!response.ok) throw new Error('Analysis failed'); + +// const data = await response.json(); +// setAnalysis(data); +// setStep(3); +// } catch (err) { +// setError('Failed to analyze thought. Please try again.'); +// console.error(err); +// } +// setLoading(false); +// }; + +// const generateCandidates = async () => { +// if (!analysis) return; + +// setLoading(true); +// setError(null); +// try { +// const response = await fetch(`${API_BASE_URL}/reframe`, { +// method: 'POST', +// headers: { 'Content-Type': 'application/json' }, +// body: JSON.stringify({ +// session_id: sessionId, +// situation: formData.situation, +// thought: formData.thought, +// recommended_therapies: analysis.recommended_therapies +// }) +// }); + +// if (!response.ok) throw new Error('Generation failed'); + +// const data = await response.json(); +// setCandidates(data.candidates); +// setStep(4); +// } catch (err) { +// setError('Failed to generate reframes. Please try again.'); +// console.error(err); +// } +// setLoading(false); +// }; + +// const saveSelection = async () => { +// if (selectedReframe === null) return; + +// try { +// await fetch(`${API_BASE_URL}/save`, { +// method: 'POST', +// headers: { 'Content-Type': 'application/json' }, +// body: JSON.stringify({ +// session_id: sessionId, +// selected_reframe: candidates[selectedReframe], +// original_thought: formData.thought +// }) +// }); +// setStep(5); +// } catch (err) { +// console.error('Failed to save selection:', err); +// setStep(5); // Continue anyway +// } +// }; + +// const reset = () => { +// setStep(1); +// setFormData({ situation: '', thought: '' }); +// setDistortionResult(null); +// setAnalysis(null); +// setCandidates([]); +// setSelectedReframe(null); +// setError(null); +// }; + +// const AppPage = () => ( +//
+//
+// {/* Progress Bar */} +//
+//
+// {['Input', 'Detect', 'Analyze', 'Reframe', 'Select'].map((label, idx) => ( +// +//
+//
idx + 1 ? 'bg-green-500 text-white shadow-lg scale-110' : +// step === idx + 1 ? 'bg-indigo-600 text-white shadow-lg animate-pulse' : +// 'bg-gray-200 text-gray-400' +// }`}> +// {step > idx + 1 ? : idx + 1} +//
+// {label} +//
+// {idx < 4 &&
idx + 1 ? 'bg-green-500' : 'bg-gray-200'}`}>
} +//
+// ))} +//
+//
+ +// {error && ( +//
+// +//

{error}

+//
+// )} + +// {/* Step 1: Input */} +// {step === 1 && ( +//
+//
+//
+// +//
+//

Share Your Thoughts

+//
+ +//

+// Let's start by understanding what's on your mind. Be as honest and detailed as you'd like. +//

+ +//
+// +//