@congzhen/changewayguard 6.8.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +270 -0
- package/dashboard-dist/api/104.index.js +1420 -0
- package/dashboard-dist/api/104.index.js.map +1 -0
- package/dashboard-dist/api/113.index.js +496 -0
- package/dashboard-dist/api/113.index.js.map +1 -0
- package/dashboard-dist/api/18.index.js +67 -0
- package/dashboard-dist/api/18.index.js.map +1 -0
- package/dashboard-dist/api/217.index.js +44 -0
- package/dashboard-dist/api/217.index.js.map +1 -0
- package/dashboard-dist/api/222.index.js +90 -0
- package/dashboard-dist/api/222.index.js.map +1 -0
- package/dashboard-dist/api/25.index.js +3562 -0
- package/dashboard-dist/api/25.index.js.map +1 -0
- package/dashboard-dist/api/280.index.js +206 -0
- package/dashboard-dist/api/280.index.js.map +1 -0
- package/dashboard-dist/api/369.index.js +115 -0
- package/dashboard-dist/api/369.index.js.map +1 -0
- package/dashboard-dist/api/377.index.js +1176 -0
- package/dashboard-dist/api/377.index.js.map +1 -0
- package/dashboard-dist/api/411.index.js +4250 -0
- package/dashboard-dist/api/411.index.js.map +1 -0
- package/dashboard-dist/api/424.index.js +135 -0
- package/dashboard-dist/api/424.index.js.map +1 -0
- package/dashboard-dist/api/573.index.js +806 -0
- package/dashboard-dist/api/573.index.js.map +1 -0
- package/dashboard-dist/api/598.index.js +328 -0
- package/dashboard-dist/api/598.index.js.map +1 -0
- package/dashboard-dist/api/62.index.js +4151 -0
- package/dashboard-dist/api/62.index.js.map +1 -0
- package/dashboard-dist/api/67.index.js +23383 -0
- package/dashboard-dist/api/67.index.js.map +1 -0
- package/dashboard-dist/api/678.index.js +2734 -0
- package/dashboard-dist/api/678.index.js.map +1 -0
- package/dashboard-dist/api/698.index.js +1896 -0
- package/dashboard-dist/api/698.index.js.map +1 -0
- package/dashboard-dist/api/720.index.js +98 -0
- package/dashboard-dist/api/720.index.js.map +1 -0
- package/dashboard-dist/api/830.index.js +95 -0
- package/dashboard-dist/api/830.index.js.map +1 -0
- package/dashboard-dist/api/831.index.js +99 -0
- package/dashboard-dist/api/831.index.js.map +1 -0
- package/dashboard-dist/api/84.index.js +64 -0
- package/dashboard-dist/api/84.index.js.map +1 -0
- package/dashboard-dist/api/900.index.js +65 -0
- package/dashboard-dist/api/900.index.js.map +1 -0
- package/dashboard-dist/api/917.index.js +88 -0
- package/dashboard-dist/api/917.index.js.map +1 -0
- package/dashboard-dist/api/948.index.js +64 -0
- package/dashboard-dist/api/948.index.js.map +1 -0
- package/dashboard-dist/api/953.index.js +67 -0
- package/dashboard-dist/api/953.index.js.map +1 -0
- package/dashboard-dist/api/975.index.js +374 -0
- package/dashboard-dist/api/975.index.js.map +1 -0
- package/dashboard-dist/api/drizzle/sqlite/0000_short_captain_stacy.sql +70 -0
- package/dashboard-dist/api/drizzle/sqlite/0001_closed_magus.sql +10 -0
- package/dashboard-dist/api/drizzle/sqlite/0002_agent_capability_observation.sql +38 -0
- package/dashboard-dist/api/drizzle/sqlite/0003_auth_magic_link.sql +28 -0
- package/dashboard-dist/api/drizzle/sqlite/0004_static_scan_fields.sql +8 -0
- package/dashboard-dist/api/drizzle/sqlite/0005_gateway_activity.sql +24 -0
- package/dashboard-dist/api/drizzle/sqlite/0006_sour_marauders.sql +41 -0
- package/dashboard-dist/api/drizzle/sqlite/meta/0000_snapshot.json +460 -0
- package/dashboard-dist/api/drizzle/sqlite/meta/0001_snapshot.json +536 -0
- package/dashboard-dist/api/drizzle/sqlite/meta/0006_snapshot.json +1249 -0
- package/dashboard-dist/api/drizzle/sqlite/meta/_journal.json +55 -0
- package/dashboard-dist/api/index.js +27340 -0
- package/dashboard-dist/api/index.js.map +1 -0
- package/dashboard-dist/api/package.json +16 -0
- package/dashboard-dist/api/sourcemap-register.cjs +1 -0
- package/dashboard-dist/web/assets/index-CqWIeBTD.js +158 -0
- package/dashboard-dist/web/assets/index-Dw7--9q4.css +1 -0
- package/dashboard-dist/web/changeway-logo.png +0 -0
- package/dashboard-dist/web/favicon.svg +29 -0
- package/dashboard-dist/web/index.html +14 -0
- package/dashboard-dist/web/logo.svg +16 -0
- package/dist/agent/auth.d.ts +37 -0
- package/dist/agent/auth.d.ts.map +1 -0
- package/dist/agent/auth.js +151 -0
- package/dist/agent/auth.js.map +1 -0
- package/dist/agent/behavior-detector.d.ts +150 -0
- package/dist/agent/behavior-detector.d.ts.map +1 -0
- package/dist/agent/behavior-detector.js +573 -0
- package/dist/agent/behavior-detector.js.map +1 -0
- package/dist/agent/business-reporter.d.ts +114 -0
- package/dist/agent/business-reporter.d.ts.map +1 -0
- package/dist/agent/business-reporter.js +359 -0
- package/dist/agent/business-reporter.js.map +1 -0
- package/dist/agent/config-sync.d.ts +70 -0
- package/dist/agent/config-sync.d.ts.map +1 -0
- package/dist/agent/config-sync.js +133 -0
- package/dist/agent/config-sync.js.map +1 -0
- package/dist/agent/config.d.ts +97 -0
- package/dist/agent/config.d.ts.map +1 -0
- package/dist/agent/config.js +359 -0
- package/dist/agent/config.js.map +1 -0
- package/dist/agent/content-injection-scanner.d.ts +35 -0
- package/dist/agent/content-injection-scanner.d.ts.map +1 -0
- package/dist/agent/content-injection-scanner.js +270 -0
- package/dist/agent/content-injection-scanner.js.map +1 -0
- package/dist/agent/engine-log-writer.d.ts +6 -0
- package/dist/agent/engine-log-writer.d.ts.map +1 -0
- package/dist/agent/engine-log-writer.js +18 -0
- package/dist/agent/engine-log-writer.js.map +1 -0
- package/dist/agent/env.d.ts +19 -0
- package/dist/agent/env.d.ts.map +1 -0
- package/dist/agent/env.js +43 -0
- package/dist/agent/env.js.map +1 -0
- package/dist/agent/event-reporter.d.ts +87 -0
- package/dist/agent/event-reporter.d.ts.map +1 -0
- package/dist/agent/event-reporter.js +315 -0
- package/dist/agent/event-reporter.js.map +1 -0
- package/dist/agent/file-watcher.d.ts +50 -0
- package/dist/agent/file-watcher.d.ts.map +1 -0
- package/dist/agent/file-watcher.js +135 -0
- package/dist/agent/file-watcher.js.map +1 -0
- package/dist/agent/fs-utils.d.ts +22 -0
- package/dist/agent/fs-utils.d.ts.map +1 -0
- package/dist/agent/fs-utils.js +41 -0
- package/dist/agent/fs-utils.js.map +1 -0
- package/dist/agent/gateway-manager.d.ts +59 -0
- package/dist/agent/gateway-manager.d.ts.map +1 -0
- package/dist/agent/gateway-manager.js +583 -0
- package/dist/agent/gateway-manager.js.map +1 -0
- package/dist/agent/hook-types.d.ts +276 -0
- package/dist/agent/hook-types.d.ts.map +1 -0
- package/dist/agent/hook-types.js +51 -0
- package/dist/agent/hook-types.js.map +1 -0
- package/dist/agent/index.d.ts +8 -0
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/index.js +8 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/agent/prompt-gate.d.ts +13 -0
- package/dist/agent/prompt-gate.d.ts.map +1 -0
- package/dist/agent/prompt-gate.js +28 -0
- package/dist/agent/prompt-gate.js.map +1 -0
- package/dist/agent/prompt-input.d.ts +9 -0
- package/dist/agent/prompt-input.d.ts.map +1 -0
- package/dist/agent/prompt-input.js +158 -0
- package/dist/agent/prompt-input.js.map +1 -0
- package/dist/agent/prompt-output.d.ts +4 -0
- package/dist/agent/prompt-output.d.ts.map +1 -0
- package/dist/agent/prompt-output.js +19 -0
- package/dist/agent/prompt-output.js.map +1 -0
- package/dist/agent/runner.d.ts +23 -0
- package/dist/agent/runner.d.ts.map +1 -0
- package/dist/agent/runner.js +154 -0
- package/dist/agent/runner.js.map +1 -0
- package/dist/agent/sanitizer.d.ts +10 -0
- package/dist/agent/sanitizer.d.ts.map +1 -0
- package/dist/agent/sanitizer.js +175 -0
- package/dist/agent/sanitizer.js.map +1 -0
- package/dist/agent/scan-activity.d.ts +18 -0
- package/dist/agent/scan-activity.d.ts.map +1 -0
- package/dist/agent/scan-activity.js +32 -0
- package/dist/agent/scan-activity.js.map +1 -0
- package/dist/agent/types.d.ts +177 -0
- package/dist/agent/types.d.ts.map +1 -0
- package/dist/agent/types.js +5 -0
- package/dist/agent/types.js.map +1 -0
- package/dist/agent/workspace-scanner.d.ts +35 -0
- package/dist/agent/workspace-scanner.d.ts.map +1 -0
- package/dist/agent/workspace-scanner.js +137 -0
- package/dist/agent/workspace-scanner.js.map +1 -0
- package/dist/dashboard-launcher.d.ts +52 -0
- package/dist/dashboard-launcher.d.ts.map +1 -0
- package/dist/dashboard-launcher.js +363 -0
- package/dist/dashboard-launcher.js.map +1 -0
- package/dist/gateway/activity.d.ts +52 -0
- package/dist/gateway/activity.d.ts.map +1 -0
- package/dist/gateway/activity.js +111 -0
- package/dist/gateway/activity.js.map +1 -0
- package/dist/gateway/config.d.ts +50 -0
- package/dist/gateway/config.d.ts.map +1 -0
- package/dist/gateway/config.js +200 -0
- package/dist/gateway/config.js.map +1 -0
- package/dist/gateway/gateway/activity.d.ts +52 -0
- package/dist/gateway/gateway/activity.d.ts.map +1 -0
- package/dist/gateway/gateway/activity.js +111 -0
- package/dist/gateway/gateway/activity.js.map +1 -0
- package/dist/gateway/gateway/config.d.ts +50 -0
- package/dist/gateway/gateway/config.d.ts.map +1 -0
- package/dist/gateway/gateway/config.js +200 -0
- package/dist/gateway/gateway/config.js.map +1 -0
- package/dist/gateway/gateway/handlers/anthropic.d.ts +12 -0
- package/dist/gateway/gateway/handlers/anthropic.d.ts.map +1 -0
- package/dist/gateway/gateway/handlers/anthropic.js +254 -0
- package/dist/gateway/gateway/handlers/anthropic.js.map +1 -0
- package/dist/gateway/gateway/handlers/gemini.d.ts +12 -0
- package/dist/gateway/gateway/handlers/gemini.d.ts.map +1 -0
- package/dist/gateway/gateway/handlers/gemini.js +101 -0
- package/dist/gateway/gateway/handlers/gemini.js.map +1 -0
- package/dist/gateway/gateway/handlers/models.d.ts +4 -0
- package/dist/gateway/gateway/handlers/models.d.ts.map +1 -0
- package/dist/gateway/gateway/handlers/models.js +36 -0
- package/dist/gateway/gateway/handlers/models.js.map +1 -0
- package/dist/gateway/gateway/handlers/openai.d.ts +16 -0
- package/dist/gateway/gateway/handlers/openai.d.ts.map +1 -0
- package/dist/gateway/gateway/handlers/openai.js +254 -0
- package/dist/gateway/gateway/handlers/openai.js.map +1 -0
- package/dist/gateway/gateway/index.d.ts +27 -0
- package/dist/gateway/gateway/index.d.ts.map +1 -0
- package/dist/gateway/gateway/index.js +293 -0
- package/dist/gateway/gateway/index.js.map +1 -0
- package/dist/gateway/gateway/mapping-store.d.ts +38 -0
- package/dist/gateway/gateway/mapping-store.d.ts.map +1 -0
- package/dist/gateway/gateway/mapping-store.js +74 -0
- package/dist/gateway/gateway/mapping-store.js.map +1 -0
- package/dist/gateway/gateway/restorer.d.ts +63 -0
- package/dist/gateway/gateway/restorer.d.ts.map +1 -0
- package/dist/gateway/gateway/restorer.js +284 -0
- package/dist/gateway/gateway/restorer.js.map +1 -0
- package/dist/gateway/gateway/sanitizer.d.ts +17 -0
- package/dist/gateway/gateway/sanitizer.d.ts.map +1 -0
- package/dist/gateway/gateway/sanitizer.js +228 -0
- package/dist/gateway/gateway/sanitizer.js.map +1 -0
- package/dist/gateway/gateway/types.d.ts +53 -0
- package/dist/gateway/gateway/types.d.ts.map +1 -0
- package/dist/gateway/gateway/types.js +5 -0
- package/dist/gateway/gateway/types.js.map +1 -0
- package/dist/gateway/handlers/anthropic.d.ts +12 -0
- package/dist/gateway/handlers/anthropic.d.ts.map +1 -0
- package/dist/gateway/handlers/anthropic.js +254 -0
- package/dist/gateway/handlers/anthropic.js.map +1 -0
- package/dist/gateway/handlers/gemini.d.ts +12 -0
- package/dist/gateway/handlers/gemini.d.ts.map +1 -0
- package/dist/gateway/handlers/gemini.js +101 -0
- package/dist/gateway/handlers/gemini.js.map +1 -0
- package/dist/gateway/handlers/models.d.ts +4 -0
- package/dist/gateway/handlers/models.d.ts.map +1 -0
- package/dist/gateway/handlers/models.js +36 -0
- package/dist/gateway/handlers/models.js.map +1 -0
- package/dist/gateway/handlers/openai.d.ts +16 -0
- package/dist/gateway/handlers/openai.d.ts.map +1 -0
- package/dist/gateway/handlers/openai.js +254 -0
- package/dist/gateway/handlers/openai.js.map +1 -0
- package/dist/gateway/index.d.ts +27 -0
- package/dist/gateway/index.d.ts.map +1 -0
- package/dist/gateway/index.js +293 -0
- package/dist/gateway/index.js.map +1 -0
- package/dist/gateway/mapping-store.d.ts +38 -0
- package/dist/gateway/mapping-store.d.ts.map +1 -0
- package/dist/gateway/mapping-store.js +74 -0
- package/dist/gateway/mapping-store.js.map +1 -0
- package/dist/gateway/restorer.d.ts +63 -0
- package/dist/gateway/restorer.d.ts.map +1 -0
- package/dist/gateway/restorer.js +284 -0
- package/dist/gateway/restorer.js.map +1 -0
- package/dist/gateway/sanitizer.d.ts +17 -0
- package/dist/gateway/sanitizer.d.ts.map +1 -0
- package/dist/gateway/sanitizer.js +228 -0
- package/dist/gateway/sanitizer.js.map +1 -0
- package/dist/gateway/types.d.ts +53 -0
- package/dist/gateway/types.d.ts.map +1 -0
- package/dist/gateway/types.js +5 -0
- package/dist/gateway/types.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2084 -0
- package/dist/index.js.map +1 -0
- package/dist/memory/index.d.ts +5 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/index.js +5 -0
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/store.d.ts +82 -0
- package/dist/memory/store.d.ts.map +1 -0
- package/dist/memory/store.js +194 -0
- package/dist/memory/store.js.map +1 -0
- package/dist/platform-client/index.d.ts +63 -0
- package/dist/platform-client/index.d.ts.map +1 -0
- package/dist/platform-client/index.js +294 -0
- package/dist/platform-client/index.js.map +1 -0
- package/dist/platform-client/types.d.ts +109 -0
- package/dist/platform-client/types.d.ts.map +1 -0
- package/dist/platform-client/types.js +3 -0
- package/dist/platform-client/types.js.map +1 -0
- package/gateway/activity.d.ts +52 -0
- package/gateway/activity.d.ts.map +1 -0
- package/gateway/activity.js +111 -0
- package/gateway/activity.js.map +1 -0
- package/gateway/config.d.ts +50 -0
- package/gateway/config.d.ts.map +1 -0
- package/gateway/config.js +200 -0
- package/gateway/config.js.map +1 -0
- package/gateway/handlers/anthropic.d.ts +12 -0
- package/gateway/handlers/anthropic.d.ts.map +1 -0
- package/gateway/handlers/anthropic.js +254 -0
- package/gateway/handlers/anthropic.js.map +1 -0
- package/gateway/handlers/gemini.d.ts +12 -0
- package/gateway/handlers/gemini.d.ts.map +1 -0
- package/gateway/handlers/gemini.js +101 -0
- package/gateway/handlers/gemini.js.map +1 -0
- package/gateway/handlers/models.d.ts +4 -0
- package/gateway/handlers/models.d.ts.map +1 -0
- package/gateway/handlers/models.js +36 -0
- package/gateway/handlers/models.js.map +1 -0
- package/gateway/handlers/openai.d.ts +16 -0
- package/gateway/handlers/openai.d.ts.map +1 -0
- package/gateway/handlers/openai.js +254 -0
- package/gateway/handlers/openai.js.map +1 -0
- package/gateway/index.d.ts +27 -0
- package/gateway/index.d.ts.map +1 -0
- package/gateway/index.js +293 -0
- package/gateway/index.js.map +1 -0
- package/gateway/mapping-store.d.ts +38 -0
- package/gateway/mapping-store.d.ts.map +1 -0
- package/gateway/mapping-store.js +74 -0
- package/gateway/mapping-store.js.map +1 -0
- package/gateway/restorer.d.ts +63 -0
- package/gateway/restorer.d.ts.map +1 -0
- package/gateway/restorer.js +284 -0
- package/gateway/restorer.js.map +1 -0
- package/gateway/sanitizer.d.ts +17 -0
- package/gateway/sanitizer.d.ts.map +1 -0
- package/gateway/sanitizer.js +228 -0
- package/gateway/sanitizer.js.map +1 -0
- package/gateway/types.d.ts +53 -0
- package/gateway/types.d.ts.map +1 -0
- package/gateway/types.js +5 -0
- package/gateway/types.js.map +1 -0
- package/openclaw.plugin.json +86 -0
- package/package.json +74 -0
- package/samples/Untitled +1 -0
- package/samples/clean-email.txt +20 -0
- package/samples/test-document.md +53 -0
- package/samples/test-email-popup.txt +44 -0
- package/samples/test-email.txt +32 -0
- package/samples/test-webpage.html +51 -0
- package/scripts/enterprise-enroll.sh +89 -0
- package/scripts/enterprise-unenroll.sh +75 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))f(d);new MutationObserver(d=>{for(const p of d)if(p.type==="childList")for(const m of p.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&f(m)}).observe(document,{childList:!0,subtree:!0});function o(d){const p={};return d.integrity&&(p.integrity=d.integrity),d.referrerPolicy&&(p.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?p.credentials="include":d.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function f(d){if(d.ep)return;d.ep=!0;const p=o(d);fetch(d.href,p)}})();var oa={exports:{}},Hr={},ua={exports:{}},ae={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Nc;function gp(){if(Nc)return ae;Nc=1;var s=Symbol.for("react.element"),u=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),m=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),E=Symbol.iterator;function T(j){return j===null||typeof j!="object"?null:(j=E&&j[E]||j["@@iterator"],typeof j=="function"?j:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,I={};function R(j,A,se){this.props=j,this.context=A,this.refs=I,this.updater=se||P}R.prototype.isReactComponent={},R.prototype.setState=function(j,A){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,A,"setState")},R.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function L(){}L.prototype=R.prototype;function H(j,A,se){this.props=j,this.context=A,this.refs=I,this.updater=se||P}var F=H.prototype=new L;F.constructor=H,D(F,R.prototype),F.isPureReactComponent=!0;var re=Array.isArray,U=Object.prototype.hasOwnProperty,Y={current:null},ie={key:!0,ref:!0,__self:!0,__source:!0};function me(j,A,se){var oe,de={},fe=null,ge=null;if(A!=null)for(oe in A.ref!==void 0&&(ge=A.ref),A.key!==void 0&&(fe=""+A.key),A)U.call(A,oe)&&!ie.hasOwnProperty(oe)&&(de[oe]=A[oe]);var he=arguments.length-2;if(he===1)de.children=se;else if(1<he){for(var ke=Array(he),it=0;it<he;it++)ke[it]=arguments[it+2];de.children=ke}if(j&&j.defaultProps)for(oe in he=j.defaultProps,he)de[oe]===void 0&&(de[oe]=he[oe]);return{$$typeof:s,type:j,key:fe,ref:ge,props:de,_owner:Y.current}}function Ee(j,A){return{$$typeof:s,type:j.type,key:A,ref:j.ref,props:j.props,_owner:j._owner}}function Le(j){return typeof j=="object"&&j!==null&&j.$$typeof===s}function Tt(j){var A={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(se){return A[se]})}var ft=/\/+/g;function lt(j,A){return typeof j=="object"&&j!==null&&j.key!=null?Tt(""+j.key):A.toString(36)}function wt(j,A,se,oe,de){var fe=typeof j;(fe==="undefined"||fe==="boolean")&&(j=null);var ge=!1;if(j===null)ge=!0;else switch(fe){case"string":case"number":ge=!0;break;case"object":switch(j.$$typeof){case s:case u:ge=!0}}if(ge)return ge=j,de=de(ge),j=oe===""?"."+lt(ge,0):oe,re(de)?(se="",j!=null&&(se=j.replace(ft,"$&/")+"/"),wt(de,A,se,"",function(it){return it})):de!=null&&(Le(de)&&(de=Ee(de,se+(!de.key||ge&&ge.key===de.key?"":(""+de.key).replace(ft,"$&/")+"/")+j)),A.push(de)),1;if(ge=0,oe=oe===""?".":oe+":",re(j))for(var he=0;he<j.length;he++){fe=j[he];var ke=oe+lt(fe,he);ge+=wt(fe,A,se,ke,de)}else if(ke=T(j),typeof ke=="function")for(j=ke.call(j),he=0;!(fe=j.next()).done;)fe=fe.value,ke=oe+lt(fe,he++),ge+=wt(fe,A,se,ke,de);else if(fe==="object")throw A=String(j),Error("Objects are not valid as a React child (found: "+(A==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":A)+"). If you meant to render a collection of children, use an array instead.");return ge}function Lt(j,A,se){if(j==null)return j;var oe=[],de=0;return wt(j,oe,"","",function(fe){return A.call(se,fe,de++)}),oe}function Xe(j){if(j._status===-1){var A=j._result;A=A(),A.then(function(se){(j._status===0||j._status===-1)&&(j._status=1,j._result=se)},function(se){(j._status===0||j._status===-1)&&(j._status=2,j._result=se)}),j._status===-1&&(j._status=0,j._result=A)}if(j._status===1)return j._result.default;throw j._result}var Pe={current:null},B={transition:null},ee={ReactCurrentDispatcher:Pe,ReactCurrentBatchConfig:B,ReactCurrentOwner:Y};function b(){throw Error("act(...) is not supported in production builds of React.")}return ae.Children={map:Lt,forEach:function(j,A,se){Lt(j,function(){A.apply(this,arguments)},se)},count:function(j){var A=0;return Lt(j,function(){A++}),A},toArray:function(j){return Lt(j,function(A){return A})||[]},only:function(j){if(!Le(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},ae.Component=R,ae.Fragment=o,ae.Profiler=d,ae.PureComponent=H,ae.StrictMode=f,ae.Suspense=v,ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,ae.act=b,ae.cloneElement=function(j,A,se){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var oe=D({},j.props),de=j.key,fe=j.ref,ge=j._owner;if(A!=null){if(A.ref!==void 0&&(fe=A.ref,ge=Y.current),A.key!==void 0&&(de=""+A.key),j.type&&j.type.defaultProps)var he=j.type.defaultProps;for(ke in A)U.call(A,ke)&&!ie.hasOwnProperty(ke)&&(oe[ke]=A[ke]===void 0&&he!==void 0?he[ke]:A[ke])}var ke=arguments.length-2;if(ke===1)oe.children=se;else if(1<ke){he=Array(ke);for(var it=0;it<ke;it++)he[it]=arguments[it+2];oe.children=he}return{$$typeof:s,type:j.type,key:de,ref:fe,props:oe,_owner:ge}},ae.createContext=function(j){return j={$$typeof:m,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:p,_context:j},j.Consumer=j},ae.createElement=me,ae.createFactory=function(j){var A=me.bind(null,j);return A.type=j,A},ae.createRef=function(){return{current:null}},ae.forwardRef=function(j){return{$$typeof:N,render:j}},ae.isValidElement=Le,ae.lazy=function(j){return{$$typeof:S,_payload:{_status:-1,_result:j},_init:Xe}},ae.memo=function(j,A){return{$$typeof:g,type:j,compare:A===void 0?null:A}},ae.startTransition=function(j){var A=B.transition;B.transition={};try{j()}finally{B.transition=A}},ae.unstable_act=b,ae.useCallback=function(j,A){return Pe.current.useCallback(j,A)},ae.useContext=function(j){return Pe.current.useContext(j)},ae.useDebugValue=function(){},ae.useDeferredValue=function(j){return Pe.current.useDeferredValue(j)},ae.useEffect=function(j,A){return Pe.current.useEffect(j,A)},ae.useId=function(){return Pe.current.useId()},ae.useImperativeHandle=function(j,A,se){return Pe.current.useImperativeHandle(j,A,se)},ae.useInsertionEffect=function(j,A){return Pe.current.useInsertionEffect(j,A)},ae.useLayoutEffect=function(j,A){return Pe.current.useLayoutEffect(j,A)},ae.useMemo=function(j,A){return Pe.current.useMemo(j,A)},ae.useReducer=function(j,A,se){return Pe.current.useReducer(j,A,se)},ae.useRef=function(j){return Pe.current.useRef(j)},ae.useState=function(j){return Pe.current.useState(j)},ae.useSyncExternalStore=function(j,A,se){return Pe.current.useSyncExternalStore(j,A,se)},ae.useTransition=function(){return Pe.current.useTransition()},ae.version="18.3.1",ae}var _c;function Sa(){return _c||(_c=1,ua.exports=gp()),ua.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Ec;function xp(){if(Ec)return Hr;Ec=1;var s=Sa(),u=Symbol.for("react.element"),o=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,d=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function m(N,v,g){var S,E={},T=null,P=null;g!==void 0&&(T=""+g),v.key!==void 0&&(T=""+v.key),v.ref!==void 0&&(P=v.ref);for(S in v)f.call(v,S)&&!p.hasOwnProperty(S)&&(E[S]=v[S]);if(N&&N.defaultProps)for(S in v=N.defaultProps,v)E[S]===void 0&&(E[S]=v[S]);return{$$typeof:u,type:N,key:T,ref:P,props:E,_owner:d.current}}return Hr.Fragment=o,Hr.jsx=m,Hr.jsxs=m,Hr}var Cc;function wp(){return Cc||(Cc=1,oa.exports=xp()),oa.exports}var l=wp(),w=Sa(),si={},ca={exports:{}},rt={},da={exports:{}},fa={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Rc;function Sp(){return Rc||(Rc=1,(function(s){function u(B,ee){var b=B.length;B.push(ee);e:for(;0<b;){var j=b-1>>>1,A=B[j];if(0<d(A,ee))B[j]=ee,B[b]=A,b=j;else break e}}function o(B){return B.length===0?null:B[0]}function f(B){if(B.length===0)return null;var ee=B[0],b=B.pop();if(b!==ee){B[0]=b;e:for(var j=0,A=B.length,se=A>>>1;j<se;){var oe=2*(j+1)-1,de=B[oe],fe=oe+1,ge=B[fe];if(0>d(de,b))fe<A&&0>d(ge,de)?(B[j]=ge,B[fe]=b,j=fe):(B[j]=de,B[oe]=b,j=oe);else if(fe<A&&0>d(ge,b))B[j]=ge,B[fe]=b,j=fe;else break e}}return ee}function d(B,ee){var b=B.sortIndex-ee.sortIndex;return b!==0?b:B.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;s.unstable_now=function(){return p.now()}}else{var m=Date,N=m.now();s.unstable_now=function(){return m.now()-N}}var v=[],g=[],S=1,E=null,T=3,P=!1,D=!1,I=!1,R=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function F(B){for(var ee=o(g);ee!==null;){if(ee.callback===null)f(g);else if(ee.startTime<=B)f(g),ee.sortIndex=ee.expirationTime,u(v,ee);else break;ee=o(g)}}function re(B){if(I=!1,F(B),!D)if(o(v)!==null)D=!0,Xe(U);else{var ee=o(g);ee!==null&&Pe(re,ee.startTime-B)}}function U(B,ee){D=!1,I&&(I=!1,L(me),me=-1),P=!0;var b=T;try{for(F(ee),E=o(v);E!==null&&(!(E.expirationTime>ee)||B&&!Tt());){var j=E.callback;if(typeof j=="function"){E.callback=null,T=E.priorityLevel;var A=j(E.expirationTime<=ee);ee=s.unstable_now(),typeof A=="function"?E.callback=A:E===o(v)&&f(v),F(ee)}else f(v);E=o(v)}if(E!==null)var se=!0;else{var oe=o(g);oe!==null&&Pe(re,oe.startTime-ee),se=!1}return se}finally{E=null,T=b,P=!1}}var Y=!1,ie=null,me=-1,Ee=5,Le=-1;function Tt(){return!(s.unstable_now()-Le<Ee)}function ft(){if(ie!==null){var B=s.unstable_now();Le=B;var ee=!0;try{ee=ie(!0,B)}finally{ee?lt():(Y=!1,ie=null)}}else Y=!1}var lt;if(typeof H=="function")lt=function(){H(ft)};else if(typeof MessageChannel<"u"){var wt=new MessageChannel,Lt=wt.port2;wt.port1.onmessage=ft,lt=function(){Lt.postMessage(null)}}else lt=function(){R(ft,0)};function Xe(B){ie=B,Y||(Y=!0,lt())}function Pe(B,ee){me=R(function(){B(s.unstable_now())},ee)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(B){B.callback=null},s.unstable_continueExecution=function(){D||P||(D=!0,Xe(U))},s.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ee=0<B?Math.floor(1e3/B):5},s.unstable_getCurrentPriorityLevel=function(){return T},s.unstable_getFirstCallbackNode=function(){return o(v)},s.unstable_next=function(B){switch(T){case 1:case 2:case 3:var ee=3;break;default:ee=T}var b=T;T=ee;try{return B()}finally{T=b}},s.unstable_pauseExecution=function(){},s.unstable_requestPaint=function(){},s.unstable_runWithPriority=function(B,ee){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var b=T;T=B;try{return ee()}finally{T=b}},s.unstable_scheduleCallback=function(B,ee,b){var j=s.unstable_now();switch(typeof b=="object"&&b!==null?(b=b.delay,b=typeof b=="number"&&0<b?j+b:j):b=j,B){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=b+A,B={id:S++,callback:ee,priorityLevel:B,startTime:b,expirationTime:A,sortIndex:-1},b>j?(B.sortIndex=b,u(g,B),o(v)===null&&B===o(g)&&(I?(L(me),me=-1):I=!0,Pe(re,b-j))):(B.sortIndex=A,u(v,B),D||P||(D=!0,Xe(U))),B},s.unstable_shouldYield=Tt,s.unstable_wrapCallback=function(B){var ee=T;return function(){var b=T;T=ee;try{return B.apply(this,arguments)}finally{T=b}}}})(fa)),fa}var Pc;function jp(){return Pc||(Pc=1,da.exports=Sp()),da.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Tc;function kp(){if(Tc)return rt;Tc=1;var s=Sa(),u=jp();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f=new Set,d={};function p(e,t){m(e,t),m(e+"Capture",t)}function m(e,t){for(d[e]=t,e=0;e<t.length;e++)f.add(t[e])}var N=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,S={},E={};function T(e){return v.call(E,e)?!0:v.call(S,e)?!1:g.test(e)?E[e]=!0:(S[e]=!0,!1)}function P(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function D(e,t,n,r){if(t===null||typeof t>"u"||P(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function I(e,t,n,r,i,a,c){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=c}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){R[e]=new I(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];R[t]=new I(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){R[e]=new I(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){R[e]=new I(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){R[e]=new I(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){R[e]=new I(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){R[e]=new I(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){R[e]=new I(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){R[e]=new I(e,5,!1,e.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function H(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(L,H);R[t]=new I(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(L,H);R[t]=new I(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(L,H);R[t]=new I(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){R[e]=new I(e,1,!1,e.toLowerCase(),null,!1,!1)}),R.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){R[e]=new I(e,1,!1,e.toLowerCase(),null,!0,!0)});function F(e,t,n,r){var i=R.hasOwnProperty(t)?R[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(D(t,n,i,r)&&(n=null),r||i===null?T(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var re=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),Y=Symbol.for("react.portal"),ie=Symbol.for("react.fragment"),me=Symbol.for("react.strict_mode"),Ee=Symbol.for("react.profiler"),Le=Symbol.for("react.provider"),Tt=Symbol.for("react.context"),ft=Symbol.for("react.forward_ref"),lt=Symbol.for("react.suspense"),wt=Symbol.for("react.suspense_list"),Lt=Symbol.for("react.memo"),Xe=Symbol.for("react.lazy"),Pe=Symbol.for("react.offscreen"),B=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=B&&e[B]||e["@@iterator"],typeof e=="function"?e:null)}var b=Object.assign,j;function A(e){if(j===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return`
|
|
34
|
+
`+j+e}var se=!1;function oe(e,t){if(!e||se)return"";se=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(C){var r=C}Reflect.construct(e,[],t)}else{try{t.call()}catch(C){r=C}e.call(t.prototype)}else{try{throw Error()}catch(C){r=C}e()}}catch(C){if(C&&r&&typeof C.stack=="string"){for(var i=C.stack.split(`
|
|
35
|
+
`),a=r.stack.split(`
|
|
36
|
+
`),c=i.length-1,h=a.length-1;1<=c&&0<=h&&i[c]!==a[h];)h--;for(;1<=c&&0<=h;c--,h--)if(i[c]!==a[h]){if(c!==1||h!==1)do if(c--,h--,0>h||i[c]!==a[h]){var y=`
|
|
37
|
+
`+i[c].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),y}while(1<=c&&0<=h);break}}}finally{se=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?A(e):""}function de(e){switch(e.tag){case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return e=oe(e.type,!1),e;case 11:return e=oe(e.type.render,!1),e;case 1:return e=oe(e.type,!0),e;default:return""}}function fe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ie:return"Fragment";case Y:return"Portal";case Ee:return"Profiler";case me:return"StrictMode";case lt:return"Suspense";case wt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Tt:return(e.displayName||"Context")+".Consumer";case Le:return(e._context.displayName||"Context")+".Provider";case ft:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lt:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case Xe:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}function ge(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(t);case 8:return t===me?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function he(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ke(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function it(e){var t=ke(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(c){r=""+c,a.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(c){r=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jr(e){e._valueTracker||(e._valueTracker=it(e))}function Pa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ke(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hi(e,t){var n=t.checked;return b({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ta(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=he(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function La(e,t){t=t.checked,t!=null&&F(e,"checked",t,!1)}function vi(e,t){La(e,t);var n=he(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yi(e,t.type,n):t.hasOwnProperty("defaultValue")&&yi(e,t.type,he(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function za(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function yi(e,t,n){(t!=="number"||Xr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var lr=Array.isArray;function Pn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+he(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function gi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return b({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Aa(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(o(92));if(lr(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:he(n)}}function Ma(e,t){var n=he(t.value),r=he(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Da(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Oa(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Oa(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var qr,Ia=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(qr=qr||document.createElement("div"),qr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=qr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var sr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sd=["Webkit","ms","Moz","O"];Object.keys(sr).forEach(function(e){Sd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),sr[t]=sr[e]})});function $a(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||sr.hasOwnProperty(e)&&sr[e]?(""+t).trim():t+"px"}function Fa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=$a(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var jd=b({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wi(e,t){if(t){if(jd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Si(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ji=null;function ki(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ni=null,Tn=null,Ln=null;function Ua(e){if(e=Rr(e)){if(typeof Ni!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Sl(t),Ni(e.stateNode,e.type,t))}}function Ba(e){Tn?Ln?Ln.push(e):Ln=[e]:Tn=e}function Wa(){if(Tn){var e=Tn,t=Ln;if(Ln=Tn=null,Ua(e),t)for(e=0;e<t.length;e++)Ua(t[e])}}function Ha(e,t){return e(t)}function Va(){}var _i=!1;function ba(e,t,n){if(_i)return e(t,n);_i=!0;try{return Ha(e,t,n)}finally{_i=!1,(Tn!==null||Ln!==null)&&(Va(),Wa())}}function ar(e,t){var n=e.stateNode;if(n===null)return null;var r=Sl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var Ei=!1;if(N)try{var or={};Object.defineProperty(or,"passive",{get:function(){Ei=!0}}),window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{Ei=!1}function kd(e,t,n,r,i,a,c,h,y){var C=Array.prototype.slice.call(arguments,3);try{t.apply(n,C)}catch(M){this.onError(M)}}var ur=!1,Zr=null,el=!1,Ci=null,Nd={onError:function(e){ur=!0,Zr=e}};function _d(e,t,n,r,i,a,c,h,y){ur=!1,Zr=null,kd.apply(Nd,arguments)}function Ed(e,t,n,r,i,a,c,h,y){if(_d.apply(this,arguments),ur){if(ur){var C=Zr;ur=!1,Zr=null}else throw Error(o(198));el||(el=!0,Ci=C)}}function hn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Qa(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ka(e){if(hn(e)!==e)throw Error(o(188))}function Cd(e){var t=e.alternate;if(!t){if(t=hn(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ka(i),e;if(a===r)return Ka(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var c=!1,h=i.child;h;){if(h===n){c=!0,n=i,r=a;break}if(h===r){c=!0,r=i,n=a;break}h=h.sibling}if(!c){for(h=a.child;h;){if(h===n){c=!0,n=a,r=i;break}if(h===r){c=!0,r=a,n=i;break}h=h.sibling}if(!c)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function Ga(e){return e=Cd(e),e!==null?Ya(e):null}function Ya(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ya(e);if(t!==null)return t;e=e.sibling}return null}var Ja=u.unstable_scheduleCallback,Xa=u.unstable_cancelCallback,Rd=u.unstable_shouldYield,Pd=u.unstable_requestPaint,ze=u.unstable_now,Td=u.unstable_getCurrentPriorityLevel,Ri=u.unstable_ImmediatePriority,qa=u.unstable_UserBlockingPriority,tl=u.unstable_NormalPriority,Ld=u.unstable_LowPriority,Za=u.unstable_IdlePriority,nl=null,zt=null;function zd(e){if(zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(nl,e,void 0,(e.current.flags&128)===128)}catch{}}var St=Math.clz32?Math.clz32:Dd,Ad=Math.log,Md=Math.LN2;function Dd(e){return e>>>=0,e===0?32:31-(Ad(e)/Md|0)|0}var rl=64,ll=4194304;function cr(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function il(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,c=n&268435455;if(c!==0){var h=c&~i;h!==0?r=cr(h):(a&=c,a!==0&&(r=cr(a)))}else c=n&~i,c!==0?r=cr(c):a!==0&&(r=cr(a));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-St(t),i=1<<n,r|=e[n],t&=~i;return r}function Od(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Id(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var c=31-St(a),h=1<<c,y=i[c];y===-1?((h&n)===0||(h&r)!==0)&&(i[c]=Od(h,t)):y<=t&&(e.expiredLanes|=h),a&=~h}}function Pi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function eo(){var e=rl;return rl<<=1,(rl&4194240)===0&&(rl=64),e}function Ti(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function dr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-St(t),e[t]=n}function $d(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-St(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Li(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-St(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ve=0;function to(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var no,zi,ro,lo,io,Ai=!1,sl=[],Gt=null,Yt=null,Jt=null,fr=new Map,pr=new Map,Xt=[],Fd="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function so(e,t){switch(e){case"focusin":case"focusout":Gt=null;break;case"dragenter":case"dragleave":Yt=null;break;case"mouseover":case"mouseout":Jt=null;break;case"pointerover":case"pointerout":fr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pr.delete(t.pointerId)}}function mr(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Rr(t),t!==null&&zi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ud(e,t,n,r,i){switch(t){case"focusin":return Gt=mr(Gt,e,t,n,r,i),!0;case"dragenter":return Yt=mr(Yt,e,t,n,r,i),!0;case"mouseover":return Jt=mr(Jt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return fr.set(a,mr(fr.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,pr.set(a,mr(pr.get(a)||null,e,t,n,r,i)),!0}return!1}function ao(e){var t=vn(e.target);if(t!==null){var n=hn(t);if(n!==null){if(t=n.tag,t===13){if(t=Qa(n),t!==null){e.blockedOn=t,io(e.priority,function(){ro(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function al(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Di(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ji=r,n.target.dispatchEvent(r),ji=null}else return t=Rr(n),t!==null&&zi(t),e.blockedOn=n,!1;t.shift()}return!0}function oo(e,t,n){al(e)&&n.delete(t)}function Bd(){Ai=!1,Gt!==null&&al(Gt)&&(Gt=null),Yt!==null&&al(Yt)&&(Yt=null),Jt!==null&&al(Jt)&&(Jt=null),fr.forEach(oo),pr.forEach(oo)}function hr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ai||(Ai=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Bd)))}function vr(e){function t(i){return hr(i,e)}if(0<sl.length){hr(sl[0],e);for(var n=1;n<sl.length;n++){var r=sl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Gt!==null&&hr(Gt,e),Yt!==null&&hr(Yt,e),Jt!==null&&hr(Jt,e),fr.forEach(t),pr.forEach(t),n=0;n<Xt.length;n++)r=Xt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Xt.length&&(n=Xt[0],n.blockedOn===null);)ao(n),n.blockedOn===null&&Xt.shift()}var zn=re.ReactCurrentBatchConfig,ol=!0;function Wd(e,t,n,r){var i=ve,a=zn.transition;zn.transition=null;try{ve=1,Mi(e,t,n,r)}finally{ve=i,zn.transition=a}}function Hd(e,t,n,r){var i=ve,a=zn.transition;zn.transition=null;try{ve=4,Mi(e,t,n,r)}finally{ve=i,zn.transition=a}}function Mi(e,t,n,r){if(ol){var i=Di(e,t,n,r);if(i===null)qi(e,t,r,ul,n),so(e,r);else if(Ud(i,e,t,n,r))r.stopPropagation();else if(so(e,r),t&4&&-1<Fd.indexOf(e)){for(;i!==null;){var a=Rr(i);if(a!==null&&no(a),a=Di(e,t,n,r),a===null&&qi(e,t,r,ul,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else qi(e,t,r,null,n)}}var ul=null;function Di(e,t,n,r){if(ul=null,e=ki(r),e=vn(e),e!==null)if(t=hn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Qa(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ul=e,null}function uo(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Td()){case Ri:return 1;case qa:return 4;case tl:case Ld:return 16;case Za:return 536870912;default:return 16}default:return 16}}var qt=null,Oi=null,cl=null;function co(){if(cl)return cl;var e,t=Oi,n=t.length,r,i="value"in qt?qt.value:qt.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var c=n-e;for(r=1;r<=c&&t[n-r]===i[a-r];r++);return cl=i.slice(e,1<r?1-r:void 0)}function dl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function fl(){return!0}function fo(){return!1}function st(e){function t(n,r,i,a,c){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=c,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(n=e[h],this[h]=n?n(a):a[h]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?fl:fo,this.isPropagationStopped=fo,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=fl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fl)},persist:function(){},isPersistent:fl}),t}var An={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ii=st(An),yr=b({},An,{view:0,detail:0}),Vd=st(yr),$i,Fi,gr,pl=b({},yr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==gr&&(gr&&e.type==="mousemove"?($i=e.screenX-gr.screenX,Fi=e.screenY-gr.screenY):Fi=$i=0,gr=e),$i)},movementY:function(e){return"movementY"in e?e.movementY:Fi}}),po=st(pl),bd=b({},pl,{dataTransfer:0}),Qd=st(bd),Kd=b({},yr,{relatedTarget:0}),Ui=st(Kd),Gd=b({},An,{animationName:0,elapsedTime:0,pseudoElement:0}),Yd=st(Gd),Jd=b({},An,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xd=st(Jd),qd=b({},An,{data:0}),mo=st(qd),Zd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ef={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tf[e])?!!t[e]:!1}function Bi(){return nf}var rf=b({},yr,{key:function(e){if(e.key){var t=Zd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=dl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ef[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bi,charCode:function(e){return e.type==="keypress"?dl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?dl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),lf=st(rf),sf=b({},pl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ho=st(sf),af=b({},yr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bi}),of=st(af),uf=b({},An,{propertyName:0,elapsedTime:0,pseudoElement:0}),cf=st(uf),df=b({},pl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ff=st(df),pf=[9,13,27,32],Wi=N&&"CompositionEvent"in window,xr=null;N&&"documentMode"in document&&(xr=document.documentMode);var mf=N&&"TextEvent"in window&&!xr,vo=N&&(!Wi||xr&&8<xr&&11>=xr),yo=" ",go=!1;function xo(e,t){switch(e){case"keyup":return pf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mn=!1;function hf(e,t){switch(e){case"compositionend":return wo(t);case"keypress":return t.which!==32?null:(go=!0,yo);case"textInput":return e=t.data,e===yo&&go?null:e;default:return null}}function vf(e,t){if(Mn)return e==="compositionend"||!Wi&&xo(e,t)?(e=co(),cl=Oi=qt=null,Mn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return vo&&t.locale!=="ko"?null:t.data;default:return null}}var yf={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function So(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yf[e.type]:t==="textarea"}function jo(e,t,n,r){Ba(r),t=gl(t,"onChange"),0<t.length&&(n=new Ii("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var wr=null,Sr=null;function gf(e){Uo(e,0)}function ml(e){var t=Fn(e);if(Pa(t))return e}function xf(e,t){if(e==="change")return t}var ko=!1;if(N){var Hi;if(N){var Vi="oninput"in document;if(!Vi){var No=document.createElement("div");No.setAttribute("oninput","return;"),Vi=typeof No.oninput=="function"}Hi=Vi}else Hi=!1;ko=Hi&&(!document.documentMode||9<document.documentMode)}function _o(){wr&&(wr.detachEvent("onpropertychange",Eo),Sr=wr=null)}function Eo(e){if(e.propertyName==="value"&&ml(Sr)){var t=[];jo(t,Sr,e,ki(e)),ba(gf,t)}}function wf(e,t,n){e==="focusin"?(_o(),wr=t,Sr=n,wr.attachEvent("onpropertychange",Eo)):e==="focusout"&&_o()}function Sf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ml(Sr)}function jf(e,t){if(e==="click")return ml(t)}function kf(e,t){if(e==="input"||e==="change")return ml(t)}function Nf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:Nf;function jr(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!v.call(t,i)||!jt(e[i],t[i]))return!1}return!0}function Co(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ro(e,t){var n=Co(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Co(n)}}function Po(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Po(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function To(){for(var e=window,t=Xr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xr(e.document)}return t}function bi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function _f(e){var t=To(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Po(n.ownerDocument.documentElement,n)){if(r!==null&&bi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Ro(n,a);var c=Ro(n,r);i&&c&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ef=N&&"documentMode"in document&&11>=document.documentMode,Dn=null,Qi=null,kr=null,Ki=!1;function Lo(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ki||Dn==null||Dn!==Xr(r)||(r=Dn,"selectionStart"in r&&bi(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}),kr&&jr(kr,r)||(kr=r,r=gl(Qi,"onSelect"),0<r.length&&(t=new Ii("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Dn)))}function hl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var On={animationend:hl("Animation","AnimationEnd"),animationiteration:hl("Animation","AnimationIteration"),animationstart:hl("Animation","AnimationStart"),transitionend:hl("Transition","TransitionEnd")},Gi={},zo={};N&&(zo=document.createElement("div").style,"AnimationEvent"in window||(delete On.animationend.animation,delete On.animationiteration.animation,delete On.animationstart.animation),"TransitionEvent"in window||delete On.transitionend.transition);function vl(e){if(Gi[e])return Gi[e];if(!On[e])return e;var t=On[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zo)return Gi[e]=t[n];return e}var Ao=vl("animationend"),Mo=vl("animationiteration"),Do=vl("animationstart"),Oo=vl("transitionend"),Io=new Map,$o="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Zt(e,t){Io.set(e,t),p(t,[e])}for(var Yi=0;Yi<$o.length;Yi++){var Ji=$o[Yi],Cf=Ji.toLowerCase(),Rf=Ji[0].toUpperCase()+Ji.slice(1);Zt(Cf,"on"+Rf)}Zt(Ao,"onAnimationEnd"),Zt(Mo,"onAnimationIteration"),Zt(Do,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(Oo,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Pf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function Fo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ed(r,t,void 0,e),e.currentTarget=null}function Uo(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var c=r.length-1;0<=c;c--){var h=r[c],y=h.instance,C=h.currentTarget;if(h=h.listener,y!==a&&i.isPropagationStopped())break e;Fo(i,h,C),a=y}else for(c=0;c<r.length;c++){if(h=r[c],y=h.instance,C=h.currentTarget,h=h.listener,y!==a&&i.isPropagationStopped())break e;Fo(i,h,C),a=y}}}if(el)throw e=Ci,el=!1,Ci=null,e}function we(e,t){var n=t[ls];n===void 0&&(n=t[ls]=new Set);var r=e+"__bubble";n.has(r)||(Bo(t,e,2,!1),n.add(r))}function Xi(e,t,n){var r=0;t&&(r|=4),Bo(n,e,r,t)}var yl="_reactListening"+Math.random().toString(36).slice(2);function _r(e){if(!e[yl]){e[yl]=!0,f.forEach(function(n){n!=="selectionchange"&&(Pf.has(n)||Xi(n,!1,e),Xi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yl]||(t[yl]=!0,Xi("selectionchange",!1,t))}}function Bo(e,t,n,r){switch(uo(t)){case 1:var i=Wd;break;case 4:i=Hd;break;default:i=Mi}n=i.bind(null,t,n,e),i=void 0,!Ei||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function qi(e,t,n,r,i){var a=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var c=r.tag;if(c===3||c===4){var h=r.stateNode.containerInfo;if(h===i||h.nodeType===8&&h.parentNode===i)break;if(c===4)for(c=r.return;c!==null;){var y=c.tag;if((y===3||y===4)&&(y=c.stateNode.containerInfo,y===i||y.nodeType===8&&y.parentNode===i))return;c=c.return}for(;h!==null;){if(c=vn(h),c===null)return;if(y=c.tag,y===5||y===6){r=a=c;continue e}h=h.parentNode}}r=r.return}ba(function(){var C=a,M=ki(n),O=[];e:{var z=Io.get(e);if(z!==void 0){var W=Ii,Q=e;switch(e){case"keypress":if(dl(n)===0)break e;case"keydown":case"keyup":W=lf;break;case"focusin":Q="focus",W=Ui;break;case"focusout":Q="blur",W=Ui;break;case"beforeblur":case"afterblur":W=Ui;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=po;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=Qd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=of;break;case Ao:case Mo:case Do:W=Yd;break;case Oo:W=cf;break;case"scroll":W=Vd;break;case"wheel":W=ff;break;case"copy":case"cut":case"paste":W=Xd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=ho}var G=(t&4)!==0,Ae=!G&&e==="scroll",k=G?z!==null?z+"Capture":null:z;G=[];for(var x=C,_;x!==null;){_=x;var $=_.stateNode;if(_.tag===5&&$!==null&&(_=$,k!==null&&($=ar(x,k),$!=null&&G.push(Er(x,$,_)))),Ae)break;x=x.return}0<G.length&&(z=new W(z,Q,null,n,M),O.push({event:z,listeners:G}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",W=e==="mouseout"||e==="pointerout",z&&n!==ji&&(Q=n.relatedTarget||n.fromElement)&&(vn(Q)||Q[$t]))break e;if((W||z)&&(z=M.window===M?M:(z=M.ownerDocument)?z.defaultView||z.parentWindow:window,W?(Q=n.relatedTarget||n.toElement,W=C,Q=Q?vn(Q):null,Q!==null&&(Ae=hn(Q),Q!==Ae||Q.tag!==5&&Q.tag!==6)&&(Q=null)):(W=null,Q=C),W!==Q)){if(G=po,$="onMouseLeave",k="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(G=ho,$="onPointerLeave",k="onPointerEnter",x="pointer"),Ae=W==null?z:Fn(W),_=Q==null?z:Fn(Q),z=new G($,x+"leave",W,n,M),z.target=Ae,z.relatedTarget=_,$=null,vn(M)===C&&(G=new G(k,x+"enter",Q,n,M),G.target=_,G.relatedTarget=Ae,$=G),Ae=$,W&&Q)t:{for(G=W,k=Q,x=0,_=G;_;_=In(_))x++;for(_=0,$=k;$;$=In($))_++;for(;0<x-_;)G=In(G),x--;for(;0<_-x;)k=In(k),_--;for(;x--;){if(G===k||k!==null&&G===k.alternate)break t;G=In(G),k=In(k)}G=null}else G=null;W!==null&&Wo(O,z,W,G,!1),Q!==null&&Ae!==null&&Wo(O,Ae,Q,G,!0)}}e:{if(z=C?Fn(C):window,W=z.nodeName&&z.nodeName.toLowerCase(),W==="select"||W==="input"&&z.type==="file")var J=xf;else if(So(z))if(ko)J=kf;else{J=Sf;var q=wf}else(W=z.nodeName)&&W.toLowerCase()==="input"&&(z.type==="checkbox"||z.type==="radio")&&(J=jf);if(J&&(J=J(e,C))){jo(O,J,n,M);break e}q&&q(e,z,C),e==="focusout"&&(q=z._wrapperState)&&q.controlled&&z.type==="number"&&yi(z,"number",z.value)}switch(q=C?Fn(C):window,e){case"focusin":(So(q)||q.contentEditable==="true")&&(Dn=q,Qi=C,kr=null);break;case"focusout":kr=Qi=Dn=null;break;case"mousedown":Ki=!0;break;case"contextmenu":case"mouseup":case"dragend":Ki=!1,Lo(O,n,M);break;case"selectionchange":if(Ef)break;case"keydown":case"keyup":Lo(O,n,M)}var Z;if(Wi)e:{switch(e){case"compositionstart":var ne="onCompositionStart";break e;case"compositionend":ne="onCompositionEnd";break e;case"compositionupdate":ne="onCompositionUpdate";break e}ne=void 0}else Mn?xo(e,n)&&(ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ne="onCompositionStart");ne&&(vo&&n.locale!=="ko"&&(Mn||ne!=="onCompositionStart"?ne==="onCompositionEnd"&&Mn&&(Z=co()):(qt=M,Oi="value"in qt?qt.value:qt.textContent,Mn=!0)),q=gl(C,ne),0<q.length&&(ne=new mo(ne,e,null,n,M),O.push({event:ne,listeners:q}),Z?ne.data=Z:(Z=wo(n),Z!==null&&(ne.data=Z)))),(Z=mf?hf(e,n):vf(e,n))&&(C=gl(C,"onBeforeInput"),0<C.length&&(M=new mo("onBeforeInput","beforeinput",null,n,M),O.push({event:M,listeners:C}),M.data=Z))}Uo(O,t)})}function Er(e,t,n){return{instance:e,listener:t,currentTarget:n}}function gl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=ar(e,n),a!=null&&r.unshift(Er(e,a,i)),a=ar(e,t),a!=null&&r.push(Er(e,a,i))),e=e.return}return r}function In(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Wo(e,t,n,r,i){for(var a=t._reactName,c=[];n!==null&&n!==r;){var h=n,y=h.alternate,C=h.stateNode;if(y!==null&&y===r)break;h.tag===5&&C!==null&&(h=C,i?(y=ar(n,a),y!=null&&c.unshift(Er(n,y,h))):i||(y=ar(n,a),y!=null&&c.push(Er(n,y,h)))),n=n.return}c.length!==0&&e.push({event:t,listeners:c})}var Tf=/\r\n?/g,Lf=/\u0000|\uFFFD/g;function Ho(e){return(typeof e=="string"?e:""+e).replace(Tf,`
|
|
38
|
+
`).replace(Lf,"")}function xl(e,t,n){if(t=Ho(t),Ho(e)!==t&&n)throw Error(o(425))}function wl(){}var Zi=null,es=null;function ts(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ns=typeof setTimeout=="function"?setTimeout:void 0,zf=typeof clearTimeout=="function"?clearTimeout:void 0,Vo=typeof Promise=="function"?Promise:void 0,Af=typeof queueMicrotask=="function"?queueMicrotask:typeof Vo<"u"?function(e){return Vo.resolve(null).then(e).catch(Mf)}:ns;function Mf(e){setTimeout(function(){throw e})}function rs(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),vr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);vr(t)}function en(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function bo(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var $n=Math.random().toString(36).slice(2),At="__reactFiber$"+$n,Cr="__reactProps$"+$n,$t="__reactContainer$"+$n,ls="__reactEvents$"+$n,Df="__reactListeners$"+$n,Of="__reactHandles$"+$n;function vn(e){var t=e[At];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$t]||n[At]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bo(e);e!==null;){if(n=e[At])return n;e=bo(e)}return t}e=n,n=e.parentNode}return null}function Rr(e){return e=e[At]||e[$t],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Sl(e){return e[Cr]||null}var is=[],Un=-1;function tn(e){return{current:e}}function Se(e){0>Un||(e.current=is[Un],is[Un]=null,Un--)}function xe(e,t){Un++,is[Un]=e.current,e.current=t}var nn={},Ve=tn(nn),qe=tn(!1),yn=nn;function Bn(e,t){var n=e.type.contextTypes;if(!n)return nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ze(e){return e=e.childContextTypes,e!=null}function jl(){Se(qe),Se(Ve)}function Qo(e,t,n){if(Ve.current!==nn)throw Error(o(168));xe(Ve,t),xe(qe,n)}function Ko(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(o(108,ge(e)||"Unknown",i));return b({},n,r)}function kl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nn,yn=Ve.current,xe(Ve,e),xe(qe,qe.current),!0}function Go(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ko(e,t,yn),r.__reactInternalMemoizedMergedChildContext=e,Se(qe),Se(Ve),xe(Ve,e)):Se(qe),xe(qe,n)}var Ft=null,Nl=!1,ss=!1;function Yo(e){Ft===null?Ft=[e]:Ft.push(e)}function If(e){Nl=!0,Yo(e)}function rn(){if(!ss&&Ft!==null){ss=!0;var e=0,t=ve;try{var n=Ft;for(ve=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ft=null,Nl=!1}catch(i){throw Ft!==null&&(Ft=Ft.slice(e+1)),Ja(Ri,rn),i}finally{ve=t,ss=!1}}return null}var Wn=[],Hn=0,_l=null,El=0,pt=[],mt=0,gn=null,Ut=1,Bt="";function xn(e,t){Wn[Hn++]=El,Wn[Hn++]=_l,_l=e,El=t}function Jo(e,t,n){pt[mt++]=Ut,pt[mt++]=Bt,pt[mt++]=gn,gn=e;var r=Ut;e=Bt;var i=32-St(r)-1;r&=~(1<<i),n+=1;var a=32-St(t)+i;if(30<a){var c=i-i%5;a=(r&(1<<c)-1).toString(32),r>>=c,i-=c,Ut=1<<32-St(t)+i|n<<i|r,Bt=a+e}else Ut=1<<a|n<<i|r,Bt=e}function as(e){e.return!==null&&(xn(e,1),Jo(e,1,0))}function os(e){for(;e===_l;)_l=Wn[--Hn],Wn[Hn]=null,El=Wn[--Hn],Wn[Hn]=null;for(;e===gn;)gn=pt[--mt],pt[mt]=null,Bt=pt[--mt],pt[mt]=null,Ut=pt[--mt],pt[mt]=null}var at=null,ot=null,Ne=!1,kt=null;function Xo(e,t){var n=gt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function qo(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,at=e,ot=en(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,at=e,ot=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=gn!==null?{id:Ut,overflow:Bt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=gt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,at=e,ot=null,!0):!1;default:return!1}}function us(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cs(e){if(Ne){var t=ot;if(t){var n=t;if(!qo(e,t)){if(us(e))throw Error(o(418));t=en(n.nextSibling);var r=at;t&&qo(e,t)?Xo(r,n):(e.flags=e.flags&-4097|2,Ne=!1,at=e)}}else{if(us(e))throw Error(o(418));e.flags=e.flags&-4097|2,Ne=!1,at=e}}}function Zo(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;at=e}function Cl(e){if(e!==at)return!1;if(!Ne)return Zo(e),Ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ts(e.type,e.memoizedProps)),t&&(t=ot)){if(us(e))throw eu(),Error(o(418));for(;t;)Xo(e,t),t=en(t.nextSibling)}if(Zo(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ot=en(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ot=null}}else ot=at?en(e.stateNode.nextSibling):null;return!0}function eu(){for(var e=ot;e;)e=en(e.nextSibling)}function Vn(){ot=at=null,Ne=!1}function ds(e){kt===null?kt=[e]:kt.push(e)}var $f=re.ReactCurrentBatchConfig;function Pr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(c){var h=i.refs;c===null?delete h[a]:h[a]=c},t._stringRef=a,t)}if(typeof e!="string")throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Rl(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function tu(e){var t=e._init;return t(e._payload)}function nu(e){function t(k,x){if(e){var _=k.deletions;_===null?(k.deletions=[x],k.flags|=16):_.push(x)}}function n(k,x){if(!e)return null;for(;x!==null;)t(k,x),x=x.sibling;return null}function r(k,x){for(k=new Map;x!==null;)x.key!==null?k.set(x.key,x):k.set(x.index,x),x=x.sibling;return k}function i(k,x){return k=fn(k,x),k.index=0,k.sibling=null,k}function a(k,x,_){return k.index=_,e?(_=k.alternate,_!==null?(_=_.index,_<x?(k.flags|=2,x):_):(k.flags|=2,x)):(k.flags|=1048576,x)}function c(k){return e&&k.alternate===null&&(k.flags|=2),k}function h(k,x,_,$){return x===null||x.tag!==6?(x=na(_,k.mode,$),x.return=k,x):(x=i(x,_),x.return=k,x)}function y(k,x,_,$){var J=_.type;return J===ie?M(k,x,_.props.children,$,_.key):x!==null&&(x.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Xe&&tu(J)===x.type)?($=i(x,_.props),$.ref=Pr(k,x,_),$.return=k,$):($=ql(_.type,_.key,_.props,null,k.mode,$),$.ref=Pr(k,x,_),$.return=k,$)}function C(k,x,_,$){return x===null||x.tag!==4||x.stateNode.containerInfo!==_.containerInfo||x.stateNode.implementation!==_.implementation?(x=ra(_,k.mode,$),x.return=k,x):(x=i(x,_.children||[]),x.return=k,x)}function M(k,x,_,$,J){return x===null||x.tag!==7?(x=Cn(_,k.mode,$,J),x.return=k,x):(x=i(x,_),x.return=k,x)}function O(k,x,_){if(typeof x=="string"&&x!==""||typeof x=="number")return x=na(""+x,k.mode,_),x.return=k,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case U:return _=ql(x.type,x.key,x.props,null,k.mode,_),_.ref=Pr(k,null,x),_.return=k,_;case Y:return x=ra(x,k.mode,_),x.return=k,x;case Xe:var $=x._init;return O(k,$(x._payload),_)}if(lr(x)||ee(x))return x=Cn(x,k.mode,_,null),x.return=k,x;Rl(k,x)}return null}function z(k,x,_,$){var J=x!==null?x.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return J!==null?null:h(k,x,""+_,$);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case U:return _.key===J?y(k,x,_,$):null;case Y:return _.key===J?C(k,x,_,$):null;case Xe:return J=_._init,z(k,x,J(_._payload),$)}if(lr(_)||ee(_))return J!==null?null:M(k,x,_,$,null);Rl(k,_)}return null}function W(k,x,_,$,J){if(typeof $=="string"&&$!==""||typeof $=="number")return k=k.get(_)||null,h(x,k,""+$,J);if(typeof $=="object"&&$!==null){switch($.$$typeof){case U:return k=k.get($.key===null?_:$.key)||null,y(x,k,$,J);case Y:return k=k.get($.key===null?_:$.key)||null,C(x,k,$,J);case Xe:var q=$._init;return W(k,x,_,q($._payload),J)}if(lr($)||ee($))return k=k.get(_)||null,M(x,k,$,J,null);Rl(x,$)}return null}function Q(k,x,_,$){for(var J=null,q=null,Z=x,ne=x=0,Ue=null;Z!==null&&ne<_.length;ne++){Z.index>ne?(Ue=Z,Z=null):Ue=Z.sibling;var pe=z(k,Z,_[ne],$);if(pe===null){Z===null&&(Z=Ue);break}e&&Z&&pe.alternate===null&&t(k,Z),x=a(pe,x,ne),q===null?J=pe:q.sibling=pe,q=pe,Z=Ue}if(ne===_.length)return n(k,Z),Ne&&xn(k,ne),J;if(Z===null){for(;ne<_.length;ne++)Z=O(k,_[ne],$),Z!==null&&(x=a(Z,x,ne),q===null?J=Z:q.sibling=Z,q=Z);return Ne&&xn(k,ne),J}for(Z=r(k,Z);ne<_.length;ne++)Ue=W(Z,k,ne,_[ne],$),Ue!==null&&(e&&Ue.alternate!==null&&Z.delete(Ue.key===null?ne:Ue.key),x=a(Ue,x,ne),q===null?J=Ue:q.sibling=Ue,q=Ue);return e&&Z.forEach(function(pn){return t(k,pn)}),Ne&&xn(k,ne),J}function G(k,x,_,$){var J=ee(_);if(typeof J!="function")throw Error(o(150));if(_=J.call(_),_==null)throw Error(o(151));for(var q=J=null,Z=x,ne=x=0,Ue=null,pe=_.next();Z!==null&&!pe.done;ne++,pe=_.next()){Z.index>ne?(Ue=Z,Z=null):Ue=Z.sibling;var pn=z(k,Z,pe.value,$);if(pn===null){Z===null&&(Z=Ue);break}e&&Z&&pn.alternate===null&&t(k,Z),x=a(pn,x,ne),q===null?J=pn:q.sibling=pn,q=pn,Z=Ue}if(pe.done)return n(k,Z),Ne&&xn(k,ne),J;if(Z===null){for(;!pe.done;ne++,pe=_.next())pe=O(k,pe.value,$),pe!==null&&(x=a(pe,x,ne),q===null?J=pe:q.sibling=pe,q=pe);return Ne&&xn(k,ne),J}for(Z=r(k,Z);!pe.done;ne++,pe=_.next())pe=W(Z,k,ne,pe.value,$),pe!==null&&(e&&pe.alternate!==null&&Z.delete(pe.key===null?ne:pe.key),x=a(pe,x,ne),q===null?J=pe:q.sibling=pe,q=pe);return e&&Z.forEach(function(yp){return t(k,yp)}),Ne&&xn(k,ne),J}function Ae(k,x,_,$){if(typeof _=="object"&&_!==null&&_.type===ie&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case U:e:{for(var J=_.key,q=x;q!==null;){if(q.key===J){if(J=_.type,J===ie){if(q.tag===7){n(k,q.sibling),x=i(q,_.props.children),x.return=k,k=x;break e}}else if(q.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Xe&&tu(J)===q.type){n(k,q.sibling),x=i(q,_.props),x.ref=Pr(k,q,_),x.return=k,k=x;break e}n(k,q);break}else t(k,q);q=q.sibling}_.type===ie?(x=Cn(_.props.children,k.mode,$,_.key),x.return=k,k=x):($=ql(_.type,_.key,_.props,null,k.mode,$),$.ref=Pr(k,x,_),$.return=k,k=$)}return c(k);case Y:e:{for(q=_.key;x!==null;){if(x.key===q)if(x.tag===4&&x.stateNode.containerInfo===_.containerInfo&&x.stateNode.implementation===_.implementation){n(k,x.sibling),x=i(x,_.children||[]),x.return=k,k=x;break e}else{n(k,x);break}else t(k,x);x=x.sibling}x=ra(_,k.mode,$),x.return=k,k=x}return c(k);case Xe:return q=_._init,Ae(k,x,q(_._payload),$)}if(lr(_))return Q(k,x,_,$);if(ee(_))return G(k,x,_,$);Rl(k,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,x!==null&&x.tag===6?(n(k,x.sibling),x=i(x,_),x.return=k,k=x):(n(k,x),x=na(_,k.mode,$),x.return=k,k=x),c(k)):n(k,x)}return Ae}var bn=nu(!0),ru=nu(!1),Pl=tn(null),Tl=null,Qn=null,fs=null;function ps(){fs=Qn=Tl=null}function ms(e){var t=Pl.current;Se(Pl),e._currentValue=t}function hs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Kn(e,t){Tl=e,fs=Qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(et=!0),e.firstContext=null)}function ht(e){var t=e._currentValue;if(fs!==e)if(e={context:e,memoizedValue:t,next:null},Qn===null){if(Tl===null)throw Error(o(308));Qn=e,Tl.dependencies={lanes:0,firstContext:e}}else Qn=Qn.next=e;return t}var wn=null;function vs(e){wn===null?wn=[e]:wn.push(e)}function lu(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,vs(t)):(n.next=i.next,i.next=n),t.interleaved=n,Wt(e,r)}function Wt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ln=!1;function ys(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ht(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ue&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Wt(e,n)}return i=r.interleaved,i===null?(t.next=t,vs(r)):(t.next=i.next,i.next=t),r.interleaved=t,Wt(e,n)}function Ll(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Li(e,n)}}function su(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 c={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=c:a=a.next=c,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,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zl(e,t,n,r){var i=e.updateQueue;ln=!1;var a=i.firstBaseUpdate,c=i.lastBaseUpdate,h=i.shared.pending;if(h!==null){i.shared.pending=null;var y=h,C=y.next;y.next=null,c===null?a=C:c.next=C,c=y;var M=e.alternate;M!==null&&(M=M.updateQueue,h=M.lastBaseUpdate,h!==c&&(h===null?M.firstBaseUpdate=C:h.next=C,M.lastBaseUpdate=y))}if(a!==null){var O=i.baseState;c=0,M=C=y=null,h=a;do{var z=h.lane,W=h.eventTime;if((r&z)===z){M!==null&&(M=M.next={eventTime:W,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var Q=e,G=h;switch(z=t,W=n,G.tag){case 1:if(Q=G.payload,typeof Q=="function"){O=Q.call(W,O,z);break e}O=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=G.payload,z=typeof Q=="function"?Q.call(W,O,z):Q,z==null)break e;O=b({},O,z);break e;case 2:ln=!0}}h.callback!==null&&h.lane!==0&&(e.flags|=64,z=i.effects,z===null?i.effects=[h]:z.push(h))}else W={eventTime:W,lane:z,tag:h.tag,payload:h.payload,callback:h.callback,next:null},M===null?(C=M=W,y=O):M=M.next=W,c|=z;if(h=h.next,h===null){if(h=i.shared.pending,h===null)break;z=h,h=z.next,z.next=null,i.lastBaseUpdate=z,i.shared.pending=null}}while(!0);if(M===null&&(y=O),i.baseState=y,i.firstBaseUpdate=C,i.lastBaseUpdate=M,t=i.shared.interleaved,t!==null){i=t;do c|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);kn|=c,e.lanes=c,e.memoizedState=O}}function au(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(o(191,i));i.call(r)}}}var Tr={},Mt=tn(Tr),Lr=tn(Tr),zr=tn(Tr);function Sn(e){if(e===Tr)throw Error(o(174));return e}function gs(e,t){switch(xe(zr,t),xe(Lr,e),xe(Mt,Tr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xi(t,e)}Se(Mt),xe(Mt,t)}function Gn(){Se(Mt),Se(Lr),Se(zr)}function ou(e){Sn(zr.current);var t=Sn(Mt.current),n=xi(t,e.type);t!==n&&(xe(Lr,e),xe(Mt,n))}function xs(e){Lr.current===e&&(Se(Mt),Se(Lr))}var Ce=tn(0);function Al(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ws=[];function Ss(){for(var e=0;e<ws.length;e++)ws[e]._workInProgressVersionPrimary=null;ws.length=0}var Ml=re.ReactCurrentDispatcher,js=re.ReactCurrentBatchConfig,jn=0,Re=null,Oe=null,$e=null,Dl=!1,Ar=!1,Mr=0,Ff=0;function be(){throw Error(o(321))}function ks(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function Ns(e,t,n,r,i,a){if(jn=a,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ml.current=e===null||e.memoizedState===null?Hf:Vf,e=n(r,i),Ar){a=0;do{if(Ar=!1,Mr=0,25<=a)throw Error(o(301));a+=1,$e=Oe=null,t.updateQueue=null,Ml.current=bf,e=n(r,i)}while(Ar)}if(Ml.current=$l,t=Oe!==null&&Oe.next!==null,jn=0,$e=Oe=Re=null,Dl=!1,t)throw Error(o(300));return e}function _s(){var e=Mr!==0;return Mr=0,e}function Dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?Re.memoizedState=$e=e:$e=$e.next=e,$e}function vt(){if(Oe===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=$e===null?Re.memoizedState:$e.next;if(t!==null)$e=t,Oe=e;else{if(e===null)throw Error(o(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},$e===null?Re.memoizedState=$e=e:$e=$e.next=e}return $e}function Dr(e,t){return typeof t=="function"?t(e):t}function Es(e){var t=vt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=Oe,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var c=i.next;i.next=a.next,a.next=c}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var h=c=null,y=null,C=a;do{var M=C.lane;if((jn&M)===M)y!==null&&(y=y.next={lane:0,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),r=C.hasEagerState?C.eagerState:e(r,C.action);else{var O={lane:M,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null};y===null?(h=y=O,c=r):y=y.next=O,Re.lanes|=M,kn|=M}C=C.next}while(C!==null&&C!==a);y===null?c=r:y.next=h,jt(r,t.memoizedState)||(et=!0),t.memoizedState=r,t.baseState=c,t.baseQueue=y,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,Re.lanes|=a,kn|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Cs(e){var t=vt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var c=i=i.next;do a=e(a,c.action),c=c.next;while(c!==i);jt(a,t.memoizedState)||(et=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function uu(){}function cu(e,t){var n=Re,r=vt(),i=t(),a=!jt(r.memoizedState,i);if(a&&(r.memoizedState=i,et=!0),r=r.queue,Rs(pu.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||$e!==null&&$e.memoizedState.tag&1){if(n.flags|=2048,Or(9,fu.bind(null,n,r,i,t),void 0,null),Fe===null)throw Error(o(349));(jn&30)!==0||du(n,t,i)}return i}function du(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Re.updateQueue,t===null?(t={lastEffect:null,stores:null},Re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function fu(e,t,n,r){t.value=n,t.getSnapshot=r,mu(t)&&hu(e)}function pu(e,t,n){return n(function(){mu(t)&&hu(e)})}function mu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jt(e,n)}catch{return!0}}function hu(e){var t=Wt(e,1);t!==null&&Ct(t,e,1,-1)}function vu(e){var t=Dt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Dr,lastRenderedState:e},t.queue=e,e=e.dispatch=Wf.bind(null,Re,e),[t.memoizedState,e]}function Or(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Re.updateQueue,t===null?(t={lastEffect:null,stores:null},Re.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function yu(){return vt().memoizedState}function Ol(e,t,n,r){var i=Dt();Re.flags|=e,i.memoizedState=Or(1|t,n,void 0,r===void 0?null:r)}function Il(e,t,n,r){var i=vt();r=r===void 0?null:r;var a=void 0;if(Oe!==null){var c=Oe.memoizedState;if(a=c.destroy,r!==null&&ks(r,c.deps)){i.memoizedState=Or(t,n,a,r);return}}Re.flags|=e,i.memoizedState=Or(1|t,n,a,r)}function gu(e,t){return Ol(8390656,8,e,t)}function Rs(e,t){return Il(2048,8,e,t)}function xu(e,t){return Il(4,2,e,t)}function wu(e,t){return Il(4,4,e,t)}function Su(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ju(e,t,n){return n=n!=null?n.concat([e]):null,Il(4,4,Su.bind(null,t,e),n)}function Ps(){}function ku(e,t){var n=vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ks(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Nu(e,t){var n=vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ks(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _u(e,t,n){return(jn&21)===0?(e.baseState&&(e.baseState=!1,et=!0),e.memoizedState=n):(jt(n,t)||(n=eo(),Re.lanes|=n,kn|=n,e.baseState=!0),t)}function Uf(e,t){var n=ve;ve=n!==0&&4>n?n:4,e(!0);var r=js.transition;js.transition={};try{e(!1),t()}finally{ve=n,js.transition=r}}function Eu(){return vt().memoizedState}function Bf(e,t,n){var r=cn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Cu(e))Ru(t,n);else if(n=lu(e,t,n,r),n!==null){var i=Ye();Ct(n,e,r,i),Pu(n,t,r)}}function Wf(e,t,n){var r=cn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cu(e))Ru(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var c=t.lastRenderedState,h=a(c,n);if(i.hasEagerState=!0,i.eagerState=h,jt(h,c)){var y=t.interleaved;y===null?(i.next=i,vs(t)):(i.next=y.next,y.next=i),t.interleaved=i;return}}catch{}finally{}n=lu(e,t,i,r),n!==null&&(i=Ye(),Ct(n,e,r,i),Pu(n,t,r))}}function Cu(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function Ru(e,t){Ar=Dl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Pu(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Li(e,n)}}var $l={readContext:ht,useCallback:be,useContext:be,useEffect:be,useImperativeHandle:be,useInsertionEffect:be,useLayoutEffect:be,useMemo:be,useReducer:be,useRef:be,useState:be,useDebugValue:be,useDeferredValue:be,useTransition:be,useMutableSource:be,useSyncExternalStore:be,useId:be,unstable_isNewReconciler:!1},Hf={readContext:ht,useCallback:function(e,t){return Dt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:gu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ol(4194308,4,Su.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ol(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ol(4,2,e,t)},useMemo:function(e,t){var n=Dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Dt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Bf.bind(null,Re,e),[r.memoizedState,e]},useRef:function(e){var t=Dt();return e={current:e},t.memoizedState=e},useState:vu,useDebugValue:Ps,useDeferredValue:function(e){return Dt().memoizedState=e},useTransition:function(){var e=vu(!1),t=e[0];return e=Uf.bind(null,e[1]),Dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Re,i=Dt();if(Ne){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Fe===null)throw Error(o(349));(jn&30)!==0||du(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,gu(pu.bind(null,r,a,e),[e]),r.flags|=2048,Or(9,fu.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Dt(),t=Fe.identifierPrefix;if(Ne){var n=Bt,r=Ut;n=(r&~(1<<32-St(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Mr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ff++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Vf={readContext:ht,useCallback:ku,useContext:ht,useEffect:Rs,useImperativeHandle:ju,useInsertionEffect:xu,useLayoutEffect:wu,useMemo:Nu,useReducer:Es,useRef:yu,useState:function(){return Es(Dr)},useDebugValue:Ps,useDeferredValue:function(e){var t=vt();return _u(t,Oe.memoizedState,e)},useTransition:function(){var e=Es(Dr)[0],t=vt().memoizedState;return[e,t]},useMutableSource:uu,useSyncExternalStore:cu,useId:Eu,unstable_isNewReconciler:!1},bf={readContext:ht,useCallback:ku,useContext:ht,useEffect:Rs,useImperativeHandle:ju,useInsertionEffect:xu,useLayoutEffect:wu,useMemo:Nu,useReducer:Cs,useRef:yu,useState:function(){return Cs(Dr)},useDebugValue:Ps,useDeferredValue:function(e){var t=vt();return Oe===null?t.memoizedState=e:_u(t,Oe.memoizedState,e)},useTransition:function(){var e=Cs(Dr)[0],t=vt().memoizedState;return[e,t]},useMutableSource:uu,useSyncExternalStore:cu,useId:Eu,unstable_isNewReconciler:!1};function Nt(e,t){if(e&&e.defaultProps){t=b({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ts(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Fl={isMounted:function(e){return(e=e._reactInternals)?hn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ye(),i=cn(e),a=Ht(r,i);a.payload=t,n!=null&&(a.callback=n),t=sn(e,a,i),t!==null&&(Ct(t,e,i,r),Ll(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ye(),i=cn(e),a=Ht(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=sn(e,a,i),t!==null&&(Ct(t,e,i,r),Ll(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ye(),r=cn(e),i=Ht(n,r);i.tag=2,t!=null&&(i.callback=t),t=sn(e,i,r),t!==null&&(Ct(t,e,r,n),Ll(t,e,r))}};function Tu(e,t,n,r,i,a,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,c):t.prototype&&t.prototype.isPureReactComponent?!jr(n,r)||!jr(i,a):!0}function Lu(e,t,n){var r=!1,i=nn,a=t.contextType;return typeof a=="object"&&a!==null?a=ht(a):(i=Ze(t)?yn:Ve.current,r=t.contextTypes,a=(r=r!=null)?Bn(e,i):nn),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Fl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function zu(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Fl.enqueueReplaceState(t,t.state,null)}function Ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ys(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=ht(a):(a=Ze(t)?yn:Ve.current,i.context=Bn(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Ts(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Fl.enqueueReplaceState(i,i.state,null),zl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Yn(e,t){try{var n="",r=t;do n+=de(r),r=r.return;while(r);var i=n}catch(a){i=`
|
|
39
|
+
Error generating stack: `+a.message+`
|
|
40
|
+
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function zs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function As(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Qf=typeof WeakMap=="function"?WeakMap:Map;function Au(e,t,n){n=Ht(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ql||(Ql=!0,Gs=r),As(e,t)},n}function Mu(e,t,n){n=Ht(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){As(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){As(e,t),typeof r!="function"&&(on===null?on=new Set([this]):on.add(this));var c=t.stack;this.componentDidCatch(t.value,{componentStack:c!==null?c:""})}),n}function Du(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qf;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)||(i.add(n),e=sp.bind(null,e,t,n),t.then(e,e))}function Ou(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Iu(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ht(-1,1),t.tag=2,sn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var Kf=re.ReactCurrentOwner,et=!1;function Ge(e,t,n,r){t.child=e===null?ru(t,null,n,r):bn(t,e.child,n,r)}function $u(e,t,n,r,i){n=n.render;var a=t.ref;return Kn(t,i),r=Ns(e,t,n,r,a,i),n=_s(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vt(e,t,i)):(Ne&&n&&as(t),t.flags|=1,Ge(e,t,r,i),t.child)}function Fu(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!ta(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Uu(e,t,a,r,i)):(e=ql(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var c=a.memoizedProps;if(n=n.compare,n=n!==null?n:jr,n(c,r)&&e.ref===t.ref)return Vt(e,t,i)}return t.flags|=1,e=fn(a,r),e.ref=t.ref,e.return=t,t.child=e}function Uu(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(jr(a,r)&&e.ref===t.ref)if(et=!1,t.pendingProps=r=a,(e.lanes&i)!==0)(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,Vt(e,t,i)}return Ms(e,t,n,r,i)}function Bu(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xe(Xn,ut),ut|=n;else{if((n&1073741824)===0)return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xe(Xn,ut),ut|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,xe(Xn,ut),ut|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,xe(Xn,ut),ut|=r;return Ge(e,t,i,n),t.child}function Wu(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ms(e,t,n,r,i){var a=Ze(n)?yn:Ve.current;return a=Bn(t,a),Kn(t,i),n=Ns(e,t,n,r,a,i),r=_s(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vt(e,t,i)):(Ne&&r&&as(t),t.flags|=1,Ge(e,t,n,i),t.child)}function Hu(e,t,n,r,i){if(Ze(n)){var a=!0;kl(t)}else a=!1;if(Kn(t,i),t.stateNode===null)Bl(e,t),Lu(t,n,r),Ls(t,n,r,i),r=!0;else if(e===null){var c=t.stateNode,h=t.memoizedProps;c.props=h;var y=c.context,C=n.contextType;typeof C=="object"&&C!==null?C=ht(C):(C=Ze(n)?yn:Ve.current,C=Bn(t,C));var M=n.getDerivedStateFromProps,O=typeof M=="function"||typeof c.getSnapshotBeforeUpdate=="function";O||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==r||y!==C)&&zu(t,c,r,C),ln=!1;var z=t.memoizedState;c.state=z,zl(t,r,c,i),y=t.memoizedState,h!==r||z!==y||qe.current||ln?(typeof M=="function"&&(Ts(t,n,M,r),y=t.memoizedState),(h=ln||Tu(t,n,h,r,z,y,C))?(O||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=y),c.props=r,c.state=y,c.context=C,r=h):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,iu(e,t),h=t.memoizedProps,C=t.type===t.elementType?h:Nt(t.type,h),c.props=C,O=t.pendingProps,z=c.context,y=n.contextType,typeof y=="object"&&y!==null?y=ht(y):(y=Ze(n)?yn:Ve.current,y=Bn(t,y));var W=n.getDerivedStateFromProps;(M=typeof W=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==O||z!==y)&&zu(t,c,r,y),ln=!1,z=t.memoizedState,c.state=z,zl(t,r,c,i);var Q=t.memoizedState;h!==O||z!==Q||qe.current||ln?(typeof W=="function"&&(Ts(t,n,W,r),Q=t.memoizedState),(C=ln||Tu(t,n,C,r,z,Q,y)||!1)?(M||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,Q,y),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,Q,y)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=Q),c.props=r,c.state=Q,c.context=y,r=C):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),r=!1)}return Ds(e,t,n,r,a,i)}function Ds(e,t,n,r,i,a){Wu(e,t);var c=(t.flags&128)!==0;if(!r&&!c)return i&&Go(t,n,!1),Vt(e,t,a);r=t.stateNode,Kf.current=t;var h=c&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&c?(t.child=bn(t,e.child,null,a),t.child=bn(t,null,h,a)):Ge(e,t,h,a),t.memoizedState=r.state,i&&Go(t,n,!0),t.child}function Vu(e){var t=e.stateNode;t.pendingContext?Qo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qo(e,t.context,!1),gs(e,t.containerInfo)}function bu(e,t,n,r,i){return Vn(),ds(i),t.flags|=256,Ge(e,t,n,r),t.child}var Os={dehydrated:null,treeContext:null,retryLane:0};function Is(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qu(e,t,n){var r=t.pendingProps,i=Ce.current,a=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(i&2)!==0),h?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),xe(Ce,i&1),e===null)return cs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(c=r.children,e=r.fallback,a?(r=t.mode,a=t.child,c={mode:"hidden",children:c},(r&1)===0&&a!==null?(a.childLanes=0,a.pendingProps=c):a=Zl(c,r,0,null),e=Cn(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Is(n),t.memoizedState=Os,e):$s(t,c));if(i=e.memoizedState,i!==null&&(h=i.dehydrated,h!==null))return Gf(e,t,c,r,h,i,n);if(a){a=r.fallback,c=t.mode,i=e.child,h=i.sibling;var y={mode:"hidden",children:r.children};return(c&1)===0&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=y,t.deletions=null):(r=fn(i,y),r.subtreeFlags=i.subtreeFlags&14680064),h!==null?a=fn(h,a):(a=Cn(a,c,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,c=e.child.memoizedState,c=c===null?Is(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},a.memoizedState=c,a.childLanes=e.childLanes&~n,t.memoizedState=Os,r}return a=e.child,e=a.sibling,r=fn(a,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function $s(e,t){return t=Zl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ul(e,t,n,r){return r!==null&&ds(r),bn(t,e.child,null,n),e=$s(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gf(e,t,n,r,i,a,c){if(n)return t.flags&256?(t.flags&=-257,r=zs(Error(o(422))),Ul(e,t,c,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Zl({mode:"visible",children:r.children},i,0,null),a=Cn(a,i,c,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,(t.mode&1)!==0&&bn(t,e.child,null,c),t.child.memoizedState=Is(c),t.memoizedState=Os,a);if((t.mode&1)===0)return Ul(e,t,c,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var h=r.dgst;return r=h,a=Error(o(419)),r=zs(a,r,void 0),Ul(e,t,c,r)}if(h=(c&e.childLanes)!==0,et||h){if(r=Fe,r!==null){switch(c&-c){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|c))!==0?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Wt(e,i),Ct(r,e,i,-1))}return ea(),r=zs(Error(o(421))),Ul(e,t,c,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=ap.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ot=en(i.nextSibling),at=t,Ne=!0,kt=null,e!==null&&(pt[mt++]=Ut,pt[mt++]=Bt,pt[mt++]=gn,Ut=e.id,Bt=e.overflow,gn=t),t=$s(t,r.children),t.flags|=4096,t)}function Ku(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),hs(e.return,t,n)}function Fs(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function Gu(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Ge(e,t,r.children,n),r=Ce.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ku(e,n,t);else if(e.tag===19)Ku(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(xe(Ce,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Al(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Fs(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Al(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Fs(t,!0,n,null,a);break;case"together":Fs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Yf(e,t,n){switch(t.tag){case 3:Vu(t),Vn();break;case 5:ou(t);break;case 1:Ze(t.type)&&kl(t);break;case 4:gs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;xe(Pl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(xe(Ce,Ce.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Qu(e,t,n):(xe(Ce,Ce.current&1),e=Vt(e,t,n),e!==null?e.sibling:null);xe(Ce,Ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Gu(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),xe(Ce,Ce.current),r)break;return null;case 22:case 23:return t.lanes=0,Bu(e,t,n)}return Vt(e,t,n)}var Yu,Us,Ju,Xu;Yu=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Us=function(){},Ju=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Sn(Mt.current);var a=null;switch(n){case"input":i=hi(e,i),r=hi(e,r),a=[];break;case"select":i=b({},i,{value:void 0}),r=b({},r,{value:void 0}),a=[];break;case"textarea":i=gi(e,i),r=gi(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=wl)}wi(n,r);var c;n=null;for(C in i)if(!r.hasOwnProperty(C)&&i.hasOwnProperty(C)&&i[C]!=null)if(C==="style"){var h=i[C];for(c in h)h.hasOwnProperty(c)&&(n||(n={}),n[c]="")}else C!=="dangerouslySetInnerHTML"&&C!=="children"&&C!=="suppressContentEditableWarning"&&C!=="suppressHydrationWarning"&&C!=="autoFocus"&&(d.hasOwnProperty(C)?a||(a=[]):(a=a||[]).push(C,null));for(C in r){var y=r[C];if(h=i!=null?i[C]:void 0,r.hasOwnProperty(C)&&y!==h&&(y!=null||h!=null))if(C==="style")if(h){for(c in h)!h.hasOwnProperty(c)||y&&y.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in y)y.hasOwnProperty(c)&&h[c]!==y[c]&&(n||(n={}),n[c]=y[c])}else n||(a||(a=[]),a.push(C,n)),n=y;else C==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,h=h?h.__html:void 0,y!=null&&h!==y&&(a=a||[]).push(C,y)):C==="children"?typeof y!="string"&&typeof y!="number"||(a=a||[]).push(C,""+y):C!=="suppressContentEditableWarning"&&C!=="suppressHydrationWarning"&&(d.hasOwnProperty(C)?(y!=null&&C==="onScroll"&&we("scroll",e),a||h===y||(a=[])):(a=a||[]).push(C,y))}n&&(a=a||[]).push("style",n);var C=a;(t.updateQueue=C)&&(t.flags|=4)}},Xu=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ir(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Jf(e,t,n){var r=t.pendingProps;switch(os(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Ze(t.type)&&jl(),Qe(t),null;case 3:return r=t.stateNode,Gn(),Se(qe),Se(Ve),Ss(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Cl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,kt!==null&&(Xs(kt),kt=null))),Us(e,t),Qe(t),null;case 5:xs(t);var i=Sn(zr.current);if(n=t.type,e!==null&&t.stateNode!=null)Ju(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(o(166));return Qe(t),null}if(e=Sn(Mt.current),Cl(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[At]=t,r[Cr]=a,e=(t.mode&1)!==0,n){case"dialog":we("cancel",r),we("close",r);break;case"iframe":case"object":case"embed":we("load",r);break;case"video":case"audio":for(i=0;i<Nr.length;i++)we(Nr[i],r);break;case"source":we("error",r);break;case"img":case"image":case"link":we("error",r),we("load",r);break;case"details":we("toggle",r);break;case"input":Ta(r,a),we("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},we("invalid",r);break;case"textarea":Aa(r,a),we("invalid",r)}wi(n,a),i=null;for(var c in a)if(a.hasOwnProperty(c)){var h=a[c];c==="children"?typeof h=="string"?r.textContent!==h&&(a.suppressHydrationWarning!==!0&&xl(r.textContent,h,e),i=["children",h]):typeof h=="number"&&r.textContent!==""+h&&(a.suppressHydrationWarning!==!0&&xl(r.textContent,h,e),i=["children",""+h]):d.hasOwnProperty(c)&&h!=null&&c==="onScroll"&&we("scroll",r)}switch(n){case"input":Jr(r),za(r,a,!0);break;case"textarea":Jr(r),Da(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=wl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{c=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Oa(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),n==="select"&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[At]=t,e[Cr]=r,Yu(e,t,!1,!1),t.stateNode=e;e:{switch(c=Si(n,r),n){case"dialog":we("cancel",e),we("close",e),i=r;break;case"iframe":case"object":case"embed":we("load",e),i=r;break;case"video":case"audio":for(i=0;i<Nr.length;i++)we(Nr[i],e);i=r;break;case"source":we("error",e),i=r;break;case"img":case"image":case"link":we("error",e),we("load",e),i=r;break;case"details":we("toggle",e),i=r;break;case"input":Ta(e,r),i=hi(e,r),we("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=b({},r,{value:void 0}),we("invalid",e);break;case"textarea":Aa(e,r),i=gi(e,r),we("invalid",e);break;default:i=r}wi(n,i),h=i;for(a in h)if(h.hasOwnProperty(a)){var y=h[a];a==="style"?Fa(e,y):a==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,y!=null&&Ia(e,y)):a==="children"?typeof y=="string"?(n!=="textarea"||y!=="")&&ir(e,y):typeof y=="number"&&ir(e,""+y):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(d.hasOwnProperty(a)?y!=null&&a==="onScroll"&&we("scroll",e):y!=null&&F(e,a,y,c))}switch(n){case"input":Jr(e),za(e,r,!1);break;case"textarea":Jr(e),Da(e);break;case"option":r.value!=null&&e.setAttribute("value",""+he(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?Pn(e,!!r.multiple,a,!1):r.defaultValue!=null&&Pn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=wl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Qe(t),null;case 6:if(e&&t.stateNode!=null)Xu(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(o(166));if(n=Sn(zr.current),Sn(Mt.current),Cl(t)){if(r=t.stateNode,n=t.memoizedProps,r[At]=t,(a=r.nodeValue!==n)&&(e=at,e!==null))switch(e.tag){case 3:xl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xl(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[At]=t,t.stateNode=r}return Qe(t),null;case 13:if(Se(Ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ne&&ot!==null&&(t.mode&1)!==0&&(t.flags&128)===0)eu(),Vn(),t.flags|=98560,a=!1;else if(a=Cl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(o(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(o(317));a[At]=t}else Vn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),a=!1}else kt!==null&&(Xs(kt),kt=null),a=!0;if(!a)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ce.current&1)!==0?Ie===0&&(Ie=3):ea())),t.updateQueue!==null&&(t.flags|=4),Qe(t),null);case 4:return Gn(),Us(e,t),e===null&&_r(t.stateNode.containerInfo),Qe(t),null;case 10:return ms(t.type._context),Qe(t),null;case 17:return Ze(t.type)&&jl(),Qe(t),null;case 19:if(Se(Ce),a=t.memoizedState,a===null)return Qe(t),null;if(r=(t.flags&128)!==0,c=a.rendering,c===null)if(r)Ir(a,!1);else{if(Ie!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Al(e),c!==null){for(t.flags|=128,Ir(a,!1),r=c.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,c=a.alternate,c===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xe(Ce,Ce.current&1|2),t.child}e=e.sibling}a.tail!==null&&ze()>qn&&(t.flags|=128,r=!0,Ir(a,!1),t.lanes=4194304)}else{if(!r)if(e=Al(c),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ir(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Ne)return Qe(t),null}else 2*ze()-a.renderingStartTime>qn&&n!==1073741824&&(t.flags|=128,r=!0,Ir(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(n=a.last,n!==null?n.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ze(),t.sibling=null,n=Ce.current,xe(Ce,r?n&1|2:n&1),t):(Qe(t),null);case 22:case 23:return Zs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(ut&1073741824)!==0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Xf(e,t){switch(os(t),t.tag){case 1:return Ze(t.type)&&jl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gn(),Se(qe),Se(Ve),Ss(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return xs(t),null;case 13:if(Se(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ce),null;case 4:return Gn(),null;case 10:return ms(t.type._context),null;case 22:case 23:return Zs(),null;case 24:return null;default:return null}}var Wl=!1,Ke=!1,qf=typeof WeakSet=="function"?WeakSet:Set,V=null;function Jn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Te(e,t,r)}else n.current=null}function Bs(e,t,n){try{n()}catch(r){Te(e,t,r)}}var qu=!1;function Zf(e,t){if(Zi=ol,e=To(),bi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{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 e}var c=0,h=-1,y=-1,C=0,M=0,O=e,z=null;t:for(;;){for(var W;O!==n||i!==0&&O.nodeType!==3||(h=c+i),O!==a||r!==0&&O.nodeType!==3||(y=c+r),O.nodeType===3&&(c+=O.nodeValue.length),(W=O.firstChild)!==null;)z=O,O=W;for(;;){if(O===e)break t;if(z===n&&++C===i&&(h=c),z===a&&++M===r&&(y=c),(W=O.nextSibling)!==null)break;O=z,z=O.parentNode}O=W}n=h===-1||y===-1?null:{start:h,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(es={focusedElem:e,selectionRange:n},ol=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var Q=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Q!==null){var G=Q.memoizedProps,Ae=Q.memoizedState,k=t.stateNode,x=k.getSnapshotBeforeUpdate(t.elementType===t.type?G:Nt(t.type,G),Ae);k.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch($){Te(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return Q=qu,qu=!1,Q}function $r(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Bs(t,n,a)}i=i.next}while(i!==r)}}function Hl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ws(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Zu(e){var t=e.alternate;t!==null&&(e.alternate=null,Zu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[At],delete t[Cr],delete t[ls],delete t[Df],delete t[Of])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ec(e){return e.tag===5||e.tag===3||e.tag===4}function tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ec(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wl));else if(r!==4&&(e=e.child,e!==null))for(Hs(e,t,n),e=e.sibling;e!==null;)Hs(e,t,n),e=e.sibling}function Vs(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&&(e=e.child,e!==null))for(Vs(e,t,n),e=e.sibling;e!==null;)Vs(e,t,n),e=e.sibling}var We=null,_t=!1;function an(e,t,n){for(n=n.child;n!==null;)nc(e,t,n),n=n.sibling}function nc(e,t,n){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(nl,n)}catch{}switch(n.tag){case 5:Ke||Jn(n,t);case 6:var r=We,i=_t;We=null,an(e,t,n),We=r,_t=i,We!==null&&(_t?(e=We,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):We.removeChild(n.stateNode));break;case 18:We!==null&&(_t?(e=We,n=n.stateNode,e.nodeType===8?rs(e.parentNode,n):e.nodeType===1&&rs(e,n),vr(e)):rs(We,n.stateNode));break;case 4:r=We,i=_t,We=n.stateNode.containerInfo,_t=!0,an(e,t,n),We=r,_t=i;break;case 0:case 11:case 14:case 15:if(!Ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,c=a.destroy;a=a.tag,c!==void 0&&((a&2)!==0||(a&4)!==0)&&Bs(n,t,c),i=i.next}while(i!==r)}an(e,t,n);break;case 1:if(!Ke&&(Jn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(h){Te(n,t,h)}an(e,t,n);break;case 21:an(e,t,n);break;case 22:n.mode&1?(Ke=(r=Ke)||n.memoizedState!==null,an(e,t,n),Ke=r):an(e,t,n);break;default:an(e,t,n)}}function rc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qf),t.forEach(function(r){var i=op.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Et(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,c=t,h=c;e:for(;h!==null;){switch(h.tag){case 5:We=h.stateNode,_t=!1;break e;case 3:We=h.stateNode.containerInfo,_t=!0;break e;case 4:We=h.stateNode.containerInfo,_t=!0;break e}h=h.return}if(We===null)throw Error(o(160));nc(a,c,i),We=null,_t=!1;var y=i.alternate;y!==null&&(y.return=null),i.return=null}catch(C){Te(i,t,C)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lc(t,e),t=t.sibling}function lc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Et(t,e),Ot(e),r&4){try{$r(3,e,e.return),Hl(3,e)}catch(G){Te(e,e.return,G)}try{$r(5,e,e.return)}catch(G){Te(e,e.return,G)}}break;case 1:Et(t,e),Ot(e),r&512&&n!==null&&Jn(n,n.return);break;case 5:if(Et(t,e),Ot(e),r&512&&n!==null&&Jn(n,n.return),e.flags&32){var i=e.stateNode;try{ir(i,"")}catch(G){Te(e,e.return,G)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,c=n!==null?n.memoizedProps:a,h=e.type,y=e.updateQueue;if(e.updateQueue=null,y!==null)try{h==="input"&&a.type==="radio"&&a.name!=null&&La(i,a),Si(h,c);var C=Si(h,a);for(c=0;c<y.length;c+=2){var M=y[c],O=y[c+1];M==="style"?Fa(i,O):M==="dangerouslySetInnerHTML"?Ia(i,O):M==="children"?ir(i,O):F(i,M,O,C)}switch(h){case"input":vi(i,a);break;case"textarea":Ma(i,a);break;case"select":var z=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var W=a.value;W!=null?Pn(i,!!a.multiple,W,!1):z!==!!a.multiple&&(a.defaultValue!=null?Pn(i,!!a.multiple,a.defaultValue,!0):Pn(i,!!a.multiple,a.multiple?[]:"",!1))}i[Cr]=a}catch(G){Te(e,e.return,G)}}break;case 6:if(Et(t,e),Ot(e),r&4){if(e.stateNode===null)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(G){Te(e,e.return,G)}}break;case 3:if(Et(t,e),Ot(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{vr(t.containerInfo)}catch(G){Te(e,e.return,G)}break;case 4:Et(t,e),Ot(e);break;case 13:Et(t,e),Ot(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(Ks=ze())),r&4&&rc(e);break;case 22:if(M=n!==null&&n.memoizedState!==null,e.mode&1?(Ke=(C=Ke)||M,Et(t,e),Ke=C):Et(t,e),Ot(e),r&8192){if(C=e.memoizedState!==null,(e.stateNode.isHidden=C)&&!M&&(e.mode&1)!==0)for(V=e,M=e.child;M!==null;){for(O=V=M;V!==null;){switch(z=V,W=z.child,z.tag){case 0:case 11:case 14:case 15:$r(4,z,z.return);break;case 1:Jn(z,z.return);var Q=z.stateNode;if(typeof Q.componentWillUnmount=="function"){r=z,n=z.return;try{t=r,Q.props=t.memoizedProps,Q.state=t.memoizedState,Q.componentWillUnmount()}catch(G){Te(r,n,G)}}break;case 5:Jn(z,z.return);break;case 22:if(z.memoizedState!==null){ac(O);continue}}W!==null?(W.return=z,V=W):ac(O)}M=M.sibling}e:for(M=null,O=e;;){if(O.tag===5){if(M===null){M=O;try{i=O.stateNode,C?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(h=O.stateNode,y=O.memoizedProps.style,c=y!=null&&y.hasOwnProperty("display")?y.display:null,h.style.display=$a("display",c))}catch(G){Te(e,e.return,G)}}}else if(O.tag===6){if(M===null)try{O.stateNode.nodeValue=C?"":O.memoizedProps}catch(G){Te(e,e.return,G)}}else if((O.tag!==22&&O.tag!==23||O.memoizedState===null||O===e)&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===e)break e;for(;O.sibling===null;){if(O.return===null||O.return===e)break e;M===O&&(M=null),O=O.return}M===O&&(M=null),O.sibling.return=O.return,O=O.sibling}}break;case 19:Et(t,e),Ot(e),r&4&&rc(e);break;case 21:break;default:Et(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ec(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ir(i,""),r.flags&=-33);var a=tc(e);Vs(e,a,i);break;case 3:case 4:var c=r.stateNode.containerInfo,h=tc(e);Hs(e,h,c);break;default:throw Error(o(161))}}catch(y){Te(e,e.return,y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ep(e,t,n){V=e,ic(e)}function ic(e,t,n){for(var r=(e.mode&1)!==0;V!==null;){var i=V,a=i.child;if(i.tag===22&&r){var c=i.memoizedState!==null||Wl;if(!c){var h=i.alternate,y=h!==null&&h.memoizedState!==null||Ke;h=Wl;var C=Ke;if(Wl=c,(Ke=y)&&!C)for(V=i;V!==null;)c=V,y=c.child,c.tag===22&&c.memoizedState!==null?oc(i):y!==null?(y.return=c,V=y):oc(i);for(;a!==null;)V=a,ic(a),a=a.sibling;V=i,Wl=h,Ke=C}sc(e)}else(i.subtreeFlags&8772)!==0&&a!==null?(a.return=i,V=a):sc(e)}}function sc(e){for(;V!==null;){var t=V;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ke||Hl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ke)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Nt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&au(t,a,r);break;case 3:var c=t.updateQueue;if(c!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}au(t,c,n)}break;case 5:var h=t.stateNode;if(n===null&&t.flags&4){n=h;var y=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":y.autoFocus&&n.focus();break;case"img":y.src&&(n.src=y.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var C=t.alternate;if(C!==null){var M=C.memoizedState;if(M!==null){var O=M.dehydrated;O!==null&&vr(O)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}Ke||t.flags&512&&Ws(t)}catch(z){Te(t,t.return,z)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function ac(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function oc(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hl(4,t)}catch(y){Te(t,n,y)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(y){Te(t,i,y)}}var a=t.return;try{Ws(t)}catch(y){Te(t,a,y)}break;case 5:var c=t.return;try{Ws(t)}catch(y){Te(t,c,y)}}}catch(y){Te(t,t.return,y)}if(t===e){V=null;break}var h=t.sibling;if(h!==null){h.return=t.return,V=h;break}V=t.return}}var tp=Math.ceil,Vl=re.ReactCurrentDispatcher,bs=re.ReactCurrentOwner,yt=re.ReactCurrentBatchConfig,ue=0,Fe=null,De=null,He=0,ut=0,Xn=tn(0),Ie=0,Fr=null,kn=0,bl=0,Qs=0,Ur=null,tt=null,Ks=0,qn=1/0,bt=null,Ql=!1,Gs=null,on=null,Kl=!1,un=null,Gl=0,Br=0,Ys=null,Yl=-1,Jl=0;function Ye(){return(ue&6)!==0?ze():Yl!==-1?Yl:Yl=ze()}function cn(e){return(e.mode&1)===0?1:(ue&2)!==0&&He!==0?He&-He:$f.transition!==null?(Jl===0&&(Jl=eo()),Jl):(e=ve,e!==0||(e=window.event,e=e===void 0?16:uo(e.type)),e)}function Ct(e,t,n,r){if(50<Br)throw Br=0,Ys=null,Error(o(185));dr(e,n,r),((ue&2)===0||e!==Fe)&&(e===Fe&&((ue&2)===0&&(bl|=n),Ie===4&&dn(e,He)),nt(e,r),n===1&&ue===0&&(t.mode&1)===0&&(qn=ze()+500,Nl&&rn()))}function nt(e,t){var n=e.callbackNode;Id(e,t);var r=il(e,e===Fe?He:0);if(r===0)n!==null&&Xa(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Xa(n),t===1)e.tag===0?If(cc.bind(null,e)):Yo(cc.bind(null,e)),Af(function(){(ue&6)===0&&rn()}),n=null;else{switch(to(r)){case 1:n=Ri;break;case 4:n=qa;break;case 16:n=tl;break;case 536870912:n=Za;break;default:n=tl}n=gc(n,uc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function uc(e,t){if(Yl=-1,Jl=0,(ue&6)!==0)throw Error(o(327));var n=e.callbackNode;if(Zn()&&e.callbackNode!==n)return null;var r=il(e,e===Fe?He:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Xl(e,r);else{t=r;var i=ue;ue|=2;var a=fc();(Fe!==e||He!==t)&&(bt=null,qn=ze()+500,_n(e,t));do try{lp();break}catch(h){dc(e,h)}while(!0);ps(),Vl.current=a,ue=i,De!==null?t=0:(Fe=null,He=0,t=Ie)}if(t!==0){if(t===2&&(i=Pi(e),i!==0&&(r=i,t=Js(e,i))),t===1)throw n=Fr,_n(e,0),dn(e,r),nt(e,ze()),n;if(t===6)dn(e,r);else{if(i=e.current.alternate,(r&30)===0&&!np(i)&&(t=Xl(e,r),t===2&&(a=Pi(e),a!==0&&(r=a,t=Js(e,a))),t===1))throw n=Fr,_n(e,0),dn(e,r),nt(e,ze()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:En(e,tt,bt);break;case 3:if(dn(e,r),(r&130023424)===r&&(t=Ks+500-ze(),10<t)){if(il(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ye(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ns(En.bind(null,e,tt,bt),t);break}En(e,tt,bt);break;case 4:if(dn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var c=31-St(r);a=1<<c,c=t[c],c>i&&(i=c),r&=~a}if(r=i,r=ze()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tp(r/1960))-r,10<r){e.timeoutHandle=ns(En.bind(null,e,tt,bt),r);break}En(e,tt,bt);break;case 5:En(e,tt,bt);break;default:throw Error(o(329))}}}return nt(e,ze()),e.callbackNode===n?uc.bind(null,e):null}function Js(e,t){var n=Ur;return e.current.memoizedState.isDehydrated&&(_n(e,t).flags|=256),e=Xl(e,t),e!==2&&(t=tt,tt=n,t!==null&&Xs(t)),e}function Xs(e){tt===null?tt=e:tt.push.apply(tt,e)}function np(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!jt(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function dn(e,t){for(t&=~Qs,t&=~bl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-St(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if((ue&6)!==0)throw Error(o(327));Zn();var t=il(e,0);if((t&1)===0)return nt(e,ze()),null;var n=Xl(e,t);if(e.tag!==0&&n===2){var r=Pi(e);r!==0&&(t=r,n=Js(e,r))}if(n===1)throw n=Fr,_n(e,0),dn(e,t),nt(e,ze()),n;if(n===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,En(e,tt,bt),nt(e,ze()),null}function qs(e,t){var n=ue;ue|=1;try{return e(t)}finally{ue=n,ue===0&&(qn=ze()+500,Nl&&rn())}}function Nn(e){un!==null&&un.tag===0&&(ue&6)===0&&Zn();var t=ue;ue|=1;var n=yt.transition,r=ve;try{if(yt.transition=null,ve=1,e)return e()}finally{ve=r,yt.transition=n,ue=t,(ue&6)===0&&rn()}}function Zs(){ut=Xn.current,Se(Xn)}function _n(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,zf(n)),De!==null)for(n=De.return;n!==null;){var r=n;switch(os(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&jl();break;case 3:Gn(),Se(qe),Se(Ve),Ss();break;case 5:xs(r);break;case 4:Gn();break;case 13:Se(Ce);break;case 19:Se(Ce);break;case 10:ms(r.type._context);break;case 22:case 23:Zs()}n=n.return}if(Fe=e,De=e=fn(e.current,null),He=ut=t,Ie=0,Fr=null,Qs=bl=kn=0,tt=Ur=null,wn!==null){for(t=0;t<wn.length;t++)if(n=wn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var c=a.next;a.next=i,r.next=c}n.pending=r}wn=null}return e}function dc(e,t){do{var n=De;try{if(ps(),Ml.current=$l,Dl){for(var r=Re.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Dl=!1}if(jn=0,$e=Oe=Re=null,Ar=!1,Mr=0,bs.current=null,n===null||n.return===null){Ie=1,Fr=t,De=null;break}e:{var a=e,c=n.return,h=n,y=t;if(t=He,h.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){var C=y,M=h,O=M.tag;if((M.mode&1)===0&&(O===0||O===11||O===15)){var z=M.alternate;z?(M.updateQueue=z.updateQueue,M.memoizedState=z.memoizedState,M.lanes=z.lanes):(M.updateQueue=null,M.memoizedState=null)}var W=Ou(c);if(W!==null){W.flags&=-257,Iu(W,c,h,a,t),W.mode&1&&Du(a,C,t),t=W,y=C;var Q=t.updateQueue;if(Q===null){var G=new Set;G.add(y),t.updateQueue=G}else Q.add(y);break e}else{if((t&1)===0){Du(a,C,t),ea();break e}y=Error(o(426))}}else if(Ne&&h.mode&1){var Ae=Ou(c);if(Ae!==null){(Ae.flags&65536)===0&&(Ae.flags|=256),Iu(Ae,c,h,a,t),ds(Yn(y,h));break e}}a=y=Yn(y,h),Ie!==4&&(Ie=2),Ur===null?Ur=[a]:Ur.push(a),a=c;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var k=Au(a,y,t);su(a,k);break e;case 1:h=y;var x=a.type,_=a.stateNode;if((a.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(on===null||!on.has(_)))){a.flags|=65536,t&=-t,a.lanes|=t;var $=Mu(a,h,t);su(a,$);break e}}a=a.return}while(a!==null)}mc(n)}catch(J){t=J,De===n&&n!==null&&(De=n=n.return);continue}break}while(!0)}function fc(){var e=Vl.current;return Vl.current=$l,e===null?$l:e}function ea(){(Ie===0||Ie===3||Ie===2)&&(Ie=4),Fe===null||(kn&268435455)===0&&(bl&268435455)===0||dn(Fe,He)}function Xl(e,t){var n=ue;ue|=2;var r=fc();(Fe!==e||He!==t)&&(bt=null,_n(e,t));do try{rp();break}catch(i){dc(e,i)}while(!0);if(ps(),ue=n,Vl.current=r,De!==null)throw Error(o(261));return Fe=null,He=0,Ie}function rp(){for(;De!==null;)pc(De)}function lp(){for(;De!==null&&!Rd();)pc(De)}function pc(e){var t=yc(e.alternate,e,ut);e.memoizedProps=e.pendingProps,t===null?mc(e):De=t,bs.current=null}function mc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Jf(n,t,ut),n!==null){De=n;return}}else{if(n=Xf(n,t),n!==null){n.flags&=32767,De=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ie=6,De=null;return}}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Ie===0&&(Ie=5)}function En(e,t,n){var r=ve,i=yt.transition;try{yt.transition=null,ve=1,ip(e,t,n,r)}finally{yt.transition=i,ve=r}return null}function ip(e,t,n,r){do Zn();while(un!==null);if((ue&6)!==0)throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if($d(e,a),e===Fe&&(De=Fe=null,He=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Kl||(Kl=!0,gc(tl,function(){return Zn(),null})),a=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||a){a=yt.transition,yt.transition=null;var c=ve;ve=1;var h=ue;ue|=4,bs.current=null,Zf(e,n),lc(n,e),_f(es),ol=!!Zi,es=Zi=null,e.current=n,ep(n),Pd(),ue=h,ve=c,yt.transition=a}else e.current=n;if(Kl&&(Kl=!1,un=e,Gl=i),a=e.pendingLanes,a===0&&(on=null),zd(n.stateNode),nt(e,ze()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ql)throw Ql=!1,e=Gs,Gs=null,e;return(Gl&1)!==0&&e.tag!==0&&Zn(),a=e.pendingLanes,(a&1)!==0?e===Ys?Br++:(Br=0,Ys=e):Br=0,rn(),null}function Zn(){if(un!==null){var e=to(Gl),t=yt.transition,n=ve;try{if(yt.transition=null,ve=16>e?16:e,un===null)var r=!1;else{if(e=un,un=null,Gl=0,(ue&6)!==0)throw Error(o(331));var i=ue;for(ue|=4,V=e.current;V!==null;){var a=V,c=a.child;if((V.flags&16)!==0){var h=a.deletions;if(h!==null){for(var y=0;y<h.length;y++){var C=h[y];for(V=C;V!==null;){var M=V;switch(M.tag){case 0:case 11:case 15:$r(8,M,a)}var O=M.child;if(O!==null)O.return=M,V=O;else for(;V!==null;){M=V;var z=M.sibling,W=M.return;if(Zu(M),M===C){V=null;break}if(z!==null){z.return=W,V=z;break}V=W}}}var Q=a.alternate;if(Q!==null){var G=Q.child;if(G!==null){Q.child=null;do{var Ae=G.sibling;G.sibling=null,G=Ae}while(G!==null)}}V=a}}if((a.subtreeFlags&2064)!==0&&c!==null)c.return=a,V=c;else e:for(;V!==null;){if(a=V,(a.flags&2048)!==0)switch(a.tag){case 0:case 11:case 15:$r(9,a,a.return)}var k=a.sibling;if(k!==null){k.return=a.return,V=k;break e}V=a.return}}var x=e.current;for(V=x;V!==null;){c=V;var _=c.child;if((c.subtreeFlags&2064)!==0&&_!==null)_.return=c,V=_;else e:for(c=x;V!==null;){if(h=V,(h.flags&2048)!==0)try{switch(h.tag){case 0:case 11:case 15:Hl(9,h)}}catch(J){Te(h,h.return,J)}if(h===c){V=null;break e}var $=h.sibling;if($!==null){$.return=h.return,V=$;break e}V=h.return}}if(ue=i,rn(),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(nl,e)}catch{}r=!0}return r}finally{ve=n,yt.transition=t}}return!1}function hc(e,t,n){t=Yn(n,t),t=Au(e,t,1),e=sn(e,t,1),t=Ye(),e!==null&&(dr(e,1,t),nt(e,t))}function Te(e,t,n){if(e.tag===3)hc(e,e,n);else for(;t!==null;){if(t.tag===3){hc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(on===null||!on.has(r))){e=Yn(n,e),e=Mu(t,e,1),t=sn(t,e,1),e=Ye(),t!==null&&(dr(t,1,e),nt(t,e));break}}t=t.return}}function sp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ye(),e.pingedLanes|=e.suspendedLanes&n,Fe===e&&(He&n)===n&&(Ie===4||Ie===3&&(He&130023424)===He&&500>ze()-Ks?_n(e,0):Qs|=n),nt(e,t)}function vc(e,t){t===0&&((e.mode&1)===0?t=1:(t=ll,ll<<=1,(ll&130023424)===0&&(ll=4194304)));var n=Ye();e=Wt(e,t),e!==null&&(dr(e,t,n),nt(e,n))}function ap(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vc(e,n)}function op(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}r!==null&&r.delete(t),vc(e,n)}var yc;yc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)et=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return et=!1,Yf(e,t,n);et=(e.flags&131072)!==0}else et=!1,Ne&&(t.flags&1048576)!==0&&Jo(t,El,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bl(e,t),e=t.pendingProps;var i=Bn(t,Ve.current);Kn(t,n),i=Ns(null,t,r,e,i,n);var a=_s();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ze(r)?(a=!0,kl(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ys(t),i.updater=Fl,t.stateNode=i,i._reactInternals=t,Ls(t,r,e,n),t=Ds(null,t,r,!0,a,n)):(t.tag=0,Ne&&a&&as(t),Ge(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=cp(r),e=Nt(r,e),i){case 0:t=Ms(null,t,r,e,n);break e;case 1:t=Hu(null,t,r,e,n);break e;case 11:t=$u(null,t,r,e,n);break e;case 14:t=Fu(null,t,r,Nt(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Nt(r,i),Ms(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Nt(r,i),Hu(e,t,r,i,n);case 3:e:{if(Vu(t),e===null)throw Error(o(387));r=t.pendingProps,a=t.memoizedState,i=a.element,iu(e,t),zl(t,r,null,n);var c=t.memoizedState;if(r=c.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Yn(Error(o(423)),t),t=bu(e,t,r,n,i);break e}else if(r!==i){i=Yn(Error(o(424)),t),t=bu(e,t,r,n,i);break e}else for(ot=en(t.stateNode.containerInfo.firstChild),at=t,Ne=!0,kt=null,n=ru(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vn(),r===i){t=Vt(e,t,n);break e}Ge(e,t,r,n)}t=t.child}return t;case 5:return ou(t),e===null&&cs(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,c=i.children,ts(r,i)?c=null:a!==null&&ts(r,a)&&(t.flags|=32),Wu(e,t),Ge(e,t,c,n),t.child;case 6:return e===null&&cs(t),null;case 13:return Qu(e,t,n);case 4:return gs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bn(t,null,r,n):Ge(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Nt(r,i),$u(e,t,r,i,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,c=i.value,xe(Pl,r._currentValue),r._currentValue=c,a!==null)if(jt(a.value,c)){if(a.children===i.children&&!qe.current){t=Vt(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var h=a.dependencies;if(h!==null){c=a.child;for(var y=h.firstContext;y!==null;){if(y.context===r){if(a.tag===1){y=Ht(-1,n&-n),y.tag=2;var C=a.updateQueue;if(C!==null){C=C.shared;var M=C.pending;M===null?y.next=y:(y.next=M.next,M.next=y),C.pending=y}}a.lanes|=n,y=a.alternate,y!==null&&(y.lanes|=n),hs(a.return,n,t),h.lanes|=n;break}y=y.next}}else if(a.tag===10)c=a.type===t.type?null:a.child;else if(a.tag===18){if(c=a.return,c===null)throw Error(o(341));c.lanes|=n,h=c.alternate,h!==null&&(h.lanes|=n),hs(c,n,t),c=a.sibling}else c=a.child;if(c!==null)c.return=a;else for(c=a;c!==null;){if(c===t){c=null;break}if(a=c.sibling,a!==null){a.return=c.return,c=a;break}c=c.return}a=c}Ge(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Kn(t,n),i=ht(i),r=r(i),t.flags|=1,Ge(e,t,r,n),t.child;case 14:return r=t.type,i=Nt(r,t.pendingProps),i=Nt(r.type,i),Fu(e,t,r,i,n);case 15:return Uu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Nt(r,i),Bl(e,t),t.tag=1,Ze(r)?(e=!0,kl(t)):e=!1,Kn(t,n),Lu(t,r,i),Ls(t,r,i,n),Ds(null,t,r,!0,e,n);case 19:return Gu(e,t,n);case 22:return Bu(e,t,n)}throw Error(o(156,t.tag))};function gc(e,t){return Ja(e,t)}function up(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(e,t,n,r){return new up(e,t,n,r)}function ta(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cp(e){if(typeof e=="function")return ta(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ft)return 11;if(e===Lt)return 14}return 2}function fn(e,t){var n=e.alternate;return n===null?(n=gt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ql(e,t,n,r,i,a){var c=2;if(r=e,typeof e=="function")ta(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case ie:return Cn(n.children,i,a,t);case me:c=8,i|=8;break;case Ee:return e=gt(12,n,t,i|2),e.elementType=Ee,e.lanes=a,e;case lt:return e=gt(13,n,t,i),e.elementType=lt,e.lanes=a,e;case wt:return e=gt(19,n,t,i),e.elementType=wt,e.lanes=a,e;case Pe:return Zl(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Le:c=10;break e;case Tt:c=9;break e;case ft:c=11;break e;case Lt:c=14;break e;case Xe:c=16,r=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=gt(c,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Cn(e,t,n,r){return e=gt(7,e,r,t),e.lanes=n,e}function Zl(e,t,n,r){return e=gt(22,e,r,t),e.elementType=Pe,e.lanes=n,e.stateNode={isHidden:!1},e}function na(e,t,n){return e=gt(6,e,null,t),e.lanes=n,e}function ra(e,t,n){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dp(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ti(0),this.expirationTimes=Ti(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ti(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function la(e,t,n,r,i,a,c,h,y){return e=new dp(e,t,n,h,y),t===1?(t=1,a===!0&&(t|=8)):t=0,a=gt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ys(a),e}function fp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Y,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function xc(e){if(!e)return nn;e=e._reactInternals;e:{if(hn(e)!==e||e.tag!==1)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ze(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(o(171))}if(e.tag===1){var n=e.type;if(Ze(n))return Ko(e,n,t)}return t}function wc(e,t,n,r,i,a,c,h,y){return e=la(n,r,!0,e,i,a,c,h,y),e.context=xc(null),n=e.current,r=Ye(),i=cn(n),a=Ht(r,i),a.callback=t??null,sn(n,a,i),e.current.lanes=i,dr(e,i,r),nt(e,r),e}function ei(e,t,n,r){var i=t.current,a=Ye(),c=cn(i);return n=xc(n),t.context===null?t.context=n:t.pendingContext=n,t=Ht(a,c),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=sn(i,t,c),e!==null&&(Ct(e,i,c,a),Ll(e,i,c)),c}function ti(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Sc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ia(e,t){Sc(e,t),(e=e.alternate)&&Sc(e,t)}function pp(){return null}var jc=typeof reportError=="function"?reportError:function(e){console.error(e)};function sa(e){this._internalRoot=e}ni.prototype.render=sa.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));ei(e,t,null,null)},ni.prototype.unmount=sa.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nn(function(){ei(null,e,null,null)}),t[$t]=null}};function ni(e){this._internalRoot=e}ni.prototype.unstable_scheduleHydration=function(e){if(e){var t=lo();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xt.length&&t!==0&&t<Xt[n].priority;n++);Xt.splice(n,0,e),n===0&&ao(e)}};function aa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ri(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kc(){}function mp(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var C=ti(c);a.call(C)}}var c=wc(t,r,e,0,null,!1,!1,"",kc);return e._reactRootContainer=c,e[$t]=c.current,_r(e.nodeType===8?e.parentNode:e),Nn(),c}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var h=r;r=function(){var C=ti(y);h.call(C)}}var y=la(e,0,!1,null,null,!1,!1,"",kc);return e._reactRootContainer=y,e[$t]=y.current,_r(e.nodeType===8?e.parentNode:e),Nn(function(){ei(t,y,n,r)}),y}function li(e,t,n,r,i){var a=n._reactRootContainer;if(a){var c=a;if(typeof i=="function"){var h=i;i=function(){var y=ti(c);h.call(y)}}ei(t,c,e,i)}else c=mp(n,t,e,i,r);return ti(c)}no=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=cr(t.pendingLanes);n!==0&&(Li(t,n|1),nt(t,ze()),(ue&6)===0&&(qn=ze()+500,rn()))}break;case 13:Nn(function(){var r=Wt(e,1);if(r!==null){var i=Ye();Ct(r,e,1,i)}}),ia(e,1)}},zi=function(e){if(e.tag===13){var t=Wt(e,134217728);if(t!==null){var n=Ye();Ct(t,e,134217728,n)}ia(e,134217728)}},ro=function(e){if(e.tag===13){var t=cn(e),n=Wt(e,t);if(n!==null){var r=Ye();Ct(n,e,t,r)}ia(e,t)}},lo=function(){return ve},io=function(e,t){var n=ve;try{return ve=e,t()}finally{ve=n}},Ni=function(e,t,n){switch(t){case"input":if(vi(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Sl(r);if(!i)throw Error(o(90));Pa(r),vi(r,i)}}}break;case"textarea":Ma(e,n);break;case"select":t=n.value,t!=null&&Pn(e,!!n.multiple,t,!1)}},Ha=qs,Va=Nn;var hp={usingClientEntryPoint:!1,Events:[Rr,Fn,Sl,Ba,Wa,qs]},Wr={findFiberByHostInstance:vn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},vp={bundleType:Wr.bundleType,version:Wr.version,rendererPackageName:Wr.rendererPackageName,rendererConfig:Wr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:re.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ga(e),e===null?null:e.stateNode},findFiberByHostInstance:Wr.findFiberByHostInstance||pp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ii=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ii.isDisabled&&ii.supportsFiber)try{nl=ii.inject(vp),zt=ii}catch{}}return rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hp,rt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!aa(t))throw Error(o(200));return fp(e,t,null,n)},rt.createRoot=function(e,t){if(!aa(e))throw Error(o(299));var n=!1,r="",i=jc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=la(e,1,!1,null,null,n,!1,r,i),e[$t]=t.current,_r(e.nodeType===8?e.parentNode:e),new sa(t)},rt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=Ga(t),e=e===null?null:e.stateNode,e},rt.flushSync=function(e){return Nn(e)},rt.hydrate=function(e,t,n){if(!ri(t))throw Error(o(200));return li(null,e,t,!0,n)},rt.hydrateRoot=function(e,t,n){if(!aa(e))throw Error(o(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",c=jc;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(c=n.onRecoverableError)),t=wc(t,null,e,1,n??null,i,!1,a,c),e[$t]=t.current,_r(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ni(t)},rt.render=function(e,t,n){if(!ri(t))throw Error(o(200));return li(null,e,t,!1,n)},rt.unmountComponentAtNode=function(e){if(!ri(e))throw Error(o(40));return e._reactRootContainer?(Nn(function(){li(null,null,e,!1,function(){e._reactRootContainer=null,e[$t]=null})}),!0):!1},rt.unstable_batchedUpdates=qs,rt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ri(n))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return li(e,t,n,!1,r)},rt.version="18.3.1-next-f1338f8080-20240426",rt}var Lc;function Np(){if(Lc)return ca.exports;Lc=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(u){console.error(u)}}return s(),ca.exports=kp(),ca.exports}var zc;function _p(){if(zc)return si;zc=1;var s=Np();return si.createRoot=s.createRoot,si.hydrateRoot=s.hydrateRoot,si}var Ep=_p();/**
|
|
41
|
+
* react-router v7.13.0
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/var Ac="popstate";function Cp(s={}){function u(f,d){let{pathname:p,search:m,hash:N}=f.location;return xa("",{pathname:p,search:m,hash:N},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function o(f,d){return typeof d=="string"?d:Qr(d)}return Pp(u,o,null,s)}function _e(s,u){if(s===!1||s===null||typeof s>"u")throw new Error(u)}function Pt(s,u){if(!s){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Rp(){return Math.random().toString(36).substring(2,10)}function Mc(s,u){return{usr:s.state,key:s.key,idx:u}}function xa(s,u,o=null,f){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof u=="string"?tr(u):u,state:o,key:u&&u.key||f||Rp()}}function Qr({pathname:s="/",search:u="",hash:o=""}){return u&&u!=="?"&&(s+=u.charAt(0)==="?"?u:"?"+u),o&&o!=="#"&&(s+=o.charAt(0)==="#"?o:"#"+o),s}function tr(s){let u={};if(s){let o=s.indexOf("#");o>=0&&(u.hash=s.substring(o),s=s.substring(0,o));let f=s.indexOf("?");f>=0&&(u.search=s.substring(f),s=s.substring(0,f)),s&&(u.pathname=s)}return u}function Pp(s,u,o,f={}){let{window:d=document.defaultView,v5Compat:p=!1}=f,m=d.history,N="POP",v=null,g=S();g==null&&(g=0,m.replaceState({...m.state,idx:g},""));function S(){return(m.state||{idx:null}).idx}function E(){N="POP";let R=S(),L=R==null?null:R-g;g=R,v&&v({action:N,location:I.location,delta:L})}function T(R,L){N="PUSH";let H=xa(I.location,R,L);g=S()+1;let F=Mc(H,g),re=I.createHref(H);try{m.pushState(F,"",re)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;d.location.assign(re)}p&&v&&v({action:N,location:I.location,delta:1})}function P(R,L){N="REPLACE";let H=xa(I.location,R,L);g=S();let F=Mc(H,g),re=I.createHref(H);m.replaceState(F,"",re),p&&v&&v({action:N,location:I.location,delta:0})}function D(R){return Tp(R)}let I={get action(){return N},get location(){return s(d,m)},listen(R){if(v)throw new Error("A history only accepts one active listener");return d.addEventListener(Ac,E),v=R,()=>{d.removeEventListener(Ac,E),v=null}},createHref(R){return u(d,R)},createURL:D,encodeLocation(R){let L=D(R);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:T,replace:P,go(R){return m.go(R)}};return I}function Tp(s,u=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),_e(o,"No window.location.(origin|href) available to create URL");let f=typeof s=="string"?s:Qr(s);return f=f.replace(/ $/,"%20"),!u&&f.startsWith("//")&&(f=o+f),new URL(f,o)}function Kc(s,u,o="/"){return Lp(s,u,o,!1)}function Lp(s,u,o,f){let d=typeof u=="string"?tr(u):u,p=Kt(d.pathname||"/",o);if(p==null)return null;let m=Gc(s);zp(m);let N=null;for(let v=0;N==null&&v<m.length;++v){let g=Hp(p);N=Bp(m[v],g,f)}return N}function Gc(s,u=[],o=[],f="",d=!1){let p=(m,N,v=d,g)=>{let S={relativePath:g===void 0?m.path||"":g,caseSensitive:m.caseSensitive===!0,childrenIndex:N,route:m};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(f)&&v)return;_e(S.relativePath.startsWith(f),`Absolute route path "${S.relativePath}" nested under path "${f}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(f.length)}let E=Qt([f,S.relativePath]),T=o.concat(S);m.children&&m.children.length>0&&(_e(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${E}".`),Gc(m.children,u,T,E,v)),!(m.path==null&&!m.index)&&u.push({path:E,score:Fp(E,m.index),routesMeta:T})};return s.forEach((m,N)=>{var v;if(m.path===""||!((v=m.path)!=null&&v.includes("?")))p(m,N);else for(let g of Yc(m.path))p(m,N,!0,g)}),u}function Yc(s){let u=s.split("/");if(u.length===0)return[];let[o,...f]=u,d=o.endsWith("?"),p=o.replace(/\?$/,"");if(f.length===0)return d?[p,""]:[p];let m=Yc(f.join("/")),N=[];return N.push(...m.map(v=>v===""?p:[p,v].join("/"))),d&&N.push(...m),N.map(v=>s.startsWith("/")&&v===""?"/":v)}function zp(s){s.sort((u,o)=>u.score!==o.score?o.score-u.score:Up(u.routesMeta.map(f=>f.childrenIndex),o.routesMeta.map(f=>f.childrenIndex)))}var Ap=/^:[\w-]+$/,Mp=3,Dp=2,Op=1,Ip=10,$p=-2,Dc=s=>s==="*";function Fp(s,u){let o=s.split("/"),f=o.length;return o.some(Dc)&&(f+=$p),u&&(f+=Dp),o.filter(d=>!Dc(d)).reduce((d,p)=>d+(Ap.test(p)?Mp:p===""?Op:Ip),f)}function Up(s,u){return s.length===u.length&&s.slice(0,-1).every((f,d)=>f===u[d])?s[s.length-1]-u[u.length-1]:0}function Bp(s,u,o=!1){let{routesMeta:f}=s,d={},p="/",m=[];for(let N=0;N<f.length;++N){let v=f[N],g=N===f.length-1,S=p==="/"?u:u.slice(p.length)||"/",E=ci({path:v.relativePath,caseSensitive:v.caseSensitive,end:g},S),T=v.route;if(!E&&g&&o&&!f[f.length-1].route.index&&(E=ci({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},S)),!E)return null;Object.assign(d,E.params),m.push({params:d,pathname:Qt([p,E.pathname]),pathnameBase:Kp(Qt([p,E.pathnameBase])),route:T}),E.pathnameBase!=="/"&&(p=Qt([p,E.pathnameBase]))}return m}function ci(s,u){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[o,f]=Wp(s.path,s.caseSensitive,s.end),d=u.match(o);if(!d)return null;let p=d[0],m=p.replace(/(.)\/+$/,"$1"),N=d.slice(1);return{params:f.reduce((g,{paramName:S,isOptional:E},T)=>{if(S==="*"){let D=N[T]||"";m=p.slice(0,p.length-D.length).replace(/(.)\/+$/,"$1")}const P=N[T];return E&&!P?g[S]=void 0:g[S]=(P||"").replace(/%2F/g,"/"),g},{}),pathname:p,pathnameBase:m,pattern:s}}function Wp(s,u=!1,o=!0){Pt(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let f=[],d="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,N,v)=>(f.push({paramName:N,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(f.push({paramName:"*"}),d+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?d+="\\/*$":s!==""&&s!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,u?void 0:"i"),f]}function Hp(s){try{return s.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Pt(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),s}}function Kt(s,u){if(u==="/")return s;if(!s.toLowerCase().startsWith(u.toLowerCase()))return null;let o=u.endsWith("/")?u.length-1:u.length,f=s.charAt(o);return f&&f!=="/"?null:s.slice(o)||"/"}var Vp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function bp(s,u="/"){let{pathname:o,search:f="",hash:d=""}=typeof s=="string"?tr(s):s,p;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?p=Oc(o.substring(1),"/"):p=Oc(o,u)):p=u,{pathname:p,search:Gp(f),hash:Yp(d)}}function Oc(s,u){let o=u.replace(/\/+$/,"").split("/");return s.split("/").forEach(d=>{d===".."?o.length>1&&o.pop():d!=="."&&o.push(d)}),o.length>1?o.join("/"):"/"}function pa(s,u,o,f){return`Cannot include a '${s}' character in a manually specified \`to.${u}\` field [${JSON.stringify(f)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Qp(s){return s.filter((u,o)=>o===0||u.route.path&&u.route.path.length>0)}function ja(s){let u=Qp(s);return u.map((o,f)=>f===u.length-1?o.pathname:o.pathnameBase)}function ka(s,u,o,f=!1){let d;typeof s=="string"?d=tr(s):(d={...s},_e(!d.pathname||!d.pathname.includes("?"),pa("?","pathname","search",d)),_e(!d.pathname||!d.pathname.includes("#"),pa("#","pathname","hash",d)),_e(!d.search||!d.search.includes("#"),pa("#","search","hash",d)));let p=s===""||d.pathname==="",m=p?"/":d.pathname,N;if(m==null)N=o;else{let E=u.length-1;if(!f&&m.startsWith("..")){let T=m.split("/");for(;T[0]==="..";)T.shift(),E-=1;d.pathname=T.join("/")}N=E>=0?u[E]:"/"}let v=bp(d,N),g=m&&m!=="/"&&m.endsWith("/"),S=(p||m===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(g||S)&&(v.pathname+="/"),v}var Qt=s=>s.join("/").replace(/\/\/+/g,"/"),Kp=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),Gp=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,Yp=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,Jp=class{constructor(s,u,o,f=!1){this.status=s,this.statusText=u||"",this.internal=f,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function Xp(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function qp(s){return s.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Jc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Xc(s,u){let o=s;if(typeof o!="string"||!Vp.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let f=o,d=!1;if(Jc)try{let p=new URL(window.location.href),m=o.startsWith("//")?new URL(p.protocol+o):new URL(o),N=Kt(m.pathname,u);m.origin===p.origin&&N!=null?o=N+m.search+m.hash:d=!0}catch{Pt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:f,isExternal:d,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var qc=["POST","PUT","PATCH","DELETE"];new Set(qc);var Zp=["GET",...qc];new Set(Zp);var nr=w.createContext(null);nr.displayName="DataRouter";var fi=w.createContext(null);fi.displayName="DataRouterState";var em=w.createContext(!1),Zc=w.createContext({isTransitioning:!1});Zc.displayName="ViewTransition";var tm=w.createContext(new Map);tm.displayName="Fetchers";var nm=w.createContext(null);nm.displayName="Await";var ct=w.createContext(null);ct.displayName="Navigation";var Gr=w.createContext(null);Gr.displayName="Location";var xt=w.createContext({outlet:null,matches:[],isDataRoute:!1});xt.displayName="Route";var Na=w.createContext(null);Na.displayName="RouteError";var ed="REACT_ROUTER_ERROR",rm="REDIRECT",lm="ROUTE_ERROR_RESPONSE";function im(s){if(s.startsWith(`${ed}:${rm}:{`))try{let u=JSON.parse(s.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function sm(s){if(s.startsWith(`${ed}:${lm}:{`))try{let u=JSON.parse(s.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new Jp(u.status,u.statusText,u.data)}catch{}}function am(s,{relative:u}={}){_e(rr(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:f}=w.useContext(ct),{hash:d,pathname:p,search:m}=Yr(s,{relative:u}),N=p;return o!=="/"&&(N=p==="/"?o:Qt([o,p])),f.createHref({pathname:N,search:m,hash:d})}function rr(){return w.useContext(Gr)!=null}function mn(){return _e(rr(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(Gr).location}var td="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function nd(s){w.useContext(ct).static||w.useLayoutEffect(s)}function rd(){let{isDataRoute:s}=w.useContext(xt);return s?km():om()}function om(){_e(rr(),"useNavigate() may be used only in the context of a <Router> component.");let s=w.useContext(nr),{basename:u,navigator:o}=w.useContext(ct),{matches:f}=w.useContext(xt),{pathname:d}=mn(),p=JSON.stringify(ja(f)),m=w.useRef(!1);return nd(()=>{m.current=!0}),w.useCallback((v,g={})=>{if(Pt(m.current,td),!m.current)return;if(typeof v=="number"){o.go(v);return}let S=ka(v,JSON.parse(p),d,g.relative==="path");s==null&&u!=="/"&&(S.pathname=S.pathname==="/"?u:Qt([u,S.pathname])),(g.replace?o.replace:o.push)(S,g.state,g)},[u,o,p,d,s])}var um=w.createContext(null);function cm(s){let u=w.useContext(xt).outlet;return w.useMemo(()=>u&&w.createElement(um.Provider,{value:s},u),[u,s])}function dm(){let{matches:s}=w.useContext(xt),u=s[s.length-1];return u?u.params:{}}function Yr(s,{relative:u}={}){let{matches:o}=w.useContext(xt),{pathname:f}=mn(),d=JSON.stringify(ja(o));return w.useMemo(()=>ka(s,JSON.parse(d),f,u==="path"),[s,d,f,u])}function fm(s,u){return ld(s,u)}function ld(s,u,o,f,d){var H;_e(rr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:p}=w.useContext(ct),{matches:m}=w.useContext(xt),N=m[m.length-1],v=N?N.params:{},g=N?N.pathname:"/",S=N?N.pathnameBase:"/",E=N&&N.route;{let F=E&&E.path||"";sd(g,!E||F.endsWith("*")||F.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${F}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
50
|
+
|
|
51
|
+
Please change the parent <Route path="${F}"> to <Route path="${F==="/"?"*":`${F}/*`}">.`)}let T=mn(),P;if(u){let F=typeof u=="string"?tr(u):u;_e(S==="/"||((H=F.pathname)==null?void 0:H.startsWith(S)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${S}" but pathname "${F.pathname}" was given in the \`location\` prop.`),P=F}else P=T;let D=P.pathname||"/",I=D;if(S!=="/"){let F=S.replace(/^\//,"").split("/");I="/"+D.replace(/^\//,"").split("/").slice(F.length).join("/")}let R=Kc(s,{pathname:I});Pt(E||R!=null,`No routes matched location "${P.pathname}${P.search}${P.hash}" `),Pt(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${P.pathname}${P.search}${P.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let L=ym(R&&R.map(F=>Object.assign({},F,{params:Object.assign({},v,F.params),pathname:Qt([S,p.encodeLocation?p.encodeLocation(F.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:F.pathname]),pathnameBase:F.pathnameBase==="/"?S:Qt([S,p.encodeLocation?p.encodeLocation(F.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:F.pathnameBase])})),m,o,f,d);return u&&L?w.createElement(Gr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...P},navigationType:"POP"}},L):L}function pm(){let s=jm(),u=Xp(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),o=s instanceof Error?s.stack:null,f="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:f},p={padding:"2px 4px",backgroundColor:f},m=null;return console.error("Error handled by React Router default ErrorBoundary:",s),m=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:p},"ErrorBoundary")," or"," ",w.createElement("code",{style:p},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},u),o?w.createElement("pre",{style:d},o):null,m)}var mm=w.createElement(pm,null),id=class extends w.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,u){return u.location!==s.location||u.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:u.error,location:u.location,revalidation:s.revalidation||u.revalidation}}componentDidCatch(s,u){this.props.onError?this.props.onError(s,u):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const o=sm(s.digest);o&&(s=o)}let u=s!==void 0?w.createElement(xt.Provider,{value:this.props.routeContext},w.createElement(Na.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?w.createElement(hm,{error:s},u):u}};id.contextType=em;var ma=new WeakMap;function hm({children:s,error:u}){let{basename:o}=w.useContext(ct);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let f=im(u.digest);if(f){let d=ma.get(u);if(d)throw d;let p=Xc(f.location,o);if(Jc&&!ma.get(u))if(p.isExternal||f.reloadDocument)window.location.href=p.absoluteURL||p.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(p.to,{replace:f.replace}));throw ma.set(u,m),m}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${p.absoluteURL||p.to}`})}}return s}function vm({routeContext:s,match:u,children:o}){let f=w.useContext(nr);return f&&f.static&&f.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(f.staticContext._deepestRenderedBoundaryId=u.route.id),w.createElement(xt.Provider,{value:s},o)}function ym(s,u=[],o=null,f=null,d=null){if(s==null){if(!o)return null;if(o.errors)s=o.matches;else if(u.length===0&&!o.initialized&&o.matches.length>0)s=o.matches;else return null}let p=s,m=o==null?void 0:o.errors;if(m!=null){let S=p.findIndex(E=>E.route.id&&(m==null?void 0:m[E.route.id])!==void 0);_e(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),p=p.slice(0,Math.min(p.length,S+1))}let N=!1,v=-1;if(o)for(let S=0;S<p.length;S++){let E=p[S];if((E.route.HydrateFallback||E.route.hydrateFallbackElement)&&(v=S),E.route.id){let{loaderData:T,errors:P}=o,D=E.route.loader&&!T.hasOwnProperty(E.route.id)&&(!P||P[E.route.id]===void 0);if(E.route.lazy||D){N=!0,v>=0?p=p.slice(0,v+1):p=[p[0]];break}}}let g=o&&f?(S,E)=>{var T,P;f(S,{location:o.location,params:((P=(T=o.matches)==null?void 0:T[0])==null?void 0:P.params)??{},unstable_pattern:qp(o.matches),errorInfo:E})}:void 0;return p.reduceRight((S,E,T)=>{let P,D=!1,I=null,R=null;o&&(P=m&&E.route.id?m[E.route.id]:void 0,I=E.route.errorElement||mm,N&&(v<0&&T===0?(sd("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,R=null):v===T&&(D=!0,R=E.route.hydrateFallbackElement||null)));let L=u.concat(p.slice(0,T+1)),H=()=>{let F;return P?F=I:D?F=R:E.route.Component?F=w.createElement(E.route.Component,null):E.route.element?F=E.route.element:F=S,w.createElement(vm,{match:E,routeContext:{outlet:S,matches:L,isDataRoute:o!=null},children:F})};return o&&(E.route.ErrorBoundary||E.route.errorElement||T===0)?w.createElement(id,{location:o.location,revalidation:o.revalidation,component:I,error:P,children:H(),routeContext:{outlet:null,matches:L,isDataRoute:!0},onError:g}):H()},null)}function _a(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gm(s){let u=w.useContext(nr);return _e(u,_a(s)),u}function xm(s){let u=w.useContext(fi);return _e(u,_a(s)),u}function wm(s){let u=w.useContext(xt);return _e(u,_a(s)),u}function Ea(s){let u=wm(s),o=u.matches[u.matches.length-1];return _e(o.route.id,`${s} can only be used on routes that contain a unique "id"`),o.route.id}function Sm(){return Ea("useRouteId")}function jm(){var f;let s=w.useContext(Na),u=xm("useRouteError"),o=Ea("useRouteError");return s!==void 0?s:(f=u.errors)==null?void 0:f[o]}function km(){let{router:s}=gm("useNavigate"),u=Ea("useNavigate"),o=w.useRef(!1);return nd(()=>{o.current=!0}),w.useCallback(async(d,p={})=>{Pt(o.current,td),o.current&&(typeof d=="number"?await s.navigate(d):await s.navigate(d,{fromRouteId:u,...p}))},[s,u])}var Ic={};function sd(s,u,o){!u&&!Ic[s]&&(Ic[s]=!0,Pt(!1,o))}w.memo(Nm);function Nm({routes:s,future:u,state:o,onError:f}){return ld(s,void 0,o,f,u)}function Rt({to:s,replace:u,state:o,relative:f}){_e(rr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=w.useContext(ct);Pt(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:p}=w.useContext(xt),{pathname:m}=mn(),N=rd(),v=ka(s,ja(p),m,f==="path"),g=JSON.stringify(v);return w.useEffect(()=>{N(JSON.parse(g),{replace:u,state:o,relative:f})},[N,g,f,u,o]),null}function _m(s){return cm(s.context)}function Me(s){_e(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Em({basename:s="/",children:u=null,location:o,navigationType:f="POP",navigator:d,static:p=!1,unstable_useTransitions:m}){_e(!rr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let N=s.replace(/^\/*/,"/"),v=w.useMemo(()=>({basename:N,navigator:d,static:p,unstable_useTransitions:m,future:{}}),[N,d,p,m]);typeof o=="string"&&(o=tr(o));let{pathname:g="/",search:S="",hash:E="",state:T=null,key:P="default"}=o,D=w.useMemo(()=>{let I=Kt(g,N);return I==null?null:{location:{pathname:I,search:S,hash:E,state:T,key:P},navigationType:f}},[N,g,S,E,T,P,f]);return Pt(D!=null,`<Router basename="${N}"> is not able to match the URL "${g}${S}${E}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:w.createElement(ct.Provider,{value:v},w.createElement(Gr.Provider,{children:u,value:D}))}function Cm({children:s,location:u}){return fm(wa(s),u)}function wa(s,u=[]){let o=[];return w.Children.forEach(s,(f,d)=>{if(!w.isValidElement(f))return;let p=[...u,d];if(f.type===w.Fragment){o.push.apply(o,wa(f.props.children,p));return}_e(f.type===Me,`[${typeof f.type=="string"?f.type:f.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),_e(!f.props.index||!f.props.children,"An index route cannot have child routes.");let m={id:f.props.id||p.join("-"),caseSensitive:f.props.caseSensitive,element:f.props.element,Component:f.props.Component,index:f.props.index,path:f.props.path,middleware:f.props.middleware,loader:f.props.loader,action:f.props.action,hydrateFallbackElement:f.props.hydrateFallbackElement,HydrateFallback:f.props.HydrateFallback,errorElement:f.props.errorElement,ErrorBoundary:f.props.ErrorBoundary,hasErrorBoundary:f.props.hasErrorBoundary===!0||f.props.ErrorBoundary!=null||f.props.errorElement!=null,shouldRevalidate:f.props.shouldRevalidate,handle:f.props.handle,lazy:f.props.lazy};f.props.children&&(m.children=wa(f.props.children,p)),o.push(m)}),o}var oi="get",ui="application/x-www-form-urlencoded";function pi(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function Rm(s){return pi(s)&&s.tagName.toLowerCase()==="button"}function Pm(s){return pi(s)&&s.tagName.toLowerCase()==="form"}function Tm(s){return pi(s)&&s.tagName.toLowerCase()==="input"}function Lm(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function zm(s,u){return s.button===0&&(!u||u==="_self")&&!Lm(s)}var ai=null;function Am(){if(ai===null)try{new FormData(document.createElement("form"),0),ai=!1}catch{ai=!0}return ai}var Mm=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ha(s){return s!=null&&!Mm.has(s)?(Pt(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ui}"`),null):s}function Dm(s,u){let o,f,d,p,m;if(Pm(s)){let N=s.getAttribute("action");f=N?Kt(N,u):null,o=s.getAttribute("method")||oi,d=ha(s.getAttribute("enctype"))||ui,p=new FormData(s)}else if(Rm(s)||Tm(s)&&(s.type==="submit"||s.type==="image")){let N=s.form;if(N==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=s.getAttribute("formaction")||N.getAttribute("action");if(f=v?Kt(v,u):null,o=s.getAttribute("formmethod")||N.getAttribute("method")||oi,d=ha(s.getAttribute("formenctype"))||ha(N.getAttribute("enctype"))||ui,p=new FormData(N,s),!Am()){let{name:g,type:S,value:E}=s;if(S==="image"){let T=g?`${g}.`:"";p.append(`${T}x`,"0"),p.append(`${T}y`,"0")}else g&&p.append(g,E)}}else{if(pi(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=oi,f=null,d=ui,m=s}return p&&d==="text/plain"&&(m=p,p=void 0),{action:f,method:o.toLowerCase(),encType:d,formData:p,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ca(s,u){if(s===!1||s===null||typeof s>"u")throw new Error(u)}function Om(s,u,o,f){let d=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return o?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${f}`:d.pathname=`${d.pathname}.${f}`:d.pathname==="/"?d.pathname=`_root.${f}`:u&&Kt(d.pathname,u)==="/"?d.pathname=`${u.replace(/\/$/,"")}/_root.${f}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${f}`,d}async function Im(s,u){if(s.id in u)return u[s.id];try{let o=await import(s.module);return u[s.id]=o,o}catch(o){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function $m(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function Fm(s,u,o){let f=await Promise.all(s.map(async d=>{let p=u.routes[d.route.id];if(p){let m=await Im(p,o);return m.links?m.links():[]}return[]}));return Hm(f.flat(1).filter($m).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function $c(s,u,o,f,d,p){let m=(v,g)=>o[g]?v.route.id!==o[g].route.id:!0,N=(v,g)=>{var S;return o[g].pathname!==v.pathname||((S=o[g].route.path)==null?void 0:S.endsWith("*"))&&o[g].params["*"]!==v.params["*"]};return p==="assets"?u.filter((v,g)=>m(v,g)||N(v,g)):p==="data"?u.filter((v,g)=>{var E;let S=f.routes[v.route.id];if(!S||!S.hasLoader)return!1;if(m(v,g)||N(v,g))return!0;if(v.route.shouldRevalidate){let T=v.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((E=o[0])==null?void 0:E.params)||{},nextUrl:new URL(s,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof T=="boolean")return T}return!0}):[]}function Um(s,u,{includeHydrateFallback:o}={}){return Bm(s.map(f=>{let d=u.routes[f.route.id];if(!d)return[];let p=[d.module];return d.clientActionModule&&(p=p.concat(d.clientActionModule)),d.clientLoaderModule&&(p=p.concat(d.clientLoaderModule)),o&&d.hydrateFallbackModule&&(p=p.concat(d.hydrateFallbackModule)),d.imports&&(p=p.concat(d.imports)),p}).flat(1))}function Bm(s){return[...new Set(s)]}function Wm(s){let u={},o=Object.keys(s).sort();for(let f of o)u[f]=s[f];return u}function Hm(s,u){let o=new Set;return new Set(u),s.reduce((f,d)=>{let p=JSON.stringify(Wm(d));return o.has(p)||(o.add(p),f.push({key:p,link:d})),f},[])}function ad(){let s=w.useContext(nr);return Ca(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function Vm(){let s=w.useContext(fi);return Ca(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var Ra=w.createContext(void 0);Ra.displayName="FrameworkContext";function od(){let s=w.useContext(Ra);return Ca(s,"You must render this element inside a <HydratedRouter> element"),s}function bm(s,u){let o=w.useContext(Ra),[f,d]=w.useState(!1),[p,m]=w.useState(!1),{onFocus:N,onBlur:v,onMouseEnter:g,onMouseLeave:S,onTouchStart:E}=u,T=w.useRef(null);w.useEffect(()=>{if(s==="render"&&m(!0),s==="viewport"){let I=L=>{L.forEach(H=>{m(H.isIntersecting)})},R=new IntersectionObserver(I,{threshold:.5});return T.current&&R.observe(T.current),()=>{R.disconnect()}}},[s]),w.useEffect(()=>{if(f){let I=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(I)}}},[f]);let P=()=>{d(!0)},D=()=>{d(!1),m(!1)};return o?s!=="intent"?[p,T,{}]:[p,T,{onFocus:Vr(N,P),onBlur:Vr(v,D),onMouseEnter:Vr(g,P),onMouseLeave:Vr(S,D),onTouchStart:Vr(E,P)}]:[!1,T,{}]}function Vr(s,u){return o=>{s&&s(o),o.defaultPrevented||u(o)}}function Qm({page:s,...u}){let{router:o}=ad(),f=w.useMemo(()=>Kc(o.routes,s,o.basename),[o.routes,s,o.basename]);return f?w.createElement(Gm,{page:s,matches:f,...u}):null}function Km(s){let{manifest:u,routeModules:o}=od(),[f,d]=w.useState([]);return w.useEffect(()=>{let p=!1;return Fm(s,u,o).then(m=>{p||d(m)}),()=>{p=!0}},[s,u,o]),f}function Gm({page:s,matches:u,...o}){let f=mn(),{future:d,manifest:p,routeModules:m}=od(),{basename:N}=ad(),{loaderData:v,matches:g}=Vm(),S=w.useMemo(()=>$c(s,u,g,p,f,"data"),[s,u,g,p,f]),E=w.useMemo(()=>$c(s,u,g,p,f,"assets"),[s,u,g,p,f]),T=w.useMemo(()=>{if(s===f.pathname+f.search+f.hash)return[];let I=new Set,R=!1;if(u.forEach(H=>{var re;let F=p.routes[H.route.id];!F||!F.hasLoader||(!S.some(U=>U.route.id===H.route.id)&&H.route.id in v&&((re=m[H.route.id])!=null&&re.shouldRevalidate)||F.hasClientLoader?R=!0:I.add(H.route.id))}),I.size===0)return[];let L=Om(s,N,d.unstable_trailingSlashAwareDataRequests,"data");return R&&I.size>0&&L.searchParams.set("_routes",u.filter(H=>I.has(H.route.id)).map(H=>H.route.id).join(",")),[L.pathname+L.search]},[N,d.unstable_trailingSlashAwareDataRequests,v,f,p,S,u,s,m]),P=w.useMemo(()=>Um(E,p),[E,p]),D=Km(E);return w.createElement(w.Fragment,null,T.map(I=>w.createElement("link",{key:I,rel:"prefetch",as:"fetch",href:I,...o})),P.map(I=>w.createElement("link",{key:I,rel:"modulepreload",href:I,...o})),D.map(({key:I,link:R})=>w.createElement("link",{key:I,nonce:o.nonce,...R,crossOrigin:R.crossOrigin??o.crossOrigin})))}function Ym(...s){return u=>{s.forEach(o=>{typeof o=="function"?o(u):o!=null&&(o.current=u)})}}var Jm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Jm&&(window.__reactRouterVersion="7.13.0")}catch{}function Xm({basename:s,children:u,unstable_useTransitions:o,window:f}){let d=w.useRef();d.current==null&&(d.current=Cp({window:f,v5Compat:!0}));let p=d.current,[m,N]=w.useState({action:p.action,location:p.location}),v=w.useCallback(g=>{o===!1?N(g):w.startTransition(()=>N(g))},[o]);return w.useLayoutEffect(()=>p.listen(v),[p,v]),w.createElement(Em,{basename:s,children:u,location:m.location,navigationType:m.action,navigator:p,unstable_useTransitions:o})}var ud=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,It=w.forwardRef(function({onClick:u,discover:o="render",prefetch:f="none",relative:d,reloadDocument:p,replace:m,state:N,target:v,to:g,preventScrollReset:S,viewTransition:E,unstable_defaultShouldRevalidate:T,...P},D){let{basename:I,unstable_useTransitions:R}=w.useContext(ct),L=typeof g=="string"&&ud.test(g),H=Xc(g,I);g=H.to;let F=am(g,{relative:d}),[re,U,Y]=bm(f,P),ie=eh(g,{replace:m,state:N,target:v,preventScrollReset:S,relative:d,viewTransition:E,unstable_defaultShouldRevalidate:T,unstable_useTransitions:R});function me(Le){u&&u(Le),Le.defaultPrevented||ie(Le)}let Ee=w.createElement("a",{...P,...Y,href:H.absoluteURL||F,onClick:H.isExternal||p?u:me,ref:Ym(D,U),target:v,"data-discover":!L&&o==="render"?"true":void 0});return re&&!L?w.createElement(w.Fragment,null,Ee,w.createElement(Qm,{page:F})):Ee});It.displayName="Link";var cd=w.forwardRef(function({"aria-current":u="page",caseSensitive:o=!1,className:f="",end:d=!1,style:p,to:m,viewTransition:N,children:v,...g},S){let E=Yr(m,{relative:g.relative}),T=mn(),P=w.useContext(fi),{navigator:D,basename:I}=w.useContext(ct),R=P!=null&&ih(E)&&N===!0,L=D.encodeLocation?D.encodeLocation(E).pathname:E.pathname,H=T.pathname,F=P&&P.navigation&&P.navigation.location?P.navigation.location.pathname:null;o||(H=H.toLowerCase(),F=F?F.toLowerCase():null,L=L.toLowerCase()),F&&I&&(F=Kt(F,I)||F);const re=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let U=H===L||!d&&H.startsWith(L)&&H.charAt(re)==="/",Y=F!=null&&(F===L||!d&&F.startsWith(L)&&F.charAt(L.length)==="/"),ie={isActive:U,isPending:Y,isTransitioning:R},me=U?u:void 0,Ee;typeof f=="function"?Ee=f(ie):Ee=[f,U?"active":null,Y?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let Le=typeof p=="function"?p(ie):p;return w.createElement(It,{...g,"aria-current":me,className:Ee,ref:S,style:Le,to:m,viewTransition:N},typeof v=="function"?v(ie):v)});cd.displayName="NavLink";var qm=w.forwardRef(({discover:s="render",fetcherKey:u,navigate:o,reloadDocument:f,replace:d,state:p,method:m=oi,action:N,onSubmit:v,relative:g,preventScrollReset:S,viewTransition:E,unstable_defaultShouldRevalidate:T,...P},D)=>{let{unstable_useTransitions:I}=w.useContext(ct),R=rh(),L=lh(N,{relative:g}),H=m.toLowerCase()==="get"?"get":"post",F=typeof N=="string"&&ud.test(N),re=U=>{if(v&&v(U),U.defaultPrevented)return;U.preventDefault();let Y=U.nativeEvent.submitter,ie=(Y==null?void 0:Y.getAttribute("formmethod"))||m,me=()=>R(Y||U.currentTarget,{fetcherKey:u,method:ie,navigate:o,replace:d,state:p,relative:g,preventScrollReset:S,viewTransition:E,unstable_defaultShouldRevalidate:T});I&&o!==!1?w.startTransition(()=>me()):me()};return w.createElement("form",{ref:D,method:H,action:L,onSubmit:f?v:re,...P,"data-discover":!F&&s==="render"?"true":void 0})});qm.displayName="Form";function Zm(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dd(s){let u=w.useContext(nr);return _e(u,Zm(s)),u}function eh(s,{target:u,replace:o,state:f,preventScrollReset:d,relative:p,viewTransition:m,unstable_defaultShouldRevalidate:N,unstable_useTransitions:v}={}){let g=rd(),S=mn(),E=Yr(s,{relative:p});return w.useCallback(T=>{if(zm(T,u)){T.preventDefault();let P=o!==void 0?o:Qr(S)===Qr(E),D=()=>g(s,{replace:P,state:f,preventScrollReset:d,relative:p,viewTransition:m,unstable_defaultShouldRevalidate:N});v?w.startTransition(()=>D()):D()}},[S,g,E,o,f,u,s,d,p,m,N,v])}var th=0,nh=()=>`__${String(++th)}__`;function rh(){let{router:s}=dd("useSubmit"),{basename:u}=w.useContext(ct),o=Sm(),f=s.fetch,d=s.navigate;return w.useCallback(async(p,m={})=>{let{action:N,method:v,encType:g,formData:S,body:E}=Dm(p,u);if(m.navigate===!1){let T=m.fetcherKey||nh();await f(T,o,m.action||N,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:S,body:E,formMethod:m.method||v,formEncType:m.encType||g,flushSync:m.flushSync})}else await d(m.action||N,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:S,body:E,formMethod:m.method||v,formEncType:m.encType||g,replace:m.replace,state:m.state,fromRouteId:o,flushSync:m.flushSync,viewTransition:m.viewTransition})},[f,d,u,o])}function lh(s,{relative:u}={}){let{basename:o}=w.useContext(ct),f=w.useContext(xt);_e(f,"useFormAction must be used inside a RouteContext");let[d]=f.matches.slice(-1),p={...Yr(s||".",{relative:u})},m=mn();if(s==null){p.search=m.search;let N=new URLSearchParams(p.search),v=N.getAll("index");if(v.some(S=>S==="")){N.delete("index"),v.filter(E=>E).forEach(E=>N.append("index",E));let S=N.toString();p.search=S?`?${S}`:""}}return(!s||s===".")&&d.route.index&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(p.pathname=p.pathname==="/"?o:Qt([o,p.pathname])),Qr(p)}function ih(s,{relative:u}={}){let o=w.useContext(Zc);_e(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:f}=dd("useViewTransitionState"),d=Yr(s,{relative:u});if(!o.isTransitioning)return!1;let p=Kt(o.currentLocation.pathname,f)||o.currentLocation.pathname,m=Kt(o.nextLocation.pathname,f)||o.nextLocation.pathname;return ci(d.pathname,m)!=null||ci(d.pathname,p)!=null}const di="og_session_token";function sh(){if(typeof document<"u"&&document.baseURI)try{const u=new URL(document.baseURI).pathname.match(/^(.*?)\/dashboard(?:\/|$)/);if(u&&u[1])return u[1]}catch{}return""}const Fc=sh();function fd(){if(typeof window<"u"){const u=new URLSearchParams(window.location.search).get("token");if(u)return localStorage.setItem(di,u),u}return localStorage.getItem(di)}function ah(s){localStorage.setItem(di,s)}function va(){localStorage.removeItem(di)}const pd=w.createContext({authenticated:!1,loading:!0,name:"",logout:()=>{},checkSession:async()=>{}});function oh({children:s}){const[u,o]=w.useState(!1),[f,d]=w.useState(!0),[p,m]=w.useState(""),N=w.useCallback(async()=>{d(!0);try{const g=fd();if(!g){o(!1),m(""),d(!1);return}const E=await(await fetch(`${Fc}/api/auth/me?token=${g}`,{credentials:"include"})).json();E.success?(o(!0),ah(g),m(E.name??"Local Dashboard")):(o(!1),m(""),va())}catch{o(!1),m(""),va()}finally{d(!1)}},[]);w.useEffect(()=>{N()},[N]);const v=w.useCallback(()=>{va(),o(!1),m(""),fetch(`${Fc}/api/auth/logout`,{method:"POST",credentials:"include"}).catch(()=>{})},[]);return l.jsx(pd.Provider,{value:{authenticated:u,loading:f,name:p,logout:v,checkSession:N},children:s})}function md(){return w.useContext(pd)}const hd=w.createContext({theme:"system",resolved:"dark",setTheme:()=>{}}),Uc="og_theme";function vd(){return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}function uh(s){return s==="system"?vd():s}function ch({children:s}){const[u,o]=w.useState(()=>{const p=localStorage.getItem(Uc);return p==="dark"||p==="light"||p==="system"?p:"system"}),f=uh(u);w.useEffect(()=>{document.documentElement.setAttribute("data-theme",f)},[f]),w.useEffect(()=>{if(u!=="system")return;const p=window.matchMedia("(prefers-color-scheme: light)"),m=()=>{document.documentElement.setAttribute("data-theme",vd())};return p.addEventListener("change",m),()=>p.removeEventListener("change",m)},[u]);const d=w.useCallback(p=>{o(p),localStorage.setItem(Uc,p)},[]);return l.jsx(hd.Provider,{value:{theme:u,resolved:f,setTheme:d},children:s})}function dh(){return w.useContext(hd)}const Bc=[{value:"light",label:"Light",icon:l.jsxs("svg",{className:"theme-icon",viewBox:"0 0 24 24",children:[l.jsx("circle",{cx:"12",cy:"12",r:"5"}),l.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),l.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),l.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),l.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),l.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),l.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),l.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),l.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})},{value:"system",label:"System",icon:l.jsxs("svg",{className:"theme-icon",viewBox:"0 0 24 24",children:[l.jsx("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"}),l.jsx("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),l.jsx("line",{x1:"12",y1:"17",x2:"12",y2:"21"})]})},{value:"dark",label:"Dark",icon:l.jsx("svg",{className:"theme-icon",viewBox:"0 0 24 24",children:l.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})}];function fh(){const{theme:s,setTheme:u}=dh(),o=Bc.findIndex(f=>f.value===s);return l.jsx("div",{className:"theme-toggle",children:l.jsxs("div",{className:"theme-toggle__track",style:{"--theme-index":o},children:[l.jsx("div",{className:"theme-toggle__indicator"}),Bc.map(f=>l.jsx("button",{className:`theme-toggle__button${s===f.value?" active":""}`,onClick:()=>u(f.value),title:f.label,"aria-label":`Switch to ${f.label} theme`,children:f.icon},f.value))]})})}const ph="/dashboard/".replace(/\/$/,"")||"";function mh(){const{logout:s}=md();return l.jsxs("header",{className:"topbar",children:[l.jsx("div",{className:"topbar-left",children:l.jsxs(It,{to:"/",className:"brand",children:[l.jsx("div",{className:"brand-logo",children:l.jsx("img",{src:`${ph}/changeway-logo.png`,alt:"changewayGuard"})}),l.jsx("span",{className:"brand-title",children:"changewayGuard"})]})}),l.jsxs("div",{className:"topbar-status",children:[l.jsxs("div",{className:"pill",children:[l.jsx("span",{className:"statusDot ok"}),l.jsx("span",{children:"Online"})]}),l.jsx(fh,{}),l.jsx("button",{className:"btn btn--sm",onClick:s,children:"Logout"})]})]})}/**
|
|
52
|
+
* @license lucide-react v0.564.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const yd=(...s)=>s.filter((u,o,f)=>!!u&&u.trim()!==""&&f.indexOf(u)===o).join(" ").trim();/**
|
|
57
|
+
* @license lucide-react v0.564.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const hh=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
62
|
+
* @license lucide-react v0.564.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const vh=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,o,f)=>f?f.toUpperCase():o.toLowerCase());/**
|
|
67
|
+
* @license lucide-react v0.564.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const Wc=s=>{const u=vh(s);return u.charAt(0).toUpperCase()+u.slice(1)};/**
|
|
72
|
+
* @license lucide-react v0.564.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/var yh={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"};/**
|
|
77
|
+
* @license lucide-react v0.564.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const gh=s=>{for(const u in s)if(u.startsWith("aria-")||u==="role"||u==="title")return!0;return!1};/**
|
|
82
|
+
* @license lucide-react v0.564.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const xh=w.forwardRef(({color:s="currentColor",size:u=24,strokeWidth:o=2,absoluteStrokeWidth:f,className:d="",children:p,iconNode:m,...N},v)=>w.createElement("svg",{ref:v,...yh,width:u,height:u,stroke:s,strokeWidth:f?Number(o)*24/Number(u):o,className:yd("lucide",d),...!p&&!gh(N)&&{"aria-hidden":"true"},...N},[...m.map(([g,S])=>w.createElement(g,S)),...Array.isArray(p)?p:[p]]));/**
|
|
87
|
+
* @license lucide-react v0.564.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const dt=(s,u)=>{const o=w.forwardRef(({className:f,...d},p)=>w.createElement(xh,{ref:p,iconNode:u,className:yd(`lucide-${hh(Wc(s))}`,`lucide-${s}`,f),...d}));return o.displayName=Wc(s),o};/**
|
|
92
|
+
* @license lucide-react v0.564.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const wh=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Sh=dt("activity",wh);/**
|
|
97
|
+
* @license lucide-react v0.564.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const jh=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],gd=dt("bot",jh);/**
|
|
102
|
+
* @license lucide-react v0.564.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const kh=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Nh=dt("clipboard-list",kh);/**
|
|
107
|
+
* @license lucide-react v0.564.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const _h=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Eh=dt("clock",_h);/**
|
|
112
|
+
* @license lucide-react v0.564.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const Ch=[["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M4 12v6",key:"bg1pfk"}],["path",{d:"M4 14h2",key:"1sf9f8"}],["path",{d:"M9.65 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v4",key:"d56i0q"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Rh=dt("file-key",Ch);/**
|
|
117
|
+
* @license lucide-react v0.564.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const Ph=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Th=dt("house",Ph);/**
|
|
122
|
+
* @license lucide-react v0.564.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const Lh=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],xd=dt("key",Lh);/**
|
|
127
|
+
* @license lucide-react v0.564.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const zh=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Ah=dt("lock",zh);/**
|
|
132
|
+
* @license lucide-react v0.564.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const Mh=[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Dh=dt("shield-check",Mh);/**
|
|
137
|
+
* @license lucide-react v0.564.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const Oh=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]],Ih=dt("shield-off",Oh);/**
|
|
142
|
+
* @license lucide-react v0.564.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const $h=[["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"}]],Fh=dt("shield",$h);/**
|
|
147
|
+
* @license lucide-react v0.564.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const Uh=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],wd=dt("triangle-alert",Uh);/**
|
|
152
|
+
* @license lucide-react v0.564.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const Bh=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Wh=dt("zap",Bh),Rn=["总览","智能体","活动","安全","安全巡检","网关","敏感信息","设置"],le={title:"总览",subtitle:"智能体状态与安全概览",loading:"加载仪表盘中...",stats:{agenticHours:"智能体时长",activeAgents:"活跃智能体",actionsToday:"今日操作",blockedActions:"已拦截操作",securityAlerts:"安全告警"},sections:{recentSecurityEvents:"最近安全事件",agentActivity:"智能体活动"},links:{viewAll:"查看全部",viewAllAgents:"查看全部智能体"},emptyStates:{noSecurityEventsTitle:"暂无安全事件",noSecurityEventsDescription:"暂未检测到安全风险。当前智能体运行状态正常。",noAgentsTitle:"暂无已连接智能体",noAgentsDescription:"MoltGuard 插件首次连接后,智能体会显示在这里。"},event:{unknownAgent:"未知智能体",justNow:"刚刚",minutesAgo:s=>`${s} 分钟前`,hoursAgo:s=>`${s} 小时前`,daysAgo:s=>`${s} 天前`},risk:{critical:"严重",high:"高",medium:"中",low:"低"},activity:{actions:"次操作",tools:"个工具",blocked:"次已拦截",active:"活跃",inactive:"离线"},scanners:{S01:"提示词注入",S02:"系统覆盖",S03:"网页攻击",S04:"MCP 工具投毒",S05:"恶意代码执行",S06:"不当内容",S07:"PII 暴露",S08:"凭证泄露",S09:"敏感数据",S10:"偏题漂移"}},Je={title:"智能体",subtitle:"已连接到 changewayGuard 的 AI 智能体",searchPlaceholder:"搜索智能体、模型、技能...",loading:"加载智能体中...",count:s=>`${s} 个智能体`,empty:{noAgentsTitle:"未找到智能体",tryAnotherSearch:"请尝试其他搜索词",noAgentsDescription:"MoltGuard 插件首次连接后,智能体会显示在这里。"},time:{never:"从未",justNow:"刚刚",minutesAgo:s=>`${s} 分钟前`,hoursAgo:s=>`${s} 小时前`,daysAgo:s=>`${s} 天前`},status:{active:"活跃",inactive:"离线"}},Be={title:"活动",subtitle:"智能体操作时间线",summary:{allowed:s=>`${s} 次已允许`,blocked:s=>`${s} 次已拦截`},searchPlaceholder:"搜索工具、类别、智能体...",filters:{all:"全部",allowed:"已允许",blocked:"已拦截"},loading:"加载活动中...",empty:{noActivityTitle:"暂无活动记录",adjustFilters:"请尝试调整筛选条件",noActivityDescription:"当智能体开始调用工具后,活动记录会显示在这里。"},status:{allowed:"已允许",blocked:"已拦截"},time:{justNow:"刚刚",minutesAgo:s=>`${s} 分钟前`,hoursAgo:s=>`${s} 小时前`,daysAgo:s=>`${s} 天前`}},X={title:"安全",subtitle:"跨智能体与工作区文件检测到的安全风险",summary:{safe:s=>`${s} 项安全`,risk:s=>`${s} 项风险`},tabs:{all:"全部",staticScans:"静态扫描",runtimeDetections:"运行时检测"},quota:{title:"配额已超限",description:"你的检测配额已用完,部分扫描已被跳过。",upgrade:"升级方案以继续保护 ->"},loading:"加载安全数据中...",empty:{noRiskTitle:"未检测到风险",all:"当前未检测到安全风险,智能体运行状态正常。",static:"工作区文件未发现静态安全风险。可执行 `/og_scan` 进行扫描。",dynamic:"未检测到运行时安全风险,智能体运行状态正常。"},table:{risk:"风险等级",fileOrAgent:"文件 / 智能体",agent:"智能体",categories:"风险类别",findings:"命中项",detected:"检测时间",unknown:"未知",finding:s=>`${s} 条命中`},inspection:{title:"安全巡检",subtitle:"读取本机巡检报告中的审计结果",table:{item:"审计项",result:"审计结果",detail:"详情"},detailButton:"查看详情",empty:"暂无巡检数据",noDetail:"暂无详情内容",modalTitle:"巡检详情",close:"关闭"},risk:{critical:"严重",high:"高",medium:"中",low:"低"},common:{never:"从未",unknownAgent:"未知智能体"},scanners:{S01:"提示词注入",S02:"系统覆盖",S03:"网页攻击",S04:"MCP 工具投毒",S05:"恶意代码执行",S06:"不当内容",S07:"PII 暴露",S08:"凭证泄露",S09:"敏感数据",S10:"偏题漂移"}},te={title:"AI 安全网关",subtitle:"用于 LLM API 调用的数据脱敏代理",loading:"加载中...",errorPrefix:"错误:",tabs:{status:"状态",activity:"活动"},activity:{sanitizations24h:"24小时脱敏次数",restorations24h:"24小时还原次数",redactions24h:"24小时替换总数",totalRedactions:"累计替换总数",redactionCategories:"替换类别",recentActivity:"最近活动",noActivity:"暂无网关活动记录。",table:{time:"时间",type:"类型",backend:"后端",model:"模型",redactions:"替换数",categories:"类别",empty:"-"},typeLabels:{sanitize:"脱敏",restore:"还原"}},status:{status:"状态",enabled:"已启用",disabled:"未启用",health:"健康度",healthy:"健康",unhealthy:"不健康",endpoint:"端点"},enableGuide:{title:"如何启用",description:"启用 AI 安全网关后,系统会在发送给 LLM 提供商前自动脱敏敏感数据。",hint:"请在 OpenClaw 对话中运行该命令以启用数据脱敏。",command:"/og_sanitize on"},sections:{protectedAgents:"受保护智能体",configuredBackends:"已配置后端",protectedProviders:"受保护提供商",dataProtection:"数据保护"},backendTable:{backend:"后端",baseUrl:"基础 URL",apiKey:"API Key",configured:"已配置",missing:"缺失"},dataProtection:{description:"网关会在数据发送到 LLM 提供商前自动检测并替换敏感信息:",types:[{type:"API 密钥",example:"sk-xxx... -> __secret_1__"},{type:"邮箱地址",example:"user@example.com -> __email_1__"},{type:"信用卡号",example:"4111-xxxx -> __credit_card_1__"},{type:"手机号",example:"+1-555-xxx -> __phone_1__"},{type:"IP 地址",example:"192.168.x.x -> __ip_1__"},{type:"Bearer Token",example:"Bearer xxx -> __secret_1__"}]}},ce={title:"敏感信息",subtitle:"敏感数据保护与检测",loading:"加载敏感信息数据中...",summary:{detections:s=>`${s} 条检测`},items:{apiKeys:{label:"API 密钥",description:"API 密钥、令牌与认证凭证"},envFiles:{label:".env 文件",description:"环境配置文件"},sshKeys:{label:"SSH 密钥",description:"SSH 公钥与私钥"},piiData:{label:"PII 数据",description:"个人可识别信息"}},sections:{protectionCategories:"保护类别",recentDetections:"最近检测"},scanners:{S07:{name:"PII 暴露",description:"姓名、邮箱、手机号、身份证号等个人可识别信息"},S08:{name:"凭证泄露",description:"API 密钥、密码、令牌、SSH 密钥、数据库凭证"},S09:{name:"敏感数据",description:"内部文档、专有代码、商业机密"},detections:s=>`${s} 条检测`},empty:{title:"未检测到敏感数据",description:"当前智能体活动中未检测到 PII、凭证或敏感数据。"},findings:{more:s=>`+${s} 项`},risk:{critical:"严重",high:"高",medium:"中",low:"低"},common:{unknownAgent:"未知智能体"},time:{justNow:"刚刚",minutesAgo:s=>`${s} 分钟前`,hoursAgo:s=>`${s} 小时前`,daysAgo:s=>`${s} 天前`}},K={common:{never:"从未",loading:"加载智能体详情中...",notFound:"未找到智能体",backToAgents:"返回智能体列表",owner:"拥有者"},tabs:{profile:"档案",tasks:"任务",identities:"身份",permissions:"权限"},profile:{about:"关于",coreTraits:"核心特征",boundaries:"边界",continuity:"连续性",owner:"拥有者",timezone:"时区",context:"上下文",possessedAbility:"能力配置",configuredSkillsAndPlugins:"已配置技能与插件",skills:"技能",hierarchyHint:"工作区 > 内置",configuredPlugins:"已配置插件",bundledExtensions:"内置扩展",sourceWorkspace:"工作区",sourceBundled:"内置",pluginActive:"启用",pluginDisabled:"停用",rawDataFiles:"原始数据文件",skillCategories:{Communication:"沟通协作","Media & Audio":"媒体与音频",Development:"开发",Productivity:"效率工具",Music:"音乐","Smart Home":"智能家居",Security:"安全","Web & Search":"网页与搜索","Files & Storage":"文件与存储","AI & Models":"AI 与模型",Other:"其他"}},tasks:{title:"任务",empty:"未配置心跳或定时任务。",heartbeat:"心跳",scheduledJobs:"定时任务",jobPrefix:"任务",active:"启用",disabled:"停用"},identities:{title:"身份",empty:"暂无身份数据。智能体开始调用工具后会在这里展示。",stats:{calls:"调用",tools:"工具",targets:"目标",lastSeen:"最近出现"},toolsObserved:"已观测工具",categories:{github:"GitHub",slack:"Slack",gmail:"Gmail",filesystem:"文件系统",shell:"Shell",jira:"Jira",notion:"Notion",docker:"Docker",postgres:"PostgreSQL",redis:"Redis",aws:"AWS",exec:"Exec"},justNow:"刚刚",minutesAgo:s=>`${s} 分钟前`,hoursAgo:s=>`${s} 小时前`,daysAgo:s=>`${s} 天前`,toolRowCount:s=>`${s} 次`},permissions:{title:"权限",subtitle:"已验证:运行时真实观测到的工具使用",empty:"暂无观测到的权限。",table:{tool:"工具",category:"类别",access:"访问",calls:"调用次数",targets:"目标",lastSeen:"最近出现"},firstSeenTool:"首次出现的工具",unknown:"未知"}},Hh=[{label:Rn[0],to:"/overview",icon:l.jsx(Th,{size:18})},{label:Rn[1],to:"/agents",icon:l.jsx(gd,{size:18})},{label:Rn[2],to:"/activity",icon:l.jsx(Sh,{size:18})},{label:Rn[3],to:"/security",icon:l.jsx(Fh,{size:18})},{label:Rn[4],to:"/security-inspection",icon:l.jsx(Nh,{size:18})},{label:Rn[5],to:"/gateway",icon:l.jsx(Dh,{size:18})},{label:Rn[6],to:"/secrets",icon:l.jsx(xd,{size:18})}];function Vh(){return l.jsx("nav",{className:"nav",children:l.jsx("div",{className:"nav-items",children:Hh.map(s=>l.jsxs(cd,{to:s.to,className:({isActive:u})=>`nav-item${u?" active":""}`,children:[l.jsx("span",{className:"nav-item__icon",children:s.icon}),l.jsx("span",{className:"nav-item__text",children:s.label})]},s.to))})})}function bh(){return l.jsxs("div",{className:"shell",children:[l.jsx(mh,{}),l.jsx(Vh,{}),l.jsx("main",{className:"content",children:l.jsx(_m,{})})]})}const Hc="/dashboard/".replace(/\/$/,"");function Qh(){return fd()}async function ye(s,u){const o=Qh(),f={"Content-Type":"application/json",...u==null?void 0:u.headers};o&&(f.Authorization=`Bearer ${o}`);const d=s.startsWith("/")?Hc+s:Hc+"/"+s;return(await fetch(d,{...u,headers:f})).json()}const je={verifyToken:s=>ye("/api/session/verify",{method:"POST",body:JSON.stringify({token:s})}),logout:()=>ye("/api/session/logout",{method:"POST"}),listDiscoveryAgents:()=>ye("/api/discovery/agents"),getDiscoveryAgent:s=>ye(`/api/discovery/agents/${encodeURIComponent(s)}`),scanAgents:()=>ye("/api/discovery/scan",{method:"POST"}),getAgentProfile:s=>ye(`/api/discovery/agents/${encodeURIComponent(s)}/profile`),getAgentSummary:s=>ye(`/api/discovery/agents/${encodeURIComponent(s)}/summary`),getAgentPermissions:s=>ye(`/api/observations/agents/${encodeURIComponent(s)}/permissions`),getAgentObservations:(s,u=50)=>ye(`/api/observations/agents/${encodeURIComponent(s)}/observations?limit=${u}`),getAllObservations:(s=100)=>ye(`/api/observations?limit=${s}`),getAllPermissions:()=>ye("/api/observations/permissions"),getObservationSummary:()=>ye("/api/observations/summary"),getAnomalies:()=>ye("/api/observations/anomalies"),listAgents:()=>ye("/api/agents"),getDetections:s=>{const u=new URLSearchParams;s!=null&&s.limit&&u.set("limit",String(s.limit)),s!=null&&s.unsafe&&u.set("unsafe","true");const o=u.toString();return ye(`/api/detections${o?`?${o}`:""}`)},getDetectionSummary:()=>ye("/api/detections/summary"),getSecurityReport:()=>ye("/api/security-report"),getSettings:()=>ye("/api/settings"),updateSettings:s=>ye("/api/settings",{method:"PUT",body:JSON.stringify(s)}),getConnectionStatus:()=>ye("/api/settings/connection-status"),getGatewayStatus:()=>ye("/api/gateway/status"),getGatewayConfig:()=>ye("/api/gateway/config"),getGatewayHealth:()=>ye("/api/gateway/health"),getGatewayActivity:s=>{const u=new URLSearchParams;s!=null&&s.limit&&u.set("limit",String(s.limit)),s!=null&&s.type&&u.set("type",s.type);const o=u.toString();return ye(`/api/gateway/activity${o?`?${o}`:""}`)},getGatewayActivityStats:()=>ye("/api/gateway/activity/stats"),getAgenticHoursToday:()=>ye("/api/agentic-hours/today"),getAgenticHoursDaily:s=>{const u=new URLSearchParams;s!=null&&s.from&&u.set("from",s.from),s!=null&&s.to&&u.set("to",s.to);const o=u.toString();return ye(`/api/agentic-hours/daily${o?`?${o}`:""}`)},getAgenticHoursByAgent:s=>{const u=new URLSearchParams;s!=null&&s.from&&u.set("from",s.from),s!=null&&s.to&&u.set("to",s.to);const o=u.toString();return ye(`/api/agentic-hours/by-agent${o?`?${o}`:""}`)}};function Vc(s){return s?`智能体 ${s.slice(0,6)}`:"未命名智能体"}function Kr(s,u="未命名智能体"){if(!s)return u;const o=s.replace(/\s+/g," ").trim();if(!o)return u;let f=o.replace(/^[-*]\s+/,"").replace(/^[`*_~\s]+/,"").replace(/[`*_~\s]+$/,"").replace(/^\((.*)\)$/,"$1").trim();const d=f.toLowerCase(),p=/(pick something|your signature|fill this in|make it yours|workspace-relative|something weirder|ghost in the machine|how do you come across)/i.test(d);return!f||p?u:(f=f.replace(/[\u0000-\u001F\u007F]/g,"").trim(),f||u)}function mi(s,u){var f;const o=new Map;for(const d of u)o.set(d.id,{name:Kr(d.name,Vc(d.id)),emoji:((f=d.metadata)==null?void 0:f.emoji)||"🤖"});for(const d of s)o.set(d.id,{name:Kr(d.name,Vc(d.id)),emoji:d.emoji||"🤖"});return o}const Kh={S01:le.scanners.S01,S02:le.scanners.S02,S03:le.scanners.S03,S04:le.scanners.S04,S05:le.scanners.S05,S06:le.scanners.S06,S07:le.scanners.S07,S08:le.scanners.S08,S09:le.scanners.S09,S10:le.scanners.S10};function Gh(s){return Kh[s]||s}function Yh(s){const u=new Date(s),f=new Date().getTime()-u.getTime(),d=Math.floor(f/6e4);if(d<1)return le.event.justNow;if(d<60)return le.event.minutesAgo(d);const p=Math.floor(d/60);if(p<24)return le.event.hoursAgo(p);const m=Math.floor(p/24);return le.event.daysAgo(m)}function br({icon:s,label:u,value:o,variant:f="default",link:d}){const p=l.jsxs("div",{className:`stat-card stat-card--${f}`,children:[l.jsx("div",{className:"stat-card__icon",children:s}),l.jsxs("div",{className:"stat-card__content",children:[l.jsx("div",{className:"stat-card__value",children:o}),l.jsx("div",{className:"stat-card__label",children:u})]})]});return d?l.jsx(It,{to:d,className:"stat-card-link",children:p}):p}function Jh(){const[s,u]=w.useState([]),[o,f]=w.useState([]),[d,p]=w.useState(null),[m,N]=w.useState([]),[v,g]=w.useState(null),[S,E]=w.useState(new Map),[T,P]=w.useState(!0);w.useEffect(()=>{let U=!1;return(async()=>{try{const[Y,ie,me,Ee,Le,Tt]=await Promise.all([je.listAgents(),je.getDetections({limit:10,unsafe:!0}),je.getDetectionSummary(),je.getObservationSummary(),je.listDiscoveryAgents(),je.getAgenticHoursToday()]);if(U)return;Y.success&&u(Y.data),ie.success&&f(ie.data),me.success&&p(me.data),Ee.success&&N(Ee.data),Tt.success&&g(Tt.data);const ft=mi(Le.success?Le.data:[],Y.success?Y.data:[]);E(ft)}catch{}finally{U||P(!1)}})(),()=>{U=!0}},[]);const D=U=>{if(U<1e3)return"0秒";const Y=Math.floor(U/1e3);if(Y<60)return`${Y}秒`;const ie=Math.floor(Y/60),me=Y%60;if(ie<60)return me>0?`${ie}分 ${me}秒`:`${ie}分`;const Ee=Math.floor(ie/60),Le=ie%60;return Le>0?`${Ee}小时 ${Le}分`:`${Ee}小时`},I=s.filter(U=>U.status==="active").length,R=(v==null?void 0:v.toolCallCount)??m.reduce((U,Y)=>U+Y.totalCalls,0),L=m.reduce((U,Y)=>U+Y.blockedCalls,0),H=(d==null?void 0:d.unsafe)||0,F=U=>U.sensitivityScore>=.8?{label:le.risk.critical,cls:"risk-critical"}:U.sensitivityScore>=.6?{label:le.risk.high,cls:"risk-high"}:U.sensitivityScore>=.4?{label:le.risk.medium,cls:"risk-medium"}:{label:le.risk.low,cls:"risk-low"},re=U=>{if(!U)return le.event.unknownAgent;const Y=S.get(U);return Y?`${Y.emoji} ${Y.name}`:U.slice(0,8)};return l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"content-header",children:l.jsxs("div",{children:[l.jsx("h1",{className:"page-title",children:le.title}),l.jsx("p",{className:"page-sub",children:le.subtitle})]})}),T?l.jsx("div",{className:"card",children:l.jsx("div",{className:"card-sub",children:le.loading})}):l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"stats-grid",children:[l.jsx(br,{icon:l.jsx(Eh,{size:24}),label:le.stats.agenticHours,value:D((v==null?void 0:v.totalDurationMs)??0)}),l.jsx(br,{icon:l.jsx(gd,{size:24}),label:le.stats.activeAgents,value:I,variant:"success",link:"/agents"}),l.jsx(br,{icon:l.jsx(Wh,{size:24}),label:le.stats.actionsToday,value:R,link:"/activity"}),l.jsx(br,{icon:l.jsx(Ih,{size:24}),label:le.stats.blockedActions,value:L,variant:L>0?"warning":"default",link:"/activity"}),l.jsx(br,{icon:l.jsx(wd,{size:24}),label:le.stats.securityAlerts,value:H,variant:H>0?"danger":"success",link:"/security"})]}),l.jsxs("div",{className:"overview-section",children:[l.jsxs("div",{className:"overview-section__header",children:[l.jsx("h2",{className:"overview-section__title",children:le.sections.recentSecurityEvents}),l.jsx(It,{to:"/security",className:"overview-section__link",children:le.links.viewAll})]}),o.length===0?l.jsxs("div",{className:"card",children:[l.jsx("div",{className:"card-title",children:le.emptyStates.noSecurityEventsTitle}),l.jsx("div",{className:"card-sub",children:le.emptyStates.noSecurityEventsDescription})]}):l.jsx("div",{className:"events-list",children:o.slice(0,5).map(U=>{const Y=F(U);return l.jsxs("div",{className:"event-item",children:[l.jsx("div",{className:"event-item__risk",children:l.jsx("span",{className:`access-pill ${Y.cls}`,children:Y.label})}),l.jsxs("div",{className:"event-item__content",children:[l.jsx("div",{className:"event-item__agent",children:re(U.agentId)}),l.jsx("div",{className:"event-item__categories",children:U.categories.map((ie,me)=>l.jsx("span",{className:"chip",children:Gh(ie)},me))})]}),l.jsx("div",{className:"event-item__time",children:Yh(U.createdAt)})]},U.id)})})]}),l.jsxs("div",{className:"overview-section",children:[l.jsxs("div",{className:"overview-section__header",children:[l.jsx("h2",{className:"overview-section__title",children:le.sections.agentActivity}),l.jsx(It,{to:"/agents",className:"overview-section__link",children:le.links.viewAllAgents})]}),s.length===0?l.jsxs("div",{className:"card",children:[l.jsx("div",{className:"card-title",children:le.emptyStates.noAgentsTitle}),l.jsx("div",{className:"card-sub",children:le.emptyStates.noAgentsDescription})]}):l.jsx("div",{className:"activity-summary",children:s.slice(0,5).map(U=>{const Y=m.find(Ee=>Ee.agentId===U.id),ie=U.metadata,me=Kr(U.name,`智能体 ${U.id.slice(0,6)}`);return l.jsxs(It,{to:`/agents/${ie.openclawId||U.id}`,className:"activity-summary__item",children:[l.jsx("div",{className:"activity-summary__avatar",children:ie.emoji||"🤖"}),l.jsxs("div",{className:"activity-summary__info",children:[l.jsx("div",{className:"activity-summary__name",children:me}),l.jsxs("div",{className:"activity-summary__stats",children:[l.jsxs("span",{children:[(Y==null?void 0:Y.totalCalls)||0,le.activity.actions]}),l.jsx("span",{className:"activity-summary__dot"}),l.jsxs("span",{children:[(Y==null?void 0:Y.uniqueTools)||0,le.activity.tools]}),Y&&Y.blockedCalls>0&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"activity-summary__dot"}),l.jsxs("span",{className:"activity-summary__blocked",children:[Y.blockedCalls,le.activity.blocked]})]})]})]}),l.jsxs("div",{className:"activity-summary__status",children:[l.jsx("span",{className:`statusDot ${U.status==="active"?"ok":"warn"}`}),l.jsx("span",{children:U.status==="active"?le.activity.active:le.activity.inactive})]})]},U.id)})})]})]})]})}const ya=4;function Xh(){const[s,u]=w.useState([]),[o,f]=w.useState(!0),[d,p]=w.useState("");w.useEffect(()=>{je.listAgents().then(v=>{v.success&&u(v.data),f(!1)})},[]);const m=s.filter(v=>{if(!d)return!0;const g=d.toLowerCase(),S=v.metadata;return Kr(v.name,`智能体 ${v.id.slice(0,6)}`).toLowerCase().includes(g)||(v.description??"").toLowerCase().includes(g)||v.provider.toLowerCase().includes(g)||(S.model??"").toLowerCase().includes(g)||(S.creature??"").toLowerCase().includes(g)||(S.ownerName??"").toLowerCase().includes(g)||(S.skills??[]).some(T=>T.name.toLowerCase().includes(g))}),N=v=>{if(!v)return Je.time.never;const g=new Date(v),E=new Date().getTime()-g.getTime(),T=Math.floor(E/6e4);if(T<1)return Je.time.justNow;if(T<60)return Je.time.minutesAgo(T);const P=Math.floor(T/60);if(P<24)return Je.time.hoursAgo(P);const D=Math.floor(P/24);return Je.time.daysAgo(D)};return l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"content-header",children:l.jsxs("div",{children:[l.jsx("h1",{className:"page-title",children:Je.title}),l.jsx("p",{className:"page-sub",children:Je.subtitle})]})}),l.jsxs("div",{className:"filters",children:[l.jsx("div",{className:"field",style:{minWidth:260},children:l.jsx("input",{type:"text",placeholder:Je.searchPlaceholder,value:d,onChange:v=>p(v.target.value)})}),l.jsxs("div",{className:"pill",children:[l.jsx("span",{className:"statusDot ok"}),l.jsx("span",{children:Je.count(m.length)})]})]}),o?l.jsx("div",{className:"card",children:l.jsx("div",{className:"card-sub",children:Je.loading})}):m.length===0?l.jsxs("div",{className:"card",children:[l.jsx("div",{className:"card-title",children:Je.empty.noAgentsTitle}),l.jsx("div",{className:"card-sub",children:d?Je.empty.tryAnotherSearch:Je.empty.noAgentsDescription})]}):l.jsx("div",{className:"agents-grid",children:m.map((v,g)=>{const S=v.metadata,E=S.skills??[],T=S.model||"",D=[v.provider!=="custom"?v.provider:(S.model,""),T].filter(Boolean).join("/"),I=Kr(v.name,`智能体 ${v.id.slice(0,6)}`),R=S.openclawId??v.id;return l.jsxs(It,{to:`/agents/${R}`,className:`agent-card stagger-${Math.min(g+1,6)}`,children:[l.jsxs("div",{className:"agent-card__header",children:[l.jsx("div",{className:"agent-card__avatar",children:S.emoji||"🤖"}),l.jsxs("div",{className:"agent-card__info",children:[l.jsx("div",{className:"agent-card__name",children:I}),S.creature&&l.jsx("div",{className:"agent-card__creature",children:S.creature})]})]}),D&&l.jsx("div",{className:"agent-card__model",children:D.includes("/")?l.jsxs(l.Fragment,{children:[l.jsx("span",{children:D.split("/")[0]}),l.jsx("span",{children:"/"}),l.jsx("span",{children:D.split("/")[1]})]}):l.jsx("span",{children:D})}),S.ownerName&&l.jsx("div",{className:"agent-card__owner",children:S.ownerName}),E.length>0&&l.jsxs("div",{className:"agent-card__skills",children:[E.slice(0,ya).map(L=>l.jsx("span",{className:"skill-pill",children:L.name},L.name)),E.length>ya&&l.jsxs("span",{className:"skill-pill overflow",children:["+",E.length-ya]})]}),l.jsxs("div",{className:"agent-card__footer",children:[l.jsx("span",{className:`statusDot ${v.status==="active"?"ok":"warn"}`,style:{display:"inline-block",marginRight:4}}),l.jsx("span",{children:v.status==="active"?Je.status.active:Je.status.inactive}),l.jsx("span",{children:N(v.lastSeenAt)})]})]},v.id)})})]})}const qh=s=>s?new Date(s).toLocaleString():K.common.never;function Zh(s){const u={headline:"",coreTruths:[],boundaries:[],vibe:"",continuity:[],raw:s};if(!s)return u;let o="";for(const f of s.split(`
|
|
157
|
+
`)){const d=f.trim(),p=d.match(/^#{1,3}\s+(.+)/);if(p){const N=p[1].toLowerCase();N.includes("core truth")?o="truths":N.includes("boundar")?o="boundaries":N.includes("vibe")?o="vibe":N.includes("continuity")?o="continuity":o="";continue}const m=d.replace(/^[-*]\s+/,"");!m||m===d.replace(/\s/g,"")||((d.startsWith("-")||d.startsWith("*"))&&(o==="truths"?u.coreTruths.push(m):o==="boundaries"?u.boundaries.push(m):o==="continuity"&&u.continuity.push(m)),o==="vibe"&&d&&!d.startsWith("#")&&(u.vibe?u.vibe+=" "+d:u.vibe=d))}return u}function ev(s){const u={name:"",timezone:"",context:[],raw:s};if(!s)return u;for(const o of s.split(`
|
|
158
|
+
`)){const f=o.trim(),d=f.match(/^[-*]?\s*\*\*name:\*\*\s*(.*)/i)||f.match(/^\*?\*?name\*?\*?:\s*(.*)/i);if(d&&!u.name){const m=d[1].replace(/^\*?\*?\s*/,"").trim();if(m){u.name=m;continue}}const p=f.match(/^[-*]?\s*\*\*timezone:\*\*\s*(.*)/i)||f.match(/^\*?\*?timezone\*?\*?:\s*(.*)/i);if(p&&!u.timezone){const m=p[1].replace(/^\*?\*?\s*/,"").trim();if(m){u.timezone=m;continue}}if(f.startsWith("-")||f.startsWith("*")){const m=f.replace(/^[-*]\s+/,"").trim();m&&!/^-+$/.test(m)&&u.context.push(m)}}return u}const tv={Communication:["discord","slack","wacli","imsg","bluebubbles","voice-call","himalaya","email"],"Media & Audio":["camsnap","gifgrep","nano-banana-pro","video-frames","openai-image-gen","image-gen","screenshot","webcam","media"],Development:["github","coding-agent","mcporter","oracle","git","npm","code"],Productivity:["apple-notes","bear-notes","notion","obsidian","things-mac","trello","todoist","calendar","reminders","notes"],Music:["spotify-player","sonoscli","blucli","music","audio"],"Smart Home":["openhue","eightctl","homekit","hue"],Security:["moltguard","healthcheck","guard","monitor"],"Web & Search":["web-search","browser","fetch","scrape","search"],"Files & Storage":["file-manager","dropbox","gdrive","icloud","files"],"AI & Models":["openai","anthropic","gemini","llm","model","ai"]};function nv(s){const u=s.toLowerCase();for(const[o,f]of Object.entries(tv))if(f.some(d=>u.includes(d)))return o;return"Other"}function rv(s){const u={};for(const d of s){const p=nv(d.name);u[p]||(u[p]=[]),u[p].push(d)}const o={},f=Object.keys(u).sort((d,p)=>d==="Other"?1:p==="Other"?-1:d.localeCompare(p));for(const d of f)o[d]=u[d];return o}function lv(s){return K.profile.skillCategories[s]||s}function er({title:s,content:u}){const[o,f]=w.useState(!1);return u?l.jsxs("div",{className:"raw-file-viewer",children:[l.jsxs("button",{className:"raw-file-viewer__header",onClick:()=>f(!o),children:[l.jsx("span",{children:s}),l.jsx("span",{className:"raw-file-viewer__chevron",children:o?"▼":"▶"})]}),o&&l.jsx("div",{className:"raw-file-viewer__content",children:l.jsx("pre",{children:u})})]}):null}function iv(){const{id:s}=dm(),[u,o]=w.useState(null),[f,d]=w.useState(!0),[p,m]=w.useState("profile"),[N,v]=w.useState([]);if(w.useEffect(()=>{if(!s)return;let D=!1;return(async()=>{try{const I=await je.getAgentProfile(s);if(D)return;if(I.success){o(I.data);const R=I.data.registeredAgentId||s,L=await je.getAgentPermissions(R);!D&&L.success&&v(L.data)}}catch{}finally{D||d(!1)}})(),()=>{D=!0}},[s]),f)return l.jsx("div",{className:"card",children:l.jsx("div",{className:"card-sub",children:K.common.loading})});if(!u)return l.jsxs("div",{className:"card",children:[l.jsx("div",{className:"card-title",children:K.common.notFound}),l.jsx("div",{className:"card-sub",children:l.jsx(It,{to:"/agents",children:K.common.backToAgents})})]});const g=Zh(u.workspaceFiles.soul),S=ev(u.workspaceFiles.user),E=rv(u.allSkills),T=[u.creature,u.vibe].filter(Boolean).join(" — "),P=[{key:"profile",label:K.tabs.profile},{key:"tasks",label:K.tabs.tasks},{key:"identities",label:K.tabs.identities},{key:"permissions",label:K.tabs.permissions}];return l.jsxs(l.Fragment,{children:[l.jsxs(It,{to:"/agents",className:"profile-back",children:["← ",K.common.backToAgents]}),l.jsxs("div",{className:"profile-waterfall",children:[l.jsxs("div",{className:"profile-hero",children:[l.jsx("div",{className:"profile-hero__avatar",children:u.avatarUrl?l.jsx("img",{src:u.avatarUrl,alt:u.name,className:"profile-hero__avatar-img"}):u.emoji}),l.jsxs("div",{className:"profile-hero__info",children:[l.jsx("h1",{className:"profile-hero__name",children:u.name}),T&&l.jsx("div",{className:"profile-hero__creature",children:T}),u.channels.length>0&&l.jsx("div",{className:"profile-hero__channels",children:u.channels.map(D=>l.jsx("span",{className:"channel-pill",children:D},D))}),l.jsx("div",{className:"profile-hero__model",children:l.jsxs("span",{className:"mono",children:[u.provider," / ",u.model]})}),(u.ownerName||S.timezone)&&l.jsxs("div",{className:"profile-hero__owner",children:[u.ownerName&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"profile-hero__owner-label",children:K.common.owner}),l.jsx("span",{className:"profile-hero__owner-name",children:u.ownerName})]}),S.timezone&&l.jsx("span",{className:"profile-hero__owner-tz",children:S.timezone})]})]})]}),l.jsx("div",{className:"profile-tabs",children:P.map(D=>l.jsx("button",{className:`profile-tab${p===D.key?" profile-tab--active":""}`,onClick:()=>m(D.key),children:D.label},D.key))}),p==="profile"&&l.jsx("div",{className:"profile-tab-content",children:l.jsx(sv,{profile:u,soulData:g,userData:S,skillGroups:E})}),p==="tasks"&&l.jsx(av,{profile:u}),p==="identities"&&l.jsx(ov,{profile:u,permissions:N}),p==="permissions"&&l.jsx(uv,{permissions:N,formatDate:qh})]})]})}function sv({profile:s,soulData:u,userData:o,skillGroups:f}){return l.jsxs("div",{className:"profile-view",children:[(u.coreTruths.length>0||u.vibe||u.boundaries.length>0)&&l.jsxs("div",{className:"profile-section persona-about",children:[l.jsx("div",{className:"profile-section__title",children:K.profile.about}),u.vibe&&l.jsx("div",{className:"persona-headline",children:u.vibe}),u.coreTruths.length>0&&l.jsxs("div",{className:"persona-section",children:[l.jsx("div",{className:"persona-section__label",children:K.profile.coreTraits}),l.jsx("div",{className:"persona-traits",children:u.coreTruths.map((d,p)=>l.jsx("span",{className:"persona-trait-pill",children:d},p))})]}),u.boundaries.length>0&&l.jsxs("div",{className:"persona-section",children:[l.jsx("div",{className:"persona-section__label",children:K.profile.boundaries}),l.jsx("ul",{className:"persona-boundaries",children:u.boundaries.map((d,p)=>l.jsx("li",{children:d},p))})]}),u.continuity.length>0&&l.jsxs("div",{className:"persona-section",children:[l.jsx("div",{className:"persona-section__label",children:K.profile.continuity}),l.jsx("ul",{className:"persona-boundaries",children:u.continuity.map((d,p)=>l.jsx("li",{children:d},p))})]})]}),o.raw&&l.jsxs("div",{className:"profile-section persona-about",children:[l.jsx("div",{className:"profile-section__title",children:K.profile.owner}),o.name&&l.jsx("div",{className:"persona-headline",children:o.name}),o.timezone&&l.jsxs("div",{className:"persona-section",children:[l.jsx("div",{className:"persona-section__label",children:K.profile.timezone}),l.jsx("span",{className:"pill",children:o.timezone})]}),o.context.length>0&&l.jsxs("div",{className:"persona-section",children:[l.jsx("div",{className:"persona-section__label",children:K.profile.context}),l.jsx("ul",{className:"persona-boundaries",children:o.context.map((d,p)=>l.jsx("li",{children:d},p))})]})]}),(s.allSkills.length>0||s.plugins.length>0||s.bundledExtensions.length>0)&&l.jsxs("div",{className:"profile-section",children:[l.jsxs("div",{className:"profile-section__title",children:[K.profile.possessedAbility,l.jsx("span",{className:"profile-section__subtitle",children:K.profile.configuredSkillsAndPlugins})]}),s.allSkills.length>0&&l.jsxs("div",{className:"possessed-subsection",children:[l.jsxs("div",{className:"possessed-subsection__label",children:[K.profile.skills,l.jsx("span",{className:"profile-section__count",children:s.allSkills.length})]}),l.jsx("div",{className:"possessed-hierarchy-hint",children:K.profile.hierarchyHint}),Object.entries(f).map(([d,p])=>l.jsxs("div",{className:"skill-category",children:[l.jsx("div",{className:"skill-category__label",children:lv(d)}),l.jsx("div",{className:"skill-grid",children:p.map(m=>l.jsxs("span",{className:`skill-card${m.source==="workspace"?" skill-card--workspace":""}`,"data-tip":m.description||"",children:[m.emoji&&l.jsx("span",{className:"skill-card__emoji",children:m.emoji}),l.jsx("span",{className:"skill-card__name",children:m.name}),l.jsx("span",{className:"skill-card__badge",children:m.source==="workspace"?K.profile.sourceWorkspace:K.profile.sourceBundled})]},`${m.source}-${m.name}`))})]},d))]}),s.plugins.length>0&&l.jsxs("div",{className:"possessed-subsection",children:[l.jsxs("div",{className:"possessed-subsection__label",children:[K.profile.configuredPlugins,l.jsx("span",{className:"profile-section__count",children:s.plugins.length})]}),l.jsx("div",{className:"profile-section__grid",children:s.plugins.map(d=>{const p=s.bundledExtensions.find(m=>m.name===d.name);return l.jsxs("div",{className:"list-item","data-tip":(p==null?void 0:p.description)||"",children:[l.jsx("div",{children:l.jsx("div",{className:"list-title",children:d.name})}),l.jsx("div",{className:"list-meta",children:l.jsx("span",{className:`chip ${d.enabled?"ok":"warn"}`,children:d.enabled?K.profile.pluginActive:K.profile.pluginDisabled})})]},d.name)})})]}),s.bundledExtensions.length>0&&l.jsxs("div",{className:"possessed-subsection",children:[l.jsxs("div",{className:"possessed-subsection__label",children:[K.profile.bundledExtensions,l.jsx("span",{className:"profile-section__count",children:s.bundledExtensions.length})]}),l.jsx("div",{className:"skill-grid",children:s.bundledExtensions.map(d=>l.jsxs("span",{className:"skill-card","data-tip":d.description||"",children:[l.jsx("span",{className:"skill-card__name",children:d.name}),l.jsx("span",{className:"skill-card__badge",children:K.profile.sourceBundled})]},d.name))})]})]}),l.jsxs("div",{className:"profile-section",children:[l.jsx("div",{className:"profile-section__title",children:K.profile.rawDataFiles}),l.jsxs("div",{className:"raw-files-list",children:[l.jsx(er,{title:"SOUL.md",content:s.workspaceFiles.soul}),l.jsx(er,{title:"IDENTITY.md",content:s.workspaceFiles.identity}),l.jsx(er,{title:"USER.md",content:s.workspaceFiles.user}),l.jsx(er,{title:"AGENTS.md",content:s.workspaceFiles.agents}),l.jsx(er,{title:"TOOLS.md",content:s.workspaceFiles.tools}),l.jsx(er,{title:"HEARTBEAT.md",content:s.workspaceFiles.heartbeat})]})]})]})}function av({profile:s}){const u=!!s.workspaceFiles.heartbeat,o=s.cronJobs.length>0;return u||o?l.jsxs("div",{className:"tasks-view",children:[u&&l.jsxs("div",{className:"profile-section",children:[l.jsx("div",{className:"profile-section__title",children:K.tasks.heartbeat}),l.jsx("div",{className:"profile-summary__content",children:s.workspaceFiles.heartbeat.replace(/^#\s*HEARTBEAT\.md\s*\n*/i,"").trim()})]}),o&&l.jsxs("div",{className:"profile-section",children:[l.jsx("div",{className:"profile-section__title",children:K.tasks.scheduledJobs}),l.jsx("div",{className:"profile-section__list",children:s.cronJobs.map((d,p)=>{var m;return l.jsxs("div",{className:"profile-section__list-item",children:[l.jsx("span",{children:d.name||d.task||d.id||`${K.tasks.jobPrefix} ${p+1}`}),d.schedule&&l.jsx("span",{className:"mono",style:{color:"var(--muted)",fontSize:11},children:typeof d.schedule=="string"?d.schedule:d.schedule.expr||JSON.stringify(d.schedule)}),d.enabled!==void 0&&l.jsx("span",{className:`chip ${d.enabled?"ok":"warn"}`,children:d.enabled?K.tasks.active:K.tasks.disabled}),((m=d.payload)==null?void 0:m.text)&&l.jsx("div",{style:{marginTop:4,fontSize:12,color:"var(--muted)"},children:d.payload.text})]},d.id||p)})})]})]}):l.jsxs("div",{className:"profile-section",children:[l.jsx("div",{className:"profile-section__title",children:K.tasks.title}),l.jsx("div",{className:"profile-summary__empty",children:K.tasks.empty})]})}function ov({profile:s,permissions:u}){const[o,f]=w.useState(null),d=new Map;for(const v of u){const g=v.category||K.permissions.unknown;let S=d.get(g);S||(S={category:g,perms:[],targets:new Set,totalCalls:0,lastSeen:v.lastSeen,accessPatterns:new Set},d.set(g,S)),S.perms.push(v),S.totalCalls+=v.callCount,v.accessPattern&&S.accessPatterns.add(v.accessPattern),v.lastSeen>S.lastSeen&&(S.lastSeen=v.lastSeen);for(const E of v.targetsJson||[])S.targets.add(E)}const p=[...d.values()].sort((v,g)=>g.totalCalls-v.totalCalls);if(p.length===0)return l.jsx("div",{className:"identities-view",children:l.jsxs("div",{className:"profile-section",children:[l.jsx("div",{className:"profile-section__title",children:K.identities.title}),l.jsx("div",{className:"profile-summary__empty",children:K.identities.empty})]})});const m=v=>K.identities.categories[v]||v.charAt(0).toUpperCase()+v.slice(1),N=v=>{const g=Date.now()-new Date(v).getTime(),S=Math.floor(g/6e4);if(S<1)return K.identities.justNow;if(S<60)return K.identities.minutesAgo(S);const E=Math.floor(S/60);return E<24?K.identities.hoursAgo(E):K.identities.daysAgo(Math.floor(E/24))};return l.jsx("div",{className:"identities-view",children:l.jsx("div",{className:"identity-grid",children:p.map(v=>{const g=o===v.category;return l.jsxs("div",{className:"identity-card",children:[l.jsxs("button",{className:"identity-card__header",onClick:()=>f(g?null:v.category),children:[l.jsxs("div",{className:"identity-card__title",children:[l.jsx("span",{className:"identity-card__name",children:m(v.category)}),l.jsx("span",{className:"identity-card__category mono",children:v.category})]}),l.jsx("span",{className:"identity-card__chevron",children:g?"▲":"▼"})]}),l.jsxs("div",{className:"identity-card__stats",children:[l.jsxs("div",{className:"identity-stat",children:[l.jsx("span",{className:"identity-stat__label",children:K.identities.stats.calls}),l.jsx("span",{className:"identity-stat__value",children:v.totalCalls})]}),l.jsxs("div",{className:"identity-stat",children:[l.jsx("span",{className:"identity-stat__label",children:K.identities.stats.tools}),l.jsx("span",{className:"identity-stat__value",children:v.perms.length})]}),l.jsxs("div",{className:"identity-stat",children:[l.jsx("span",{className:"identity-stat__label",children:K.identities.stats.targets}),l.jsx("span",{className:"identity-stat__value",children:v.targets.size})]}),l.jsxs("div",{className:"identity-stat",children:[l.jsx("span",{className:"identity-stat__label",children:K.identities.stats.lastSeen}),l.jsx("span",{className:"identity-stat__value",children:N(v.lastSeen)})]})]}),l.jsx("div",{className:"identity-card__pills",children:[...v.accessPatterns].map(S=>l.jsx("span",{className:`access-pill ${S}`,children:S},S))}),v.targets.size>0&&l.jsxs("div",{className:"identity-card__targets",children:[[...v.targets].slice(0,6).map(S=>l.jsx("span",{className:"chip",children:S},S)),v.targets.size>6&&l.jsxs("span",{className:"chip",style:{borderStyle:"dashed",color:"var(--muted)"},children:["+",v.targets.size-6]})]}),g&&l.jsx("div",{className:"identity-card__detail",children:l.jsxs("div",{className:"identity-detail__section",children:[l.jsx("div",{className:"identity-detail__heading",children:K.identities.toolsObserved}),l.jsx("div",{className:"identity-detail__tools",children:v.perms.map(S=>l.jsxs("div",{className:"identity-tool-row",children:[l.jsx("span",{className:"mono",children:S.toolName}),l.jsx("span",{className:`access-pill ${S.accessPattern}`,children:S.accessPattern}),l.jsx("span",{className:"identity-tool-row__count",children:K.identities.toolRowCount(S.callCount)})]},S.id))})]})})]},v.category)})})})}function uv({permissions:s,formatDate:u}){return s.length===0?l.jsxs("div",{className:"profile-section",children:[l.jsx("div",{className:"profile-section__title",children:K.permissions.title}),l.jsx("div",{className:"profile-summary__empty",children:K.permissions.empty})]}):l.jsxs("div",{className:"profile-section",children:[l.jsxs("div",{className:"profile-section__title",children:[K.permissions.title,l.jsx("span",{className:"profile-section__subtitle",children:K.permissions.subtitle})]}),l.jsx("div",{className:"perm-table-wrap",children:l.jsxs("table",{className:"perm-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{}),l.jsx("th",{className:"perm-th",children:K.permissions.table.tool}),l.jsx("th",{className:"perm-th",children:K.permissions.table.category}),l.jsx("th",{className:"perm-th",children:K.permissions.table.access}),l.jsx("th",{className:"perm-th",children:K.permissions.table.calls}),l.jsx("th",{className:"perm-th",children:K.permissions.table.targets}),l.jsx("th",{className:"perm-th",children:K.permissions.table.lastSeen})]})}),l.jsx("tbody",{children:s.map(o=>{const f=o.callCount===1,d=o.targetsJson||[];return l.jsxs("tr",{className:"perm-row",children:[l.jsx("td",{className:"perm-td",style:{width:28},children:f&&l.jsx("span",{className:"anomaly-dot",title:K.permissions.firstSeenTool})}),l.jsx("td",{className:"perm-td",children:l.jsx("span",{className:"mono",children:o.toolName})}),l.jsx("td",{className:"perm-td",children:l.jsx("span",{className:"chip",children:o.category||K.permissions.unknown})}),l.jsx("td",{className:"perm-td",children:l.jsx("span",{className:`access-pill ${o.accessPattern}`,children:o.accessPattern||K.permissions.unknown})}),l.jsx("td",{className:"perm-td perm-td--num",children:o.callCount}),l.jsx("td",{className:"perm-td",children:d.length>0?l.jsxs("span",{className:"perm-targets",children:[d.slice(0,3).map(p=>l.jsx("span",{className:"chip",children:p},p)),d.length>3&&l.jsxs("span",{className:"chip",style:{borderStyle:"dashed",color:"var(--muted)"},children:["+",d.length-3]})]}):l.jsx("span",{style:{color:"var(--muted)"},children:"—"})}),l.jsx("td",{className:"perm-td perm-td--date",children:u(o.lastSeen)})]},o.id)})})]})})]})}function cv(s){const u=new Date(s),f=new Date().getTime()-u.getTime(),d=Math.floor(f/6e4);if(d<1)return Be.time.justNow;if(d<60)return Be.time.minutesAgo(d);const p=Math.floor(d/60);if(p<24)return Be.time.hoursAgo(p);const m=Math.floor(p/24);return Be.time.daysAgo(m)}function dv(s){return new Date(s).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function fv(){const[s,u]=w.useState([]),[o,f]=w.useState(new Map),[d,p]=w.useState(!0),[m,N]=w.useState(""),[v,g]=w.useState("all");w.useEffect(()=>{let P=!1;return(async()=>{try{const[D,I,R]=await Promise.all([je.getAllObservations(200),je.listDiscoveryAgents(),je.listAgents()]);if(P)return;const L=I.success?I.data:[],H=R.success?R.data:[];f(mi(L,H)),D.success&&u(D.data)}catch{}finally{P||p(!1)}})(),()=>{P=!0}},[]);const S=w.useMemo(()=>{let P=s;if(v==="allowed"?P=P.filter(D=>!D.blocked):v==="blocked"&&(P=P.filter(D=>D.blocked)),m){const D=m.toLowerCase();P=P.filter(I=>{var R;return I.toolName.toLowerCase().includes(D)||(I.category||"").toLowerCase().includes(D)||(((R=o.get(I.agentId))==null?void 0:R.name)||I.agentId).toLowerCase().includes(D)})}return P},[s,m,v,o]),E=s.filter(P=>P.blocked).length,T=s.filter(P=>!P.blocked).length;return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"content-header",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"page-title",children:Be.title}),l.jsx("p",{className:"page-sub",children:Be.subtitle})]}),l.jsxs("div",{className:"page-meta",children:[l.jsxs("div",{className:"pill",children:[l.jsx("span",{className:"statusDot ok"}),l.jsx("span",{children:Be.summary.allowed(T)})]}),E>0&&l.jsxs("div",{className:"pill",children:[l.jsx("span",{className:"statusDot warn"}),l.jsx("span",{children:Be.summary.blocked(E)})]})]})]}),l.jsxs("div",{className:"filters",children:[l.jsx("div",{className:"field",style:{minWidth:260},children:l.jsx("input",{type:"text",placeholder:Be.searchPlaceholder,value:m,onChange:P=>N(P.target.value)})}),l.jsxs("div",{className:"filter-tabs",children:[l.jsx("button",{className:`filter-tab${v==="all"?" active":""}`,onClick:()=>g("all"),children:Be.filters.all}),l.jsx("button",{className:`filter-tab${v==="allowed"?" active":""}`,onClick:()=>g("allowed"),children:Be.filters.allowed}),l.jsx("button",{className:`filter-tab${v==="blocked"?" active":""}`,onClick:()=>g("blocked"),children:Be.filters.blocked})]})]}),d?l.jsx("div",{className:"card",children:l.jsx("div",{className:"card-sub",children:Be.loading})}):S.length===0?l.jsxs("div",{className:"card",children:[l.jsx("div",{className:"card-title",children:Be.empty.noActivityTitle}),l.jsx("div",{className:"card-sub",children:m||v!=="all"?Be.empty.adjustFilters:Be.empty.noActivityDescription})]}):l.jsx("div",{className:"timeline",children:S.map(P=>{const D=o.get(P.agentId);return l.jsxs("div",{className:`timeline-item${P.blocked?" timeline-item--blocked":""}`,children:[l.jsx("div",{className:"timeline-item__marker",children:l.jsx("span",{className:`timeline-dot${P.blocked?" blocked":" allowed"}`})}),l.jsxs("div",{className:"timeline-item__content",children:[l.jsxs("div",{className:"timeline-item__header",children:[l.jsx("span",{className:"timeline-item__tool mono",children:P.toolName}),l.jsx("span",{className:`timeline-item__status ${P.blocked?"blocked":"allowed"}`,children:P.blocked?Be.status.blocked:Be.status.allowed})]}),l.jsxs("div",{className:"timeline-item__meta",children:[l.jsxs("span",{className:"timeline-item__agent",children:[l.jsx("span",{children:(D==null?void 0:D.emoji)||"🤖"}),l.jsx("span",{children:(D==null?void 0:D.name)||P.agentId})]}),P.category&&l.jsx("span",{className:"chip",children:P.category}),P.accessPattern&&l.jsx("span",{className:`access-pill ${P.accessPattern}`,children:P.accessPattern})]}),P.error&&l.jsx("div",{className:"timeline-item__error",children:P.error}),!P.error&&P.blockReason&&l.jsx("div",{className:"timeline-item__error",children:P.blockReason})]}),l.jsxs("div",{className:"timeline-item__time",children:[l.jsx("span",{className:"timeline-item__timestamp",children:dv(P.timestamp)}),l.jsx("span",{className:"timeline-item__relative",children:cv(P.timestamp)})]})]},P.id)})})]})}const pv={S01:X.scanners.S01,S02:X.scanners.S02,S03:X.scanners.S03,S04:X.scanners.S04,S05:X.scanners.S05,S06:X.scanners.S06,S07:X.scanners.S07,S08:X.scanners.S08,S09:X.scanners.S09,S10:X.scanners.S10};function mv(s){return pv[s]||s}function hv(){const[s,u]=w.useState([]),[o,f]=w.useState(null),[d,p]=w.useState(new Map),[m,N]=w.useState(!0),[v,g]=w.useState("all");w.useEffect(()=>{let L=!1;return(async()=>{try{const[H,F,re,U]=await Promise.all([je.getDetections({limit:100,unsafe:!0}),je.getDetectionSummary(),je.listDiscoveryAgents(),je.listAgents()]);if(L)return;H.success&&u(H.data),F.success&&f(F.data);const Y=mi(re.success?re.data:[],U.success?U.data:[]);p(Y)}catch{}finally{L||N(!1)}})(),()=>{L=!0}},[]);const S=L=>L.sensitivityScore>=.8?{label:X.risk.critical,cls:"risk-critical"}:L.sensitivityScore>=.6?{label:X.risk.high,cls:"risk-high"}:L.sensitivityScore>=.4?{label:X.risk.medium,cls:"risk-medium"}:{label:X.risk.low,cls:"risk-low"},E=L=>L?new Date(L).toLocaleString():X.common.never,T=L=>{if(!L)return X.common.unknownAgent;const H=d.get(L);return H?`${H.emoji} ${H.name}`:L.slice(0,8)},P=s.some(L=>{var H;return(H=L.findings)==null?void 0:H.some(F=>F.scanner==="quota"&&F.name==="quota_exceeded")}),D=s.filter(L=>v==="static"?L.scanType==="static":v==="dynamic"?L.scanType==="dynamic"||!L.scanType:!0),I=s.filter(L=>L.scanType==="static").length,R=s.filter(L=>L.scanType==="dynamic"||!L.scanType).length;return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"content-header",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"page-title",children:X.title}),l.jsx("p",{className:"page-sub",children:X.subtitle})]}),l.jsx("div",{className:"page-meta",children:o&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"pill",children:[l.jsx("span",{className:"statusDot ok"}),l.jsx("span",{children:X.summary.safe(o.safe)})]}),l.jsxs("div",{className:"pill",children:[l.jsx("span",{className:`statusDot ${o.unsafe>0?"warn":"ok"}`}),l.jsx("span",{children:X.summary.risk(o.unsafe)})]})]})})]}),l.jsxs("div",{style:{display:"flex",gap:"8px",marginBottom:"16px"},children:[l.jsxs("button",{onClick:()=>g("all"),className:`pill ${v==="all"?"active":""}`,style:{background:v==="all"?"var(--accent)":"var(--bg2)",color:v==="all"?"#fff":"var(--fg)",cursor:"pointer",border:"none"},children:[X.tabs.all," (",s.length,")"]}),l.jsxs("button",{onClick:()=>g("static"),className:`pill ${v==="static"?"active":""}`,style:{background:v==="static"?"var(--accent)":"var(--bg2)",color:v==="static"?"#fff":"var(--fg)",cursor:"pointer",border:"none"},children:[X.tabs.staticScans," (",I,")"]}),l.jsxs("button",{onClick:()=>g("dynamic"),className:`pill ${v==="dynamic"?"active":""}`,style:{background:v==="dynamic"?"var(--accent)":"var(--bg2)",color:v==="dynamic"?"#fff":"var(--fg)",cursor:"pointer",border:"none"},children:[X.tabs.runtimeDetections," (",R,")"]})]}),P&&l.jsxs("div",{className:"card",style:{background:"#fef3c7",borderColor:"#f59e0b",marginBottom:"16px"},children:[l.jsx("div",{className:"card-title",style:{color:"#92400e"},children:X.quota.title}),l.jsxs("div",{className:"card-sub",style:{color:"#78350f"},children:[X.quota.description,l.jsx("br",{}),l.jsx("a",{href:"https://changewayguard.com/pricing",target:"_blank",rel:"noopener noreferrer",style:{color:"#d97706",fontWeight:600},children:X.quota.upgrade})]})]}),m?l.jsx("div",{className:"card",children:l.jsx("div",{className:"card-sub",children:X.loading})}):D.length===0?l.jsxs("div",{className:"card",children:[l.jsx("div",{className:"card-title",children:X.empty.noRiskTitle}),l.jsx("div",{className:"card-sub",children:v==="all"?X.empty.all:v==="static"?X.empty.static:X.empty.dynamic})]}):l.jsx("div",{className:"risk-table-wrap",children:l.jsxs("table",{className:"perm-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{className:"perm-th",children:X.table.risk}),l.jsx("th",{className:"perm-th",children:v==="static"?X.table.fileOrAgent:X.table.agent}),l.jsx("th",{className:"perm-th",children:X.table.categories}),l.jsx("th",{className:"perm-th",children:X.table.findings}),l.jsx("th",{className:"perm-th",children:X.table.detected})]})}),l.jsx("tbody",{children:D.map(L=>{var F;const H=S(L);return l.jsxs("tr",{className:"perm-row",children:[l.jsx("td",{className:"perm-td",children:l.jsx("span",{className:`access-pill ${H.cls}`,children:H.label})}),l.jsx("td",{className:"perm-td",children:L.scanType==="static"&&L.filePath?l.jsxs("div",{children:[l.jsx("div",{style:{fontWeight:500},children:L.filePath}),l.jsxs("div",{style:{fontSize:"0.85em",color:"var(--fg3)",marginTop:"2px"},children:[L.fileType?`[${L.fileType}] `:"",T(L.agentId)]})]}):l.jsx("span",{children:T(L.agentId)})}),l.jsx("td",{className:"perm-td",children:L.categories.length>0?L.categories.map((re,U)=>l.jsx("span",{className:"chip",style:{marginRight:4},children:mv(re)},U)):l.jsx("span",{className:"chip",children:X.table.unknown})}),l.jsx("td",{className:"perm-td",children:((F=L.findings)==null?void 0:F.length)>0?l.jsx("span",{title:L.findings.map(re=>`${re.scanner}: ${re.name}`).join(", "),children:X.table.finding(L.findings.length)}):l.jsx("span",{children:"-"})}),l.jsx("td",{className:"perm-td perm-td--date",children:E(L.createdAt)})]},L.id)})})]})})]})}function vv(){const[s,u]=w.useState([]),[o,f]=w.useState(!0),[d,p]=w.useState(null);return w.useEffect(()=>{let m=!1;return(async()=>{try{const N=await je.getSecurityReport();if(m)return;N.success&&u(N.data)}catch{}finally{m||f(!1)}})(),()=>{m=!0}},[]),w.useEffect(()=>{if(!d)return;const m=N=>{N.key==="Escape"&&p(null)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[d]),l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"content-header",children:l.jsxs("div",{children:[l.jsx("h1",{className:"page-title",children:X.inspection.title}),l.jsx("p",{className:"page-sub",children:X.inspection.subtitle})]})}),o?l.jsx("div",{className:"card",children:l.jsx("div",{className:"card-sub",children:X.loading})}):l.jsx("div",{className:"perm-table-wrap",children:l.jsxs("table",{className:"perm-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{className:"perm-th",children:X.inspection.table.item}),l.jsx("th",{className:"perm-th",children:X.inspection.table.result}),l.jsx("th",{className:"perm-th",children:X.inspection.table.detail})]})}),l.jsx("tbody",{children:s.length===0?l.jsx("tr",{className:"perm-row",children:l.jsx("td",{className:"perm-td",colSpan:3,children:X.inspection.empty})}):s.map((m,N)=>l.jsxs("tr",{className:"perm-row",children:[l.jsx("td",{className:"perm-td",children:m.item||"-"}),l.jsx("td",{className:"perm-td",children:m.brief||"-"}),l.jsx("td",{className:"perm-td",children:l.jsx("button",{type:"button",className:"btn btn--sm",onClick:()=>p(m),children:X.inspection.detailButton})})]},`${m.item}-${N}`))})]})}),d&&l.jsx("div",{className:"inspection-modal-overlay",role:"presentation",onClick:()=>p(null),children:l.jsxs("div",{className:"inspection-modal",role:"dialog","aria-modal":"true","aria-label":X.inspection.modalTitle,onClick:m=>m.stopPropagation(),children:[l.jsxs("div",{className:"inspection-modal__header",children:[l.jsx("h3",{children:X.inspection.modalTitle}),l.jsx("button",{type:"button",className:"btn btn--sm",onClick:()=>p(null),children:X.inspection.close})]}),l.jsxs("div",{className:"inspection-modal__meta",children:[l.jsxs("div",{children:[l.jsxs("strong",{children:[X.inspection.table.item,":"]}),d.item||"-"]}),l.jsxs("div",{children:[l.jsxs("strong",{children:[X.inspection.table.result,":"]}),d.brief||"-"]})]}),l.jsx("pre",{className:"inspection-modal__content",children:d.detail||X.inspection.noDetail})]})})]})}const ga=["S07","S08","S09"],bc={S07:ce.scanners.S07.name,S08:ce.scanners.S08.name,S09:ce.scanners.S09.name},yv={S07:ce.scanners.S07.description,S08:ce.scanners.S08.description,S09:ce.scanners.S09.description};function gv(s){const u=new Date(s),f=new Date().getTime()-u.getTime(),d=Math.floor(f/6e4);if(d<1)return ce.time.justNow;if(d<60)return ce.time.minutesAgo(d);const p=Math.floor(d/60);if(p<24)return ce.time.hoursAgo(p);const m=Math.floor(p/24);return ce.time.daysAgo(m)}function xv(){const[s,u]=w.useState([]),[o,f]=w.useState(new Map),[d,p]=w.useState(!0);w.useEffect(()=>{let g=!1;return(async()=>{try{const[S,E,T]=await Promise.all([je.getDetections({limit:200}),je.listDiscoveryAgents(),je.listAgents()]);if(g)return;if(S.success){const D=S.data.filter(I=>I.categories.some(R=>ga.includes(R)));u(D)}const P=mi(E.success?E.data:[],T.success?T.data:[]);f(P)}catch{}finally{g||p(!1)}})(),()=>{g=!0}},[]);const m=[{type:"api_key",label:ce.items.apiKeys.label,icon:l.jsx(xd,{size:20}),count:s.filter(g=>g.categories.includes("S08")).length,description:ce.items.apiKeys.description},{type:"env_file",label:ce.items.envFiles.label,icon:l.jsx(Rh,{size:20}),count:s.filter(g=>{var S;return(S=g.findings)==null?void 0:S.some(E=>{var T;return(T=E.matchedText)==null?void 0:T.includes(".env")})}).length,description:ce.items.envFiles.description},{type:"ssh_key",label:ce.items.sshKeys.label,icon:l.jsx(Ah,{size:20}),count:s.filter(g=>{var S;return(S=g.findings)==null?void 0:S.some(E=>{var T,P;return((T=E.matchedText)==null?void 0:T.includes("ssh"))||((P=E.name)==null?void 0:P.toLowerCase().includes("ssh"))})}).length,description:ce.items.sshKeys.description},{type:"pii",label:ce.items.piiData.label,icon:l.jsx(wd,{size:20}),count:s.filter(g=>g.categories.includes("S07")).length,description:ce.items.piiData.description}],N=g=>{if(!g)return ce.common.unknownAgent;const S=o.get(g);return S?`${S.emoji} ${S.name}`:g.slice(0,8)},v=g=>g.sensitivityScore>=.8?{label:ce.risk.critical,cls:"risk-critical"}:g.sensitivityScore>=.6?{label:ce.risk.high,cls:"risk-high"}:g.sensitivityScore>=.4?{label:ce.risk.medium,cls:"risk-medium"}:{label:ce.risk.low,cls:"risk-low"};return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"content-header",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"page-title",children:ce.title}),l.jsx("p",{className:"page-sub",children:ce.subtitle})]}),l.jsx("div",{className:"page-meta",children:l.jsxs("div",{className:"pill",children:[l.jsx("span",{className:`statusDot ${s.length>0?"warn":"ok"}`}),l.jsx("span",{children:ce.summary.detections(s.length)})]})})]}),d?l.jsx("div",{className:"card",children:l.jsx("div",{className:"card-sub",children:ce.loading})}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"secrets-grid",children:m.map(g=>l.jsxs("div",{className:"secrets-card",children:[l.jsx("div",{className:"secrets-card__icon",children:g.icon}),l.jsxs("div",{className:"secrets-card__content",children:[l.jsx("div",{className:"secrets-card__label",children:g.label}),l.jsx("div",{className:"secrets-card__description",children:g.description})]}),l.jsx("div",{className:"secrets-card__count",children:g.count>0?l.jsx("span",{className:"secrets-card__badge warn",children:g.count}):l.jsx("span",{className:"secrets-card__badge ok",children:"0"})})]},g.type))}),l.jsxs("div",{className:"secrets-section",children:[l.jsx("h2",{className:"secrets-section__title",children:ce.sections.protectionCategories}),l.jsx("div",{className:"scanner-list",children:ga.map(g=>{const S=s.filter(E=>E.categories.includes(g)).length;return l.jsxs("div",{className:"scanner-item",children:[l.jsxs("div",{className:"scanner-item__header",children:[l.jsx("span",{className:"scanner-item__id mono",children:g}),l.jsx("span",{className:"scanner-item__name",children:bc[g]})]}),l.jsx("div",{className:"scanner-item__description",children:yv[g]}),l.jsx("div",{className:"scanner-item__count",children:ce.scanners.detections(S)})]},g)})})]}),l.jsxs("div",{className:"secrets-section",children:[l.jsx("h2",{className:"secrets-section__title",children:ce.sections.recentDetections}),s.length===0?l.jsxs("div",{className:"card",children:[l.jsx("div",{className:"card-title",children:ce.empty.title}),l.jsx("div",{className:"card-sub",children:ce.empty.description})]}):l.jsx("div",{className:"detections-list",children:s.slice(0,10).map(g=>{const S=v(g);return l.jsxs("div",{className:"detection-item",children:[l.jsx("div",{className:"detection-item__risk",children:l.jsx("span",{className:`access-pill ${S.cls}`,children:S.label})}),l.jsxs("div",{className:"detection-item__content",children:[l.jsx("div",{className:"detection-item__agent",children:N(g.agentId)}),l.jsx("div",{className:"detection-item__categories",children:g.categories.filter(E=>ga.includes(E)).map((E,T)=>l.jsx("span",{className:"chip",children:bc[E]},T))}),g.findings&&g.findings.length>0&&l.jsxs("div",{className:"detection-item__findings",children:[g.findings.slice(0,2).map((E,T)=>l.jsx("span",{className:"detection-finding",children:E.name},T)),g.findings.length>2&&l.jsx("span",{className:"detection-finding more",children:ce.findings.more(g.findings.length-2)})]})]}),l.jsx("div",{className:"detection-item__time",children:gv(g.createdAt)})]},g.id)})})]})]})]})}function wv(){const[s,u]=w.useState(null),[o,f]=w.useState(null),[d,p]=w.useState(null),[m,N]=w.useState([]),[v,g]=w.useState(null),[S,E]=w.useState(!0),[T,P]=w.useState(null),[D,I]=w.useState("status");return w.useEffect(()=>{let R=!1;async function L(){try{const[F,re,U,Y,ie]=await Promise.all([je.getGatewayStatus(),je.getGatewayConfig(),je.getGatewayHealth(),je.getGatewayActivity({limit:50}),je.getGatewayActivityStats()]);if(R)return;F.success&&u(F.data),re.success&&f(re.data),U.success&&p(U.data),Y.success&&N(Y.data),ie.success&&g(ie.data)}catch(F){R||P(F instanceof Error?F.message:"加载网关数据失败")}finally{R||E(!1)}}L();const H=setInterval(L,1e4);return()=>{R=!0,clearInterval(H)}},[]),S?l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"content-header",children:[l.jsx("h1",{className:"page-title",children:te.title}),l.jsx("p",{className:"page-sub",children:te.subtitle})]}),l.jsx("div",{className:"card",children:te.loading})]}):T?l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"content-header",children:[l.jsx("h1",{className:"page-title",children:te.title}),l.jsx("p",{className:"page-sub",children:te.subtitle})]}),l.jsxs("div",{className:"card",style:{color:"#dc2626"},children:[te.errorPrefix,T]})]}):l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"content-header",children:[l.jsx("h1",{className:"page-title",children:te.title}),l.jsx("p",{className:"page-sub",children:te.subtitle})]}),l.jsxs("div",{style:{display:"flex",gap:"8px",marginBottom:"20px"},children:[l.jsx("button",{onClick:()=>I("status"),style:{padding:"8px 16px",border:"none",borderRadius:"8px",cursor:"pointer",background:D==="status"?"#3b82f6":"#f1f5f9",color:D==="status"?"white":"#64748b",fontWeight:500},children:te.tabs.status}),l.jsxs("button",{onClick:()=>I("activity"),style:{padding:"8px 16px",border:"none",borderRadius:"8px",cursor:"pointer",background:D==="activity"?"#3b82f6":"#f1f5f9",color:D==="activity"?"white":"#64748b",fontWeight:500},children:[te.tabs.activity," ",m.length>0&&`(${m.length})`]})]}),D==="activity"&&l.jsxs(l.Fragment,{children:[v&&l.jsxs("div",{className:"stat-grid",children:[l.jsxs("div",{className:"stat-card",children:[l.jsx("div",{className:"stat-card__icon",style:{background:"#dcfce7"},children:l.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#16a34a",strokeWidth:"2",children:l.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})})}),l.jsxs("div",{className:"stat-card__content",children:[l.jsx("div",{className:"stat-card__label",children:te.activity.sanitizations24h}),l.jsx("div",{className:"stat-card__value",children:v.last24Hours.sanitizeCount})]})]}),l.jsxs("div",{className:"stat-card",children:[l.jsx("div",{className:"stat-card__icon",style:{background:"#dbeafe"},children:l.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#2563eb",strokeWidth:"2",children:[l.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),l.jsx("polyline",{points:"7 10 12 15 17 10"}),l.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}),l.jsxs("div",{className:"stat-card__content",children:[l.jsx("div",{className:"stat-card__label",children:te.activity.restorations24h}),l.jsx("div",{className:"stat-card__value",children:v.last24Hours.restoreCount})]})]}),l.jsxs("div",{className:"stat-card",children:[l.jsx("div",{className:"stat-card__icon",style:{background:"#fef3c7"},children:l.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#ca8a04",strokeWidth:"2",children:l.jsx("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})})}),l.jsxs("div",{className:"stat-card__content",children:[l.jsx("div",{className:"stat-card__label",children:te.activity.redactions24h}),l.jsx("div",{className:"stat-card__value",children:v.last24Hours.totalRedactions})]})]}),l.jsxs("div",{className:"stat-card",children:[l.jsx("div",{className:"stat-card__icon",style:{background:"#f3e8ff"},children:l.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#9333ea",strokeWidth:"2",children:[l.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),l.jsx("path",{d:"M3 9h18"}),l.jsx("path",{d:"M9 21V9"})]})}),l.jsxs("div",{className:"stat-card__content",children:[l.jsx("div",{className:"stat-card__label",children:te.activity.totalRedactions}),l.jsx("div",{className:"stat-card__value",children:v.allTime.totalRedactions})]})]})]}),v&&Object.keys(v.allTime.categories).length>0&&l.jsxs("div",{className:"card",style:{marginTop:"20px"},children:[l.jsx("h3",{style:{marginBottom:"12px",fontSize:"1rem",fontWeight:600},children:te.activity.redactionCategories}),l.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:Object.entries(v.allTime.categories).map(([R,L])=>l.jsxs("span",{style:{background:"#f1f5f9",padding:"4px 12px",borderRadius:"16px",fontSize:"0.85rem"},children:[l.jsx("strong",{children:R}),": ",L]},R))})]}),l.jsxs("div",{className:"card",style:{marginTop:"20px"},children:[l.jsx("h3",{style:{marginBottom:"12px",fontSize:"1rem",fontWeight:600},children:te.activity.recentActivity}),m.length===0?l.jsx("p",{style:{color:"#94a3b8"},children:te.activity.noActivity}):l.jsx("div",{className:"table-container",children:l.jsxs("table",{className:"data-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:te.activity.table.time}),l.jsx("th",{children:te.activity.table.type}),l.jsx("th",{children:te.activity.table.backend}),l.jsx("th",{children:te.activity.table.model}),l.jsx("th",{children:te.activity.table.redactions}),l.jsx("th",{children:te.activity.table.categories})]})}),l.jsx("tbody",{children:m.map(R=>l.jsxs("tr",{children:[l.jsx("td",{style:{fontFamily:"monospace",fontSize:"0.8rem"},children:new Date(R.timestamp).toLocaleString()}),l.jsx("td",{children:l.jsx("span",{style:{background:R.type==="sanitize"?"#dcfce7":"#dbeafe",color:R.type==="sanitize"?"#166534":"#1e40af",padding:"2px 8px",borderRadius:"4px",fontSize:"0.8rem",fontWeight:500},children:R.type==="sanitize"?te.activity.typeLabels.sanitize:R.type==="restore"?te.activity.typeLabels.restore:R.type})}),l.jsx("td",{children:R.backend}),l.jsx("td",{style:{fontSize:"0.85rem",color:"#64748b"},children:R.model||te.activity.table.empty}),l.jsx("td",{children:R.redactionCount}),l.jsxs("td",{style:{fontSize:"0.8rem"},children:[Object.entries(R.categories||{}).map(([L,H])=>l.jsxs("span",{style:{marginRight:"6px"},children:[L,": ",H]},L)),Object.keys(R.categories||{}).length===0&&te.activity.table.empty]})]},R.id))})]})})]})]}),D==="status"&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"stat-grid",children:[l.jsxs("div",{className:"stat-card",children:[l.jsx("div",{className:"stat-card__icon",style:{background:s!=null&&s.enabled?"#dcfce7":"#fee2e2"},children:s!=null&&s.enabled?l.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#16a34a",strokeWidth:"2",children:[l.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),l.jsx("path",{d:"M9 12l2 2 4-4"})]}):l.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#dc2626",strokeWidth:"2",children:[l.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),l.jsx("line",{x1:"4",y1:"4",x2:"20",y2:"20"})]})}),l.jsxs("div",{className:"stat-card__content",children:[l.jsx("div",{className:"stat-card__label",children:te.status.status}),l.jsx("div",{className:"stat-card__value",style:{color:s!=null&&s.enabled?"#16a34a":"#dc2626"},children:s!=null&&s.enabled?te.status.enabled:te.status.disabled})]})]}),l.jsxs("div",{className:"stat-card",children:[l.jsx("div",{className:"stat-card__icon",style:{background:d!=null&&d.healthy?"#dcfce7":"#fee2e2"},children:d!=null&&d.healthy?l.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#16a34a",strokeWidth:"2",children:[l.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),l.jsx("path",{d:"M22 4L12 14.01l-3-3"})]}):l.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#dc2626",strokeWidth:"2",children:[l.jsx("circle",{cx:"12",cy:"12",r:"10"}),l.jsx("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),l.jsx("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]})}),l.jsxs("div",{className:"stat-card__content",children:[l.jsx("div",{className:"stat-card__label",children:te.status.health}),l.jsx("div",{className:"stat-card__value",children:d!=null&&d.healthy?te.status.healthy:(d==null?void 0:d.error)||te.status.unhealthy})]})]}),l.jsxs("div",{className:"stat-card",children:[l.jsx("div",{className:"stat-card__icon",style:{background:"#dbeafe"},children:l.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#2563eb",strokeWidth:"2",children:[l.jsx("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),l.jsx("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),l.jsx("line",{x1:"12",y1:"17",x2:"12",y2:"21"})]})}),l.jsxs("div",{className:"stat-card__content",children:[l.jsx("div",{className:"stat-card__label",children:te.status.endpoint}),l.jsx("div",{className:"stat-card__value",style:{fontSize:"0.9rem"},children:(s==null?void 0:s.url)||`http://127.0.0.1:${(o==null?void 0:o.port)||53669}`})]})]})]}),!(s!=null&&s.enabled)&&l.jsxs("div",{className:"card",style:{marginTop:"20px"},children:[l.jsx("h3",{style:{marginBottom:"12px",fontSize:"1rem",fontWeight:600},children:te.enableGuide.title}),l.jsx("p",{style:{color:"#64748b",marginBottom:"12px"},children:te.enableGuide.description}),l.jsx("div",{style:{background:"#f8fafc",borderRadius:"8px",padding:"12px",fontFamily:"monospace"},children:l.jsx("code",{children:te.enableGuide.command})}),l.jsx("p",{style:{color:"#94a3b8",fontSize:"0.85rem",marginTop:"12px"},children:te.enableGuide.hint})]}),(s==null?void 0:s.enabled)&&s.agents.length>0&&l.jsxs("div",{className:"card",style:{marginTop:"20px"},children:[l.jsx("h3",{style:{marginBottom:"12px",fontSize:"1rem",fontWeight:600},children:te.sections.protectedAgents}),l.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:s.agents.map(R=>l.jsx("span",{style:{background:"#dcfce7",color:"#166534",padding:"4px 12px",borderRadius:"16px",fontSize:"0.85rem",fontWeight:500},children:R},R))})]}),(o==null?void 0:o.configured)&&Object.keys(o.backends).length>0&&l.jsxs("div",{className:"card",style:{marginTop:"20px"},children:[l.jsx("h3",{style:{marginBottom:"12px",fontSize:"1rem",fontWeight:600},children:te.sections.configuredBackends}),l.jsx("div",{className:"table-container",children:l.jsxs("table",{className:"data-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:te.backendTable.backend}),l.jsx("th",{children:te.backendTable.baseUrl}),l.jsx("th",{children:te.backendTable.apiKey})]})}),l.jsx("tbody",{children:Object.entries(o.backends).map(([R,L])=>l.jsxs("tr",{children:[l.jsx("td",{children:l.jsx("span",{style:{background:"#f1f5f9",padding:"2px 8px",borderRadius:"4px",fontWeight:500},children:R})}),l.jsx("td",{style:{fontFamily:"monospace",fontSize:"0.85rem"},children:L.baseUrl}),l.jsx("td",{children:L.hasApiKey?l.jsx("span",{style:{color:"#16a34a"},children:te.backendTable.configured}):l.jsx("span",{style:{color:"#dc2626"},children:te.backendTable.missing})})]},R))})]})})]}),(s==null?void 0:s.enabled)&&s.providers.length>0&&l.jsxs("div",{className:"card",style:{marginTop:"20px"},children:[l.jsx("h3",{style:{marginBottom:"12px",fontSize:"1rem",fontWeight:600},children:te.sections.protectedProviders}),l.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:s.providers.map(R=>l.jsx("span",{style:{background:"#dbeafe",color:"#1e40af",padding:"4px 12px",borderRadius:"16px",fontSize:"0.85rem",fontWeight:500},children:R},R))})]}),l.jsxs("div",{className:"card",style:{marginTop:"20px"},children:[l.jsx("h3",{style:{marginBottom:"12px",fontSize:"1rem",fontWeight:600},children:te.sections.dataProtection}),l.jsx("p",{style:{color:"#64748b",marginBottom:"16px"},children:te.dataProtection.description}),l.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"12px"},children:te.dataProtection.types.map(R=>l.jsxs("div",{style:{background:"#f8fafc",padding:"12px",borderRadius:"8px"},children:[l.jsx("div",{style:{fontWeight:500,marginBottom:"4px"},children:R.type}),l.jsx("div",{style:{fontSize:"0.8rem",fontFamily:"monospace",color:"#64748b"},children:R.example})]},R.type))})]})]})]})}function Sv(){return l.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",background:"#f8fafc",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"},children:l.jsxs("div",{style:{background:"white",borderRadius:"12px",padding:"40px",boxShadow:"0 1px 3px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.05)",maxWidth:"440px",textAlign:"center"},children:[l.jsx("h2",{style:{fontSize:"1.4rem",fontWeight:700,marginBottom:"12px",color:"#dc2626"},children:"No Session"}),l.jsxs("p",{style:{color:"#64748b",fontSize:"0.95rem",marginBottom:"20px",lineHeight:1.5},children:["Dashboard requires a valid session token.",l.jsx("br",{}),l.jsx("br",{}),"Run ",l.jsx("code",{style:{background:"#f1f5f9",padding:"2px 6px",borderRadius:"4px"},children:"/og_dashboard"})," to get the access URL."]})]})})}function jv({children:s}){const{authenticated:u,loading:o}=md();return o?null:u?l.jsx(l.Fragment,{children:s}):l.jsx(Sv,{})}function kv(){return l.jsx(Cm,{children:l.jsxs(Me,{path:"/",element:l.jsx(jv,{children:l.jsx(bh,{})}),children:[l.jsx(Me,{index:!0,element:l.jsx(Rt,{to:"/overview",replace:!0})}),l.jsx(Me,{path:"overview",element:l.jsx(Jh,{})}),l.jsx(Me,{path:"agents",element:l.jsx(Xh,{})}),l.jsx(Me,{path:"agents/:id",element:l.jsx(iv,{})}),l.jsx(Me,{path:"activity",element:l.jsx(fv,{})}),l.jsx(Me,{path:"security",element:l.jsx(hv,{})}),l.jsx(Me,{path:"security-inspection",element:l.jsx(vv,{})}),l.jsx(Me,{path:"gateway",element:l.jsx(wv,{})}),l.jsx(Me,{path:"secrets",element:l.jsx(xv,{})}),l.jsx(Me,{path:"settings",element:l.jsx(Rt,{to:"/overview",replace:!0})}),l.jsx(Me,{path:"inventory/agents",element:l.jsx(Rt,{to:"/agents",replace:!0})}),l.jsx(Me,{path:"inventory/agents/:id",element:l.jsx(Rt,{to:"/agents/:id",replace:!0})}),l.jsx(Me,{path:"inventory/permissions",element:l.jsx(Rt,{to:"/activity",replace:!0})}),l.jsx(Me,{path:"inventory/identities",element:l.jsx(Rt,{to:"/agents",replace:!0})}),l.jsx(Me,{path:"inventory/*",element:l.jsx(Rt,{to:"/agents",replace:!0})}),l.jsx(Me,{path:"secure/risk",element:l.jsx(Rt,{to:"/security",replace:!0})}),l.jsx(Me,{path:"secure/graph",element:l.jsx(Rt,{to:"/agents",replace:!0})}),l.jsx(Me,{path:"secure/*",element:l.jsx(Rt,{to:"/security",replace:!0})}),l.jsx(Me,{path:"discovery/*",element:l.jsx(Rt,{to:"/agents",replace:!0})})]})})}const Nv="og_session_token",_v=new URLSearchParams(window.location.search),Qc=_v.get("token");Qc&&localStorage.setItem(Nv,Qc);Ep.createRoot(document.getElementById("root")).render(l.jsx(w.StrictMode,{children:l.jsx(Xm,{basename:"/dashboard",children:l.jsx(ch,{children:l.jsx(oh,{children:l.jsx(kv,{})})})})}));
|