genaicode 0.8.1 → 0.8.3
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/README.md +0 -1
- package/dist/ai-service/ai-studio.d.ts.map +1 -0
- package/dist/ai-service/ai-studio.js +9 -9
- package/dist/ai-service/ai-studio.js.map +1 -1
- package/dist/ai-service/anthropic.d.ts.map +1 -0
- package/dist/ai-service/anthropic.js +171 -162
- package/dist/ai-service/anthropic.js.map +1 -1
- package/dist/ai-service/chat-gpt.d.ts.map +1 -0
- package/dist/ai-service/chat-gpt.js +16 -8
- package/dist/ai-service/chat-gpt.js.map +1 -1
- package/dist/ai-service/common.d.ts.map +1 -0
- package/dist/ai-service/dall-e.d.ts.map +1 -0
- package/dist/ai-service/service-configurations.d.ts +30 -0
- package/dist/ai-service/service-configurations.js +116 -0
- package/dist/ai-service/service-configurations.js.map +1 -0
- package/dist/ai-service/unescape-function-call.d.ts.map +1 -0
- package/dist/ai-service/vertex-ai-claude.d.ts.map +1 -0
- package/dist/ai-service/vertex-ai-claude.js +9 -10
- package/dist/ai-service/vertex-ai-claude.js.map +1 -1
- package/dist/ai-service/vertex-ai-imagen.d.ts.map +1 -0
- package/dist/ai-service/vertex-ai.d.ts.map +1 -0
- package/dist/ai-service/vertex-ai.js +161 -146
- package/dist/ai-service/vertex-ai.js.map +1 -1
- package/dist/cli/cli-options.d.ts.map +1 -0
- package/dist/cli/cli-options.js +0 -4
- package/dist/cli/cli-options.js.map +1 -1
- package/dist/cli/cli-params.d.ts +0 -1
- package/dist/cli/cli-params.d.ts.map +1 -0
- package/dist/cli/cli-params.js +0 -1
- package/dist/cli/cli-params.js.map +1 -1
- package/dist/cli/service-autodetect.d.ts.map +1 -0
- package/dist/cli/validate-cli-params.d.ts.map +1 -0
- package/dist/cli/validate-cli-params.js +0 -1
- package/dist/cli/validate-cli-params.js.map +1 -1
- package/dist/eval/data/current-prompt.d.ts +93 -0
- package/dist/eval/data/current-prompt.js +239 -29
- package/dist/eval/data/current-prompt.js.map +1 -1
- package/dist/eval/prompt-debug.test.js +20 -3
- package/dist/eval/prompt-debug.test.js.map +1 -1
- package/dist/files/cache-file.d.ts.map +1 -0
- package/dist/files/file-utils.d.ts.map +1 -0
- package/dist/files/find-files.d.ts.map +1 -0
- package/dist/files/path-utils.d.ts.map +1 -0
- package/dist/files/read-files.d.ts.map +1 -0
- package/dist/files/search-files.d.ts +53 -0
- package/dist/files/search-files.d.ts.map +1 -0
- package/dist/files/search-files.js +97 -0
- package/dist/files/search-files.js.map +1 -0
- package/dist/files/source-code-tree.d.ts.map +1 -0
- package/dist/files/temp-buffer.d.ts.map +1 -0
- package/dist/files/update-files.d.ts.map +1 -0
- package/dist/images/ensure-alpha.d.ts.map +1 -0
- package/dist/images/imgly-remove-background.d.ts.map +1 -0
- package/dist/images/resize-image.d.ts.map +1 -0
- package/dist/images/split-image.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/main/codegen-non-interactive.d.ts +2 -0
- package/dist/main/codegen-non-interactive.d.ts.map +1 -0
- package/dist/main/codegen-non-interactive.js +20 -0
- package/dist/main/codegen-non-interactive.js.map +1 -0
- package/dist/main/codegen-types.d.ts +5 -2
- package/dist/main/codegen-types.d.ts.map +1 -0
- package/dist/main/codegen-utils.d.ts.map +1 -0
- package/dist/main/codegen.d.ts +4 -2
- package/dist/main/codegen.d.ts.map +1 -0
- package/dist/main/codegen.js +6 -85
- package/dist/main/codegen.js.map +1 -1
- package/dist/main/codegen.test-utils.d.ts +0 -1
- package/dist/main/codegen.test-utils.d.ts.map +1 -0
- package/dist/main/codegen.test-utils.js +0 -1
- package/dist/main/codegen.test-utils.js.map +1 -1
- package/dist/main/common/content-bus-types.d.ts +4 -1
- package/dist/main/common/content-bus-types.d.ts.map +1 -0
- package/dist/main/common/content-bus-types.js +1 -0
- package/dist/main/common/content-bus-types.js.map +1 -1
- package/dist/main/common/content-bus.d.ts +3 -1
- package/dist/main/common/content-bus.d.ts.map +1 -0
- package/dist/main/common/content-bus.js +16 -2
- package/dist/main/common/content-bus.js.map +1 -1
- package/dist/main/common/cost-collector.d.ts.map +1 -0
- package/dist/main/common/user-actions.d.ts.map +1 -0
- package/dist/main/config-lib.d.ts.map +1 -0
- package/dist/main/config.d.ts.map +1 -0
- package/dist/main/interactive/codegen-interactive.d.ts.map +1 -0
- package/dist/main/interactive/codegen-worker.d.ts.map +1 -0
- package/dist/main/interactive/common.d.ts.map +1 -0
- package/dist/main/interactive/configure.d.ts.map +1 -0
- package/dist/main/interactive/configure.js +0 -2
- package/dist/main/interactive/configure.js.map +1 -1
- package/dist/main/interactive/error-handling.d.ts.map +1 -0
- package/dist/main/interactive/help.d.ts.map +1 -0
- package/dist/main/interactive/select-ai-service.d.ts.map +1 -0
- package/dist/main/interactive/task-file.d.ts.map +1 -0
- package/dist/main/interactive/text-prompt.d.ts.map +1 -0
- package/dist/main/interactive/user-action-handlers.d.ts.map +1 -0
- package/dist/main/interactive/user-interrupt.d.ts.map +1 -0
- package/dist/main/plugin-loader.d.ts +5 -1
- package/dist/main/plugin-loader.d.ts.map +1 -0
- package/dist/main/plugin-loader.js.map +1 -1
- package/dist/main/ui/backend/api-utils.d.ts.map +1 -0
- package/dist/main/ui/backend/api.d.ts.map +1 -0
- package/dist/main/ui/backend/api.js +114 -0
- package/dist/main/ui/backend/api.js.map +1 -1
- package/dist/main/ui/backend/server.d.ts.map +1 -0
- package/dist/main/ui/backend/service.d.ts +23 -0
- package/dist/main/ui/backend/service.d.ts.map +1 -0
- package/dist/main/ui/backend/service.js +81 -2
- package/dist/main/ui/backend/service.js.map +1 -1
- package/dist/main/ui/codegen-ui.d.ts.map +1 -0
- package/dist/main/ui/common/api-types.d.ts +96 -0
- package/dist/main/ui/common/api-types.d.ts.map +1 -0
- package/dist/main/ui/frontend/assets/index-jwSqt8cG.js +1337 -0
- package/dist/main/ui/frontend/index.html +1 -1
- package/dist/main/ui/user-action-handlers.d.ts.map +1 -0
- package/dist/operations/create-directory/create-directory-def.d.ts.map +1 -0
- package/dist/operations/create-directory/create-directory-executor.d.ts.map +1 -0
- package/dist/operations/create-file/create-file-def.d.ts.map +1 -0
- package/dist/operations/create-file/create-file-def.js +3 -1
- package/dist/operations/create-file/create-file-def.js.map +1 -1
- package/dist/operations/create-file/create-file-executor.d.ts.map +1 -0
- package/dist/operations/delete-file/delete-file-def.d.ts.map +1 -0
- package/dist/operations/delete-file/delete-file-executor.d.ts.map +1 -0
- package/dist/operations/download-file/download-file-def.d.ts.map +1 -0
- package/dist/operations/download-file/download-file-executor.d.ts.map +1 -0
- package/dist/operations/imgly-remove-background/imgly-remove-background-def.d.ts.map +1 -0
- package/dist/operations/imgly-remove-background/imgly-remove-background-executor.d.ts.map +1 -0
- package/dist/operations/move-file/move-file-def.d.ts.map +1 -0
- package/dist/operations/move-file/move-file-executor.d.ts.map +1 -0
- package/dist/operations/operations-index.d.ts.map +1 -0
- package/dist/operations/patch-file/patch-file-def.d.ts.map +1 -0
- package/dist/operations/patch-file/patch-file-executor.d.ts.map +1 -0
- package/dist/operations/resize-image/resize-image-def.d.ts.map +1 -0
- package/dist/operations/resize-image/resize-image-executor.d.ts.map +1 -0
- package/dist/operations/split-image/split-image-def.d.ts.map +1 -0
- package/dist/operations/split-image/split-image-executor.d.ts.map +1 -0
- package/dist/operations/update-file/update-file-def.d.ts.map +1 -0
- package/dist/operations/update-file/update-file-executor.d.ts.map +1 -0
- package/dist/project-profiles/detection.d.ts.map +1 -0
- package/dist/project-profiles/index.d.ts.map +1 -0
- package/dist/project-profiles/profiles/golang.d.ts.map +1 -0
- package/dist/project-profiles/profiles/java-maven.d.ts.map +1 -0
- package/dist/project-profiles/profiles/javascript-npm.d.ts.map +1 -0
- package/dist/project-profiles/profiles/javascript-react.d.ts.map +1 -0
- package/dist/project-profiles/profiles/python-django.d.ts.map +1 -0
- package/dist/project-profiles/types.d.ts.map +1 -0
- package/dist/prompt/ai-service-fallback.d.ts.map +1 -0
- package/dist/prompt/function-calling-validate.d.ts.map +1 -0
- package/dist/prompt/function-calling.d.ts.map +1 -0
- package/dist/prompt/function-calling.js +2 -1
- package/dist/prompt/function-calling.js.map +1 -1
- package/dist/prompt/function-defs/ask-question.d.ts +2 -1
- package/dist/prompt/function-defs/ask-question.d.ts.map +1 -0
- package/dist/prompt/function-defs/ask-question.js +50 -0
- package/dist/prompt/function-defs/ask-question.js.map +1 -1
- package/dist/prompt/function-defs/codegen-planning.d.ts.map +1 -0
- package/dist/prompt/function-defs/codegen-summary.d.ts.map +1 -0
- package/dist/prompt/function-defs/codegen-summary.js +6 -6
- package/dist/prompt/function-defs/codegen-summary.js.map +1 -1
- package/dist/prompt/function-defs/explanation.d.ts.map +1 -0
- package/dist/prompt/function-defs/generate-image.d.ts.map +1 -0
- package/dist/prompt/function-defs/get-image-assets.d.ts.map +1 -0
- package/dist/prompt/function-defs/get-source-code.d.ts.map +1 -0
- package/dist/prompt/function-defs/optimize-context.d.ts.map +1 -0
- package/dist/prompt/function-defs/optimize-context.js +14 -10
- package/dist/prompt/function-defs/optimize-context.js.map +1 -1
- package/dist/prompt/function-defs/read-history.d.ts.map +1 -0
- package/dist/prompt/function-defs/set-summaries.d.ts.map +1 -0
- package/dist/prompt/function-defs/update-history.d.ts.map +1 -0
- package/dist/prompt/limits.d.ts.map +1 -0
- package/dist/prompt/prompt-codegen.d.ts.map +1 -0
- package/dist/prompt/prompt-service.d.ts.map +1 -0
- package/dist/prompt/prompt-service.js +24 -9
- package/dist/prompt/prompt-service.js.map +1 -1
- package/dist/prompt/prompt-service.test-utils.d.ts.map +1 -0
- package/dist/prompt/static-prompts.d.ts +1 -1
- package/dist/prompt/static-prompts.d.ts.map +1 -0
- package/dist/prompt/static-prompts.js +1 -1
- package/dist/prompt/static-prompts.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/cancel-code-generation.d.ts.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/code-generation.d.ts.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/code-generation.js +98 -22
- package/dist/prompt/steps/step-ask-question/handlers/code-generation.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/confirm-code-generation.d.ts.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/context-optimization.d.ts.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/default-action.d.ts.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.d.ts +5 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.d.ts.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js +87 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message-with-image.d.ts.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.d.ts.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/lint.d.ts +6 -0
- package/dist/prompt/steps/step-ask-question/handlers/lint.d.ts.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/lint.js +83 -0
- package/dist/prompt/steps/step-ask-question/handlers/lint.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/remove-files-from-context.d.ts.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/request-files-content.d.ts.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/request-files-content.js +25 -9
- package/dist/prompt/steps/step-ask-question/handlers/request-files-content.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/request-permissions.d.ts.map +1 -0
- package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts +30 -1
- package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts.map +1 -0
- package/dist/prompt/steps/step-ask-question/step-ask-question.d.ts.map +1 -0
- package/dist/prompt/steps/step-ask-question/step-ask-question.js +9 -2
- package/dist/prompt/steps/step-ask-question/step-ask-question.js.map +1 -1
- package/dist/prompt/steps/step-codegen-planning.d.ts.map +1 -0
- package/dist/prompt/steps/step-codegen-planning.js +8 -2
- package/dist/prompt/steps/step-codegen-planning.js.map +1 -1
- package/dist/prompt/steps/step-codegen-summary.d.ts.map +1 -0
- package/dist/prompt/steps/step-codegen-summary.js.map +1 -1
- package/dist/prompt/steps/step-context-optimization.d.ts.map +1 -0
- package/dist/prompt/steps/step-context-optimization.js +2 -0
- package/dist/prompt/steps/step-context-optimization.js.map +1 -1
- package/dist/prompt/steps/step-ensure-context.d.ts +1 -1
- package/dist/prompt/steps/step-ensure-context.d.ts.map +1 -0
- package/dist/prompt/steps/step-ensure-context.js +29 -15
- package/dist/prompt/steps/step-ensure-context.js.map +1 -1
- package/dist/prompt/steps/step-ensure-context.test.js +94 -10
- package/dist/prompt/steps/step-ensure-context.test.js.map +1 -1
- package/dist/prompt/steps/step-generate-codegen-summary.d.ts +11 -0
- package/dist/prompt/steps/step-generate-codegen-summary.js +51 -0
- package/dist/prompt/steps/step-generate-codegen-summary.js.map +1 -0
- package/dist/prompt/steps/step-generate-image.d.ts.map +1 -0
- package/dist/prompt/steps/step-generate-summary.d.ts.map +1 -0
- package/dist/prompt/steps/step-history-update.d.ts.map +1 -0
- package/dist/prompt/steps/step-process-file-updates.d.ts +8 -0
- package/dist/prompt/steps/step-process-file-updates.js +71 -0
- package/dist/prompt/steps/step-process-file-updates.js.map +1 -0
- package/dist/prompt/steps/step-summarization.d.ts.map +1 -0
- package/dist/prompt/steps/step-validate-recover.d.ts.map +1 -0
- package/dist/prompt/steps/step-verify-patch.d.ts +2 -1
- package/dist/prompt/steps/step-verify-patch.d.ts.map +1 -0
- package/dist/prompt/steps/step-verify-patch.js +2 -2
- package/dist/prompt/steps/step-verify-patch.js.map +1 -1
- package/dist/prompt/steps/steps-types.d.ts.map +1 -0
- package/dist/prompt/steps/steps-utils.d.ts.map +1 -0
- package/dist/prompt/systemprompt.d.ts.map +1 -0
- package/dist/prompt/token-estimator.d.ts.map +1 -0
- package/dist/vite-genaicode/vite-genaicode-frontend.d.ts.map +1 -0
- package/dist/vite-genaicode/vite-genaicode-plugin.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/main/ui/frontend/assets/index-QOcNx5ac.js +0 -812
|
@@ -0,0 +1,1337 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();function by(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Md={exports:{}},B={};/**
|
|
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 Co=Symbol.for("react.element"),Py=Symbol.for("react.portal"),Ty=Symbol.for("react.fragment"),_y=Symbol.for("react.strict_mode"),Ly=Symbol.for("react.profiler"),Iy=Symbol.for("react.provider"),Oy=Symbol.for("react.context"),Ay=Symbol.for("react.forward_ref"),My=Symbol.for("react.suspense"),Dy=Symbol.for("react.memo"),zy=Symbol.for("react.lazy"),Hu=Symbol.iterator;function Fy(e){return e===null||typeof e!="object"?null:(e=Hu&&e[Hu]||e["@@iterator"],typeof e=="function"?e:null)}var Dd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zd=Object.assign,Fd={};function vn(e,t,r){this.props=e,this.context=t,this.refs=Fd,this.updater=r||Dd}vn.prototype.isReactComponent={};vn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};vn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bd(){}Bd.prototype=vn.prototype;function ja(e,t,r){this.props=e,this.context=t,this.refs=Fd,this.updater=r||Dd}var Ea=ja.prototype=new Bd;Ea.constructor=ja;zd(Ea,vn.prototype);Ea.isPureReactComponent=!0;var Ku=Array.isArray,Ud=Object.prototype.hasOwnProperty,Na={current:null},Vd={key:!0,ref:!0,__self:!0,__source:!0};function Hd(e,t,r){var n,o={},i=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Ud.call(t,n)&&!Vd.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)o[n]===void 0&&(o[n]=l[n]);return{$$typeof:Co,type:e,key:i,ref:s,props:o,_owner:Na.current}}function By(e,t){return{$$typeof:Co,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ra(e){return typeof e=="object"&&e!==null&&e.$$typeof===Co}function Uy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Wu=/\/+/g;function $s(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Uy(""+e.key):t.toString(36)}function Zo(e,t,r,n,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Co:case Py:s=!0}}if(s)return s=e,o=o(s),e=n===""?"."+$s(s,0):n,Ku(o)?(r="",e!=null&&(r=e.replace(Wu,"$&/")+"/"),Zo(o,t,r,"",function(u){return u})):o!=null&&(Ra(o)&&(o=By(o,r+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Wu,"$&/")+"/")+e)),t.push(o)),1;if(s=0,n=n===""?".":n+":",Ku(e))for(var l=0;l<e.length;l++){i=e[l];var a=n+$s(i,l);s+=Zo(i,t,r,a,o)}else if(a=Fy(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=n+$s(i,l++),s+=Zo(i,t,r,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Lo(e,t,r){if(e==null)return e;var n=[],o=0;return Zo(e,n,"","",function(i){return t.call(r,i,o++)}),n}function Vy(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var be={current:null},ei={transition:null},Hy={ReactCurrentDispatcher:be,ReactCurrentBatchConfig:ei,ReactCurrentOwner:Na};function Kd(){throw Error("act(...) is not supported in production builds of React.")}B.Children={map:Lo,forEach:function(e,t,r){Lo(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Lo(e,function(){t++}),t},toArray:function(e){return Lo(e,function(t){return t})||[]},only:function(e){if(!Ra(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};B.Component=vn;B.Fragment=Ty;B.Profiler=Ly;B.PureComponent=ja;B.StrictMode=_y;B.Suspense=My;B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hy;B.act=Kd;B.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=zd({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Na.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Ud.call(t,a)&&!Vd.hasOwnProperty(a)&&(n[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)n.children=r;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];n.children=l}return{$$typeof:Co,type:e.type,key:o,ref:i,props:n,_owner:s}};B.createContext=function(e){return e={$$typeof:Oy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Iy,_context:e},e.Consumer=e};B.createElement=Hd;B.createFactory=function(e){var t=Hd.bind(null,e);return t.type=e,t};B.createRef=function(){return{current:null}};B.forwardRef=function(e){return{$$typeof:Ay,render:e}};B.isValidElement=Ra;B.lazy=function(e){return{$$typeof:zy,_payload:{_status:-1,_result:e},_init:Vy}};B.memo=function(e,t){return{$$typeof:Dy,type:e,compare:t===void 0?null:t}};B.startTransition=function(e){var t=ei.transition;ei.transition={};try{e()}finally{ei.transition=t}};B.unstable_act=Kd;B.useCallback=function(e,t){return be.current.useCallback(e,t)};B.useContext=function(e){return be.current.useContext(e)};B.useDebugValue=function(){};B.useDeferredValue=function(e){return be.current.useDeferredValue(e)};B.useEffect=function(e,t){return be.current.useEffect(e,t)};B.useId=function(){return be.current.useId()};B.useImperativeHandle=function(e,t,r){return be.current.useImperativeHandle(e,t,r)};B.useInsertionEffect=function(e,t){return be.current.useInsertionEffect(e,t)};B.useLayoutEffect=function(e,t){return be.current.useLayoutEffect(e,t)};B.useMemo=function(e,t){return be.current.useMemo(e,t)};B.useReducer=function(e,t,r){return be.current.useReducer(e,t,r)};B.useRef=function(e){return be.current.useRef(e)};B.useState=function(e){return be.current.useState(e)};B.useSyncExternalStore=function(e,t,r){return be.current.useSyncExternalStore(e,t,r)};B.useTransition=function(){return be.current.useTransition()};B.version="18.3.1";Md.exports=B;var S=Md.exports;const Ue=by(S);var Wd={exports:{}},Je={},Jd={exports:{}},Qd={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.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
|
+
*/(function(e){function t(T,I){var M=T.length;T.push(I);e:for(;0<M;){var G=M-1>>>1,q=T[G];if(0<o(q,I))T[G]=I,T[M]=q,M=G;else break e}}function r(T){return T.length===0?null:T[0]}function n(T){if(T.length===0)return null;var I=T[0],M=T.pop();if(M!==I){T[0]=M;e:for(var G=0,q=T.length,cr=q>>>1;G<cr;){var it=2*(G+1)-1,Mt=T[it],ze=it+1,jt=T[ze];if(0>o(Mt,M))ze<q&&0>o(jt,Mt)?(T[G]=jt,T[ze]=M,G=ze):(T[G]=Mt,T[it]=M,G=it);else if(ze<q&&0>o(jt,M))T[G]=jt,T[ze]=M,G=ze;else break e}}return I}function o(T,I){var M=T.sortIndex-I.sortIndex;return M!==0?M:T.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],d=1,f=null,h=3,g=!1,v=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(T){for(var I=r(u);I!==null;){if(I.callback===null)n(u);else if(I.startTime<=T)n(u),I.sortIndex=I.expirationTime,t(a,I);else break;I=r(u)}}function w(T){if(x=!1,y(T),!v)if(r(a)!==null)v=!0,Q(N);else{var I=r(u);I!==null&&F(w,I.startTime-T)}}function N(T,I){v=!1,x&&(x=!1,m(P),P=-1),g=!0;var M=h;try{for(y(I),f=r(a);f!==null&&(!(f.expirationTime>I)||T&&!U());){var G=f.callback;if(typeof G=="function"){f.callback=null,h=f.priorityLevel;var q=G(f.expirationTime<=I);I=e.unstable_now(),typeof q=="function"?f.callback=q:f===r(a)&&n(a),y(I)}else n(a);f=r(a)}if(f!==null)var cr=!0;else{var it=r(u);it!==null&&F(w,it.startTime-I),cr=!1}return cr}finally{f=null,h=M,g=!1}}var R=!1,$=null,P=-1,A=5,_=-1;function U(){return!(e.unstable_now()-_<A)}function me(){if($!==null){var T=e.unstable_now();_=T;var I=!0;try{I=$(!0,T)}finally{I?fe():(R=!1,$=null)}}else R=!1}var fe;if(typeof p=="function")fe=function(){p(me)};else if(typeof MessageChannel<"u"){var ot=new MessageChannel,O=ot.port2;ot.port1.onmessage=me,fe=function(){O.postMessage(null)}}else fe=function(){k(me,0)};function Q(T){$=T,R||(R=!0,fe())}function F(T,I){P=k(function(){T(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,Q(N))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(a)},e.unstable_next=function(T){switch(h){case 1:case 2:case 3:var I=3;break;default:I=h}var M=h;h=I;try{return T()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,I){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var M=h;h=T;try{return I()}finally{h=M}},e.unstable_scheduleCallback=function(T,I,M){var G=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?G+M:G):M=G,T){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=M+q,T={id:d++,callback:I,priorityLevel:T,startTime:M,expirationTime:q,sortIndex:-1},M>G?(T.sortIndex=M,t(u,T),r(a)===null&&T===r(u)&&(x?(m(P),P=-1):x=!0,F(w,M-G))):(T.sortIndex=q,t(a,T),v||g||(v=!0,Q(N))),T},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(T){var I=h;return function(){var M=h;h=I;try{return T.apply(this,arguments)}finally{h=M}}}})(Qd);Jd.exports=Qd;var Ky=Jd.exports;/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react-dom.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 Wy=S,We=Ky;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 Gd=new Set,ro={};function Pr(e,t){nn(e,t),nn(e+"Capture",t)}function nn(e,t){for(ro[e]=t,e=0;e<t.length;e++)Gd.add(t[e])}var _t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pl=Object.prototype.hasOwnProperty,Jy=/^[: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]*$/,Ju={},Qu={};function Qy(e){return pl.call(Qu,e)?!0:pl.call(Ju,e)?!1:Jy.test(e)?Qu[e]=!0:(Ju[e]=!0,!1)}function Gy(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qy(e,t,r,n){if(t===null||typeof t>"u"||Gy(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 Pe(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Pe(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){ke[e]=new Pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var $a=/[\-:]([a-z])/g;function ba(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($a,ba);ke[t]=new Pe(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($a,ba);ke[t]=new Pe(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($a,ba);ke[t]=new Pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Pe(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pa(e,t,r,n){var o=ke.hasOwnProperty(t)?ke[t]:null;(o!==null?o.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(qy(t,r,o,n)&&(r=null),n||o===null?Qy(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,n=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var At=Wy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Io=Symbol.for("react.element"),Mr=Symbol.for("react.portal"),Dr=Symbol.for("react.fragment"),Ta=Symbol.for("react.strict_mode"),hl=Symbol.for("react.profiler"),qd=Symbol.for("react.provider"),Yd=Symbol.for("react.context"),_a=Symbol.for("react.forward_ref"),ml=Symbol.for("react.suspense"),yl=Symbol.for("react.suspense_list"),La=Symbol.for("react.memo"),Ut=Symbol.for("react.lazy"),Xd=Symbol.for("react.offscreen"),Gu=Symbol.iterator;function En(e){return e===null||typeof e!="object"?null:(e=Gu&&e[Gu]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Object.assign,bs;function Fn(e){if(bs===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);bs=t&&t[1]||""}return`
|
|
26
|
+
`+bs+e}var Ps=!1;function Ts(e,t){if(!e||Ps)return"";Ps=!0;var r=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(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
27
|
+
`),i=n.stack.split(`
|
|
28
|
+
`),s=o.length-1,l=i.length-1;1<=s&&0<=l&&o[s]!==i[l];)l--;for(;1<=s&&0<=l;s--,l--)if(o[s]!==i[l]){if(s!==1||l!==1)do if(s--,l--,0>l||o[s]!==i[l]){var a=`
|
|
29
|
+
`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Ps=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Fn(e):""}function Yy(e){switch(e.tag){case 5:return Fn(e.type);case 16:return Fn("Lazy");case 13:return Fn("Suspense");case 19:return Fn("SuspenseList");case 0:case 2:case 15:return e=Ts(e.type,!1),e;case 11:return e=Ts(e.type.render,!1),e;case 1:return e=Ts(e.type,!0),e;default:return""}}function vl(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 Dr:return"Fragment";case Mr:return"Portal";case hl:return"Profiler";case Ta:return"StrictMode";case ml:return"Suspense";case yl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Yd:return(e.displayName||"Context")+".Consumer";case qd:return(e._context.displayName||"Context")+".Provider";case _a:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case La:return t=e.displayName||null,t!==null?t:vl(e.type)||"Memo";case Ut:t=e._payload,e=e._init;try{return vl(e(t))}catch{}}return null}function Xy(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 vl(t);case 8:return t===Ta?"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 nr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zy(e){var t=Zd(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Oo(e){e._valueTracker||(e._valueTracker=Zy(e))}function ef(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Zd(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gi(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 gl(e,t){var r=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function qu(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=nr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function tf(e,t){t=t.checked,t!=null&&Pa(e,"checked",t,!1)}function xl(e,t){tf(e,t);var r=nr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?wl(e,t.type,r):t.hasOwnProperty("defaultValue")&&wl(e,t.type,nr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yu(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function wl(e,t,r){(t!=="number"||gi(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Bn=Array.isArray;function qr(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+nr(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Sl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(b(91));return ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xu(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(b(92));if(Bn(r)){if(1<r.length)throw Error(b(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:nr(r)}}function rf(e,t){var r=nr(t.value),n=nr(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Zu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function nf(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 kl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?nf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ao,of=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ao=Ao||document.createElement("div"),Ao.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ao.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function no(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Kn={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},ev=["Webkit","ms","Moz","O"];Object.keys(Kn).forEach(function(e){ev.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Kn[t]=Kn[e]})});function sf(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Kn.hasOwnProperty(e)&&Kn[e]?(""+t).trim():t+"px"}function lf(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=sf(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var tv=ie({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 Cl(e,t){if(t){if(tv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function jl(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 El=null;function Ia(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nl=null,Yr=null,Xr=null;function ec(e){if(e=No(e)){if(typeof Nl!="function")throw Error(b(280));var t=e.stateNode;t&&(t=Zi(t),Nl(e.stateNode,e.type,t))}}function af(e){Yr?Xr?Xr.push(e):Xr=[e]:Yr=e}function uf(){if(Yr){var e=Yr,t=Xr;if(Xr=Yr=null,ec(e),t)for(e=0;e<t.length;e++)ec(t[e])}}function cf(e,t){return e(t)}function df(){}var _s=!1;function ff(e,t,r){if(_s)return e(t,r);_s=!0;try{return cf(e,t,r)}finally{_s=!1,(Yr!==null||Xr!==null)&&(df(),uf())}}function oo(e,t){var r=e.stateNode;if(r===null)return null;var n=Zi(r);if(n===null)return null;r=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(b(231,t,typeof r));return r}var Rl=!1;if(_t)try{var Nn={};Object.defineProperty(Nn,"passive",{get:function(){Rl=!0}}),window.addEventListener("test",Nn,Nn),window.removeEventListener("test",Nn,Nn)}catch{Rl=!1}function rv(e,t,r,n,o,i,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(d){this.onError(d)}}var Wn=!1,xi=null,wi=!1,$l=null,nv={onError:function(e){Wn=!0,xi=e}};function ov(e,t,r,n,o,i,s,l,a){Wn=!1,xi=null,rv.apply(nv,arguments)}function iv(e,t,r,n,o,i,s,l,a){if(ov.apply(this,arguments),Wn){if(Wn){var u=xi;Wn=!1,xi=null}else throw Error(b(198));wi||(wi=!0,$l=u)}}function Tr(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function pf(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 tc(e){if(Tr(e)!==e)throw Error(b(188))}function sv(e){var t=e.alternate;if(!t){if(t=Tr(e),t===null)throw Error(b(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(o===null)break;var i=o.alternate;if(i===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return tc(o),e;if(i===n)return tc(o),t;i=i.sibling}throw Error(b(188))}if(r.return!==n.return)r=o,n=i;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,n=i;break}if(l===n){s=!0,n=o,r=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===r){s=!0,r=i,n=o;break}if(l===n){s=!0,n=i,r=o;break}l=l.sibling}if(!s)throw Error(b(189))}}if(r.alternate!==n)throw Error(b(190))}if(r.tag!==3)throw Error(b(188));return r.stateNode.current===r?e:t}function hf(e){return e=sv(e),e!==null?mf(e):null}function mf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mf(e);if(t!==null)return t;e=e.sibling}return null}var yf=We.unstable_scheduleCallback,rc=We.unstable_cancelCallback,lv=We.unstable_shouldYield,av=We.unstable_requestPaint,ae=We.unstable_now,uv=We.unstable_getCurrentPriorityLevel,Oa=We.unstable_ImmediatePriority,vf=We.unstable_UserBlockingPriority,Si=We.unstable_NormalPriority,cv=We.unstable_LowPriority,gf=We.unstable_IdlePriority,Gi=null,kt=null;function dv(e){if(kt&&typeof kt.onCommitFiberRoot=="function")try{kt.onCommitFiberRoot(Gi,e,void 0,(e.current.flags&128)===128)}catch{}}var ft=Math.clz32?Math.clz32:hv,fv=Math.log,pv=Math.LN2;function hv(e){return e>>>=0,e===0?32:31-(fv(e)/pv|0)|0}var Mo=64,Do=4194304;function Un(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 ki(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var l=s&~o;l!==0?n=Un(l):(i&=s,i!==0&&(n=Un(i)))}else s=r&~o,s!==0?n=Un(s):i!==0&&(n=Un(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-ft(t),o=1<<r,n|=e[r],t&=~o;return n}function mv(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 yv(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-ft(i),l=1<<s,a=o[s];a===-1?(!(l&r)||l&n)&&(o[s]=mv(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function bl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function xf(){var e=Mo;return Mo<<=1,!(Mo&4194240)&&(Mo=64),e}function Ls(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function jo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ft(t),e[t]=r}function vv(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-ft(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}function Aa(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ft(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var W=0;function wf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Sf,Ma,kf,Cf,jf,Pl=!1,zo=[],Qt=null,Gt=null,qt=null,io=new Map,so=new Map,Ht=[],gv="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 nc(e,t){switch(e){case"focusin":case"focusout":Qt=null;break;case"dragenter":case"dragleave":Gt=null;break;case"mouseover":case"mouseout":qt=null;break;case"pointerover":case"pointerout":io.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":so.delete(t.pointerId)}}function Rn(e,t,r,n,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},t!==null&&(t=No(t),t!==null&&Ma(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function xv(e,t,r,n,o){switch(t){case"focusin":return Qt=Rn(Qt,e,t,r,n,o),!0;case"dragenter":return Gt=Rn(Gt,e,t,r,n,o),!0;case"mouseover":return qt=Rn(qt,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return io.set(i,Rn(io.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,so.set(i,Rn(so.get(i)||null,e,t,r,n,o)),!0}return!1}function Ef(e){var t=hr(e.target);if(t!==null){var r=Tr(t);if(r!==null){if(t=r.tag,t===13){if(t=pf(r),t!==null){e.blockedOn=t,jf(e.priority,function(){kf(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ti(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Tl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);El=n,r.target.dispatchEvent(n),El=null}else return t=No(r),t!==null&&Ma(t),e.blockedOn=r,!1;t.shift()}return!0}function oc(e,t,r){ti(e)&&r.delete(t)}function wv(){Pl=!1,Qt!==null&&ti(Qt)&&(Qt=null),Gt!==null&&ti(Gt)&&(Gt=null),qt!==null&&ti(qt)&&(qt=null),io.forEach(oc),so.forEach(oc)}function $n(e,t){e.blockedOn===t&&(e.blockedOn=null,Pl||(Pl=!0,We.unstable_scheduleCallback(We.unstable_NormalPriority,wv)))}function lo(e){function t(o){return $n(o,e)}if(0<zo.length){$n(zo[0],e);for(var r=1;r<zo.length;r++){var n=zo[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Qt!==null&&$n(Qt,e),Gt!==null&&$n(Gt,e),qt!==null&&$n(qt,e),io.forEach(t),so.forEach(t),r=0;r<Ht.length;r++)n=Ht[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Ht.length&&(r=Ht[0],r.blockedOn===null);)Ef(r),r.blockedOn===null&&Ht.shift()}var Zr=At.ReactCurrentBatchConfig,Ci=!0;function Sv(e,t,r,n){var o=W,i=Zr.transition;Zr.transition=null;try{W=1,Da(e,t,r,n)}finally{W=o,Zr.transition=i}}function kv(e,t,r,n){var o=W,i=Zr.transition;Zr.transition=null;try{W=4,Da(e,t,r,n)}finally{W=o,Zr.transition=i}}function Da(e,t,r,n){if(Ci){var o=Tl(e,t,r,n);if(o===null)Vs(e,t,n,ji,r),nc(e,n);else if(xv(o,e,t,r,n))n.stopPropagation();else if(nc(e,n),t&4&&-1<gv.indexOf(e)){for(;o!==null;){var i=No(o);if(i!==null&&Sf(i),i=Tl(e,t,r,n),i===null&&Vs(e,t,n,ji,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else Vs(e,t,n,null,r)}}var ji=null;function Tl(e,t,r,n){if(ji=null,e=Ia(n),e=hr(e),e!==null)if(t=Tr(e),t===null)e=null;else if(r=t.tag,r===13){if(e=pf(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ji=e,null}function Nf(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(uv()){case Oa:return 1;case vf:return 4;case Si:case cv:return 16;case gf:return 536870912;default:return 16}default:return 16}}var Wt=null,za=null,ri=null;function Rf(){if(ri)return ri;var e,t=za,r=t.length,n,o="value"in Wt?Wt.value:Wt.textContent,i=o.length;for(e=0;e<r&&t[e]===o[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===o[i-n];n++);return ri=o.slice(e,1<n?1-n:void 0)}function ni(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 Fo(){return!0}function ic(){return!1}function Qe(e){function t(r,n,o,i,s){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Fo:ic,this.isPropagationStopped=ic,this}return ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Fo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Fo)},persist:function(){},isPersistent:Fo}),t}var gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fa=Qe(gn),Eo=ie({},gn,{view:0,detail:0}),Cv=Qe(Eo),Is,Os,bn,qi=ie({},Eo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ba,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!==bn&&(bn&&e.type==="mousemove"?(Is=e.screenX-bn.screenX,Os=e.screenY-bn.screenY):Os=Is=0,bn=e),Is)},movementY:function(e){return"movementY"in e?e.movementY:Os}}),sc=Qe(qi),jv=ie({},qi,{dataTransfer:0}),Ev=Qe(jv),Nv=ie({},Eo,{relatedTarget:0}),As=Qe(Nv),Rv=ie({},gn,{animationName:0,elapsedTime:0,pseudoElement:0}),$v=Qe(Rv),bv=ie({},gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Pv=Qe(bv),Tv=ie({},gn,{data:0}),lc=Qe(Tv),_v={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lv={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"},Iv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ov(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Iv[e])?!!t[e]:!1}function Ba(){return Ov}var Av=ie({},Eo,{key:function(e){if(e.key){var t=_v[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ni(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Lv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ba,charCode:function(e){return e.type==="keypress"?ni(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ni(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Mv=Qe(Av),Dv=ie({},qi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ac=Qe(Dv),zv=ie({},Eo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ba}),Fv=Qe(zv),Bv=ie({},gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Uv=Qe(Bv),Vv=ie({},qi,{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}),Hv=Qe(Vv),Kv=[9,13,27,32],Ua=_t&&"CompositionEvent"in window,Jn=null;_t&&"documentMode"in document&&(Jn=document.documentMode);var Wv=_t&&"TextEvent"in window&&!Jn,$f=_t&&(!Ua||Jn&&8<Jn&&11>=Jn),uc=" ",cc=!1;function bf(e,t){switch(e){case"keyup":return Kv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zr=!1;function Jv(e,t){switch(e){case"compositionend":return Pf(t);case"keypress":return t.which!==32?null:(cc=!0,uc);case"textInput":return e=t.data,e===uc&&cc?null:e;default:return null}}function Qv(e,t){if(zr)return e==="compositionend"||!Ua&&bf(e,t)?(e=Rf(),ri=za=Wt=null,zr=!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 $f&&t.locale!=="ko"?null:t.data;default:return null}}var Gv={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 dc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Gv[e.type]:t==="textarea"}function Tf(e,t,r,n){af(n),t=Ei(t,"onChange"),0<t.length&&(r=new Fa("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Qn=null,ao=null;function qv(e){Uf(e,0)}function Yi(e){var t=Ur(e);if(ef(t))return e}function Yv(e,t){if(e==="change")return t}var _f=!1;if(_t){var Ms;if(_t){var Ds="oninput"in document;if(!Ds){var fc=document.createElement("div");fc.setAttribute("oninput","return;"),Ds=typeof fc.oninput=="function"}Ms=Ds}else Ms=!1;_f=Ms&&(!document.documentMode||9<document.documentMode)}function pc(){Qn&&(Qn.detachEvent("onpropertychange",Lf),ao=Qn=null)}function Lf(e){if(e.propertyName==="value"&&Yi(ao)){var t=[];Tf(t,ao,e,Ia(e)),ff(qv,t)}}function Xv(e,t,r){e==="focusin"?(pc(),Qn=t,ao=r,Qn.attachEvent("onpropertychange",Lf)):e==="focusout"&&pc()}function Zv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yi(ao)}function eg(e,t){if(e==="click")return Yi(t)}function tg(e,t){if(e==="input"||e==="change")return Yi(t)}function rg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mt=typeof Object.is=="function"?Object.is:rg;function uo(e,t){if(mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!pl.call(t,o)||!mt(e[o],t[o]))return!1}return!0}function hc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mc(e,t){var r=hc(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hc(r)}}function If(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?If(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Of(){for(var e=window,t=gi();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gi(e.document)}return t}function Va(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 ng(e){var t=Of(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&If(r.ownerDocument.documentElement,r)){if(n!==null&&Va(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=mc(r,i);var s=mc(r,n);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var og=_t&&"documentMode"in document&&11>=document.documentMode,Fr=null,_l=null,Gn=null,Ll=!1;function yc(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ll||Fr==null||Fr!==gi(n)||(n=Fr,"selectionStart"in n&&Va(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Gn&&uo(Gn,n)||(Gn=n,n=Ei(_l,"onSelect"),0<n.length&&(t=new Fa("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Fr)))}function Bo(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Br={animationend:Bo("Animation","AnimationEnd"),animationiteration:Bo("Animation","AnimationIteration"),animationstart:Bo("Animation","AnimationStart"),transitionend:Bo("Transition","TransitionEnd")},zs={},Af={};_t&&(Af=document.createElement("div").style,"AnimationEvent"in window||(delete Br.animationend.animation,delete Br.animationiteration.animation,delete Br.animationstart.animation),"TransitionEvent"in window||delete Br.transitionend.transition);function Xi(e){if(zs[e])return zs[e];if(!Br[e])return e;var t=Br[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Af)return zs[e]=t[r];return e}var Mf=Xi("animationend"),Df=Xi("animationiteration"),zf=Xi("animationstart"),Ff=Xi("transitionend"),Bf=new Map,vc="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 sr(e,t){Bf.set(e,t),Pr(t,[e])}for(var Fs=0;Fs<vc.length;Fs++){var Bs=vc[Fs],ig=Bs.toLowerCase(),sg=Bs[0].toUpperCase()+Bs.slice(1);sr(ig,"on"+sg)}sr(Mf,"onAnimationEnd");sr(Df,"onAnimationIteration");sr(zf,"onAnimationStart");sr("dblclick","onDoubleClick");sr("focusin","onFocus");sr("focusout","onBlur");sr(Ff,"onTransitionEnd");nn("onMouseEnter",["mouseout","mouseover"]);nn("onMouseLeave",["mouseout","mouseover"]);nn("onPointerEnter",["pointerout","pointerover"]);nn("onPointerLeave",["pointerout","pointerover"]);Pr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Pr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Pr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Pr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Pr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Pr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vn="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(" "),lg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vn));function gc(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,iv(n,t,void 0,e),e.currentTarget=null}function Uf(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var s=n.length-1;0<=s;s--){var l=n[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==i&&o.isPropagationStopped())break e;gc(o,l,u),i=a}else for(s=0;s<n.length;s++){if(l=n[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==i&&o.isPropagationStopped())break e;gc(o,l,u),i=a}}}if(wi)throw e=$l,wi=!1,$l=null,e}function Z(e,t){var r=t[Dl];r===void 0&&(r=t[Dl]=new Set);var n=e+"__bubble";r.has(n)||(Vf(t,e,2,!1),r.add(n))}function Us(e,t,r){var n=0;t&&(n|=4),Vf(r,e,n,t)}var Uo="_reactListening"+Math.random().toString(36).slice(2);function co(e){if(!e[Uo]){e[Uo]=!0,Gd.forEach(function(r){r!=="selectionchange"&&(lg.has(r)||Us(r,!1,e),Us(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Uo]||(t[Uo]=!0,Us("selectionchange",!1,t))}}function Vf(e,t,r,n){switch(Nf(t)){case 1:var o=Sv;break;case 4:o=kv;break;default:o=Da}r=o.bind(null,t,r,e),o=void 0,!Rl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Vs(e,t,r,n,o){var i=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var l=n.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(s===4)for(s=n.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;s=s.return}for(;l!==null;){if(s=hr(l),s===null)return;if(a=s.tag,a===5||a===6){n=i=s;continue e}l=l.parentNode}}n=n.return}ff(function(){var u=i,d=Ia(r),f=[];e:{var h=Bf.get(e);if(h!==void 0){var g=Fa,v=e;switch(e){case"keypress":if(ni(r)===0)break e;case"keydown":case"keyup":g=Mv;break;case"focusin":v="focus",g=As;break;case"focusout":v="blur",g=As;break;case"beforeblur":case"afterblur":g=As;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=sc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Ev;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Fv;break;case Mf:case Df:case zf:g=$v;break;case Ff:g=Uv;break;case"scroll":g=Cv;break;case"wheel":g=Hv;break;case"copy":case"cut":case"paste":g=Pv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=ac}var x=(t&4)!==0,k=!x&&e==="scroll",m=x?h!==null?h+"Capture":null:h;x=[];for(var p=u,y;p!==null;){y=p;var w=y.stateNode;if(y.tag===5&&w!==null&&(y=w,m!==null&&(w=oo(p,m),w!=null&&x.push(fo(p,w,y)))),k)break;p=p.return}0<x.length&&(h=new g(h,v,null,r,d),f.push({event:h,listeners:x}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&r!==El&&(v=r.relatedTarget||r.fromElement)&&(hr(v)||v[Lt]))break e;if((g||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,g?(v=r.relatedTarget||r.toElement,g=u,v=v?hr(v):null,v!==null&&(k=Tr(v),v!==k||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=u),g!==v)){if(x=sc,w="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(x=ac,w="onPointerLeave",m="onPointerEnter",p="pointer"),k=g==null?h:Ur(g),y=v==null?h:Ur(v),h=new x(w,p+"leave",g,r,d),h.target=k,h.relatedTarget=y,w=null,hr(d)===u&&(x=new x(m,p+"enter",v,r,d),x.target=y,x.relatedTarget=k,w=x),k=w,g&&v)t:{for(x=g,m=v,p=0,y=x;y;y=Lr(y))p++;for(y=0,w=m;w;w=Lr(w))y++;for(;0<p-y;)x=Lr(x),p--;for(;0<y-p;)m=Lr(m),y--;for(;p--;){if(x===m||m!==null&&x===m.alternate)break t;x=Lr(x),m=Lr(m)}x=null}else x=null;g!==null&&xc(f,h,g,x,!1),v!==null&&k!==null&&xc(f,k,v,x,!0)}}e:{if(h=u?Ur(u):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var N=Yv;else if(dc(h))if(_f)N=tg;else{N=Zv;var R=Xv}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(N=eg);if(N&&(N=N(e,u))){Tf(f,N,r,d);break e}R&&R(e,h,u),e==="focusout"&&(R=h._wrapperState)&&R.controlled&&h.type==="number"&&wl(h,"number",h.value)}switch(R=u?Ur(u):window,e){case"focusin":(dc(R)||R.contentEditable==="true")&&(Fr=R,_l=u,Gn=null);break;case"focusout":Gn=_l=Fr=null;break;case"mousedown":Ll=!0;break;case"contextmenu":case"mouseup":case"dragend":Ll=!1,yc(f,r,d);break;case"selectionchange":if(og)break;case"keydown":case"keyup":yc(f,r,d)}var $;if(Ua)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else zr?bf(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&($f&&r.locale!=="ko"&&(zr||P!=="onCompositionStart"?P==="onCompositionEnd"&&zr&&($=Rf()):(Wt=d,za="value"in Wt?Wt.value:Wt.textContent,zr=!0)),R=Ei(u,P),0<R.length&&(P=new lc(P,e,null,r,d),f.push({event:P,listeners:R}),$?P.data=$:($=Pf(r),$!==null&&(P.data=$)))),($=Wv?Jv(e,r):Qv(e,r))&&(u=Ei(u,"onBeforeInput"),0<u.length&&(d=new lc("onBeforeInput","beforeinput",null,r,d),f.push({event:d,listeners:u}),d.data=$))}Uf(f,t)})}function fo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ei(e,t){for(var r=t+"Capture",n=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=oo(e,r),i!=null&&n.unshift(fo(e,i,o)),i=oo(e,t),i!=null&&n.push(fo(e,i,o))),e=e.return}return n}function Lr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function xc(e,t,r,n,o){for(var i=t._reactName,s=[];r!==null&&r!==n;){var l=r,a=l.alternate,u=l.stateNode;if(a!==null&&a===n)break;l.tag===5&&u!==null&&(l=u,o?(a=oo(r,i),a!=null&&s.unshift(fo(r,a,l))):o||(a=oo(r,i),a!=null&&s.push(fo(r,a,l)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var ag=/\r\n?/g,ug=/\u0000|\uFFFD/g;function wc(e){return(typeof e=="string"?e:""+e).replace(ag,`
|
|
30
|
+
`).replace(ug,"")}function Vo(e,t,r){if(t=wc(t),wc(e)!==t&&r)throw Error(b(425))}function Ni(){}var Il=null,Ol=null;function Al(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 Ml=typeof setTimeout=="function"?setTimeout:void 0,cg=typeof clearTimeout=="function"?clearTimeout:void 0,Sc=typeof Promise=="function"?Promise:void 0,dg=typeof queueMicrotask=="function"?queueMicrotask:typeof Sc<"u"?function(e){return Sc.resolve(null).then(e).catch(fg)}:Ml;function fg(e){setTimeout(function(){throw e})}function Hs(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){e.removeChild(o),lo(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);lo(t)}function Yt(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 kc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var xn=Math.random().toString(36).slice(2),St="__reactFiber$"+xn,po="__reactProps$"+xn,Lt="__reactContainer$"+xn,Dl="__reactEvents$"+xn,pg="__reactListeners$"+xn,hg="__reactHandles$"+xn;function hr(e){var t=e[St];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Lt]||r[St]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=kc(e);e!==null;){if(r=e[St])return r;e=kc(e)}return t}e=r,r=e.parentNode}return null}function No(e){return e=e[St]||e[Lt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ur(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(b(33))}function Zi(e){return e[po]||null}var zl=[],Vr=-1;function lr(e){return{current:e}}function te(e){0>Vr||(e.current=zl[Vr],zl[Vr]=null,Vr--)}function Y(e,t){Vr++,zl[Vr]=e.current,e.current=t}var or={},Ne=lr(or),Le=lr(!1),Cr=or;function on(e,t){var r=e.type.contextTypes;if(!r)return or;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ie(e){return e=e.childContextTypes,e!=null}function Ri(){te(Le),te(Ne)}function Cc(e,t,r){if(Ne.current!==or)throw Error(b(168));Y(Ne,t),Y(Le,r)}function Hf(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(b(108,Xy(e)||"Unknown",o));return ie({},r,n)}function $i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||or,Cr=Ne.current,Y(Ne,e),Y(Le,Le.current),!0}function jc(e,t,r){var n=e.stateNode;if(!n)throw Error(b(169));r?(e=Hf(e,t,Cr),n.__reactInternalMemoizedMergedChildContext=e,te(Le),te(Ne),Y(Ne,e)):te(Le),Y(Le,r)}var $t=null,es=!1,Ks=!1;function Kf(e){$t===null?$t=[e]:$t.push(e)}function mg(e){es=!0,Kf(e)}function ar(){if(!Ks&&$t!==null){Ks=!0;var e=0,t=W;try{var r=$t;for(W=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}$t=null,es=!1}catch(o){throw $t!==null&&($t=$t.slice(e+1)),yf(Oa,ar),o}finally{W=t,Ks=!1}}return null}var Hr=[],Kr=0,bi=null,Pi=0,qe=[],Ye=0,jr=null,bt=1,Pt="";function fr(e,t){Hr[Kr++]=Pi,Hr[Kr++]=bi,bi=e,Pi=t}function Wf(e,t,r){qe[Ye++]=bt,qe[Ye++]=Pt,qe[Ye++]=jr,jr=e;var n=bt;e=Pt;var o=32-ft(n)-1;n&=~(1<<o),r+=1;var i=32-ft(t)+o;if(30<i){var s=o-o%5;i=(n&(1<<s)-1).toString(32),n>>=s,o-=s,bt=1<<32-ft(t)+o|r<<o|n,Pt=i+e}else bt=1<<i|r<<o|n,Pt=e}function Ha(e){e.return!==null&&(fr(e,1),Wf(e,1,0))}function Ka(e){for(;e===bi;)bi=Hr[--Kr],Hr[Kr]=null,Pi=Hr[--Kr],Hr[Kr]=null;for(;e===jr;)jr=qe[--Ye],qe[Ye]=null,Pt=qe[--Ye],qe[Ye]=null,bt=qe[--Ye],qe[Ye]=null}var He=null,Ve=null,re=!1,ut=null;function Jf(e,t){var r=Xe(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Ec(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,He=e,Ve=Yt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,He=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=jr!==null?{id:bt,overflow:Pt}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Xe(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,He=e,Ve=null,!0):!1;default:return!1}}function Fl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Bl(e){if(re){var t=Ve;if(t){var r=t;if(!Ec(e,t)){if(Fl(e))throw Error(b(418));t=Yt(r.nextSibling);var n=He;t&&Ec(e,t)?Jf(n,r):(e.flags=e.flags&-4097|2,re=!1,He=e)}}else{if(Fl(e))throw Error(b(418));e.flags=e.flags&-4097|2,re=!1,He=e}}}function Nc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;He=e}function Ho(e){if(e!==He)return!1;if(!re)return Nc(e),re=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Al(e.type,e.memoizedProps)),t&&(t=Ve)){if(Fl(e))throw Qf(),Error(b(418));for(;t;)Jf(e,t),t=Yt(t.nextSibling)}if(Nc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(b(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ve=Yt(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ve=null}}else Ve=He?Yt(e.stateNode.nextSibling):null;return!0}function Qf(){for(var e=Ve;e;)e=Yt(e.nextSibling)}function sn(){Ve=He=null,re=!1}function Wa(e){ut===null?ut=[e]:ut.push(e)}var yg=At.ReactCurrentBatchConfig;function Pn(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(b(309));var n=r.stateNode}if(!n)throw Error(b(147,e));var o=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var l=o.refs;s===null?delete l[i]:l[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(b(284));if(!r._owner)throw Error(b(290,e))}return e}function Ko(e,t){throw e=Object.prototype.toString.call(t),Error(b(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Rc(e){var t=e._init;return t(e._payload)}function Gf(e){function t(m,p){if(e){var y=m.deletions;y===null?(m.deletions=[p],m.flags|=16):y.push(p)}}function r(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function n(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function o(m,p){return m=tr(m,p),m.index=0,m.sibling=null,m}function i(m,p,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<p?(m.flags|=2,p):y):(m.flags|=2,p)):(m.flags|=1048576,p)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,p,y,w){return p===null||p.tag!==6?(p=Xs(y,m.mode,w),p.return=m,p):(p=o(p,y),p.return=m,p)}function a(m,p,y,w){var N=y.type;return N===Dr?d(m,p,y.props.children,w,y.key):p!==null&&(p.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Ut&&Rc(N)===p.type)?(w=o(p,y.props),w.ref=Pn(m,p,y),w.return=m,w):(w=ci(y.type,y.key,y.props,null,m.mode,w),w.ref=Pn(m,p,y),w.return=m,w)}function u(m,p,y,w){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=Zs(y,m.mode,w),p.return=m,p):(p=o(p,y.children||[]),p.return=m,p)}function d(m,p,y,w,N){return p===null||p.tag!==7?(p=wr(y,m.mode,w,N),p.return=m,p):(p=o(p,y),p.return=m,p)}function f(m,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Xs(""+p,m.mode,y),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Io:return y=ci(p.type,p.key,p.props,null,m.mode,y),y.ref=Pn(m,null,p),y.return=m,y;case Mr:return p=Zs(p,m.mode,y),p.return=m,p;case Ut:var w=p._init;return f(m,w(p._payload),y)}if(Bn(p)||En(p))return p=wr(p,m.mode,y,null),p.return=m,p;Ko(m,p)}return null}function h(m,p,y,w){var N=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return N!==null?null:l(m,p,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Io:return y.key===N?a(m,p,y,w):null;case Mr:return y.key===N?u(m,p,y,w):null;case Ut:return N=y._init,h(m,p,N(y._payload),w)}if(Bn(y)||En(y))return N!==null?null:d(m,p,y,w,null);Ko(m,y)}return null}function g(m,p,y,w,N){if(typeof w=="string"&&w!==""||typeof w=="number")return m=m.get(y)||null,l(p,m,""+w,N);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Io:return m=m.get(w.key===null?y:w.key)||null,a(p,m,w,N);case Mr:return m=m.get(w.key===null?y:w.key)||null,u(p,m,w,N);case Ut:var R=w._init;return g(m,p,y,R(w._payload),N)}if(Bn(w)||En(w))return m=m.get(y)||null,d(p,m,w,N,null);Ko(p,w)}return null}function v(m,p,y,w){for(var N=null,R=null,$=p,P=p=0,A=null;$!==null&&P<y.length;P++){$.index>P?(A=$,$=null):A=$.sibling;var _=h(m,$,y[P],w);if(_===null){$===null&&($=A);break}e&&$&&_.alternate===null&&t(m,$),p=i(_,p,P),R===null?N=_:R.sibling=_,R=_,$=A}if(P===y.length)return r(m,$),re&&fr(m,P),N;if($===null){for(;P<y.length;P++)$=f(m,y[P],w),$!==null&&(p=i($,p,P),R===null?N=$:R.sibling=$,R=$);return re&&fr(m,P),N}for($=n(m,$);P<y.length;P++)A=g($,m,P,y[P],w),A!==null&&(e&&A.alternate!==null&&$.delete(A.key===null?P:A.key),p=i(A,p,P),R===null?N=A:R.sibling=A,R=A);return e&&$.forEach(function(U){return t(m,U)}),re&&fr(m,P),N}function x(m,p,y,w){var N=En(y);if(typeof N!="function")throw Error(b(150));if(y=N.call(y),y==null)throw Error(b(151));for(var R=N=null,$=p,P=p=0,A=null,_=y.next();$!==null&&!_.done;P++,_=y.next()){$.index>P?(A=$,$=null):A=$.sibling;var U=h(m,$,_.value,w);if(U===null){$===null&&($=A);break}e&&$&&U.alternate===null&&t(m,$),p=i(U,p,P),R===null?N=U:R.sibling=U,R=U,$=A}if(_.done)return r(m,$),re&&fr(m,P),N;if($===null){for(;!_.done;P++,_=y.next())_=f(m,_.value,w),_!==null&&(p=i(_,p,P),R===null?N=_:R.sibling=_,R=_);return re&&fr(m,P),N}for($=n(m,$);!_.done;P++,_=y.next())_=g($,m,P,_.value,w),_!==null&&(e&&_.alternate!==null&&$.delete(_.key===null?P:_.key),p=i(_,p,P),R===null?N=_:R.sibling=_,R=_);return e&&$.forEach(function(me){return t(m,me)}),re&&fr(m,P),N}function k(m,p,y,w){if(typeof y=="object"&&y!==null&&y.type===Dr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Io:e:{for(var N=y.key,R=p;R!==null;){if(R.key===N){if(N=y.type,N===Dr){if(R.tag===7){r(m,R.sibling),p=o(R,y.props.children),p.return=m,m=p;break e}}else if(R.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Ut&&Rc(N)===R.type){r(m,R.sibling),p=o(R,y.props),p.ref=Pn(m,R,y),p.return=m,m=p;break e}r(m,R);break}else t(m,R);R=R.sibling}y.type===Dr?(p=wr(y.props.children,m.mode,w,y.key),p.return=m,m=p):(w=ci(y.type,y.key,y.props,null,m.mode,w),w.ref=Pn(m,p,y),w.return=m,m=w)}return s(m);case Mr:e:{for(R=y.key;p!==null;){if(p.key===R)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){r(m,p.sibling),p=o(p,y.children||[]),p.return=m,m=p;break e}else{r(m,p);break}else t(m,p);p=p.sibling}p=Zs(y,m.mode,w),p.return=m,m=p}return s(m);case Ut:return R=y._init,k(m,p,R(y._payload),w)}if(Bn(y))return v(m,p,y,w);if(En(y))return x(m,p,y,w);Ko(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(r(m,p.sibling),p=o(p,y),p.return=m,m=p):(r(m,p),p=Xs(y,m.mode,w),p.return=m,m=p),s(m)):r(m,p)}return k}var ln=Gf(!0),qf=Gf(!1),Ti=lr(null),_i=null,Wr=null,Ja=null;function Qa(){Ja=Wr=_i=null}function Ga(e){var t=Ti.current;te(Ti),e._currentValue=t}function Ul(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function en(e,t){_i=e,Ja=Wr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_e=!0),e.firstContext=null)}function et(e){var t=e._currentValue;if(Ja!==e)if(e={context:e,memoizedValue:t,next:null},Wr===null){if(_i===null)throw Error(b(308));Wr=e,_i.dependencies={lanes:0,firstContext:e}}else Wr=Wr.next=e;return t}var mr=null;function qa(e){mr===null?mr=[e]:mr.push(e)}function Yf(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,qa(t)):(r.next=o.next,o.next=r),t.interleaved=r,It(e,n)}function It(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Vt=!1;function Ya(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xf(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 Tt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xt(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,H&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,It(e,r)}return o=n.interleaved,o===null?(t.next=t,qa(n)):(t.next=o.next,o.next=t),n.interleaved=t,It(e,r)}function oi(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Aa(e,r)}}function $c(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=s:i=i.next=s,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Li(e,t,r,n){var o=e.updateQueue;Vt=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=a))}if(i!==null){var f=o.baseState;s=0,d=u=a=null,l=i;do{var h=l.lane,g=l.eventTime;if((n&h)===h){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,x=l;switch(h=t,g=r,x.tag){case 1:if(v=x.payload,typeof v=="function"){f=v.call(g,f,h);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,h=typeof v=="function"?v.call(g,f,h):v,h==null)break e;f=ie({},f,h);break e;case 2:Vt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[l]:h.push(l))}else g={eventTime:g,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=g,a=f):d=d.next=g,s|=h;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(d===null&&(a=f),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Nr|=s,e.lanes=s,e.memoizedState=f}}function bc(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(b(191,o));o.call(n)}}}var Ro={},Ct=lr(Ro),ho=lr(Ro),mo=lr(Ro);function yr(e){if(e===Ro)throw Error(b(174));return e}function Xa(e,t){switch(Y(mo,t),Y(ho,e),Y(Ct,Ro),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:kl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=kl(t,e)}te(Ct),Y(Ct,t)}function an(){te(Ct),te(ho),te(mo)}function Zf(e){yr(mo.current);var t=yr(Ct.current),r=kl(t,e.type);t!==r&&(Y(ho,e),Y(Ct,r))}function Za(e){ho.current===e&&(te(Ct),te(ho))}var ne=lr(0);function Ii(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ws=[];function eu(){for(var e=0;e<Ws.length;e++)Ws[e]._workInProgressVersionPrimary=null;Ws.length=0}var ii=At.ReactCurrentDispatcher,Js=At.ReactCurrentBatchConfig,Er=0,oe=null,pe=null,ye=null,Oi=!1,qn=!1,yo=0,vg=0;function Ce(){throw Error(b(321))}function tu(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!mt(e[r],t[r]))return!1;return!0}function ru(e,t,r,n,o,i){if(Er=i,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ii.current=e===null||e.memoizedState===null?Sg:kg,e=r(n,o),qn){i=0;do{if(qn=!1,yo=0,25<=i)throw Error(b(301));i+=1,ye=pe=null,t.updateQueue=null,ii.current=Cg,e=r(n,o)}while(qn)}if(ii.current=Ai,t=pe!==null&&pe.next!==null,Er=0,ye=pe=oe=null,Oi=!1,t)throw Error(b(300));return e}function nu(){var e=yo!==0;return yo=0,e}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ye===null?oe.memoizedState=ye=e:ye=ye.next=e,ye}function tt(){if(pe===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=pe.next;var t=ye===null?oe.memoizedState:ye.next;if(t!==null)ye=t,pe=e;else{if(e===null)throw Error(b(310));pe=e,e={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},ye===null?oe.memoizedState=ye=e:ye=ye.next=e}return ye}function vo(e,t){return typeof t=="function"?t(e):t}function Qs(e){var t=tt(),r=t.queue;if(r===null)throw Error(b(311));r.lastRenderedReducer=e;var n=pe,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}n.baseQueue=o=i,r.pending=null}if(o!==null){i=o.next,n=n.baseState;var l=s=null,a=null,u=i;do{var d=u.lane;if((Er&d)===d)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,s=n):a=a.next=f,oe.lanes|=d,Nr|=d}u=u.next}while(u!==null&&u!==i);a===null?s=n:a.next=l,mt(n,t.memoizedState)||(_e=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=a,r.lastRenderedState=n}if(e=r.interleaved,e!==null){o=e;do i=o.lane,oe.lanes|=i,Nr|=i,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Gs(e){var t=tt(),r=t.queue;if(r===null)throw Error(b(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(o!==null){r.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);mt(i,t.memoizedState)||(_e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function ep(){}function tp(e,t){var r=oe,n=tt(),o=t(),i=!mt(n.memoizedState,o);if(i&&(n.memoizedState=o,_e=!0),n=n.queue,ou(op.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||ye!==null&&ye.memoizedState.tag&1){if(r.flags|=2048,go(9,np.bind(null,r,n,o,t),void 0,null),xe===null)throw Error(b(349));Er&30||rp(r,t,o)}return o}function rp(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function np(e,t,r,n){t.value=r,t.getSnapshot=n,ip(t)&&sp(e)}function op(e,t,r){return r(function(){ip(t)&&sp(e)})}function ip(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!mt(e,r)}catch{return!0}}function sp(e){var t=It(e,1);t!==null&&pt(t,e,1,-1)}function Pc(e){var t=xt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:e},t.queue=e,e=e.dispatch=wg.bind(null,oe,e),[t.memoizedState,e]}function go(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function lp(){return tt().memoizedState}function si(e,t,r,n){var o=xt();oe.flags|=e,o.memoizedState=go(1|t,r,void 0,n===void 0?null:n)}function ts(e,t,r,n){var o=tt();n=n===void 0?null:n;var i=void 0;if(pe!==null){var s=pe.memoizedState;if(i=s.destroy,n!==null&&tu(n,s.deps)){o.memoizedState=go(t,r,i,n);return}}oe.flags|=e,o.memoizedState=go(1|t,r,i,n)}function Tc(e,t){return si(8390656,8,e,t)}function ou(e,t){return ts(2048,8,e,t)}function ap(e,t){return ts(4,2,e,t)}function up(e,t){return ts(4,4,e,t)}function cp(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 dp(e,t,r){return r=r!=null?r.concat([e]):null,ts(4,4,cp.bind(null,t,e),r)}function iu(){}function fp(e,t){var r=tt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&tu(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function pp(e,t){var r=tt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&tu(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function hp(e,t,r){return Er&21?(mt(r,t)||(r=xf(),oe.lanes|=r,Nr|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,_e=!0),e.memoizedState=r)}function gg(e,t){var r=W;W=r!==0&&4>r?r:4,e(!0);var n=Js.transition;Js.transition={};try{e(!1),t()}finally{W=r,Js.transition=n}}function mp(){return tt().memoizedState}function xg(e,t,r){var n=er(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},yp(e))vp(t,r);else if(r=Yf(e,t,r,n),r!==null){var o=$e();pt(r,e,n,o),gp(r,t,n)}}function wg(e,t,r){var n=er(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(yp(e))vp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,r);if(o.hasEagerState=!0,o.eagerState=l,mt(l,s)){var a=t.interleaved;a===null?(o.next=o,qa(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}r=Yf(e,t,o,n),r!==null&&(o=$e(),pt(r,e,n,o),gp(r,t,n))}}function yp(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function vp(e,t){qn=Oi=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function gp(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Aa(e,r)}}var Ai={readContext:et,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},Sg={readContext:et,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:Tc,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,si(4194308,4,cp.bind(null,t,e),r)},useLayoutEffect:function(e,t){return si(4194308,4,e,t)},useInsertionEffect:function(e,t){return si(4,2,e,t)},useMemo:function(e,t){var r=xt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=xt();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=xg.bind(null,oe,e),[n.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:Pc,useDebugValue:iu,useDeferredValue:function(e){return xt().memoizedState=e},useTransition:function(){var e=Pc(!1),t=e[0];return e=gg.bind(null,e[1]),xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=oe,o=xt();if(re){if(r===void 0)throw Error(b(407));r=r()}else{if(r=t(),xe===null)throw Error(b(349));Er&30||rp(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Tc(op.bind(null,n,i,e),[e]),n.flags|=2048,go(9,np.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=xt(),t=xe.identifierPrefix;if(re){var r=Pt,n=bt;r=(n&~(1<<32-ft(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=yo++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=vg++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kg={readContext:et,useCallback:fp,useContext:et,useEffect:ou,useImperativeHandle:dp,useInsertionEffect:ap,useLayoutEffect:up,useMemo:pp,useReducer:Qs,useRef:lp,useState:function(){return Qs(vo)},useDebugValue:iu,useDeferredValue:function(e){var t=tt();return hp(t,pe.memoizedState,e)},useTransition:function(){var e=Qs(vo)[0],t=tt().memoizedState;return[e,t]},useMutableSource:ep,useSyncExternalStore:tp,useId:mp,unstable_isNewReconciler:!1},Cg={readContext:et,useCallback:fp,useContext:et,useEffect:ou,useImperativeHandle:dp,useInsertionEffect:ap,useLayoutEffect:up,useMemo:pp,useReducer:Gs,useRef:lp,useState:function(){return Gs(vo)},useDebugValue:iu,useDeferredValue:function(e){var t=tt();return pe===null?t.memoizedState=e:hp(t,pe.memoizedState,e)},useTransition:function(){var e=Gs(vo)[0],t=tt().memoizedState;return[e,t]},useMutableSource:ep,useSyncExternalStore:tp,useId:mp,unstable_isNewReconciler:!1};function lt(e,t){if(e&&e.defaultProps){t=ie({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Vl(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:ie({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var rs={isMounted:function(e){return(e=e._reactInternals)?Tr(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=$e(),o=er(e),i=Tt(n,o);i.payload=t,r!=null&&(i.callback=r),t=Xt(e,i,o),t!==null&&(pt(t,e,o,n),oi(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=$e(),o=er(e),i=Tt(n,o);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=Xt(e,i,o),t!==null&&(pt(t,e,o,n),oi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=$e(),n=er(e),o=Tt(r,n);o.tag=2,t!=null&&(o.callback=t),t=Xt(e,o,n),t!==null&&(pt(t,e,n,r),oi(t,e,n))}};function _c(e,t,r,n,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,s):t.prototype&&t.prototype.isPureReactComponent?!uo(r,n)||!uo(o,i):!0}function xp(e,t,r){var n=!1,o=or,i=t.contextType;return typeof i=="object"&&i!==null?i=et(i):(o=Ie(t)?Cr:Ne.current,n=t.contextTypes,i=(n=n!=null)?on(e,o):or),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=rs,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Lc(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&rs.enqueueReplaceState(t,t.state,null)}function Hl(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},Ya(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=et(i):(i=Ie(t)?Cr:Ne.current,o.context=on(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Vl(e,t,i,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&rs.enqueueReplaceState(o,o.state,null),Li(e,r,o,n),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function un(e,t){try{var r="",n=t;do r+=Yy(n),n=n.return;while(n);var o=r}catch(i){o=`
|
|
31
|
+
Error generating stack: `+i.message+`
|
|
32
|
+
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function qs(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Kl(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var jg=typeof WeakMap=="function"?WeakMap:Map;function wp(e,t,r){r=Tt(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Di||(Di=!0,ta=n),Kl(e,t)},r}function Sp(e,t,r){r=Tt(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){Kl(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Kl(e,t),typeof n!="function"&&(Zt===null?Zt=new Set([this]):Zt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function Ic(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new jg;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=Dg.bind(null,e,t,r),t.then(e,e))}function Oc(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 Ac(e,t,r,n,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Tt(-1,1),t.tag=2,Xt(r,t,1))),r.lanes|=1),e)}var Eg=At.ReactCurrentOwner,_e=!1;function Re(e,t,r,n){t.child=e===null?qf(t,null,r,n):ln(t,e.child,r,n)}function Mc(e,t,r,n,o){r=r.render;var i=t.ref;return en(t,o),n=ru(e,t,r,n,i,o),r=nu(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ot(e,t,o)):(re&&r&&Ha(t),t.flags|=1,Re(e,t,n,o),t.child)}function Dc(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!pu(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,kp(e,t,i,n,o)):(e=ci(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(r=r.compare,r=r!==null?r:uo,r(s,n)&&e.ref===t.ref)return Ot(e,t,o)}return t.flags|=1,e=tr(i,n),e.ref=t.ref,e.return=t,t.child=e}function kp(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(uo(i,n)&&e.ref===t.ref)if(_e=!1,t.pendingProps=n=i,(e.lanes&o)!==0)e.flags&131072&&(_e=!0);else return t.lanes=e.lanes,Ot(e,t,o)}return Wl(e,t,r,n,o)}function Cp(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(Qr,Be),Be|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(Qr,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Y(Qr,Be),Be|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,Y(Qr,Be),Be|=n;return Re(e,t,o,r),t.child}function jp(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Wl(e,t,r,n,o){var i=Ie(r)?Cr:Ne.current;return i=on(t,i),en(t,o),r=ru(e,t,r,n,i,o),n=nu(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ot(e,t,o)):(re&&n&&Ha(t),t.flags|=1,Re(e,t,r,o),t.child)}function zc(e,t,r,n,o){if(Ie(r)){var i=!0;$i(t)}else i=!1;if(en(t,o),t.stateNode===null)li(e,t),xp(t,r,n),Hl(t,r,n,o),n=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=r.contextType;typeof u=="object"&&u!==null?u=et(u):(u=Ie(r)?Cr:Ne.current,u=on(t,u));var d=r.getDerivedStateFromProps,f=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==n||a!==u)&&Lc(t,s,n,u),Vt=!1;var h=t.memoizedState;s.state=h,Li(t,n,s,o),a=t.memoizedState,l!==n||h!==a||Le.current||Vt?(typeof d=="function"&&(Vl(t,r,d,n),a=t.memoizedState),(l=Vt||_c(t,r,l,n,h,a,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=a),s.props=n,s.state=a,s.context=u,n=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,Xf(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:lt(t.type,l),s.props=u,f=t.pendingProps,h=s.context,a=r.contextType,typeof a=="object"&&a!==null?a=et(a):(a=Ie(r)?Cr:Ne.current,a=on(t,a));var g=r.getDerivedStateFromProps;(d=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||h!==a)&&Lc(t,s,n,a),Vt=!1,h=t.memoizedState,s.state=h,Li(t,n,s,o);var v=t.memoizedState;l!==f||h!==v||Le.current||Vt?(typeof g=="function"&&(Vl(t,r,g,n),v=t.memoizedState),(u=Vt||_c(t,r,u,n,h,v,a)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,v,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,v,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=v),s.props=n,s.state=v,s.context=a,n=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Jl(e,t,r,n,i,o)}function Jl(e,t,r,n,o,i){jp(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return o&&jc(t,r,!1),Ot(e,t,i);n=t.stateNode,Eg.current=t;var l=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=ln(t,e.child,null,i),t.child=ln(t,null,l,i)):Re(e,t,l,i),t.memoizedState=n.state,o&&jc(t,r,!0),t.child}function Ep(e){var t=e.stateNode;t.pendingContext?Cc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cc(e,t.context,!1),Xa(e,t.containerInfo)}function Fc(e,t,r,n,o){return sn(),Wa(o),t.flags|=256,Re(e,t,r,n),t.child}var Ql={dehydrated:null,treeContext:null,retryLane:0};function Gl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Np(e,t,r){var n=t.pendingProps,o=ne.current,i=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Y(ne,o&1),e===null)return Bl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=n.children,e=n.fallback,i?(n=t.mode,i=t.child,s={mode:"hidden",children:s},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=is(s,n,0,null),e=wr(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Gl(r),t.memoizedState=Ql,e):su(t,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return Ng(e,t,s,n,l,o,r);if(i){i=n.fallback,s=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:n.children};return!(s&1)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=a,t.deletions=null):(n=tr(o,a),n.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=tr(l,i):(i=wr(i,s,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,s=e.child.memoizedState,s=s===null?Gl(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=Ql,n}return i=e.child,e=i.sibling,n=tr(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function su(e,t){return t=is({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Wo(e,t,r,n){return n!==null&&Wa(n),ln(t,e.child,null,r),e=su(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ng(e,t,r,n,o,i,s){if(r)return t.flags&256?(t.flags&=-257,n=qs(Error(b(422))),Wo(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=is({mode:"visible",children:n.children},o,0,null),i=wr(i,o,s,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&ln(t,e.child,null,s),t.child.memoizedState=Gl(s),t.memoizedState=Ql,i);if(!(t.mode&1))return Wo(e,t,s,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var l=n.dgst;return n=l,i=Error(b(419)),n=qs(i,n,void 0),Wo(e,t,s,n)}if(l=(s&e.childLanes)!==0,_e||l){if(n=xe,n!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(n.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,It(e,o),pt(n,e,o,-1))}return fu(),n=qs(Error(b(421))),Wo(e,t,s,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=zg.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Ve=Yt(o.nextSibling),He=t,re=!0,ut=null,e!==null&&(qe[Ye++]=bt,qe[Ye++]=Pt,qe[Ye++]=jr,bt=e.id,Pt=e.overflow,jr=t),t=su(t,n.children),t.flags|=4096,t)}function Bc(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ul(e.return,t,r)}function Ys(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function Rp(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Re(e,t,n.children,r),n=ne.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bc(e,r,t);else if(e.tag===19)Bc(e,r,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}n&=1}if(Y(ne,n),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Ii(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Ys(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ii(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Ys(t,!0,r,null,i);break;case"together":Ys(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function li(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ot(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Nr|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(b(153));if(t.child!==null){for(e=t.child,r=tr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=tr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Rg(e,t,r){switch(t.tag){case 3:Ep(t),sn();break;case 5:Zf(t);break;case 1:Ie(t.type)&&$i(t);break;case 4:Xa(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Y(Ti,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Y(ne,ne.current&1),t.flags|=128,null):r&t.child.childLanes?Np(e,t,r):(Y(ne,ne.current&1),e=Ot(e,t,r),e!==null?e.sibling:null);Y(ne,ne.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return Rp(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(ne,ne.current),n)break;return null;case 22:case 23:return t.lanes=0,Cp(e,t,r)}return Ot(e,t,r)}var $p,ql,bp,Pp;$p=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};ql=function(){};bp=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,yr(Ct.current);var i=null;switch(r){case"input":o=gl(e,o),n=gl(e,n),i=[];break;case"select":o=ie({},o,{value:void 0}),n=ie({},n,{value:void 0}),i=[];break;case"textarea":o=Sl(e,o),n=Sl(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Ni)}Cl(r,n);var s;r=null;for(u in o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(s in l)l.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ro.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var a=n[u];if(l=o!=null?o[u]:void 0,n.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(r||(r={}),r[s]=a[s])}else r||(i||(i=[]),i.push(u,r)),r=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ro.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Z("scroll",e),i||l===a||(i=[])):(i=i||[]).push(u,a))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Pp=function(e,t,r,n){r!==n&&(t.flags|=4)};function Tn(e,t){if(!re)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function je(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function $g(e,t,r){var n=t.pendingProps;switch(Ka(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return Ie(t.type)&&Ri(),je(t),null;case 3:return n=t.stateNode,an(),te(Le),te(Ne),eu(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ho(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ut!==null&&(oa(ut),ut=null))),ql(e,t),je(t),null;case 5:Za(t);var o=yr(mo.current);if(r=t.type,e!==null&&t.stateNode!=null)bp(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(b(166));return je(t),null}if(e=yr(Ct.current),Ho(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[St]=t,n[po]=i,e=(t.mode&1)!==0,r){case"dialog":Z("cancel",n),Z("close",n);break;case"iframe":case"object":case"embed":Z("load",n);break;case"video":case"audio":for(o=0;o<Vn.length;o++)Z(Vn[o],n);break;case"source":Z("error",n);break;case"img":case"image":case"link":Z("error",n),Z("load",n);break;case"details":Z("toggle",n);break;case"input":qu(n,i),Z("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Z("invalid",n);break;case"textarea":Xu(n,i),Z("invalid",n)}Cl(r,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var l=i[s];s==="children"?typeof l=="string"?n.textContent!==l&&(i.suppressHydrationWarning!==!0&&Vo(n.textContent,l,e),o=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Vo(n.textContent,l,e),o=["children",""+l]):ro.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Z("scroll",n)}switch(r){case"input":Oo(n),Yu(n,i,!0);break;case"textarea":Oo(n),Zu(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=Ni)}n=o,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=nf(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[St]=t,e[po]=n,$p(e,t,!1,!1),t.stateNode=e;e:{switch(s=jl(r,n),r){case"dialog":Z("cancel",e),Z("close",e),o=n;break;case"iframe":case"object":case"embed":Z("load",e),o=n;break;case"video":case"audio":for(o=0;o<Vn.length;o++)Z(Vn[o],e);o=n;break;case"source":Z("error",e),o=n;break;case"img":case"image":case"link":Z("error",e),Z("load",e),o=n;break;case"details":Z("toggle",e),o=n;break;case"input":qu(e,n),o=gl(e,n),Z("invalid",e);break;case"option":o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=ie({},n,{value:void 0}),Z("invalid",e);break;case"textarea":Xu(e,n),o=Sl(e,n),Z("invalid",e);break;default:o=n}Cl(r,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?lf(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&of(e,a)):i==="children"?typeof a=="string"?(r!=="textarea"||a!=="")&&no(e,a):typeof a=="number"&&no(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ro.hasOwnProperty(i)?a!=null&&i==="onScroll"&&Z("scroll",e):a!=null&&Pa(e,i,a,s))}switch(r){case"input":Oo(e),Yu(e,n,!1);break;case"textarea":Oo(e),Zu(e);break;case"option":n.value!=null&&e.setAttribute("value",""+nr(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?qr(e,!!n.multiple,i,!1):n.defaultValue!=null&&qr(e,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ni)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return je(t),null;case 6:if(e&&t.stateNode!=null)Pp(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(b(166));if(r=yr(mo.current),yr(Ct.current),Ho(t)){if(n=t.stateNode,r=t.memoizedProps,n[St]=t,(i=n.nodeValue!==r)&&(e=He,e!==null))switch(e.tag){case 3:Vo(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Vo(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[St]=t,t.stateNode=n}return je(t),null;case 13:if(te(ne),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(re&&Ve!==null&&t.mode&1&&!(t.flags&128))Qf(),sn(),t.flags|=98560,i=!1;else if(i=Ho(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(b(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(b(317));i[St]=t}else sn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;je(t),i=!1}else ut!==null&&(oa(ut),ut=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||ne.current&1?he===0&&(he=3):fu())),t.updateQueue!==null&&(t.flags|=4),je(t),null);case 4:return an(),ql(e,t),e===null&&co(t.stateNode.containerInfo),je(t),null;case 10:return Ga(t.type._context),je(t),null;case 17:return Ie(t.type)&&Ri(),je(t),null;case 19:if(te(ne),i=t.memoizedState,i===null)return je(t),null;if(n=(t.flags&128)!==0,s=i.rendering,s===null)if(n)Tn(i,!1);else{if(he!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ii(e),s!==null){for(t.flags|=128,Tn(i,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Y(ne,ne.current&1|2),t.child}e=e.sibling}i.tail!==null&&ae()>cn&&(t.flags|=128,n=!0,Tn(i,!1),t.lanes=4194304)}else{if(!n)if(e=Ii(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Tn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!re)return je(t),null}else 2*ae()-i.renderingStartTime>cn&&r!==1073741824&&(t.flags|=128,n=!0,Tn(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ae(),t.sibling=null,r=ne.current,Y(ne,n?r&1|2:r&1),t):(je(t),null);case 22:case 23:return du(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Be&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function bg(e,t){switch(Ka(t),t.tag){case 1:return Ie(t.type)&&Ri(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return an(),te(Le),te(Ne),eu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Za(t),null;case 13:if(te(ne),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));sn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(ne),null;case 4:return an(),null;case 10:return Ga(t.type._context),null;case 22:case 23:return du(),null;case 24:return null;default:return null}}var Jo=!1,Ee=!1,Pg=typeof WeakSet=="function"?WeakSet:Set,L=null;function Jr(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){le(e,t,n)}else r.current=null}function Yl(e,t,r){try{r()}catch(n){le(e,t,n)}}var Uc=!1;function Tg(e,t){if(Il=Ci,e=Of(),Va(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,l=-1,a=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var g;f!==r||o!==0&&f.nodeType!==3||(l=s+o),f!==i||n!==0&&f.nodeType!==3||(a=s+n),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===e)break t;if(h===r&&++u===o&&(l=s),h===i&&++d===n&&(a=s),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}r=l===-1||a===-1?null:{start:l,end:a}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ol={focusedElem:e,selectionRange:r},Ci=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,k=v.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:lt(t.type,x),k);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(w){le(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return v=Uc,Uc=!1,v}function Yn(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Yl(t,r,i)}o=o.next}while(o!==n)}}function ns(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Xl(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Tp(e){var t=e.alternate;t!==null&&(e.alternate=null,Tp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[po],delete t[Dl],delete t[pg],delete t[hg])),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 _p(e){return e.tag===5||e.tag===3||e.tag===4}function Vc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_p(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 Zl(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ni));else if(n!==4&&(e=e.child,e!==null))for(Zl(e,t,r),e=e.sibling;e!==null;)Zl(e,t,r),e=e.sibling}function ea(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(ea(e,t,r),e=e.sibling;e!==null;)ea(e,t,r),e=e.sibling}var we=null,at=!1;function zt(e,t,r){for(r=r.child;r!==null;)Lp(e,t,r),r=r.sibling}function Lp(e,t,r){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(Gi,r)}catch{}switch(r.tag){case 5:Ee||Jr(r,t);case 6:var n=we,o=at;we=null,zt(e,t,r),we=n,at=o,we!==null&&(at?(e=we,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):we.removeChild(r.stateNode));break;case 18:we!==null&&(at?(e=we,r=r.stateNode,e.nodeType===8?Hs(e.parentNode,r):e.nodeType===1&&Hs(e,r),lo(e)):Hs(we,r.stateNode));break;case 4:n=we,o=at,we=r.stateNode.containerInfo,at=!0,zt(e,t,r),we=n,at=o;break;case 0:case 11:case 14:case 15:if(!Ee&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Yl(r,t,s),o=o.next}while(o!==n)}zt(e,t,r);break;case 1:if(!Ee&&(Jr(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){le(r,t,l)}zt(e,t,r);break;case 21:zt(e,t,r);break;case 22:r.mode&1?(Ee=(n=Ee)||r.memoizedState!==null,zt(e,t,r),Ee=n):zt(e,t,r);break;default:zt(e,t,r)}}function Hc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Pg),t.forEach(function(n){var o=Fg.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function st(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var i=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:we=l.stateNode,at=!1;break e;case 3:we=l.stateNode.containerInfo,at=!0;break e;case 4:we=l.stateNode.containerInfo,at=!0;break e}l=l.return}if(we===null)throw Error(b(160));Lp(i,s,o),we=null,at=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){le(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ip(t,e),t=t.sibling}function Ip(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(st(t,e),gt(e),n&4){try{Yn(3,e,e.return),ns(3,e)}catch(x){le(e,e.return,x)}try{Yn(5,e,e.return)}catch(x){le(e,e.return,x)}}break;case 1:st(t,e),gt(e),n&512&&r!==null&&Jr(r,r.return);break;case 5:if(st(t,e),gt(e),n&512&&r!==null&&Jr(r,r.return),e.flags&32){var o=e.stateNode;try{no(o,"")}catch(x){le(e,e.return,x)}}if(n&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=r!==null?r.memoizedProps:i,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&tf(o,i),jl(l,s);var u=jl(l,i);for(s=0;s<a.length;s+=2){var d=a[s],f=a[s+1];d==="style"?lf(o,f):d==="dangerouslySetInnerHTML"?of(o,f):d==="children"?no(o,f):Pa(o,d,f,u)}switch(l){case"input":xl(o,i);break;case"textarea":rf(o,i);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?qr(o,!!i.multiple,g,!1):h!==!!i.multiple&&(i.defaultValue!=null?qr(o,!!i.multiple,i.defaultValue,!0):qr(o,!!i.multiple,i.multiple?[]:"",!1))}o[po]=i}catch(x){le(e,e.return,x)}}break;case 6:if(st(t,e),gt(e),n&4){if(e.stateNode===null)throw Error(b(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(x){le(e,e.return,x)}}break;case 3:if(st(t,e),gt(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{lo(t.containerInfo)}catch(x){le(e,e.return,x)}break;case 4:st(t,e),gt(e);break;case 13:st(t,e),gt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(uu=ae())),n&4&&Hc(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(Ee=(u=Ee)||d,st(t,e),Ee=u):st(t,e),gt(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(L=e,d=e.child;d!==null;){for(f=L=d;L!==null;){switch(h=L,g=h.child,h.tag){case 0:case 11:case 14:case 15:Yn(4,h,h.return);break;case 1:Jr(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){n=h,r=h.return;try{t=n,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(x){le(n,r,x)}}break;case 5:Jr(h,h.return);break;case 22:if(h.memoizedState!==null){Wc(f);continue}}g!==null?(g.return=h,L=g):Wc(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,a=f.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=sf("display",s))}catch(x){le(e,e.return,x)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(x){le(e,e.return,x)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:st(t,e),gt(e),n&4&&Hc(e);break;case 21:break;default:st(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(_p(r)){var n=r;break e}r=r.return}throw Error(b(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(no(o,""),n.flags&=-33);var i=Vc(e);ea(e,i,o);break;case 3:case 4:var s=n.stateNode.containerInfo,l=Vc(e);Zl(e,l,s);break;default:throw Error(b(161))}}catch(a){le(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _g(e,t,r){L=e,Op(e)}function Op(e,t,r){for(var n=(e.mode&1)!==0;L!==null;){var o=L,i=o.child;if(o.tag===22&&n){var s=o.memoizedState!==null||Jo;if(!s){var l=o.alternate,a=l!==null&&l.memoizedState!==null||Ee;l=Jo;var u=Ee;if(Jo=s,(Ee=a)&&!u)for(L=o;L!==null;)s=L,a=s.child,s.tag===22&&s.memoizedState!==null?Jc(o):a!==null?(a.return=s,L=a):Jc(o);for(;i!==null;)L=i,Op(i),i=i.sibling;L=o,Jo=l,Ee=u}Kc(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,L=i):Kc(e)}}function Kc(e){for(;L!==null;){var t=L;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ee||ns(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Ee)if(r===null)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:lt(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&bc(t,i,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}bc(t,s,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break;case"img":a.src&&(r.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&lo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(b(163))}Ee||t.flags&512&&Xl(t)}catch(h){le(t,t.return,h)}}if(t===e){L=null;break}if(r=t.sibling,r!==null){r.return=t.return,L=r;break}L=t.return}}function Wc(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var r=t.sibling;if(r!==null){r.return=t.return,L=r;break}L=t.return}}function Jc(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ns(4,t)}catch(a){le(t,r,a)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var o=t.return;try{n.componentDidMount()}catch(a){le(t,o,a)}}var i=t.return;try{Xl(t)}catch(a){le(t,i,a)}break;case 5:var s=t.return;try{Xl(t)}catch(a){le(t,s,a)}}}catch(a){le(t,t.return,a)}if(t===e){L=null;break}var l=t.sibling;if(l!==null){l.return=t.return,L=l;break}L=t.return}}var Lg=Math.ceil,Mi=At.ReactCurrentDispatcher,lu=At.ReactCurrentOwner,Ze=At.ReactCurrentBatchConfig,H=0,xe=null,de=null,Se=0,Be=0,Qr=lr(0),he=0,xo=null,Nr=0,os=0,au=0,Xn=null,Te=null,uu=0,cn=1/0,Nt=null,Di=!1,ta=null,Zt=null,Qo=!1,Jt=null,zi=0,Zn=0,ra=null,ai=-1,ui=0;function $e(){return H&6?ae():ai!==-1?ai:ai=ae()}function er(e){return e.mode&1?H&2&&Se!==0?Se&-Se:yg.transition!==null?(ui===0&&(ui=xf()),ui):(e=W,e!==0||(e=window.event,e=e===void 0?16:Nf(e.type)),e):1}function pt(e,t,r,n){if(50<Zn)throw Zn=0,ra=null,Error(b(185));jo(e,r,n),(!(H&2)||e!==xe)&&(e===xe&&(!(H&2)&&(os|=r),he===4&&Kt(e,Se)),Oe(e,n),r===1&&H===0&&!(t.mode&1)&&(cn=ae()+500,es&&ar()))}function Oe(e,t){var r=e.callbackNode;yv(e,t);var n=ki(e,e===xe?Se:0);if(n===0)r!==null&&rc(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&rc(r),t===1)e.tag===0?mg(Qc.bind(null,e)):Kf(Qc.bind(null,e)),dg(function(){!(H&6)&&ar()}),r=null;else{switch(wf(n)){case 1:r=Oa;break;case 4:r=vf;break;case 16:r=Si;break;case 536870912:r=gf;break;default:r=Si}r=Vp(r,Ap.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Ap(e,t){if(ai=-1,ui=0,H&6)throw Error(b(327));var r=e.callbackNode;if(tn()&&e.callbackNode!==r)return null;var n=ki(e,e===xe?Se:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Fi(e,n);else{t=n;var o=H;H|=2;var i=Dp();(xe!==e||Se!==t)&&(Nt=null,cn=ae()+500,xr(e,t));do try{Ag();break}catch(l){Mp(e,l)}while(!0);Qa(),Mi.current=i,H=o,de!==null?t=0:(xe=null,Se=0,t=he)}if(t!==0){if(t===2&&(o=bl(e),o!==0&&(n=o,t=na(e,o))),t===1)throw r=xo,xr(e,0),Kt(e,n),Oe(e,ae()),r;if(t===6)Kt(e,n);else{if(o=e.current.alternate,!(n&30)&&!Ig(o)&&(t=Fi(e,n),t===2&&(i=bl(e),i!==0&&(n=i,t=na(e,i))),t===1))throw r=xo,xr(e,0),Kt(e,n),Oe(e,ae()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(b(345));case 2:pr(e,Te,Nt);break;case 3:if(Kt(e,n),(n&130023424)===n&&(t=uu+500-ae(),10<t)){if(ki(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){$e(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ml(pr.bind(null,e,Te,Nt),t);break}pr(e,Te,Nt);break;case 4:if(Kt(e,n),(n&4194240)===n)break;for(t=e.eventTimes,o=-1;0<n;){var s=31-ft(n);i=1<<s,s=t[s],s>o&&(o=s),n&=~i}if(n=o,n=ae()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Lg(n/1960))-n,10<n){e.timeoutHandle=Ml(pr.bind(null,e,Te,Nt),n);break}pr(e,Te,Nt);break;case 5:pr(e,Te,Nt);break;default:throw Error(b(329))}}}return Oe(e,ae()),e.callbackNode===r?Ap.bind(null,e):null}function na(e,t){var r=Xn;return e.current.memoizedState.isDehydrated&&(xr(e,t).flags|=256),e=Fi(e,t),e!==2&&(t=Te,Te=r,t!==null&&oa(t)),e}function oa(e){Te===null?Te=e:Te.push.apply(Te,e)}function Ig(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!mt(i(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 Kt(e,t){for(t&=~au,t&=~os,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ft(t),n=1<<r;e[r]=-1,t&=~n}}function Qc(e){if(H&6)throw Error(b(327));tn();var t=ki(e,0);if(!(t&1))return Oe(e,ae()),null;var r=Fi(e,t);if(e.tag!==0&&r===2){var n=bl(e);n!==0&&(t=n,r=na(e,n))}if(r===1)throw r=xo,xr(e,0),Kt(e,t),Oe(e,ae()),r;if(r===6)throw Error(b(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pr(e,Te,Nt),Oe(e,ae()),null}function cu(e,t){var r=H;H|=1;try{return e(t)}finally{H=r,H===0&&(cn=ae()+500,es&&ar())}}function Rr(e){Jt!==null&&Jt.tag===0&&!(H&6)&&tn();var t=H;H|=1;var r=Ze.transition,n=W;try{if(Ze.transition=null,W=1,e)return e()}finally{W=n,Ze.transition=r,H=t,!(H&6)&&ar()}}function du(){Be=Qr.current,te(Qr)}function xr(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,cg(r)),de!==null)for(r=de.return;r!==null;){var n=r;switch(Ka(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Ri();break;case 3:an(),te(Le),te(Ne),eu();break;case 5:Za(n);break;case 4:an();break;case 13:te(ne);break;case 19:te(ne);break;case 10:Ga(n.type._context);break;case 22:case 23:du()}r=r.return}if(xe=e,de=e=tr(e.current,null),Se=Be=t,he=0,xo=null,au=os=Nr=0,Te=Xn=null,mr!==null){for(t=0;t<mr.length;t++)if(r=mr[t],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,i=r.pending;if(i!==null){var s=i.next;i.next=o,n.next=s}r.pending=n}mr=null}return e}function Mp(e,t){do{var r=de;try{if(Qa(),ii.current=Ai,Oi){for(var n=oe.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}Oi=!1}if(Er=0,ye=pe=oe=null,qn=!1,yo=0,lu.current=null,r===null||r.return===null){he=1,xo=t,de=null;break}e:{var i=e,s=r.return,l=r,a=t;if(t=Se,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=Oc(s);if(g!==null){g.flags&=-257,Ac(g,s,l,i,t),g.mode&1&&Ic(i,u,t),t=g,a=u;var v=t.updateQueue;if(v===null){var x=new Set;x.add(a),t.updateQueue=x}else v.add(a);break e}else{if(!(t&1)){Ic(i,u,t),fu();break e}a=Error(b(426))}}else if(re&&l.mode&1){var k=Oc(s);if(k!==null){!(k.flags&65536)&&(k.flags|=256),Ac(k,s,l,i,t),Wa(un(a,l));break e}}i=a=un(a,l),he!==4&&(he=2),Xn===null?Xn=[i]:Xn.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=wp(i,a,t);$c(i,m);break e;case 1:l=a;var p=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Zt===null||!Zt.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var w=Sp(i,l,t);$c(i,w);break e}}i=i.return}while(i!==null)}Fp(r)}catch(N){t=N,de===r&&r!==null&&(de=r=r.return);continue}break}while(!0)}function Dp(){var e=Mi.current;return Mi.current=Ai,e===null?Ai:e}function fu(){(he===0||he===3||he===2)&&(he=4),xe===null||!(Nr&268435455)&&!(os&268435455)||Kt(xe,Se)}function Fi(e,t){var r=H;H|=2;var n=Dp();(xe!==e||Se!==t)&&(Nt=null,xr(e,t));do try{Og();break}catch(o){Mp(e,o)}while(!0);if(Qa(),H=r,Mi.current=n,de!==null)throw Error(b(261));return xe=null,Se=0,he}function Og(){for(;de!==null;)zp(de)}function Ag(){for(;de!==null&&!lv();)zp(de)}function zp(e){var t=Up(e.alternate,e,Be);e.memoizedProps=e.pendingProps,t===null?Fp(e):de=t,lu.current=null}function Fp(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=bg(r,t),r!==null){r.flags&=32767,de=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{he=6,de=null;return}}else if(r=$g(r,t,Be),r!==null){de=r;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);he===0&&(he=5)}function pr(e,t,r){var n=W,o=Ze.transition;try{Ze.transition=null,W=1,Mg(e,t,r,n)}finally{Ze.transition=o,W=n}return null}function Mg(e,t,r,n){do tn();while(Jt!==null);if(H&6)throw Error(b(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(b(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(vv(e,i),e===xe&&(de=xe=null,Se=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Qo||(Qo=!0,Vp(Si,function(){return tn(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=Ze.transition,Ze.transition=null;var s=W;W=1;var l=H;H|=4,lu.current=null,Tg(e,r),Ip(r,e),ng(Ol),Ci=!!Il,Ol=Il=null,e.current=r,_g(r),av(),H=l,W=s,Ze.transition=i}else e.current=r;if(Qo&&(Qo=!1,Jt=e,zi=o),i=e.pendingLanes,i===0&&(Zt=null),dv(r.stateNode),Oe(e,ae()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Di)throw Di=!1,e=ta,ta=null,e;return zi&1&&e.tag!==0&&tn(),i=e.pendingLanes,i&1?e===ra?Zn++:(Zn=0,ra=e):Zn=0,ar(),null}function tn(){if(Jt!==null){var e=wf(zi),t=Ze.transition,r=W;try{if(Ze.transition=null,W=16>e?16:e,Jt===null)var n=!1;else{if(e=Jt,Jt=null,zi=0,H&6)throw Error(b(331));var o=H;for(H|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(L=u;L!==null;){var d=L;switch(d.tag){case 0:case 11:case 15:Yn(8,d,i)}var f=d.child;if(f!==null)f.return=d,L=f;else for(;L!==null;){d=L;var h=d.sibling,g=d.return;if(Tp(d),d===u){L=null;break}if(h!==null){h.return=g,L=h;break}L=g}}}var v=i.alternate;if(v!==null){var x=v.child;if(x!==null){v.child=null;do{var k=x.sibling;x.sibling=null,x=k}while(x!==null)}}L=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,L=s;else e:for(;L!==null;){if(i=L,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Yn(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,L=m;break e}L=i.return}}var p=e.current;for(L=p;L!==null;){s=L;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,L=y;else e:for(s=p;L!==null;){if(l=L,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ns(9,l)}}catch(N){le(l,l.return,N)}if(l===s){L=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,L=w;break e}L=l.return}}if(H=o,ar(),kt&&typeof kt.onPostCommitFiberRoot=="function")try{kt.onPostCommitFiberRoot(Gi,e)}catch{}n=!0}return n}finally{W=r,Ze.transition=t}}return!1}function Gc(e,t,r){t=un(r,t),t=wp(e,t,1),e=Xt(e,t,1),t=$e(),e!==null&&(jo(e,1,t),Oe(e,t))}function le(e,t,r){if(e.tag===3)Gc(e,e,r);else for(;t!==null;){if(t.tag===3){Gc(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Zt===null||!Zt.has(n))){e=un(r,e),e=Sp(t,e,1),t=Xt(t,e,1),e=$e(),t!==null&&(jo(t,1,e),Oe(t,e));break}}t=t.return}}function Dg(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=$e(),e.pingedLanes|=e.suspendedLanes&r,xe===e&&(Se&r)===r&&(he===4||he===3&&(Se&130023424)===Se&&500>ae()-uu?xr(e,0):au|=r),Oe(e,t)}function Bp(e,t){t===0&&(e.mode&1?(t=Do,Do<<=1,!(Do&130023424)&&(Do=4194304)):t=1);var r=$e();e=It(e,t),e!==null&&(jo(e,t,r),Oe(e,r))}function zg(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Bp(e,r)}function Fg(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(b(314))}n!==null&&n.delete(t),Bp(e,r)}var Up;Up=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Le.current)_e=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return _e=!1,Rg(e,t,r);_e=!!(e.flags&131072)}else _e=!1,re&&t.flags&1048576&&Wf(t,Pi,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;li(e,t),e=t.pendingProps;var o=on(t,Ne.current);en(t,r),o=ru(null,t,n,e,o,r);var i=nu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ie(n)?(i=!0,$i(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ya(t),o.updater=rs,t.stateNode=o,o._reactInternals=t,Hl(t,n,e,r),t=Jl(null,t,n,!0,i,r)):(t.tag=0,re&&i&&Ha(t),Re(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(li(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=Ug(n),e=lt(n,e),o){case 0:t=Wl(null,t,n,e,r);break e;case 1:t=zc(null,t,n,e,r);break e;case 11:t=Mc(null,t,n,e,r);break e;case 14:t=Dc(null,t,n,lt(n.type,e),r);break e}throw Error(b(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:lt(n,o),Wl(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:lt(n,o),zc(e,t,n,o,r);case 3:e:{if(Ep(t),e===null)throw Error(b(387));n=t.pendingProps,i=t.memoizedState,o=i.element,Xf(e,t),Li(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=un(Error(b(423)),t),t=Fc(e,t,n,r,o);break e}else if(n!==o){o=un(Error(b(424)),t),t=Fc(e,t,n,r,o);break e}else for(Ve=Yt(t.stateNode.containerInfo.firstChild),He=t,re=!0,ut=null,r=qf(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(sn(),n===o){t=Ot(e,t,r);break e}Re(e,t,n,r)}t=t.child}return t;case 5:return Zf(t),e===null&&Bl(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Al(n,o)?s=null:i!==null&&Al(n,i)&&(t.flags|=32),jp(e,t),Re(e,t,s,r),t.child;case 6:return e===null&&Bl(t),null;case 13:return Np(e,t,r);case 4:return Xa(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ln(t,null,n,r):Re(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:lt(n,o),Mc(e,t,n,o,r);case 7:return Re(e,t,t.pendingProps,r),t.child;case 8:return Re(e,t,t.pendingProps.children,r),t.child;case 12:return Re(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Y(Ti,n._currentValue),n._currentValue=s,i!==null)if(mt(i.value,s)){if(i.children===o.children&&!Le.current){t=Ot(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===n){if(i.tag===1){a=Tt(-1,r&-r),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=r,a=i.alternate,a!==null&&(a.lanes|=r),Ul(i.return,r,t),l.lanes|=r;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(b(341));s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),Ul(s,r,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Re(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,en(t,r),o=et(o),n=n(o),t.flags|=1,Re(e,t,n,r),t.child;case 14:return n=t.type,o=lt(n,t.pendingProps),o=lt(n.type,o),Dc(e,t,n,o,r);case 15:return kp(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:lt(n,o),li(e,t),t.tag=1,Ie(n)?(e=!0,$i(t)):e=!1,en(t,r),xp(t,n,o),Hl(t,n,o,r),Jl(null,t,n,!0,e,r);case 19:return Rp(e,t,r);case 22:return Cp(e,t,r)}throw Error(b(156,t.tag))};function Vp(e,t){return yf(e,t)}function Bg(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xe(e,t,r,n){return new Bg(e,t,r,n)}function pu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ug(e){if(typeof e=="function")return pu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_a)return 11;if(e===La)return 14}return 2}function tr(e,t){var r=e.alternate;return r===null?(r=Xe(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ci(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")pu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Dr:return wr(r.children,o,i,t);case Ta:s=8,o|=8;break;case hl:return e=Xe(12,r,t,o|2),e.elementType=hl,e.lanes=i,e;case ml:return e=Xe(13,r,t,o),e.elementType=ml,e.lanes=i,e;case yl:return e=Xe(19,r,t,o),e.elementType=yl,e.lanes=i,e;case Xd:return is(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qd:s=10;break e;case Yd:s=9;break e;case _a:s=11;break e;case La:s=14;break e;case Ut:s=16,n=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=Xe(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function wr(e,t,r,n){return e=Xe(7,e,n,t),e.lanes=r,e}function is(e,t,r,n){return e=Xe(22,e,n,t),e.elementType=Xd,e.lanes=r,e.stateNode={isHidden:!1},e}function Xs(e,t,r){return e=Xe(6,e,null,t),e.lanes=r,e}function Zs(e,t,r){return t=Xe(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vg(e,t,r,n,o){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=Ls(0),this.expirationTimes=Ls(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ls(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function hu(e,t,r,n,o,i,s,l,a){return e=new Vg(e,t,r,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Xe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ya(i),e}function Hg(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Mr,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Hp(e){if(!e)return or;e=e._reactInternals;e:{if(Tr(e)!==e||e.tag!==1)throw Error(b(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ie(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(b(171))}if(e.tag===1){var r=e.type;if(Ie(r))return Hf(e,r,t)}return t}function Kp(e,t,r,n,o,i,s,l,a){return e=hu(r,n,!0,e,o,i,s,l,a),e.context=Hp(null),r=e.current,n=$e(),o=er(r),i=Tt(n,o),i.callback=t??null,Xt(r,i,o),e.current.lanes=o,jo(e,o,n),Oe(e,n),e}function ss(e,t,r,n){var o=t.current,i=$e(),s=er(o);return r=Hp(r),t.context===null?t.context=r:t.pendingContext=r,t=Tt(i,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Xt(o,t,s),e!==null&&(pt(e,o,s,i),oi(e,o,s)),s}function Bi(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 qc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function mu(e,t){qc(e,t),(e=e.alternate)&&qc(e,t)}function Kg(){return null}var Wp=typeof reportError=="function"?reportError:function(e){console.error(e)};function yu(e){this._internalRoot=e}ls.prototype.render=yu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(b(409));ss(e,t,null,null)};ls.prototype.unmount=yu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rr(function(){ss(null,e,null,null)}),t[Lt]=null}};function ls(e){this._internalRoot=e}ls.prototype.unstable_scheduleHydration=function(e){if(e){var t=Cf();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ht.length&&t!==0&&t<Ht[r].priority;r++);Ht.splice(r,0,e),r===0&&Ef(e)}};function vu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function as(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Yc(){}function Wg(e,t,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var u=Bi(s);i.call(u)}}var s=Kp(t,n,e,0,null,!1,!1,"",Yc);return e._reactRootContainer=s,e[Lt]=s.current,co(e.nodeType===8?e.parentNode:e),Rr(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof n=="function"){var l=n;n=function(){var u=Bi(a);l.call(u)}}var a=hu(e,0,!1,null,null,!1,!1,"",Yc);return e._reactRootContainer=a,e[Lt]=a.current,co(e.nodeType===8?e.parentNode:e),Rr(function(){ss(t,a,r,n)}),a}function us(e,t,r,n,o){var i=r._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var l=o;o=function(){var a=Bi(s);l.call(a)}}ss(t,s,e,o)}else s=Wg(r,t,e,o,n);return Bi(s)}Sf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Un(t.pendingLanes);r!==0&&(Aa(t,r|1),Oe(t,ae()),!(H&6)&&(cn=ae()+500,ar()))}break;case 13:Rr(function(){var n=It(e,1);if(n!==null){var o=$e();pt(n,e,1,o)}}),mu(e,1)}};Ma=function(e){if(e.tag===13){var t=It(e,134217728);if(t!==null){var r=$e();pt(t,e,134217728,r)}mu(e,134217728)}};kf=function(e){if(e.tag===13){var t=er(e),r=It(e,t);if(r!==null){var n=$e();pt(r,e,t,n)}mu(e,t)}};Cf=function(){return W};jf=function(e,t){var r=W;try{return W=e,t()}finally{W=r}};Nl=function(e,t,r){switch(t){case"input":if(xl(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Zi(n);if(!o)throw Error(b(90));ef(n),xl(n,o)}}}break;case"textarea":rf(e,r);break;case"select":t=r.value,t!=null&&qr(e,!!r.multiple,t,!1)}};cf=cu;df=Rr;var Jg={usingClientEntryPoint:!1,Events:[No,Ur,Zi,af,uf,cu]},_n={findFiberByHostInstance:hr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Qg={bundleType:_n.bundleType,version:_n.version,rendererPackageName:_n.rendererPackageName,rendererConfig:_n.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:At.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hf(e),e===null?null:e.stateNode},findFiberByHostInstance:_n.findFiberByHostInstance||Kg,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 Go=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Go.isDisabled&&Go.supportsFiber)try{Gi=Go.inject(Qg),kt=Go}catch{}}Je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jg;Je.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vu(t))throw Error(b(200));return Hg(e,t,null,r)};Je.createRoot=function(e,t){if(!vu(e))throw Error(b(299));var r=!1,n="",o=Wp;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=hu(e,1,!1,null,null,r,!1,n,o),e[Lt]=t.current,co(e.nodeType===8?e.parentNode:e),new yu(t)};Je.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(b(188)):(e=Object.keys(e).join(","),Error(b(268,e)));return e=hf(t),e=e===null?null:e.stateNode,e};Je.flushSync=function(e){return Rr(e)};Je.hydrate=function(e,t,r){if(!as(t))throw Error(b(200));return us(null,e,t,!0,r)};Je.hydrateRoot=function(e,t,r){if(!vu(e))throw Error(b(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",s=Wp;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=Kp(t,null,e,1,r??null,o,!1,i,s),e[Lt]=t.current,co(e),n)for(e=0;e<n.length;e++)r=n[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new ls(t)};Je.render=function(e,t,r){if(!as(t))throw Error(b(200));return us(null,e,t,!1,r)};Je.unmountComponentAtNode=function(e){if(!as(e))throw Error(b(40));return e._reactRootContainer?(Rr(function(){us(null,null,e,!1,function(){e._reactRootContainer=null,e[Lt]=null})}),!0):!1};Je.unstable_batchedUpdates=cu;Je.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!as(r))throw Error(b(200));if(e==null||e._reactInternals===void 0)throw Error(b(38));return us(e,t,r,!1,n)};Je.version="18.3.1-next-f1338f8080-20240426";function Jp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jp)}catch(e){console.error(e)}}Jp(),Wd.exports=Je;var Gg=Wd.exports,Qp,Xc=Gg;Qp=Xc.createRoot,Xc.hydrateRoot;var Gp={exports:{}},cs={};/**
|
|
33
|
+
* @license React
|
|
34
|
+
* react-jsx-runtime.production.min.js
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/var qg=S,Yg=Symbol.for("react.element"),Xg=Symbol.for("react.fragment"),Zg=Object.prototype.hasOwnProperty,e0=qg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,t0={key:!0,ref:!0,__self:!0,__source:!0};function qp(e,t,r){var n,o={},i=null,s=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)Zg.call(t,n)&&!t0.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:Yg,type:e,key:i,ref:s,props:o,_owner:e0.current}}cs.Fragment=Xg;cs.jsx=qp;cs.jsxs=qp;Gp.exports=cs;var c=Gp.exports,ge=function(){return ge=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ge.apply(this,arguments)};function dn(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var ee="-ms-",eo="-moz-",K="-webkit-",Yp="comm",ds="rule",gu="decl",r0="@import",Xp="@keyframes",n0="@layer",Zp=Math.abs,xu=String.fromCharCode,ia=Object.assign;function o0(e,t){return ve(e,0)^45?(((t<<2^ve(e,0))<<2^ve(e,1))<<2^ve(e,2))<<2^ve(e,3):0}function eh(e){return e.trim()}function Rt(e,t){return(e=t.exec(e))?e[0]:e}function z(e,t,r){return e.replace(t,r)}function di(e,t,r){return e.indexOf(t,r)}function ve(e,t){return e.charCodeAt(t)|0}function fn(e,t,r){return e.slice(t,r)}function wt(e){return e.length}function th(e){return e.length}function Hn(e,t){return t.push(e),e}function i0(e,t){return e.map(t).join("")}function Zc(e,t){return e.filter(function(r){return!Rt(r,t)})}var fs=1,pn=1,rh=0,rt=0,ce=0,wn="";function ps(e,t,r,n,o,i,s,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:fs,column:pn,length:s,return:"",siblings:l}}function Bt(e,t){return ia(ps("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ir(e){for(;e.root;)e=Bt(e.root,{children:[e]});Hn(e,e.siblings)}function s0(){return ce}function l0(){return ce=rt>0?ve(wn,--rt):0,pn--,ce===10&&(pn=1,fs--),ce}function ht(){return ce=rt<rh?ve(wn,rt++):0,pn++,ce===10&&(pn=1,fs++),ce}function Sr(){return ve(wn,rt)}function fi(){return rt}function hs(e,t){return fn(wn,e,t)}function sa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function a0(e){return fs=pn=1,rh=wt(wn=e),rt=0,[]}function u0(e){return wn="",e}function el(e){return eh(hs(rt-1,la(e===91?e+2:e===40?e+1:e)))}function c0(e){for(;(ce=Sr())&&ce<33;)ht();return sa(e)>2||sa(ce)>3?"":" "}function d0(e,t){for(;--t&&ht()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return hs(e,fi()+(t<6&&Sr()==32&&ht()==32))}function la(e){for(;ht();)switch(ce){case e:return rt;case 34:case 39:e!==34&&e!==39&&la(ce);break;case 40:e===41&&la(e);break;case 92:ht();break}return rt}function f0(e,t){for(;ht()&&e+ce!==57;)if(e+ce===84&&Sr()===47)break;return"/*"+hs(t,rt-1)+"*"+xu(e===47?e:ht())}function p0(e){for(;!sa(Sr());)ht();return hs(e,rt)}function h0(e){return u0(pi("",null,null,null,[""],e=a0(e),0,[0],e))}function pi(e,t,r,n,o,i,s,l,a){for(var u=0,d=0,f=s,h=0,g=0,v=0,x=1,k=1,m=1,p=0,y="",w=o,N=i,R=n,$=y;k;)switch(v=p,p=ht()){case 40:if(v!=108&&ve($,f-1)==58){di($+=z(el(p),"&","&\f"),"&\f",Zp(u?l[u-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:$+=el(p);break;case 9:case 10:case 13:case 32:$+=c0(v);break;case 92:$+=d0(fi()-1,7);continue;case 47:switch(Sr()){case 42:case 47:Hn(m0(f0(ht(),fi()),t,r,a),a);break;default:$+="/"}break;case 123*x:l[u++]=wt($)*m;case 125*x:case 59:case 0:switch(p){case 0:case 125:k=0;case 59+d:m==-1&&($=z($,/\f/g,"")),g>0&&wt($)-f&&Hn(g>32?td($+";",n,r,f-1,a):td(z($," ","")+";",n,r,f-2,a),a);break;case 59:$+=";";default:if(Hn(R=ed($,t,r,u,d,o,l,y,w=[],N=[],f,i),i),p===123)if(d===0)pi($,t,R,R,w,i,f,l,N);else switch(h===99&&ve($,3)===110?100:h){case 100:case 108:case 109:case 115:pi(e,R,R,n&&Hn(ed(e,R,R,0,0,o,l,y,o,w=[],f,N),N),o,N,f,l,n?w:N);break;default:pi($,R,R,R,[""],N,0,l,N)}}u=d=g=0,x=m=1,y=$="",f=s;break;case 58:f=1+wt($),g=v;default:if(x<1){if(p==123)--x;else if(p==125&&x++==0&&l0()==125)continue}switch($+=xu(p),p*x){case 38:m=d>0?1:($+="\f",-1);break;case 44:l[u++]=(wt($)-1)*m,m=1;break;case 64:Sr()===45&&($+=el(ht())),h=Sr(),d=f=wt(y=$+=p0(fi())),p++;break;case 45:v===45&&wt($)==2&&(x=0)}}return i}function ed(e,t,r,n,o,i,s,l,a,u,d,f){for(var h=o-1,g=o===0?i:[""],v=th(g),x=0,k=0,m=0;x<n;++x)for(var p=0,y=fn(e,h+1,h=Zp(k=s[x])),w=e;p<v;++p)(w=eh(k>0?g[p]+" "+y:z(y,/&\f/g,g[p])))&&(a[m++]=w);return ps(e,t,r,o===0?ds:l,a,u,d,f)}function m0(e,t,r,n){return ps(e,t,r,Yp,xu(s0()),fn(e,2,-2),0,n)}function td(e,t,r,n,o){return ps(e,t,r,gu,fn(e,0,n),fn(e,n+1,-1),n,o)}function nh(e,t,r){switch(o0(e,t)){case 5103:return K+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return K+e+e;case 4789:return eo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return K+e+eo+e+ee+e+e;case 5936:switch(ve(e,t+11)){case 114:return K+e+ee+z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return K+e+ee+z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return K+e+ee+z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return K+e+ee+e+e;case 6165:return K+e+ee+"flex-"+e+e;case 5187:return K+e+z(e,/(\w+).+(:[^]+)/,K+"box-$1$2"+ee+"flex-$1$2")+e;case 5443:return K+e+ee+"flex-item-"+z(e,/flex-|-self/g,"")+(Rt(e,/flex-|baseline/)?"":ee+"grid-row-"+z(e,/flex-|-self/g,""))+e;case 4675:return K+e+ee+"flex-line-pack"+z(e,/align-content|flex-|-self/g,"")+e;case 5548:return K+e+ee+z(e,"shrink","negative")+e;case 5292:return K+e+ee+z(e,"basis","preferred-size")+e;case 6060:return K+"box-"+z(e,"-grow","")+K+e+ee+z(e,"grow","positive")+e;case 4554:return K+z(e,/([^-])(transform)/g,"$1"+K+"$2")+e;case 6187:return z(z(z(e,/(zoom-|grab)/,K+"$1"),/(image-set)/,K+"$1"),e,"")+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,K+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,K+"box-pack:$3"+ee+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+K+e+e;case 4200:if(!Rt(e,/flex-|baseline/))return ee+"grid-column-align"+fn(e,t)+e;break;case 2592:case 3360:return ee+z(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,Rt(n.props,/grid-\w+-end/)})?~di(e+(r=r[t].value),"span",0)?e:ee+z(e,"-start","")+e+ee+"grid-row-span:"+(~di(r,"span",0)?Rt(r,/\d+/):+Rt(r,/\d+/)-+Rt(e,/\d+/))+";":ee+z(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return Rt(n.props,/grid-\w+-start/)})?e:ee+z(z(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return z(e,/(.+)-inline(.+)/,K+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(wt(e)-1-t>6)switch(ve(e,t+1)){case 109:if(ve(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1"+K+"$2-$3$1"+eo+(ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~di(e,"stretch",0)?nh(z(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return z(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,s,l,a,u){return ee+o+":"+i+u+(s?ee+o+"-span:"+(l?a:+a-+i)+u:"")+e});case 4949:if(ve(e,t+6)===121)return z(e,":",":"+K)+e;break;case 6444:switch(ve(e,ve(e,14)===45?18:11)){case 120:return z(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+K+(ve(e,14)===45?"inline-":"")+"box$3$1"+K+"$2$3$1"+ee+"$2box$3")+e;case 100:return z(e,":",":"+ee)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return z(e,"scroll-","scroll-snap-")+e}return e}function Ui(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function y0(e,t,r,n){switch(e.type){case n0:if(e.children.length)break;case r0:case gu:return e.return=e.return||e.value;case Yp:return"";case Xp:return e.return=e.value+"{"+Ui(e.children,n)+"}";case ds:if(!wt(e.value=e.props.join(",")))return""}return wt(r=Ui(e.children,n))?e.return=e.value+"{"+r+"}":""}function v0(e){var t=th(e);return function(r,n,o,i){for(var s="",l=0;l<t;l++)s+=e[l](r,n,o,i)||"";return s}}function g0(e){return function(t){t.root||(t=t.return)&&e(t)}}function x0(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case gu:e.return=nh(e.value,e.length,r);return;case Xp:return Ui([Bt(e,{value:z(e.value,"@","@"+K)})],n);case ds:if(e.length)return i0(r=e.props,function(o){switch(Rt(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ir(Bt(e,{props:[z(o,/:(read-\w+)/,":"+eo+"$1")]})),Ir(Bt(e,{props:[o]})),ia(e,{props:Zc(r,n)});break;case"::placeholder":Ir(Bt(e,{props:[z(o,/:(plac\w+)/,":"+K+"input-$1")]})),Ir(Bt(e,{props:[z(o,/:(plac\w+)/,":"+eo+"$1")]})),Ir(Bt(e,{props:[z(o,/:(plac\w+)/,ee+"input-$1")]})),Ir(Bt(e,{props:[o]})),ia(e,{props:Zc(r,n)});break}return""})}}var w0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Fe={},hn=typeof process<"u"&&Fe!==void 0&&(Fe.REACT_APP_SC_ATTR||Fe.SC_ATTR)||"data-styled",oh="active",ih="data-styled-version",ms="6.1.13",wu=`/*!sc*/
|
|
41
|
+
`,Vi=typeof window<"u"&&"HTMLElement"in window,S0=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Fe!==void 0&&Fe.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Fe.REACT_APP_SC_DISABLE_SPEEDY!==""?Fe.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Fe.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Fe!==void 0&&Fe.SC_DISABLE_SPEEDY!==void 0&&Fe.SC_DISABLE_SPEEDY!==""&&Fe.SC_DISABLE_SPEEDY!=="false"&&Fe.SC_DISABLE_SPEEDY),k0={},ys=Object.freeze([]),mn=Object.freeze({});function sh(e,t,r){return r===void 0&&(r=mn),e.theme!==r.theme&&e.theme||t||r.theme}var lh=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),C0=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,j0=/(^-|-$)/g;function rd(e){return e.replace(C0,"-").replace(j0,"")}var E0=/(a)(d)/gi,qo=52,nd=function(e){return String.fromCharCode(e+(e>25?39:97))};function aa(e){var t,r="";for(t=Math.abs(e);t>qo;t=t/qo|0)r=nd(t%qo)+r;return(nd(t%qo)+r).replace(E0,"$1-$2")}var tl,ah=5381,Gr=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},uh=function(e){return Gr(ah,e)};function Su(e){return aa(uh(e)>>>0)}function N0(e){return e.displayName||e.name||"Component"}function rl(e){return typeof e=="string"&&!0}var ch=typeof Symbol=="function"&&Symbol.for,dh=ch?Symbol.for("react.memo"):60115,R0=ch?Symbol.for("react.forward_ref"):60112,$0={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},b0={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fh={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},P0=((tl={})[R0]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tl[dh]=fh,tl);function od(e){return("type"in(t=e)&&t.type.$$typeof)===dh?fh:"$$typeof"in e?P0[e.$$typeof]:$0;var t}var T0=Object.defineProperty,_0=Object.getOwnPropertyNames,id=Object.getOwnPropertySymbols,L0=Object.getOwnPropertyDescriptor,I0=Object.getPrototypeOf,sd=Object.prototype;function ph(e,t,r){if(typeof t!="string"){if(sd){var n=I0(t);n&&n!==sd&&ph(e,n,r)}var o=_0(t);id&&(o=o.concat(id(t)));for(var i=od(e),s=od(t),l=0;l<o.length;++l){var a=o[l];if(!(a in b0||r&&r[a]||s&&a in s||i&&a in i)){var u=L0(t,a);try{T0(e,a,u)}catch{}}}}return e}function $r(e){return typeof e=="function"}function ku(e){return typeof e=="object"&&"styledComponentId"in e}function vr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Hi(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function wo(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ua(e,t,r){if(r===void 0&&(r=!1),!r&&!wo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ua(e[n],t[n]);else if(wo(t))for(var n in t)e[n]=ua(e[n],t[n]);return e}function Cu(e,t){Object.defineProperty(e,"toString",{value:t})}function ir(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var O0=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;t>=i;)if((i<<=1)<0)throw ir(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var s=o;s<i;s++)this.groupSizes[s]=0}for(var l=this.indexOfGroup(t+1),a=(s=0,r.length);s<a;s++)this.tag.insertRule(l,r[s])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),i=o+n,s=o;s<i;s++)r+="".concat(this.tag.getRule(s)).concat(wu);return r},e}(),hi=new Map,Ki=new Map,mi=1,Yo=function(e){if(hi.has(e))return hi.get(e);for(;Ki.has(mi);)mi++;var t=mi++;return hi.set(e,t),Ki.set(t,e),t},A0=function(e,t){mi=t+1,hi.set(e,t),Ki.set(t,e)},M0="style[".concat(hn,"][").concat(ih,'="').concat(ms,'"]'),D0=new RegExp("^".concat(hn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),z0=function(e,t,r){for(var n,o=r.split(","),i=0,s=o.length;i<s;i++)(n=o[i])&&e.registerName(t,n)},F0=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(wu),o=[],i=0,s=n.length;i<s;i++){var l=n[i].trim();if(l){var a=l.match(D0);if(a){var u=0|parseInt(a[1],10),d=a[2];u!==0&&(A0(d,u),z0(e,d,a[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},ld=function(e){for(var t=document.querySelectorAll(M0),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(hn)!==oh&&(F0(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function B0(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var hh=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(l){var a=Array.from(l.querySelectorAll("style[".concat(hn,"]")));return a[a.length-1]}(r),i=o!==void 0?o.nextSibling:null;n.setAttribute(hn,oh),n.setAttribute(ih,ms);var s=B0();return s&&n.setAttribute("nonce",s),r.insertBefore(n,i),n},U0=function(){function e(t){this.element=hh(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var s=n[o];if(s.ownerNode===r)return s}throw ir(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),V0=function(){function e(t){this.element=hh(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),H0=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),ad=Vi,K0={isServer:!Vi,useCSSOMInjection:!S0},Wi=function(){function e(t,r,n){t===void 0&&(t=mn),r===void 0&&(r={});var o=this;this.options=ge(ge({},K0),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Vi&&ad&&(ad=!1,ld(this)),Cu(this,function(){return function(i){for(var s=i.getTag(),l=s.length,a="",u=function(f){var h=function(m){return Ki.get(m)}(f);if(h===void 0)return"continue";var g=i.names.get(h),v=s.getGroup(f);if(g===void 0||!g.size||v.length===0)return"continue";var x="".concat(hn,".g").concat(f,'[id="').concat(h,'"]'),k="";g!==void 0&&g.forEach(function(m){m.length>0&&(k+="".concat(m,","))}),a+="".concat(v).concat(x,'{content:"').concat(k,'"}').concat(wu)},d=0;d<l;d++)u(d);return a}(o)})}return e.registerId=function(t){return Yo(t)},e.prototype.rehydrate=function(){!this.server&&Vi&&ld(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(ge(ge({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new H0(o):n?new U0(o):new V0(o)}(this.options),new O0(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Yo(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Yo(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Yo(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),W0=/&/g,J0=/^\s*\/\/.*$/gm;function mh(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=mh(r.children,t)),r})}function Q0(e){var t,r,n,o=mn,i=o.options,s=i===void 0?mn:i,l=o.plugins,a=l===void 0?ys:l,u=function(h,g,v){return v.startsWith(r)&&v.endsWith(r)&&v.replaceAll(r,"").length>0?".".concat(t):h},d=a.slice();d.push(function(h){h.type===ds&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(W0,r).replace(n,u))}),s.prefix&&d.push(x0),d.push(y0);var f=function(h,g,v,x){g===void 0&&(g=""),v===void 0&&(v=""),x===void 0&&(x="&"),t=x,r=g,n=new RegExp("\\".concat(r,"\\b"),"g");var k=h.replace(J0,""),m=h0(v||g?"".concat(v," ").concat(g," { ").concat(k," }"):k);s.namespace&&(m=mh(m,s.namespace));var p=[];return Ui(m,v0(d.concat(g0(function(y){return p.push(y)})))),p};return f.hash=a.length?a.reduce(function(h,g){return g.name||ir(15),Gr(h,g.name)},ah).toString():"",f}var G0=new Wi,ca=Q0(),yh=Ue.createContext({shouldForwardProp:void 0,styleSheet:G0,stylis:ca});yh.Consumer;Ue.createContext(void 0);function da(){return S.useContext(yh)}var vh=function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=ca);var s=n.name+i.hash;o.hasNameForId(n.id,s)||o.insertRules(n.id,s,i(n.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Cu(this,function(){throw ir(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ca),this.name+t.hash},e}(),q0=function(e){return e>="A"&&e<="Z"};function ud(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;q0(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var gh=function(e){return e==null||e===!1||e===""},xh=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!gh(i)&&(Array.isArray(i)&&i.isCss||$r(i)?n.push("".concat(ud(o),":"),i,";"):wo(i)?n.push.apply(n,dn(dn(["".concat(o," {")],xh(i),!1),["}"],!1)):n.push("".concat(ud(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in w0||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function rr(e,t,r,n){if(gh(e))return[];if(ku(e))return[".".concat(e.styledComponentId)];if($r(e)){if(!$r(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return rr(o,t,r,n)}var i;return e instanceof vh?r?(e.inject(r,n),[e.getName(n)]):[e]:wo(e)?xh(e):Array.isArray(e)?Array.prototype.concat.apply(ys,e.map(function(s){return rr(s,t,r,n)})):[e.toString()]}function wh(e){for(var t=0;t<e.length;t+=1){var r=e[t];if($r(r)&&!ku(r))return!1}return!0}var Y0=uh(ms),X0=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&wh(t),this.componentId=r,this.baseHash=Gr(Y0,r),this.baseStyle=n,Wi.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=vr(o,this.staticRulesId);else{var i=Hi(rr(this.rules,t,r,n)),s=aa(Gr(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,s)){var l=n(i,".".concat(s),void 0,this.componentId);r.insertRules(this.componentId,s,l)}o=vr(o,s),this.staticRulesId=s}else{for(var a=Gr(this.baseHash,n.hash),u="",d=0;d<this.rules.length;d++){var f=this.rules[d];if(typeof f=="string")u+=f;else if(f){var h=Hi(rr(f,t,r,n));a=Gr(a,h+d),u+=h}}if(u){var g=aa(a>>>0);r.hasNameForId(this.componentId,g)||r.insertRules(this.componentId,g,n(u,".".concat(g),void 0,this.componentId)),o=vr(o,g)}}return o},e}(),yn=Ue.createContext(void 0);yn.Consumer;function Z0(){var e=S.useContext(yn);if(!e)throw ir(18);return e}function cd(e){var t=Ue.useContext(yn),r=S.useMemo(function(){return function(n,o){if(!n)throw ir(14);if($r(n)){var i=n(o);return i}if(Array.isArray(n)||typeof n!="object")throw ir(8);return o?ge(ge({},o),n):n}(e.theme,t)},[e.theme,t]);return e.children?Ue.createElement(yn.Provider,{value:r},e.children):null}var nl={};function e1(e,t,r){var n=ku(e),o=e,i=!rl(e),s=t.attrs,l=s===void 0?ys:s,a=t.componentId,u=a===void 0?function(w,N){var R=typeof w!="string"?"sc":rd(w);nl[R]=(nl[R]||0)+1;var $="".concat(R,"-").concat(Su(ms+R+nl[R]));return N?"".concat(N,"-").concat($):$}(t.displayName,t.parentComponentId):a,d=t.displayName,f=d===void 0?function(w){return rl(w)?"styled.".concat(w):"Styled(".concat(N0(w),")")}(e):d,h=t.displayName&&t.componentId?"".concat(rd(t.displayName),"-").concat(t.componentId):t.componentId||u,g=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,v=t.shouldForwardProp;if(n&&o.shouldForwardProp){var x=o.shouldForwardProp;if(t.shouldForwardProp){var k=t.shouldForwardProp;v=function(w,N){return x(w,N)&&k(w,N)}}else v=x}var m=new X0(r,h,n?o.componentStyle:void 0);function p(w,N){return function(R,$,P){var A=R.attrs,_=R.componentStyle,U=R.defaultProps,me=R.foldedComponentIds,fe=R.styledComponentId,ot=R.target,O=Ue.useContext(yn),Q=da(),F=R.shouldForwardProp||Q.shouldForwardProp,T=sh($,O,U)||mn,I=function(Mt,ze,jt){for(var jn,dr=ge(ge({},ze),{className:void 0,theme:jt}),Rs=0;Rs<Mt.length;Rs+=1){var _o=$r(jn=Mt[Rs])?jn(dr):jn;for(var Dt in _o)dr[Dt]=Dt==="className"?vr(dr[Dt],_o[Dt]):Dt==="style"?ge(ge({},dr[Dt]),_o[Dt]):_o[Dt]}return ze.className&&(dr.className=vr(dr.className,ze.className)),dr}(A,$,T),M=I.as||ot,G={};for(var q in I)I[q]===void 0||q[0]==="$"||q==="as"||q==="theme"&&I.theme===T||(q==="forwardedAs"?G.as=I.forwardedAs:F&&!F(q,M)||(G[q]=I[q]));var cr=function(Mt,ze){var jt=da(),jn=Mt.generateAndInjectStyles(ze,jt.styleSheet,jt.stylis);return jn}(_,I),it=vr(me,fe);return cr&&(it+=" "+cr),I.className&&(it+=" "+I.className),G[rl(M)&&!lh.has(M)?"class":"className"]=it,G.ref=P,S.createElement(M,G)}(y,w,N)}p.displayName=f;var y=Ue.forwardRef(p);return y.attrs=g,y.componentStyle=m,y.displayName=f,y.shouldForwardProp=v,y.foldedComponentIds=n?vr(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=h,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(w){this._foldedDefaultProps=n?function(N){for(var R=[],$=1;$<arguments.length;$++)R[$-1]=arguments[$];for(var P=0,A=R;P<A.length;P++)ua(N,A[P],!0);return N}({},o.defaultProps,w):w}}),Cu(y,function(){return".".concat(y.styledComponentId)}),i&&ph(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function dd(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var fd=function(e){return Object.assign(e,{isCss:!0})};function rn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if($r(e)||wo(e))return fd(rr(dd(ys,dn([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?rr(n):fd(rr(dd(n,t)))}function fa(e,t,r){if(r===void 0&&(r=mn),!t)throw ir(1,t);var n=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,r,rn.apply(void 0,dn([o],i,!1)))};return n.attrs=function(o){return fa(e,t,ge(ge({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return fa(e,t,ge(ge({},r),o))},n}var Sh=function(e){return fa(e1,e)},C=Sh;lh.forEach(function(e){C[e]=Sh(e)});var t1=function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=wh(t),Wi.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,n,o){var i=o(Hi(rr(this.rules,r,n,o)),""),s=this.componentId+t;n.insertRules(s,s,i)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,n,o){t>2&&Wi.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,r,n,o)},e}();function r1(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=rn.apply(void 0,dn([e],t,!1)),o="sc-global-".concat(Su(JSON.stringify(n))),i=new t1(n,o),s=function(a){var u=da(),d=Ue.useContext(yn),f=Ue.useRef(u.styleSheet.allocateGSInstance(o)).current;return u.styleSheet.server&&l(f,a,u.styleSheet,d,u.stylis),Ue.useLayoutEffect(function(){if(!u.styleSheet.server)return l(f,a,u.styleSheet,d,u.stylis),function(){return i.removeStyles(f,u.styleSheet)}},[f,a,u.styleSheet,d,u.stylis]),null};function l(a,u,d,f,h){if(i.isStatic)i.renderStyles(a,k0,d,h);else{var g=ge(ge({},u),{theme:sh(u,f,s.defaultProps)});i.renderStyles(a,g,d,h)}}return Ue.memo(s)}function $o(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Hi(rn.apply(void 0,dn([e],t,!1))),o=Su(n);return new vh(o,n)}const n1="/assets/logo-BGHkG1-J.png",o1="/assets/logo-dark-KAsU1C78.png",pd={name:"light",colors:{background:"#ffffffaa",pageBackground:"#ffffff",backgroundSecondary:"#f6f8fa",text:"#333333",textSecondary:"#6a737d",primary:"#0056b3",primaryHover:"#004494",error:"#d32f2f",errorHover:"#b71c1c",warning:"#f57c00",info:"#0288d1",secondary:"#616161",secondaryHover:"#424242",border:"#e1e4e8",buttonBg:"#e0e0e0",buttonText:"#333333",buttonHoverBg:"#bdbdbd",inputBg:"#ffffff",inputBorder:"#bdbdbd",inputText:"#333333",codeBackground:"#f5f5f5",codeText:"#24292e",systemMessageBackground:"#e3f2fd",systemMessageText:"#0d47a1",systemMessageBorder:"#bbdefb",systemMessageTimestamp:"#1565c0",disabled:"#9e9e9e",userMessageBackground:"#e8f5e9",userMessageText:"#1b5e20",userMessageTimestamp:"#2e7d32",menuBackdrop:"rgba(0, 0, 0, 0.5)",menuBackground:"#ffffff",menuHover:"#f6f8fa",menuBorder:"#e1e4e8",menuShadow:"0 4px 12px rgba(0, 0, 0, 0.15)"},backgroundImage:n1,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},hd={name:"dark",colors:{background:"#00000055",pageBackground:"#1e1e1e",backgroundSecondary:"#2d333b",text:"#d4d4d4",textSecondary:"#8b949e",primary:"#58a6ff",primaryHover:"#79b8ff",secondary:"#8b949e",error:"#f44336",errorHover:"#d32f2f",secondaryHover:"#9aa3ad",warning:"#ffa726",info:"#29b6f6",border:"#30363d",buttonBg:"#21262d",buttonText:"#c9d1d9",buttonHoverBg:"#30363d",inputBg:"#0d1117",inputBorder:"#30363d",inputText:"#c9d1d9",codeBackground:"#161b22",codeText:"#c9d1d9",systemMessageBackground:"#1c2128",systemMessageText:"#8b949e",systemMessageBorder:"#30363d",systemMessageTimestamp:"#6e7681",disabled:"#41464b",userMessageBackground:"#1c4a7d",userMessageText:"#e6f3ff",userMessageTimestamp:"#a8c7f0",menuBackdrop:"rgba(0, 0, 0, 0.7)",menuBackground:"#1e1e1e",menuHover:"#2d333b",menuBorder:"#30363d",menuShadow:"0 4px 12px rgba(0, 0, 0, 0.3)"},backgroundImage:o1,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},i1=({usage:e})=>{const[t,r]=S.useState("total"),n=f=>{r(f.target.value)},o=e.usageMetrics[t],i=e.usageMetrics[t].cost||0,s=Ln(i.toFixed(2)),l=Ln(o.rpm),a=Ln(o.rpd),u=Ln(md(o.tpm)),d=Ln(md(o.tpd));return c.jsx(l1,{children:c.jsxs(a1,{children:[c.jsx(u1,{onChange:n,value:t,children:Object.keys(e.usageMetrics).map(f=>c.jsx("option",{value:f,children:f},f))}),c.jsxs(In,{children:[c.jsx(On,{children:"Cost:"}),c.jsxs(An,{children:["$",s]},s)]}),c.jsxs(In,{children:[c.jsx(On,{children:"RPM:"}),c.jsx(An,{children:l},l)]}),c.jsxs(In,{children:[c.jsx(On,{children:"RPD:"}),c.jsx(An,{children:a},a)]}),c.jsxs(In,{children:[c.jsx(On,{children:"TPM:"}),c.jsx(An,{children:u},u)]}),c.jsxs(In,{children:[c.jsx(On,{children:"TPD:"}),c.jsx(An,{children:d},d)]})]})})},md=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(0)+"K":e.toString(),Ln=e=>{const[t,r]=S.useState(e),n=S.useRef(e);return S.useEffect(()=>{e!==n.current&&(r(e),n.current=e)},[e]),t},s1=$o`
|
|
42
|
+
0% {
|
|
43
|
+
transform: scale(1);
|
|
44
|
+
opacity: 1;
|
|
45
|
+
}
|
|
46
|
+
50% {
|
|
47
|
+
transform: scale(1.2);
|
|
48
|
+
opacity: 0.7;
|
|
49
|
+
}
|
|
50
|
+
100% {
|
|
51
|
+
transform: scale(1);
|
|
52
|
+
opacity: 1;
|
|
53
|
+
}
|
|
54
|
+
`,l1=C.div`
|
|
55
|
+
background-color: ${({theme:e})=>e.colors.background};
|
|
56
|
+
border-radius: 4px;
|
|
57
|
+
padding: 4px 4px;
|
|
58
|
+
box-shadow:
|
|
59
|
+
0 1px 3px rgba(0, 0, 0, 0.12),
|
|
60
|
+
0 1px 2px rgba(0, 0, 0, 0.24);
|
|
61
|
+
`,a1=C.div`
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-wrap: wrap;
|
|
64
|
+
gap: 8px;
|
|
65
|
+
align-items: center;
|
|
66
|
+
`,u1=C.select`
|
|
67
|
+
padding: 2px 4px;
|
|
68
|
+
border-radius: 4px;
|
|
69
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
70
|
+
background-color: ${({theme:e})=>e.colors.background};
|
|
71
|
+
color: ${({theme:e})=>e.colors.text};
|
|
72
|
+
font-size: 0.9em;
|
|
73
|
+
`,In=C.div`
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
align-items: center;
|
|
77
|
+
margin-left: 8px;
|
|
78
|
+
`,On=C.span`
|
|
79
|
+
font-size: 0.8em;
|
|
80
|
+
color: ${({theme:e})=>e.colors.textSecondary};
|
|
81
|
+
`,An=C.span`
|
|
82
|
+
font-size: 0.9em;
|
|
83
|
+
font-weight: bold;
|
|
84
|
+
color: ${({theme:e})=>e.colors.text};
|
|
85
|
+
animation: ${s1} 0.5s ease-in-out;
|
|
86
|
+
`;function kh(e,t){return function(){return e.apply(t,arguments)}}const{toString:c1}=Object.prototype,{getPrototypeOf:ju}=Object,vs=(e=>t=>{const r=c1.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),yt=e=>(e=e.toLowerCase(),t=>vs(t)===e),gs=e=>t=>typeof t===e,{isArray:Sn}=Array,So=gs("undefined");function d1(e){return e!==null&&!So(e)&&e.constructor!==null&&!So(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ch=yt("ArrayBuffer");function f1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ch(e.buffer),t}const p1=gs("string"),Ke=gs("function"),jh=gs("number"),xs=e=>e!==null&&typeof e=="object",h1=e=>e===!0||e===!1,yi=e=>{if(vs(e)!=="object")return!1;const t=ju(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},m1=yt("Date"),y1=yt("File"),v1=yt("Blob"),g1=yt("FileList"),x1=e=>xs(e)&&Ke(e.pipe),w1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=vs(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},S1=yt("URLSearchParams"),[k1,C1,j1,E1]=["ReadableStream","Request","Response","Headers"].map(yt),N1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function bo(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Sn(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let l;for(n=0;n<s;n++)l=i[n],t.call(null,e[l],l,e)}}function Eh(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const gr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Nh=e=>!So(e)&&e!==gr;function pa(){const{caseless:e}=Nh(this)&&this||{},t={},r=(n,o)=>{const i=e&&Eh(t,o)||o;yi(t[i])&&yi(n)?t[i]=pa(t[i],n):yi(n)?t[i]=pa({},n):Sn(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&bo(arguments[n],r);return t}const R1=(e,t,r,{allOwnKeys:n}={})=>(bo(t,(o,i)=>{r&&Ke(o)?e[i]=kh(o,r):e[i]=o},{allOwnKeys:n}),e),$1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),b1=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},P1=(e,t,r,n)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=r!==!1&&ju(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},T1=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},_1=e=>{if(!e)return null;if(Sn(e))return e;let t=e.length;if(!jh(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},L1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ju(Uint8Array)),I1=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},O1=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},A1=yt("HTMLFormElement"),M1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),yd=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),D1=yt("RegExp"),Rh=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};bo(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},z1=e=>{Rh(e,(t,r)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ke(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},F1=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Sn(e)?n(e):n(String(e).split(t)),r},B1=()=>{},U1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ol="abcdefghijklmnopqrstuvwxyz",vd="0123456789",$h={DIGIT:vd,ALPHA:ol,ALPHA_DIGIT:ol+ol.toUpperCase()+vd},V1=(e=16,t=$h.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function H1(e){return!!(e&&Ke(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const K1=e=>{const t=new Array(10),r=(n,o)=>{if(xs(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=Sn(n)?[]:{};return bo(n,(s,l)=>{const a=r(s,o+1);!So(a)&&(i[l]=a)}),t[o]=void 0,i}}return n};return r(e,0)},W1=yt("AsyncFunction"),J1=e=>e&&(xs(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),bh=((e,t)=>e?setImmediate:t?((r,n)=>(gr.addEventListener("message",({source:o,data:i})=>{o===gr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),gr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ke(gr.postMessage)),Q1=typeof queueMicrotask<"u"?queueMicrotask.bind(gr):typeof process<"u"&&process.nextTick||bh,j={isArray:Sn,isArrayBuffer:Ch,isBuffer:d1,isFormData:w1,isArrayBufferView:f1,isString:p1,isNumber:jh,isBoolean:h1,isObject:xs,isPlainObject:yi,isReadableStream:k1,isRequest:C1,isResponse:j1,isHeaders:E1,isUndefined:So,isDate:m1,isFile:y1,isBlob:v1,isRegExp:D1,isFunction:Ke,isStream:x1,isURLSearchParams:S1,isTypedArray:L1,isFileList:g1,forEach:bo,merge:pa,extend:R1,trim:N1,stripBOM:$1,inherits:b1,toFlatObject:P1,kindOf:vs,kindOfTest:yt,endsWith:T1,toArray:_1,forEachEntry:I1,matchAll:O1,isHTMLForm:A1,hasOwnProperty:yd,hasOwnProp:yd,reduceDescriptors:Rh,freezeMethods:z1,toObjectSet:F1,toCamelCase:M1,noop:B1,toFiniteNumber:U1,findKey:Eh,global:gr,isContextDefined:Nh,ALPHABET:$h,generateString:V1,isSpecCompliantForm:H1,toJSONObject:K1,isAsyncFn:W1,isThenable:J1,setImmediate:bh,asap:Q1};function D(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}j.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.status}}});const Ph=D.prototype,Th={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Th[e]={value:e}});Object.defineProperties(D,Th);Object.defineProperty(Ph,"isAxiosError",{value:!0});D.from=(e,t,r,n,o,i)=>{const s=Object.create(Ph);return j.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),D.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const G1=null;function ha(e){return j.isPlainObject(e)||j.isArray(e)}function _h(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function gd(e,t,r){return e?e.concat(t).map(function(o,i){return o=_h(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function q1(e){return j.isArray(e)&&!e.some(ha)}const Y1=j.toFlatObject(j,{},null,function(t){return/^is[A-Z]/.test(t)});function ws(e,t,r){if(!j.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=j.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,k){return!j.isUndefined(k[x])});const n=r.metaTokens,o=r.visitor||d,i=r.dots,s=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(t);if(!j.isFunction(o))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(j.isDate(v))return v.toISOString();if(!a&&j.isBlob(v))throw new D("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(v)||j.isTypedArray(v)?a&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,x,k){let m=v;if(v&&!k&&typeof v=="object"){if(j.endsWith(x,"{}"))x=n?x:x.slice(0,-2),v=JSON.stringify(v);else if(j.isArray(v)&&q1(v)||(j.isFileList(v)||j.endsWith(x,"[]"))&&(m=j.toArray(v)))return x=_h(x),m.forEach(function(y,w){!(j.isUndefined(y)||y===null)&&t.append(s===!0?gd([x],w,i):s===null?x:x+"[]",u(y))}),!1}return ha(v)?!0:(t.append(gd(k,x,i),u(v)),!1)}const f=[],h=Object.assign(Y1,{defaultVisitor:d,convertValue:u,isVisitable:ha});function g(v,x){if(!j.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(v),j.forEach(v,function(m,p){(!(j.isUndefined(m)||m===null)&&o.call(t,m,j.isString(p)?p.trim():p,x,h))===!0&&g(m,x?x.concat(p):[p])}),f.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return g(e),t}function xd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Eu(e,t){this._pairs=[],e&&ws(e,this,t)}const Lh=Eu.prototype;Lh.append=function(t,r){this._pairs.push([t,r])};Lh.toString=function(t){const r=t?function(n){return t.call(this,n,xd)}:xd;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function X1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ih(e,t,r){if(!t)return e;const n=r&&r.encode||X1,o=r&&r.serialize;let i;if(o?i=o(t,r):i=j.isURLSearchParams(t)?t.toString():new Eu(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class wd{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){j.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Oh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Z1=typeof URLSearchParams<"u"?URLSearchParams:Eu,ex=typeof FormData<"u"?FormData:null,tx=typeof Blob<"u"?Blob:null,rx={isBrowser:!0,classes:{URLSearchParams:Z1,FormData:ex,Blob:tx},protocols:["http","https","file","blob","url","data"]},Nu=typeof window<"u"&&typeof document<"u",ma=typeof navigator=="object"&&navigator||void 0,nx=Nu&&(!ma||["ReactNative","NativeScript","NS"].indexOf(ma.product)<0),ox=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ix=Nu&&window.location.href||"http://localhost",sx=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nu,hasStandardBrowserEnv:nx,hasStandardBrowserWebWorkerEnv:ox,navigator:ma,origin:ix},Symbol.toStringTag,{value:"Module"})),Ae={...sx,...rx};function lx(e,t){return ws(e,new Ae.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Ae.isNode&&j.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ax(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ux(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Ah(e){function t(r,n,o,i){let s=r[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),a=i>=r.length;return s=!s&&j.isArray(o)?o.length:s,a?(j.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!l):((!o[s]||!j.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&j.isArray(o[s])&&(o[s]=ux(o[s])),!l)}if(j.isFormData(e)&&j.isFunction(e.entries)){const r={};return j.forEachEntry(e,(n,o)=>{t(ax(n),o,r,0)}),r}return null}function cx(e,t,r){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const Po={transitional:Oh,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=j.isObject(t);if(i&&j.isHTMLForm(t)&&(t=new FormData(t)),j.isFormData(t))return o?JSON.stringify(Ah(t)):t;if(j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t)||j.isReadableStream(t))return t;if(j.isArrayBufferView(t))return t.buffer;if(j.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return lx(t,this.formSerializer).toString();if((l=j.isFileList(t))||n.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return ws(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),cx(t)):t}],transformResponse:[function(t){const r=this.transitional||Po.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(j.isResponse(t)||j.isReadableStream(t))return t;if(t&&j.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?D.from(l,D.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ae.classes.FormData,Blob:Ae.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],e=>{Po.headers[e]={}});const dx=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fx=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
87
|
+
`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&dx[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Sd=Symbol("internals");function Mn(e){return e&&String(e).trim().toLowerCase()}function vi(e){return e===!1||e==null?e:j.isArray(e)?e.map(vi):String(e)}function px(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const hx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function il(e,t,r,n,o){if(j.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!j.isString(t)){if(j.isString(n))return t.indexOf(n)!==-1;if(j.isRegExp(n))return n.test(t)}}function mx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function yx(e,t){const r=j.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}class Me{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(l,a,u){const d=Mn(a);if(!d)throw new Error("header name must be a non-empty string");const f=j.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||a]=vi(l))}const s=(l,a)=>j.forEach(l,(u,d)=>i(u,d,a));if(j.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(j.isString(t)&&(t=t.trim())&&!hx(t))s(fx(t),r);else if(j.isHeaders(t))for(const[l,a]of t.entries())i(a,l,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=Mn(t),t){const n=j.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return px(o);if(j.isFunction(r))return r.call(this,o,n);if(j.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Mn(t),t){const n=j.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||il(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=Mn(s),s){const l=j.findKey(n,s);l&&(!r||il(n,n[l],l,r))&&(delete n[l],o=!0)}}return j.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||il(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return j.forEach(this,(o,i)=>{const s=j.findKey(n,i);if(s){r[s]=vi(o),delete r[i];return}const l=t?mx(i):String(i).trim();l!==i&&delete r[i],r[l]=vi(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return j.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&j.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
88
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Sd]=this[Sd]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=Mn(s);n[l]||(yx(o,s),n[l]=!0)}return j.isArray(t)?t.forEach(i):i(t),this}}Me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.reduceDescriptors(Me.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});j.freezeMethods(Me);function sl(e,t){const r=this||Po,n=t||r,o=Me.from(n.headers);let i=n.data;return j.forEach(e,function(l){i=l.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Mh(e){return!!(e&&e.__CANCEL__)}function kn(e,t,r){D.call(this,e??"canceled",D.ERR_CANCELED,t,r),this.name="CanceledError"}j.inherits(kn,D,{__CANCEL__:!0});function Dh(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new D("Request failed with status code "+r.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function vx(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gx(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),d=n[i];s||(s=u),r[o]=a,n[o]=u;let f=i,h=0;for(;f!==o;)h+=r[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s<t)return;const g=d&&u-d;return g?Math.round(h*1e3/g):void 0}}function xx(e,t){let r=0,n=1e3/t,o,i;const s=(u,d=Date.now())=>{r=d,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-r;f>=n?s(u,d):(o=u,i||(i=setTimeout(()=>{i=null,s(o)},n-f)))},()=>o&&s(o)]}const Ji=(e,t,r=3)=>{let n=0;const o=gx(50,250);return xx(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,a=s-n,u=o(a),d=s<=l;n=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:a,rate:u||void 0,estimated:u&&l&&d?(l-s)/u:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},r)},kd=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Cd=e=>(...t)=>j.asap(()=>e(...t)),wx=Ae.hasStandardBrowserEnv?function(){const t=Ae.navigator&&/(msie|trident)/i.test(Ae.navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const l=j.isString(s)?o(s):s;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),Sx=Ae.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];j.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),j.isString(n)&&s.push("path="+n),j.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function kx(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Cx(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zh(e,t){return e&&!kx(t)?Cx(e,t):t}const jd=e=>e instanceof Me?{...e}:e;function br(e,t){t=t||{};const r={};function n(u,d,f){return j.isPlainObject(u)&&j.isPlainObject(d)?j.merge.call({caseless:f},u,d):j.isPlainObject(d)?j.merge({},d):j.isArray(d)?d.slice():d}function o(u,d,f){if(j.isUndefined(d)){if(!j.isUndefined(u))return n(void 0,u,f)}else return n(u,d,f)}function i(u,d){if(!j.isUndefined(d))return n(void 0,d)}function s(u,d){if(j.isUndefined(d)){if(!j.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,f){if(f in t)return n(u,d);if(f in e)return n(void 0,u)}const a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d)=>o(jd(u),jd(d),!0)};return j.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=a[d]||o,h=f(e[d],t[d],d);j.isUndefined(h)&&f!==l||(r[d]=h)}),r}const Fh=e=>{const t=br({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:l}=t;t.headers=s=Me.from(s),t.url=Ih(zh(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let a;if(j.isFormData(r)){if(Ae.hasStandardBrowserEnv||Ae.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((a=s.getContentType())!==!1){const[u,...d]=a?a.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Ae.hasStandardBrowserEnv&&(n&&j.isFunction(n)&&(n=n(t)),n||n!==!1&&wx(t.url))){const u=o&&i&&Sx.read(i);u&&s.set(o,u)}return t},jx=typeof XMLHttpRequest<"u",Ex=jx&&function(e){return new Promise(function(r,n){const o=Fh(e);let i=o.data;const s=Me.from(o.headers).normalize();let{responseType:l,onUploadProgress:a,onDownloadProgress:u}=o,d,f,h,g,v;function x(){g&&g(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let k=new XMLHttpRequest;k.open(o.method.toUpperCase(),o.url,!0),k.timeout=o.timeout;function m(){if(!k)return;const y=Me.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),N={data:!l||l==="text"||l==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:y,config:e,request:k};Dh(function($){r($),x()},function($){n($),x()},N),k=null}"onloadend"in k?k.onloadend=m:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(m)},k.onabort=function(){k&&(n(new D("Request aborted",D.ECONNABORTED,e,k)),k=null)},k.onerror=function(){n(new D("Network Error",D.ERR_NETWORK,e,k)),k=null},k.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const N=o.transitional||Oh;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),n(new D(w,N.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,e,k)),k=null},i===void 0&&s.setContentType(null),"setRequestHeader"in k&&j.forEach(s.toJSON(),function(w,N){k.setRequestHeader(N,w)}),j.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),l&&l!=="json"&&(k.responseType=o.responseType),u&&([h,v]=Ji(u,!0),k.addEventListener("progress",h)),a&&k.upload&&([f,g]=Ji(a),k.upload.addEventListener("progress",f),k.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(d=y=>{k&&(n(!y||y.type?new kn(null,e,k):y),k.abort(),k=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const p=vx(o.url);if(p&&Ae.protocols.indexOf(p)===-1){n(new D("Unsupported protocol "+p+":",D.ERR_BAD_REQUEST,e));return}k.send(i||null)})},Nx=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(u){if(!o){o=!0,l();const d=u instanceof Error?u:this.reason;n.abort(d instanceof D?d:new kn(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,i(new D(`timeout ${t} of ms exceeded`,D.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:a}=n;return a.unsubscribe=()=>j.asap(l),a}},Rx=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},$x=async function*(e,t){for await(const r of bx(e))yield*Rx(r,t)},bx=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Ed=(e,t,r,n)=>{const o=$x(e,t);let i=0,s,l=a=>{s||(s=!0,n&&n(a))};return new ReadableStream({async pull(a){try{const{done:u,value:d}=await o.next();if(u){l(),a.close();return}let f=d.byteLength;if(r){let h=i+=f;r(h)}a.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(a){return l(a),o.return()}},{highWaterMark:2})},Ss=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Bh=Ss&&typeof ReadableStream=="function",Px=Ss&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Uh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Tx=Bh&&Uh(()=>{let e=!1;const t=new Request(Ae.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Nd=64*1024,ya=Bh&&Uh(()=>j.isReadableStream(new Response("").body)),Qi={stream:ya&&(e=>e.body)};Ss&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qi[t]&&(Qi[t]=j.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new D(`Response type '${t}' is not supported`,D.ERR_NOT_SUPPORT,n)})})})(new Response);const _x=async e=>{if(e==null)return 0;if(j.isBlob(e))return e.size;if(j.isSpecCompliantForm(e))return(await new Request(Ae.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(j.isArrayBufferView(e)||j.isArrayBuffer(e))return e.byteLength;if(j.isURLSearchParams(e)&&(e=e+""),j.isString(e))return(await Px(e)).byteLength},Lx=async(e,t)=>{const r=j.toFiniteNumber(e.getContentLength());return r??_x(t)},Ix=Ss&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:a,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:h}=Fh(e);u=u?(u+"").toLowerCase():"text";let g=Nx([o,i&&i.toAbortSignal()],s),v;const x=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let k;try{if(a&&Tx&&r!=="get"&&r!=="head"&&(k=await Lx(d,n))!==0){let N=new Request(t,{method:"POST",body:n,duplex:"half"}),R;if(j.isFormData(n)&&(R=N.headers.get("content-type"))&&d.setContentType(R),N.body){const[$,P]=kd(k,Ji(Cd(a)));n=Ed(N.body,Nd,$,P)}}j.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;v=new Request(t,{...h,signal:g,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:m?f:void 0});let p=await fetch(v);const y=ya&&(u==="stream"||u==="response");if(ya&&(l||y&&x)){const N={};["status","statusText","headers"].forEach(A=>{N[A]=p[A]});const R=j.toFiniteNumber(p.headers.get("content-length")),[$,P]=l&&kd(R,Ji(Cd(l),!0))||[];p=new Response(Ed(p.body,Nd,$,()=>{P&&P(),x&&x()}),N)}u=u||"text";let w=await Qi[j.findKey(Qi,u)||"text"](p,e);return!y&&x&&x(),await new Promise((N,R)=>{Dh(N,R,{data:w,headers:Me.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:v})})}catch(m){throw x&&x(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,e,v),{cause:m.cause||m}):D.from(m,m&&m.code,e,v)}}),va={http:G1,xhr:Ex,fetch:Ix};j.forEach(va,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Rd=e=>`- ${e}`,Ox=e=>j.isFunction(e)||e===null||e===!1,Vh={getAdapter:e=>{e=j.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let s;if(n=r,!Ox(r)&&(n=va[(s=String(r)).toLowerCase()],n===void 0))throw new D(`Unknown adapter '${s}'`);if(n)break;o[s||"#"+i]=n}if(!n){const i=Object.entries(o).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
|
|
89
|
+
`+i.map(Rd).join(`
|
|
90
|
+
`):" "+Rd(i[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:va};function ll(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kn(null,e)}function $d(e){return ll(e),e.headers=Me.from(e.headers),e.data=sl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vh.getAdapter(e.adapter||Po.adapter)(e).then(function(n){return ll(e),n.data=sl.call(e,e.transformResponse,n),n.headers=Me.from(n.headers),n},function(n){return Mh(n)||(ll(e),n&&n.response&&(n.response.data=sl.call(e,e.transformResponse,n.response),n.response.headers=Me.from(n.response.headers))),Promise.reject(n)})}const Hh="1.7.7",Ru={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ru[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const bd={};Ru.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Hh+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,l)=>{if(t===!1)throw new D(o(s," has been removed"+(r?" in "+r:"")),D.ERR_DEPRECATED);return r&&!bd[s]&&(bd[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,l):!0}};function Ax(e,t,r){if(typeof e!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const l=e[i],a=l===void 0||s(l,i,e);if(a!==!0)throw new D("option "+i+" must be "+a,D.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new D("Unknown option "+i,D.ERR_BAD_OPTION)}}const ga={assertOptions:Ax,validators:Ru},Ft=ga.validators;class kr{constructor(t){this.defaults=t,this.interceptors={request:new wd,response:new wd}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
91
|
+
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=br(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&ga.assertOptions(n,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean)},!1),o!=null&&(j.isFunction(o)?r.paramsSerializer={serialize:o}:ga.assertOptions(o,{encode:Ft.function,serialize:Ft.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&j.merge(i.common,i[r.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),r.headers=Me.concat(s,i);const l=[];let a=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(r)===!1||(a=a&&x.synchronous,l.unshift(x.fulfilled,x.rejected))});const u=[];this.interceptors.response.forEach(function(x){u.push(x.fulfilled,x.rejected)});let d,f=0,h;if(!a){const v=[$d.bind(this),void 0];for(v.unshift.apply(v,l),v.push.apply(v,u),h=v.length,d=Promise.resolve(r);f<h;)d=d.then(v[f++],v[f++]);return d}h=l.length;let g=r;for(f=0;f<h;){const v=l[f++],x=l[f++];try{g=v(g)}catch(k){x.call(this,k);break}}try{d=$d.call(this,g)}catch(v){return Promise.reject(v)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=br(this.defaults,t);const r=zh(t.baseURL,t.url);return Ih(r,t.params,t.paramsSerializer)}}j.forEach(["delete","get","head","options"],function(t){kr.prototype[t]=function(r,n){return this.request(br(n||{},{method:t,url:r,data:(n||{}).data}))}});j.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,l){return this.request(br(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}kr.prototype[t]=r(),kr.prototype[t+"Form"]=r(!0)});class $u{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{n.subscribe(l),i=l}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,l){n.reason||(n.reason=new kn(i,s,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new $u(function(o){t=o}),cancel:t}}}function Mx(e){return function(r){return e.apply(null,r)}}function Dx(e){return j.isObject(e)&&e.isAxiosError===!0}const xa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xa).forEach(([e,t])=>{xa[t]=e});function Kh(e){const t=new kr(e),r=kh(kr.prototype.request,t);return j.extend(r,kr.prototype,t,{allOwnKeys:!0}),j.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Kh(br(e,o))},r}const se=Kh(Po);se.Axios=kr;se.CanceledError=kn;se.CancelToken=$u;se.isCancel=Mh;se.VERSION=Hh;se.toFormData=ws;se.AxiosError=D;se.Cancel=se.CanceledError;se.all=function(t){return Promise.all(t)};se.spread=Mx;se.isAxiosError=Dx;se.mergeConfig=br;se.AxiosHeaders=Me;se.formToJSON=e=>Ah(j.isHTMLForm(e)?new FormData(e):e);se.getAdapter=Vh.getAdapter;se.HttpStatusCode=xa;se.default=se;const zx="/api",ue=se.create({baseURL:zx,headers:{"Content-Type":"application/json"}}),Fx=async()=>{try{const t=await(await fetch("/")).text();return new DOMParser().parseFromString(t,"text/html").body.getAttribute("data-security-token")}catch(e){return console.error("Error fetching security token:",e),null}};ue.interceptors.request.use(e=>{var r;const t=(r=document.querySelector("body[data-security-token]"))==null?void 0:r.getAttribute("data-security-token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));ue.interceptors.response.use(e=>e,async e=>{var r;const t=e.config;if(e.response&&e.response.status===401&&!t._retry){t._retry=!0;const n=await Fx();if(n)return t.headers.Authorization=`Bearer ${n}`,(r=document.querySelector("body[data-security-token]"))==null||r.setAttribute("data-security-token",n),ue(t)}return Promise.reject(e)});const Bx=async(e,t)=>{try{if(!e||!t.trim())throw new Error("Invalid message ID or content");if((await ue.post("/edit-message",{messageId:e,newContent:t})).status!==200)throw new Error("Failed to edit message")}catch(r){throw se.isAxiosError(r)?r.response?new Error(r.response.data.error||"Failed to edit message"):r.request?new Error("No response received from server"):new Error(`Error setting up request: ${r.message}`):r instanceof Error?r:new Error("An unexpected error occurred while editing the message")}},Pd=async()=>(await ue.get("/content")).data.content,Ux=async(e,t,r)=>{const n=new FormData;n.append("prompt",e),n.append("options",JSON.stringify(t)),r&&r.length>0&&r.forEach(o=>{n.append("images",o)});try{await ue.post("/execute-codegen",n,{headers:{"Content-Type":"multipart/form-data"}})}catch(o){throw se.isAxiosError(o)?o.response?new Error(`Server error: ${o.response.data.message||"Unknown error"}`):o.request?new Error("No response received from server"):new Error(`Error setting up request: ${o.message}`):new Error("An unexpected error occurred")}},Wh=async(e,t,r,n)=>{try{if(!e||typeof e!="string")throw new Error("Prompt must be a string");if(typeof t!="number"||t<0||t>2)throw new Error("Temperature must be a number between 0 and 2");if(typeof r!="boolean")throw new Error("Cheap parameter must be a boolean");return(await ue.post("/generate-content",{prompt:e,temperature:t,cheap:r,options:n})).data.result}catch(o){if(se.isAxiosError(o))if(o.response){const i=o.response.data.error||"Unknown server error";throw new Error(`Content generation failed: ${i}`)}else throw o.request?new Error("No response received from server during content generation"):new Error(`Request setup failed: ${o.message}`);throw o instanceof Error?o:new Error("An unexpected error occurred during content generation")}},wa=async()=>(await ue.get("/execution-status")).data.status,Vx=async()=>{await ue.post("/interrupt-execution")},Jh=async()=>{await ue.post("/pause-execution")},Qh=async()=>{await ue.post("/resume-execution")},Sa=async()=>(await ue.get("/current-question")).data.question,Hx=async(e,t,r,n)=>{await ue.post("/answer-question",{questionId:e,answer:t,confirmed:r,options:n})},Td=async()=>(await ue.get("/usage")).data,Kx=async()=>(await ue.get("/default-codegen-options")).data.options,Wx=async()=>(await ue.get("/rcconfig")).data.rcConfig,Jx=async e=>{await ue.delete(`/delete-iteration/${e}`)},Gh=async()=>(await ue.get("/available-ai-services")).data.services,Qx=async()=>{try{return(await ue.get("/service-configurations")).data.configurations}catch{throw new Error("Failed to fetch service configurations")}},Gx=async e=>{await ue.post("/service-configuration",e)};ue.interceptors.response.use(e=>e,e=>(console.error("API request failed:",e),e.response?(console.error("Error data:",e.response.data),console.error("Error status:",e.response.status),console.error("Error headers:",e.response.headers)):e.request?console.error("No response received:",e.request):console.error("Error message:",e.message),Promise.reject(e)));function ks(e,t){const r=new CustomEvent(e,{bubbles:!0,detail:t});document.dispatchEvent(r)}function Cs(e,t){S.useEffect(()=>{const r=n=>{t(n.detail)};return document.addEventListener(e,r,!1),()=>{document.removeEventListener(e,r,!1)}},[e,t])}function bu(){const[e,t]=S.useState([]),[r,n]=S.useState(null);return S.useEffect(()=>{(async()=>{try{const i=await Gh();t(i)}catch(i){console.error("Error fetching AI services:",i),n("Failed to fetch available AI services.")}})()},[]),[e,r]}const js=C.button`
|
|
92
|
+
background-color: transparent;
|
|
93
|
+
color: ${({theme:e})=>e.colors.text};
|
|
94
|
+
border: none;
|
|
95
|
+
border-radius: 50%;
|
|
96
|
+
width: 40px;
|
|
97
|
+
height: 40px;
|
|
98
|
+
font-size: 20px;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
transition: background-color 0.3s;
|
|
104
|
+
|
|
105
|
+
&:hover {
|
|
106
|
+
background-color: ${({theme:e})=>e.colors.buttonHoverBg};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&:focus {
|
|
110
|
+
outline: none;
|
|
111
|
+
box-shadow: 0 0 0 2px ${({theme:e})=>e.colors.primary};
|
|
112
|
+
}
|
|
113
|
+
`;function qh(){ks("openContentGenerationModel")}function qx(){return c.jsx(js,{onClick:qh,"aria-label":"Content generation modal",children:"✨"})}const Yx=({currentService:e})=>{const[t,r]=S.useState(""),[n,o]=S.useState(e),[i,s]=S.useState(.7),[l,a]=S.useState(!1),[u,d]=S.useState(!1),[f,h]=S.useState(null),[g,v]=S.useState(null),[x,k]=S.useState(!1),m=()=>k(!1),[p]=bu();if(Cs("openContentGenerationModel",()=>k(!0)),!x)return null;const y=async w=>{w.preventDefault(),d(!0),h(null),v(null);try{const N=await Wh(t,i,l,{aiService:n,askQuestion:!1});v(N)}catch(N){h(N instanceof Error?N.message:"An unexpected error occurred")}finally{d(!1)}};return c.jsx(Xx,{onClick:w=>w.target===w.currentTarget&&m(),children:c.jsxs(Zx,{children:[c.jsx(ew,{onClick:m,children:"×"}),c.jsx("h2",{children:"Generate Content"}),c.jsxs(tw,{onSubmit:y,children:[c.jsxs(Xo,{children:["Prompt",c.jsx(rw,{value:t,onChange:w=>r(w.target.value),placeholder:"Enter your prompt here...",required:!0})]}),c.jsxs(Xo,{children:["AI Service",c.jsx(nw,{value:n,onChange:w=>o(w.target.value),children:p.map(w=>c.jsx("option",{value:w,children:w},w))})]}),c.jsxs(Xo,{children:["Temperature (",i,")",c.jsxs(ow,{children:[c.jsx(iw,{type:"range",min:"0",max:"2",step:"0.1",value:i,onChange:w=>s(Number(w.target.value))}),c.jsx(sw,{children:i})]})]}),c.jsxs(Xo,{children:[c.jsx("input",{type:"checkbox",checked:l,onChange:w=>a(w.target.checked)}),"Use cheap mode"]}),c.jsx(lw,{type:"submit",disabled:u||!t,children:u?"Generating...":"Generate"})]}),f&&c.jsx(uw,{children:f}),g&&c.jsx(aw,{children:g.map((w,N)=>c.jsxs("div",{children:[c.jsx("strong",{children:w.name}),c.jsx("pre",{children:JSON.stringify(w,null,2)})]},N))})]})})},Xx=C.div`
|
|
114
|
+
position: fixed;
|
|
115
|
+
top: 0;
|
|
116
|
+
left: 0;
|
|
117
|
+
right: 0;
|
|
118
|
+
bottom: 0;
|
|
119
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
120
|
+
display: flex;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
align-items: center;
|
|
123
|
+
z-index: 1000;
|
|
124
|
+
`,Zx=C.div`
|
|
125
|
+
background: ${({theme:e})=>e.colors.background};
|
|
126
|
+
padding: 2rem;
|
|
127
|
+
border-radius: 8px;
|
|
128
|
+
width: 90%;
|
|
129
|
+
max-width: 800px;
|
|
130
|
+
max-height: 90vh;
|
|
131
|
+
overflow-y: auto;
|
|
132
|
+
position: relative;
|
|
133
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
134
|
+
`,ew=C.button`
|
|
135
|
+
position: absolute;
|
|
136
|
+
top: 1rem;
|
|
137
|
+
right: 1rem;
|
|
138
|
+
background: none;
|
|
139
|
+
border: none;
|
|
140
|
+
font-size: 1.5rem;
|
|
141
|
+
cursor: pointer;
|
|
142
|
+
color: ${({theme:e})=>e.colors.text};
|
|
143
|
+
&:hover {
|
|
144
|
+
opacity: 0.8;
|
|
145
|
+
}
|
|
146
|
+
`,tw=C.form`
|
|
147
|
+
display: flex;
|
|
148
|
+
flex-direction: column;
|
|
149
|
+
gap: 1rem;
|
|
150
|
+
`,Xo=C.label`
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
gap: 0.5rem;
|
|
154
|
+
color: ${({theme:e})=>e.colors.text};
|
|
155
|
+
`,rw=C.textarea`
|
|
156
|
+
padding: 0.5rem;
|
|
157
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
158
|
+
border-radius: 4px;
|
|
159
|
+
background: ${({theme:e})=>e.colors.background};
|
|
160
|
+
color: ${({theme:e})=>e.colors.text};
|
|
161
|
+
min-height: 100px;
|
|
162
|
+
resize: vertical;
|
|
163
|
+
`,nw=C.select`
|
|
164
|
+
padding: 0.5rem;
|
|
165
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
166
|
+
border-radius: 4px;
|
|
167
|
+
background: ${({theme:e})=>e.colors.background};
|
|
168
|
+
color: ${({theme:e})=>e.colors.text};
|
|
169
|
+
`,ow=C.div`
|
|
170
|
+
display: flex;
|
|
171
|
+
align-items: center;
|
|
172
|
+
gap: 1rem;
|
|
173
|
+
`,iw=C.input`
|
|
174
|
+
flex: 1;
|
|
175
|
+
`,sw=C.span`
|
|
176
|
+
min-width: 3rem;
|
|
177
|
+
text-align: right;
|
|
178
|
+
`,lw=C.button`
|
|
179
|
+
padding: 0.5rem 1rem;
|
|
180
|
+
background: ${({theme:e})=>e.colors.primary};
|
|
181
|
+
color: white;
|
|
182
|
+
border: none;
|
|
183
|
+
border-radius: 4px;
|
|
184
|
+
cursor: pointer;
|
|
185
|
+
&:hover {
|
|
186
|
+
opacity: 0.9;
|
|
187
|
+
}
|
|
188
|
+
&:disabled {
|
|
189
|
+
opacity: 0.5;
|
|
190
|
+
cursor: not-allowed;
|
|
191
|
+
}
|
|
192
|
+
`,aw=C.div`
|
|
193
|
+
margin-top: 1rem;
|
|
194
|
+
padding: 1rem;
|
|
195
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
196
|
+
border-radius: 4px;
|
|
197
|
+
background: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
198
|
+
white-space: pre-wrap;
|
|
199
|
+
`,uw=C.div`
|
|
200
|
+
color: ${({theme:e})=>e.colors.error};
|
|
201
|
+
margin-top: 1rem;
|
|
202
|
+
padding: 0.5rem;
|
|
203
|
+
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
204
|
+
border-radius: 4px;
|
|
205
|
+
`;function Yh(){ks("openHealthCheckModal")}function cw(){return c.jsx(js,{onClick:Yh,"aria-label":"Health check modal",children:"🏥"})}async function dw(){const e=(await Gh()).map(t=>[t,{status:void 0,lastChecked:new Date().toISOString()}]);return{services:Object.fromEntries(e),timestamp:new Date().toISOString()}}async function fw(e){var t,r;try{const[n]=await Wh("say: hello",.7,!0,{aiService:e,askQuestion:!1});return(r=(t=n==null?void 0:n.args)==null?void 0:t.message)!=null&&r.toLowerCase().includes("hello")?"success":void 0}catch{return"error"}}const pw=()=>{const[e,t]=S.useState(!1),[r,n]=S.useState(!1),[o,i]=S.useState(null),[s,l]=S.useState(null),[a,u]=S.useState(null);Cs("openHealthCheckModal",()=>t(!0));const d=()=>t(!1),f=async()=>{n(!0),i(null);try{const v=await dw();l(v),u(new Date);for(const[x,k]of Object.entries(v.services)){const m=Date.now(),p=await fw(x);k.status=p,k.responseTime=Date.now()-m,k.lastChecked=new Date().toISOString(),l(v),u(new Date)}}catch(v){i(v instanceof Error?v.message:"An unexpected error occurred")}finally{n(!1)}};if(S.useEffect(()=>{e&&f()},[e]),!e)return null;const h=v=>{switch(v){case"success":return"✅";case"error":return"❌";case"not_configured":return"⚠️";default:return"❓"}},g=v=>{switch(v){case"success":return"success";case"error":return"error";case"not_configured":return"warning";default:return"default"}};return c.jsx(hw,{onClick:v=>v.target===v.currentTarget&&d(),children:c.jsxs(mw,{children:[c.jsx(vw,{onClick:d,children:"×"}),c.jsxs(yw,{children:[c.jsx("h2",{children:"AI Services Health Check"}),c.jsx(gw,{onClick:f,disabled:r,children:r?"Checking...":"🔄 Refresh"})]}),o&&c.jsx($w,{children:o}),c.jsx(xw,{children:s&&Object.entries(s.services).map(([v,x])=>c.jsxs(ww,{children:[c.jsxs(Sw,{children:[c.jsx(kw,{children:v}),c.jsx(Cw,{children:h(x.status)})]}),c.jsxs(jw,{color:g(x.status),children:[c.jsxs("div",{children:["Status: ",x.status]}),x.responseTime&&c.jsxs("div",{children:["Response time: ",x.responseTime,"ms"]}),x.error&&c.jsx(Ew,{children:x.error}),c.jsxs(Nw,{children:["Last checked: ",new Date(x.lastChecked).toLocaleTimeString()]})]})]},v))}),a&&c.jsxs(Rw,{children:["Last updated: ",a.toLocaleTimeString()]}),r&&c.jsx(bw,{children:"Checking AI Services..."})]})})},hw=C.div`
|
|
206
|
+
position: fixed;
|
|
207
|
+
top: 0;
|
|
208
|
+
left: 0;
|
|
209
|
+
right: 0;
|
|
210
|
+
bottom: 0;
|
|
211
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
212
|
+
display: flex;
|
|
213
|
+
justify-content: center;
|
|
214
|
+
align-items: center;
|
|
215
|
+
z-index: 1000;
|
|
216
|
+
`,mw=C.div`
|
|
217
|
+
background: ${({theme:e})=>e.colors.background};
|
|
218
|
+
padding: 2rem;
|
|
219
|
+
border-radius: 8px;
|
|
220
|
+
width: 90%;
|
|
221
|
+
max-width: 800px;
|
|
222
|
+
max-height: 90vh;
|
|
223
|
+
overflow-y: auto;
|
|
224
|
+
position: relative;
|
|
225
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
226
|
+
`,yw=C.div`
|
|
227
|
+
display: flex;
|
|
228
|
+
justify-content: space-between;
|
|
229
|
+
align-items: center;
|
|
230
|
+
margin-bottom: 2rem;
|
|
231
|
+
|
|
232
|
+
h2 {
|
|
233
|
+
margin: 0;
|
|
234
|
+
}
|
|
235
|
+
`,vw=C.button`
|
|
236
|
+
position: absolute;
|
|
237
|
+
top: 1rem;
|
|
238
|
+
right: 1rem;
|
|
239
|
+
background: none;
|
|
240
|
+
border: none;
|
|
241
|
+
font-size: 1.5rem;
|
|
242
|
+
cursor: pointer;
|
|
243
|
+
color: ${({theme:e})=>e.colors.text};
|
|
244
|
+
&:hover {
|
|
245
|
+
opacity: 0.8;
|
|
246
|
+
}
|
|
247
|
+
`,gw=C.button`
|
|
248
|
+
padding: 0.5rem 1rem;
|
|
249
|
+
background: ${({theme:e})=>e.colors.primary};
|
|
250
|
+
color: white;
|
|
251
|
+
border: none;
|
|
252
|
+
border-radius: 4px;
|
|
253
|
+
cursor: pointer;
|
|
254
|
+
&:hover {
|
|
255
|
+
opacity: 0.9;
|
|
256
|
+
}
|
|
257
|
+
&:disabled {
|
|
258
|
+
opacity: 0.5;
|
|
259
|
+
cursor: not-allowed;
|
|
260
|
+
}
|
|
261
|
+
`,xw=C.div`
|
|
262
|
+
display: grid;
|
|
263
|
+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
264
|
+
gap: 1rem;
|
|
265
|
+
margin-bottom: 1rem;
|
|
266
|
+
`,ww=C.div`
|
|
267
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
268
|
+
border-radius: 4px;
|
|
269
|
+
padding: 1rem;
|
|
270
|
+
background: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
271
|
+
`,Sw=C.div`
|
|
272
|
+
display: flex;
|
|
273
|
+
justify-content: space-between;
|
|
274
|
+
align-items: center;
|
|
275
|
+
margin-bottom: 0.5rem;
|
|
276
|
+
`,kw=C.h3`
|
|
277
|
+
margin: 0;
|
|
278
|
+
font-size: 1.1rem;
|
|
279
|
+
`,Cw=C.span`
|
|
280
|
+
font-size: 1.2rem;
|
|
281
|
+
`,jw=C.div`
|
|
282
|
+
color: ${({theme:e,color:t})=>{switch(t){case"success":return e.colors.success;case"error":return e.colors.error;case"warning":return e.colors.warning;default:return e.colors.text}}};
|
|
283
|
+
font-size: 0.9rem;
|
|
284
|
+
`,Ew=C.div`
|
|
285
|
+
color: ${({theme:e})=>e.colors.error};
|
|
286
|
+
margin-top: 0.5rem;
|
|
287
|
+
`,Nw=C.div`
|
|
288
|
+
color: ${({theme:e})=>e.colors.textSecondary};
|
|
289
|
+
font-size: 0.8rem;
|
|
290
|
+
margin-top: 0.5rem;
|
|
291
|
+
`,Rw=C.div`
|
|
292
|
+
text-align: right;
|
|
293
|
+
color: ${({theme:e})=>e.colors.textSecondary};
|
|
294
|
+
font-size: 0.8rem;
|
|
295
|
+
margin-top: 1rem;
|
|
296
|
+
`,$w=C.div`
|
|
297
|
+
color: ${({theme:e})=>e.colors.error};
|
|
298
|
+
margin-bottom: 1rem;
|
|
299
|
+
padding: 0.5rem;
|
|
300
|
+
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
301
|
+
border-radius: 4px;
|
|
302
|
+
`,bw=C.div`
|
|
303
|
+
position: absolute;
|
|
304
|
+
top: 0;
|
|
305
|
+
left: 0;
|
|
306
|
+
right: 0;
|
|
307
|
+
bottom: 0;
|
|
308
|
+
background: rgba(0, 0, 0, 0.3);
|
|
309
|
+
display: flex;
|
|
310
|
+
justify-content: center;
|
|
311
|
+
align-items: center;
|
|
312
|
+
border-radius: 8px;
|
|
313
|
+
color: white;
|
|
314
|
+
font-size: 1.2rem;
|
|
315
|
+
`,Xh=C.div`
|
|
316
|
+
position: fixed;
|
|
317
|
+
top: 0;
|
|
318
|
+
left: 0;
|
|
319
|
+
right: 0;
|
|
320
|
+
bottom: 0;
|
|
321
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
322
|
+
display: flex;
|
|
323
|
+
justify-content: center;
|
|
324
|
+
align-items: center;
|
|
325
|
+
z-index: 1000;
|
|
326
|
+
`,Zh=C.div`
|
|
327
|
+
background: ${({theme:e})=>e.colors.background};
|
|
328
|
+
padding: 2rem;
|
|
329
|
+
border-radius: 8px;
|
|
330
|
+
width: 90%;
|
|
331
|
+
max-width: 800px;
|
|
332
|
+
max-height: 90vh;
|
|
333
|
+
overflow-y: auto;
|
|
334
|
+
position: relative;
|
|
335
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
336
|
+
`,em=C.div`
|
|
337
|
+
display: flex;
|
|
338
|
+
justify-content: space-between;
|
|
339
|
+
align-items: center;
|
|
340
|
+
margin-bottom: 2rem;
|
|
341
|
+
|
|
342
|
+
h2 {
|
|
343
|
+
margin: 0;
|
|
344
|
+
}
|
|
345
|
+
`,tm=C.button`
|
|
346
|
+
position: absolute;
|
|
347
|
+
top: 1rem;
|
|
348
|
+
right: 1rem;
|
|
349
|
+
background: none;
|
|
350
|
+
border: none;
|
|
351
|
+
font-size: 1.5rem;
|
|
352
|
+
cursor: pointer;
|
|
353
|
+
color: ${({theme:e})=>e.colors.text};
|
|
354
|
+
&:hover {
|
|
355
|
+
opacity: 0.8;
|
|
356
|
+
}
|
|
357
|
+
`,Pw=C.div`
|
|
358
|
+
display: grid;
|
|
359
|
+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
360
|
+
gap: 1rem;
|
|
361
|
+
margin-bottom: 1rem;
|
|
362
|
+
`,Tw=C.div`
|
|
363
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
364
|
+
border-radius: 4px;
|
|
365
|
+
background: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
366
|
+
transition: box-shadow 0.2s ease;
|
|
367
|
+
|
|
368
|
+
&:hover {
|
|
369
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
370
|
+
}
|
|
371
|
+
`,_w=C.div`
|
|
372
|
+
cursor: pointer;
|
|
373
|
+
padding: 1rem;
|
|
374
|
+
user-select: none;
|
|
375
|
+
display: flex;
|
|
376
|
+
justify-content: space-between;
|
|
377
|
+
align-items: center;
|
|
378
|
+
width: 100%;
|
|
379
|
+
background: none;
|
|
380
|
+
border: none;
|
|
381
|
+
color: ${({theme:e})=>e.colors.text};
|
|
382
|
+
transition: background-color 0.2s ease;
|
|
383
|
+
|
|
384
|
+
&:hover {
|
|
385
|
+
background-color: ${({theme:e})=>`${e.colors.border}20`};
|
|
386
|
+
}
|
|
387
|
+
`,Lw=C.div`
|
|
388
|
+
display: flex;
|
|
389
|
+
align-items: center;
|
|
390
|
+
gap: 0.5rem;
|
|
391
|
+
`,Iw=C.h3`
|
|
392
|
+
margin: 0;
|
|
393
|
+
font-size: 1.1rem;
|
|
394
|
+
`,Ow=C.span`
|
|
395
|
+
display: inline-block;
|
|
396
|
+
transition: transform 0.2s ease;
|
|
397
|
+
transform: rotate(${({$isCollapsed:e})=>e?"0deg":"180deg"});
|
|
398
|
+
font-size: 0.8rem;
|
|
399
|
+
`,Aw=C.div`
|
|
400
|
+
overflow: hidden;
|
|
401
|
+
transition: height 0.3s ease;
|
|
402
|
+
height: ${({$isCollapsed:e})=>e?"0":"auto"};
|
|
403
|
+
padding: ${({$isCollapsed:e})=>e?"0 1rem":"0 1rem 1rem"};
|
|
404
|
+
opacity: ${({$isCollapsed:e})=>e?"0":"1"};
|
|
405
|
+
transition: all 0.3s ease;
|
|
406
|
+
`,Mw=C.form`
|
|
407
|
+
display: flex;
|
|
408
|
+
flex-direction: column;
|
|
409
|
+
gap: 1rem;
|
|
410
|
+
`,ct=C.div`
|
|
411
|
+
display: flex;
|
|
412
|
+
flex-direction: column;
|
|
413
|
+
gap: 0.5rem;
|
|
414
|
+
`,dt=C.label`
|
|
415
|
+
font-size: 0.9rem;
|
|
416
|
+
color: ${({theme:e})=>e.colors.text};
|
|
417
|
+
`,Dn=C.input`
|
|
418
|
+
padding: 0.5rem;
|
|
419
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
420
|
+
border-radius: 4px;
|
|
421
|
+
background: ${({theme:e})=>e.colors.background};
|
|
422
|
+
color: ${({theme:e})=>e.colors.text};
|
|
423
|
+
font-size: 0.9rem;
|
|
424
|
+
|
|
425
|
+
&:focus {
|
|
426
|
+
outline: none;
|
|
427
|
+
border-color: ${({theme:e})=>e.colors.primary};
|
|
428
|
+
}
|
|
429
|
+
`,Dw=C.button`
|
|
430
|
+
padding: 0.5rem 1rem;
|
|
431
|
+
background: ${({theme:e})=>e.colors.primary};
|
|
432
|
+
color: white;
|
|
433
|
+
border: none;
|
|
434
|
+
border-radius: 4px;
|
|
435
|
+
cursor: pointer;
|
|
436
|
+
font-size: 0.9rem;
|
|
437
|
+
|
|
438
|
+
&:hover {
|
|
439
|
+
opacity: 0.9;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
&:disabled {
|
|
443
|
+
opacity: 0.5;
|
|
444
|
+
cursor: not-allowed;
|
|
445
|
+
}
|
|
446
|
+
`,zw=C.div`
|
|
447
|
+
color: ${({theme:e})=>e.colors.error};
|
|
448
|
+
margin-bottom: 1rem;
|
|
449
|
+
padding: 0.5rem;
|
|
450
|
+
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
451
|
+
border-radius: 4px;
|
|
452
|
+
`,Fw=C.div`
|
|
453
|
+
color: ${({theme:e})=>e.colors.success};
|
|
454
|
+
margin-bottom: 1rem;
|
|
455
|
+
padding: 0.5rem;
|
|
456
|
+
border: 1px solid ${({theme:e})=>e.colors.success};
|
|
457
|
+
border-radius: 4px;
|
|
458
|
+
`,Bw=C.div`
|
|
459
|
+
color: ${({theme:e})=>e.colors.error};
|
|
460
|
+
`,Uw=C.div`
|
|
461
|
+
position: absolute;
|
|
462
|
+
top: 0;
|
|
463
|
+
left: 0;
|
|
464
|
+
right: 0;
|
|
465
|
+
bottom: 0;
|
|
466
|
+
background: rgba(0, 0, 0, 0.3);
|
|
467
|
+
display: flex;
|
|
468
|
+
justify-content: center;
|
|
469
|
+
align-items: center;
|
|
470
|
+
border-radius: 8px;
|
|
471
|
+
color: white;
|
|
472
|
+
font-size: 1.2rem;
|
|
473
|
+
`,Or=e=>e==="vertex-ai"||e==="vertex-ai-claude",al=e=>e==="vertex-ai-claude",Vw=({serviceType:e,config:t,onUpdate:r,isLoading:n,isExpanded:o,onCardClick:i})=>{var P,A;const[s,l]=S.useState(""),[a,u]=S.useState(!!(t!=null&&t.hasApiKey)),[d,f]=S.useState(((P=t==null?void 0:t.modelOverrides)==null?void 0:P.default)||""),[h,g]=S.useState(((A=t==null?void 0:t.modelOverrides)==null?void 0:A.cheap)||""),[v,x]=S.useState((t==null?void 0:t.googleCloudProjectId)||""),[k,m]=S.useState((t==null?void 0:t.googleCloudRegion)||""),[p,y]=S.useState(null);S.useEffect(()=>{var _,U;u(!!(t!=null&&t.hasApiKey)),f(((_=t==null?void 0:t.modelOverrides)==null?void 0:_.default)||""),g(((U=t==null?void 0:t.modelOverrides)==null?void 0:U.cheap)||""),x((t==null?void 0:t.googleCloudProjectId)||""),m((t==null?void 0:t.googleCloudRegion)||"")},[t]);const w=()=>{if(Or(e)){if(!v)return y("GCP Project ID is required for Vertex AI services"),!1;if(al(e)&&!k)return y("GCP Region is required for Vertex AI Claude"),!1}else if(!a&&!s)return y("API Key is required"),!1;return y(null),!0},N=_=>{if(_.preventDefault(),!w())return;const U={modelOverrides:{default:d||void 0,cheap:h||void 0}};Or(e)?(U.googleCloudProjectId=v,al(e)&&(U.googleCloudRegion=k)):U.apiKey=s||void 0,r(U)},R=S.useCallback(()=>{i&&i(e)},[i,e]),$=_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),R())};return c.jsxs(Tw,{children:[c.jsxs(_w,{onClick:R,onKeyDown:$,role:"button",tabIndex:0,"aria-expanded":!!o,"aria-controls":`config-content-${e}`,children:[c.jsxs(Lw,{children:[c.jsx(Iw,{children:e}),!Or(e)&&a&&c.jsx("span",{title:"API Key is set",children:"🔑"}),Or(e)&&v&&c.jsx("span",{title:"GCP Project ID is set",children:"🌐"})]}),c.jsx(Ow,{$isCollapsed:!o,children:"▼"})]}),c.jsx(Aw,{$isCollapsed:!o,id:`config-content-${e}`,"aria-hidden":!o,children:c.jsxs(Mw,{onSubmit:N,children:[!Or(e)&&c.jsxs(ct,{children:[c.jsx(dt,{htmlFor:`apiKey-${e}`,children:"API Key"}),c.jsx(Dn,{id:`apiKey-${e}`,type:"password",value:s,onChange:_=>l(_.target.value),placeholder:a?"API key is set":"Enter API key","aria-label":`API Key for ${e}`})]}),Or(e)&&c.jsxs(ct,{children:[c.jsx(dt,{htmlFor:`projectId-${e}`,children:"GCP Project ID"}),c.jsx(Dn,{id:`projectId-${e}`,type:"text",value:v,onChange:_=>x(_.target.value),placeholder:"Enter GCP Project ID","aria-label":`GCP Project ID for ${e}`,required:!0})]}),al(e)&&c.jsxs(ct,{children:[c.jsx(dt,{htmlFor:`region-${e}`,children:"GCP Region"}),c.jsx(Dn,{id:`region-${e}`,type:"text",value:k,onChange:_=>m(_.target.value),placeholder:"Enter GCP Region","aria-label":`GCP Region for ${e}`,required:!0})]}),c.jsxs(ct,{children:[c.jsx(dt,{htmlFor:`defaultModel-${e}`,children:"Default Model"}),c.jsx(Dn,{id:`defaultModel-${e}`,type:"text",value:d,onChange:_=>f(_.target.value),placeholder:"Enter model name","aria-label":`Default Model for ${e}`})]}),c.jsxs(ct,{children:[c.jsx(dt,{htmlFor:`cheapModel-${e}`,children:"Cheap Model"}),c.jsx(Dn,{id:`cheapModel-${e}`,type:"text",value:h,onChange:_=>g(_.target.value),placeholder:"Enter model name","aria-label":`Cheap Model for ${e}`})]}),p&&c.jsx(Bw,{role:"alert","aria-live":"polite",children:p}),c.jsx(Dw,{type:"submit",disabled:n,"aria-busy":n,children:n?"Updating...":"Update Configuration"})]})})]})};function rm(){ks("openServiceConfigurationModal")}function Hw(){return c.jsx(js,{onClick:rm,"aria-label":"Open service configuration",children:"⚙️"})}const nm=e=>e==="vertex-ai"||e==="vertex-ai-claude",Kw=(e,t)=>{var n,o;const r=["Configuration updated successfully for "+e];return nm(e)?(t.googleCloudProjectId&&r.push(`GCP Project ID: ${t.googleCloudProjectId}`),e==="vertex-ai-claude"&&t.googleCloudRegion&&r.push(`GCP Region: ${t.googleCloudRegion}`)):t.apiKey&&r.push("API key has been updated"),(n=t.modelOverrides)!=null&&n.default&&r.push(`Default model: ${t.modelOverrides.default}`),(o=t.modelOverrides)!=null&&o.cheap&&r.push(`Cheap model: ${t.modelOverrides.cheap}`),r.join(`
|
|
474
|
+
`)},Ww=(e,t)=>{if(nm(e)){if(!t.googleCloudProjectId)return`GCP Project ID is required for ${e}`;if(e==="vertex-ai-claude"&&!t.googleCloudRegion)return"GCP Region is required for Vertex AI Claude"}return null},Jw=()=>{const[e,t]=S.useState(!1),[r,n]=S.useState(!1),[o,i]=S.useState(null),[s,l]=S.useState(null),[a,u]=S.useState(),[d]=bu();Cs("openServiceConfigurationModal",()=>t(!0));const f=()=>{t(!1),i(null),l(null)};S.useEffect(()=>{e&&h()},[e]);const h=async()=>{n(!0),i(null);try{const m=await Qx();u(m)}catch(m){i(m instanceof Error?m.message:"Failed to fetch configurations")}finally{n(!1)}},g=async(m,p)=>{n(!0),i(null),l(null);const y=Ww(m,p);if(y){i(y),n(!1);return}try{await Gx({serviceType:m,config:p}),await h(),l(Kw(m,p))}catch(w){let N="Failed to update configuration";w instanceof Error&&(N=w.message,w.message.includes("auth")?N=`Authentication error for ${m}: ${w.message}`:w.message.includes("permission")&&(N=`Permission error for ${m}: ${w.message}`)),i(N)}finally{n(!1)}},[v,x]=S.useState(null),k=S.useCallback(m=>{x(p=>p===m?null:m)},[x]);return e?c.jsx(Xh,{onClick:m=>m.target===m.currentTarget&&f(),role:"dialog","aria-modal":"true","aria-labelledby":"service-config-title",children:c.jsxs(Zh,{children:[c.jsx(tm,{onClick:f,"aria-label":"Close configuration modal",children:"×"}),c.jsx(em,{children:c.jsx("h2",{id:"service-config-title",children:"AI Services Configuration"})}),o&&c.jsx(zw,{role:"alert","aria-live":"polite",children:o}),s&&c.jsx(Fw,{role:"status","aria-live":"polite",children:s.split(`
|
|
475
|
+
`).map((m,p)=>c.jsx("div",{children:m},p))}),c.jsx(Pw,{children:a?d.map(m=>c.jsx(Vw,{serviceType:m,config:a[m],onUpdate:p=>g(m,p),isLoading:r,isExpanded:v===m,onCardClick:k},m)):c.jsx("div",{"aria-live":"polite",children:"Loading configurations..."})}),r&&c.jsx(Uw,{role:"status","aria-live":"polite",children:"Updating configurations..."})]})}):null},om=$o`
|
|
476
|
+
from {
|
|
477
|
+
opacity: 0;
|
|
478
|
+
}
|
|
479
|
+
to {
|
|
480
|
+
opacity: 1;
|
|
481
|
+
}
|
|
482
|
+
`,Qw=$o`
|
|
483
|
+
from {
|
|
484
|
+
transform: translateX(100%);
|
|
485
|
+
}
|
|
486
|
+
to {
|
|
487
|
+
transform: translateX(0);
|
|
488
|
+
}
|
|
489
|
+
`,Gw=C.button`
|
|
490
|
+
background: none;
|
|
491
|
+
border: none;
|
|
492
|
+
font-size: 1.5rem;
|
|
493
|
+
cursor: pointer;
|
|
494
|
+
padding: 8px;
|
|
495
|
+
color: ${({theme:e})=>e.colors.text};
|
|
496
|
+
transition: color 0.2s ease;
|
|
497
|
+
display: flex;
|
|
498
|
+
align-items: center;
|
|
499
|
+
justify-content: center;
|
|
500
|
+
|
|
501
|
+
&:hover {
|
|
502
|
+
color: ${({theme:e})=>e.colors.primary};
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
&:focus {
|
|
506
|
+
outline: 2px solid ${({theme:e})=>e.colors.primary};
|
|
507
|
+
outline-offset: 2px;
|
|
508
|
+
border-radius: 4px;
|
|
509
|
+
}
|
|
510
|
+
`,qw=C.div`
|
|
511
|
+
position: fixed;
|
|
512
|
+
top: 0;
|
|
513
|
+
left: 0;
|
|
514
|
+
right: 0;
|
|
515
|
+
bottom: 0;
|
|
516
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
517
|
+
z-index: 998;
|
|
518
|
+
display: ${({isOpen:e})=>e?"block":"none"};
|
|
519
|
+
animation: ${om} 0.2s ease;
|
|
520
|
+
`,Yw=C.div`
|
|
521
|
+
position: absolute;
|
|
522
|
+
${({position:e})=>e?rn`
|
|
523
|
+
top: ${e.top??"auto"};
|
|
524
|
+
right: ${e.right??"auto"};
|
|
525
|
+
left: ${e.left??"auto"};
|
|
526
|
+
bottom: ${e.bottom??"auto"};
|
|
527
|
+
`:rn`
|
|
528
|
+
top: 100%;
|
|
529
|
+
right: 0;
|
|
530
|
+
`}
|
|
531
|
+
background-color: ${({theme:e})=>e.colors.pageBackground};
|
|
532
|
+
border-radius: 8px;
|
|
533
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
534
|
+
padding: 8px 0;
|
|
535
|
+
min-width: 200px;
|
|
536
|
+
z-index: 999;
|
|
537
|
+
opacity: ${({isOpen:e})=>e?1:0};
|
|
538
|
+
visibility: ${({isOpen:e})=>e?"visible":"hidden"};
|
|
539
|
+
transform-origin: top right;
|
|
540
|
+
animation: ${({isOpen:e})=>e?rn`
|
|
541
|
+
${Qw} 0.2s ease,
|
|
542
|
+
${om} 0.2s ease
|
|
543
|
+
`:"none"};
|
|
544
|
+
|
|
545
|
+
@media (max-width: 576px) {
|
|
546
|
+
position: fixed;
|
|
547
|
+
top: 0;
|
|
548
|
+
right: 0;
|
|
549
|
+
bottom: 0;
|
|
550
|
+
min-width: 250px;
|
|
551
|
+
border-radius: 0;
|
|
552
|
+
border-top-left-radius: 8px;
|
|
553
|
+
border-bottom-left-radius: 8px;
|
|
554
|
+
transform-origin: center right;
|
|
555
|
+
}
|
|
556
|
+
`,Xw=C.div`
|
|
557
|
+
padding: 12px 16px;
|
|
558
|
+
cursor: pointer;
|
|
559
|
+
transition: background-color 0.2s ease;
|
|
560
|
+
display: flex;
|
|
561
|
+
align-items: center;
|
|
562
|
+
gap: 8px;
|
|
563
|
+
color: ${({theme:e})=>e.colors.text};
|
|
564
|
+
|
|
565
|
+
&:hover {
|
|
566
|
+
background-color: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
&:focus-within {
|
|
570
|
+
background-color: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
571
|
+
outline: 2px solid ${({theme:e})=>e.colors.primary};
|
|
572
|
+
outline-offset: -2px;
|
|
573
|
+
}
|
|
574
|
+
`,Zw=C.div`
|
|
575
|
+
position: relative;
|
|
576
|
+
display: inline-block;
|
|
577
|
+
`,eS=({menuItems:e,isOpen:t,onToggle:r,className:n,buttonAriaLabel:o="Toggle menu",menuAriaLabel:i="Navigation menu",position:s})=>{const l=S.useRef(null),a=S.useRef(null),u=S.useRef(null);S.useEffect(()=>{const h=v=>{var x;t&&l.current&&!l.current.contains(v.target)&&!((x=u.current)!=null&&x.contains(v.target))&&r()},g=v=>{var x;t&&v.key==="Escape"&&(r(),(x=u.current)==null||x.focus())};return document.addEventListener("mousedown",h),document.addEventListener("keydown",g),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("keydown",g)}},[t,r]),S.useEffect(()=>{var h;t&&((h=a.current)==null||h.focus())},[t]);const d=h=>{var x,k;if(!t)return;const g=Array.from(((x=l.current)==null?void 0:x.querySelectorAll('[role="menuitem"]'))||[]),v=g.indexOf(document.activeElement);switch(h.key){case"ArrowDown":h.preventDefault(),v<g.length-1?g[v+1].focus():g[0].focus();break;case"ArrowUp":h.preventDefault(),v>0?g[v-1].focus():g[g.length-1].focus();break;case"Home":h.preventDefault(),g[0].focus();break;case"End":h.preventDefault(),g[g.length-1].focus();break;case"Enter":case" ":h.preventDefault(),v>=0&&(e[v].onClick(),r(),(k=u.current)==null||k.focus());break}},f=h=>{var g;h(),r(),(g=u.current)==null||g.focus()};return c.jsxs(Zw,{className:n,children:[c.jsx(Gw,{onClick:r,"aria-expanded":t,"aria-haspopup":"true","aria-controls":"menu-items","aria-label":o,ref:u,children:"☰"}),c.jsx(qw,{isOpen:t,onClick:r}),c.jsx(Yw,{isOpen:t,position:s,ref:l,role:"menu","aria-label":i,id:"menu-items",onKeyDown:d,children:e.map((h,g)=>c.jsxs(Xw,{onClick:()=>f(h.onClick),role:"menuitem",tabIndex:t?0:-1,ref:g===0?a:null,"aria-label":h.ariaLabel,children:[h.content," ",h.ariaLabel]},h.key||g))})]})};function im(){ks("openRcConfigModal")}const tS=({rcConfig:e})=>{const[t,r]=S.useState(!1);Cs("openRcConfigModal",()=>r(!0));const n=()=>{r(!1)};return!t||!e?null:c.jsx(Xh,{onClick:o=>o.target===o.currentTarget&&n(),role:"dialog","aria-modal":"true","aria-labelledby":"rc-config-title",children:c.jsxs(Zh,{children:[c.jsx(tm,{onClick:n,"aria-label":"Close RC configuration modal",children:"×"}),c.jsx(em,{children:c.jsx("h2",{id:"rc-config-title",children:"RC Configuration"})}),c.jsxs(rS,{children:[c.jsxs(ct,{children:[c.jsx(dt,{children:"Root Directory"}),c.jsx(Ar,{children:e.rootDir})]}),e.lintCommand&&c.jsxs(ct,{children:[c.jsx(dt,{children:"Lint Command"}),c.jsx(Ar,{children:e.lintCommand})]}),e.extensions&&e.extensions.length>0&&c.jsxs(ct,{children:[c.jsx(dt,{children:"Extensions"}),c.jsx(Ar,{children:e.extensions.join(", ")})]}),e.ignorePaths&&e.ignorePaths.length>0&&c.jsxs(ct,{children:[c.jsx(dt,{children:"Ignore Paths"}),c.jsx(Ar,{children:e.ignorePaths.join(", ")})]}),e.importantContext&&c.jsxs(ct,{children:[c.jsx(dt,{children:"Important Context"}),c.jsx(Ar,{children:e.importantContext.files?`Files: ${e.importantContext.files.join(", ")}`:"None"})]}),e.modelOverrides&&c.jsxs(ct,{children:[c.jsx(dt,{children:"Model Overrides"}),c.jsx(Ar,{children:c.jsx("pre",{children:JSON.stringify(e.modelOverrides,null,2)})})]})]})]})})},rS=C.div`
|
|
578
|
+
display: flex;
|
|
579
|
+
flex-direction: column;
|
|
580
|
+
gap: 1rem;
|
|
581
|
+
margin-top: 1rem;
|
|
582
|
+
`,Ar=C.div`
|
|
583
|
+
color: ${({theme:e})=>e.colors.text};
|
|
584
|
+
font-family: monospace;
|
|
585
|
+
background-color: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
586
|
+
padding: 0.5rem;
|
|
587
|
+
border-radius: 4px;
|
|
588
|
+
overflow-x: auto;
|
|
589
|
+
|
|
590
|
+
pre {
|
|
591
|
+
margin: 0;
|
|
592
|
+
white-space: pre-wrap;
|
|
593
|
+
}
|
|
594
|
+
`,nS=()=>c.jsx(oS,{onClick:im,children:c.jsx(iS,{"aria-label":"Show RC configuration",children:"ℹ️"})}),oS=C.div`
|
|
595
|
+
display: inline-block;
|
|
596
|
+
cursor: pointer;
|
|
597
|
+
`,iS=C.span`
|
|
598
|
+
font-size: 24px;
|
|
599
|
+
color: ${e=>e.theme.colors.primary};
|
|
600
|
+
`,sS=({themeToggle:e,chatInterface:t,inputArea:r,usage:n,toggleTheme:o})=>{const[i,s]=S.useState(!1),l=[{content:c.jsx(Hw,{}),ariaLabel:"Service Configuration",key:"service-config",onClick:rm},{content:c.jsx(cw,{}),ariaLabel:"Health Check",key:"health-check",onClick:Yh},{content:c.jsx(qx,{}),ariaLabel:"Content Generation",key:"content-gen",onClick:qh},{content:e,ariaLabel:"Theme Toggle",key:"theme-toggle",onClick:o},{content:c.jsx(nS,{}),ariaLabel:"Information",key:"info",onClick:im}];return c.jsxs(lS,{children:[c.jsxs(aS,{children:[c.jsx(uS,{children:c.jsx(cS,{children:"GenAIcode"})}),c.jsxs(dS,{children:[c.jsx(fS,{children:c.jsx(i1,{usage:n})}),c.jsx(pS,{children:c.jsx(eS,{menuItems:l,isOpen:i,onToggle:()=>s(!i),buttonAriaLabel:"Toggle navigation menu",menuAriaLabel:"Navigation menu",position:{top:"100%",right:0}})})]})]}),c.jsxs(hS,{children:[c.jsx(mS,{children:t}),c.jsx(yS,{children:r})]})]})},lS=C.div`
|
|
601
|
+
display: flex;
|
|
602
|
+
flex-direction: column;
|
|
603
|
+
height: 100vh;
|
|
604
|
+
max-width: 1200px;
|
|
605
|
+
margin: 0 auto;
|
|
606
|
+
padding: 0 10px;
|
|
607
|
+
`,aS=C.header`
|
|
608
|
+
position: relative;
|
|
609
|
+
display: flex;
|
|
610
|
+
justify-content: space-between;
|
|
611
|
+
align-items: center;
|
|
612
|
+
padding: 10px 0;
|
|
613
|
+
flex-wrap: nowrap;
|
|
614
|
+
gap: 10px;
|
|
615
|
+
`,uS=C.div`
|
|
616
|
+
display: flex;
|
|
617
|
+
align-items: center;
|
|
618
|
+
gap: 10px;
|
|
619
|
+
`,cS=C.h1`
|
|
620
|
+
text-transform: uppercase;
|
|
621
|
+
font-family: 'Press Start 2P', system-ui;
|
|
622
|
+
color: ${({theme:e})=>e.colors.primary};
|
|
623
|
+
margin: 0;
|
|
624
|
+
font-size: clamp(0.6rem, 2.5vw, 1.5rem);
|
|
625
|
+
white-space: nowrap;
|
|
626
|
+
overflow: hidden;
|
|
627
|
+
text-overflow: ellipsis;
|
|
628
|
+
`,dS=C.div`
|
|
629
|
+
display: flex;
|
|
630
|
+
align-items: center;
|
|
631
|
+
gap: 16px;
|
|
632
|
+
flex-wrap: nowrap;
|
|
633
|
+
flex-shrink: 0;
|
|
634
|
+
|
|
635
|
+
@media (max-width: 576px) {
|
|
636
|
+
gap: 8px;
|
|
637
|
+
}
|
|
638
|
+
`,fS=C.div`
|
|
639
|
+
flex-shrink: 1;
|
|
640
|
+
min-width: 0;
|
|
641
|
+
`,pS=C.div`
|
|
642
|
+
display: flex;
|
|
643
|
+
align-items: center;
|
|
644
|
+
|
|
645
|
+
@media (max-width: 576px) {
|
|
646
|
+
position: relative;
|
|
647
|
+
}
|
|
648
|
+
`,hS=C.main`
|
|
649
|
+
display: flex;
|
|
650
|
+
flex-direction: column;
|
|
651
|
+
flex-grow: 1;
|
|
652
|
+
min-height: 0;
|
|
653
|
+
position: relative;
|
|
654
|
+
z-index: 1;
|
|
655
|
+
`,mS=C.div`
|
|
656
|
+
flex-grow: 1;
|
|
657
|
+
overflow: hidden;
|
|
658
|
+
margin-bottom: 20px;
|
|
659
|
+
`,yS=C.div`
|
|
660
|
+
flex-shrink: 0;
|
|
661
|
+
`,vS=500,gS=()=>{const[e,t]=S.useState(""),[r,n]=S.useState(!1),[o,i]=S.useState("idle"),[s,l]=S.useState([]),[a,u]=S.useState(null),[d,f]=S.useState("dark"),[h,g]=S.useState(),[v,x]=S.useState({}),[k,m]=S.useState(null),[p,y]=S.useState(null),[w,N]=S.useState(!1),R=S.useRef(null),$=()=>{f(d==="light"?"dark":"light")};S.useEffect(()=>{(async()=>{try{const[fe,ot,O,Q,F,T]=await Promise.all([wa(),Sa(),Pd(),Td(),Kx(),Wx()]);n(fe!=="idle"),i(fe),u(ot),l(O.filter(I=>!!I.message).map(I=>({...I.message,data:I.data}))),g(Q),x(F),m(T)}catch(fe){console.error("Failed to fetch initial data:",fe)}})()},[]);const P=S.useCallback(()=>{if(!w){N(!0);const me=async()=>{try{const[fe,ot,O,Q]=await Promise.all([wa(),Sa(),Pd(),Td()]);n(fe!=="idle"),i(fe),u(ot),l(O.filter(F=>!!F.message).map(F=>({...F.message,data:F.data}))),g(Q)}catch(fe){console.error("Failed to poll data:",fe)}R.current=setTimeout(me,vS)};me()}},[w]),A=S.useCallback(()=>{w&&(N(!1),R.current&&(clearTimeout(R.current),R.current=null))},[w]),_=S.useCallback(async()=>{try{await Jh(),i("paused")}catch(me){console.error("Failed to pause execution:",me)}},[]),U=S.useCallback(async()=>{try{await Qh(),i("executing")}catch(me){console.error("Failed to resume execution:",me)}},[]);return{currentPrompt:e,setCurrentPrompt:t,isExecuting:r,setIsExecuting:n,executionStatus:o,setExecutionStatus:i,chatMessages:s,setChatMessages:l,currentQuestion:a,theme:d,usage:h,codegenOptions:v,rcConfig:k,lastFinishedExecutionId:p,toggleTheme:$,setCodegenOptions:x,setCurrentQuestion:u,setLastFinishedExecutionId:y,startPolling:P,stopPolling:A,handlePauseExecution:_,handleResumeExecution:U}},xS=({setCurrentPrompt:e,setIsExecuting:t,setExecutionStatus:r,setChatMessages:n,setCurrentQuestion:o,codegenOptions:i,setCodegenOptions:s})=>{const l=async(g,v)=>{e(g),t(!0);try{if(t(!0),r("executing"),await wa()==="executing"){console.warn("Execution is already executing");return}Ux(g,i,v.length>0?v:void 0)}catch(x){console.error("Failed to execute codegen:",x)}finally{t(!1),r("idle")}},a=async(g,v,x)=>{const k=await Sa();if(k)try{o(null),await Hx(k.id,g,v,{...i,aiService:x??i.aiService})}catch(m){console.error("Failed to submit answer:",m)}},u=async()=>{try{o(null),await Vx()}catch(g){console.error("Failed to interrupt execution:",g)}},d=S.useCallback(g=>{s(g)},[s,n]),f=S.useCallback(async()=>{try{await Jh()}catch(g){console.error("Failed to pause execution:",g)}},[r,n]),h=S.useCallback(async()=>{try{await Qh()}catch(g){console.error("Failed to resume execution:",g)}},[r,n]);return{handleExecute:l,handleQuestionSubmit:a,handleInterrupt:u,handleOptionsChange:d,handlePauseExecution:f,handleResumeExecution:h}};var to=(e=>(e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e))(to||{}),Pu=(e=>(e.CONVERSATION_SUMMARY="conversation-summary",e.MESSAGE_EDITABLE="editable",e))(Pu||{});function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},E.apply(null,arguments)}function V(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var sm={},lm=S.createContext(sm),wS=(e,t)=>E({},e,t),SS=()=>S.useContext(lm),Tu=S.createContext(()=>{});Tu.displayName="JVR.DispatchShowTools";function kS(){return S.useReducer(wS,sm)}function am(){return S.useContext(Tu)}var um=e=>{var{initial:t,dispatch:r,children:n}=e;return c.jsx(lm.Provider,{value:t,children:c.jsx(Tu.Provider,{value:r,children:n})})};um.displayName="JVR.ShowTools";var cm={},dm=S.createContext(cm),CS=(e,t)=>E({},e,t),Es=()=>S.useContext(dm),_u=S.createContext(()=>{});_u.displayName="JVR.DispatchExpands";function jS(){return S.useReducer(CS,cm)}function ES(){return S.useContext(_u)}var fm=e=>{var{initial:t,dispatch:r,children:n}=e;return c.jsx(dm.Provider,{value:t,children:c.jsx(_u.Provider,{value:r,children:n})})};fm.displayName="JVR.Expands";var pm={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},hm=S.createContext(pm),NS=(e,t)=>E({},e,t),X=()=>S.useContext(hm),Lu=S.createContext(()=>{});Lu.displayName="JVR.DispatchTypes";function RS(){return S.useReducer(NS,pm)}function $S(){return S.useContext(Lu)}function mm(e){var{initial:t,dispatch:r,children:n}=e;return c.jsx(hm.Provider,{value:t,children:c.jsx(Lu.Provider,{value:r,children:n})})}mm.displayName="JVR.Types";var bS=["style"];function ym(e){var{style:t}=e,r=V(e,bS),n=E({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return c.jsx("svg",E({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:n},r,{children:c.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}ym.displayName="JVR.TriangleArrow";var vm={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:c.jsx(ym,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},gm=S.createContext(vm),PS=(e,t)=>E({},e,t),De=()=>S.useContext(gm),Iu=S.createContext(()=>{});Iu.displayName="JVR.DispatchSymbols";function TS(){return S.useReducer(PS,vm)}function _S(){return S.useContext(Iu)}var xm=e=>{var{initial:t,dispatch:r,children:n}=e;return c.jsx(gm.Provider,{value:t,children:c.jsx(Iu.Provider,{value:r,children:n})})};xm.displayName="JVR.Symbols";var wm={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Sm=S.createContext(wm),LS=(e,t)=>E({},e,t),nt=()=>S.useContext(Sm),Ou=S.createContext(()=>{});Ou.displayName="JVR.DispatchSection";function IS(){return S.useReducer(LS,wm)}function OS(){return S.useContext(Ou)}var km=e=>{var{initial:t,dispatch:r,children:n}=e;return c.jsx(Sm.Provider,{value:t,children:c.jsx(Ou.Provider,{value:r,children:n})})};km.displayName="JVR.Section";var Cm={objectSortKeys:!1,indentWidth:15},Au=S.createContext(Cm);Au.displayName="JVR.Context";var jm=S.createContext(()=>{});jm.displayName="JVR.DispatchContext";function AS(e,t){return E({},e,t)}var _r=()=>S.useContext(Au),Em=e=>{var{children:t,initialState:r,initialTypes:n}=e,[o,i]=S.useReducer(AS,Object.assign({},Cm,r)),[s,l]=kS(),[a,u]=jS(),[d,f]=RS(),[h,g]=TS(),[v,x]=IS();return S.useEffect(()=>i(E({},r)),[r]),c.jsx(Au.Provider,{value:o,children:c.jsx(jm.Provider,{value:i,children:c.jsx(um,{initial:s,dispatch:l,children:c.jsx(fm,{initial:a,dispatch:u,children:c.jsx(mm,{initial:E({},d,n),dispatch:f,children:c.jsx(xm,{initial:h,dispatch:g,children:c.jsx(km,{initial:v,dispatch:x,children:t})})})})})})})};Em.displayName="JVR.Provider";function MS(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var DS=["isNumber","value","parentValue","keyName","keys"],zS=["as","render"],FS=["as","render"],BS=["as","render"],US=["as","style","render"],VS=["as","render"],HS=["as","render"],KS=["as","render"],WS=["as","render"],ka=e=>{var{Quote:t={}}=De(),{isNumber:r,value:n,parentValue:o,keyName:i,keys:s}=e,l=V(e,DS);if(r)return null;var{as:a,render:u}=t,d=V(t,zS),f=a||"span",h=E({},l,d),g={value:n,parentValue:o,keyName:i,keys:s||(i?[i]:[])},v=u&&typeof u=="function"&&u(h,g);return v||c.jsx(f,E({},h))};ka.displayName="JVR.Quote";var ko=e=>{var{ValueQuote:t={}}=De(),r=E({},(MS(e),e)),{as:n,render:o}=t,i=V(t,FS),s=n||"span",l=E({},r,i),a=o&&typeof o=="function"&&o(l,{});return a||c.jsx(s,E({},l))};ko.displayName="JVR.ValueQuote";var Nm=e=>{var{value:t,parentValue:r,keyName:n,keys:o}=e,{Colon:i={}}=De(),{as:s,render:l}=i,a=V(i,BS),u=s||"span",d=l&&typeof l=="function"&&l(a,{value:t,parentValue:r,keyName:n,keys:o||(n?[n]:[])});return d||c.jsx(u,E({},a))};Nm.displayName="JVR.Colon";var Rm=e=>{var{Arrow:t={}}=De(),r=Es(),{expandKey:n,style:o,value:i,parentValue:s,keyName:l,keys:a}=e,u=!!r[n],{as:d,style:f,render:h}=t,g=V(t,US),v=d||"span",x=h&&typeof h=="function",k=E({},g,{"data-expanded":u,style:E({},f,o)}),m={value:i,parentValue:s,keyName:l,keys:a||(l?[l]:[])},p=x&&h(k,m);return p||c.jsx(v,E({},g,{style:E({},f,o)}))};Rm.displayName="JVR.Arrow";var $m=e=>{var{isBrackets:t,value:r,parentValue:n,keyName:o,keys:i}=e,{BracketsLeft:s={},BraceLeft:l={}}=De(),a={value:r,parentValue:n,keyName:o,keys:i||(o?[o]:[])};if(t){var{as:u,render:d}=s,f=V(s,VS),h=u||"span",g=d&&typeof d=="function"&&d(f,a);return g||c.jsx(h,E({},f))}var{as:v,render:x}=l,k=V(l,HS),m=v||"span",p=x&&typeof x=="function"&&x(k,a);return p||c.jsx(m,E({},k))};$m.displayName="JVR.BracketsOpen";var Mu=e=>{var{isBrackets:t,isVisiable:r,value:n,parentValue:o,keyName:i,keys:s}=e,l={value:n,parentValue:o,keyName:i,keys:s||(i?[i]:[])};if(!r)return null;var{BracketsRight:a={},BraceRight:u={}}=De();if(t){var{as:d,render:f}=a,h=V(a,KS),g=d||"span",v=f&&typeof f=="function"&&f(h,l);return v||c.jsx(g,E({},h))}var{as:x,render:k}=u,m=V(u,WS),p=x||"span",y=k&&typeof k=="function"&&k(m,l);return y||c.jsx(p,E({},m))};Mu.displayName="JVR.BracketsClose";var bm=e=>{var t,{value:r,expandKey:n,level:o,keys:i=[]}=e,s=Es(),l=Array.isArray(r),{collapsed:a,shouldExpandNodeInitially:u}=_r(),d=r instanceof Set,f=typeof a=="boolean"?a:typeof a=="number"?o>a:!1,h=(t=s[n])!=null?t:f,g=Object.keys(r).length;if(s[n]===void 0&&u&&u(h,{value:r,keys:i,level:o})||h||g===0)return null;var v={paddingLeft:4};return c.jsx("div",{style:v,children:c.jsx(Mu,{isBrackets:l||d,isVisiable:!0})})};bm.displayName="JVR.NestedClose";var JS=["as","render"],QS=["as","render"],GS=["as","render"],qS=["as","render"],YS=["as","render"],XS=["as","render"],ZS=["as","render"],ek=["as","render"],tk=["as","render"],rk=["as","render"],nk=["as","render"],ok=["as","render"],ik=["as","render"],Ca=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},Pm=e=>{var{value:t,keyName:r}=e,{Set:n={},displayDataTypes:o}=X(),i=t instanceof Set;if(!i||!o)return null;var{as:s,render:l}=n,a=V(n,JS),u=l&&typeof l=="function",d=u&&l(a,{type:"type",value:t,keyName:r});if(d)return d;var f=s||"span";return c.jsx(f,E({},a))};Pm.displayName="JVR.SetComp";var Tm=e=>{var{value:t,keyName:r}=e,{Map:n={},displayDataTypes:o}=X(),i=t instanceof Map;if(!i||!o)return null;var{as:s,render:l}=n,a=V(n,QS),u=l&&typeof l=="function",d=u&&l(a,{type:"type",value:t,keyName:r});if(d)return d;var f=s||"span";return c.jsx(f,E({},a))};Tm.displayName="JVR.MapComp";var vt={opacity:.75,paddingRight:4},_m=e=>{var{children:t="",keyName:r}=e,{Str:n={},displayDataTypes:o}=X(),{shortenTextAfterLength:i=30}=_r(),{as:s,render:l}=n,a=V(n,GS),u=t,[d,f]=S.useState(i&&u.length>i);S.useEffect(()=>f(i&&u.length>i),[i]);var h=s||"span",g=E({},vt,n.style||{});i>0&&(a.style=E({},a.style,{cursor:u.length<=i?"initial":"pointer"}),u.length>i&&(a.onClick=()=>{f(!d)}));var v=d?u.slice(0,i)+"...":u,x=l&&typeof l=="function",k=x&&l(E({},a,{style:g}),{type:"type",value:t,keyName:r}),m=x&&l(E({},a,{children:v,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return c.jsxs(S.Fragment,{children:[o&&(k||c.jsx(h,E({},a,{style:g}))),m||c.jsxs(S.Fragment,{children:[c.jsx(ko,{}),c.jsx(h,E({},a,{className:"w-rjv-value",children:v})),c.jsx(ko,{})]})]})};_m.displayName="JVR.TypeString";var Lm=e=>{var{children:t,keyName:r}=e,{True:n={},displayDataTypes:o}=X(),{as:i,render:s}=n,l=V(n,qS),a=i||"span",u=E({},vt,n.style||{}),d=s&&typeof s=="function",f=d&&s(E({},l,{style:u}),{type:"type",value:t,keyName:r}),h=d&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return c.jsxs(S.Fragment,{children:[o&&(f||c.jsx(a,E({},l,{style:u}))),h||c.jsx(a,E({},l,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Lm.displayName="JVR.TypeTrue";var Im=e=>{var{children:t,keyName:r}=e,{False:n={},displayDataTypes:o}=X(),{as:i,render:s}=n,l=V(n,YS),a=i||"span",u=E({},vt,n.style||{}),d=s&&typeof s=="function",f=d&&s(E({},l,{style:u}),{type:"type",value:t,keyName:r}),h=d&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return c.jsxs(S.Fragment,{children:[o&&(f||c.jsx(a,E({},l,{style:u}))),h||c.jsx(a,E({},l,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Im.displayName="JVR.TypeFalse";var Om=e=>{var{children:t,keyName:r}=e,{Float:n={},displayDataTypes:o}=X(),{as:i,render:s}=n,l=V(n,XS),a=i||"span",u=E({},vt,n.style||{}),d=s&&typeof s=="function",f=d&&s(E({},l,{style:u}),{type:"type",value:t,keyName:r}),h=d&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return c.jsxs(S.Fragment,{children:[o&&(f||c.jsx(a,E({},l,{style:u}))),h||c.jsx(a,E({},l,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Om.displayName="JVR.TypeFloat";var Am=e=>{var{children:t,keyName:r}=e,{Int:n={},displayDataTypes:o}=X(),{as:i,render:s}=n,l=V(n,ZS),a=i||"span",u=E({},vt,n.style||{}),d=s&&typeof s=="function",f=d&&s(E({},l,{style:u}),{type:"type",value:t,keyName:r}),h=d&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return c.jsxs(S.Fragment,{children:[o&&(f||c.jsx(a,E({},l,{style:u}))),h||c.jsx(a,E({},l,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Am.displayName="JVR.TypeInt";var Mm=e=>{var{children:t,keyName:r}=e,{Bigint:n={},displayDataTypes:o}=X(),{as:i,render:s}=n,l=V(n,ek),a=i||"span",u=E({},vt,n.style||{}),d=s&&typeof s=="function",f=d&&s(E({},l,{style:u}),{type:"type",value:t,keyName:r}),h=d&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return c.jsxs(S.Fragment,{children:[o&&(f||c.jsx(a,E({},l,{style:u}))),h||c.jsx(a,E({},l,{className:"w-rjv-value",children:Ca(t==null?void 0:t.toString())}))]})};Mm.displayName="JVR.TypeFloat";var Dm=e=>{var{children:t,keyName:r}=e,{Url:n={},displayDataTypes:o}=X(),{as:i,render:s}=n,l=V(n,tk),a=i||"span",u=E({},vt,n.style),d=s&&typeof s=="function",f=d&&s(E({},l,{style:u}),{type:"type",value:t,keyName:r}),h=d&&s(E({},l,{children:t==null?void 0:t.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return c.jsxs(S.Fragment,{children:[o&&(f||c.jsx(a,E({},l,{style:u}))),h||c.jsxs("a",E({href:t==null?void 0:t.href,target:"_blank"},l,{className:"w-rjv-value",children:[c.jsx(ko,{}),t==null?void 0:t.href,c.jsx(ko,{})]}))]})};Dm.displayName="JVR.TypeUrl";var zm=e=>{var{children:t,keyName:r}=e,{Date:n={},displayDataTypes:o}=X(),{as:i,render:s}=n,l=V(n,rk),a=i||"span",u=E({},vt,n.style||{}),d=s&&typeof s=="function",f=d&&s(E({},l,{style:u}),{type:"type",value:t,keyName:r}),h=t instanceof Date?t.toLocaleString():t,g=d&&s(E({},l,{children:h,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return c.jsxs(S.Fragment,{children:[o&&(f||c.jsx(a,E({},l,{style:u}))),g||c.jsx(a,E({},l,{className:"w-rjv-value",children:h}))]})};zm.displayName="JVR.TypeDate";var Fm=e=>{var{children:t,keyName:r}=e,{Undefined:n={},displayDataTypes:o}=X(),{as:i,render:s}=n,l=V(n,nk),a=i||"span",u=E({},vt,n.style||{}),d=s&&typeof s=="function",f=d&&s(E({},l,{style:u}),{type:"type",value:t,keyName:r}),h=d&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return c.jsxs(S.Fragment,{children:[o&&(f||c.jsx(a,E({},l,{style:u}))),h]})};Fm.displayName="JVR.TypeUndefined";var Bm=e=>{var{children:t,keyName:r}=e,{Null:n={},displayDataTypes:o}=X(),{as:i,render:s}=n,l=V(n,ok),a=i||"span",u=E({},vt,n.style||{}),d=s&&typeof s=="function",f=d&&s(E({},l,{style:u}),{type:"type",value:t,keyName:r}),h=d&&s(E({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return c.jsxs(S.Fragment,{children:[o&&(f||c.jsx(a,E({},l,{style:u}))),h]})};Bm.displayName="JVR.TypeNull";var Um=e=>{var{children:t,keyName:r}=e,{Nan:n={},displayDataTypes:o}=X(),{as:i,render:s}=n,l=V(n,ik),a=i||"span",u=E({},vt,n.style||{}),d=s&&typeof s=="function",f=d&&s(E({},l,{style:u}),{type:"type",value:t,keyName:r}),h=d&&s(E({},l,{children:t==null?void 0:t.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return c.jsxs(S.Fragment,{children:[o&&(f||c.jsx(a,E({},l,{style:u}))),h]})};Um.displayName="JVR.TypeNan";var sk=e=>Number(e)===e&&e%1!==0||isNaN(e),Vm=e=>{var{value:t,keyName:r}=e,n={keyName:r};return t instanceof URL?c.jsx(Dm,E({},n,{children:t})):typeof t=="string"?c.jsx(_m,E({},n,{children:t})):t===!0?c.jsx(Lm,E({},n,{children:t})):t===!1?c.jsx(Im,E({},n,{children:t})):t===null?c.jsx(Bm,E({},n,{children:t})):t===void 0?c.jsx(Fm,E({},n,{children:t})):t instanceof Date?c.jsx(zm,E({},n,{children:t})):typeof t=="number"&&isNaN(t)?c.jsx(Um,E({},n,{children:t})):typeof t=="number"&&sk(t)?c.jsx(Om,E({},n,{children:t})):typeof t=="bigint"?c.jsx(Mm,E({},n,{children:t})):typeof t=="number"?c.jsx(Am,E({},n,{children:t})):null};Vm.displayName="JVR.Value";function ur(e,t,r){var n=_S(),o=[e.className,t.className].filter(Boolean).join(" "),i=E({},e,t,{className:o,style:E({},e.style,t.style),children:t.children||e.children});S.useEffect(()=>n({[r]:i}),[t])}function Ge(e,t,r){var n=$S(),o=[e.className,t.className].filter(Boolean).join(" "),i=E({},e,t,{className:o,style:E({},e.style,t.style),children:t.children||e.children});S.useEffect(()=>n({[r]:i}),[t])}function Cn(e,t,r){var n=OS(),o=[e.className,t.className].filter(Boolean).join(" "),i=E({},e,t,{className:o,style:E({},e.style,t.style),children:t.children||e.children});S.useEffect(()=>n({[r]:i}),[t])}var lk=["as","render"],Hm=e=>{var{KeyName:t={}}=nt();return Cn(t,e,"KeyName"),null};Hm.displayName="JVR.KeyName";var Km=e=>{var{children:t,value:r,parentValue:n,keyName:o,keys:i}=e,s=typeof t=="number",l={color:s?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:a={}}=nt(),{as:u,render:d}=a,f=V(a,lk);f.style=E({},f.style,l);var h=u||"span",g=d&&typeof d=="function"&&d(E({},f,{children:t}),{value:r,parentValue:n,keyName:o,keys:i||(o?[o]:[])});return g||c.jsx(h,E({},f,{children:t}))};Km.displayName="JVR.KeyNameComp";var ak=["children","value","parentValue","keyName","keys"],uk=["as","render","children"],Wm=e=>{var{Row:t={}}=nt();return Cn(t,e,"Row"),null};Wm.displayName="JVR.Row";var Jm=e=>{var{children:t,value:r,parentValue:n,keyName:o,keys:i}=e,s=V(e,ak),{Row:l={}}=nt(),{as:a,render:u}=l,d=V(l,uk),f=a||"div",h=u&&typeof u=="function"&&u(E({},s,d,{children:t}),{value:r,keyName:o,parentValue:n,keys:i});return h||c.jsx(f,E({},s,d,{children:t}))};Jm.displayName="JVR.RowComp";function ck(e){var t=S.useRef();return S.useEffect(()=>{t.current=e}),t.current}function dk(e){var{value:t,highlightUpdates:r,highlightContainer:n}=e,o=ck(t),i=S.useMemo(()=>{if(!r||o===void 0)return!1;if(typeof t!=typeof o)return!0;if(typeof t=="number")return isNaN(t)&&isNaN(o)?!1:t!==o;if(Array.isArray(t)!==Array.isArray(o))return!0;if(typeof t=="object"||typeof t=="function")return!1;if(t!==o)return!0},[r,t]);S.useEffect(()=>{n&&n.current&&i&&"animate"in n.current&&n.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[i,t,n])}var fk=["keyName","value","parentValue","expandKey","keys"],pk=["as","render"],Du=e=>{var{keyName:t,value:r,parentValue:n,expandKey:o,keys:i}=e,s=V(e,fk),{onCopied:l,enableClipboard:a}=_r(),u=SS(),d=u[o],[f,h]=S.useState(!1),{Copied:g={}}=nt();if(a===!1||!d)return null;var v=N=>{N.stopPropagation();var R="";typeof r=="number"&&r===1/0?R="Infinity":typeof r=="number"&&isNaN(r)?R="NaN":typeof r=="bigint"?R=Ca(r):r instanceof Date?R=r.toLocaleString():R=JSON.stringify(r,(P,A)=>typeof A=="bigint"?Ca(A):A,2),l&&l(R,r),h(!0);var $=navigator.clipboard||{writeText(P){return new Promise((A,_)=>{var U=document.createElement("textarea");U.style.position="absolute",U.style.opacity="0",U.style.left="-99999999px",U.value=P,document.body.appendChild(U),U.select(),document.execCommand("copy")?A():_(),U.remove()})}};$.writeText(R).then(()=>{var P=setTimeout(()=>{h(!1),clearTimeout(P)},3e3)}).catch(P=>{})},x={style:{display:"inline-flex"},fill:f?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:v},{render:k}=g,m=V(g,pk),p=E({},m,s,x,{style:E({},m.style,s.style,x.style)}),y=k&&typeof k=="function",w=y&&k(E({},p,{"data-copied":f}),{value:r,keyName:t,keys:i,parentValue:n});return w||(f?c.jsx("svg",E({viewBox:"0 0 32 36"},p,{children:c.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):c.jsx("svg",E({viewBox:"0 0 32 36"},p,{children:c.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};Du.displayName="JVR.Copied";function Qm(){var e=S.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var Gm=e=>{var t,{value:r,expandKey:n="",level:o,keys:i=[]}=e,s=Es(),{objectSortKeys:l,indentWidth:a,collapsed:u,shouldExpandNodeInitially:d}=_r(),f=Array.isArray(r),h=typeof u=="boolean"?u:typeof u=="number"?o>u:!1,g=(t=s[n])!=null?t:h;if(s[n]===void 0&&d&&d(g,{value:r,keys:i,level:o})||g)return null;var v=f?Object.entries(r).map(k=>[Number(k[0]),k[1]]):Object.entries(r);l&&(v=l===!0?v.sort((k,m)=>{var[p]=k,[y]=m;return typeof p=="string"&&typeof y=="string"?p.localeCompare(y):0}):v.sort((k,m)=>{var[p,y]=k,[w,N]=m;return typeof p=="string"&&typeof w=="string"?l(p,w,y,N):0}));var x={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:a,marginLeft:6};return c.jsx("div",{className:"w-rjv-wrap",style:x,children:v.map((k,m)=>{var[p,y]=k;return c.jsx(qm,{parentValue:r,keyName:p,keys:[...i,p],value:y,level:o},m)})})};Gm.displayName="JVR.KeyValues";var zu=e=>{var{keyName:t,parentValue:r,keys:n,value:o}=e,{highlightUpdates:i}=_r(),s=typeof t=="number",l=S.useRef(null);dk({value:o,highlightUpdates:i,highlightContainer:l});var a={keyName:t,value:o,keys:n,parentValue:r};return c.jsxs(S.Fragment,{children:[c.jsxs("span",{ref:l,children:[c.jsx(ka,E({isNumber:s,"data-placement":"left"},a)),c.jsx(Km,E({},a,{children:t})),c.jsx(ka,E({isNumber:s,"data-placement":"right"},a))]}),c.jsx(Nm,E({},a))]})};zu.displayName="JVR.KayName";var qm=e=>{var{keyName:t,value:r,parentValue:n,level:o=0,keys:i=[]}=e,s=am(),l=Qm(),a=Array.isArray(r),u=r instanceof Set,d=r instanceof Map,f=r instanceof Date,h=r instanceof URL,g=r&&typeof r=="object"&&!a&&!u&&!d&&!f&&!h,v=g||a||u||d;if(v){var x=u?Array.from(r):d?Object.fromEntries(r):r;return c.jsx(Fu,{keyName:t,value:x,parentValue:n,initialValue:r,keys:i,level:o+1})}var k={onMouseEnter:()=>s({[l]:!0}),onMouseLeave:()=>s({[l]:!1})};return c.jsxs(Jm,E({className:"w-rjv-line",value:r,keyName:t,keys:i,parentValue:n},k,{children:[c.jsx(zu,{keyName:t,value:r,keys:i,parentValue:n}),c.jsx(Vm,{keyName:t,value:r}),c.jsx(Du,{keyName:t,value:r,keys:i,parentValue:n,expandKey:l})]}))};qm.displayName="JVR.KeyValuesItem";var hk=["value","keyName"],mk=["as","render"],Ym=e=>{var{CountInfoExtra:t={}}=nt();return Cn(t,e,"CountInfoExtra"),null};Ym.displayName="JVR.CountInfoExtra";var Xm=e=>{var{value:t={},keyName:r}=e,n=V(e,hk),{CountInfoExtra:o={}}=nt(),{as:i,render:s}=o,l=V(o,mk);if(!s&&!l.children)return null;var a=i||"span",u=s&&typeof s=="function",d=E({},l,n),f=u&&s(d,{value:t,keyName:r});return f||c.jsx(a,E({},d))};Xm.displayName="JVR.CountInfoExtraComps";var yk=["value","keyName"],vk=["as","render"],Zm=e=>{var{CountInfo:t={}}=nt();return Cn(t,e,"CountInfo"),null};Zm.displayName="JVR.CountInfo";var ey=e=>{var{value:t={},keyName:r}=e,n=V(e,yk),{displayObjectSize:o}=_r(),{CountInfo:i={}}=nt();if(!o)return null;var{as:s,render:l}=i,a=V(i,vk),u=s||"span";a.style=E({},a.style,e.style);var d=Object.keys(t).length;a.children||(a.children=d+" item"+(d===1?"":"s"));var f=E({},a,n),h=l&&typeof l=="function",g=h&&l(E({},f,{"data-length":d}),{value:t,keyName:r});return g||c.jsx(u,E({},f))};ey.displayName="JVR.CountInfoComp";var gk=["as","render"],ty=e=>{var{Ellipsis:t={}}=nt();return Cn(t,e,"Ellipsis"),null};ty.displayName="JVR.Ellipsis";var ry=e=>{var{isExpanded:t,value:r,keyName:n}=e,{Ellipsis:o={}}=nt(),{as:i,render:s}=o,l=V(o,gk),a=i||"span",u=s&&typeof s=="function"&&s(E({},l,{"data-expanded":t}),{value:r,keyName:n});return u||(!t||typeof r=="object"&&Object.keys(r).length==0?null:c.jsx(a,E({},l)))};ry.displayName="JVR.EllipsisComp";var ny=e=>{var t,{keyName:r,expandKey:n,keys:o=[],initialValue:i,value:s,parentValue:l,level:a}=e,u=Es(),d=ES(),{onExpand:f,collapsed:h,shouldExpandNodeInitially:g}=_r(),v=Array.isArray(s),x=s instanceof Set,k=typeof h=="boolean"?h:typeof h=="number"?a>h:!1,m=typeof s=="object",p=(t=u[n])!=null?t:k,y=g&&g(p,{value:s,keys:o,level:a});u[n]===void 0&&y!==void 0&&(p=y);var w=()=>{var U={expand:!p,value:s,keyid:n,keyName:r};f&&f(U),d({[n]:U.expand})},N={display:"inline-flex",alignItems:"center"},R={transform:"rotate("+(p?"-90":"0")+"deg)",transition:"all 0.3s"},$=Object.keys(s).length,P=$!==0&&(v||x||m),A={style:N};P&&(A.onClick=w);var _={keyName:r,value:s,keys:o,parentValue:l};return c.jsxs("span",E({},A,{children:[P&&c.jsx(Rm,E({style:R,expandKey:n},_)),(r||typeof r=="number")&&c.jsx(zu,E({},_)),c.jsx(Pm,{value:i,keyName:r}),c.jsx(Tm,{value:i,keyName:r}),c.jsx($m,E({isBrackets:v||x},_)),c.jsx(ry,{keyName:r,value:s,isExpanded:p}),c.jsx(Mu,E({isVisiable:p||!P,isBrackets:v||x},_)),c.jsx(ey,{value:s,keyName:r}),c.jsx(Xm,{value:s,keyName:r}),c.jsx(Du,{keyName:r,value:s,expandKey:n,parentValue:l,keys:o})]}))};ny.displayName="JVR.NestedOpen";var xk=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Fu=S.forwardRef((e,t)=>{var{className:r="",parentValue:n,level:o=1,value:i,initialValue:s,keys:l,keyName:a}=e,u=V(e,xk),d=am(),f=Qm(),h=[r,"w-rjv-inner"].filter(Boolean).join(" "),g={onMouseEnter:()=>d({[f]:!0}),onMouseLeave:()=>d({[f]:!1})};return c.jsxs("div",E({className:h,ref:t},u,g,{children:[c.jsx(ny,{expandKey:f,value:i,level:o,keys:l,parentValue:n,keyName:a,initialValue:s}),c.jsx(Gm,{expandKey:f,value:i,level:o,keys:l,parentValue:n,keyName:a}),c.jsx(bm,{expandKey:f,value:i,level:o,keys:l})]}))});Fu.displayName="JVR.Container";var oy=e=>{var{BraceLeft:t={}}=De();return ur(t,e,"BraceLeft"),null};oy.displayName="JVR.BraceLeft";var iy=e=>{var{BraceRight:t={}}=De();return ur(t,e,"BraceRight"),null};iy.displayName="JVR.BraceRight";var sy=e=>{var{BracketsLeft:t={}}=De();return ur(t,e,"BracketsLeft"),null};sy.displayName="JVR.BracketsLeft";var ly=e=>{var{BracketsRight:t={}}=De();return ur(t,e,"BracketsRight"),null};ly.displayName="JVR.BracketsRight";var ay=e=>{var{Arrow:t={}}=De();return ur(t,e,"Arrow"),null};ay.displayName="JVR.Arrow";var uy=e=>{var{Colon:t={}}=De();return ur(t,e,"Colon"),null};uy.displayName="JVR.Colon";var cy=e=>{var{Quote:t={}}=De();return ur(t,e,"Quote"),null};cy.displayName="JVR.Quote";var dy=e=>{var{ValueQuote:t={}}=De();return ur(t,e,"ValueQuote"),null};dy.displayName="JVR.ValueQuote";var fy=e=>{var{Bigint:t={}}=X();return Ge(t,e,"Bigint"),null};fy.displayName="JVR.Bigint";var py=e=>{var{Date:t={}}=X();return Ge(t,e,"Date"),null};py.displayName="JVR.Date";var hy=e=>{var{False:t={}}=X();return Ge(t,e,"False"),null};hy.displayName="JVR.False";var my=e=>{var{Float:t={}}=X();return Ge(t,e,"Float"),null};my.displayName="JVR.Float";var yy=e=>{var{Int:t={}}=X();return Ge(t,e,"Int"),null};yy.displayName="JVR.Int";var vy=e=>{var{Map:t={}}=X();return Ge(t,e,"Map"),null};vy.displayName="JVR.Map";var gy=e=>{var{Nan:t={}}=X();return Ge(t,e,"Nan"),null};gy.displayName="JVR.Nan";var xy=e=>{var{Null:t={}}=X();return Ge(t,e,"Null"),null};xy.displayName="JVR.Null";var wy=e=>{var{Set:t={}}=X();return Ge(t,e,"Set"),null};wy.displayName="JVR.Set";var Sy=e=>{var{Str:t={}}=X();return Ge(t,e,"Str"),null};Sy.displayName="JVR.StringText";var ky=e=>{var{True:t={}}=X();return Ge(t,e,"True"),null};ky.displayName="JVR.True";var Cy=e=>{var{Undefined:t={}}=X();return Ge(t,e,"Undefined"),null};Cy.displayName="JVR.Undefined";var jy=e=>{var{Url:t={}}=X();return Ge(t,e,"Url"),null};jy.displayName="JVR.Url";var Ey=e=>{var{Copied:t={}}=nt();return Cn(t,e,"Copied"),null};Ey.displayName="JVR.Copied";var wk=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],J=S.forwardRef((e,t)=>{var{className:r="",style:n,value:o,children:i,collapsed:s,shouldExpandNodeInitially:l,indentWidth:a=15,displayObjectSize:u=!0,shortenTextAfterLength:d=30,highlightUpdates:f=!0,enableClipboard:h=!0,displayDataTypes:g=!0,objectSortKeys:v=!1,onExpand:x,onCopied:k}=e,m=V(e,wk),p=E({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},n),y=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");return c.jsxs(Em,{initialState:{value:o,objectSortKeys:v,indentWidth:a,shouldExpandNodeInitially:l,displayObjectSize:u,collapsed:s,enableClipboard:h,shortenTextAfterLength:d,highlightUpdates:f,onCopied:k,onExpand:x},initialTypes:{displayDataTypes:g},children:[c.jsx(Fu,E({value:o},m,{ref:t,className:y,style:p})),i]})});J.Bigint=fy;J.Date=py;J.False=hy;J.Float=my;J.Int=yy;J.Map=vy;J.Nan=gy;J.Null=xy;J.Set=wy;J.String=Sy;J.True=ky;J.Undefined=Cy;J.Url=jy;J.ValueQuote=dy;J.Arrow=ay;J.Colon=uy;J.Quote=cy;J.Ellipsis=ty;J.BraceLeft=oy;J.BraceRight=iy;J.BracketsLeft=sy;J.BracketsRight=ly;J.Copied=Ey;J.CountInfo=Zm;J.CountInfoExtra=Ym;J.KeyName=Hm;J.Row=Wm;J.displayName="JVR.JsonView";var Sk={"--w-rjv-font-family":"monospace","--w-rjv-color":"#0184a6","--w-rjv-key-string":"#0184a6","--w-rjv-background-color":"#202020","--w-rjv-line-color":"#323232","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#656565","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#0184a6","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#1896b6","--w-rjv-brackets-color":"#1896b6","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#649bd8","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#076678","--w-rjv-type-undefined-color":"#586e75"},kk={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};const Ck=C.pre`
|
|
662
|
+
margin-top: 8px;
|
|
663
|
+
padding: 8px;
|
|
664
|
+
background-color: ${e=>e.theme.colors.codeBackground};
|
|
665
|
+
border-radius: 4px;
|
|
666
|
+
font-size: 0.9em;
|
|
667
|
+
overflow-x: auto;
|
|
668
|
+
white-space: pre-wrap;
|
|
669
|
+
word-wrap: break-word;
|
|
670
|
+
|
|
671
|
+
.w-json-view-container {
|
|
672
|
+
background: none !important;
|
|
673
|
+
}
|
|
674
|
+
`,Ny=({data:e})=>{const t=Z0();return c.jsx(Ck,{children:typeof e=="object"?c.jsx(J,{value:e,shortenTextAfterLength:0,style:t.name==="dark"?Sk:kk}):JSON.stringify(e,null,2)})},To=C.div`
|
|
675
|
+
display: flex;
|
|
676
|
+
&[data-type='user'] {
|
|
677
|
+
justify-content: flex-end;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
&[data-type='assistant'] {
|
|
681
|
+
justify-content: flex-start;
|
|
682
|
+
}
|
|
683
|
+
`,jk=C.div`
|
|
684
|
+
color: ${e=>e.theme.colors.text};
|
|
685
|
+
border-radius: 12px;
|
|
686
|
+
padding: 8px 12px;
|
|
687
|
+
max-width: 70%;
|
|
688
|
+
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
689
|
+
|
|
690
|
+
${To}[data-type='user'] & {
|
|
691
|
+
background-color: ${e=>e.theme.colors.userMessageBackground};
|
|
692
|
+
color: ${e=>e.theme.colors.userMessageText};
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/* Add subtle transition for edit mode */
|
|
696
|
+
transition: box-shadow 0.2s ease-in-out;
|
|
697
|
+
|
|
698
|
+
&[data-edit-mode='true'] {
|
|
699
|
+
box-shadow: 0 0 0 2px ${e=>e.theme.colors.primary};
|
|
700
|
+
}
|
|
701
|
+
`,Ek=C.div`
|
|
702
|
+
font-weight: bold;
|
|
703
|
+
margin-bottom: 4px;
|
|
704
|
+
display: flex;
|
|
705
|
+
justify-content: space-between;
|
|
706
|
+
align-items: center;
|
|
707
|
+
`,Nk=C.pre`
|
|
708
|
+
white-space: pre-wrap;
|
|
709
|
+
word-wrap: break-word;
|
|
710
|
+
font-family: inherit;
|
|
711
|
+
margin: 0;
|
|
712
|
+
`,Rk=C.textarea`
|
|
713
|
+
width: 100%;
|
|
714
|
+
min-height: 100px;
|
|
715
|
+
padding: 8px;
|
|
716
|
+
border: none;
|
|
717
|
+
border-radius: 4px;
|
|
718
|
+
background-color: ${e=>e.theme.colors.background};
|
|
719
|
+
color: ${e=>e.theme.colors.text};
|
|
720
|
+
font-family: inherit;
|
|
721
|
+
font-size: inherit;
|
|
722
|
+
resize: vertical;
|
|
723
|
+
margin: 4px 0;
|
|
724
|
+
field-sizing: content;
|
|
725
|
+
box-sizing: border-box;
|
|
726
|
+
|
|
727
|
+
&:focus {
|
|
728
|
+
outline: none;
|
|
729
|
+
box-shadow: 0 0 0 1px ${e=>e.theme.colors.primary};
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
${To}[data-type='user'] & {
|
|
733
|
+
background-color: ${e=>e.theme.colors.userMessageBackground};
|
|
734
|
+
color: ${e=>e.theme.colors.userMessageText};
|
|
735
|
+
}
|
|
736
|
+
`,$k=C.div`
|
|
737
|
+
display: flex;
|
|
738
|
+
justify-content: space-between;
|
|
739
|
+
align-items: center;
|
|
740
|
+
margin-top: 4px;
|
|
741
|
+
`,bk=C.div`
|
|
742
|
+
font-size: 0.8em;
|
|
743
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
744
|
+
|
|
745
|
+
${To}[data-type='user'] & {
|
|
746
|
+
color: ${e=>e.theme.colors.userMessageTimestamp};
|
|
747
|
+
}
|
|
748
|
+
`,Pk=C.span`
|
|
749
|
+
font-size: 0.8em;
|
|
750
|
+
color: ${e=>e.theme.colors.primary};
|
|
751
|
+
cursor: pointer;
|
|
752
|
+
text-decoration: underline;
|
|
753
|
+
|
|
754
|
+
&:hover {
|
|
755
|
+
color: ${e=>e.theme.colors.primaryHover};
|
|
756
|
+
}
|
|
757
|
+
`,Tk=C.div`
|
|
758
|
+
display: flex;
|
|
759
|
+
gap: 8px;
|
|
760
|
+
margin-top: 8px;
|
|
761
|
+
`,Bu=C.button`
|
|
762
|
+
padding: 4px 8px;
|
|
763
|
+
border: none;
|
|
764
|
+
border-radius: 4px;
|
|
765
|
+
cursor: pointer;
|
|
766
|
+
font-size: 0.8em;
|
|
767
|
+
transition: background-color 0.2s ease-in-out;
|
|
768
|
+
|
|
769
|
+
&:disabled {
|
|
770
|
+
opacity: 0.5;
|
|
771
|
+
cursor: not-allowed;
|
|
772
|
+
}
|
|
773
|
+
`,_k=C(Bu)`
|
|
774
|
+
background-color: transparent;
|
|
775
|
+
color: ${e=>e.theme.colors.primary};
|
|
776
|
+
|
|
777
|
+
&:hover:not(:disabled) {
|
|
778
|
+
background-color: ${e=>e.theme.colors.primaryHover}20;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
${To}[data-type='user'] & {
|
|
782
|
+
color: ${e=>e.theme.colors.userMessageText};
|
|
783
|
+
&:hover:not(:disabled) {
|
|
784
|
+
background-color: ${e=>e.theme.colors.userMessageText}20;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
`,Lk=C(Bu)`
|
|
788
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
789
|
+
color: ${e=>e.theme.colors.buttonText};
|
|
790
|
+
|
|
791
|
+
&:hover:not(:disabled) {
|
|
792
|
+
background-color: ${e=>e.theme.colors.primaryHover};
|
|
793
|
+
}
|
|
794
|
+
`,Ik=C(Bu)`
|
|
795
|
+
background-color: transparent;
|
|
796
|
+
color: ${e=>e.theme.colors.error};
|
|
797
|
+
|
|
798
|
+
&:hover:not(:disabled) {
|
|
799
|
+
background-color: ${e=>e.theme.colors.error}20;
|
|
800
|
+
}
|
|
801
|
+
`,Ok=C.div`
|
|
802
|
+
width: 16px;
|
|
803
|
+
height: 16px;
|
|
804
|
+
border: 2px solid ${e=>e.theme.colors.primary};
|
|
805
|
+
border-top-color: transparent;
|
|
806
|
+
border-radius: 50%;
|
|
807
|
+
animation: spin 1s linear infinite;
|
|
808
|
+
margin: 0 8px;
|
|
809
|
+
|
|
810
|
+
@keyframes spin {
|
|
811
|
+
to {
|
|
812
|
+
transform: rotate(360deg);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
`;C.span`
|
|
816
|
+
font-size: 0.7em;
|
|
817
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
818
|
+
margin-left: 8px;
|
|
819
|
+
font-style: italic;
|
|
820
|
+
`;const Ak=C.div`
|
|
821
|
+
display: grid;
|
|
822
|
+
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
823
|
+
gap: 8px;
|
|
824
|
+
max-width: 800px;
|
|
825
|
+
margin: 8px 0;
|
|
826
|
+
`,Mk=C.div`
|
|
827
|
+
position: relative;
|
|
828
|
+
width: 100%;
|
|
829
|
+
padding-bottom: 100%; /* Creates a square aspect ratio */
|
|
830
|
+
`,Dk=C.img`
|
|
831
|
+
position: absolute;
|
|
832
|
+
top: 0;
|
|
833
|
+
left: 0;
|
|
834
|
+
width: 100%;
|
|
835
|
+
height: 100%;
|
|
836
|
+
object-fit: contain;
|
|
837
|
+
border-radius: 4px;
|
|
838
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
839
|
+
`,zk=({message:e,visibleDataIds:t,toggleDataVisibility:r})=>{var p;const[n,o]=S.useState(!1),[i,s]=S.useState(e.content),[l,a]=S.useState(!1),[u,d]=S.useState(null),f=S.useRef(null);S.useEffect(()=>{n&&f.current&&(f.current.focus(),f.current.selectionStart=f.current.value.length,f.current.selectionEnd=f.current.value.length)},[n]);const h=()=>{s(e.content),o(!0),d(null)},g=()=>{o(!1),s(e.content),d(null)},v=y=>y.trim()?y===e.content?(d("No changes made to the message"),!1):!0:(d("Message content cannot be empty"),!1),x=async()=>{if(v(i)){a(!0),d(null);try{await Bx(e.id,i),o(!1)}catch(y){d(y instanceof Error?y.message:"Failed to save changes")}finally{a(!1)}}},k=y=>{y.key==="Enter"&&y.ctrlKey?x():y.key==="Escape"&&g()},m=e.type!=="system"&&((p=e.flags)==null?void 0:p.includes(Pu.MESSAGE_EDITABLE));return c.jsx(To,{"data-type":e.type,children:c.jsxs(jk,{"data-edit-mode":n,children:[c.jsxs(Ek,{children:[c.jsx("div",{children:e.type==="user"?"You":"Assistant"}),m&&!n&&c.jsx(_k,{onClick:h,title:"Edit message",children:"✎"})]}),n?c.jsxs(c.Fragment,{children:[c.jsx(Rk,{ref:f,value:i,onChange:y=>s(y.target.value),onKeyDown:k,placeholder:"Enter your message..."}),u&&c.jsx("div",{style:{color:"red",fontSize:"0.8em",marginTop:"4px"},children:u}),c.jsxs(Tk,{children:[c.jsx(Lk,{onClick:x,disabled:l,children:l?c.jsx(Ok,{}):"Save"}),c.jsx(Ik,{onClick:g,disabled:l,children:"Cancel"})]})]}):c.jsx(Nk,{children:e.content}),e.images&&e.images.length>0&&c.jsx(Ak,{children:e.images.map((y,w)=>c.jsx(Mk,{children:c.jsx(Dk,{src:`data:${y.mediaType};base64,${y.base64url}`,alt:y.originalName||`Image ${w+1}`,title:y.originalName||`Image ${w+1}`})},w))}),c.jsxs($k,{children:[e.data?c.jsx(Pk,{onClick:()=>r(e.id),children:t.has(e.id)?"Hide data":"Show data"}):null,c.jsx(bk,{children:e.timestamp.toLocaleString()})]}),t.has(e.id)&&e.data?c.jsx(Ny,{data:e.data}):null]})})},Fk=C.div`
|
|
840
|
+
background-color: ${e=>e.theme.colors.systemMessageBackground};
|
|
841
|
+
color: ${e=>e.theme.colors.systemMessageText};
|
|
842
|
+
border: 1px solid ${e=>e.theme.colors.systemMessageBorder};
|
|
843
|
+
border-radius: 8px;
|
|
844
|
+
padding: 8px 12px;
|
|
845
|
+
margin: 8px 0;
|
|
846
|
+
font-style: italic;
|
|
847
|
+
font-size: 0.9em;
|
|
848
|
+
opacity: 0.8;
|
|
849
|
+
${e=>e.isExecutionEnd&&`
|
|
850
|
+
border-bottom: 3px solid ${e.theme.colors.primary};
|
|
851
|
+
`}
|
|
852
|
+
`,Bk=C.div`
|
|
853
|
+
cursor: pointer;
|
|
854
|
+
font-weight: bold;
|
|
855
|
+
margin-bottom: 8px;
|
|
856
|
+
`,Uk=C.div`
|
|
857
|
+
white-space: pre-wrap;
|
|
858
|
+
word-wrap: break-word;
|
|
859
|
+
font-family: inherit;
|
|
860
|
+
margin: 0;
|
|
861
|
+
`,Vk=C.div`
|
|
862
|
+
margin-bottom: 8px;
|
|
863
|
+
`,Hk=C.div`
|
|
864
|
+
font-size: 0.8em;
|
|
865
|
+
color: ${e=>e.theme.colors.systemMessageTimestamp};
|
|
866
|
+
float: right;
|
|
867
|
+
`,Kk=C.span`
|
|
868
|
+
font-size: 0.8em;
|
|
869
|
+
color: ${e=>e.theme.colors.primary};
|
|
870
|
+
cursor: pointer;
|
|
871
|
+
text-decoration: underline;
|
|
872
|
+
float: right;
|
|
873
|
+
margin-right: 5px;
|
|
874
|
+
|
|
875
|
+
&:hover {
|
|
876
|
+
color: ${e=>e.theme.colors.primaryHover};
|
|
877
|
+
}
|
|
878
|
+
`,Wk=({message:e,collapsedExecutions:t,toggleExecutionCollapse:r,visibleDataIds:n,toggleDataVisibility:o})=>c.jsxs(Fk,{isExecutionEnd:e.isExecutionEnd,children:[c.jsxs(Bk,{onClick:()=>r(e.id),children:[t.has(e.id)?"▶":"▼"," Execution ",e.id.split("_")[1]]}),!t.has(e.id)&&c.jsx(Uk,{children:e.parts.map(i=>c.jsxs(Vk,{children:[i.content,c.jsx(Hk,{children:i.timestamp.toLocaleString()}),i.data?c.jsx(Kk,{onClick:()=>o(i.id),children:n.has(i.id)?"Hide data":"Show data"}):null,n.has(i.id)&&i.data?c.jsx(Ny,{data:i.data}):null]},i.id))})]}),Jk=C.div`
|
|
879
|
+
display: flex;
|
|
880
|
+
flex-direction: column;
|
|
881
|
+
height: 100%;
|
|
882
|
+
background-color: ${e=>e.theme.colors.background};
|
|
883
|
+
position: relative;
|
|
884
|
+
overflow: hidden;
|
|
885
|
+
`,Qk=C.div`
|
|
886
|
+
display: flex;
|
|
887
|
+
flex-direction: column;
|
|
888
|
+
gap: 16px;
|
|
889
|
+
padding: 16px;
|
|
890
|
+
overflow-y: auto;
|
|
891
|
+
flex-grow: 1;
|
|
892
|
+
max-height: calc(100% - 60px); // Adjust this value based on the height of your UnreadMessagesNotification
|
|
893
|
+
margin-bottom: 60px; // This should match the height of UnreadMessagesNotification plus its bottom margin
|
|
894
|
+
`,Gk=C.div`
|
|
895
|
+
display: flex;
|
|
896
|
+
flex-direction: column;
|
|
897
|
+
gap: 8px;
|
|
898
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
899
|
+
border-radius: 8px;
|
|
900
|
+
margin-bottom: 24px;
|
|
901
|
+
`,qk=C.div`
|
|
902
|
+
font-size: 16px;
|
|
903
|
+
font-weight: bold;
|
|
904
|
+
color: ${e=>e.theme.colors.text};
|
|
905
|
+
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
906
|
+
padding: 12px 16px;
|
|
907
|
+
border-bottom: 1px solid ${e=>e.theme.colors.border};
|
|
908
|
+
border-top-left-radius: 8px;
|
|
909
|
+
border-top-right-radius: 8px;
|
|
910
|
+
display: flex;
|
|
911
|
+
justify-content: space-between;
|
|
912
|
+
align-items: center;
|
|
913
|
+
cursor: pointer;
|
|
914
|
+
position: sticky;
|
|
915
|
+
top: -22px;
|
|
916
|
+
z-index: 10;
|
|
917
|
+
|
|
918
|
+
> .title {
|
|
919
|
+
display: flex;
|
|
920
|
+
align-items: start;
|
|
921
|
+
flex-grow: 1;
|
|
922
|
+
}
|
|
923
|
+
> .meta {
|
|
924
|
+
font-size: 12px;
|
|
925
|
+
font-weight: normal;
|
|
926
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
927
|
+
display: flex;
|
|
928
|
+
flex-direction: row;
|
|
929
|
+
align-items: center;
|
|
930
|
+
gap: 10px;
|
|
931
|
+
}
|
|
932
|
+
`,Yk=C.button`
|
|
933
|
+
display: flex;
|
|
934
|
+
justify-content: center;
|
|
935
|
+
align-items: center;
|
|
936
|
+
background-color: transparent;
|
|
937
|
+
border: none;
|
|
938
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
939
|
+
cursor: pointer;
|
|
940
|
+
font-size: 16px;
|
|
941
|
+
padding: 4px;
|
|
942
|
+
border-radius: 4px;
|
|
943
|
+
|
|
944
|
+
&:hover {
|
|
945
|
+
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
946
|
+
}
|
|
947
|
+
`,Xk=C.div`
|
|
948
|
+
display: ${e=>e.isCollapsed?"none":"flex"};
|
|
949
|
+
flex-direction: column;
|
|
950
|
+
gap: 8px;
|
|
951
|
+
padding: 16px;
|
|
952
|
+
`,Zk=C.p`
|
|
953
|
+
font-size: 14px;
|
|
954
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
955
|
+
background-color: ${e=>e.theme.colors.backgroundTertiary};
|
|
956
|
+
padding: 8px;
|
|
957
|
+
border-radius: 4px;
|
|
958
|
+
margin: 0 0 16px 0;
|
|
959
|
+
`;C.div`
|
|
960
|
+
margin-bottom: 16px;
|
|
961
|
+
|
|
962
|
+
&:last-child {
|
|
963
|
+
margin-bottom: 0;
|
|
964
|
+
}
|
|
965
|
+
`;const eC=C.span`
|
|
966
|
+
&:before {
|
|
967
|
+
content: '▼';
|
|
968
|
+
margin-right: 8px;
|
|
969
|
+
}
|
|
970
|
+
`,tC=C.span`
|
|
971
|
+
&:before {
|
|
972
|
+
content: '▶';
|
|
973
|
+
margin-right: 8px;
|
|
974
|
+
}
|
|
975
|
+
`;C.span`
|
|
976
|
+
color: ${e=>e.theme.colors.primary};
|
|
977
|
+
cursor: pointer;
|
|
978
|
+
margin-right: 8px;
|
|
979
|
+
|
|
980
|
+
&:hover {
|
|
981
|
+
text-decoration: underline;
|
|
982
|
+
}
|
|
983
|
+
`;function rC(e){return S.useMemo(()=>{const t=[];let r=null,n=null,o=0;return e.sort((i,s)=>i.iterationId<s.iterationId?-1:1).forEach((i,s)=>{var l;(!r||i.iterationId!==r.iterationId)&&(r&&(r.timestampEnd=new Date(i.timestamp),t.push(r)),r={iterationId:i.iterationId,timestampStart:new Date(i.timestamp),timestampEnd:new Date(i.timestamp),conversationSummaries:[],messages:[]}),(l=i.flags)!=null&&l.includes(Pu.CONVERSATION_SUMMARY)&&i.data&&(r.conversationSummaries.push(i.data),r.iterationTitle||(r.iterationTitle=i.data)),i.type===to.SYSTEM?n?n.parts.push(i):(o++,n={...i,type:to.SYSTEM,parts:[i],id:`execution_${o}`,isExecutionEnd:s===e.length-1||e[s+1].type!==to.SYSTEM},r.messages.push(n)):(n&&(n.isExecutionEnd=!0),n=null,r.messages.push(i)),r.timestampEnd=new Date(i.timestamp)}),r&&t.push(r),t.sort((i,s)=>i.timestampStart.getTime()-s.timestampStart.getTime())},[e])}const nC=({onClick:e})=>c.jsxs(iC,{onClick:e,children:[c.jsx(sC,{children:"New messages"}),c.jsx(ul,{}),c.jsx(ul,{}),c.jsx(ul,{})]}),oC=$o`
|
|
984
|
+
0%, 80%, 100% {
|
|
985
|
+
transform: scale(0.8);
|
|
986
|
+
}
|
|
987
|
+
40% {
|
|
988
|
+
transform: scale(1.2);
|
|
989
|
+
}
|
|
990
|
+
`,iC=C.div`
|
|
991
|
+
display: flex;
|
|
992
|
+
justify-content: center;
|
|
993
|
+
align-items: center;
|
|
994
|
+
padding: 10px;
|
|
995
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
996
|
+
color: ${e=>e.theme.colors.text};
|
|
997
|
+
border-radius: 20px;
|
|
998
|
+
position: absolute;
|
|
999
|
+
bottom: 20px;
|
|
1000
|
+
left: 50%;
|
|
1001
|
+
transform: translateX(-50%);
|
|
1002
|
+
cursor: pointer;
|
|
1003
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
1004
|
+
transition: all 0.3s ease;
|
|
1005
|
+
z-index: 10;
|
|
1006
|
+
|
|
1007
|
+
&:hover {
|
|
1008
|
+
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1009
|
+
}
|
|
1010
|
+
`,sC=C.span`
|
|
1011
|
+
margin-right: 10px;
|
|
1012
|
+
font-weight: bold;
|
|
1013
|
+
`,ul=C.div`
|
|
1014
|
+
width: 8px;
|
|
1015
|
+
height: 8px;
|
|
1016
|
+
background-color: ${e=>e.theme.colors.text};
|
|
1017
|
+
border-radius: 50%;
|
|
1018
|
+
margin: 0 2px;
|
|
1019
|
+
animation: ${oC} 1.4s infinite ease-in-out both;
|
|
1020
|
+
|
|
1021
|
+
&:nth-child(2) {
|
|
1022
|
+
animation-delay: -0.32s;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
&:nth-child(3) {
|
|
1026
|
+
animation-delay: -0.16s;
|
|
1027
|
+
}
|
|
1028
|
+
`,lC=C.div`
|
|
1029
|
+
position: relative;
|
|
1030
|
+
width: 100%;
|
|
1031
|
+
`,aC=C.textarea`
|
|
1032
|
+
width: 100%;
|
|
1033
|
+
min-height: 60px;
|
|
1034
|
+
resize: none;
|
|
1035
|
+
padding: 8px;
|
|
1036
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
1037
|
+
border-radius: 4px;
|
|
1038
|
+
font-family: inherit;
|
|
1039
|
+
font-size: 14px;
|
|
1040
|
+
background-color: ${e=>e.theme.colors.inputBg};
|
|
1041
|
+
color: ${e=>e.theme.colors.inputText};
|
|
1042
|
+
box-sizing: border-box;
|
|
1043
|
+
overflow: hidden;
|
|
1044
|
+
|
|
1045
|
+
&:focus {
|
|
1046
|
+
outline: none;
|
|
1047
|
+
border-color: ${e=>e.theme.colors.primary};
|
|
1048
|
+
}
|
|
1049
|
+
`,Ry=({value:e,onChange:t,onKeyDown:r,onPaste:n,onImagePaste:o,maxViewportHeight:i=.5,...s})=>{const l=S.useRef(null);S.useEffect(()=>{if(l.current){l.current.style.height="auto";const d=l.current.scrollHeight,f=i*window.innerHeight,h=Math.min(d,f);l.current.style.height=`${h}px`}},[e,i]);const a=d=>{t(d.target.value)},u=d=>{var h;const f=(h=d.clipboardData)==null?void 0:h.items;if(f){for(let g=0;g<f.length;g++)if(f[g].type.indexOf("image")!==-1){d.preventDefault();const v=f[g].getAsFile();if(v){const x=new File([v],`pasted-image-${Date.now()}.png`,{type:"image/png"});o==null||o(x)}break}}n==null||n(d)};return c.jsx(lC,{children:c.jsx(aC,{ref:l,value:e,onChange:a,onKeyDown:r,onPaste:u,...s})})},Uu=({value:e,onChange:t,disabled:r})=>{const[n,o]=bu(),i=s=>{t(s.target.value)};return c.jsxs(uC,{children:[c.jsxs(cC,{id:"aiService",value:e,onChange:i,disabled:r||o!==null,children:[c.jsx("option",{value:"",children:"Select AI Service"}),n.map(s=>c.jsx("option",{value:s,children:s},s))]}),o&&c.jsx(dC,{children:o})]})},uC=C.div`
|
|
1050
|
+
display: flex;
|
|
1051
|
+
flex-direction: column;
|
|
1052
|
+
gap: 4px;
|
|
1053
|
+
`,cC=C.select`
|
|
1054
|
+
padding: 8px;
|
|
1055
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1056
|
+
border-radius: 4px;
|
|
1057
|
+
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
1058
|
+
color: ${({theme:e})=>e.colors.inputText};
|
|
1059
|
+
font-size: 14px;
|
|
1060
|
+
|
|
1061
|
+
&:disabled {
|
|
1062
|
+
background-color: ${({theme:e})=>e.colors.disabled};
|
|
1063
|
+
cursor: not-allowed;
|
|
1064
|
+
}
|
|
1065
|
+
`,dC=C.div`
|
|
1066
|
+
color: ${({theme:e})=>e.colors.error};
|
|
1067
|
+
font-size: 14px;
|
|
1068
|
+
`,fC=({onSubmit:e,onInterrupt:t,onPauseResume:r,question:n,codegenOptions:o,executionStatus:i})=>{var x;const[s,l]=S.useState(""),[a,u]=S.useState(null),[d,f]=S.useState(o.aiService);S.useEffect(()=>{f(o.aiService)},[o.aiService]);const h=async k=>{if(k.preventDefault(),s.trim()&&n)try{await e(s,void 0,d),l(""),u(null)}catch(m){console.error("Error submitting answer:",m),u("Failed to submit the answer. Please try again.")}},g=async k=>{try{await e(s,k,d),u(null)}catch(m){console.error("Error submitting confirmation:",m),u("Failed to submit the confirmation. Please try again.")}},v=i==="paused";return c.jsxs(pC,{children:[n?c.jsxs(hC,{onSubmit:h,children:[n.confirmation&&c.jsx("p",{children:n.text}),((x=n.confirmation)==null?void 0:x.includeAnswer)!==!1&&c.jsx(Ry,{value:s,onChange:l,placeholder:"Enter your answer here",maxViewportHeight:.3}),!n.confirmation&&c.jsxs(cl,{children:[c.jsx(mC,{type:"submit",children:"Submit Answer"}),c.jsx(Uu,{value:d,onChange:f,disabled:!1}),c.jsx(dl,{onClick:t,children:"Interrupt"})]}),n.confirmation&&c.jsxs(cl,{children:[c.jsx(_d,{onClick:()=>g(!0),children:n.confirmation.confirmLabel}),c.jsx(_d,{onClick:()=>g(!1),"data-secondary":"true",children:n.confirmation.declineLabel}),c.jsx(dl,{onClick:t,children:"Interrupt"})]})]}):c.jsxs(cl,{children:[c.jsx(yC,{onClick:r,isPaused:v,children:v?"Resume":"Pause"}),c.jsx(dl,{onClick:t,children:"Interrupt"})]}),a&&c.jsx(vC,{children:a})]})},pC=C.div`
|
|
1069
|
+
background-color: ${({theme:e})=>e.colors.background};
|
|
1070
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1071
|
+
border-radius: 8px;
|
|
1072
|
+
padding: 15px;
|
|
1073
|
+
margin-top: 10px;
|
|
1074
|
+
margin-bottom: 10px;
|
|
1075
|
+
max-width: 70%;
|
|
1076
|
+
width: 100%;
|
|
1077
|
+
box-sizing: border-box;
|
|
1078
|
+
`,hC=C.form`
|
|
1079
|
+
display: flex;
|
|
1080
|
+
flex-direction: column;
|
|
1081
|
+
|
|
1082
|
+
> p {
|
|
1083
|
+
margin-top: 0;
|
|
1084
|
+
}
|
|
1085
|
+
`,cl=C.div`
|
|
1086
|
+
display: flex;
|
|
1087
|
+
justify-content: flex-start;
|
|
1088
|
+
gap: 10px;
|
|
1089
|
+
margin-top: 10px;
|
|
1090
|
+
`,Ns=C.button`
|
|
1091
|
+
color: #ffffff;
|
|
1092
|
+
border: none;
|
|
1093
|
+
border-radius: 4px;
|
|
1094
|
+
padding: 8px 12px;
|
|
1095
|
+
font-size: 14px;
|
|
1096
|
+
cursor: pointer;
|
|
1097
|
+
transition: background-color 0.3s ease;
|
|
1098
|
+
`,mC=C(Ns)`
|
|
1099
|
+
background-color: ${({theme:e})=>e.colors.primary};
|
|
1100
|
+
|
|
1101
|
+
&:hover {
|
|
1102
|
+
background-color: ${({theme:e})=>e.colors.primary}dd;
|
|
1103
|
+
}
|
|
1104
|
+
`,_d=C(Ns)`
|
|
1105
|
+
background-color: ${({theme:e})=>e.colors.primary};
|
|
1106
|
+
&:hover {
|
|
1107
|
+
background-color: ${({theme:e})=>e.colors.primary}dd;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
&[data-secondary='true'] {
|
|
1111
|
+
background-color: ${({theme:e})=>e.colors.secondary};
|
|
1112
|
+
&:hover {
|
|
1113
|
+
background-color: ${({theme:e})=>e.colors.secondary}dd;
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
`,dl=C(Ns)`
|
|
1117
|
+
background-color: ${({theme:e})=>e.colors.error};
|
|
1118
|
+
margin-left: auto;
|
|
1119
|
+
|
|
1120
|
+
&:hover {
|
|
1121
|
+
background-color: ${({theme:e})=>e.colors.error}dd;
|
|
1122
|
+
}
|
|
1123
|
+
`,yC=C(Ns)`
|
|
1124
|
+
background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info};
|
|
1125
|
+
|
|
1126
|
+
&:hover {
|
|
1127
|
+
background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info}dd;
|
|
1128
|
+
}
|
|
1129
|
+
`,vC=C.p`
|
|
1130
|
+
color: ${({theme:e})=>e.colors.error};
|
|
1131
|
+
font-weight: bold;
|
|
1132
|
+
margin-top: 10px;
|
|
1133
|
+
margin-bottom: 0;
|
|
1134
|
+
`,gC=({isVisible:e,onInterrupt:t,onPauseResume:r,executionStatus:n})=>e?c.jsxs(wC,{children:[c.jsx(kC,{onClick:t,children:"Interrupt"}),c.jsxs(SC,{"data-execution-status":n,children:[c.jsx(fl,{}),c.jsx(fl,{}),c.jsx(fl,{})]}),c.jsx($y,{onClick:r,children:n==="paused"?"Resume":"Pause"})]}):null,xC=$o`
|
|
1135
|
+
0%, 80%, 100% {
|
|
1136
|
+
transform: scale(0);
|
|
1137
|
+
}
|
|
1138
|
+
40% {
|
|
1139
|
+
transform: scale(1.0);
|
|
1140
|
+
}
|
|
1141
|
+
`,wC=C.div`
|
|
1142
|
+
display: flex;
|
|
1143
|
+
flex-direction: row;
|
|
1144
|
+
align-items: center;
|
|
1145
|
+
justify-content: center;
|
|
1146
|
+
gap: 50px;
|
|
1147
|
+
padding: 10px;
|
|
1148
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1149
|
+
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
1150
|
+
`,SC=C.div`
|
|
1151
|
+
display: flex;
|
|
1152
|
+
align-items: center;
|
|
1153
|
+
justify-content: center;
|
|
1154
|
+
align-items: center;
|
|
1155
|
+
margin-bottom: 10px;
|
|
1156
|
+
`,fl=C.div`
|
|
1157
|
+
width: 10px;
|
|
1158
|
+
height: 10px;
|
|
1159
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
1160
|
+
border-radius: 50%;
|
|
1161
|
+
margin: 0 5px;
|
|
1162
|
+
|
|
1163
|
+
[data-execution-status='executing'] & {
|
|
1164
|
+
animation: ${xC} 1.4s infinite ease-in-out both;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
&:nth-child(1) {
|
|
1168
|
+
animation-delay: -0.32s;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
&:nth-child(2) {
|
|
1172
|
+
animation-delay: -0.16s;
|
|
1173
|
+
}
|
|
1174
|
+
`,$y=C.button`
|
|
1175
|
+
padding: 8px 16px;
|
|
1176
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
1177
|
+
color: #ffffff;
|
|
1178
|
+
border: none;
|
|
1179
|
+
border-radius: 4px;
|
|
1180
|
+
cursor: pointer;
|
|
1181
|
+
font-size: 14px;
|
|
1182
|
+
font-weight: 600;
|
|
1183
|
+
transition: background-color 0.3s, transform 0.1s;
|
|
1184
|
+
|
|
1185
|
+
&:hover {
|
|
1186
|
+
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1187
|
+
transform: translateY(-1px);
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
&:active {
|
|
1191
|
+
transform: translateY(0);
|
|
1192
|
+
}
|
|
1193
|
+
`,kC=C($y)`
|
|
1194
|
+
background-color: ${({theme:e})=>e.colors.error};
|
|
1195
|
+
|
|
1196
|
+
&:hover {
|
|
1197
|
+
background-color: ${({theme:e})=>e.colors.errorHover};
|
|
1198
|
+
}
|
|
1199
|
+
`,CC=({messages:e,currentQuestion:t,codegenOptions:r,onQuestionSubmit:n,onInterrupt:o,onPauseResume:i,executionStatus:s})=>{var ot;const[l,a]=S.useState(()=>new Set),[u,d]=S.useState(()=>new Set),[f,h]=S.useState(()=>new Set),[g]=S.useState(null),v=S.useRef(null),x=S.useRef(null),[k,m]=S.useState(!1),[p,y]=S.useState(!0),[w,N]=S.useState(null),R=rC(e),$=s!=="idle"?(ot=R[R.length-1])==null?void 0:ot.iterationId:null,P=S.useCallback(()=>{if(!x.current)return!0;const{scrollTop:O,scrollHeight:Q,clientHeight:F}=x.current;return Math.abs(Q-F-O)<1||Q<=F},[]);S.useEffect(()=>{const O=x.current;if(!O)return;const Q=()=>{const F=P();y(F),F&&m(!1)};return O.addEventListener("scroll",Q),()=>O.removeEventListener("scroll",Q)},[P]),S.useEffect(()=>{p?me():m(!0)},[R,p]),S.useEffect(()=>{const O=new Set(R.slice(0,-1).map(Q=>Q.iterationId));h(O)},[]);const A=O=>{a(Q=>{const F=new Set(Q);return F.has(O)?F.delete(O):F.add(O),F})},_=O=>{d(Q=>{const F=new Set(Q);return F.has(O)?F.delete(O):F.add(O),F})},U=O=>{var Q;g&&((Q=e.find(F=>F.id===g))==null?void 0:Q.iterationId)===O||h(F=>{const T=new Set(F);return T.has(O)?T.delete(O):T.add(O),T})},me=()=>{var O;(O=x.current)==null||O.scrollTo({top:x.current.scrollHeight,behavior:"smooth"}),m(!1)},fe=async O=>{if(w===O)try{await Jx(O),N(null)}catch(Q){console.error("Failed to delete iteration:",Q)}else N(O)};return c.jsxs(Jk,{children:[c.jsxs(Qk,{ref:x,children:[R.map((O,Q)=>c.jsxs(Gk,{children:[c.jsxs(qk,{children:[c.jsxs("div",{className:"title",onClick:()=>U(O.iterationId),children:[f.has(O.iterationId)?c.jsx(tC,{}):c.jsx(eC,{}),c.jsx("span",{children:O.iterationTitle??`Iteration ${O.iterationId}`})]}),c.jsxs("span",{className:"meta",children:[O.timestampStart.toLocaleString()," - ",O.timestampEnd.toLocaleString(),O.iterationId!==$&&c.jsx(Yk,{onClick:()=>fe(O.iterationId),title:w===O.iterationId?"Confirm deletion":"Delete iteration",children:w===O.iterationId?"🗑️ Confirm":"🗑️"})]})]}),c.jsxs(Xk,{isCollapsed:f.has(O.iterationId),children:[O.conversationSummaries.length>0&&c.jsx(Zk,{children:O.conversationSummaries.join(" ")}),O.messages.map((F,T)=>c.jsxs(Ue.Fragment,{children:[F.type===to.SYSTEM?c.jsx(Wk,{message:F,collapsedExecutions:u,toggleExecutionCollapse:_,visibleDataIds:l,toggleDataVisibility:A}):c.jsx(zk,{message:F,visibleDataIds:l,toggleDataVisibility:A}),s!=="idle"&&t&&Q===R.length-1&&T===O.messages.length-1&&c.jsx(fC,{onSubmit:n,onInterrupt:o,onPauseResume:i,question:t,codegenOptions:r,executionStatus:s})]},F.id))]})]},O.iterationId)),c.jsx("div",{ref:v})]}),k&&!p&&c.jsx(nC,{onClick:me}),c.jsx(gC,{isVisible:s!=="idle"&&!t,onInterrupt:o,onPauseResume:i,executionStatus:s})]})},jC=5*1024*1024,Ld=["image/jpeg","image/png","image/gif","image/webp"],Id=5,EC=({images:e,onImagesChange:t,error:r,setError:n,fileInputRef:o})=>{const i=l=>{const u=Array.from(l.target.files||[]).filter(d=>Ld.includes(d.type)?d.size>jC?(n(`File too large: ${d.name}. Maximum size is 5MB.`),!1):!0:(n(`Invalid file type: ${d.name}. Allowed types are JPEG, PNG, GIF, and WebP.`),!1));if(u.length+e.length>Id){n(`Too many images. Maximum ${Id} images allowed.`);return}t([...e,...u]),n(null)},s=l=>{const a=e.filter((u,d)=>d!==l);t(a)};return c.jsxs(NC,{children:[r&&c.jsx(RC,{children:r}),c.jsx($C,{children:e.map((l,a)=>c.jsxs(bC,{children:[c.jsx("img",{src:URL.createObjectURL(l),alt:`Uploaded ${a+1}`}),c.jsx(PC,{onClick:()=>s(a),children:"×"})]},a))}),c.jsx("input",{type:"file",ref:o,style:{display:"none"},onChange:i,accept:Ld.join(","),multiple:!0})]})},NC=C.div`
|
|
1200
|
+
margin-bottom: 8px;
|
|
1201
|
+
`,RC=C.div`
|
|
1202
|
+
color: ${e=>e.theme.colors.error};
|
|
1203
|
+
font-size: 14px;
|
|
1204
|
+
margin-bottom: 8px;
|
|
1205
|
+
`,$C=C.div`
|
|
1206
|
+
display: flex;
|
|
1207
|
+
flex-wrap: wrap;
|
|
1208
|
+
gap: 8px;
|
|
1209
|
+
`,bC=C.div`
|
|
1210
|
+
position: relative;
|
|
1211
|
+
width: 60px;
|
|
1212
|
+
height: 60px;
|
|
1213
|
+
|
|
1214
|
+
img {
|
|
1215
|
+
width: 100%;
|
|
1216
|
+
height: 100%;
|
|
1217
|
+
object-fit: cover;
|
|
1218
|
+
border-radius: 4px;
|
|
1219
|
+
}
|
|
1220
|
+
`,PC=C.button`
|
|
1221
|
+
position: absolute;
|
|
1222
|
+
top: -8px;
|
|
1223
|
+
right: -8px;
|
|
1224
|
+
background-color: ${e=>e.theme.colors.error};
|
|
1225
|
+
color: white;
|
|
1226
|
+
border: none;
|
|
1227
|
+
border-radius: 50%;
|
|
1228
|
+
width: 20px;
|
|
1229
|
+
height: 20px;
|
|
1230
|
+
font-size: 14px;
|
|
1231
|
+
line-height: 1;
|
|
1232
|
+
cursor: pointer;
|
|
1233
|
+
display: flex;
|
|
1234
|
+
align-items: center;
|
|
1235
|
+
justify-content: center;
|
|
1236
|
+
|
|
1237
|
+
&:hover {
|
|
1238
|
+
background-color: ${e=>e.theme.colors.errorHover};
|
|
1239
|
+
}
|
|
1240
|
+
`,TC=({onSubmit:e,onToggleOptions:t,onUploadClick:r,onAiServiceChange:n,options:o,disabled:i})=>c.jsxs(IC,{children:[c.jsx(_C,{onClick:e,disabled:i,children:"Submit"}),c.jsx(Vu,{onClick:r,children:"Upload Images"}),c.jsx(Uu,{value:o.aiService,onChange:n}),c.jsx(LC,{onClick:t,children:"Configuration"})]}),Vu=C.button`
|
|
1241
|
+
color: ${({theme:e})=>e.colors.buttonText};
|
|
1242
|
+
background-color: ${({theme:e})=>e.colors.buttonBg};
|
|
1243
|
+
border: none;
|
|
1244
|
+
border-radius: 4px;
|
|
1245
|
+
padding: 10px 15px;
|
|
1246
|
+
font-size: 14px;
|
|
1247
|
+
cursor: pointer;
|
|
1248
|
+
transition: background-color 0.3s ease;
|
|
1249
|
+
margin-right: 10px;
|
|
1250
|
+
|
|
1251
|
+
&:hover {
|
|
1252
|
+
background-color: ${({theme:e})=>e.colors.buttonHoverBg};
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
&:disabled {
|
|
1256
|
+
background-color: ${({theme:e})=>e.colors.disabled};
|
|
1257
|
+
cursor: not-allowed;
|
|
1258
|
+
}
|
|
1259
|
+
`,_C=C(Vu)`
|
|
1260
|
+
background-color: ${({theme:e})=>e.colors.primary};
|
|
1261
|
+
color: #ffffff;
|
|
1262
|
+
|
|
1263
|
+
&:hover {
|
|
1264
|
+
background-color: ${({theme:e})=>e.colors.primaryHover};
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
&:disabled {
|
|
1268
|
+
background-color: ${({theme:e})=>e.colors.disabled};
|
|
1269
|
+
}
|
|
1270
|
+
`,LC=C(Vu)`
|
|
1271
|
+
margin-left: auto;
|
|
1272
|
+
margin-right: 0;
|
|
1273
|
+
`,IC=C.div`
|
|
1274
|
+
display: flex;
|
|
1275
|
+
justify-content: flex-start;
|
|
1276
|
+
margin-top: 10px;
|
|
1277
|
+
`,OC=({options:e,onOptionsChange:t,disabled:r})=>{const n=i=>{const{name:s,value:l,type:a}=i.target,u=a==="checkbox"?!i.target.checked:l;t({...e,[s]:u})},o=i=>{t({...e,aiService:i})};return c.jsxs(AC,{children:[c.jsxs(zn,{children:[c.jsx(Et,{htmlFor:"aiService",children:"AI Service:"}),c.jsx(Uu,{value:e.aiService,onChange:o,disabled:r})]}),c.jsx(zn,{children:c.jsxs(Et,{htmlFor:"cheap",children:[c.jsx("input",{type:"checkbox",id:"cheap",name:"cheap",checked:e.cheap,onChange:n,disabled:r}),"Cheap Mode"]})}),c.jsxs(zn,{children:[c.jsx(Et,{htmlFor:"contentMask",children:"Content Mask:"}),c.jsx(Od,{type:"text",id:"contentMask",name:"contentMask",value:e.contentMask||"",onChange:n,disabled:r})]}),c.jsxs(zn,{children:[c.jsx(Et,{htmlFor:"ignorePatterns",children:"Ignore Patterns:"}),c.jsx(Od,{type:"text",id:"ignorePatterns",name:"ignorePatterns",value:e.ignorePatterns?e.ignorePatterns.join(", "):"",onChange:i=>{const s=i.target.value.split(",").map(l=>l.trim());t({...e,ignorePatterns:s})},disabled:r}),c.jsx("small",{children:"Comma-separated list of patterns"})]}),c.jsxs(zn,{children:[c.jsx(Et,{children:"File Operations:"}),c.jsxs(Et,{htmlFor:"allowFileCreate",children:[c.jsx("input",{type:"checkbox",id:"allowFileCreate",name:"allowFileCreate",checked:e.allowFileCreate!==!1,onChange:n,disabled:r}),"Allow File Create"]}),c.jsxs(Et,{htmlFor:"allowFileDelete",children:[c.jsx("input",{type:"checkbox",id:"allowFileDelete",name:"allowFileDelete",checked:e.allowFileDelete!==!1,onChange:n,disabled:r}),"Allow File Delete"]}),c.jsxs(Et,{htmlFor:"allowDirectoryCreate",children:[c.jsx("input",{type:"checkbox",id:"allowDirectoryCreate",name:"allowDirectoryCreate",checked:e.allowDirectoryCreate!==!1,onChange:n,disabled:r}),"Allow Directory Create"]}),c.jsxs(Et,{htmlFor:"allowFileMove",children:[c.jsx("input",{type:"checkbox",id:"allowFileMove",name:"allowFileMove",checked:e.allowFileMove!==!1,onChange:n,disabled:r}),"Allow File Move"]})]})]})},AC=C.div`
|
|
1278
|
+
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
1279
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
1280
|
+
border-radius: 4px;
|
|
1281
|
+
padding: 16px;
|
|
1282
|
+
margin-top: 16px;
|
|
1283
|
+
`,zn=C.div`
|
|
1284
|
+
margin-bottom: 16px;
|
|
1285
|
+
`,Et=C.label`
|
|
1286
|
+
display: block;
|
|
1287
|
+
margin-bottom: 4px;
|
|
1288
|
+
color: ${e=>e.theme.colors.text};
|
|
1289
|
+
`,Od=C.input`
|
|
1290
|
+
width: 100%;
|
|
1291
|
+
padding: 8px;
|
|
1292
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
1293
|
+
border-radius: 4px;
|
|
1294
|
+
background-color: ${e=>e.theme.colors.inputBg};
|
|
1295
|
+
color: ${e=>e.theme.colors.inputText};
|
|
1296
|
+
|
|
1297
|
+
&:disabled {
|
|
1298
|
+
background-color: ${e=>e.theme.colors.disabled};
|
|
1299
|
+
cursor: not-allowed;
|
|
1300
|
+
}
|
|
1301
|
+
`,MC=({onSubmit:e,isExecuting:t,codegenOptions:r,onOptionsChange:n})=>{const[o,i]=S.useState(""),[s,l]=S.useState([]),[a,u]=S.useState(!1),[d,f]=S.useState(null),h=S.useRef(null);if(t)return null;const g=()=>{(o.trim()||s.length>0)&&(e(o.trim(),s),i(""),l([]))},v=y=>{l(y)},x=()=>{u(!a)},k=()=>{var y;(y=h.current)==null||y.click()},m=y=>{const w=[...s,y];v(w)},p=y=>{n({...r,aiService:y})};return c.jsxs(DC,{children:[c.jsx(zC,{children:c.jsx(Ry,{value:o,onChange:i,placeholder:"Enter your input here",onImagePaste:m})}),c.jsx(EC,{images:s,onImagesChange:v,error:d,setError:f,fileInputRef:h}),c.jsx(TC,{onSubmit:g,onToggleOptions:x,onUploadClick:k,onAiServiceChange:p,options:r,disabled:!o.trim()&&s.length===0}),a&&c.jsx(OC,{options:r,onOptionsChange:n,disabled:!1})]})},DC=C.div`
|
|
1302
|
+
display: flex;
|
|
1303
|
+
flex-direction: column;
|
|
1304
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1305
|
+
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
1306
|
+
padding: 16px;
|
|
1307
|
+
width: 100%;
|
|
1308
|
+
box-sizing: border-box;
|
|
1309
|
+
`,zC=C.div`
|
|
1310
|
+
margin-bottom: 16px;
|
|
1311
|
+
width: 100%;
|
|
1312
|
+
`,FC=({theme:e,toggleTheme:t})=>c.jsx(js,{onClick:t,"aria-label":`Switch to ${e==="light"?"dark":"light"} mode`,children:e==="light"?"🌙":"☀️"}),Ad=r1`
|
|
1313
|
+
body {
|
|
1314
|
+
color: ${({theme:e})=>e.colors.text};
|
|
1315
|
+
font-family: Arial, sans-serif;
|
|
1316
|
+
margin: 0;
|
|
1317
|
+
padding: 0;
|
|
1318
|
+
background-color: ${({theme:e})=>e.colors.pageBackground};
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
body::before {
|
|
1322
|
+
content: '';
|
|
1323
|
+
position: fixed;
|
|
1324
|
+
top: 0;
|
|
1325
|
+
left: 0;
|
|
1326
|
+
right: 0;
|
|
1327
|
+
bottom: 0;
|
|
1328
|
+
transition: all 0.3s ease;
|
|
1329
|
+
opacity: 0.1;
|
|
1330
|
+
background-image: url(${e=>e.theme.backgroundImage});
|
|
1331
|
+
background-size: cover;
|
|
1332
|
+
background-position: center;
|
|
1333
|
+
background-repeat: no-repeat;
|
|
1334
|
+
background-attachment: fixed;
|
|
1335
|
+
z-index: -1;
|
|
1336
|
+
}
|
|
1337
|
+
`,BC=()=>{const{currentPrompt:e,setCurrentPrompt:t,isExecuting:r,setIsExecuting:n,executionStatus:o,setExecutionStatus:i,chatMessages:s,setChatMessages:l,currentQuestion:a,setCurrentQuestion:u,theme:d,usage:f,codegenOptions:h,rcConfig:g,toggleTheme:v,startPolling:x,stopPolling:k,handlePauseExecution:m,handleResumeExecution:p,setCodegenOptions:y}=gS(),{handleExecute:w,handleQuestionSubmit:N,handleInterrupt:R,handleOptionsChange:$}=xS({currentPrompt:e,setCurrentPrompt:t,isExecuting:r,setIsExecuting:n,setExecutionStatus:i,chatMessages:s,setChatMessages:l,setCurrentQuestion:u,codegenOptions:h,setCodegenOptions:y});S.useEffect(()=>(x(),()=>{k()}),[x,k]);const P=()=>{o==="paused"?p():m()};return f?c.jsxs(cd,{theme:d==="light"?pd:hd,children:[c.jsx(Ad,{}),c.jsx(sS,{themeToggle:c.jsx(FC,{theme:d,toggleTheme:v}),toggleTheme:v,chatInterface:c.jsx(CC,{messages:s,currentQuestion:a,codegenOptions:h,onQuestionSubmit:N,onInterrupt:R,onPauseResume:P,executionStatus:o}),inputArea:!r&&c.jsx(MC,{onSubmit:w,isExecuting:r,onInterrupt:R,codegenOptions:h,onOptionsChange:$}),usage:f}),c.jsx(Yx,{currentService:h.aiService}),c.jsx(pw,{}),c.jsx(Jw,{}),c.jsx(tS,{rcConfig:g})]}):c.jsx(cd,{theme:d==="light"?pd:hd,children:c.jsx(Ad,{})})};function UC(){return c.jsx(BC,{})}const VC=document.getElementById("root"),HC=Qp(VC);HC.render(Ue.createElement(UC,null));
|