- 重构 MiddlePanel 对话列表,按时间分组并优化交互 - 为 AccountList 和 AssetGallery 添加加载骨架屏 - 用确认对话框替换原生 confirm,统一交互体验 - 优化聊天消息组件的视觉样式和细节 - 添加 Escape 键快速返回账户列表导航 - 更新构建资源文件
321 lines
416 KiB
JavaScript
321 lines
416 KiB
JavaScript
var th=Object.defineProperty;var nh=(e,t,n)=>t in e?th(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Tu=(e,t,n)=>nh(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))u(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&u(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function u(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();var ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var T0={exports:{}},ei={},R0={exports:{}},H={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var zr=Symbol.for("react.element"),rh=Symbol.for("react.portal"),oh=Symbol.for("react.fragment"),ih=Symbol.for("react.strict_mode"),lh=Symbol.for("react.profiler"),ah=Symbol.for("react.provider"),sh=Symbol.for("react.context"),ch=Symbol.for("react.forward_ref"),dh=Symbol.for("react.suspense"),fh=Symbol.for("react.memo"),ph=Symbol.for("react.lazy"),Rs=Symbol.iterator;function hh(e){return e===null||typeof e!="object"?null:(e=Rs&&e[Rs]||e["@@iterator"],typeof e=="function"?e:null)}var P0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M0=Object.assign,L0={};function vu(e,t,n){this.props=e,this.context=t,this.refs=L0,this.updater=n||P0}vu.prototype.isReactComponent={};vu.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")};vu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function I0(){}I0.prototype=vu.prototype;function xa(e,t,n){this.props=e,this.context=t,this.refs=L0,this.updater=n||P0}var va=xa.prototype=new I0;va.constructor=xa;M0(va,vu.prototype);va.isPureReactComponent=!0;var Ps=Array.isArray,O0=Object.prototype.hasOwnProperty,ya={current:null},$0={key:!0,ref:!0,__self:!0,__source:!0};function B0(e,t,n){var u,r={},o=null,i=null;if(t!=null)for(u in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)O0.call(t,u)&&!$0.hasOwnProperty(u)&&(r[u]=t[u]);var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){for(var a=Array(l),s=0;s<l;s++)a[s]=arguments[s+2];r.children=a}if(e&&e.defaultProps)for(u in l=e.defaultProps,l)r[u]===void 0&&(r[u]=l[u]);return{$$typeof:zr,type:e,key:o,ref:i,props:r,_owner:ya.current}}function mh(e,t){return{$$typeof:zr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ba(e){return typeof e=="object"&&e!==null&&e.$$typeof===zr}function gh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ms=/\/+/g;function Si(e,t){return typeof e=="object"&&e!==null&&e.key!=null?gh(""+e.key):t.toString(36)}function ao(e,t,n,u,r){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case zr:case rh:i=!0}}if(i)return i=e,r=r(i),e=u===""?"."+Si(i,0):u,Ps(r)?(n="",e!=null&&(n=e.replace(Ms,"$&/")+"/"),ao(r,t,n,"",function(s){return s})):r!=null&&(ba(r)&&(r=mh(r,n+(!r.key||i&&i.key===r.key?"":(""+r.key).replace(Ms,"$&/")+"/")+e)),t.push(r)),1;if(i=0,u=u===""?".":u+":",Ps(e))for(var l=0;l<e.length;l++){o=e[l];var a=u+Si(o,l);i+=ao(o,t,n,a,r)}else if(a=hh(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=u+Si(o,l++),i+=ao(o,t,n,a,r);else if(o==="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 i}function Br(e,t,n){if(e==null)return e;var u=[],r=0;return ao(e,u,"","",function(o){return t.call(n,o,r++)}),u}function xh(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pe={current:null},so={transition:null},vh={ReactCurrentDispatcher:Pe,ReactCurrentBatchConfig:so,ReactCurrentOwner:ya};function U0(){throw Error("act(...) is not supported in production builds of React.")}H.Children={map:Br,forEach:function(e,t,n){Br(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Br(e,function(){t++}),t},toArray:function(e){return Br(e,function(t){return t})||[]},only:function(e){if(!ba(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};H.Component=vu;H.Fragment=oh;H.Profiler=lh;H.PureComponent=xa;H.StrictMode=ih;H.Suspense=dh;H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vh;H.act=U0;H.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var u=M0({},e.props),r=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=ya.current),t.key!==void 0&&(r=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)O0.call(t,a)&&!$0.hasOwnProperty(a)&&(u[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)u.children=n;else if(1<a){l=Array(a);for(var s=0;s<a;s++)l[s]=arguments[s+2];u.children=l}return{$$typeof:zr,type:e.type,key:r,ref:o,props:u,_owner:i}};H.createContext=function(e){return e={$$typeof:sh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ah,_context:e},e.Consumer=e};H.createElement=B0;H.createFactory=function(e){var t=B0.bind(null,e);return t.type=e,t};H.createRef=function(){return{current:null}};H.forwardRef=function(e){return{$$typeof:ch,render:e}};H.isValidElement=ba;H.lazy=function(e){return{$$typeof:ph,_payload:{_status:-1,_result:e},_init:xh}};H.memo=function(e,t){return{$$typeof:fh,type:e,compare:t===void 0?null:t}};H.startTransition=function(e){var t=so.transition;so.transition={};try{e()}finally{so.transition=t}};H.unstable_act=U0;H.useCallback=function(e,t){return Pe.current.useCallback(e,t)};H.useContext=function(e){return Pe.current.useContext(e)};H.useDebugValue=function(){};H.useDeferredValue=function(e){return Pe.current.useDeferredValue(e)};H.useEffect=function(e,t){return Pe.current.useEffect(e,t)};H.useId=function(){return Pe.current.useId()};H.useImperativeHandle=function(e,t,n){return Pe.current.useImperativeHandle(e,t,n)};H.useInsertionEffect=function(e,t){return Pe.current.useInsertionEffect(e,t)};H.useLayoutEffect=function(e,t){return Pe.current.useLayoutEffect(e,t)};H.useMemo=function(e,t){return Pe.current.useMemo(e,t)};H.useReducer=function(e,t,n){return Pe.current.useReducer(e,t,n)};H.useRef=function(e){return Pe.current.useRef(e)};H.useState=function(e){return Pe.current.useState(e)};H.useSyncExternalStore=function(e,t,n){return Pe.current.useSyncExternalStore(e,t,n)};H.useTransition=function(){return Pe.current.useTransition()};H.version="18.3.1";R0.exports=H;var k=R0.exports;const Wu=uh(k);/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var yh=k,bh=Symbol.for("react.element"),kh=Symbol.for("react.fragment"),wh=Object.prototype.hasOwnProperty,_h=yh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ch={key:!0,ref:!0,__self:!0,__source:!0};function H0(e,t,n){var u,r={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(u in t)wh.call(t,u)&&!Ch.hasOwnProperty(u)&&(r[u]=t[u]);if(e&&e.defaultProps)for(u in t=e.defaultProps,t)r[u]===void 0&&(r[u]=t[u]);return{$$typeof:bh,type:e,key:o,ref:i,props:r,_owner:_h.current}}ei.Fragment=kh;ei.jsx=H0;ei.jsxs=H0;T0.exports=ei;var c=T0.exports,fl={},V0={exports:{}},Ye={},q0={exports:{}},W0={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(F,P){var z=F.length;F.push(P);e:for(;0<z;){var T=z-1>>>1,O=F[T];if(0<r(O,P))F[T]=P,F[z]=O,z=T;else break e}}function n(F){return F.length===0?null:F[0]}function u(F){if(F.length===0)return null;var P=F[0],z=F.pop();if(z!==P){F[0]=z;e:for(var T=0,O=F.length,wt=O>>>1;T<wt;){var re=2*(T+1)-1,Le=F[re],je=re+1,Ve=F[je];if(0>r(Le,z))je<O&&0>r(Ve,Le)?(F[T]=Ve,F[je]=z,T=je):(F[T]=Le,F[re]=z,T=re);else if(je<O&&0>r(Ve,z))F[T]=Ve,F[je]=z,T=je;else break e}}return P}function r(F,P){var z=F.sortIndex-P.sortIndex;return z!==0?z:F.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var a=[],s=[],d=1,h=null,m=3,v=!1,x=!1,_=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(F){for(var P=n(s);P!==null;){if(P.callback===null)u(s);else if(P.startTime<=F)u(s),P.sortIndex=P.expirationTime,t(a,P);else break;P=n(s)}}function y(F){if(_=!1,p(F),!x)if(n(a)!==null)x=!0,Y(b);else{var P=n(s);P!==null&&W(y,P.startTime-F)}}function b(F,P){x=!1,_&&(_=!1,g(S),S=-1),v=!0;var z=m;try{for(p(P),h=n(a);h!==null&&(!(h.expirationTime>P)||F&&!I());){var T=h.callback;if(typeof T=="function"){h.callback=null,m=h.priorityLevel;var O=T(h.expirationTime<=P);P=e.unstable_now(),typeof O=="function"?h.callback=O:h===n(a)&&u(a),p(P)}else u(a);h=n(a)}if(h!==null)var wt=!0;else{var re=n(s);re!==null&&W(y,re.startTime-P),wt=!1}return wt}finally{h=null,m=z,v=!1}}var w=!1,E=null,S=-1,A=5,j=-1;function I(){return!(e.unstable_now()-j<A)}function M(){if(E!==null){var F=e.unstable_now();j=F;var P=!0;try{P=E(!0,F)}finally{P?ue():(w=!1,E=null)}}else w=!1}var ue;if(typeof f=="function")ue=function(){f(M)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,B=L.port2;L.port1.onmessage=M,ue=function(){B.postMessage(null)}}else ue=function(){C(M,0)};function Y(F){E=F,w||(w=!0,ue())}function W(F,P){S=C(function(){F(e.unstable_now())},P)}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(F){F.callback=null},e.unstable_continueExecution=function(){x||v||(x=!0,Y(b))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(F){switch(m){case 1:case 2:case 3:var P=3;break;default:P=m}var z=m;m=P;try{return F()}finally{m=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,P){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var z=m;m=F;try{return P()}finally{m=z}},e.unstable_scheduleCallback=function(F,P,z){var T=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?T+z:T):z=T,F){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=z+O,F={id:d++,callback:P,priorityLevel:F,startTime:z,expirationTime:O,sortIndex:-1},z>T?(F.sortIndex=z,t(s,F),n(a)===null&&F===n(s)&&(_?(g(S),S=-1):_=!0,W(y,z-T))):(F.sortIndex=O,t(a,F),x||v||(x=!0,Y(b))),F},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(F){var P=m;return function(){var z=m;m=P;try{return F.apply(this,arguments)}finally{m=z}}}})(W0);q0.exports=W0;var Eh=q0.exports;/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Sh=k,Qe=Eh;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var K0=new Set,ir={};function Ln(e,t){su(e,t),su(e+"Capture",t)}function su(e,t){for(ir[e]=t,e=0;e<t.length;e++)K0.add(t[e])}var Ht=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pl=Object.prototype.hasOwnProperty,Ah=/^[: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]*$/,Ls={},Is={};function zh(e){return pl.call(Is,e)?!0:pl.call(Ls,e)?!1:Ah.test(e)?Is[e]=!0:(Ls[e]=!0,!1)}function Fh(e,t,n,u){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return u?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Dh(e,t,n,u){if(t===null||typeof t>"u"||Fh(e,t,n,u))return!0;if(u)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Me(e,t,n,u,r,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=u,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Se[e]=new Me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Se[t]=new Me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Se[e]=new Me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Se[e]=new Me(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){Se[e]=new Me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Se[e]=new Me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Se[e]=new Me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Se[e]=new Me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Se[e]=new Me(e,5,!1,e.toLowerCase(),null,!1,!1)});var ka=/[\-:]([a-z])/g;function wa(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(ka,wa);Se[t]=new Me(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(ka,wa);Se[t]=new Me(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(ka,wa);Se[t]=new Me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Se[e]=new Me(e,1,!1,e.toLowerCase(),null,!1,!1)});Se.xlinkHref=new Me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Se[e]=new Me(e,1,!1,e.toLowerCase(),null,!0,!0)});function _a(e,t,n,u){var r=Se.hasOwnProperty(t)?Se[t]:null;(r!==null?r.type!==0:u||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Dh(t,n,r,u)&&(n=null),u||r===null?zh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=n===null?r.type===3?!1:"":n:(t=r.attributeName,u=r.attributeNamespace,n===null?e.removeAttribute(t):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,u?e.setAttributeNS(u,t,n):e.setAttribute(t,n))))}var Gt=Sh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ur=Symbol.for("react.element"),Hn=Symbol.for("react.portal"),Vn=Symbol.for("react.fragment"),Ca=Symbol.for("react.strict_mode"),hl=Symbol.for("react.profiler"),G0=Symbol.for("react.provider"),Q0=Symbol.for("react.context"),Ea=Symbol.for("react.forward_ref"),ml=Symbol.for("react.suspense"),gl=Symbol.for("react.suspense_list"),Sa=Symbol.for("react.memo"),en=Symbol.for("react.lazy"),Z0=Symbol.for("react.offscreen"),Os=Symbol.iterator;function Ru(e){return e===null||typeof e!="object"?null:(e=Os&&e[Os]||e["@@iterator"],typeof e=="function"?e:null)}var se=Object.assign,Ai;function Ku(e){if(Ai===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ai=t&&t[1]||""}return`
|
||
`+Ai+e}var zi=!1;function Fi(e,t){if(!e||zi)return"";zi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var u=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){u=s}e.call(t.prototype)}else{try{throw Error()}catch(s){u=s}e()}}catch(s){if(s&&u&&typeof s.stack=="string"){for(var r=s.stack.split(`
|
||
`),o=u.stack.split(`
|
||
`),i=r.length-1,l=o.length-1;1<=i&&0<=l&&r[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(r[i]!==o[l]){if(i!==1||l!==1)do if(i--,l--,0>l||r[i]!==o[l]){var a=`
|
||
`+r[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{zi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ku(e):""}function jh(e){switch(e.tag){case 5:return Ku(e.type);case 16:return Ku("Lazy");case 13:return Ku("Suspense");case 19:return Ku("SuspenseList");case 0:case 2:case 15:return e=Fi(e.type,!1),e;case 11:return e=Fi(e.type.render,!1),e;case 1:return e=Fi(e.type,!0),e;default:return""}}function xl(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 Vn:return"Fragment";case Hn:return"Portal";case hl:return"Profiler";case Ca:return"StrictMode";case ml:return"Suspense";case gl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Q0:return(e.displayName||"Context")+".Consumer";case G0:return(e._context.displayName||"Context")+".Provider";case Ea:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Sa:return t=e.displayName||null,t!==null?t:xl(e.type)||"Memo";case en:t=e._payload,e=e._init;try{return xl(e(t))}catch{}}return null}function Nh(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 xl(t);case 8:return t===Ca?"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 vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Y0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Th(e){var t=Y0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),u=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){u=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return u},setValue:function(i){u=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hr(e){e._valueTracker||(e._valueTracker=Th(e))}function J0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),u="";return e&&(u=Y0(e)?e.checked?"true":"false":e.value),e=u,e!==n?(t.setValue(e),!0):!1}function Co(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 vl(e,t){var n=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $s(e,t){var n=t.defaultValue==null?"":t.defaultValue,u=t.checked!=null?t.checked:t.defaultChecked;n=vn(t.value!=null?t.value:n),e._wrapperState={initialChecked:u,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function X0(e,t){t=t.checked,t!=null&&_a(e,"checked",t,!1)}function yl(e,t){X0(e,t);var n=vn(t.value),u=t.type;if(n!=null)u==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(u==="submit"||u==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bl(e,t.type,n):t.hasOwnProperty("defaultValue")&&bl(e,t.type,vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bs(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var u=t.type;if(!(u!=="submit"&&u!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function bl(e,t,n){(t!=="number"||Co(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gu=Array.isArray;function tu(e,t,n,u){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&u&&(e[n].defaultSelected=!0)}else{for(n=""+vn(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,u&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function kl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Us(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(Gu(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vn(n)}}function ed(e,t){var n=vn(t.value),u=vn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),u!=null&&(e.defaultValue=""+u)}function Hs(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function td(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 wl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?td(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Vr,nd=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,u,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,u,r)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Vr=Vr||document.createElement("div"),Vr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Vr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function lr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yu={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},Rh=["Webkit","ms","Moz","O"];Object.keys(Yu).forEach(function(e){Rh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yu[t]=Yu[e]})});function ud(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yu.hasOwnProperty(e)&&Yu[e]?(""+t).trim():t+"px"}function rd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var u=n.indexOf("--")===0,r=ud(n,t[n],u);n==="float"&&(n="cssFloat"),u?e.setProperty(n,r):e[n]=r}}var Ph=se({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 _l(e,t){if(t){if(Ph[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function Cl(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 Aa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sl=null,nu=null,uu=null;function Vs(e){if(e=jr(e)){if(typeof Sl!="function")throw Error(D(280));var t=e.stateNode;t&&(t=oi(t),Sl(e.stateNode,e.type,t))}}function od(e){nu?uu?uu.push(e):uu=[e]:nu=e}function id(){if(nu){var e=nu,t=uu;if(uu=nu=null,Vs(e),t)for(e=0;e<t.length;e++)Vs(t[e])}}function ld(e,t){return e(t)}function ad(){}var Di=!1;function sd(e,t,n){if(Di)return e(t,n);Di=!0;try{return ld(e,t,n)}finally{Di=!1,(nu!==null||uu!==null)&&(ad(),id())}}function ar(e,t){var n=e.stateNode;if(n===null)return null;var u=oi(n);if(u===null)return null;n=u[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":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var Al=!1;if(Ht)try{var Pu={};Object.defineProperty(Pu,"passive",{get:function(){Al=!0}}),window.addEventListener("test",Pu,Pu),window.removeEventListener("test",Pu,Pu)}catch{Al=!1}function Mh(e,t,n,u,r,o,i,l,a){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(d){this.onError(d)}}var Ju=!1,Eo=null,So=!1,zl=null,Lh={onError:function(e){Ju=!0,Eo=e}};function Ih(e,t,n,u,r,o,i,l,a){Ju=!1,Eo=null,Mh.apply(Lh,arguments)}function Oh(e,t,n,u,r,o,i,l,a){if(Ih.apply(this,arguments),Ju){if(Ju){var s=Eo;Ju=!1,Eo=null}else throw Error(D(198));So||(So=!0,zl=s)}}function In(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function cd(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 qs(e){if(In(e)!==e)throw Error(D(188))}function $h(e){var t=e.alternate;if(!t){if(t=In(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,u=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(u=r.return,u!==null){n=u;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return qs(r),e;if(o===u)return qs(r),t;o=o.sibling}throw Error(D(188))}if(n.return!==u.return)n=r,u=o;else{for(var i=!1,l=r.child;l;){if(l===n){i=!0,n=r,u=o;break}if(l===u){i=!0,u=r,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,u=r;break}if(l===u){i=!0,u=o,n=r;break}l=l.sibling}if(!i)throw Error(D(189))}}if(n.alternate!==u)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function dd(e){return e=$h(e),e!==null?fd(e):null}function fd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=fd(e);if(t!==null)return t;e=e.sibling}return null}var pd=Qe.unstable_scheduleCallback,Ws=Qe.unstable_cancelCallback,Bh=Qe.unstable_shouldYield,Uh=Qe.unstable_requestPaint,de=Qe.unstable_now,Hh=Qe.unstable_getCurrentPriorityLevel,za=Qe.unstable_ImmediatePriority,hd=Qe.unstable_UserBlockingPriority,Ao=Qe.unstable_NormalPriority,Vh=Qe.unstable_LowPriority,md=Qe.unstable_IdlePriority,ti=null,jt=null;function qh(e){if(jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(ti,e,void 0,(e.current.flags&128)===128)}catch{}}var ht=Math.clz32?Math.clz32:Gh,Wh=Math.log,Kh=Math.LN2;function Gh(e){return e>>>=0,e===0?32:31-(Wh(e)/Kh|0)|0}var qr=64,Wr=4194304;function Qu(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 zo(e,t){var n=e.pendingLanes;if(n===0)return 0;var u=0,r=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~r;l!==0?u=Qu(l):(o&=i,o!==0&&(u=Qu(o)))}else i=n&~r,i!==0?u=Qu(i):o!==0&&(u=Qu(o));if(u===0)return 0;if(t!==0&&t!==u&&!(t&r)&&(r=u&-u,o=t&-t,r>=o||r===16&&(o&4194240)!==0))return t;if(u&4&&(u|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=u;0<t;)n=31-ht(t),r=1<<n,u|=e[n],t&=~r;return u}function Qh(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 Zh(e,t){for(var n=e.suspendedLanes,u=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-ht(o),l=1<<i,a=r[i];a===-1?(!(l&n)||l&u)&&(r[i]=Qh(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function Fl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function gd(){var e=qr;return qr<<=1,!(qr&4194240)&&(qr=64),e}function ji(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Fr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function Yh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var u=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-ht(n),o=1<<r;t[r]=0,u[r]=-1,e[r]=-1,n&=~o}}function Fa(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var u=31-ht(n),r=1<<u;r&t|e[u]&t&&(e[u]|=t),n&=~r}}var Z=0;function xd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var vd,Da,yd,bd,kd,Dl=!1,Kr=[],cn=null,dn=null,fn=null,sr=new Map,cr=new Map,un=[],Jh="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 Ks(e,t){switch(e){case"focusin":case"focusout":cn=null;break;case"dragenter":case"dragleave":dn=null;break;case"mouseover":case"mouseout":fn=null;break;case"pointerover":case"pointerout":sr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cr.delete(t.pointerId)}}function Mu(e,t,n,u,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:u,nativeEvent:o,targetContainers:[r]},t!==null&&(t=jr(t),t!==null&&Da(t)),e):(e.eventSystemFlags|=u,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Xh(e,t,n,u,r){switch(t){case"focusin":return cn=Mu(cn,e,t,n,u,r),!0;case"dragenter":return dn=Mu(dn,e,t,n,u,r),!0;case"mouseover":return fn=Mu(fn,e,t,n,u,r),!0;case"pointerover":var o=r.pointerId;return sr.set(o,Mu(sr.get(o)||null,e,t,n,u,r)),!0;case"gotpointercapture":return o=r.pointerId,cr.set(o,Mu(cr.get(o)||null,e,t,n,u,r)),!0}return!1}function wd(e){var t=Sn(e.target);if(t!==null){var n=In(t);if(n!==null){if(t=n.tag,t===13){if(t=cd(n),t!==null){e.blockedOn=t,kd(e.priority,function(){yd(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function co(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=jl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var u=new n.constructor(n.type,n);El=u,n.target.dispatchEvent(u),El=null}else return t=jr(n),t!==null&&Da(t),e.blockedOn=n,!1;t.shift()}return!0}function Gs(e,t,n){co(e)&&n.delete(t)}function e1(){Dl=!1,cn!==null&&co(cn)&&(cn=null),dn!==null&&co(dn)&&(dn=null),fn!==null&&co(fn)&&(fn=null),sr.forEach(Gs),cr.forEach(Gs)}function Lu(e,t){e.blockedOn===t&&(e.blockedOn=null,Dl||(Dl=!0,Qe.unstable_scheduleCallback(Qe.unstable_NormalPriority,e1)))}function dr(e){function t(r){return Lu(r,e)}if(0<Kr.length){Lu(Kr[0],e);for(var n=1;n<Kr.length;n++){var u=Kr[n];u.blockedOn===e&&(u.blockedOn=null)}}for(cn!==null&&Lu(cn,e),dn!==null&&Lu(dn,e),fn!==null&&Lu(fn,e),sr.forEach(t),cr.forEach(t),n=0;n<un.length;n++)u=un[n],u.blockedOn===e&&(u.blockedOn=null);for(;0<un.length&&(n=un[0],n.blockedOn===null);)wd(n),n.blockedOn===null&&un.shift()}var ru=Gt.ReactCurrentBatchConfig,Fo=!0;function t1(e,t,n,u){var r=Z,o=ru.transition;ru.transition=null;try{Z=1,ja(e,t,n,u)}finally{Z=r,ru.transition=o}}function n1(e,t,n,u){var r=Z,o=ru.transition;ru.transition=null;try{Z=4,ja(e,t,n,u)}finally{Z=r,ru.transition=o}}function ja(e,t,n,u){if(Fo){var r=jl(e,t,n,u);if(r===null)Bi(e,t,u,Do,n),Ks(e,u);else if(Xh(r,e,t,n,u))u.stopPropagation();else if(Ks(e,u),t&4&&-1<Jh.indexOf(e)){for(;r!==null;){var o=jr(r);if(o!==null&&vd(o),o=jl(e,t,n,u),o===null&&Bi(e,t,u,Do,n),o===r)break;r=o}r!==null&&u.stopPropagation()}else Bi(e,t,u,null,n)}}var Do=null;function jl(e,t,n,u){if(Do=null,e=Aa(u),e=Sn(e),e!==null)if(t=In(e),t===null)e=null;else if(n=t.tag,n===13){if(e=cd(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Do=e,null}function _d(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(Hh()){case za:return 1;case hd:return 4;case Ao:case Vh:return 16;case md:return 536870912;default:return 16}default:return 16}}var ln=null,Na=null,fo=null;function Cd(){if(fo)return fo;var e,t=Na,n=t.length,u,r="value"in ln?ln.value:ln.textContent,o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var i=n-e;for(u=1;u<=i&&t[n-u]===r[o-u];u++);return fo=r.slice(e,1<u?1-u:void 0)}function po(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 Gr(){return!0}function Qs(){return!1}function Je(e){function t(n,u,r,o,i){this._reactName=n,this._targetInst=r,this.type=u,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Gr:Qs,this.isPropagationStopped=Qs,this}return se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Gr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gr)},persist:function(){},isPersistent:Gr}),t}var yu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ta=Je(yu),Dr=se({},yu,{view:0,detail:0}),u1=Je(Dr),Ni,Ti,Iu,ni=se({},Dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ra,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!==Iu&&(Iu&&e.type==="mousemove"?(Ni=e.screenX-Iu.screenX,Ti=e.screenY-Iu.screenY):Ti=Ni=0,Iu=e),Ni)},movementY:function(e){return"movementY"in e?e.movementY:Ti}}),Zs=Je(ni),r1=se({},ni,{dataTransfer:0}),o1=Je(r1),i1=se({},Dr,{relatedTarget:0}),Ri=Je(i1),l1=se({},yu,{animationName:0,elapsedTime:0,pseudoElement:0}),a1=Je(l1),s1=se({},yu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),c1=Je(s1),d1=se({},yu,{data:0}),Ys=Je(d1),f1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p1={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"},h1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=h1[e])?!!t[e]:!1}function Ra(){return m1}var g1=se({},Dr,{key:function(e){if(e.key){var t=f1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=po(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?p1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ra,charCode:function(e){return e.type==="keypress"?po(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?po(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),x1=Je(g1),v1=se({},ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Js=Je(v1),y1=se({},Dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ra}),b1=Je(y1),k1=se({},yu,{propertyName:0,elapsedTime:0,pseudoElement:0}),w1=Je(k1),_1=se({},ni,{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}),C1=Je(_1),E1=[9,13,27,32],Pa=Ht&&"CompositionEvent"in window,Xu=null;Ht&&"documentMode"in document&&(Xu=document.documentMode);var S1=Ht&&"TextEvent"in window&&!Xu,Ed=Ht&&(!Pa||Xu&&8<Xu&&11>=Xu),Xs=" ",ec=!1;function Sd(e,t){switch(e){case"keyup":return E1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ad(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function A1(e,t){switch(e){case"compositionend":return Ad(t);case"keypress":return t.which!==32?null:(ec=!0,Xs);case"textInput":return e=t.data,e===Xs&&ec?null:e;default:return null}}function z1(e,t){if(qn)return e==="compositionend"||!Pa&&Sd(e,t)?(e=Cd(),fo=Na=ln=null,qn=!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 Ed&&t.locale!=="ko"?null:t.data;default:return null}}var F1={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 tc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!F1[e.type]:t==="textarea"}function zd(e,t,n,u){od(u),t=jo(t,"onChange"),0<t.length&&(n=new Ta("onChange","change",null,n,u),e.push({event:n,listeners:t}))}var er=null,fr=null;function D1(e){Od(e,0)}function ui(e){var t=Gn(e);if(J0(t))return e}function j1(e,t){if(e==="change")return t}var Fd=!1;if(Ht){var Pi;if(Ht){var Mi="oninput"in document;if(!Mi){var nc=document.createElement("div");nc.setAttribute("oninput","return;"),Mi=typeof nc.oninput=="function"}Pi=Mi}else Pi=!1;Fd=Pi&&(!document.documentMode||9<document.documentMode)}function uc(){er&&(er.detachEvent("onpropertychange",Dd),fr=er=null)}function Dd(e){if(e.propertyName==="value"&&ui(fr)){var t=[];zd(t,fr,e,Aa(e)),sd(D1,t)}}function N1(e,t,n){e==="focusin"?(uc(),er=t,fr=n,er.attachEvent("onpropertychange",Dd)):e==="focusout"&&uc()}function T1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ui(fr)}function R1(e,t){if(e==="click")return ui(t)}function P1(e,t){if(e==="input"||e==="change")return ui(t)}function M1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:M1;function pr(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),u=Object.keys(t);if(n.length!==u.length)return!1;for(u=0;u<n.length;u++){var r=n[u];if(!pl.call(t,r)||!xt(e[r],t[r]))return!1}return!0}function rc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function oc(e,t){var n=rc(e);e=0;for(var u;n;){if(n.nodeType===3){if(u=e+n.textContent.length,e<=t&&u>=t)return{node:n,offset:t-e};e=u}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rc(n)}}function jd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nd(){for(var e=window,t=Co();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Co(e.document)}return t}function Ma(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 L1(e){var t=Nd(),n=e.focusedElem,u=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jd(n.ownerDocument.documentElement,n)){if(u!==null&&Ma(n)){if(t=u.start,e=u.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,o=Math.min(u.start,r);u=u.end===void 0?o:Math.min(u.end,r),!e.extend&&o>u&&(r=u,u=o,o=r),r=oc(n,o);var i=oc(n,u);r&&i&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),o>u?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var I1=Ht&&"documentMode"in document&&11>=document.documentMode,Wn=null,Nl=null,tr=null,Tl=!1;function ic(e,t,n){var u=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tl||Wn==null||Wn!==Co(u)||(u=Wn,"selectionStart"in u&&Ma(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),tr&&pr(tr,u)||(tr=u,u=jo(Nl,"onSelect"),0<u.length&&(t=new Ta("onSelect","select",null,t,n),e.push({event:t,listeners:u}),t.target=Wn)))}function Qr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Kn={animationend:Qr("Animation","AnimationEnd"),animationiteration:Qr("Animation","AnimationIteration"),animationstart:Qr("Animation","AnimationStart"),transitionend:Qr("Transition","TransitionEnd")},Li={},Td={};Ht&&(Td=document.createElement("div").style,"AnimationEvent"in window||(delete Kn.animationend.animation,delete Kn.animationiteration.animation,delete Kn.animationstart.animation),"TransitionEvent"in window||delete Kn.transitionend.transition);function ri(e){if(Li[e])return Li[e];if(!Kn[e])return e;var t=Kn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Td)return Li[e]=t[n];return e}var Rd=ri("animationend"),Pd=ri("animationiteration"),Md=ri("animationstart"),Ld=ri("transitionend"),Id=new Map,lc="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 kn(e,t){Id.set(e,t),Ln(t,[e])}for(var Ii=0;Ii<lc.length;Ii++){var Oi=lc[Ii],O1=Oi.toLowerCase(),$1=Oi[0].toUpperCase()+Oi.slice(1);kn(O1,"on"+$1)}kn(Rd,"onAnimationEnd");kn(Pd,"onAnimationIteration");kn(Md,"onAnimationStart");kn("dblclick","onDoubleClick");kn("focusin","onFocus");kn("focusout","onBlur");kn(Ld,"onTransitionEnd");su("onMouseEnter",["mouseout","mouseover"]);su("onMouseLeave",["mouseout","mouseover"]);su("onPointerEnter",["pointerout","pointerover"]);su("onPointerLeave",["pointerout","pointerover"]);Ln("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ln("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ln("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ln("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ln("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ln("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),B1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Zu));function ac(e,t,n){var u=e.type||"unknown-event";e.currentTarget=n,Oh(u,t,void 0,e),e.currentTarget=null}function Od(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var u=e[n],r=u.event;u=u.listeners;e:{var o=void 0;if(t)for(var i=u.length-1;0<=i;i--){var l=u[i],a=l.instance,s=l.currentTarget;if(l=l.listener,a!==o&&r.isPropagationStopped())break e;ac(r,l,s),o=a}else for(i=0;i<u.length;i++){if(l=u[i],a=l.instance,s=l.currentTarget,l=l.listener,a!==o&&r.isPropagationStopped())break e;ac(r,l,s),o=a}}}if(So)throw e=zl,So=!1,zl=null,e}function te(e,t){var n=t[Il];n===void 0&&(n=t[Il]=new Set);var u=e+"__bubble";n.has(u)||($d(t,e,2,!1),n.add(u))}function $i(e,t,n){var u=0;t&&(u|=4),$d(n,e,u,t)}var Zr="_reactListening"+Math.random().toString(36).slice(2);function hr(e){if(!e[Zr]){e[Zr]=!0,K0.forEach(function(n){n!=="selectionchange"&&(B1.has(n)||$i(n,!1,e),$i(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zr]||(t[Zr]=!0,$i("selectionchange",!1,t))}}function $d(e,t,n,u){switch(_d(t)){case 1:var r=t1;break;case 4:r=n1;break;default:r=ja}n=r.bind(null,t,n,e),r=void 0,!Al||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),u?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Bi(e,t,n,u,r){var o=u;if(!(t&1)&&!(t&2)&&u!==null)e:for(;;){if(u===null)return;var i=u.tag;if(i===3||i===4){var l=u.stateNode.containerInfo;if(l===r||l.nodeType===8&&l.parentNode===r)break;if(i===4)for(i=u.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===r||a.nodeType===8&&a.parentNode===r))return;i=i.return}for(;l!==null;){if(i=Sn(l),i===null)return;if(a=i.tag,a===5||a===6){u=o=i;continue e}l=l.parentNode}}u=u.return}sd(function(){var s=o,d=Aa(n),h=[];e:{var m=Id.get(e);if(m!==void 0){var v=Ta,x=e;switch(e){case"keypress":if(po(n)===0)break e;case"keydown":case"keyup":v=x1;break;case"focusin":x="focus",v=Ri;break;case"focusout":x="blur",v=Ri;break;case"beforeblur":case"afterblur":v=Ri;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Zs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=o1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=b1;break;case Rd:case Pd:case Md:v=a1;break;case Ld:v=w1;break;case"scroll":v=u1;break;case"wheel":v=C1;break;case"copy":case"cut":case"paste":v=c1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Js}var _=(t&4)!==0,C=!_&&e==="scroll",g=_?m!==null?m+"Capture":null:m;_=[];for(var f=s,p;f!==null;){p=f;var y=p.stateNode;if(p.tag===5&&y!==null&&(p=y,g!==null&&(y=ar(f,g),y!=null&&_.push(mr(f,y,p)))),C)break;f=f.return}0<_.length&&(m=new v(m,x,null,n,d),h.push({event:m,listeners:_}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==El&&(x=n.relatedTarget||n.fromElement)&&(Sn(x)||x[Vt]))break e;if((v||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,v?(x=n.relatedTarget||n.toElement,v=s,x=x?Sn(x):null,x!==null&&(C=In(x),x!==C||x.tag!==5&&x.tag!==6)&&(x=null)):(v=null,x=s),v!==x)){if(_=Zs,y="onMouseLeave",g="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(_=Js,y="onPointerLeave",g="onPointerEnter",f="pointer"),C=v==null?m:Gn(v),p=x==null?m:Gn(x),m=new _(y,f+"leave",v,n,d),m.target=C,m.relatedTarget=p,y=null,Sn(d)===s&&(_=new _(g,f+"enter",x,n,d),_.target=p,_.relatedTarget=C,y=_),C=y,v&&x)t:{for(_=v,g=x,f=0,p=_;p;p=Bn(p))f++;for(p=0,y=g;y;y=Bn(y))p++;for(;0<f-p;)_=Bn(_),f--;for(;0<p-f;)g=Bn(g),p--;for(;f--;){if(_===g||g!==null&&_===g.alternate)break t;_=Bn(_),g=Bn(g)}_=null}else _=null;v!==null&&sc(h,m,v,_,!1),x!==null&&C!==null&&sc(h,C,x,_,!0)}}e:{if(m=s?Gn(s):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var b=j1;else if(tc(m))if(Fd)b=P1;else{b=T1;var w=N1}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(b=R1);if(b&&(b=b(e,s))){zd(h,b,n,d);break e}w&&w(e,m,s),e==="focusout"&&(w=m._wrapperState)&&w.controlled&&m.type==="number"&&bl(m,"number",m.value)}switch(w=s?Gn(s):window,e){case"focusin":(tc(w)||w.contentEditable==="true")&&(Wn=w,Nl=s,tr=null);break;case"focusout":tr=Nl=Wn=null;break;case"mousedown":Tl=!0;break;case"contextmenu":case"mouseup":case"dragend":Tl=!1,ic(h,n,d);break;case"selectionchange":if(I1)break;case"keydown":case"keyup":ic(h,n,d)}var E;if(Pa)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else qn?Sd(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(Ed&&n.locale!=="ko"&&(qn||S!=="onCompositionStart"?S==="onCompositionEnd"&&qn&&(E=Cd()):(ln=d,Na="value"in ln?ln.value:ln.textContent,qn=!0)),w=jo(s,S),0<w.length&&(S=new Ys(S,e,null,n,d),h.push({event:S,listeners:w}),E?S.data=E:(E=Ad(n),E!==null&&(S.data=E)))),(E=S1?A1(e,n):z1(e,n))&&(s=jo(s,"onBeforeInput"),0<s.length&&(d=new Ys("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:s}),d.data=E))}Od(h,t)})}function mr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function jo(e,t){for(var n=t+"Capture",u=[];e!==null;){var r=e,o=r.stateNode;r.tag===5&&o!==null&&(r=o,o=ar(e,n),o!=null&&u.unshift(mr(e,o,r)),o=ar(e,t),o!=null&&u.push(mr(e,o,r))),e=e.return}return u}function Bn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sc(e,t,n,u,r){for(var o=t._reactName,i=[];n!==null&&n!==u;){var l=n,a=l.alternate,s=l.stateNode;if(a!==null&&a===u)break;l.tag===5&&s!==null&&(l=s,r?(a=ar(n,o),a!=null&&i.unshift(mr(n,a,l))):r||(a=ar(n,o),a!=null&&i.push(mr(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var U1=/\r\n?/g,H1=/\u0000|\uFFFD/g;function cc(e){return(typeof e=="string"?e:""+e).replace(U1,`
|
||
`).replace(H1,"")}function Yr(e,t,n){if(t=cc(t),cc(e)!==t&&n)throw Error(D(425))}function No(){}var Rl=null,Pl=null;function Ml(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 Ll=typeof setTimeout=="function"?setTimeout:void 0,V1=typeof clearTimeout=="function"?clearTimeout:void 0,dc=typeof Promise=="function"?Promise:void 0,q1=typeof queueMicrotask=="function"?queueMicrotask:typeof dc<"u"?function(e){return dc.resolve(null).then(e).catch(W1)}:Ll;function W1(e){setTimeout(function(){throw e})}function Ui(e,t){var n=t,u=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(u===0){e.removeChild(r),dr(t);return}u--}else n!=="$"&&n!=="$?"&&n!=="$!"||u++;n=r}while(n);dr(t)}function pn(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 fc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var bu=Math.random().toString(36).slice(2),At="__reactFiber$"+bu,gr="__reactProps$"+bu,Vt="__reactContainer$"+bu,Il="__reactEvents$"+bu,K1="__reactListeners$"+bu,G1="__reactHandles$"+bu;function Sn(e){var t=e[At];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Vt]||n[At]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fc(e);e!==null;){if(n=e[At])return n;e=fc(e)}return t}e=n,n=e.parentNode}return null}function jr(e){return e=e[At]||e[Vt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function oi(e){return e[gr]||null}var Ol=[],Qn=-1;function wn(e){return{current:e}}function ne(e){0>Qn||(e.current=Ol[Qn],Ol[Qn]=null,Qn--)}function J(e,t){Qn++,Ol[Qn]=e.current,e.current=t}var yn={},De=wn(yn),$e=wn(!1),jn=yn;function cu(e,t){var n=e.type.contextTypes;if(!n)return yn;var u=e.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===t)return u.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=t[o];return u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Be(e){return e=e.childContextTypes,e!=null}function To(){ne($e),ne(De)}function pc(e,t,n){if(De.current!==yn)throw Error(D(168));J(De,t),J($e,n)}function Bd(e,t,n){var u=e.stateNode;if(t=t.childContextTypes,typeof u.getChildContext!="function")return n;u=u.getChildContext();for(var r in u)if(!(r in t))throw Error(D(108,Nh(e)||"Unknown",r));return se({},n,u)}function Ro(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yn,jn=De.current,J(De,e),J($e,$e.current),!0}function hc(e,t,n){var u=e.stateNode;if(!u)throw Error(D(169));n?(e=Bd(e,t,jn),u.__reactInternalMemoizedMergedChildContext=e,ne($e),ne(De),J(De,e)):ne($e),J($e,n)}var Ot=null,ii=!1,Hi=!1;function Ud(e){Ot===null?Ot=[e]:Ot.push(e)}function Q1(e){ii=!0,Ud(e)}function _n(){if(!Hi&&Ot!==null){Hi=!0;var e=0,t=Z;try{var n=Ot;for(Z=1;e<n.length;e++){var u=n[e];do u=u(!0);while(u!==null)}Ot=null,ii=!1}catch(r){throw Ot!==null&&(Ot=Ot.slice(e+1)),pd(za,_n),r}finally{Z=t,Hi=!1}}return null}var Zn=[],Yn=0,Po=null,Mo=0,tt=[],nt=0,Nn=null,$t=1,Bt="";function Cn(e,t){Zn[Yn++]=Mo,Zn[Yn++]=Po,Po=e,Mo=t}function Hd(e,t,n){tt[nt++]=$t,tt[nt++]=Bt,tt[nt++]=Nn,Nn=e;var u=$t;e=Bt;var r=32-ht(u)-1;u&=~(1<<r),n+=1;var o=32-ht(t)+r;if(30<o){var i=r-r%5;o=(u&(1<<i)-1).toString(32),u>>=i,r-=i,$t=1<<32-ht(t)+r|n<<r|u,Bt=o+e}else $t=1<<o|n<<r|u,Bt=e}function La(e){e.return!==null&&(Cn(e,1),Hd(e,1,0))}function Ia(e){for(;e===Po;)Po=Zn[--Yn],Zn[Yn]=null,Mo=Zn[--Yn],Zn[Yn]=null;for(;e===Nn;)Nn=tt[--nt],tt[nt]=null,Bt=tt[--nt],tt[nt]=null,$t=tt[--nt],tt[nt]=null}var Ge=null,Ke=null,oe=!1,pt=null;function Vd(e,t){var n=ut(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function mc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ge=e,Ke=pn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ge=e,Ke=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Nn!==null?{id:$t,overflow:Bt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ut(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ge=e,Ke=null,!0):!1;default:return!1}}function $l(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Bl(e){if(oe){var t=Ke;if(t){var n=t;if(!mc(e,t)){if($l(e))throw Error(D(418));t=pn(n.nextSibling);var u=Ge;t&&mc(e,t)?Vd(u,n):(e.flags=e.flags&-4097|2,oe=!1,Ge=e)}}else{if($l(e))throw Error(D(418));e.flags=e.flags&-4097|2,oe=!1,Ge=e}}}function gc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ge=e}function Jr(e){if(e!==Ge)return!1;if(!oe)return gc(e),oe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ml(e.type,e.memoizedProps)),t&&(t=Ke)){if($l(e))throw qd(),Error(D(418));for(;t;)Vd(e,t),t=pn(t.nextSibling)}if(gc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ke=pn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ke=null}}else Ke=Ge?pn(e.stateNode.nextSibling):null;return!0}function qd(){for(var e=Ke;e;)e=pn(e.nextSibling)}function du(){Ke=Ge=null,oe=!1}function Oa(e){pt===null?pt=[e]:pt.push(e)}var Z1=Gt.ReactCurrentBatchConfig;function Ou(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(D(309));var u=n.stateNode}if(!u)throw Error(D(147,e));var r=u,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var l=r.refs;i===null?delete l[o]:l[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Xr(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xc(e){var t=e._init;return t(e._payload)}function Wd(e){function t(g,f){if(e){var p=g.deletions;p===null?(g.deletions=[f],g.flags|=16):p.push(f)}}function n(g,f){if(!e)return null;for(;f!==null;)t(g,f),f=f.sibling;return null}function u(g,f){for(g=new Map;f!==null;)f.key!==null?g.set(f.key,f):g.set(f.index,f),f=f.sibling;return g}function r(g,f){return g=xn(g,f),g.index=0,g.sibling=null,g}function o(g,f,p){return g.index=p,e?(p=g.alternate,p!==null?(p=p.index,p<f?(g.flags|=2,f):p):(g.flags|=2,f)):(g.flags|=1048576,f)}function i(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,f,p,y){return f===null||f.tag!==6?(f=Zi(p,g.mode,y),f.return=g,f):(f=r(f,p),f.return=g,f)}function a(g,f,p,y){var b=p.type;return b===Vn?d(g,f,p.props.children,y,p.key):f!==null&&(f.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===en&&xc(b)===f.type)?(y=r(f,p.props),y.ref=Ou(g,f,p),y.return=g,y):(y=bo(p.type,p.key,p.props,null,g.mode,y),y.ref=Ou(g,f,p),y.return=g,y)}function s(g,f,p,y){return f===null||f.tag!==4||f.stateNode.containerInfo!==p.containerInfo||f.stateNode.implementation!==p.implementation?(f=Yi(p,g.mode,y),f.return=g,f):(f=r(f,p.children||[]),f.return=g,f)}function d(g,f,p,y,b){return f===null||f.tag!==7?(f=Dn(p,g.mode,y,b),f.return=g,f):(f=r(f,p),f.return=g,f)}function h(g,f,p){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Zi(""+f,g.mode,p),f.return=g,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Ur:return p=bo(f.type,f.key,f.props,null,g.mode,p),p.ref=Ou(g,null,f),p.return=g,p;case Hn:return f=Yi(f,g.mode,p),f.return=g,f;case en:var y=f._init;return h(g,y(f._payload),p)}if(Gu(f)||Ru(f))return f=Dn(f,g.mode,p,null),f.return=g,f;Xr(g,f)}return null}function m(g,f,p,y){var b=f!==null?f.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return b!==null?null:l(g,f,""+p,y);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Ur:return p.key===b?a(g,f,p,y):null;case Hn:return p.key===b?s(g,f,p,y):null;case en:return b=p._init,m(g,f,b(p._payload),y)}if(Gu(p)||Ru(p))return b!==null?null:d(g,f,p,y,null);Xr(g,p)}return null}function v(g,f,p,y,b){if(typeof y=="string"&&y!==""||typeof y=="number")return g=g.get(p)||null,l(f,g,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ur:return g=g.get(y.key===null?p:y.key)||null,a(f,g,y,b);case Hn:return g=g.get(y.key===null?p:y.key)||null,s(f,g,y,b);case en:var w=y._init;return v(g,f,p,w(y._payload),b)}if(Gu(y)||Ru(y))return g=g.get(p)||null,d(f,g,y,b,null);Xr(f,y)}return null}function x(g,f,p,y){for(var b=null,w=null,E=f,S=f=0,A=null;E!==null&&S<p.length;S++){E.index>S?(A=E,E=null):A=E.sibling;var j=m(g,E,p[S],y);if(j===null){E===null&&(E=A);break}e&&E&&j.alternate===null&&t(g,E),f=o(j,f,S),w===null?b=j:w.sibling=j,w=j,E=A}if(S===p.length)return n(g,E),oe&&Cn(g,S),b;if(E===null){for(;S<p.length;S++)E=h(g,p[S],y),E!==null&&(f=o(E,f,S),w===null?b=E:w.sibling=E,w=E);return oe&&Cn(g,S),b}for(E=u(g,E);S<p.length;S++)A=v(E,g,S,p[S],y),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?S:A.key),f=o(A,f,S),w===null?b=A:w.sibling=A,w=A);return e&&E.forEach(function(I){return t(g,I)}),oe&&Cn(g,S),b}function _(g,f,p,y){var b=Ru(p);if(typeof b!="function")throw Error(D(150));if(p=b.call(p),p==null)throw Error(D(151));for(var w=b=null,E=f,S=f=0,A=null,j=p.next();E!==null&&!j.done;S++,j=p.next()){E.index>S?(A=E,E=null):A=E.sibling;var I=m(g,E,j.value,y);if(I===null){E===null&&(E=A);break}e&&E&&I.alternate===null&&t(g,E),f=o(I,f,S),w===null?b=I:w.sibling=I,w=I,E=A}if(j.done)return n(g,E),oe&&Cn(g,S),b;if(E===null){for(;!j.done;S++,j=p.next())j=h(g,j.value,y),j!==null&&(f=o(j,f,S),w===null?b=j:w.sibling=j,w=j);return oe&&Cn(g,S),b}for(E=u(g,E);!j.done;S++,j=p.next())j=v(E,g,S,j.value,y),j!==null&&(e&&j.alternate!==null&&E.delete(j.key===null?S:j.key),f=o(j,f,S),w===null?b=j:w.sibling=j,w=j);return e&&E.forEach(function(M){return t(g,M)}),oe&&Cn(g,S),b}function C(g,f,p,y){if(typeof p=="object"&&p!==null&&p.type===Vn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Ur:e:{for(var b=p.key,w=f;w!==null;){if(w.key===b){if(b=p.type,b===Vn){if(w.tag===7){n(g,w.sibling),f=r(w,p.props.children),f.return=g,g=f;break e}}else if(w.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===en&&xc(b)===w.type){n(g,w.sibling),f=r(w,p.props),f.ref=Ou(g,w,p),f.return=g,g=f;break e}n(g,w);break}else t(g,w);w=w.sibling}p.type===Vn?(f=Dn(p.props.children,g.mode,y,p.key),f.return=g,g=f):(y=bo(p.type,p.key,p.props,null,g.mode,y),y.ref=Ou(g,f,p),y.return=g,g=y)}return i(g);case Hn:e:{for(w=p.key;f!==null;){if(f.key===w)if(f.tag===4&&f.stateNode.containerInfo===p.containerInfo&&f.stateNode.implementation===p.implementation){n(g,f.sibling),f=r(f,p.children||[]),f.return=g,g=f;break e}else{n(g,f);break}else t(g,f);f=f.sibling}f=Yi(p,g.mode,y),f.return=g,g=f}return i(g);case en:return w=p._init,C(g,f,w(p._payload),y)}if(Gu(p))return x(g,f,p,y);if(Ru(p))return _(g,f,p,y);Xr(g,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,f!==null&&f.tag===6?(n(g,f.sibling),f=r(f,p),f.return=g,g=f):(n(g,f),f=Zi(p,g.mode,y),f.return=g,g=f),i(g)):n(g,f)}return C}var fu=Wd(!0),Kd=Wd(!1),Lo=wn(null),Io=null,Jn=null,$a=null;function Ba(){$a=Jn=Io=null}function Ua(e){var t=Lo.current;ne(Lo),e._currentValue=t}function Ul(e,t,n){for(;e!==null;){var u=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,u!==null&&(u.childLanes|=t)):u!==null&&(u.childLanes&t)!==t&&(u.childLanes|=t),e===n)break;e=e.return}}function ou(e,t){Io=e,$a=Jn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Oe=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if($a!==e)if(e={context:e,memoizedValue:t,next:null},Jn===null){if(Io===null)throw Error(D(308));Jn=e,Io.dependencies={lanes:0,firstContext:e}}else Jn=Jn.next=e;return t}var An=null;function Ha(e){An===null?An=[e]:An.push(e)}function Gd(e,t,n,u){var r=t.interleaved;return r===null?(n.next=n,Ha(t)):(n.next=r.next,r.next=n),t.interleaved=n,qt(e,u)}function qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var tn=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qd(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 Ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hn(e,t,n){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,K&2){var r=u.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),u.pending=t,qt(e,n)}return r=u.interleaved,r===null?(t.next=t,Ha(u)):(t.next=r.next,r.next=t),u.interleaved=t,qt(e,n)}function ho(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var u=t.lanes;u&=e.pendingLanes,n|=u,t.lanes=n,Fa(e,n)}}function vc(e,t){var n=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,n===u)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?r=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:u.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:u.shared,effects:u.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Oo(e,t,n,u){var r=e.updateQueue;tn=!1;var o=r.firstBaseUpdate,i=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var a=l,s=a.next;a.next=null,i===null?o=s:i.next=s,i=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=s:l.next=s,d.lastBaseUpdate=a))}if(o!==null){var h=r.baseState;i=0,d=s=a=null,l=o;do{var m=l.lane,v=l.eventTime;if((u&m)===m){d!==null&&(d=d.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,_=l;switch(m=t,v=n,_.tag){case 1:if(x=_.payload,typeof x=="function"){h=x.call(v,h,m);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=_.payload,m=typeof x=="function"?x.call(v,h,m):x,m==null)break e;h=se({},h,m);break e;case 2:tn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=r.effects,m===null?r.effects=[l]:m.push(l))}else v={eventTime:v,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(s=d=v,a=h):d=d.next=v,i|=m;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;m=l,l=m.next,m.next=null,r.lastBaseUpdate=m,r.shared.pending=null}}while(!0);if(d===null&&(a=h),r.baseState=a,r.firstBaseUpdate=s,r.lastBaseUpdate=d,t=r.shared.interleaved,t!==null){r=t;do i|=r.lane,r=r.next;while(r!==t)}else o===null&&(r.shared.lanes=0);Rn|=i,e.lanes=i,e.memoizedState=h}}function yc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var u=e[t],r=u.callback;if(r!==null){if(u.callback=null,u=n,typeof r!="function")throw Error(D(191,r));r.call(u)}}}var Nr={},Nt=wn(Nr),xr=wn(Nr),vr=wn(Nr);function zn(e){if(e===Nr)throw Error(D(174));return e}function qa(e,t){switch(J(vr,t),J(xr,e),J(Nt,Nr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wl(t,e)}ne(Nt),J(Nt,t)}function pu(){ne(Nt),ne(xr),ne(vr)}function Zd(e){zn(vr.current);var t=zn(Nt.current),n=wl(t,e.type);t!==n&&(J(xr,e),J(Nt,n))}function Wa(e){xr.current===e&&(ne(Nt),ne(xr))}var le=wn(0);function $o(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 Vi=[];function Ka(){for(var e=0;e<Vi.length;e++)Vi[e]._workInProgressVersionPrimary=null;Vi.length=0}var mo=Gt.ReactCurrentDispatcher,qi=Gt.ReactCurrentBatchConfig,Tn=0,ae=null,ge=null,ke=null,Bo=!1,nr=!1,yr=0,Y1=0;function Ae(){throw Error(D(321))}function Ga(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xt(e[n],t[n]))return!1;return!0}function Qa(e,t,n,u,r,o){if(Tn=o,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,mo.current=e===null||e.memoizedState===null?tm:nm,e=n(u,r),nr){o=0;do{if(nr=!1,yr=0,25<=o)throw Error(D(301));o+=1,ke=ge=null,t.updateQueue=null,mo.current=um,e=n(u,r)}while(nr)}if(mo.current=Uo,t=ge!==null&&ge.next!==null,Tn=0,ke=ge=ae=null,Bo=!1,t)throw Error(D(300));return e}function Za(){var e=yr!==0;return yr=0,e}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?ae.memoizedState=ke=e:ke=ke.next=e,ke}function lt(){if(ge===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=ke===null?ae.memoizedState:ke.next;if(t!==null)ke=t,ge=e;else{if(e===null)throw Error(D(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.queue,next:null},ke===null?ae.memoizedState=ke=e:ke=ke.next=e}return ke}function br(e,t){return typeof t=="function"?t(e):t}function Wi(e){var t=lt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var u=ge,r=u.baseQueue,o=n.pending;if(o!==null){if(r!==null){var i=r.next;r.next=o.next,o.next=i}u.baseQueue=r=o,n.pending=null}if(r!==null){o=r.next,u=u.baseState;var l=i=null,a=null,s=o;do{var d=s.lane;if((Tn&d)===d)a!==null&&(a=a.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),u=s.hasEagerState?s.eagerState:e(u,s.action);else{var h={lane:d,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};a===null?(l=a=h,i=u):a=a.next=h,ae.lanes|=d,Rn|=d}s=s.next}while(s!==null&&s!==o);a===null?i=u:a.next=l,xt(u,t.memoizedState)||(Oe=!0),t.memoizedState=u,t.baseState=i,t.baseQueue=a,n.lastRenderedState=u}if(e=n.interleaved,e!==null){r=e;do o=r.lane,ae.lanes|=o,Rn|=o,r=r.next;while(r!==e)}else r===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ki(e){var t=lt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var u=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var i=r=r.next;do o=e(o,i.action),i=i.next;while(i!==r);xt(o,t.memoizedState)||(Oe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,u]}function Yd(){}function Jd(e,t){var n=ae,u=lt(),r=t(),o=!xt(u.memoizedState,r);if(o&&(u.memoizedState=r,Oe=!0),u=u.queue,Ya(tf.bind(null,n,u,e),[e]),u.getSnapshot!==t||o||ke!==null&&ke.memoizedState.tag&1){if(n.flags|=2048,kr(9,ef.bind(null,n,u,r,t),void 0,null),_e===null)throw Error(D(349));Tn&30||Xd(n,t,r)}return r}function Xd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ae.updateQueue,t===null?(t={lastEffect:null,stores:null},ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ef(e,t,n,u){t.value=n,t.getSnapshot=u,nf(t)&&uf(e)}function tf(e,t,n){return n(function(){nf(t)&&uf(e)})}function nf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xt(e,n)}catch{return!0}}function uf(e){var t=qt(e,1);t!==null&&mt(t,e,1,-1)}function bc(e){var t=St();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:e},t.queue=e,e=e.dispatch=em.bind(null,ae,e),[t.memoizedState,e]}function kr(e,t,n,u){return e={tag:e,create:t,destroy:n,deps:u,next:null},t=ae.updateQueue,t===null?(t={lastEffect:null,stores:null},ae.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(u=n.next,n.next=e,e.next=u,t.lastEffect=e)),e}function rf(){return lt().memoizedState}function go(e,t,n,u){var r=St();ae.flags|=e,r.memoizedState=kr(1|t,n,void 0,u===void 0?null:u)}function li(e,t,n,u){var r=lt();u=u===void 0?null:u;var o=void 0;if(ge!==null){var i=ge.memoizedState;if(o=i.destroy,u!==null&&Ga(u,i.deps)){r.memoizedState=kr(t,n,o,u);return}}ae.flags|=e,r.memoizedState=kr(1|t,n,o,u)}function kc(e,t){return go(8390656,8,e,t)}function Ya(e,t){return li(2048,8,e,t)}function of(e,t){return li(4,2,e,t)}function lf(e,t){return li(4,4,e,t)}function af(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 sf(e,t,n){return n=n!=null?n.concat([e]):null,li(4,4,af.bind(null,t,e),n)}function Ja(){}function cf(e,t){var n=lt();t=t===void 0?null:t;var u=n.memoizedState;return u!==null&&t!==null&&Ga(t,u[1])?u[0]:(n.memoizedState=[e,t],e)}function df(e,t){var n=lt();t=t===void 0?null:t;var u=n.memoizedState;return u!==null&&t!==null&&Ga(t,u[1])?u[0]:(e=e(),n.memoizedState=[e,t],e)}function ff(e,t,n){return Tn&21?(xt(n,t)||(n=gd(),ae.lanes|=n,Rn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Oe=!0),e.memoizedState=n)}function J1(e,t){var n=Z;Z=n!==0&&4>n?n:4,e(!0);var u=qi.transition;qi.transition={};try{e(!1),t()}finally{Z=n,qi.transition=u}}function pf(){return lt().memoizedState}function X1(e,t,n){var u=gn(e);if(n={lane:u,action:n,hasEagerState:!1,eagerState:null,next:null},hf(e))mf(t,n);else if(n=Gd(e,t,n,u),n!==null){var r=Re();mt(n,e,u,r),gf(n,t,u)}}function em(e,t,n){var u=gn(e),r={lane:u,action:n,hasEagerState:!1,eagerState:null,next:null};if(hf(e))mf(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,l=o(i,n);if(r.hasEagerState=!0,r.eagerState=l,xt(l,i)){var a=t.interleaved;a===null?(r.next=r,Ha(t)):(r.next=a.next,a.next=r),t.interleaved=r;return}}catch{}finally{}n=Gd(e,t,r,u),n!==null&&(r=Re(),mt(n,e,u,r),gf(n,t,u))}}function hf(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function mf(e,t){nr=Bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gf(e,t,n){if(n&4194240){var u=t.lanes;u&=e.pendingLanes,n|=u,t.lanes=n,Fa(e,n)}}var Uo={readContext:it,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},tm={readContext:it,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:kc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,go(4194308,4,af.bind(null,t,e),n)},useLayoutEffect:function(e,t){return go(4194308,4,e,t)},useInsertionEffect:function(e,t){return go(4,2,e,t)},useMemo:function(e,t){var n=St();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var u=St();return t=n!==void 0?n(t):t,u.memoizedState=u.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},u.queue=e,e=e.dispatch=X1.bind(null,ae,e),[u.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:bc,useDebugValue:Ja,useDeferredValue:function(e){return St().memoizedState=e},useTransition:function(){var e=bc(!1),t=e[0];return e=J1.bind(null,e[1]),St().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var u=ae,r=St();if(oe){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),_e===null)throw Error(D(349));Tn&30||Xd(u,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,kc(tf.bind(null,u,o,e),[e]),u.flags|=2048,kr(9,ef.bind(null,u,o,n,t),void 0,null),n},useId:function(){var e=St(),t=_e.identifierPrefix;if(oe){var n=Bt,u=$t;n=(u&~(1<<32-ht(u)-1)).toString(32)+n,t=":"+t+"R"+n,n=yr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Y1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},nm={readContext:it,useCallback:cf,useContext:it,useEffect:Ya,useImperativeHandle:sf,useInsertionEffect:of,useLayoutEffect:lf,useMemo:df,useReducer:Wi,useRef:rf,useState:function(){return Wi(br)},useDebugValue:Ja,useDeferredValue:function(e){var t=lt();return ff(t,ge.memoizedState,e)},useTransition:function(){var e=Wi(br)[0],t=lt().memoizedState;return[e,t]},useMutableSource:Yd,useSyncExternalStore:Jd,useId:pf,unstable_isNewReconciler:!1},um={readContext:it,useCallback:cf,useContext:it,useEffect:Ya,useImperativeHandle:sf,useInsertionEffect:of,useLayoutEffect:lf,useMemo:df,useReducer:Ki,useRef:rf,useState:function(){return Ki(br)},useDebugValue:Ja,useDeferredValue:function(e){var t=lt();return ge===null?t.memoizedState=e:ff(t,ge.memoizedState,e)},useTransition:function(){var e=Ki(br)[0],t=lt().memoizedState;return[e,t]},useMutableSource:Yd,useSyncExternalStore:Jd,useId:pf,unstable_isNewReconciler:!1};function dt(e,t){if(e&&e.defaultProps){t=se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Hl(e,t,n,u){t=e.memoizedState,n=n(u,t),n=n==null?t:se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ai={isMounted:function(e){return(e=e._reactInternals)?In(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var u=Re(),r=gn(e),o=Ut(u,r);o.payload=t,n!=null&&(o.callback=n),t=hn(e,o,r),t!==null&&(mt(t,e,r,u),ho(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var u=Re(),r=gn(e),o=Ut(u,r);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=hn(e,o,r),t!==null&&(mt(t,e,r,u),ho(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Re(),u=gn(e),r=Ut(n,u);r.tag=2,t!=null&&(r.callback=t),t=hn(e,r,u),t!==null&&(mt(t,e,u,n),ho(t,e,u))}};function wc(e,t,n,u,r,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,o,i):t.prototype&&t.prototype.isPureReactComponent?!pr(n,u)||!pr(r,o):!0}function xf(e,t,n){var u=!1,r=yn,o=t.contextType;return typeof o=="object"&&o!==null?o=it(o):(r=Be(t)?jn:De.current,u=t.contextTypes,o=(u=u!=null)?cu(e,r):yn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ai,e.stateNode=t,t._reactInternals=e,u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function _c(e,t,n,u){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,u),t.state!==e&&ai.enqueueReplaceState(t,t.state,null)}function Vl(e,t,n,u){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},Va(e);var o=t.contextType;typeof o=="object"&&o!==null?r.context=it(o):(o=Be(t)?jn:De.current,r.context=cu(e,o)),r.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Hl(e,t,o,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(t=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),t!==r.state&&ai.enqueueReplaceState(r,r.state,null),Oo(e,n,r,u),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308)}function hu(e,t){try{var n="",u=t;do n+=jh(u),u=u.return;while(u);var r=n}catch(o){r=`
|
||
Error generating stack: `+o.message+`
|
||
`+o.stack}return{value:e,source:t,stack:r,digest:null}}function Gi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ql(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rm=typeof WeakMap=="function"?WeakMap:Map;function vf(e,t,n){n=Ut(-1,n),n.tag=3,n.payload={element:null};var u=t.value;return n.callback=function(){Vo||(Vo=!0,ta=u),ql(e,t)},n}function yf(e,t,n){n=Ut(-1,n),n.tag=3;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var r=t.value;n.payload=function(){return u(r)},n.callback=function(){ql(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ql(e,t),typeof u!="function"&&(mn===null?mn=new Set([this]):mn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Cc(e,t,n){var u=e.pingCache;if(u===null){u=e.pingCache=new rm;var r=new Set;u.set(t,r)}else r=u.get(t),r===void 0&&(r=new Set,u.set(t,r));r.has(n)||(r.add(n),e=vm.bind(null,e,t,n),t.then(e,e))}function Ec(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 Sc(e,t,n,u,r){return e.mode&1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ut(-1,1),t.tag=2,hn(n,t,1))),n.lanes|=1),e)}var om=Gt.ReactCurrentOwner,Oe=!1;function Te(e,t,n,u){t.child=e===null?Kd(t,null,n,u):fu(t,e.child,n,u)}function Ac(e,t,n,u,r){n=n.render;var o=t.ref;return ou(t,r),u=Qa(e,t,n,u,o,r),n=Za(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Wt(e,t,r)):(oe&&n&&La(t),t.flags|=1,Te(e,t,u,r),t.child)}function zc(e,t,n,u,r){if(e===null){var o=n.type;return typeof o=="function"&&!is(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,bf(e,t,o,u,r)):(e=bo(n.type,null,u,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&r)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:pr,n(i,u)&&e.ref===t.ref)return Wt(e,t,r)}return t.flags|=1,e=xn(o,u),e.ref=t.ref,e.return=t,t.child=e}function bf(e,t,n,u,r){if(e!==null){var o=e.memoizedProps;if(pr(o,u)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=u=o,(e.lanes&r)!==0)e.flags&131072&&(Oe=!0);else return t.lanes=e.lanes,Wt(e,t,r)}return Wl(e,t,n,u,r)}function kf(e,t,n){var u=t.pendingProps,r=u.children,o=e!==null?e.memoizedState:null;if(u.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},J(eu,We),We|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,J(eu,We),We|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=o!==null?o.baseLanes:n,J(eu,We),We|=u}else o!==null?(u=o.baseLanes|n,t.memoizedState=null):u=n,J(eu,We),We|=u;return Te(e,t,r,n),t.child}function wf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wl(e,t,n,u,r){var o=Be(n)?jn:De.current;return o=cu(t,o),ou(t,r),n=Qa(e,t,n,u,o,r),u=Za(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Wt(e,t,r)):(oe&&u&&La(t),t.flags|=1,Te(e,t,n,r),t.child)}function Fc(e,t,n,u,r){if(Be(n)){var o=!0;Ro(t)}else o=!1;if(ou(t,r),t.stateNode===null)xo(e,t),xf(t,n,u),Vl(t,n,u,r),u=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,s=n.contextType;typeof s=="object"&&s!==null?s=it(s):(s=Be(n)?jn:De.current,s=cu(t,s));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==u||a!==s)&&_c(t,i,u,s),tn=!1;var m=t.memoizedState;i.state=m,Oo(t,u,i,r),a=t.memoizedState,l!==u||m!==a||$e.current||tn?(typeof d=="function"&&(Hl(t,n,d,u),a=t.memoizedState),(l=tn||wc(t,n,l,u,m,a,s))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=u,t.memoizedState=a),i.props=u,i.state=a,i.context=s,u=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),u=!1)}else{i=t.stateNode,Qd(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:dt(t.type,l),i.props=s,h=t.pendingProps,m=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=it(a):(a=Be(n)?jn:De.current,a=cu(t,a));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==h||m!==a)&&_c(t,i,u,a),tn=!1,m=t.memoizedState,i.state=m,Oo(t,u,i,r);var x=t.memoizedState;l!==h||m!==x||$e.current||tn?(typeof v=="function"&&(Hl(t,n,v,u),x=t.memoizedState),(s=tn||wc(t,n,s,u,m,x,a)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(u,x,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(u,x,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=u,t.memoizedState=x),i.props=u,i.state=x,i.context=a,u=s):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),u=!1)}return Kl(e,t,n,u,o,r)}function Kl(e,t,n,u,r,o){wf(e,t);var i=(t.flags&128)!==0;if(!u&&!i)return r&&hc(t,n,!1),Wt(e,t,o);u=t.stateNode,om.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:u.render();return t.flags|=1,e!==null&&i?(t.child=fu(t,e.child,null,o),t.child=fu(t,null,l,o)):Te(e,t,l,o),t.memoizedState=u.state,r&&hc(t,n,!0),t.child}function _f(e){var t=e.stateNode;t.pendingContext?pc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pc(e,t.context,!1),qa(e,t.containerInfo)}function Dc(e,t,n,u,r){return du(),Oa(r),t.flags|=256,Te(e,t,n,u),t.child}var Gl={dehydrated:null,treeContext:null,retryLane:0};function Ql(e){return{baseLanes:e,cachePool:null,transitions:null}}function Cf(e,t,n){var u=t.pendingProps,r=le.current,o=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(r&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r|=1),J(le,r&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):(i=u.children,e=u.fallback,o?(u=t.mode,o=t.child,i={mode:"hidden",children:i},!(u&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=di(i,u,0,null),e=Dn(e,u,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ql(n),t.memoizedState=Gl,e):Xa(t,i));if(r=e.memoizedState,r!==null&&(l=r.dehydrated,l!==null))return im(e,t,i,u,l,r,n);if(o){o=u.fallback,i=t.mode,r=e.child,l=r.sibling;var a={mode:"hidden",children:u.children};return!(i&1)&&t.child!==r?(u=t.child,u.childLanes=0,u.pendingProps=a,t.deletions=null):(u=xn(r,a),u.subtreeFlags=r.subtreeFlags&14680064),l!==null?o=xn(l,o):(o=Dn(o,i,n,null),o.flags|=2),o.return=t,u.return=t,u.sibling=o,t.child=u,u=o,o=t.child,i=e.child.memoizedState,i=i===null?Ql(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Gl,u}return o=e.child,e=o.sibling,u=xn(o,{mode:"visible",children:u.children}),!(t.mode&1)&&(u.lanes=n),u.return=t,u.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=u,t.memoizedState=null,u}function Xa(e,t){return t=di({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eo(e,t,n,u){return u!==null&&Oa(u),fu(t,e.child,null,n),e=Xa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function im(e,t,n,u,r,o,i){if(n)return t.flags&256?(t.flags&=-257,u=Gi(Error(D(422))),eo(e,t,i,u)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=u.fallback,r=t.mode,u=di({mode:"visible",children:u.children},r,0,null),o=Dn(o,r,i,null),o.flags|=2,u.return=t,o.return=t,u.sibling=o,t.child=u,t.mode&1&&fu(t,e.child,null,i),t.child.memoizedState=Ql(i),t.memoizedState=Gl,o);if(!(t.mode&1))return eo(e,t,i,null);if(r.data==="$!"){if(u=r.nextSibling&&r.nextSibling.dataset,u)var l=u.dgst;return u=l,o=Error(D(419)),u=Gi(o,u,void 0),eo(e,t,i,u)}if(l=(i&e.childLanes)!==0,Oe||l){if(u=_e,u!==null){switch(i&-i){case 4:r=2;break;case 16:r=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:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(u.suspendedLanes|i)?0:r,r!==0&&r!==o.retryLane&&(o.retryLane=r,qt(e,r),mt(u,e,r,-1))}return os(),u=Gi(Error(D(421))),eo(e,t,i,u)}return r.data==="$?"?(t.flags|=128,t.child=e.child,t=ym.bind(null,e),r._reactRetry=t,null):(e=o.treeContext,Ke=pn(r.nextSibling),Ge=t,oe=!0,pt=null,e!==null&&(tt[nt++]=$t,tt[nt++]=Bt,tt[nt++]=Nn,$t=e.id,Bt=e.overflow,Nn=t),t=Xa(t,u.children),t.flags|=4096,t)}function jc(e,t,n){e.lanes|=t;var u=e.alternate;u!==null&&(u.lanes|=t),Ul(e.return,t,n)}function Qi(e,t,n,u,r){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:n,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=u,o.tail=n,o.tailMode=r)}function Ef(e,t,n){var u=t.pendingProps,r=u.revealOrder,o=u.tail;if(Te(e,t,u.children,n),u=le.current,u&2)u=u&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&&jc(e,n,t);else if(e.tag===19)jc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}if(J(le,u),!(t.mode&1))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&$o(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Qi(t,!1,r,n,o);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&$o(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Qi(t,!0,n,null,o);break;case"together":Qi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Rn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function lm(e,t,n){switch(t.tag){case 3:_f(t),du();break;case 5:Zd(t);break;case 1:Be(t.type)&&Ro(t);break;case 4:qa(t,t.stateNode.containerInfo);break;case 10:var u=t.type._context,r=t.memoizedProps.value;J(Lo,u._currentValue),u._currentValue=r;break;case 13:if(u=t.memoizedState,u!==null)return u.dehydrated!==null?(J(le,le.current&1),t.flags|=128,null):n&t.child.childLanes?Cf(e,t,n):(J(le,le.current&1),e=Wt(e,t,n),e!==null?e.sibling:null);J(le,le.current&1);break;case 19:if(u=(n&t.childLanes)!==0,e.flags&128){if(u)return Ef(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),J(le,le.current),u)break;return null;case 22:case 23:return t.lanes=0,kf(e,t,n)}return Wt(e,t,n)}var Sf,Zl,Af,zf;Sf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Zl=function(){};Af=function(e,t,n,u){var r=e.memoizedProps;if(r!==u){e=t.stateNode,zn(Nt.current);var o=null;switch(n){case"input":r=vl(e,r),u=vl(e,u),o=[];break;case"select":r=se({},r,{value:void 0}),u=se({},u,{value:void 0}),o=[];break;case"textarea":r=kl(e,r),u=kl(e,u),o=[];break;default:typeof r.onClick!="function"&&typeof u.onClick=="function"&&(e.onclick=No)}_l(n,u);var i;n=null;for(s in r)if(!u.hasOwnProperty(s)&&r.hasOwnProperty(s)&&r[s]!=null)if(s==="style"){var l=r[s];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ir.hasOwnProperty(s)?o||(o=[]):(o=o||[]).push(s,null));for(s in u){var a=u[s];if(l=r!=null?r[s]:void 0,u.hasOwnProperty(s)&&a!==l&&(a!=null||l!=null))if(s==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(o||(o=[]),o.push(s,n)),n=a;else s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(s,a)):s==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(s,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(ir.hasOwnProperty(s)?(a!=null&&s==="onScroll"&&te("scroll",e),o||l===a||(o=[])):(o=o||[]).push(s,a))}n&&(o=o||[]).push("style",n);var s=o;(t.updateQueue=s)&&(t.flags|=4)}};zf=function(e,t,n,u){n!==u&&(t.flags|=4)};function $u(e,t){if(!oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var u=null;n!==null;)n.alternate!==null&&(u=n),n=n.sibling;u===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,u=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,u|=r.subtreeFlags&14680064,u|=r.flags&14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,u|=r.subtreeFlags,u|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=u,e.childLanes=n,t}function am(e,t,n){var u=t.pendingProps;switch(Ia(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return Be(t.type)&&To(),ze(t),null;case 3:return u=t.stateNode,pu(),ne($e),ne(De),Ka(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(Jr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pt!==null&&(ra(pt),pt=null))),Zl(e,t),ze(t),null;case 5:Wa(t);var r=zn(vr.current);if(n=t.type,e!==null&&t.stateNode!=null)Af(e,t,n,u,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!u){if(t.stateNode===null)throw Error(D(166));return ze(t),null}if(e=zn(Nt.current),Jr(t)){u=t.stateNode,n=t.type;var o=t.memoizedProps;switch(u[At]=t,u[gr]=o,e=(t.mode&1)!==0,n){case"dialog":te("cancel",u),te("close",u);break;case"iframe":case"object":case"embed":te("load",u);break;case"video":case"audio":for(r=0;r<Zu.length;r++)te(Zu[r],u);break;case"source":te("error",u);break;case"img":case"image":case"link":te("error",u),te("load",u);break;case"details":te("toggle",u);break;case"input":$s(u,o),te("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!o.multiple},te("invalid",u);break;case"textarea":Us(u,o),te("invalid",u)}_l(n,o),r=null;for(var i in o)if(o.hasOwnProperty(i)){var l=o[i];i==="children"?typeof l=="string"?u.textContent!==l&&(o.suppressHydrationWarning!==!0&&Yr(u.textContent,l,e),r=["children",l]):typeof l=="number"&&u.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Yr(u.textContent,l,e),r=["children",""+l]):ir.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&te("scroll",u)}switch(n){case"input":Hr(u),Bs(u,o,!0);break;case"textarea":Hr(u),Hs(u);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(u.onclick=No)}u=r,t.updateQueue=u,u!==null&&(t.flags|=4)}else{i=r.nodeType===9?r:r.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=td(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof u.is=="string"?e=i.createElement(n,{is:u.is}):(e=i.createElement(n),n==="select"&&(i=e,u.multiple?i.multiple=!0:u.size&&(i.size=u.size))):e=i.createElementNS(e,n),e[At]=t,e[gr]=u,Sf(e,t,!1,!1),t.stateNode=e;e:{switch(i=Cl(n,u),n){case"dialog":te("cancel",e),te("close",e),r=u;break;case"iframe":case"object":case"embed":te("load",e),r=u;break;case"video":case"audio":for(r=0;r<Zu.length;r++)te(Zu[r],e);r=u;break;case"source":te("error",e),r=u;break;case"img":case"image":case"link":te("error",e),te("load",e),r=u;break;case"details":te("toggle",e),r=u;break;case"input":$s(e,u),r=vl(e,u),te("invalid",e);break;case"option":r=u;break;case"select":e._wrapperState={wasMultiple:!!u.multiple},r=se({},u,{value:void 0}),te("invalid",e);break;case"textarea":Us(e,u),r=kl(e,u),te("invalid",e);break;default:r=u}_l(n,r),l=r;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?rd(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&nd(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&lr(e,a):typeof a=="number"&&lr(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ir.hasOwnProperty(o)?a!=null&&o==="onScroll"&&te("scroll",e):a!=null&&_a(e,o,a,i))}switch(n){case"input":Hr(e),Bs(e,u,!1);break;case"textarea":Hr(e),Hs(e);break;case"option":u.value!=null&&e.setAttribute("value",""+vn(u.value));break;case"select":e.multiple=!!u.multiple,o=u.value,o!=null?tu(e,!!u.multiple,o,!1):u.defaultValue!=null&&tu(e,!!u.multiple,u.defaultValue,!0);break;default:typeof r.onClick=="function"&&(e.onclick=No)}switch(n){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ze(t),null;case 6:if(e&&t.stateNode!=null)zf(e,t,e.memoizedProps,u);else{if(typeof u!="string"&&t.stateNode===null)throw Error(D(166));if(n=zn(vr.current),zn(Nt.current),Jr(t)){if(u=t.stateNode,n=t.memoizedProps,u[At]=t,(o=u.nodeValue!==n)&&(e=Ge,e!==null))switch(e.tag){case 3:Yr(u.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Yr(u.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else u=(n.nodeType===9?n:n.ownerDocument).createTextNode(u),u[At]=t,t.stateNode=u}return ze(t),null;case 13:if(ne(le),u=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(oe&&Ke!==null&&t.mode&1&&!(t.flags&128))qd(),du(),t.flags|=98560,o=!1;else if(o=Jr(t),u!==null&&u.dehydrated!==null){if(e===null){if(!o)throw Error(D(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(D(317));o[At]=t}else du(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),o=!1}else pt!==null&&(ra(pt),pt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(u=u!==null,u!==(e!==null&&e.memoizedState!==null)&&u&&(t.child.flags|=8192,t.mode&1&&(e===null||le.current&1?xe===0&&(xe=3):os())),t.updateQueue!==null&&(t.flags|=4),ze(t),null);case 4:return pu(),Zl(e,t),e===null&&hr(t.stateNode.containerInfo),ze(t),null;case 10:return Ua(t.type._context),ze(t),null;case 17:return Be(t.type)&&To(),ze(t),null;case 19:if(ne(le),o=t.memoizedState,o===null)return ze(t),null;if(u=(t.flags&128)!==0,i=o.rendering,i===null)if(u)$u(o,!1);else{if(xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=$o(e),i!==null){for(t.flags|=128,$u(o,!1),u=i.updateQueue,u!==null&&(t.updateQueue=u,t.flags|=4),t.subtreeFlags=0,u=n,n=t.child;n!==null;)o=n,e=u,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return J(le,le.current&1|2),t.child}e=e.sibling}o.tail!==null&&de()>mu&&(t.flags|=128,u=!0,$u(o,!1),t.lanes=4194304)}else{if(!u)if(e=$o(i),e!==null){if(t.flags|=128,u=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$u(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!oe)return ze(t),null}else 2*de()-o.renderingStartTime>mu&&n!==1073741824&&(t.flags|=128,u=!0,$u(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=de(),t.sibling=null,n=le.current,J(le,u?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return rs(),u=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==u&&(t.flags|=8192),u&&t.mode&1?We&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function sm(e,t){switch(Ia(t),t.tag){case 1:return Be(t.type)&&To(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pu(),ne($e),ne(De),Ka(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wa(t),null;case 13:if(ne(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));du()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(le),null;case 4:return pu(),null;case 10:return Ua(t.type._context),null;case 22:case 23:return rs(),null;case 24:return null;default:return null}}var to=!1,Fe=!1,cm=typeof WeakSet=="function"?WeakSet:Set,R=null;function Xn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(u){ce(e,t,u)}else n.current=null}function Yl(e,t,n){try{n()}catch(u){ce(e,t,u)}}var Nc=!1;function dm(e,t){if(Rl=Fo,e=Nd(),Ma(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var u=n.getSelection&&n.getSelection();if(u&&u.rangeCount!==0){n=u.anchorNode;var r=u.anchorOffset,o=u.focusNode;u=u.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,l=-1,a=-1,s=0,d=0,h=e,m=null;t:for(;;){for(var v;h!==n||r!==0&&h.nodeType!==3||(l=i+r),h!==o||u!==0&&h.nodeType!==3||(a=i+u),h.nodeType===3&&(i+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++s===r&&(l=i),m===o&&++d===u&&(a=i),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pl={focusedElem:e,selectionRange:n},Fo=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var _=x.memoizedProps,C=x.memoizedState,g=t.stateNode,f=g.getSnapshotBeforeUpdate(t.elementType===t.type?_:dt(t.type,_),C);g.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(y){ce(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return x=Nc,Nc=!1,x}function ur(e,t,n){var u=t.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var r=u=u.next;do{if((r.tag&e)===e){var o=r.destroy;r.destroy=void 0,o!==void 0&&Yl(t,n,o)}r=r.next}while(r!==u)}}function si(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var u=n.create;n.destroy=u()}n=n.next}while(n!==t)}}function Jl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ff(e){var t=e.alternate;t!==null&&(e.alternate=null,Ff(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[At],delete t[gr],delete t[Il],delete t[K1],delete t[G1])),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 Df(e){return e.tag===5||e.tag===3||e.tag===4}function Tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Df(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 Xl(e,t,n){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=No));else if(u!==4&&(e=e.child,e!==null))for(Xl(e,t,n),e=e.sibling;e!==null;)Xl(e,t,n),e=e.sibling}function ea(e,t,n){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(u!==4&&(e=e.child,e!==null))for(ea(e,t,n),e=e.sibling;e!==null;)ea(e,t,n),e=e.sibling}var Ce=null,ft=!1;function Zt(e,t,n){for(n=n.child;n!==null;)jf(e,t,n),n=n.sibling}function jf(e,t,n){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(ti,n)}catch{}switch(n.tag){case 5:Fe||Xn(n,t);case 6:var u=Ce,r=ft;Ce=null,Zt(e,t,n),Ce=u,ft=r,Ce!==null&&(ft?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(ft?(e=Ce,n=n.stateNode,e.nodeType===8?Ui(e.parentNode,n):e.nodeType===1&&Ui(e,n),dr(e)):Ui(Ce,n.stateNode));break;case 4:u=Ce,r=ft,Ce=n.stateNode.containerInfo,ft=!0,Zt(e,t,n),Ce=u,ft=r;break;case 0:case 11:case 14:case 15:if(!Fe&&(u=n.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){r=u=u.next;do{var o=r,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Yl(n,t,i),r=r.next}while(r!==u)}Zt(e,t,n);break;case 1:if(!Fe&&(Xn(n,t),u=n.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=n.memoizedProps,u.state=n.memoizedState,u.componentWillUnmount()}catch(l){ce(n,t,l)}Zt(e,t,n);break;case 21:Zt(e,t,n);break;case 22:n.mode&1?(Fe=(u=Fe)||n.memoizedState!==null,Zt(e,t,n),Fe=u):Zt(e,t,n);break;default:Zt(e,t,n)}}function Rc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cm),t.forEach(function(u){var r=bm.bind(null,e,u);n.has(u)||(n.add(u),u.then(r,r))})}}function ct(e,t){var n=t.deletions;if(n!==null)for(var u=0;u<n.length;u++){var r=n[u];try{var o=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:Ce=l.stateNode,ft=!1;break e;case 3:Ce=l.stateNode.containerInfo,ft=!0;break e;case 4:Ce=l.stateNode.containerInfo,ft=!0;break e}l=l.return}if(Ce===null)throw Error(D(160));jf(o,i,r),Ce=null,ft=!1;var a=r.alternate;a!==null&&(a.return=null),r.return=null}catch(s){ce(r,t,s)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Nf(t,e),t=t.sibling}function Nf(e,t){var n=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ct(t,e),Et(e),u&4){try{ur(3,e,e.return),si(3,e)}catch(_){ce(e,e.return,_)}try{ur(5,e,e.return)}catch(_){ce(e,e.return,_)}}break;case 1:ct(t,e),Et(e),u&512&&n!==null&&Xn(n,n.return);break;case 5:if(ct(t,e),Et(e),u&512&&n!==null&&Xn(n,n.return),e.flags&32){var r=e.stateNode;try{lr(r,"")}catch(_){ce(e,e.return,_)}}if(u&4&&(r=e.stateNode,r!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&X0(r,o),Cl(l,i);var s=Cl(l,o);for(i=0;i<a.length;i+=2){var d=a[i],h=a[i+1];d==="style"?rd(r,h):d==="dangerouslySetInnerHTML"?nd(r,h):d==="children"?lr(r,h):_a(r,d,h,s)}switch(l){case"input":yl(r,o);break;case"textarea":ed(r,o);break;case"select":var m=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?tu(r,!!o.multiple,v,!1):m!==!!o.multiple&&(o.defaultValue!=null?tu(r,!!o.multiple,o.defaultValue,!0):tu(r,!!o.multiple,o.multiple?[]:"",!1))}r[gr]=o}catch(_){ce(e,e.return,_)}}break;case 6:if(ct(t,e),Et(e),u&4){if(e.stateNode===null)throw Error(D(162));r=e.stateNode,o=e.memoizedProps;try{r.nodeValue=o}catch(_){ce(e,e.return,_)}}break;case 3:if(ct(t,e),Et(e),u&4&&n!==null&&n.memoizedState.isDehydrated)try{dr(t.containerInfo)}catch(_){ce(e,e.return,_)}break;case 4:ct(t,e),Et(e);break;case 13:ct(t,e),Et(e),r=e.child,r.flags&8192&&(o=r.memoizedState!==null,r.stateNode.isHidden=o,!o||r.alternate!==null&&r.alternate.memoizedState!==null||(ns=de())),u&4&&Rc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Fe=(s=Fe)||d,ct(t,e),Fe=s):ct(t,e),Et(e),u&8192){if(s=e.memoizedState!==null,(e.stateNode.isHidden=s)&&!d&&e.mode&1)for(R=e,d=e.child;d!==null;){for(h=R=d;R!==null;){switch(m=R,v=m.child,m.tag){case 0:case 11:case 14:case 15:ur(4,m,m.return);break;case 1:Xn(m,m.return);var x=m.stateNode;if(typeof x.componentWillUnmount=="function"){u=m,n=m.return;try{t=u,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(_){ce(u,n,_)}}break;case 5:Xn(m,m.return);break;case 22:if(m.memoizedState!==null){Mc(h);continue}}v!==null?(v.return=m,R=v):Mc(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{r=h.stateNode,s?(o=r.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=h.stateNode,a=h.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=ud("display",i))}catch(_){ce(e,e.return,_)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=s?"":h.memoizedProps}catch(_){ce(e,e.return,_)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ct(t,e),Et(e),u&4&&Rc(e);break;case 21:break;default:ct(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Df(n)){var u=n;break e}n=n.return}throw Error(D(160))}switch(u.tag){case 5:var r=u.stateNode;u.flags&32&&(lr(r,""),u.flags&=-33);var o=Tc(e);ea(e,o,r);break;case 3:case 4:var i=u.stateNode.containerInfo,l=Tc(e);Xl(e,l,i);break;default:throw Error(D(161))}}catch(a){ce(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fm(e,t,n){R=e,Tf(e)}function Tf(e,t,n){for(var u=(e.mode&1)!==0;R!==null;){var r=R,o=r.child;if(r.tag===22&&u){var i=r.memoizedState!==null||to;if(!i){var l=r.alternate,a=l!==null&&l.memoizedState!==null||Fe;l=to;var s=Fe;if(to=i,(Fe=a)&&!s)for(R=r;R!==null;)i=R,a=i.child,i.tag===22&&i.memoizedState!==null?Lc(r):a!==null?(a.return=i,R=a):Lc(r);for(;o!==null;)R=o,Tf(o),o=o.sibling;R=r,to=l,Fe=s}Pc(e)}else r.subtreeFlags&8772&&o!==null?(o.return=r,R=o):Pc(e)}}function Pc(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Fe||si(5,t);break;case 1:var u=t.stateNode;if(t.flags&4&&!Fe)if(n===null)u.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:dt(t.type,n.memoizedProps);u.componentDidUpdate(r,n.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&yc(t,o,u);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}yc(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var s=t.alternate;if(s!==null){var d=s.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&dr(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}Fe||t.flags&512&&Jl(t)}catch(m){ce(t,t.return,m)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function Mc(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function Lc(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{si(4,t)}catch(a){ce(t,n,a)}break;case 1:var u=t.stateNode;if(typeof u.componentDidMount=="function"){var r=t.return;try{u.componentDidMount()}catch(a){ce(t,r,a)}}var o=t.return;try{Jl(t)}catch(a){ce(t,o,a)}break;case 5:var i=t.return;try{Jl(t)}catch(a){ce(t,i,a)}}}catch(a){ce(t,t.return,a)}if(t===e){R=null;break}var l=t.sibling;if(l!==null){l.return=t.return,R=l;break}R=t.return}}var pm=Math.ceil,Ho=Gt.ReactCurrentDispatcher,es=Gt.ReactCurrentOwner,rt=Gt.ReactCurrentBatchConfig,K=0,_e=null,me=null,Ee=0,We=0,eu=wn(0),xe=0,wr=null,Rn=0,ci=0,ts=0,rr=null,Ie=null,ns=0,mu=1/0,It=null,Vo=!1,ta=null,mn=null,no=!1,an=null,qo=0,or=0,na=null,vo=-1,yo=0;function Re(){return K&6?de():vo!==-1?vo:vo=de()}function gn(e){return e.mode&1?K&2&&Ee!==0?Ee&-Ee:Z1.transition!==null?(yo===0&&(yo=gd()),yo):(e=Z,e!==0||(e=window.event,e=e===void 0?16:_d(e.type)),e):1}function mt(e,t,n,u){if(50<or)throw or=0,na=null,Error(D(185));Fr(e,n,u),(!(K&2)||e!==_e)&&(e===_e&&(!(K&2)&&(ci|=n),xe===4&&rn(e,Ee)),Ue(e,u),n===1&&K===0&&!(t.mode&1)&&(mu=de()+500,ii&&_n()))}function Ue(e,t){var n=e.callbackNode;Zh(e,t);var u=zo(e,e===_e?Ee:0);if(u===0)n!==null&&Ws(n),e.callbackNode=null,e.callbackPriority=0;else if(t=u&-u,e.callbackPriority!==t){if(n!=null&&Ws(n),t===1)e.tag===0?Q1(Ic.bind(null,e)):Ud(Ic.bind(null,e)),q1(function(){!(K&6)&&_n()}),n=null;else{switch(xd(u)){case 1:n=za;break;case 4:n=hd;break;case 16:n=Ao;break;case 536870912:n=md;break;default:n=Ao}n=Bf(n,Rf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Rf(e,t){if(vo=-1,yo=0,K&6)throw Error(D(327));var n=e.callbackNode;if(iu()&&e.callbackNode!==n)return null;var u=zo(e,e===_e?Ee:0);if(u===0)return null;if(u&30||u&e.expiredLanes||t)t=Wo(e,u);else{t=u;var r=K;K|=2;var o=Mf();(_e!==e||Ee!==t)&&(It=null,mu=de()+500,Fn(e,t));do try{gm();break}catch(l){Pf(e,l)}while(!0);Ba(),Ho.current=o,K=r,me!==null?t=0:(_e=null,Ee=0,t=xe)}if(t!==0){if(t===2&&(r=Fl(e),r!==0&&(u=r,t=ua(e,r))),t===1)throw n=wr,Fn(e,0),rn(e,u),Ue(e,de()),n;if(t===6)rn(e,u);else{if(r=e.current.alternate,!(u&30)&&!hm(r)&&(t=Wo(e,u),t===2&&(o=Fl(e),o!==0&&(u=o,t=ua(e,o))),t===1))throw n=wr,Fn(e,0),rn(e,u),Ue(e,de()),n;switch(e.finishedWork=r,e.finishedLanes=u,t){case 0:case 1:throw Error(D(345));case 2:En(e,Ie,It);break;case 3:if(rn(e,u),(u&130023424)===u&&(t=ns+500-de(),10<t)){if(zo(e,0)!==0)break;if(r=e.suspendedLanes,(r&u)!==u){Re(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=Ll(En.bind(null,e,Ie,It),t);break}En(e,Ie,It);break;case 4:if(rn(e,u),(u&4194240)===u)break;for(t=e.eventTimes,r=-1;0<u;){var i=31-ht(u);o=1<<i,i=t[i],i>r&&(r=i),u&=~o}if(u=r,u=de()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*pm(u/1960))-u,10<u){e.timeoutHandle=Ll(En.bind(null,e,Ie,It),u);break}En(e,Ie,It);break;case 5:En(e,Ie,It);break;default:throw Error(D(329))}}}return Ue(e,de()),e.callbackNode===n?Rf.bind(null,e):null}function ua(e,t){var n=rr;return e.current.memoizedState.isDehydrated&&(Fn(e,t).flags|=256),e=Wo(e,t),e!==2&&(t=Ie,Ie=n,t!==null&&ra(t)),e}function ra(e){Ie===null?Ie=e:Ie.push.apply(Ie,e)}function hm(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var u=0;u<n.length;u++){var r=n[u],o=r.getSnapshot;r=r.value;try{if(!xt(o(),r))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rn(e,t){for(t&=~ts,t&=~ci,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ht(t),u=1<<n;e[n]=-1,t&=~u}}function Ic(e){if(K&6)throw Error(D(327));iu();var t=zo(e,0);if(!(t&1))return Ue(e,de()),null;var n=Wo(e,t);if(e.tag!==0&&n===2){var u=Fl(e);u!==0&&(t=u,n=ua(e,u))}if(n===1)throw n=wr,Fn(e,0),rn(e,t),Ue(e,de()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,En(e,Ie,It),Ue(e,de()),null}function us(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(mu=de()+500,ii&&_n())}}function Pn(e){an!==null&&an.tag===0&&!(K&6)&&iu();var t=K;K|=1;var n=rt.transition,u=Z;try{if(rt.transition=null,Z=1,e)return e()}finally{Z=u,rt.transition=n,K=t,!(K&6)&&_n()}}function rs(){We=eu.current,ne(eu)}function Fn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,V1(n)),me!==null)for(n=me.return;n!==null;){var u=n;switch(Ia(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&To();break;case 3:pu(),ne($e),ne(De),Ka();break;case 5:Wa(u);break;case 4:pu();break;case 13:ne(le);break;case 19:ne(le);break;case 10:Ua(u.type._context);break;case 22:case 23:rs()}n=n.return}if(_e=e,me=e=xn(e.current,null),Ee=We=t,xe=0,wr=null,ts=ci=Rn=0,Ie=rr=null,An!==null){for(t=0;t<An.length;t++)if(n=An[t],u=n.interleaved,u!==null){n.interleaved=null;var r=u.next,o=n.pending;if(o!==null){var i=o.next;o.next=r,u.next=i}n.pending=u}An=null}return e}function Pf(e,t){do{var n=me;try{if(Ba(),mo.current=Uo,Bo){for(var u=ae.memoizedState;u!==null;){var r=u.queue;r!==null&&(r.pending=null),u=u.next}Bo=!1}if(Tn=0,ke=ge=ae=null,nr=!1,yr=0,es.current=null,n===null||n.return===null){xe=1,wr=t,me=null;break}e:{var o=e,i=n.return,l=n,a=t;if(t=Ee,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var s=a,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=Ec(i);if(v!==null){v.flags&=-257,Sc(v,i,l,o,t),v.mode&1&&Cc(o,s,t),t=v,a=s;var x=t.updateQueue;if(x===null){var _=new Set;_.add(a),t.updateQueue=_}else x.add(a);break e}else{if(!(t&1)){Cc(o,s,t),os();break e}a=Error(D(426))}}else if(oe&&l.mode&1){var C=Ec(i);if(C!==null){!(C.flags&65536)&&(C.flags|=256),Sc(C,i,l,o,t),Oa(hu(a,l));break e}}o=a=hu(a,l),xe!==4&&(xe=2),rr===null?rr=[o]:rr.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=vf(o,a,t);vc(o,g);break e;case 1:l=a;var f=o.type,p=o.stateNode;if(!(o.flags&128)&&(typeof f.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(mn===null||!mn.has(p)))){o.flags|=65536,t&=-t,o.lanes|=t;var y=yf(o,l,t);vc(o,y);break e}}o=o.return}while(o!==null)}If(n)}catch(b){t=b,me===n&&n!==null&&(me=n=n.return);continue}break}while(!0)}function Mf(){var e=Ho.current;return Ho.current=Uo,e===null?Uo:e}function os(){(xe===0||xe===3||xe===2)&&(xe=4),_e===null||!(Rn&268435455)&&!(ci&268435455)||rn(_e,Ee)}function Wo(e,t){var n=K;K|=2;var u=Mf();(_e!==e||Ee!==t)&&(It=null,Fn(e,t));do try{mm();break}catch(r){Pf(e,r)}while(!0);if(Ba(),K=n,Ho.current=u,me!==null)throw Error(D(261));return _e=null,Ee=0,xe}function mm(){for(;me!==null;)Lf(me)}function gm(){for(;me!==null&&!Bh();)Lf(me)}function Lf(e){var t=$f(e.alternate,e,We);e.memoizedProps=e.pendingProps,t===null?If(e):me=t,es.current=null}function If(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=sm(n,t),n!==null){n.flags&=32767,me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{xe=6,me=null;return}}else if(n=am(n,t,We),n!==null){me=n;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);xe===0&&(xe=5)}function En(e,t,n){var u=Z,r=rt.transition;try{rt.transition=null,Z=1,xm(e,t,n,u)}finally{rt.transition=r,Z=u}return null}function xm(e,t,n,u){do iu();while(an!==null);if(K&6)throw Error(D(327));n=e.finishedWork;var r=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Yh(e,o),e===_e&&(me=_e=null,Ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||no||(no=!0,Bf(Ao,function(){return iu(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=rt.transition,rt.transition=null;var i=Z;Z=1;var l=K;K|=4,es.current=null,dm(e,n),Nf(n,e),L1(Pl),Fo=!!Rl,Pl=Rl=null,e.current=n,fm(n),Uh(),K=l,Z=i,rt.transition=o}else e.current=n;if(no&&(no=!1,an=e,qo=r),o=e.pendingLanes,o===0&&(mn=null),qh(n.stateNode),Ue(e,de()),t!==null)for(u=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],u(r.value,{componentStack:r.stack,digest:r.digest});if(Vo)throw Vo=!1,e=ta,ta=null,e;return qo&1&&e.tag!==0&&iu(),o=e.pendingLanes,o&1?e===na?or++:(or=0,na=e):or=0,_n(),null}function iu(){if(an!==null){var e=xd(qo),t=rt.transition,n=Z;try{if(rt.transition=null,Z=16>e?16:e,an===null)var u=!1;else{if(e=an,an=null,qo=0,K&6)throw Error(D(331));var r=K;for(K|=4,R=e.current;R!==null;){var o=R,i=o.child;if(R.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var s=l[a];for(R=s;R!==null;){var d=R;switch(d.tag){case 0:case 11:case 15:ur(8,d,o)}var h=d.child;if(h!==null)h.return=d,R=h;else for(;R!==null;){d=R;var m=d.sibling,v=d.return;if(Ff(d),d===s){R=null;break}if(m!==null){m.return=v,R=m;break}R=v}}}var x=o.alternate;if(x!==null){var _=x.child;if(_!==null){x.child=null;do{var C=_.sibling;_.sibling=null,_=C}while(_!==null)}}R=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,R=i;else e:for(;R!==null;){if(o=R,o.flags&2048)switch(o.tag){case 0:case 11:case 15:ur(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,R=g;break e}R=o.return}}var f=e.current;for(R=f;R!==null;){i=R;var p=i.child;if(i.subtreeFlags&2064&&p!==null)p.return=i,R=p;else e:for(i=f;R!==null;){if(l=R,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:si(9,l)}}catch(b){ce(l,l.return,b)}if(l===i){R=null;break e}var y=l.sibling;if(y!==null){y.return=l.return,R=y;break e}R=l.return}}if(K=r,_n(),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(ti,e)}catch{}u=!0}return u}finally{Z=n,rt.transition=t}}return!1}function Oc(e,t,n){t=hu(n,t),t=vf(e,t,1),e=hn(e,t,1),t=Re(),e!==null&&(Fr(e,1,t),Ue(e,t))}function ce(e,t,n){if(e.tag===3)Oc(e,e,n);else for(;t!==null;){if(t.tag===3){Oc(t,e,n);break}else if(t.tag===1){var u=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(mn===null||!mn.has(u))){e=hu(n,e),e=yf(t,e,1),t=hn(t,e,1),e=Re(),t!==null&&(Fr(t,1,e),Ue(t,e));break}}t=t.return}}function vm(e,t,n){var u=e.pingCache;u!==null&&u.delete(t),t=Re(),e.pingedLanes|=e.suspendedLanes&n,_e===e&&(Ee&n)===n&&(xe===4||xe===3&&(Ee&130023424)===Ee&&500>de()-ns?Fn(e,0):ts|=n),Ue(e,t)}function Of(e,t){t===0&&(e.mode&1?(t=Wr,Wr<<=1,!(Wr&130023424)&&(Wr=4194304)):t=1);var n=Re();e=qt(e,t),e!==null&&(Fr(e,t,n),Ue(e,n))}function ym(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Of(e,n)}function bm(e,t){var n=0;switch(e.tag){case 13:var u=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:u=e.stateNode;break;default:throw Error(D(314))}u!==null&&u.delete(t),Of(e,n)}var $f;$f=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)Oe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Oe=!1,lm(e,t,n);Oe=!!(e.flags&131072)}else Oe=!1,oe&&t.flags&1048576&&Hd(t,Mo,t.index);switch(t.lanes=0,t.tag){case 2:var u=t.type;xo(e,t),e=t.pendingProps;var r=cu(t,De.current);ou(t,n),r=Qa(null,t,u,e,r,n);var o=Za();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(u)?(o=!0,Ro(t)):o=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Va(t),r.updater=ai,t.stateNode=r,r._reactInternals=t,Vl(t,u,e,n),t=Kl(null,t,u,!0,o,n)):(t.tag=0,oe&&o&&La(t),Te(null,t,r,n),t=t.child),t;case 16:u=t.elementType;e:{switch(xo(e,t),e=t.pendingProps,r=u._init,u=r(u._payload),t.type=u,r=t.tag=wm(u),e=dt(u,e),r){case 0:t=Wl(null,t,u,e,n);break e;case 1:t=Fc(null,t,u,e,n);break e;case 11:t=Ac(null,t,u,e,n);break e;case 14:t=zc(null,t,u,dt(u.type,e),n);break e}throw Error(D(306,u,""))}return t;case 0:return u=t.type,r=t.pendingProps,r=t.elementType===u?r:dt(u,r),Wl(e,t,u,r,n);case 1:return u=t.type,r=t.pendingProps,r=t.elementType===u?r:dt(u,r),Fc(e,t,u,r,n);case 3:e:{if(_f(t),e===null)throw Error(D(387));u=t.pendingProps,o=t.memoizedState,r=o.element,Qd(e,t),Oo(t,u,null,n);var i=t.memoizedState;if(u=i.element,o.isDehydrated)if(o={element:u,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){r=hu(Error(D(423)),t),t=Dc(e,t,u,n,r);break e}else if(u!==r){r=hu(Error(D(424)),t),t=Dc(e,t,u,n,r);break e}else for(Ke=pn(t.stateNode.containerInfo.firstChild),Ge=t,oe=!0,pt=null,n=Kd(t,null,u,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(du(),u===r){t=Wt(e,t,n);break e}Te(e,t,u,n)}t=t.child}return t;case 5:return Zd(t),e===null&&Bl(t),u=t.type,r=t.pendingProps,o=e!==null?e.memoizedProps:null,i=r.children,Ml(u,r)?i=null:o!==null&&Ml(u,o)&&(t.flags|=32),wf(e,t),Te(e,t,i,n),t.child;case 6:return e===null&&Bl(t),null;case 13:return Cf(e,t,n);case 4:return qa(t,t.stateNode.containerInfo),u=t.pendingProps,e===null?t.child=fu(t,null,u,n):Te(e,t,u,n),t.child;case 11:return u=t.type,r=t.pendingProps,r=t.elementType===u?r:dt(u,r),Ac(e,t,u,r,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(u=t.type._context,r=t.pendingProps,o=t.memoizedProps,i=r.value,J(Lo,u._currentValue),u._currentValue=i,o!==null)if(xt(o.value,i)){if(o.children===r.children&&!$e.current){t=Wt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){i=o.child;for(var a=l.firstContext;a!==null;){if(a.context===u){if(o.tag===1){a=Ut(-1,n&-n),a.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var d=s.pending;d===null?a.next=a:(a.next=d.next,d.next=a),s.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ul(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(D(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ul(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Te(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,u=t.pendingProps.children,ou(t,n),r=it(r),u=u(r),t.flags|=1,Te(e,t,u,n),t.child;case 14:return u=t.type,r=dt(u,t.pendingProps),r=dt(u.type,r),zc(e,t,u,r,n);case 15:return bf(e,t,t.type,t.pendingProps,n);case 17:return u=t.type,r=t.pendingProps,r=t.elementType===u?r:dt(u,r),xo(e,t),t.tag=1,Be(u)?(e=!0,Ro(t)):e=!1,ou(t,n),xf(t,u,r),Vl(t,u,r,n),Kl(null,t,u,!0,e,n);case 19:return Ef(e,t,n);case 22:return kf(e,t,n)}throw Error(D(156,t.tag))};function Bf(e,t){return pd(e,t)}function km(e,t,n,u){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(e,t,n,u){return new km(e,t,n,u)}function is(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wm(e){if(typeof e=="function")return is(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ea)return 11;if(e===Sa)return 14}return 2}function xn(e,t){var n=e.alternate;return n===null?(n=ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bo(e,t,n,u,r,o){var i=2;if(u=e,typeof e=="function")is(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Vn:return Dn(n.children,r,o,t);case Ca:i=8,r|=8;break;case hl:return e=ut(12,n,t,r|2),e.elementType=hl,e.lanes=o,e;case ml:return e=ut(13,n,t,r),e.elementType=ml,e.lanes=o,e;case gl:return e=ut(19,n,t,r),e.elementType=gl,e.lanes=o,e;case Z0:return di(n,r,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G0:i=10;break e;case Q0:i=9;break e;case Ea:i=11;break e;case Sa:i=14;break e;case en:i=16,u=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=ut(i,n,t,r),t.elementType=e,t.type=u,t.lanes=o,t}function Dn(e,t,n,u){return e=ut(7,e,u,t),e.lanes=n,e}function di(e,t,n,u){return e=ut(22,e,u,t),e.elementType=Z0,e.lanes=n,e.stateNode={isHidden:!1},e}function Zi(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function Yi(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _m(e,t,n,u,r){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=ji(0),this.expirationTimes=ji(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ji(0),this.identifierPrefix=u,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function ls(e,t,n,u,r,o,i,l,a){return e=new _m(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ut(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:u,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Va(o),e}function Cm(e,t,n){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Hn,key:u==null?null:""+u,children:e,containerInfo:t,implementation:n}}function Uf(e){if(!e)return yn;e=e._reactInternals;e:{if(In(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Be(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(Be(n))return Bd(e,n,t)}return t}function Hf(e,t,n,u,r,o,i,l,a){return e=ls(n,u,!0,e,r,o,i,l,a),e.context=Uf(null),n=e.current,u=Re(),r=gn(n),o=Ut(u,r),o.callback=t??null,hn(n,o,r),e.current.lanes=r,Fr(e,r,u),Ue(e,u),e}function fi(e,t,n,u){var r=t.current,o=Re(),i=gn(r);return n=Uf(n),t.context===null?t.context=n:t.pendingContext=n,t=Ut(o,i),t.payload={element:e},u=u===void 0?null:u,u!==null&&(t.callback=u),e=hn(r,t,i),e!==null&&(mt(e,r,i,o),ho(e,r,i)),i}function Ko(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 $c(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function as(e,t){$c(e,t),(e=e.alternate)&&$c(e,t)}function Em(){return null}var Vf=typeof reportError=="function"?reportError:function(e){console.error(e)};function ss(e){this._internalRoot=e}pi.prototype.render=ss.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));fi(e,t,null,null)};pi.prototype.unmount=ss.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pn(function(){fi(null,e,null,null)}),t[Vt]=null}};function pi(e){this._internalRoot=e}pi.prototype.unstable_scheduleHydration=function(e){if(e){var t=bd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<un.length&&t!==0&&t<un[n].priority;n++);un.splice(n,0,e),n===0&&wd(e)}};function cs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Bc(){}function Sm(e,t,n,u,r){if(r){if(typeof u=="function"){var o=u;u=function(){var s=Ko(i);o.call(s)}}var i=Hf(t,u,e,0,null,!1,!1,"",Bc);return e._reactRootContainer=i,e[Vt]=i.current,hr(e.nodeType===8?e.parentNode:e),Pn(),i}for(;r=e.lastChild;)e.removeChild(r);if(typeof u=="function"){var l=u;u=function(){var s=Ko(a);l.call(s)}}var a=ls(e,0,!1,null,null,!1,!1,"",Bc);return e._reactRootContainer=a,e[Vt]=a.current,hr(e.nodeType===8?e.parentNode:e),Pn(function(){fi(t,a,n,u)}),a}function mi(e,t,n,u,r){var o=n._reactRootContainer;if(o){var i=o;if(typeof r=="function"){var l=r;r=function(){var a=Ko(i);l.call(a)}}fi(t,i,e,r)}else i=Sm(n,t,e,r,u);return Ko(i)}vd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Qu(t.pendingLanes);n!==0&&(Fa(t,n|1),Ue(t,de()),!(K&6)&&(mu=de()+500,_n()))}break;case 13:Pn(function(){var u=qt(e,1);if(u!==null){var r=Re();mt(u,e,1,r)}}),as(e,1)}};Da=function(e){if(e.tag===13){var t=qt(e,134217728);if(t!==null){var n=Re();mt(t,e,134217728,n)}as(e,134217728)}};yd=function(e){if(e.tag===13){var t=gn(e),n=qt(e,t);if(n!==null){var u=Re();mt(n,e,t,u)}as(e,t)}};bd=function(){return Z};kd=function(e,t){var n=Z;try{return Z=e,t()}finally{Z=n}};Sl=function(e,t,n){switch(t){case"input":if(yl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var u=n[t];if(u!==e&&u.form===e.form){var r=oi(u);if(!r)throw Error(D(90));J0(u),yl(u,r)}}}break;case"textarea":ed(e,n);break;case"select":t=n.value,t!=null&&tu(e,!!n.multiple,t,!1)}};ld=us;ad=Pn;var Am={usingClientEntryPoint:!1,Events:[jr,Gn,oi,od,id,us]},Bu={findFiberByHostInstance:Sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zm={bundleType:Bu.bundleType,version:Bu.version,rendererPackageName:Bu.rendererPackageName,rendererConfig:Bu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Gt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dd(e),e===null?null:e.stateNode},findFiberByHostInstance:Bu.findFiberByHostInstance||Em,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 uo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uo.isDisabled&&uo.supportsFiber)try{ti=uo.inject(zm),jt=uo}catch{}}Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Am;Ye.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cs(t))throw Error(D(200));return Cm(e,t,null,n)};Ye.createRoot=function(e,t){if(!cs(e))throw Error(D(299));var n=!1,u="",r=Vf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(u=t.identifierPrefix),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=ls(e,1,!1,null,null,n,!1,u,r),e[Vt]=t.current,hr(e.nodeType===8?e.parentNode:e),new ss(t)};Ye.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(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=dd(t),e=e===null?null:e.stateNode,e};Ye.flushSync=function(e){return Pn(e)};Ye.hydrate=function(e,t,n){if(!hi(t))throw Error(D(200));return mi(null,e,t,!0,n)};Ye.hydrateRoot=function(e,t,n){if(!cs(e))throw Error(D(405));var u=n!=null&&n.hydratedSources||null,r=!1,o="",i=Vf;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Hf(t,null,e,1,n??null,r,!1,o,i),e[Vt]=t.current,hr(e),u)for(e=0;e<u.length;e++)n=u[e],r=n._getVersion,r=r(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new pi(t)};Ye.render=function(e,t,n){if(!hi(t))throw Error(D(200));return mi(null,e,t,!1,n)};Ye.unmountComponentAtNode=function(e){if(!hi(e))throw Error(D(40));return e._reactRootContainer?(Pn(function(){mi(null,null,e,!1,function(){e._reactRootContainer=null,e[Vt]=null})}),!0):!1};Ye.unstable_batchedUpdates=us;Ye.unstable_renderSubtreeIntoContainer=function(e,t,n,u){if(!hi(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return mi(e,t,n,!1,u)};Ye.version="18.3.1-next-f1338f8080-20240426";function qf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qf)}catch(e){console.error(e)}}qf(),V0.exports=Ye;var Fm=V0.exports,Uc=Fm;fl.createRoot=Uc.createRoot,fl.hydrateRoot=Uc.hydrateRoot;/**
|
||
* react-router v7.15.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/var Hc="popstate";function Vc(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Dm(e={}){function t(u,r){var s;let o=(s=r.state)==null?void 0:s.masked,{pathname:i,search:l,hash:a}=o||u.location;return oa("",{pathname:i,search:l,hash:a},r.state&&r.state.usr||null,r.state&&r.state.key||"default",o?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function n(u,r){return typeof r=="string"?r:_r(r)}return Nm(t,n,null,e)}function ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jm(){return Math.random().toString(36).substring(2,10)}function qc(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function oa(e,t,n=null,u,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ku(t):t,state:n,key:t&&t.key||u||jm(),mask:r}}function _r({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ku(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let u=e.indexOf("?");u>=0&&(t.search=e.substring(u),e=e.substring(0,u)),e&&(t.pathname=e)}return t}function Nm(e,t,n,u={}){let{window:r=document.defaultView,v5Compat:o=!1}=u,i=r.history,l="POP",a=null,s=d();s==null&&(s=0,i.replaceState({...i.state,idx:s},""));function d(){return(i.state||{idx:null}).idx}function h(){l="POP";let C=d(),g=C==null?null:C-s;s=C,a&&a({action:l,location:_.location,delta:g})}function m(C,g){l="PUSH";let f=Vc(C)?C:oa(_.location,C,g);s=d()+1;let p=qc(f,s),y=_.createHref(f.mask||f);try{i.pushState(p,"",y)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;r.location.assign(y)}o&&a&&a({action:l,location:_.location,delta:1})}function v(C,g){l="REPLACE";let f=Vc(C)?C:oa(_.location,C,g);s=d();let p=qc(f,s),y=_.createHref(f.mask||f);i.replaceState(p,"",y),o&&a&&a({action:l,location:_.location,delta:0})}function x(C){return Tm(C)}let _={get action(){return l},get location(){return e(r,i)},listen(C){if(a)throw new Error("A history only accepts one active listener");return r.addEventListener(Hc,h),a=C,()=>{r.removeEventListener(Hc,h),a=null}},createHref(C){return t(r,C)},createURL:x,encodeLocation(C){let g=x(C);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:m,replace:v,go(C){return i.go(C)}};return _}function Tm(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ie(n,"No window.location.(origin|href) available to create URL");let u=typeof e=="string"?e:_r(e);return u=u.replace(/ $/,"%20"),!t&&u.startsWith("//")&&(u=n+u),new URL(u,n)}function Wf(e,t,n="/"){return Rm(e,t,n,!1)}function Rm(e,t,n,u,r){let o=typeof t=="string"?ku(t):t,i=Kt(o.pathname||"/",n);if(i==null)return null;let l=Pm(e),a=null,s=Km(i);for(let d=0;a==null&&d<l.length;++d)a=qm(l[d],s,u);return a}function Pm(e){let t=Kf(e);return Mm(t),t}function Kf(e,t=[],n=[],u="",r=!1){let o=(i,l,a=r,s)=>{let d={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(u)&&a)return;ie(d.relativePath.startsWith(u),`Absolute route path "${d.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(u.length)}let h=gt([u,d.relativePath]),m=n.concat(d);i.children&&i.children.length>0&&(ie(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Kf(i.children,t,m,h,a)),!(i.path==null&&!i.index)&&t.push({path:h,score:Hm(h,i.index),routesMeta:m})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let s of Gf(i.path))o(i,l,!0,s)}),t}function Gf(e){let t=e.split("/");if(t.length===0)return[];let[n,...u]=t,r=n.endsWith("?"),o=n.replace(/\?$/,"");if(u.length===0)return r?[o,""]:[o];let i=Gf(u.join("/")),l=[];return l.push(...i.map(a=>a===""?o:[o,a].join("/"))),r&&l.push(...i),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function Mm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Vm(t.routesMeta.map(u=>u.childrenIndex),n.routesMeta.map(u=>u.childrenIndex)))}var Lm=/^:[\w-]+$/,Im=3,Om=2,$m=1,Bm=10,Um=-2,Wc=e=>e==="*";function Hm(e,t){let n=e.split("/"),u=n.length;return n.some(Wc)&&(u+=Um),t&&(u+=Om),n.filter(r=>!Wc(r)).reduce((r,o)=>r+(Lm.test(o)?Im:o===""?$m:Bm),u)}function Vm(e,t){return e.length===t.length&&e.slice(0,-1).every((u,r)=>u===t[r])?e[e.length-1]-t[t.length-1]:0}function qm(e,t,n=!1){let{routesMeta:u}=e,r={},o="/",i=[];for(let l=0;l<u.length;++l){let a=u[l],s=l===u.length-1,d=o==="/"?t:t.slice(o.length)||"/",h=Go({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},d),m=a.route;if(!h&&s&&n&&!u[u.length-1].route.index&&(h=Go({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},d)),!h)return null;Object.assign(r,h.params),i.push({params:r,pathname:gt([o,h.pathname]),pathnameBase:Ym(gt([o,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(o=gt([o,h.pathnameBase]))}return i}function Go(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,u]=Wm(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let o=r[0],i=o.replace(/(.)\/+$/,"$1"),l=r.slice(1);return{params:u.reduce((s,{paramName:d,isOptional:h},m)=>{if(d==="*"){let x=l[m]||"";i=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const v=l[m];return h&&!v?s[d]=void 0:s[d]=(v||"").replace(/%2F/g,"/"),s},{}),pathname:o,pathnameBase:i,pattern:e}}function Wm(e,t=!1,n=!0){vt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let u=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,a,s,d)=>{if(u.push({paramName:l,isOptional:a!=null}),a){let h=d.charAt(s+i.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(u.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),u]}function Km(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Kt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,u=e.charAt(n);return u&&u!=="/"?null:e.slice(n)||"/"}var Gm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Qm(e,t="/"){let{pathname:n,search:u="",hash:r=""}=typeof e=="string"?ku(e):e,o;return n?(n=Qf(n),n.startsWith("/")?o=Kc(n.substring(1),"/"):o=Kc(n,t)):o=t,{pathname:o,search:Jm(u),hash:Xm(r)}}function Kc(e,t){let n=Qo(t).split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function Ji(e,t,n,u){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Zm(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ds(e){let t=Zm(e);return t.map((n,u)=>u===t.length-1?n.pathname:n.pathnameBase)}function gi(e,t,n,u=!1){let r;typeof e=="string"?r=ku(e):(r={...e},ie(!r.pathname||!r.pathname.includes("?"),Ji("?","pathname","search",r)),ie(!r.pathname||!r.pathname.includes("#"),Ji("#","pathname","hash",r)),ie(!r.search||!r.search.includes("#"),Ji("#","search","hash",r)));let o=e===""||r.pathname==="",i=o?"/":r.pathname,l;if(i==null)l=n;else{let h=t.length-1;if(!u&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),h-=1;r.pathname=m.join("/")}l=h>=0?t[h]:"/"}let a=Qm(r,l),s=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(s||d)&&(a.pathname+="/"),a}var Qf=e=>e.replace(/\/\/+/g,"/"),gt=e=>Qf(e.join("/")),Qo=e=>e.replace(/\/+$/,""),Ym=e=>Qo(e).replace(/^\/*/,"/"),Jm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Xm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,e2=class{constructor(e,t,n,u=!1){this.status=e,this.statusText=t||"",this.internal=u,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function t2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function n2(e){let t=e.map(n=>n.route.path).filter(Boolean);return gt(t)||"/"}var Zf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Yf(e,t){let n=e;if(typeof n!="string"||!Gm.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let u=n,r=!1;if(Zf)try{let o=new URL(window.location.href),i=n.startsWith("//")?new URL(o.protocol+n):new URL(n),l=Kt(i.pathname,t);i.origin===o.origin&&l!=null?n=l+i.search+i.hash:r=!0}catch{vt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:r,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Jf=["POST","PUT","PATCH","DELETE"];new Set(Jf);var u2=["GET",...Jf];new Set(u2);var wu=k.createContext(null);wu.displayName="DataRouter";var xi=k.createContext(null);xi.displayName="DataRouterState";var Xf=k.createContext(!1);function r2(){return k.useContext(Xf)}var ep=k.createContext({isTransitioning:!1});ep.displayName="ViewTransition";var o2=k.createContext(new Map);o2.displayName="Fetchers";var i2=k.createContext(null);i2.displayName="Await";var Xe=k.createContext(null);Xe.displayName="Navigation";var Tr=k.createContext(null);Tr.displayName="Location";var bt=k.createContext({outlet:null,matches:[],isDataRoute:!1});bt.displayName="Route";var fs=k.createContext(null);fs.displayName="RouteError";var tp="REACT_ROUTER_ERROR",l2="REDIRECT",a2="ROUTE_ERROR_RESPONSE";function s2(e){if(e.startsWith(`${tp}:${l2}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function c2(e){if(e.startsWith(`${tp}:${a2}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new e2(t.status,t.statusText,t.data)}catch{}}function d2(e,{relative:t}={}){ie(_u(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:u}=k.useContext(Xe),{hash:r,pathname:o,search:i}=Rr(e,{relative:t}),l=o;return n!=="/"&&(l=o==="/"?n:gt([n,o])),u.createHref({pathname:l,search:i,hash:r})}function _u(){return k.useContext(Tr)!=null}function st(){return ie(_u(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(Tr).location}var np="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function up(e){k.useContext(Xe).static||k.useLayoutEffect(e)}function Cu(){let{isDataRoute:e}=k.useContext(bt);return e?C2():f2()}function f2(){ie(_u(),"useNavigate() may be used only in the context of a <Router> component.");let e=k.useContext(wu),{basename:t,navigator:n}=k.useContext(Xe),{matches:u}=k.useContext(bt),{pathname:r}=st(),o=JSON.stringify(ds(u)),i=k.useRef(!1);return up(()=>{i.current=!0}),k.useCallback((a,s={})=>{if(vt(i.current,np),!i.current)return;if(typeof a=="number"){n.go(a);return}let d=gi(a,JSON.parse(o),r,s.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:gt([t,d.pathname])),(s.replace?n.replace:n.push)(d,s.state,s)},[t,n,o,r,e])}k.createContext(null);function rp(){let{matches:e}=k.useContext(bt),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function Rr(e,{relative:t}={}){let{matches:n}=k.useContext(bt),{pathname:u}=st(),r=JSON.stringify(ds(n));return k.useMemo(()=>gi(e,JSON.parse(r),u,t==="path"),[e,r,u,t])}function p2(e,t){return op(e,t)}function op(e,t,n){var C;ie(_u(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=k.useContext(Xe),{matches:r}=k.useContext(bt),o=r[r.length-1],i=o?o.params:{},l=o?o.pathname:"/",a=o?o.pathnameBase:"/",s=o&&o.route;{let g=s&&s.path||"";lp(l,!s||g.endsWith("*")||g.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${g}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
||
|
||
Please change the parent <Route path="${g}"> to <Route path="${g==="/"?"*":`${g}/*`}">.`)}let d=st(),h;if(t){let g=typeof t=="string"?ku(t):t;ie(a==="/"||((C=g.pathname)==null?void 0:C.startsWith(a)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${a}" but pathname "${g.pathname}" was given in the \`location\` prop.`),h=g}else h=d;let m=h.pathname||"/",v=m;if(a!=="/"){let g=a.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(g.length).join("/")}let x=n&&n.state.matches.length?n.state.matches.map(g=>Object.assign(g,{route:n.manifest[g.route.id]||g.route})):Wf(e,{pathname:v});vt(s||x!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),vt(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=v2(x&&x.map(g=>Object.assign({},g,{params:Object.assign({},i,g.params),pathname:gt([a,u.encodeLocation?u.encodeLocation(g.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?a:gt([a,u.encodeLocation?u.encodeLocation(g.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathnameBase])})),r,n);return t&&_?k.createElement(Tr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...h},navigationType:"POP"}},_):_}function h2(){let e=_2(),t=t2(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,u="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:u},o={padding:"2px 4px",backgroundColor:u},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:o},"ErrorBoundary")," or"," ",k.createElement("code",{style:o},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:r},n):null,i)}var m2=k.createElement(h2,null),ip=class extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=c2(e.digest);n&&(e=n)}let t=e!==void 0?k.createElement(bt.Provider,{value:this.props.routeContext},k.createElement(fs.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?k.createElement(g2,{error:e},t):t}};ip.contextType=Xf;var Xi=new WeakMap;function g2({children:e,error:t}){let{basename:n}=k.useContext(Xe);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let u=s2(t.digest);if(u){let r=Xi.get(t);if(r)throw r;let o=Yf(u.location,n);if(Zf&&!Xi.get(t))if(o.isExternal||u.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:u.replace}));throw Xi.set(t,i),i}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function x2({routeContext:e,match:t,children:n}){let u=k.useContext(wu);return u&&u.static&&u.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(bt.Provider,{value:e},n)}function v2(e,t=[],n){let u=n==null?void 0:n.state;if(e==null){if(!u)return null;if(u.errors)e=u.matches;else if(t.length===0&&!u.initialized&&u.matches.length>0)e=u.matches;else return null}let r=e,o=u==null?void 0:u.errors;if(o!=null){let d=r.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);ie(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),r=r.slice(0,Math.min(r.length,d+1))}let i=!1,l=-1;if(n&&u){i=u.renderFallback;for(let d=0;d<r.length;d++){let h=r[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(l=d),h.route.id){let{loaderData:m,errors:v}=u,x=h.route.loader&&!m.hasOwnProperty(h.route.id)&&(!v||v[h.route.id]===void 0);if(h.route.lazy||x){n.isStatic&&(i=!0),l>=0?r=r.slice(0,l+1):r=[r[0]];break}}}}let a=n==null?void 0:n.onError,s=u&&a?(d,h)=>{var m,v;a(d,{location:u.location,params:((v=(m=u.matches)==null?void 0:m[0])==null?void 0:v.params)??{},pattern:n2(u.matches),errorInfo:h})}:void 0;return r.reduceRight((d,h,m)=>{let v,x=!1,_=null,C=null;u&&(v=o&&h.route.id?o[h.route.id]:void 0,_=h.route.errorElement||m2,i&&(l<0&&m===0?(lp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,C=null):l===m&&(x=!0,C=h.route.hydrateFallbackElement||null)));let g=t.concat(r.slice(0,m+1)),f=()=>{let p;return v?p=_:x?p=C:h.route.Component?p=k.createElement(h.route.Component,null):h.route.element?p=h.route.element:p=d,k.createElement(x2,{match:h,routeContext:{outlet:d,matches:g,isDataRoute:u!=null},children:p})};return u&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?k.createElement(ip,{location:u.location,revalidation:u.revalidation,component:_,error:v,children:f(),routeContext:{outlet:null,matches:g,isDataRoute:!0},onError:s}):f()},null)}function ps(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function y2(e){let t=k.useContext(wu);return ie(t,ps(e)),t}function b2(e){let t=k.useContext(xi);return ie(t,ps(e)),t}function k2(e){let t=k.useContext(bt);return ie(t,ps(e)),t}function hs(e){let t=k2(e),n=t.matches[t.matches.length-1];return ie(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function w2(){return hs("useRouteId")}function _2(){var u;let e=k.useContext(fs),t=b2("useRouteError"),n=hs("useRouteError");return e!==void 0?e:(u=t.errors)==null?void 0:u[n]}function C2(){let{router:e}=y2("useNavigate"),t=hs("useNavigate"),n=k.useRef(!1);return up(()=>{n.current=!0}),k.useCallback(async(r,o={})=>{vt(n.current,np),n.current&&(typeof r=="number"?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}var Gc={};function lp(e,t,n){!t&&!Gc[e]&&(Gc[e]=!0,vt(!1,n))}k.memo(E2);function E2({routes:e,manifest:t,future:n,state:u,isStatic:r,onError:o}){return op(e,void 0,{manifest:t,state:u,isStatic:r,onError:o})}function S2({to:e,replace:t,state:n,relative:u}){ie(_u(),"<Navigate> may be used only in the context of a <Router> component.");let{static:r}=k.useContext(Xe);vt(!r,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=k.useContext(bt),{pathname:i}=st(),l=Cu(),a=gi(e,ds(o),i,u==="path"),s=JSON.stringify(a);return k.useEffect(()=>{l(JSON.parse(s),{replace:t,state:n,relative:u})},[l,s,u,t,n]),null}function Xt(e){ie(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function A2({basename:e="/",children:t=null,location:n,navigationType:u="POP",navigator:r,static:o=!1,useTransitions:i}){ie(!_u(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),a=k.useMemo(()=>({basename:l,navigator:r,static:o,useTransitions:i,future:{}}),[l,r,o,i]);typeof n=="string"&&(n=ku(n));let{pathname:s="/",search:d="",hash:h="",state:m=null,key:v="default",mask:x}=n,_=k.useMemo(()=>{let C=Kt(s,l);return C==null?null:{location:{pathname:C,search:d,hash:h,state:m,key:v,mask:x},navigationType:u}},[l,s,d,h,m,v,u,x]);return vt(_!=null,`<Router basename="${l}"> is not able to match the URL "${s}${d}${h}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:k.createElement(Xe.Provider,{value:a},k.createElement(Tr.Provider,{children:t,value:_}))}function z2({children:e,location:t}){return p2(ia(e),t)}function ia(e,t=[]){let n=[];return k.Children.forEach(e,(u,r)=>{if(!k.isValidElement(u))return;let o=[...t,r];if(u.type===k.Fragment){n.push.apply(n,ia(u.props.children,o));return}ie(u.type===Xt,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ie(!u.props.index||!u.props.children,"An index route cannot have child routes.");let i={id:u.props.id||o.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(i.children=ia(u.props.children,o)),n.push(i)}),n}var ko="get",wo="application/x-www-form-urlencoded";function vi(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function F2(e){return vi(e)&&e.tagName.toLowerCase()==="button"}function D2(e){return vi(e)&&e.tagName.toLowerCase()==="form"}function j2(e){return vi(e)&&e.tagName.toLowerCase()==="input"}function N2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function T2(e,t){return e.button===0&&(!t||t==="_self")&&!N2(e)}var ro=null;function R2(){if(ro===null)try{new FormData(document.createElement("form"),0),ro=!1}catch{ro=!0}return ro}var P2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function el(e){return e!=null&&!P2.has(e)?(vt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${wo}"`),null):e}function M2(e,t){let n,u,r,o,i;if(D2(e)){let l=e.getAttribute("action");u=l?Kt(l,t):null,n=e.getAttribute("method")||ko,r=el(e.getAttribute("enctype"))||wo,o=new FormData(e)}else if(F2(e)||j2(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||l.getAttribute("action");if(u=a?Kt(a,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||ko,r=el(e.getAttribute("formenctype"))||el(l.getAttribute("enctype"))||wo,o=new FormData(l,e),!R2()){let{name:s,type:d,value:h}=e;if(d==="image"){let m=s?`${s}.`:"";o.append(`${m}x`,"0"),o.append(`${m}y`,"0")}else s&&o.append(s,h)}}else{if(vi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ko,u=null,r=wo,i=e}return o&&r==="text/plain"&&(i=o,o=void 0),{action:u,method:n.toLowerCase(),encType:r,formData:o,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ms(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ap(e,t,n,u){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?r.pathname.endsWith("/")?r.pathname=`${r.pathname}_.${u}`:r.pathname=`${r.pathname}.${u}`:r.pathname==="/"?r.pathname=`_root.${u}`:t&&Kt(r.pathname,t)==="/"?r.pathname=`${Qo(t)}/_root.${u}`:r.pathname=`${Qo(r.pathname)}.${u}`,r}async function L2(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function I2(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function O2(e,t,n){let u=await Promise.all(e.map(async r=>{let o=t.routes[r.route.id];if(o){let i=await L2(o,n);return i.links?i.links():[]}return[]}));return H2(u.flat(1).filter(I2).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function Qc(e,t,n,u,r,o){let i=(a,s)=>n[s]?a.route.id!==n[s].route.id:!0,l=(a,s)=>{var d;return n[s].pathname!==a.pathname||((d=n[s].route.path)==null?void 0:d.endsWith("*"))&&n[s].params["*"]!==a.params["*"]};return o==="assets"?t.filter((a,s)=>i(a,s)||l(a,s)):o==="data"?t.filter((a,s)=>{var h;let d=u.routes[a.route.id];if(!d||!d.hasLoader)return!1;if(i(a,s)||l(a,s))return!0;if(a.route.shouldRevalidate){let m=a.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:((h=n[0])==null?void 0:h.params)||{},nextUrl:new URL(e,window.origin),nextParams:a.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function $2(e,t,{includeHydrateFallback:n}={}){return B2(e.map(u=>{let r=t.routes[u.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o}).flat(1))}function B2(e){return[...new Set(e)]}function U2(e){let t={},n=Object.keys(e).sort();for(let u of n)t[u]=e[u];return t}function H2(e,t){let n=new Set;return new Set(t),e.reduce((u,r)=>{let o=JSON.stringify(U2(r));return n.has(o)||(n.add(o),u.push({key:o,link:r})),u},[])}function gs(){let e=k.useContext(wu);return ms(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function V2(){let e=k.useContext(xi);return ms(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var xs=k.createContext(void 0);xs.displayName="FrameworkContext";function vs(){let e=k.useContext(xs);return ms(e,"You must render this element inside a <HydratedRouter> element"),e}function q2(e,t){let n=k.useContext(xs),[u,r]=k.useState(!1),[o,i]=k.useState(!1),{onFocus:l,onBlur:a,onMouseEnter:s,onMouseLeave:d,onTouchStart:h}=t,m=k.useRef(null);k.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let _=g=>{g.forEach(f=>{i(f.isIntersecting)})},C=new IntersectionObserver(_,{threshold:.5});return m.current&&C.observe(m.current),()=>{C.disconnect()}}},[e]),k.useEffect(()=>{if(u){let _=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(_)}}},[u]);let v=()=>{r(!0)},x=()=>{r(!1),i(!1)};return n?e!=="intent"?[o,m,{}]:[o,m,{onFocus:Uu(l,v),onBlur:Uu(a,x),onMouseEnter:Uu(s,v),onMouseLeave:Uu(d,x),onTouchStart:Uu(h,v)}]:[!1,m,{}]}function Uu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function W2({page:e,...t}){let n=r2(),{router:u}=gs(),r=k.useMemo(()=>Wf(u.routes,e,u.basename),[u.routes,e,u.basename]);return r?n?k.createElement(G2,{page:e,matches:r,...t}):k.createElement(Q2,{page:e,matches:r,...t}):null}function K2(e){let{manifest:t,routeModules:n}=vs(),[u,r]=k.useState([]);return k.useEffect(()=>{let o=!1;return O2(e,t,n).then(i=>{o||r(i)}),()=>{o=!0}},[e,t,n]),u}function G2({page:e,matches:t,...n}){let u=st(),{future:r}=vs(),{basename:o}=gs(),i=k.useMemo(()=>{if(e===u.pathname+u.search+u.hash)return[];let l=ap(e,o,r.unstable_trailingSlashAwareDataRequests,"rsc"),a=!1,s=[];for(let d of t)typeof d.route.shouldRevalidate=="function"?a=!0:s.push(d.route.id);return a&&s.length>0&&l.searchParams.set("_routes",s.join(",")),[l.pathname+l.search]},[o,r.unstable_trailingSlashAwareDataRequests,e,u,t]);return k.createElement(k.Fragment,null,i.map(l=>k.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...n})))}function Q2({page:e,matches:t,...n}){let u=st(),{future:r,manifest:o,routeModules:i}=vs(),{basename:l}=gs(),{loaderData:a,matches:s}=V2(),d=k.useMemo(()=>Qc(e,t,s,o,u,"data"),[e,t,s,o,u]),h=k.useMemo(()=>Qc(e,t,s,o,u,"assets"),[e,t,s,o,u]),m=k.useMemo(()=>{if(e===u.pathname+u.search+u.hash)return[];let _=new Set,C=!1;if(t.forEach(f=>{var y;let p=o.routes[f.route.id];!p||!p.hasLoader||(!d.some(b=>b.route.id===f.route.id)&&f.route.id in a&&((y=i[f.route.id])!=null&&y.shouldRevalidate)||p.hasClientLoader?C=!0:_.add(f.route.id))}),_.size===0)return[];let g=ap(e,l,r.unstable_trailingSlashAwareDataRequests,"data");return C&&_.size>0&&g.searchParams.set("_routes",t.filter(f=>_.has(f.route.id)).map(f=>f.route.id).join(",")),[g.pathname+g.search]},[l,r.unstable_trailingSlashAwareDataRequests,a,u,o,d,t,e,i]),v=k.useMemo(()=>$2(h,o),[h,o]),x=K2(h);return k.createElement(k.Fragment,null,m.map(_=>k.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...n})),v.map(_=>k.createElement("link",{key:_,rel:"modulepreload",href:_,...n})),x.map(({key:_,link:C})=>k.createElement("link",{key:_,nonce:n.nonce,...C,crossOrigin:C.crossOrigin??n.crossOrigin})))}function Z2(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Y2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Y2&&(window.__reactRouterVersion="7.15.0")}catch{}function J2({basename:e,children:t,useTransitions:n,window:u}){let r=k.useRef();r.current==null&&(r.current=Dm({window:u,v5Compat:!0}));let o=r.current,[i,l]=k.useState({action:o.action,location:o.location}),a=k.useCallback(s=>{n===!1?l(s):k.startTransition(()=>l(s))},[n]);return k.useLayoutEffect(()=>o.listen(a),[o,a]),k.createElement(A2,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o,useTransitions:n})}var sp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cp=k.forwardRef(function({onClick:t,discover:n="render",prefetch:u="none",relative:r,reloadDocument:o,replace:i,mask:l,state:a,target:s,to:d,preventScrollReset:h,viewTransition:m,defaultShouldRevalidate:v,...x},_){let{basename:C,navigator:g,useTransitions:f}=k.useContext(Xe),p=typeof d=="string"&&sp.test(d),y=Yf(d,C);d=y.to;let b=d2(d,{relative:r}),w=st(),E=null;if(l){let B=gi(l,[],w.mask?w.mask.pathname:"/",!0);C!=="/"&&(B.pathname=B.pathname==="/"?C:gt([C,B.pathname])),E=g.createHref(B)}let[S,A,j]=q2(u,x),I=tg(d,{replace:i,mask:l,state:a,target:s,preventScrollReset:h,relative:r,viewTransition:m,defaultShouldRevalidate:v,useTransitions:f});function M(B){t&&t(B),B.defaultPrevented||I(B)}let ue=!(y.isExternal||o),L=k.createElement("a",{...x,...j,href:(ue?E:void 0)||y.absoluteURL||b,onClick:ue?M:t,ref:Z2(_,A),target:s,"data-discover":!p&&n==="render"?"true":void 0});return S&&!p?k.createElement(k.Fragment,null,L,k.createElement(W2,{page:b})):L});cp.displayName="Link";var dp=k.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:u="",end:r=!1,style:o,to:i,viewTransition:l,children:a,...s},d){let h=Rr(i,{relative:s.relative}),m=st(),v=k.useContext(xi),{navigator:x,basename:_}=k.useContext(Xe),C=v!=null&&ig(h)&&l===!0,g=x.encodeLocation?x.encodeLocation(h).pathname:h.pathname,f=m.pathname,p=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(f=f.toLowerCase(),p=p?p.toLowerCase():null,g=g.toLowerCase()),p&&_&&(p=Kt(p,_)||p);const y=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let b=f===g||!r&&f.startsWith(g)&&f.charAt(y)==="/",w=p!=null&&(p===g||!r&&p.startsWith(g)&&p.charAt(g.length)==="/"),E={isActive:b,isPending:w,isTransitioning:C},S=b?t:void 0,A;typeof u=="function"?A=u(E):A=[u,b?"active":null,w?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let j=typeof o=="function"?o(E):o;return k.createElement(cp,{...s,"aria-current":S,className:A,ref:d,style:j,to:i,viewTransition:l},typeof a=="function"?a(E):a)});dp.displayName="NavLink";var X2=k.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:u,replace:r,state:o,method:i=ko,action:l,onSubmit:a,relative:s,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:m,...v},x)=>{let{useTransitions:_}=k.useContext(Xe),C=rg(),g=og(l,{relative:s}),f=i.toLowerCase()==="get"?"get":"post",p=typeof l=="string"&&sp.test(l),y=b=>{if(a&&a(b),b.defaultPrevented)return;b.preventDefault();let w=b.nativeEvent.submitter,E=(w==null?void 0:w.getAttribute("formmethod"))||i,S=()=>C(w||b.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:r,state:o,relative:s,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:m});_&&n!==!1?k.startTransition(()=>S()):S()};return k.createElement("form",{ref:x,method:f,action:g,onSubmit:u?a:y,...v,"data-discover":!p&&e==="render"?"true":void 0})});X2.displayName="Form";function eg(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fp(e){let t=k.useContext(wu);return ie(t,eg(e)),t}function tg(e,{target:t,replace:n,mask:u,state:r,preventScrollReset:o,relative:i,viewTransition:l,defaultShouldRevalidate:a,useTransitions:s}={}){let d=Cu(),h=st(),m=Rr(e,{relative:i});return k.useCallback(v=>{if(T2(v,t)){v.preventDefault();let x=n!==void 0?n:_r(h)===_r(m),_=()=>d(e,{replace:x,mask:u,state:r,preventScrollReset:o,relative:i,viewTransition:l,defaultShouldRevalidate:a});s?k.startTransition(()=>_()):_()}},[h,d,m,n,u,r,t,e,o,i,l,a,s])}var ng=0,ug=()=>`__${String(++ng)}__`;function rg(){let{router:e}=fp("useSubmit"),{basename:t}=k.useContext(Xe),n=w2(),u=e.fetch,r=e.navigate;return k.useCallback(async(o,i={})=>{let{action:l,method:a,encType:s,formData:d,body:h}=M2(o,t);if(i.navigate===!1){let m=i.fetcherKey||ug();await u(m,n,i.action||l,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:h,formMethod:i.method||a,formEncType:i.encType||s,flushSync:i.flushSync})}else await r(i.action||l,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:h,formMethod:i.method||a,formEncType:i.encType||s,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[u,r,t,n])}function og(e,{relative:t}={}){let{basename:n}=k.useContext(Xe),u=k.useContext(bt);ie(u,"useFormAction must be used inside a RouteContext");let[r]=u.matches.slice(-1),o={...Rr(e||".",{relative:t})},i=st();if(e==null){o.search=i.search;let l=new URLSearchParams(o.search),a=l.getAll("index");if(a.some(d=>d==="")){l.delete("index"),a.filter(h=>h).forEach(h=>l.append("index",h));let d=l.toString();o.search=d?`?${d}`:""}}return(!e||e===".")&&r.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:gt([n,o.pathname])),_r(o)}function ig(e,{relative:t}={}){let n=k.useContext(ep);ie(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=fp("useViewTransitionState"),r=Rr(e,{relative:t});if(!n.isTransitioning)return!1;let o=Kt(n.currentLocation.pathname,u)||n.currentLocation.pathname,i=Kt(n.nextLocation.pathname,u)||n.nextLocation.pathname;return Go(r.pathname,i)!=null||Go(r.pathname,o)!=null}/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const lg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pp=(...e)=>e.filter((t,n,u)=>!!t&&t.trim()!==""&&u.indexOf(t)===n).join(" ").trim();/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var ag={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const sg=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:u,className:r="",children:o,iconNode:i,...l},a)=>k.createElement("svg",{ref:a,...ag,width:t,height:t,stroke:e,strokeWidth:u?Number(n)*24/Number(t):n,className:pp("lucide",r),...l},[...i.map(([s,d])=>k.createElement(s,d)),...Array.isArray(o)?o:[o]]));/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const V=(e,t)=>{const n=k.forwardRef(({className:u,...r},o)=>k.createElement(sg,{ref:o,iconNode:t,className:pp(`lucide-${lg(e)}`,u),...r}));return n.displayName=`${e}`,n};/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const cg=V("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dg=V("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const fg=V("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const pg=V("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Zc=V("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const tl=V("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hg=V("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const mg=V("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gg=V("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hp=V("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xg=V("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vg=V("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yg=V("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bg=V("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kg=V("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const la=V("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const aa=V("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Mn=V("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const wg=V("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const sa=V("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Zo=V("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Yc=V("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _g=V("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ca=V("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Cg=V("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ys=V("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Eg=V("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const da=V("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Sg=V("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Jc=V("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ag=V("TestTubeDiagonal",[["path",{d:"M21 7 6.82 21.18a2.83 2.83 0 0 1-3.99-.01a2.83 2.83 0 0 1 0-4L17 3",key:"1ub6xw"}],["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"M12 16H4",key:"1cjfip"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Pr=V("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const zg=V("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Fg=V("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Dg=V("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yi=V("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function mp(e){var t,n,u="";if(typeof e=="string"||typeof e=="number")u+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=mp(e[t]))&&(u&&(u+=" "),u+=n)}else for(n in e)e[n]&&(u&&(u+=" "),u+=n);return u}function gp(){for(var e,t,n=0,u="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=mp(e))&&(u&&(u+=" "),u+=t);return u}const bs="-",jg=e=>{const t=Tg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:u}=e;return{getClassGroupId:i=>{const l=i.split(bs);return l[0]===""&&l.length!==1&&l.shift(),xp(l,t)||Ng(i)},getConflictingClassGroupIds:(i,l)=>{const a=n[i]||[];return l&&u[i]?[...a,...u[i]]:a}}},xp=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],u=t.nextPart.get(n),r=u?xp(e.slice(1),u):void 0;if(r)return r;if(t.validators.length===0)return;const o=e.join(bs);return(i=t.validators.find(({validator:l})=>l(o)))==null?void 0:i.classGroupId},Xc=/^\[(.+)\]$/,Ng=e=>{if(Xc.test(e)){const t=Xc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Tg=e=>{const{theme:t,prefix:n}=e,u={nextPart:new Map,validators:[]};return Pg(Object.entries(e.classGroups),n).forEach(([o,i])=>{fa(i,u,o,t)}),u},fa=(e,t,n,u)=>{e.forEach(r=>{if(typeof r=="string"){const o=r===""?t:e0(t,r);o.classGroupId=n;return}if(typeof r=="function"){if(Rg(r)){fa(r(u),t,n,u);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([o,i])=>{fa(i,e0(t,o),n,u)})})},e0=(e,t)=>{let n=e;return t.split(bs).forEach(u=>{n.nextPart.has(u)||n.nextPart.set(u,{nextPart:new Map,validators:[]}),n=n.nextPart.get(u)}),n},Rg=e=>e.isThemeGetter,Pg=(e,t)=>t?e.map(([n,u])=>{const r=u.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[n,r]}):e,Mg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,u=new Map;const r=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,u=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=u.get(o))!==void 0)return r(o,i),i},set(o,i){n.has(o)?n.set(o,i):r(o,i)}}},vp="!",Lg=e=>{const{separator:t,experimentalParseClassName:n}=e,u=t.length===1,r=t[0],o=t.length,i=l=>{const a=[];let s=0,d=0,h;for(let C=0;C<l.length;C++){let g=l[C];if(s===0){if(g===r&&(u||l.slice(C,C+o)===t)){a.push(l.slice(d,C)),d=C+o;continue}if(g==="/"){h=C;continue}}g==="["?s++:g==="]"&&s--}const m=a.length===0?l:l.substring(d),v=m.startsWith(vp),x=v?m.substring(1):m,_=h&&h>d?h-d:void 0;return{modifiers:a,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:_}};return n?l=>n({className:l,parseClassName:i}):i},Ig=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(u=>{u[0]==="["?(t.push(...n.sort(),u),n=[]):n.push(u)}),t.push(...n.sort()),t},Og=e=>({cache:Mg(e.cacheSize),parseClassName:Lg(e),...jg(e)}),$g=/\s+/,Bg=(e,t)=>{const{parseClassName:n,getClassGroupId:u,getConflictingClassGroupIds:r}=t,o=[],i=e.trim().split($g);let l="";for(let a=i.length-1;a>=0;a-=1){const s=i[a],{modifiers:d,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:v}=n(s);let x=!!v,_=u(x?m.substring(0,v):m);if(!_){if(!x){l=s+(l.length>0?" "+l:l);continue}if(_=u(m),!_){l=s+(l.length>0?" "+l:l);continue}x=!1}const C=Ig(d).join(":"),g=h?C+vp:C,f=g+_;if(o.includes(f))continue;o.push(f);const p=r(_,x);for(let y=0;y<p.length;++y){const b=p[y];o.push(g+b)}l=s+(l.length>0?" "+l:l)}return l};function Ug(){let e=0,t,n,u="";for(;e<arguments.length;)(t=arguments[e++])&&(n=yp(t))&&(u&&(u+=" "),u+=n);return u}const yp=e=>{if(typeof e=="string")return e;let t,n="";for(let u=0;u<e.length;u++)e[u]&&(t=yp(e[u]))&&(n&&(n+=" "),n+=t);return n};function Hg(e,...t){let n,u,r,o=i;function i(a){const s=t.reduce((d,h)=>h(d),e());return n=Og(s),u=n.cache.get,r=n.cache.set,o=l,l(a)}function l(a){const s=u(a);if(s)return s;const d=Bg(a,n);return r(a,d),d}return function(){return o(Ug.apply(null,arguments))}}const ee=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},bp=/^\[(?:([a-z-]+):)?(.+)\]$/i,Vg=/^\d+\/\d+$/,qg=new Set(["px","full","screen"]),Wg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Lt=e=>lu(e)||qg.has(e)||Vg.test(e),Yt=e=>Eu(e,"length",rx),lu=e=>!!e&&!Number.isNaN(Number(e)),nl=e=>Eu(e,"number",lu),Hu=e=>!!e&&Number.isInteger(Number(e)),Yg=e=>e.endsWith("%")&&lu(e.slice(0,-1)),$=e=>bp.test(e),Jt=e=>Wg.test(e),Jg=new Set(["length","size","percentage"]),Xg=e=>Eu(e,Jg,kp),ex=e=>Eu(e,"position",kp),tx=new Set(["image","url"]),nx=e=>Eu(e,tx,ix),ux=e=>Eu(e,"",ox),Vu=()=>!0,Eu=(e,t,n)=>{const u=bp.exec(e);return u?u[1]?typeof t=="string"?u[1]===t:t.has(u[1]):n(u[2]):!1},rx=e=>Kg.test(e)&&!Gg.test(e),kp=()=>!1,ox=e=>Qg.test(e),ix=e=>Zg.test(e),lx=()=>{const e=ee("colors"),t=ee("spacing"),n=ee("blur"),u=ee("brightness"),r=ee("borderColor"),o=ee("borderRadius"),i=ee("borderSpacing"),l=ee("borderWidth"),a=ee("contrast"),s=ee("grayscale"),d=ee("hueRotate"),h=ee("invert"),m=ee("gap"),v=ee("gradientColorStops"),x=ee("gradientColorStopPositions"),_=ee("inset"),C=ee("margin"),g=ee("opacity"),f=ee("padding"),p=ee("saturate"),y=ee("scale"),b=ee("sepia"),w=ee("skew"),E=ee("space"),S=ee("translate"),A=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",$,t],M=()=>[$,t],ue=()=>["",Lt,Yt],L=()=>["auto",lu,$],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",$],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>[lu,$];return{cacheSize:500,separator:":",theme:{colors:[Vu],spacing:[Lt,Yt],blur:["none","",Jt,$],brightness:T(),borderColor:[e],borderRadius:["none","","full",Jt,$],borderSpacing:M(),borderWidth:ue(),contrast:T(),grayscale:P(),hueRotate:T(),invert:P(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[Yg,Yt],inset:I(),margin:I(),opacity:T(),padding:M(),saturate:T(),scale:T(),sepia:P(),skew:T(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",$]}],container:["container"],columns:[{columns:[Jt]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),$]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[_]}],"inset-x":[{"inset-x":[_]}],"inset-y":[{"inset-y":[_]}],start:[{start:[_]}],end:[{end:[_]}],top:[{top:[_]}],right:[{right:[_]}],bottom:[{bottom:[_]}],left:[{left:[_]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Hu,$]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Hu,$]}],"grid-cols":[{"grid-cols":[Vu]}],"col-start-end":[{col:["auto",{span:["full",Hu,$]},$]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Vu]}],"row-start-end":[{row:["auto",{span:[Hu,$]},$]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...F()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...F(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...F(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[f]}],px:[{px:[f]}],py:[{py:[f]}],ps:[{ps:[f]}],pe:[{pe:[f]}],pt:[{pt:[f]}],pr:[{pr:[f]}],pb:[{pb:[f]}],pl:[{pl:[f]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$,t]}],"min-w":[{"min-w":[$,t,"min","max","fit"]}],"max-w":[{"max-w":[$,t,"none","full","min","max","fit","prose",{screen:[Jt]},Jt]}],h:[{h:[$,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Jt,Yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nl]}],"font-family":[{font:[Vu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",$]}],"line-clamp":[{"line-clamp":["none",lu,nl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Lt,$]}],"list-image":[{"list-image":["none",$]}],"list-style-type":[{list:["none","disc","decimal",$]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Lt,Yt]}],"underline-offset":[{"underline-offset":["auto",Lt,$]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),ex]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nx]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:Y()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[Lt,$]}],"outline-w":[{outline:[Lt,Yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Lt,Yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jt,ux]}],"shadow-color":[{shadow:[Vu]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[u]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Jt,$]}],grayscale:[{grayscale:[s]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[p]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[u]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",$]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",$]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[Hu,$]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Lt,Yt,nl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},ax=Hg(lx);function zt(...e){return ax(gp(e))}const sx=[{to:"/chat",icon:Zo,label:"对话"},{to:"/accounts",icon:aa,label:"账户"},{to:"/assets",icon:Mn,label:"资产"},{to:"/settings",icon:Sg,label:"设置"}];function cx(){return c.jsx("aside",{className:"w-16 flex flex-col items-center py-5 gap-1.5 border-r border-zinc-100 bg-white",children:sx.map(({to:e,icon:t,label:n})=>c.jsxs(dp,{to:e,title:n,className:({isActive:u})=>zt("w-11 h-11 flex flex-col items-center justify-center gap-0.5 rounded-xl transition-all duration-200 text-[10px] font-medium",u?"bg-indigo-50 text-indigo-600 shadow-sm shadow-indigo-100":"text-zinc-400 hover:text-zinc-600 hover:bg-zinc-50"),children:[c.jsx(t,{size:17,strokeWidth:1.8}),c.jsx("span",{children:n})]},e))})}const he=k.forwardRef(({className:e,type:t,...n},u)=>c.jsx("input",{type:t,className:zt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:u,...n}));he.displayName="Input";const wp=k.forwardRef(({className:e,children:t,...n},u)=>c.jsx("div",{ref:u,className:zt("overflow-auto",e),...n,children:t}));wp.displayName="ScrollArea";function _p({open:e,title:t,description:n,confirmText:u="确认",cancelText:r="取消",variant:o="default",onConfirm:i,onCancel:l}){const a=k.useRef(null);return k.useEffect(()=>{var d;e&&((d=a.current)==null||d.focus());const s=h=>{h.key==="Escape"&&l()};return e&&document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e,l]),e?c.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[c.jsx("div",{className:"absolute inset-0 bg-black/20 backdrop-blur-[2px]",onClick:l}),c.jsxs("div",{className:"relative bg-white rounded-2xl shadow-xl shadow-zinc-200/50 border border-zinc-100 p-5 w-[320px] animate-in fade-in zoom-in-95 duration-150",children:[c.jsx("button",{onClick:l,className:"absolute top-3.5 right-3.5 text-zinc-300 hover:text-zinc-500 transition-colors",children:c.jsx(yi,{size:16})}),c.jsx("h3",{className:"text-sm font-semibold text-zinc-800 mb-1",children:t}),n&&c.jsx("p",{className:"text-xs text-zinc-400 leading-relaxed mb-4",children:n}),c.jsxs("div",{className:"flex items-center justify-end gap-2 mt-4",children:[c.jsx("button",{ref:a,onClick:l,className:"px-3.5 py-1.5 text-xs font-medium text-zinc-500 hover:text-zinc-700 rounded-lg hover:bg-zinc-50 transition-colors",children:r}),c.jsx("button",{onClick:i,className:`px-3.5 py-1.5 text-xs font-medium rounded-lg transition-colors ${o==="danger"?"bg-red-500 text-white hover:bg-red-600":"bg-indigo-600 text-white hover:bg-indigo-700"}`,children:u})]})]})]}):null}const t0=e=>{let t;const n=new Set,u=(s,d)=>{const h=typeof s=="function"?s(t):s;if(!Object.is(h,t)){const m=t;t=d??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(v=>v(t,m))}},r=()=>t,l={setState:u,getState:r,getInitialState:()=>a,subscribe:s=>(n.add(s),()=>n.delete(s))},a=t=e(u,r,l);return l},dx=e=>e?t0(e):t0,fx=e=>e;function px(e,t=fx){const n=Wu.useSyncExternalStore(e.subscribe,Wu.useCallback(()=>t(e.getState()),[e,t]),Wu.useCallback(()=>t(e.getInitialState()),[e,t]));return Wu.useDebugValue(n),n}const n0=e=>{const t=dx(e),n=u=>px(t,u);return Object.assign(n,t),n},hx=e=>e?n0(e):n0,pa=hx(e=>({selectedAccountId:null,setSelectedAccountId:t=>e({selectedAccountId:t}),conversations:[],setConversations:t=>e({conversations:t})})),mx="/api";async function ve(e,t){const n=await fetch(`${mx}${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok)throw new Error(await n.text());if(n.status!==204)return n.json()}const fe={listAccounts:()=>ve("/accounts"),getAccount:e=>ve(`/accounts/${e}`),createAccount:e=>ve("/accounts",{method:"POST",body:JSON.stringify(e)}),updateAccount:(e,t)=>ve(`/accounts/${e}`,{method:"PUT",body:JSON.stringify(t)}),deleteAccount:e=>ve(`/accounts/${e}`,{method:"DELETE"}),getPrompt:(e,t)=>ve(`/prompts/${e}/${t}`),savePrompt:(e,t,n)=>ve(`/prompts/${e}/${t}`,{method:"PUT",body:JSON.stringify({content:n})}),listConversations:()=>ve("/pipeline/conversations"),getMessages:e=>ve(`/pipeline/conversations/${e}/messages`),updateConversation:(e,t)=>ve(`/pipeline/conversations/${e}`,{method:"PATCH",body:JSON.stringify(t)}),deleteConversation:e=>ve(`/pipeline/conversations/${e}`,{method:"DELETE"}),deleteMessage:e=>ve(`/pipeline/messages/${e}`,{method:"DELETE"}),listAssets:e=>{const t=new URLSearchParams;return e!=null&&e.accountId&&t.set("accountId",e.accountId),e!=null&&e.type&&t.set("type",e.type),ve(`/assets?${t}`)},deleteAsset:e=>ve(`/assets/${e}`,{method:"DELETE"}),getConfigs:()=>ve("/configs"),saveConfig:(e,t)=>ve(`/configs/${e}`,{method:"PUT",body:JSON.stringify({value:t})}),getSkillsConfig:()=>ve("/configs/skills/file"),saveSkillsConfig:e=>ve("/configs/skills/file",{method:"PUT",body:JSON.stringify(e)})},Cp=k.createContext(null);let gx=0;function xx({children:e}){const[t,n]=k.useState([]),u=k.useRef(new Map),r=k.useCallback(i=>{const l=u.current.get(i);l&&clearTimeout(l),u.current.delete(i),n(a=>a.filter(s=>s.id!==i))},[]),o=k.useCallback((i,l="info")=>{const a=gx++;n(d=>[...d.slice(-4),{id:a,message:i,type:l}]);const s=setTimeout(()=>r(a),3e3);u.current.set(a,s)},[r]);return c.jsx(Cp.Provider,{value:{toasts:t,toast:o,dismiss:r},children:e})}function ks(){const e=k.useContext(Cp);if(!e)throw new Error("useToast must be used within ToastProvider");return e}const ul={open:!1,title:"",description:"",resolve:null};function Ep(){const[e,t]=k.useState(ul),n=k.useCallback(o=>new Promise(i=>{t({...o,open:!0,resolve:i})}),[]),u=k.useCallback(()=>{var o;(o=e.resolve)==null||o.call(e,!0),t(ul)},[e.resolve]),r=k.useCallback(()=>{var o;(o=e.resolve)==null||o.call(e,!1),t(ul)},[e.resolve]);return{confirmState:e,confirm:n,handleConfirm:u,handleCancel:r}}function vx(){const{conversations:e,setConversations:t}=pa(),[n,u]=k.useState(""),r=Cu(),o=st(),{toast:i}=ks(),{confirmState:l,confirm:a,handleConfirm:s,handleCancel:d}=Ep(),[h,m]=k.useState(null),v=k.useMemo(()=>{const p=o.pathname.match(/^\/chat\/(.+)$/);return p?p[1]:null},[o.pathname]),x=()=>{fe.listConversations().then(t).catch(()=>{})};k.useEffect(()=>{x()},[]);const _=p=>{if(u(p),!p){x();return}const y=`?search=${encodeURIComponent(p)}`;fetch(`/api/pipeline/conversations${y}`).then(b=>b.json()).then(t).catch(()=>{})},C=async(p,y)=>{y.stopPropagation();const b=e.find(w=>w.id===p);b&&(await fe.updateConversation(p,{pinned:!b.pinned}),x())},g=async(p,y)=>{y.stopPropagation(),m(p),await a({title:"删除对话",description:"确定要删除这个对话吗?此操作无法撤销。",confirmText:"删除",variant:"danger"})&&(await fe.deleteConversation(p),x(),i("对话已删除","success"),p===v&&r("/chat")),m(null)},f=p=>{const y=new Date(p),w=new Date().getTime()-y.getTime();return w<864e5?y.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}):w<6048e5?`${Math.floor(w/864e5)}天前`:y.toLocaleDateString("zh-CN",{month:"short",day:"numeric"})};return c.jsxs("aside",{className:"w-60 flex flex-col border-r border-zinc-100 bg-white",children:[c.jsxs("div",{className:"p-3 flex items-center gap-2 border-b border-zinc-100/80",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsx(da,{size:13,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-zinc-300"}),c.jsx(he,{placeholder:"搜索对话...",className:"h-8 text-xs bg-zinc-50/80 border-zinc-100 pl-8 focus:bg-white",value:n,onChange:p=>_(p.target.value)})]}),c.jsxs("button",{onClick:()=>r("/chat"),className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-indigo-600 text-white text-xs font-medium hover:bg-indigo-700 transition-colors whitespace-nowrap shadow-sm shadow-indigo-200/50",children:[c.jsx(ca,{size:13}),"新对话"]})]}),c.jsxs(wp,{className:"flex-1",children:[e.map(p=>c.jsxs("div",{onClick:()=>r(`/chat/${p.id}`),className:`group w-full text-left px-3 py-2.5 transition-all duration-150 cursor-pointer
|
||
${p.id===v?"bg-indigo-50/60 border-l-2 border-l-indigo-500":"hover:bg-zinc-50/80 border-l-2 border-l-transparent"}`,children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[p.pinned?c.jsx(Yc,{size:11,className:"text-indigo-400 flex-shrink-0"}):null,c.jsx("div",{className:`text-sm truncate flex-1 ${p.id===v?"text-indigo-700 font-medium":"text-zinc-600"}`,children:p.title}),c.jsxs("div",{className:"opacity-0 group-hover:opacity-100 flex gap-0.5 transition-opacity duration-150 flex-shrink-0",children:[c.jsx("button",{onClick:y=>C(p.id,y),className:`p-1 rounded-md transition-colors ${p.pinned?"text-indigo-400":"text-zinc-300 hover:text-zinc-500 hover:bg-zinc-100"}`,title:p.pinned?"取消置顶":"置顶",children:c.jsx(Yc,{size:12})}),c.jsx("button",{onClick:y=>g(p.id,y),className:"p-1 rounded-md text-zinc-300 hover:text-red-500 hover:bg-red-50 transition-colors",title:"删除",children:c.jsx(Pr,{size:12})})]})]}),c.jsx("div",{className:"mt-0.5",children:c.jsx("span",{className:"text-[10px] text-zinc-300",children:f(p.updated_at)})})]},p.id)),e.length===0&&c.jsxs("div",{className:"flex flex-col items-center justify-center mt-16 text-zinc-300",children:[c.jsx(Zo,{size:28,className:"mb-3 opacity-30",strokeWidth:1.5}),c.jsx("p",{className:"text-xs text-zinc-400",children:"暂无对话"}),c.jsx("p",{className:"text-[10px] mt-1 text-zinc-300",children:"点击上方「新对话」开始"})]})]}),c.jsx(_p,{open:l.open,title:l.title,description:l.description,confirmText:l.confirmText,cancelText:l.cancelText,variant:l.variant,onConfirm:s,onCancel:d})]})}const yx={success:vg,error:xg,info:wg},bx={success:"text-green-600 bg-green-50 border-green-200",error:"text-red-600 bg-red-50 border-red-200",info:"text-zinc-600 bg-zinc-50 border-zinc-200"};function kx({toasts:e,dismiss:t}){return c.jsx("div",{className:"fixed bottom-6 right-6 z-[100] flex flex-col gap-2 pointer-events-none",children:e.map(n=>c.jsx(wx,{item:n,dismiss:t},n.id))})}function wx({item:e,dismiss:t}){const n=yx[e.type],u=k.useRef(null);return k.useEffect(()=>{var r;(r=u.current)==null||r.animate([{opacity:0,transform:"translateY(8px)"},{opacity:1,transform:"translateY(0)"}],{duration:200,fill:"forwards"})},[]),c.jsxs("div",{ref:u,className:zt("pointer-events-auto flex items-center gap-2 px-3.5 py-2.5 rounded-lg border shadow-lg text-sm",bx[e.type]),children:[c.jsx(n,{size:15,className:"flex-shrink-0"}),c.jsx("span",{className:"flex-1",children:e.message}),c.jsx("button",{onClick:()=>t(e.id),className:"opacity-60 hover:opacity-100 ml-1",children:c.jsx(yi,{size:13})})]})}function _x({children:e}){const{pathname:t}=st(),n=Cu(),u=t.startsWith("/chat"),{toasts:r,dismiss:o}=ks();return k.useEffect(()=>{const i=l=>{l.key==="Escape"&&(l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement||l.target instanceof HTMLSelectElement||t.startsWith("/accounts/")&&t!=="/accounts"&&n("/accounts"))};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[t,n]),c.jsxs("div",{className:"h-screen flex bg-white text-zinc-900 overflow-hidden",children:[c.jsx(cx,{}),u&&c.jsx(vx,{}),c.jsx("main",{className:"flex-1 flex flex-col min-w-0 bg-gradient-to-br from-zinc-50/50 to-white",children:e}),c.jsx(kx,{toasts:r,dismiss:o})]})}class Cx{constructor(){Tu(this,"ws",null);Tu(this,"handlers",new Map);Tu(this,"reconnectTimer",null);Tu(this,"intentionallyClosed",!1)}connect(){this.intentionallyClosed=!1;const n=`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}/ws`;this.ws=new WebSocket(n),this.ws.onopen=()=>{this.emit("connected",{})},this.ws.onmessage=u=>{try{const{type:r,data:o}=JSON.parse(u.data);this.emit(r,o)}catch{}},this.ws.onclose=()=>{this.intentionallyClosed||(this.reconnectTimer=setTimeout(()=>this.connect(),3e3))}}on(t,n){this.handlers.has(t)||this.handlers.set(t,[]),this.handlers.get(t).push(n)}off(t,n){const u=this.handlers.get(t);if(u){const r=u.indexOf(n);r!==-1&&u.splice(r,1)}}send(t,n={}){var u;((u=this.ws)==null?void 0:u.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:t,...n}))}stop(){this.send("stop")}emit(t,n){(this.handlers.get(t)||[]).forEach(u=>u(n))}disconnect(){var t;this.intentionallyClosed=!0,this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=null,(t=this.ws)==null||t.close(),this.ws=null}}const G=new Cx;function Ex(e){const[t,n]=k.useState([]),[u,r]=k.useState(!1),[o,i]=k.useState(!1),[l,a]=k.useState(null),[s,d]=k.useState(null),h=k.useRef(null),m=k.useRef(null);k.useEffect(()=>{const g=()=>r(!0),f=L=>{n(L.messages||[])},p=L=>{n(B=>[...B,L])},y=L=>{L.status==="thinking"&&i(!0),L.status==="done"&&(i(!1),a(null))},b=L=>{i(!1),n(B=>[...B,{id:L.id,role:"assistant",content:"",reasoningContent:"",created_at:new Date().toISOString(),conversation_id:""}])},w=L=>{n(B=>B.map(Y=>Y.id===L.id?{...Y,reasoningContent:(Y.reasoningContent||"")+L.text}:Y))},E=L=>{n(B=>B.map(Y=>Y.id===L.id?{...Y,content:Y.content+L.text}:Y))},S=()=>{i(!1)},A=L=>{a(`执行: ${L.tool}...`)},j=L=>{a(null),i(!0),n(B=>[...B,{id:`tool-${Date.now()}`,role:"tool",content:JSON.stringify({tool:L.tool,result:L.result}),created_at:new Date().toISOString(),conversation_id:""}])},I=L=>{a(`失败: ${L.tool}`),setTimeout(()=>a(null),4e3)},M=L=>{d({phase:L.phase,progress:L.progress,currentItem:L.currentItem,totalItems:L.totalItems,status:L.status})},ue=L=>{const B=L.id;h.current=B,m.current&&(m.current(B),m.current=null)};return G.on("connected",g),G.on("history",f),G.on("message",p),G.on("status",y),G.on("message_start",b),G.on("reasoning_delta",w),G.on("text_delta",E),G.on("message_end",S),G.on("tool_start",A),G.on("tool_result",j),G.on("tool_error",I),G.on("pipeline_progress",M),G.on("conversation_created",ue),G.connect(),()=>{G.off("connected",g),G.off("history",f),G.off("message",p),G.off("status",y),G.off("message_start",b),G.off("reasoning_delta",w),G.off("text_delta",E),G.off("message_end",S),G.off("tool_start",A),G.off("tool_result",j),G.off("tool_error",I),G.off("pipeline_progress",M),G.off("conversation_created",ue),G.disconnect()}},[]),k.useEffect(()=>{u&&(e&&e!==h.current&&(h.current=e,n([]),i(!1),a(null),d(null),G.send("init",{conversationId:e})),e||(h.current=null,n([]),i(!1),a(null),d(null)))},[e,u]);const v=k.useCallback(g=>{G.send("chat",{content:g})},[]),x=k.useCallback(()=>{G.stop()},[]),_=k.useCallback((g,f)=>new Promise(p=>{m.current=p,G.send("create_conversation",{title:g,accountId:f}),setTimeout(()=>{m.current&&(m.current=null,p(""))},5e3)}),[]),C=k.useCallback(async g=>{n(f=>f.filter(p=>p.id!==g));try{await fetch(`/api/pipeline/messages/${g}`,{method:"DELETE"})}catch{}},[]);return{messages:t,connected:u,thinking:o,toolStatus:l,pipeline:s,send:v,stop:x,createConversation:_,removeMessage:C}}const u0={};function Sx(e){let t=u0[e];if(t)return t;t=u0[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function gu(e,t){typeof t!="string"&&(t=gu.defaultChars);const n=Sx(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let r="";for(let o=0,i=u.length;o<i;o+=3){const l=parseInt(u.slice(o+1,o+3),16);if(l<128){r+=n[l];continue}if((l&224)===192&&o+3<i){const a=parseInt(u.slice(o+4,o+6),16);if((a&192)===128){const s=l<<6&1984|a&63;s<128?r+="<22><>":r+=String.fromCharCode(s),o+=3;continue}}if((l&240)===224&&o+6<i){const a=parseInt(u.slice(o+4,o+6),16),s=parseInt(u.slice(o+7,o+9),16);if((a&192)===128&&(s&192)===128){const d=l<<12&61440|a<<6&4032|s&63;d<2048||d>=55296&&d<=57343?r+="<22><><EFBFBD>":r+=String.fromCharCode(d),o+=6;continue}}if((l&248)===240&&o+9<i){const a=parseInt(u.slice(o+4,o+6),16),s=parseInt(u.slice(o+7,o+9),16),d=parseInt(u.slice(o+10,o+12),16);if((a&192)===128&&(s&192)===128&&(d&192)===128){let h=l<<18&1835008|a<<12&258048|s<<6&4032|d&63;h<65536||h>1114111?r+="<22><><EFBFBD><EFBFBD>":(h-=65536,r+=String.fromCharCode(55296+(h>>10),56320+(h&1023))),o+=9;continue}}r+="<22>"}return r})}gu.defaultChars=";/?:@&=+$,#";gu.componentChars="";const r0={};function Ax(e){let t=r0[e];if(t)return t;t=r0[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Mr(e,t,n){typeof t!="string"&&(n=t,t=Mr.defaultChars),typeof n>"u"&&(n=!0);const u=Ax(t);let r="";for(let o=0,i=e.length;o<i;o++){const l=e.charCodeAt(o);if(n&&l===37&&o+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){r+=e.slice(o,o+3),o+=2;continue}if(l<128){r+=u[l];continue}if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&o+1<i){const a=e.charCodeAt(o+1);if(a>=56320&&a<=57343){r+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[o])}return r}Mr.defaultChars=";/?:@&=+$,-_.!~*'()#";Mr.componentChars="-_.!~*'()";function ws(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Yo(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const zx=/^([a-z0-9.+-]+:)/i,Fx=/:[0-9]*$/,Dx=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,jx=["<",">",'"',"`"," ","\r",`
|
||
`," "],Nx=["{","}","|","\\","^","`"].concat(jx),Tx=["'"].concat(Nx),o0=["%","/","?",";","#"].concat(Tx),i0=["/","?","#"],Rx=255,l0=/^[+a-z0-9A-Z_-]{0,63}$/,Px=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,a0={javascript:!0,"javascript:":!0},s0={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function _s(e,t){if(e&&e instanceof Yo)return e;const n=new Yo;return n.parse(e,t),n}Yo.prototype.parse=function(e,t){let n,u,r,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const s=Dx.exec(o);if(s)return this.pathname=s[1],s[2]&&(this.search=s[2]),this}let i=zx.exec(o);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,o=o.substr(i.length)),(t||i||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=o.substr(0,2)==="//",r&&!(i&&a0[i])&&(o=o.substr(2),this.slashes=!0)),!a0[i]&&(r||i&&!s0[i])){let s=-1;for(let x=0;x<i0.length;x++)u=o.indexOf(i0[x]),u!==-1&&(s===-1||u<s)&&(s=u);let d,h;s===-1?h=o.lastIndexOf("@"):h=o.lastIndexOf("@",s),h!==-1&&(d=o.slice(0,h),o=o.slice(h+1),this.auth=d),s=-1;for(let x=0;x<o0.length;x++)u=o.indexOf(o0[x]),u!==-1&&(s===-1||u<s)&&(s=u);s===-1&&(s=o.length),o[s-1]===":"&&s--;const m=o.slice(0,s);o=o.slice(s),this.parseHost(m),this.hostname=this.hostname||"";const v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v){const x=this.hostname.split(/\./);for(let _=0,C=x.length;_<C;_++){const g=x[_];if(g&&!g.match(l0)){let f="";for(let p=0,y=g.length;p<y;p++)g.charCodeAt(p)>127?f+="x":f+=g[p];if(!f.match(l0)){const p=x.slice(0,_),y=x.slice(_+1),b=g.match(Px);b&&(p.push(b[1]),y.unshift(b[2])),y.length&&(o=y.join(".")+o),this.hostname=p.join(".");break}}}}this.hostname.length>Rx&&(this.hostname=""),v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const l=o.indexOf("#");l!==-1&&(this.hash=o.substr(l),o=o.slice(0,l));const a=o.indexOf("?");return a!==-1&&(this.search=o.substr(a),o=o.slice(0,a)),o&&(this.pathname=o),s0[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Yo.prototype.parseHost=function(e){let t=Fx.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Mx=Object.freeze(Object.defineProperty({__proto__:null,decode:gu,encode:Mr,format:ws,parse:_s},Symbol.toStringTag,{value:"Module"})),Sp=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ap=/[\0-\x1F\x7F-\x9F]/,Lx=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Cs=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,zp=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Fp=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Ix=Object.freeze(Object.defineProperty({__proto__:null,Any:Sp,Cc:Ap,Cf:Lx,P:Cs,S:zp,Z:Fp},Symbol.toStringTag,{value:"Module"})),Ox=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),$x=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var rl;const Bx=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Ux=(rl=String.fromCodePoint)!==null&&rl!==void 0?rl:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Hx(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Bx.get(e))!==null&&t!==void 0?t:e}var we;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(we||(we={}));const Vx=32;var sn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(sn||(sn={}));function ha(e){return e>=we.ZERO&&e<=we.NINE}function qx(e){return e>=we.UPPER_A&&e<=we.UPPER_F||e>=we.LOWER_A&&e<=we.LOWER_F}function Wx(e){return e>=we.UPPER_A&&e<=we.UPPER_Z||e>=we.LOWER_A&&e<=we.LOWER_Z||ha(e)}function Kx(e){return e===we.EQUALS||Wx(e)}var ye;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(ye||(ye={}));var on;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(on||(on={}));class Gx{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=ye.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=on.Strict}startEntity(t){this.decodeMode=t,this.state=ye.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ye.EntityStart:return t.charCodeAt(n)===we.NUM?(this.state=ye.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ye.NamedEntity,this.stateNamedEntity(t,n));case ye.NumericStart:return this.stateNumericStart(t,n);case ye.NumericDecimal:return this.stateNumericDecimal(t,n);case ye.NumericHex:return this.stateNumericHex(t,n);case ye.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Vx)===we.LOWER_X?(this.state=ye.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ye.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,r){if(n!==u){const o=u-n;this.result=this.result*Math.pow(r,o)+parseInt(t.substr(n,o),r),this.consumed+=o}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(ha(r)||qx(r))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(ha(r))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===we.SEMI)this.consumed+=1;else if(this.decodeMode===on.Strict)return 0;return this.emitCodePoint(Hx(this.result),this.consumed),this.errors&&(t!==we.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let r=u[this.treeIndex],o=(r&sn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const i=t.charCodeAt(n);if(this.treeIndex=Qx(u,r,this.treeIndex+Math.max(1,o),i),this.treeIndex<0)return this.result===0||this.decodeMode===on.Attribute&&(o===0||Kx(i))?0:this.emitNotTerminatedNamedEntity();if(r=u[this.treeIndex],o=(r&sn.VALUE_LENGTH)>>14,o!==0){if(i===we.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==on.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,r=(u[n]&sn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~sn.VALUE_LENGTH:r[t+1],u),n===3&&this.emitCodePoint(r[t+2],u),u}end(){var t;switch(this.state){case ye.NamedEntity:return this.result!==0&&(this.decodeMode!==on.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ye.NumericDecimal:return this.emitNumericEntity(0,2);case ye.NumericHex:return this.emitNumericEntity(0,3);case ye.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ye.EntityStart:return 0}}}function Dp(e){let t="";const n=new Gx(e,u=>t+=Ux(u));return function(r,o){let i=0,l=0;for(;(l=r.indexOf("&",l))>=0;){t+=r.slice(i,l),n.startEntity(o);const s=n.write(r,l+1);if(s<0){i=l+n.end();break}i=l+s,l=s===0?i+1:i}const a=t+r.slice(i);return t="",a}}function Qx(e,t,n,u){const r=(t&sn.BRANCH_LENGTH)>>7,o=t&sn.JUMP_TABLE;if(r===0)return o!==0&&u===o?n:-1;if(o){const a=u-o;return a<0||a>=r?-1:e[n+a]-1}let i=n,l=i+r-1;for(;i<=l;){const a=i+l>>>1,s=e[a];if(s<u)i=a+1;else if(s>u)l=a-1;else return e[a+r]}return-1}const Zx=Dp(Ox);Dp($x);function jp(e,t=on.Legacy){return Zx(e,t)}function Yx(e){return Object.prototype.toString.call(e)}function Es(e){return Yx(e)==="[object String]"}const Jx=Object.prototype.hasOwnProperty;function Xx(e,t){return Jx.call(e,t)}function bi(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function Np(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Ss(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Jo(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Tp=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,e3=/&([a-z#][a-z0-9]{1,31});/gi,t3=new RegExp(Tp.source+"|"+e3.source,"gi"),n3=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function u3(e,t){if(t.charCodeAt(0)===35&&n3.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Ss(u)?Jo(u):e}const n=jp(e);return n!==e?n:e}function r3(e){return e.indexOf("\\")<0?e:e.replace(Tp,"$1")}function xu(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(t3,function(t,n,u){return n||u3(t,u)})}const o3=/[&<>"]/,i3=/[&<>"]/g,l3={"&":"&","<":"<",">":">",'"':"""};function a3(e){return l3[e]}function bn(e){return o3.test(e)?e.replace(i3,a3):e}const s3=/[.?*+^$[\]\\(){}|-]/g;function c3(e){return e.replace(s3,"\\$&")}function X(e){switch(e){case 9:case 32:return!0}return!1}function Cr(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Er(e){return Cs.test(e)||zp.test(e)}function Sr(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ki(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const d3={mdurl:Mx,ucmicro:Ix},f3=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Np,assign:bi,escapeHtml:bn,escapeRE:c3,fromCodePoint:Jo,has:Xx,isMdAsciiPunct:Sr,isPunctChar:Er,isSpace:X,isString:Es,isValidEntityCode:Ss,isWhiteSpace:Cr,lib:d3,normalizeReference:ki,unescapeAll:xu,unescapeMd:r3},Symbol.toStringTag,{value:"Module"}));function p3(e,t,n){let u,r,o,i;const l=e.posMax,a=e.pos;for(e.pos=t+1,u=1;e.pos<l;){if(o=e.src.charCodeAt(e.pos),o===93&&(u--,u===0)){r=!0;break}if(i=e.pos,e.md.inline.skipToken(e),o===91){if(i===e.pos-1)u++;else if(n)return e.pos=a,-1}}let s=-1;return r&&(s=e.pos),e.pos=a,s}function h3(e,t,n){let u,r=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(u=e.charCodeAt(r),u===10||u===60)return o;if(u===62)return o.pos=r+1,o.str=xu(e.slice(t+1,r)),o.ok=!0,o;if(u===92&&r+1<n){r+=2;continue}r++}return o}let i=0;for(;r<n&&(u=e.charCodeAt(r),!(u===32||u<32||u===127));){if(u===92&&r+1<n){if(e.charCodeAt(r+1)===32)break;r+=2;continue}if(u===40&&(i++,i>32))return o;if(u===41){if(i===0)break;i--}r++}return t===r||i!==0||(o.str=xu(e.slice(t,r)),o.pos=r,o.ok=!0),o}function m3(e,t,n,u){let r,o=t;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)i.str=u.str,i.marker=u.marker;else{if(o>=n)return i;let l=e.charCodeAt(o);if(l!==34&&l!==39&&l!==40)return i;t++,o++,l===40&&(l=41),i.marker=l}for(;o<n;){if(r=e.charCodeAt(o),r===i.marker)return i.pos=o+1,i.str+=xu(e.slice(t,o)),i.ok=!0,i;if(r===40&&i.marker===41)return i;r===92&&o+1<n&&o++,o++}return i.can_continue=!0,i.str+=xu(e.slice(t,o)),i}const g3=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:h3,parseLinkLabel:p3,parseLinkTitle:m3},Symbol.toStringTag,{value:"Module"})),Tt={};Tt.code_inline=function(e,t,n,u,r){const o=e[t];return"<code"+r.renderAttrs(o)+">"+bn(o.content)+"</code>"};Tt.code_block=function(e,t,n,u,r){const o=e[t];return"<pre"+r.renderAttrs(o)+"><code>"+bn(e[t].content)+`</code></pre>
|
||
`};Tt.fence=function(e,t,n,u,r){const o=e[t],i=o.info?xu(o.info).trim():"";let l="",a="";if(i){const d=i.split(/(\s+)/g);l=d[0],a=d.slice(2).join("")}let s;if(n.highlight?s=n.highlight(o.content,l,a)||bn(o.content):s=bn(o.content),s.indexOf("<pre")===0)return s+`
|
||
`;if(i){const d=o.attrIndex("class"),h=o.attrs?o.attrs.slice():[];d<0?h.push(["class",n.langPrefix+l]):(h[d]=h[d].slice(),h[d][1]+=" "+n.langPrefix+l);const m={attrs:h};return`<pre><code${r.renderAttrs(m)}>${s}</code></pre>
|
||
`}return`<pre><code${r.renderAttrs(o)}>${s}</code></pre>
|
||
`};Tt.image=function(e,t,n,u,r){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=r.renderInlineAsText(o.children,n,u),r.renderToken(e,t,n)};Tt.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
||
`:`<br>
|
||
`};Tt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
||
`:`<br>
|
||
`:`
|
||
`};Tt.text=function(e,t){return bn(e[t].content)};Tt.html_block=function(e,t){return e[t].content};Tt.html_inline=function(e,t){return e[t].content};function Su(){this.rules=bi({},Tt)}Su.prototype.renderAttrs=function(t){let n,u,r;if(!t.attrs)return"";for(r="",n=0,u=t.attrs.length;n<u;n++)r+=" "+bn(t.attrs[n][0])+'="'+bn(t.attrs[n][1])+'"';return r};Su.prototype.renderToken=function(t,n,u){const r=t[n];let o="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&t[n-1].hidden&&(o+=`
|
||
`),o+=(r.nesting===-1?"</":"<")+r.tag,o+=this.renderAttrs(r),r.nesting===0&&u.xhtmlOut&&(o+=" /");let i=!1;if(r.block&&(i=!0,r.nesting===1&&n+1<t.length)){const l=t[n+1];(l.type==="inline"||l.hidden||l.nesting===-1&&l.tag===r.tag)&&(i=!1)}return o+=i?`>
|
||
`:">",o};Su.prototype.renderInline=function(e,t,n){let u="";const r=this.rules;for(let o=0,i=e.length;o<i;o++){const l=e[o].type;typeof r[l]<"u"?u+=r[l](e,o,t,n,this):u+=this.renderToken(e,o,t)}return u};Su.prototype.renderInlineAsText=function(e,t,n){let u="";for(let r=0,o=e.length;r<o;r++)switch(e[r].type){case"text":u+=e[r].content;break;case"image":u+=this.renderInlineAsText(e[r].children,t,n);break;case"html_inline":case"html_block":u+=e[r].content;break;case"softbreak":case"hardbreak":u+=`
|
||
`;break}return u};Su.prototype.render=function(e,t,n){let u="";const r=this.rules;for(let o=0,i=e.length;o<i;o++){const l=e[o].type;l==="inline"?u+=this.renderInline(e[o].children,t,n):typeof r[l]<"u"?u+=r[l](e,o,t,n,this):u+=this.renderToken(e,o,t,n)}return u};function He(){this.__rules__=[],this.__cache__=null}He.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};He.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})};He.prototype.at=function(e,t,n){const u=this.__find__(e),r=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=r.alt||[],this.__cache__=null};He.prototype.before=function(e,t,n,u){const r=this.__find__(e),o=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};He.prototype.after=function(e,t,n,u){const r=this.__find__(e),o=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};He.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null};He.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!0,n.push(u)},this),this.__cache__=null,n};He.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};He.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!1,n.push(u)},this),this.__cache__=null,n};He.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function kt(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}kt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,r=n.length;u<r;u++)if(n[u][0]===t)return u;return-1};kt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};kt.prototype.attrSet=function(t,n){const u=this.attrIndex(t),r=[t,n];u<0?this.attrPush(r):this.attrs[u]=r};kt.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u};kt.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function Rp(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Rp.prototype.Token=kt;const x3=/\r\n?|\n/g,v3=/\0/g;function y3(e){let t;t=e.src.replace(x3,`
|
||
`),t=t.replace(v3,"<22>"),e.src=t}function b3(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function k3(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const r=t[n];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function w3(e){return/^<a[>\s]/i.test(e)}function _3(e){return/^<\/a\s*>/i.test(e)}function C3(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,o=0;for(let i=r.length-1;i>=0;i--){const l=r[i];if(l.type==="link_close"){for(i--;r[i].level!==l.level&&r[i].type!=="link_open";)i--;continue}if(l.type==="html_inline"&&(w3(l.content)&&o>0&&o--,_3(l.content)&&o++),!(o>0)&&l.type==="text"&&e.md.linkify.test(l.content)){const a=l.content;let s=e.md.linkify.match(a);const d=[];let h=l.level,m=0;s.length>0&&s[0].index===0&&i>0&&r[i-1].type==="text_special"&&(s=s.slice(1));for(let v=0;v<s.length;v++){const x=s[v].url,_=e.md.normalizeLink(x);if(!e.md.validateLink(_))continue;let C=s[v].text;s[v].schema?s[v].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,"");const g=s[v].index;if(g>m){const b=new e.Token("text","",0);b.content=a.slice(m,g),b.level=h,d.push(b)}const f=new e.Token("link_open","a",1);f.attrs=[["href",_]],f.level=h++,f.markup="linkify",f.info="auto",d.push(f);const p=new e.Token("text","",0);p.content=C,p.level=h,d.push(p);const y=new e.Token("link_close","a",-1);y.level=--h,y.markup="linkify",y.info="auto",d.push(y),m=s[v].lastIndex}if(m<a.length){const v=new e.Token("text","",0);v.content=a.slice(m),v.level=h,d.push(v)}t[n].children=r=Np(r,i,d)}}}}const Pp=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,E3=/\((c|tm|r)\)/i,S3=/\((c|tm|r)\)/ig,A3={c:"©",r:"®",tm:"™"};function z3(e,t){return A3[t.toLowerCase()]}function F3(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(S3,z3)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function D3(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&Pp.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function j3(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(E3.test(e.tokens[t].content)&&F3(e.tokens[t].children),Pp.test(e.tokens[t].content)&&D3(e.tokens[t].children))}const N3=/['"]/,c0=/['"]/g,d0="’";function oo(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function T3(e,t){let n;const u=[];for(let r=0;r<e.length;r++){const o=e[r],i=e[r].level;for(n=u.length-1;n>=0&&!(u[n].level<=i);n--);if(u.length=n+1,o.type!=="text")continue;let l=o.content,a=0,s=l.length;e:for(;a<s;){c0.lastIndex=a;const d=c0.exec(l);if(!d)break;let h=!0,m=!0;a=d.index+1;const v=d[0]==="'";let x=32;if(d.index-1>=0)x=l.charCodeAt(d.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){x=e[n].content.charCodeAt(e[n].content.length-1);break}let _=32;if(a<s)_=l.charCodeAt(a);else for(n=r+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){_=e[n].content.charCodeAt(0);break}const C=Sr(x)||Er(String.fromCharCode(x)),g=Sr(_)||Er(String.fromCharCode(_)),f=Cr(x),p=Cr(_);if(p?h=!1:g&&(f||C||(h=!1)),f?m=!1:C&&(p||g||(m=!1)),_===34&&d[0]==='"'&&x>=48&&x<=57&&(m=h=!1),h&&m&&(h=C,m=g),!h&&!m){v&&(o.content=oo(o.content,d.index,d0));continue}if(m)for(n=u.length-1;n>=0;n--){let y=u[n];if(u[n].level<i)break;if(y.single===v&&u[n].level===i){y=u[n];let b,w;v?(b=t.md.options.quotes[2],w=t.md.options.quotes[3]):(b=t.md.options.quotes[0],w=t.md.options.quotes[1]),o.content=oo(o.content,d.index,w),e[y.token].content=oo(e[y.token].content,y.pos,b),a+=w.length-1,y.token===r&&(a+=b.length-1),l=o.content,s=l.length,u.length=n;continue e}}h?u.push({token:r,pos:d.index,single:v,level:i}):m&&v&&(o.content=oo(o.content,d.index,d0))}}}function R3(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!N3.test(e.tokens[t].content)||T3(e.tokens[t].children,e)}function P3(e){let t,n;const u=e.tokens,r=u.length;for(let o=0;o<r;o++){if(u[o].type!=="inline")continue;const i=u[o].children,l=i.length;for(t=0;t<l;t++)i[t].type==="text_special"&&(i[t].type="text");for(t=n=0;t<l;t++)i[t].type==="text"&&t+1<l&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}const ol=[["normalize",y3],["block",b3],["inline",k3],["linkify",C3],["replacements",j3],["smartquotes",R3],["text_join",P3]];function As(){this.ruler=new He;for(let e=0;e<ol.length;e++)this.ruler.push(ol[e][0],ol[e][1])}As.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)};As.prototype.State=Rp;function Rt(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let o=0,i=0,l=0,a=0,s=r.length,d=!1;i<s;i++){const h=r.charCodeAt(i);if(!d)if(X(h)){l++,h===9?a+=4-a%4:a++;continue}else d=!0;(h===10||i===s-1)&&(h!==10&&i++,this.bMarks.push(o),this.eMarks.push(i),this.tShift.push(l),this.sCount.push(a),this.bsCount.push(0),d=!1,l=0,a=0,o=i+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Rt.prototype.push=function(e,t,n){const u=new kt(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u};Rt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Rt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Rt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!X(u))break}return t};Rt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!X(this.src.charCodeAt(--t)))return t+1;return t};Rt.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t};Rt.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Rt.prototype.getLines=function(t,n,u,r){if(t>=n)return"";const o=new Array(n-t);for(let i=0,l=t;l<n;l++,i++){let a=0;const s=this.bMarks[l];let d=s,h;for(l+1<n||r?h=this.eMarks[l]+1:h=this.eMarks[l];d<h&&a<u;){const m=this.src.charCodeAt(d);if(X(m))m===9?a+=4-(a+this.bsCount[l])%4:a++;else if(d-s<this.tShift[l])a++;else break;d++}a>u?o[i]=new Array(a-u+1).join(" ")+this.src.slice(d,h):o[i]=this.src.slice(d,h)}return o.join("")};Rt.prototype.Token=kt;const M3=65536;function il(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function f0(e){const t=[],n=e.length;let u=0,r=e.charCodeAt(u),o=!1,i=0,l="";for(;u<n;)r===124&&(o?(l+=e.substring(i,u-1),i=u):(t.push(l+e.substring(i,u)),l="",i=u+1)),o=r===92,u++,r=e.charCodeAt(u);return t.push(l+e.substring(i)),t}function L3(e,t,n,u){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let o=e.bMarks[r]+e.tShift[r];if(o>=e.eMarks[r])return!1;const i=e.src.charCodeAt(o++);if(i!==124&&i!==45&&i!==58||o>=e.eMarks[r])return!1;const l=e.src.charCodeAt(o++);if(l!==124&&l!==45&&l!==58&&!X(l)||i===45&&X(l))return!1;for(;o<e.eMarks[r];){const y=e.src.charCodeAt(o);if(y!==124&&y!==45&&y!==58&&!X(y))return!1;o++}let a=il(e,t+1),s=a.split("|");const d=[];for(let y=0;y<s.length;y++){const b=s[y].trim();if(!b){if(y===0||y===s.length-1)continue;return!1}if(!/^:?-+:?$/.test(b))return!1;b.charCodeAt(b.length-1)===58?d.push(b.charCodeAt(0)===58?"center":"right"):b.charCodeAt(0)===58?d.push("left"):d.push("")}if(a=il(e,t).trim(),a.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;s=f0(a),s.length&&s[0]===""&&s.shift(),s.length&&s[s.length-1]===""&&s.pop();const h=s.length;if(h===0||h!==d.length)return!1;if(u)return!0;const m=e.parentType;e.parentType="table";const v=e.md.block.ruler.getRules("blockquote"),x=e.push("table_open","table",1),_=[t,0];x.map=_;const C=e.push("thead_open","thead",1);C.map=[t,t+1];const g=e.push("tr_open","tr",1);g.map=[t,t+1];for(let y=0;y<s.length;y++){const b=e.push("th_open","th",1);d[y]&&(b.attrs=[["style","text-align:"+d[y]]]);const w=e.push("inline","",0);w.content=s[y].trim(),w.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let f,p=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let y=!1;for(let w=0,E=v.length;w<E;w++)if(v[w](e,r,n,!0)){y=!0;break}if(y||(a=il(e,r).trim(),!a)||e.sCount[r]-e.blkIndent>=4||(s=f0(a),s.length&&s[0]===""&&s.shift(),s.length&&s[s.length-1]===""&&s.pop(),p+=h-s.length,p>M3))break;if(r===t+2){const w=e.push("tbody_open","tbody",1);w.map=f=[t+2,0]}const b=e.push("tr_open","tr",1);b.map=[r,r+1];for(let w=0;w<h;w++){const E=e.push("td_open","td",1);d[w]&&(E.attrs=[["style","text-align:"+d[w]]]);const S=e.push("inline","",0);S.content=s[w]?s[w].trim():"",S.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return f&&(e.push("tbody_close","tbody",-1),f[1]=r),e.push("table_close","table",-1),_[1]=r,e.parentType=m,e.line=r,!0}function I3(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,r=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,r=u;continue}break}e.line=r;const o=e.push("code_block","code",0);return o.content=e.getLines(t,r,4+e.blkIndent,!1)+`
|
||
`,o.map=[t,e.line],!0}function O3(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>o)return!1;const i=e.src.charCodeAt(r);if(i!==126&&i!==96)return!1;let l=r;r=e.skipChars(r,i);let a=r-l;if(a<3)return!1;const s=e.src.slice(l,r),d=e.src.slice(r,o);if(i===96&&d.indexOf(String.fromCharCode(i))>=0)return!1;if(u)return!0;let h=t,m=!1;for(;h++,!(h>=n||(r=l=e.bMarks[h]+e.tShift[h],o=e.eMarks[h],r<o&&e.sCount[h]<e.blkIndent));)if(e.src.charCodeAt(r)===i&&!(e.sCount[h]-e.blkIndent>=4)&&(r=e.skipChars(r,i),!(r-l<a)&&(r=e.skipSpaces(r),!(r<o)))){m=!0;break}a=e.sCount[t],e.line=h+(m?1:0);const v=e.push("fence","code",0);return v.info=d,v.content=e.getLines(t+1,h,a,!0),v.markup=s,v.map=[t,e.line],!0}function $3(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const i=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(u)return!0;const l=[],a=[],s=[],d=[],h=e.md.block.ruler.getRules("blockquote"),m=e.parentType;e.parentType="blockquote";let v=!1,x;for(x=t;x<n;x++){const p=e.sCount[x]<e.blkIndent;if(r=e.bMarks[x]+e.tShift[x],o=e.eMarks[x],r>=o)break;if(e.src.charCodeAt(r++)===62&&!p){let b=e.sCount[x]+1,w,E;e.src.charCodeAt(r)===32?(r++,b++,E=!1,w=!0):e.src.charCodeAt(r)===9?(w=!0,(e.bsCount[x]+b)%4===3?(r++,b++,E=!1):E=!0):w=!1;let S=b;for(l.push(e.bMarks[x]),e.bMarks[x]=r;r<o;){const A=e.src.charCodeAt(r);if(X(A))A===9?S+=4-(S+e.bsCount[x]+(E?1:0))%4:S++;else break;r++}v=r>=o,a.push(e.bsCount[x]),e.bsCount[x]=e.sCount[x]+1+(w?1:0),s.push(e.sCount[x]),e.sCount[x]=S-b,d.push(e.tShift[x]),e.tShift[x]=r-e.bMarks[x];continue}if(v)break;let y=!1;for(let b=0,w=h.length;b<w;b++)if(h[b](e,x,n,!0)){y=!0;break}if(y){e.lineMax=x,e.blkIndent!==0&&(l.push(e.bMarks[x]),a.push(e.bsCount[x]),d.push(e.tShift[x]),s.push(e.sCount[x]),e.sCount[x]-=e.blkIndent);break}l.push(e.bMarks[x]),a.push(e.bsCount[x]),d.push(e.tShift[x]),s.push(e.sCount[x]),e.sCount[x]=-1}const _=e.blkIndent;e.blkIndent=0;const C=e.push("blockquote_open","blockquote",1);C.markup=">";const g=[t,0];C.map=g,e.md.block.tokenize(e,t,x);const f=e.push("blockquote_close","blockquote",-1);f.markup=">",e.lineMax=i,e.parentType=m,g[1]=e.line;for(let p=0;p<d.length;p++)e.bMarks[p+t]=l[p],e.tShift[p+t]=d[p],e.sCount[p+t]=s[p],e.bsCount[p+t]=a[p];return e.blkIndent=_,!0}function B3(e,t,n,u){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(o++);if(i!==42&&i!==45&&i!==95)return!1;let l=1;for(;o<r;){const s=e.src.charCodeAt(o++);if(s!==i&&!X(s))return!1;s===i&&l++}if(l<3)return!1;if(u)return!0;e.line=t+1;const a=e.push("hr","hr",0);return a.map=[t,e.line],a.markup=Array(l+1).join(String.fromCharCode(i)),!0}function p0(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(u++);if(r!==42&&r!==45&&r!==43)return-1;if(u<n){const o=e.src.charCodeAt(u);if(!X(o))return-1}return u}function h0(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let r=n;if(r+1>=u)return-1;let o=e.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=u)return-1;if(o=e.src.charCodeAt(r++),o>=48&&o<=57){if(r-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return r<u&&(o=e.src.charCodeAt(r),!X(o))?-1:r}function U3(e,t){const n=e.level+2;for(let u=t+2,r=e.tokens.length-2;u<r;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function H3(e,t,n,u){let r,o,i,l,a=t,s=!0;if(e.sCount[a]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[a]-e.listIndent>=4&&e.sCount[a]<e.blkIndent)return!1;let d=!1;u&&e.parentType==="paragraph"&&e.sCount[a]>=e.blkIndent&&(d=!0);let h,m,v;if((v=h0(e,a))>=0){if(h=!0,i=e.bMarks[a]+e.tShift[a],m=Number(e.src.slice(i,v-1)),d&&m!==1)return!1}else if((v=p0(e,a))>=0)h=!1;else return!1;if(d&&e.skipSpaces(v)>=e.eMarks[a])return!1;if(u)return!0;const x=e.src.charCodeAt(v-1),_=e.tokens.length;h?(l=e.push("ordered_list_open","ol",1),m!==1&&(l.attrs=[["start",m]])):l=e.push("bullet_list_open","ul",1);const C=[a,0];l.map=C,l.markup=String.fromCharCode(x);let g=!1;const f=e.md.block.ruler.getRules("list"),p=e.parentType;for(e.parentType="list";a<n;){o=v,r=e.eMarks[a];const y=e.sCount[a]+v-(e.bMarks[a]+e.tShift[a]);let b=y;for(;o<r;){const B=e.src.charCodeAt(o);if(B===9)b+=4-(b+e.bsCount[a])%4;else if(B===32)b++;else break;o++}const w=o;let E;w>=r?E=1:E=b-y,E>4&&(E=1);const S=y+E;l=e.push("list_item_open","li",1),l.markup=String.fromCharCode(x);const A=[a,0];l.map=A,h&&(l.info=e.src.slice(i,v-1));const j=e.tight,I=e.tShift[a],M=e.sCount[a],ue=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=S,e.tight=!0,e.tShift[a]=w-e.bMarks[a],e.sCount[a]=b,w>=r&&e.isEmpty(a+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,a,n,!0),(!e.tight||g)&&(s=!1),g=e.line-a>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ue,e.tShift[a]=I,e.sCount[a]=M,e.tight=j,l=e.push("list_item_close","li",-1),l.markup=String.fromCharCode(x),a=e.line,A[1]=a,a>=n||e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)break;let L=!1;for(let B=0,Y=f.length;B<Y;B++)if(f[B](e,a,n,!0)){L=!0;break}if(L)break;if(h){if(v=h0(e,a),v<0)break;i=e.bMarks[a]+e.tShift[a]}else if(v=p0(e,a),v<0)break;if(x!==e.src.charCodeAt(v-1))break}return h?l=e.push("ordered_list_close","ol",-1):l=e.push("bullet_list_close","ul",-1),l.markup=String.fromCharCode(x),C[1]=a,e.line=a,e.parentType=p,s&&U3(e,_),!0}function V3(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],i=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function l(f){const p=e.lineMax;if(f>=p||e.isEmpty(f))return null;let y=!1;if(e.sCount[f]-e.blkIndent>3&&(y=!0),e.sCount[f]<0&&(y=!0),!y){const E=e.md.block.ruler.getRules("reference"),S=e.parentType;e.parentType="reference";let A=!1;for(let j=0,I=E.length;j<I;j++)if(E[j](e,f,p,!0)){A=!0;break}if(e.parentType=S,A)return null}const b=e.bMarks[f]+e.tShift[f],w=e.eMarks[f];return e.src.slice(b,w+1)}let a=e.src.slice(r,o+1);o=a.length;let s=-1;for(r=1;r<o;r++){const f=a.charCodeAt(r);if(f===91)return!1;if(f===93){s=r;break}else if(f===10){const p=l(i);p!==null&&(a+=p,o=a.length,i++)}else if(f===92&&(r++,r<o&&a.charCodeAt(r)===10)){const p=l(i);p!==null&&(a+=p,o=a.length,i++)}}if(s<0||a.charCodeAt(s+1)!==58)return!1;for(r=s+2;r<o;r++){const f=a.charCodeAt(r);if(f===10){const p=l(i);p!==null&&(a+=p,o=a.length,i++)}else if(!X(f))break}const d=e.md.helpers.parseLinkDestination(a,r,o);if(!d.ok)return!1;const h=e.md.normalizeLink(d.str);if(!e.md.validateLink(h))return!1;r=d.pos;const m=r,v=i,x=r;for(;r<o;r++){const f=a.charCodeAt(r);if(f===10){const p=l(i);p!==null&&(a+=p,o=a.length,i++)}else if(!X(f))break}let _=e.md.helpers.parseLinkTitle(a,r,o);for(;_.can_continue;){const f=l(i);if(f===null)break;a+=f,r=o,o=a.length,i++,_=e.md.helpers.parseLinkTitle(a,r,o,_)}let C;for(r<o&&x!==r&&_.ok?(C=_.str,r=_.pos):(C="",r=m,i=v);r<o;){const f=a.charCodeAt(r);if(!X(f))break;r++}if(r<o&&a.charCodeAt(r)!==10&&C)for(C="",r=m,i=v;r<o;){const f=a.charCodeAt(r);if(!X(f))break;r++}if(r<o&&a.charCodeAt(r)!==10)return!1;const g=ki(a.slice(1,s));return g?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[g]>"u"&&(e.env.references[g]={title:C,href:h}),e.line=i),!0):!1}const q3=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],W3="[a-zA-Z_:][a-zA-Z0-9:._-]*",K3="[^\"'=<>`\\x00-\\x20]+",G3="'[^']*'",Q3='"[^"]*"',Z3="(?:"+K3+"|"+G3+"|"+Q3+")",Y3="(?:\\s+"+W3+"(?:\\s*=\\s*"+Z3+")?)",Mp="<[A-Za-z][A-Za-z0-9\\-]*"+Y3+"*\\s*\\/?>",Lp="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",J3="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",X3="<[?][\\s\\S]*?[?]>",ev="<![A-Za-z][^>]*>",tv="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",nv=new RegExp("^(?:"+Mp+"|"+Lp+"|"+J3+"|"+X3+"|"+ev+"|"+tv+")"),uv=new RegExp("^(?:"+Mp+"|"+Lp+")"),Un=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+q3.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(uv.source+"\\s*$"),/^$/,!1]];function rv(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let i=e.src.slice(r,o),l=0;for(;l<Un.length&&!Un[l][0].test(i);l++);if(l===Un.length)return!1;if(u)return Un[l][2];let a=t+1;if(!Un[l][1].test(i)){for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(r=e.bMarks[a]+e.tShift[a],o=e.eMarks[a],i=e.src.slice(r,o),Un[l][1].test(i)){i.length!==0&&a++;break}}e.line=a;const s=e.push("html_block","",0);return s.map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}function ov(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(r);if(i!==35||r>=o)return!1;let l=1;for(i=e.src.charCodeAt(++r);i===35&&r<o&&l<=6;)l++,i=e.src.charCodeAt(++r);if(l>6||r<o&&!X(i))return!1;if(u)return!0;o=e.skipSpacesBack(o,r);const a=e.skipCharsBack(o,35,r);a>r&&X(e.src.charCodeAt(a-1))&&(o=a),e.line=t+1;const s=e.push("heading_open","h"+String(l),1);s.markup="########".slice(0,l),s.map=[t,e.line];const d=e.push("inline","",0);d.content=e.src.slice(r,o).trim(),d.map=[t,e.line],d.children=[];const h=e.push("heading_close","h"+String(l),-1);return h.markup="########".slice(0,l),!0}function iv(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let o=0,i,l=t+1;for(;l<n&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3)continue;if(e.sCount[l]>=e.blkIndent){let v=e.bMarks[l]+e.tShift[l];const x=e.eMarks[l];if(v<x&&(i=e.src.charCodeAt(v),(i===45||i===61)&&(v=e.skipChars(v,i),v=e.skipSpaces(v),v>=x))){o=i===61?1:2;break}}if(e.sCount[l]<0)continue;let m=!1;for(let v=0,x=u.length;v<x;v++)if(u[v](e,l,n,!0)){m=!0;break}if(m)break}if(!o)return!1;const a=e.getLines(t,l,e.blkIndent,!1).trim();e.line=l+1;const s=e.push("heading_open","h"+String(o),1);s.markup=String.fromCharCode(i),s.map=[t,e.line];const d=e.push("inline","",0);d.content=a,d.map=[t,e.line-1],d.children=[];const h=e.push("heading_close","h"+String(o),-1);return h.markup=String.fromCharCode(i),e.parentType=r,!0}function lv(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let s=!1;for(let d=0,h=u.length;d<h;d++)if(u[d](e,o,n,!0)){s=!0;break}if(s)break}const i=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;const l=e.push("paragraph_open","p",1);l.map=[t,e.line];const a=e.push("inline","",0);return a.content=i,a.map=[t,e.line],a.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const io=[["table",L3,["paragraph","reference"]],["code",I3],["fence",O3,["paragraph","reference","blockquote","list"]],["blockquote",$3,["paragraph","reference","blockquote","list"]],["hr",B3,["paragraph","reference","blockquote","list"]],["list",H3,["paragraph","reference","blockquote"]],["reference",V3],["html_block",rv,["paragraph","reference","blockquote"]],["heading",ov,["paragraph","reference","blockquote"]],["lheading",iv],["paragraph",lv]];function wi(){this.ruler=new He;for(let e=0;e<io.length;e++)this.ruler.push(io[e][0],io[e][1],{alt:(io[e][2]||[]).slice()})}wi.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),r=u.length,o=e.md.options.maxNesting;let i=t,l=!1;for(;i<n&&(e.line=i=e.skipEmptyLines(i),!(i>=n||e.sCount[i]<e.blkIndent));){if(e.level>=o){e.line=n;break}const a=e.line;let s=!1;for(let d=0;d<r;d++)if(s=u[d](e,i,n,!1),s){if(a>=e.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),i=e.line,i<n&&e.isEmpty(i)&&(l=!0,i++,e.line=i)}};wi.prototype.parse=function(e,t,n,u){if(!e)return;const r=new this.State(e,t,n,u);this.tokenize(r,r.line,r.lineMax)};wi.prototype.State=Rt;function Lr(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Lr.prototype.pushPending=function(){const e=new kt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Lr.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new kt(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(r),u};Lr.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===u;)o++;const i=o-e,l=o<n?this.src.charCodeAt(o):32,a=Sr(r)||Er(String.fromCharCode(r)),s=Sr(l)||Er(String.fromCharCode(l)),d=Cr(r),h=Cr(l),m=!h&&(!s||d||a),v=!d&&(!a||h||s);return{can_open:m&&(t||!v||a),can_close:v&&(t||!m||s),length:i}};Lr.prototype.Token=kt;function av(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function sv(e,t){let n=e.pos;for(;n<e.posMax&&!av(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const cv=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function dv(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=e.pending.match(cv);if(!r)return!1;const o=r[1],i=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!i)return!1;let l=i.url;if(l.length<=o.length)return!1;let a=l.length;for(;a>0&&l.charCodeAt(a-1)===42;)a--;a!==l.length&&(l=l.slice(0,a));const s=e.md.normalizeLink(l);if(!e.md.validateLink(s))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const d=e.push("link_open","a",1);d.attrs=[["href",s]],d.markup="linkify",d.info="auto";const h=e.push("text","",0);h.content=e.md.normalizeLinkText(l);const m=e.push("link_close","a",-1);m.markup="linkify",m.info="auto"}return e.pos+=l.length-o.length,!0}function fv(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,r=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let o=u-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<r&&X(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const zs=[];for(let e=0;e<256;e++)zs.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){zs[e.charCodeAt(0)]=1});function pv(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(r=e.src.charCodeAt(n),!!X(r));)n++;return e.pos=n,!0}let o=e.src[n];if(r>=55296&&r<=56319&&n+1<u){const l=e.src.charCodeAt(n+1);l>=56320&&l<=57343&&(o+=e.src[n+1],n++)}const i="\\"+o;if(!t){const l=e.push("text_special","",0);r<256&&zs[r]!==0?l.content=o:l.content=i,l.markup=i,l.info="escape"}return e.pos=n+1,!0}function hv(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const i=e.src.slice(r,n),l=i.length;if(e.backticksScanned&&(e.backticks[l]||0)<=r)return t||(e.pending+=i),e.pos+=l,!0;let a=n,s;for(;(s=e.src.indexOf("`",a))!==-1;){for(a=s+1;a<o&&e.src.charCodeAt(a)===96;)a++;const d=a-s;if(d===l){if(!t){const h=e.push("code_inline","code",0);h.markup=i,h.content=e.src.slice(n,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=a,!0}e.backticks[d]=s}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}function mv(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const r=e.scanDelims(e.pos,!0);let o=r.length;const i=String.fromCharCode(u);if(o<2)return!1;let l;o%2&&(l=e.push("text","",0),l.content=i,o--);for(let a=0;a<o;a+=2)l=e.push("text","",0),l.content=i+i,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function m0(e,t){let n;const u=[],r=t.length;for(let o=0;o<r;o++){const i=t[o];if(i.marker!==126||i.end===-1)continue;const l=t[i.end];n=e.tokens[i.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[l.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[l.token-1].type==="text"&&e.tokens[l.token-1].content==="~"&&u.push(l.token-1)}for(;u.length;){const o=u.pop();let i=o+1;for(;i<e.tokens.length&&e.tokens[i].type==="s_close";)i++;i--,o!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[o],e.tokens[o]=n)}}function gv(e){const t=e.tokens_meta,n=e.tokens_meta.length;m0(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&m0(e,t[u].delimiters)}const Ip={tokenize:mv,postProcess:gv};function xv(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const r=e.scanDelims(e.pos,u===42);for(let o=0;o<r.length;o++){const i=e.push("text","",0);i.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function g0(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const r=t[u];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const o=t[r.end],i=u>0&&t[u-1].end===r.end+1&&t[u-1].marker===r.marker&&t[u-1].token===r.token-1&&t[r.end+1].token===o.token+1,l=String.fromCharCode(r.marker),a=e.tokens[r.token];a.type=i?"strong_open":"em_open",a.tag=i?"strong":"em",a.nesting=1,a.markup=i?l+l:l,a.content="";const s=e.tokens[o.token];s.type=i?"strong_close":"em_close",s.tag=i?"strong":"em",s.nesting=-1,s.markup=i?l+l:l,s.content="",i&&(e.tokens[t[u-1].token].content="",e.tokens[t[r.end+1].token].content="",u--)}}function vv(e){const t=e.tokens_meta,n=e.tokens_meta.length;g0(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&g0(e,t[u].delimiters)}const Op={tokenize:xv,postProcess:vv};function yv(e,t){let n,u,r,o,i="",l="",a=e.pos,s=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const d=e.pos,h=e.posMax,m=e.pos+1,v=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(v<0)return!1;let x=v+1;if(x<h&&e.src.charCodeAt(x)===40){for(s=!1,x++;x<h&&(n=e.src.charCodeAt(x),!(!X(n)&&n!==10));x++);if(x>=h)return!1;if(a=x,r=e.md.helpers.parseLinkDestination(e.src,x,e.posMax),r.ok){for(i=e.md.normalizeLink(r.str),e.md.validateLink(i)?x=r.pos:i="",a=x;x<h&&(n=e.src.charCodeAt(x),!(!X(n)&&n!==10));x++);if(r=e.md.helpers.parseLinkTitle(e.src,x,e.posMax),x<h&&a!==x&&r.ok)for(l=r.str,x=r.pos;x<h&&(n=e.src.charCodeAt(x),!(!X(n)&&n!==10));x++);}(x>=h||e.src.charCodeAt(x)!==41)&&(s=!0),x++}if(s){if(typeof e.env.references>"u")return!1;if(x<h&&e.src.charCodeAt(x)===91?(a=x+1,x=e.md.helpers.parseLinkLabel(e,x),x>=0?u=e.src.slice(a,x++):x=v+1):x=v+1,u||(u=e.src.slice(m,v)),o=e.env.references[ki(u)],!o)return e.pos=d,!1;i=o.href,l=o.title}if(!t){e.pos=m,e.posMax=v;const _=e.push("link_open","a",1),C=[["href",i]];_.attrs=C,l&&C.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=x,e.posMax=h,!0}function bv(e,t){let n,u,r,o,i,l,a,s,d="";const h=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const v=e.pos+2,x=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(x<0)return!1;if(o=x+1,o<m&&e.src.charCodeAt(o)===40){for(o++;o<m&&(n=e.src.charCodeAt(o),!(!X(n)&&n!==10));o++);if(o>=m)return!1;for(s=o,l=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),l.ok&&(d=e.md.normalizeLink(l.str),e.md.validateLink(d)?o=l.pos:d=""),s=o;o<m&&(n=e.src.charCodeAt(o),!(!X(n)&&n!==10));o++);if(l=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<m&&s!==o&&l.ok)for(a=l.str,o=l.pos;o<m&&(n=e.src.charCodeAt(o),!(!X(n)&&n!==10));o++);else a="";if(o>=m||e.src.charCodeAt(o)!==41)return e.pos=h,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<m&&e.src.charCodeAt(o)===91?(s=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?r=e.src.slice(s,o++):o=x+1):o=x+1,r||(r=e.src.slice(v,x)),i=e.env.references[ki(r)],!i)return e.pos=h,!1;d=i.href,a=i.title}if(!t){u=e.src.slice(v,x);const _=[];e.md.inline.parse(u,e.md,e.env,_);const C=e.push("image","img",0),g=[["src",d],["alt",""]];C.attrs=g,C.children=_,C.content=u,a&&g.push(["title",a])}return e.pos=o,e.posMax=m,!0}const kv=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,wv=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function _v(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const i=e.src.charCodeAt(n);if(i===60)return!1;if(i===62)break}const o=e.src.slice(u+1,n);if(wv.test(o)){const i=e.md.normalizeLink(o);if(!e.md.validateLink(i))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",i]],l.markup="autolink",l.info="auto";const a=e.push("text","",0);a.content=e.md.normalizeLinkText(o);const s=e.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return e.pos+=o.length+2,!0}if(kv.test(o)){const i=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(i))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",i]],l.markup="autolink",l.info="auto";const a=e.push("text","",0);a.content=e.md.normalizeLinkText(o);const s=e.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return e.pos+=o.length+2,!0}return!1}function Cv(e){return/^<a[>\s]/i.test(e)}function Ev(e){return/^<\/a\s*>/i.test(e)}function Sv(e){const t=e|32;return t>=97&&t<=122}function Av(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const r=e.src.charCodeAt(u+1);if(r!==33&&r!==63&&r!==47&&!Sv(r))return!1;const o=e.src.slice(u).match(nv);if(!o)return!1;if(!t){const i=e.push("html_inline","",0);i.content=o[0],Cv(i.content)&&e.linkLevel++,Ev(i.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const zv=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Fv=/^&([a-z][a-z0-9]{1,31});/i;function Dv(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(zv);if(o){if(!t){const i=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),l=e.push("text_special","",0);l.content=Ss(i)?Jo(i):Jo(65533),l.markup=o[0],l.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(Fv);if(o){const i=jp(o[0]);if(i!==o[0]){if(!t){const l=e.push("text_special","",0);l.content=i,l.markup=o[0],l.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function x0(e){const t={},n=e.length;if(!n)return;let u=0,r=-2;const o=[];for(let i=0;i<n;i++){const l=e[i];if(o.push(0),(e[u].marker!==l.marker||r!==l.token-1)&&(u=i),r=l.token,l.length=l.length||0,!l.close)continue;t.hasOwnProperty(l.marker)||(t[l.marker]=[-1,-1,-1,-1,-1,-1]);const a=t[l.marker][(l.open?3:0)+l.length%3];let s=u-o[u]-1,d=s;for(;s>a;s-=o[s]+1){const h=e[s];if(h.marker===l.marker&&h.open&&h.end<0){let m=!1;if((h.close||l.open)&&(h.length+l.length)%3===0&&(h.length%3!==0||l.length%3!==0)&&(m=!0),!m){const v=s>0&&!e[s-1].open?o[s-1]+1:0;o[i]=i-s+v,o[s]=v,l.open=!1,h.end=i,h.close=!1,d=-1,r=-2;break}}}d!==-1&&(t[l.marker][(l.open?3:0)+(l.length||0)%3]=d)}}function jv(e){const t=e.tokens_meta,n=e.tokens_meta.length;x0(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&x0(t[u].delimiters)}function Nv(e){let t,n,u=0;const r=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)r[t].nesting<0&&u--,r[t].level=u,r[t].nesting>0&&u++,r[t].type==="text"&&t+1<o&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}const ll=[["text",sv],["linkify",dv],["newline",fv],["escape",pv],["backticks",hv],["strikethrough",Ip.tokenize],["emphasis",Op.tokenize],["link",yv],["image",bv],["autolink",_v],["html_inline",Av],["entity",Dv]],al=[["balance_pairs",jv],["strikethrough",Ip.postProcess],["emphasis",Op.postProcess],["fragments_join",Nv]];function Ir(){this.ruler=new He;for(let e=0;e<ll.length;e++)this.ruler.push(ll[e][0],ll[e][1]);this.ruler2=new He;for(let e=0;e<al.length;e++)this.ruler2.push(al[e][0],al[e][1])}Ir.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,r=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let i=!1;if(e.level<r){for(let l=0;l<u;l++)if(e.level++,i=n[l](e,!0),e.level--,i){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;i||e.pos++,o[t]=e.pos};Ir.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,r=e.md.options.maxNesting;for(;e.pos<u;){const o=e.pos;let i=!1;if(e.level<r){for(let l=0;l<n;l++)if(i=t[l](e,!1),i){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};Ir.prototype.parse=function(e,t,n,u){const r=new this.State(e,t,n,u);this.tokenize(r);const o=this.ruler2.getRules(""),i=o.length;for(let l=0;l<i;l++)o[l](r)};Ir.prototype.State=Lr;function Tv(e){const t={};e=e||{},t.src_Any=Sp.source,t.src_Cc=Ap.source,t.src_Z=Fp.source,t.src_P=Cs.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function ma(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function _i(e){return Object.prototype.toString.call(e)}function Rv(e){return _i(e)==="[object String]"}function Pv(e){return _i(e)==="[object Object]"}function Mv(e){return _i(e)==="[object RegExp]"}function v0(e){return _i(e)==="[object Function]"}function Lv(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const $p={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Iv(e){return Object.keys(e||{}).reduce(function(t,n){return t||$p.hasOwnProperty(n)},!1)}const Ov={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},$v="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Bv="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Uv(e){e.__index__=-1,e.__text_cache__=""}function Hv(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function y0(){return function(e,t){t.normalize(e)}}function Xo(e){const t=e.re=Tv(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push($v),n.push(t.src_xn),t.src_tlds=n.join("|");function u(l){return l.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function o(l,a){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+a)}Object.keys(e.__schemas__).forEach(function(l){const a=e.__schemas__[l];if(a===null)return;const s={validate:null,link:null};if(e.__compiled__[l]=s,Pv(a)){Mv(a.validate)?s.validate=Hv(a.validate):v0(a.validate)?s.validate=a.validate:o(l,a),v0(a.normalize)?s.normalize=a.normalize:a.normalize?o(l,a):s.normalize=y0();return}if(Rv(a)){r.push(l);return}o(l,a)}),r.forEach(function(l){e.__compiled__[e.__schemas__[l]]&&(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[""]={validate:null,normalize:y0()};const i=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(Lv).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Uv(e)}function Vv(e,t){const n=e.__index__,u=e.__last_index__,r=e.__text_cache__.slice(n,u);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=u+t,this.raw=r,this.text=r,this.url=r}function ga(e,t){const n=new Vv(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Ze(e,t){if(!(this instanceof Ze))return new Ze(e,t);t||Iv(e)&&(t=e,e={}),this.__opts__=ma({},$p,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ma({},Ov,e),this.__compiled__={},this.__tlds__=Bv,this.__tlds_replaced__=!1,this.re={},Xo(this)}Ze.prototype.add=function(t,n){return this.__schemas__[t]=n,Xo(this),this};Ze.prototype.set=function(t){return this.__opts__=ma(this.__opts__,t),this};Ze.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,u,r,o,i,l,a,s,d;if(this.re.schema_test.test(t)){for(a=this.re.schema_search,a.lastIndex=0;(n=a.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],a.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=t.search(this.re.host_fuzzy_test),s>=0&&(this.__index__<0||s<this.__index__)&&(u=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=u.index+u[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=u.index+u[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=t.indexOf("@"),d>=0&&(r=t.match(this.re.email_fuzzy))!==null&&(i=r.index+r[1].length,l=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=l))),this.__index__>=0};Ze.prototype.pretest=function(t){return this.re.pretest.test(t)};Ze.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0};Ze.prototype.match=function(t){const n=[];let u=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(ga(this,u)),u=this.__last_index__);let r=u?t.slice(u):t;for(;this.test(r);)n.push(ga(this,u)),r=r.slice(this.__last_index__),u+=this.__last_index__;return n.length?n:null};Ze.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);return u?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u,ga(this,0)):null};Ze.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,r,o){return u!==o[r-1]}).reverse(),Xo(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Xo(this),this)};Ze.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Ze.prototype.onCompile=function(){};const au=2147483647,Ft=36,Fs=1,Ar=26,qv=38,Wv=700,Bp=72,Up=128,Hp="-",Kv=/^xn--/,Gv=/[^\0-\x7F]/,Qv=/[\x2E\u3002\uFF0E\uFF61]/g,Zv={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},sl=Ft-Fs,Dt=Math.floor,cl=String.fromCharCode;function nn(e){throw new RangeError(Zv[e])}function Yv(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function Vp(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(Qv,".");const r=e.split("."),o=Yv(r,t).join(".");return u+o}function qp(e){const t=[];let n=0;const u=e.length;for(;n<u;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<u){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((r&1023)<<10)+(o&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const Jv=e=>String.fromCodePoint(...e),Xv=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Ft},b0=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Wp=function(e,t,n){let u=0;for(e=n?Dt(e/Wv):e>>1,e+=Dt(e/t);e>sl*Ar>>1;u+=Ft)e=Dt(e/sl);return Dt(u+(sl+1)*e/(e+qv))},Kp=function(e){const t=[],n=e.length;let u=0,r=Up,o=Bp,i=e.lastIndexOf(Hp);i<0&&(i=0);for(let l=0;l<i;++l)e.charCodeAt(l)>=128&&nn("not-basic"),t.push(e.charCodeAt(l));for(let l=i>0?i+1:0;l<n;){const a=u;for(let d=1,h=Ft;;h+=Ft){l>=n&&nn("invalid-input");const m=Xv(e.charCodeAt(l++));m>=Ft&&nn("invalid-input"),m>Dt((au-u)/d)&&nn("overflow"),u+=m*d;const v=h<=o?Fs:h>=o+Ar?Ar:h-o;if(m<v)break;const x=Ft-v;d>Dt(au/x)&&nn("overflow"),d*=x}const s=t.length+1;o=Wp(u-a,s,a==0),Dt(u/s)>au-r&&nn("overflow"),r+=Dt(u/s),u%=s,t.splice(u++,0,r)}return String.fromCodePoint(...t)},Gp=function(e){const t=[];e=qp(e);const n=e.length;let u=Up,r=0,o=Bp;for(const a of e)a<128&&t.push(cl(a));const i=t.length;let l=i;for(i&&t.push(Hp);l<n;){let a=au;for(const d of e)d>=u&&d<a&&(a=d);const s=l+1;a-u>Dt((au-r)/s)&&nn("overflow"),r+=(a-u)*s,u=a;for(const d of e)if(d<u&&++r>au&&nn("overflow"),d===u){let h=r;for(let m=Ft;;m+=Ft){const v=m<=o?Fs:m>=o+Ar?Ar:m-o;if(h<v)break;const x=h-v,_=Ft-v;t.push(cl(b0(v+x%_,0))),h=Dt(x/_)}t.push(cl(b0(h,0))),o=Wp(r,s,l===i),r=0,++l}++r,++u}return t.join("")},ey=function(e){return Vp(e,function(t){return Kv.test(t)?Kp(t.slice(4).toLowerCase()):t})},ty=function(e){return Vp(e,function(t){return Gv.test(t)?"xn--"+Gp(t):t})},Qp={version:"2.3.1",ucs2:{decode:qp,encode:Jv},decode:Kp,encode:Gp,toASCII:ty,toUnicode:ey},ny={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},uy={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},ry={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},oy={default:ny,zero:uy,commonmark:ry},iy=/^(vbscript|javascript|file|data):/,ly=/^data:image\/(gif|png|jpeg|webp);/;function ay(e){const t=e.trim().toLowerCase();return iy.test(t)?ly.test(t):!0}const Zp=["http:","https:","mailto:"];function sy(e){const t=_s(e,!0);if(t.hostname&&(!t.protocol||Zp.indexOf(t.protocol)>=0))try{t.hostname=Qp.toASCII(t.hostname)}catch{}return Mr(ws(t))}function cy(e){const t=_s(e,!0);if(t.hostname&&(!t.protocol||Zp.indexOf(t.protocol)>=0))try{t.hostname=Qp.toUnicode(t.hostname)}catch{}return gu(ws(t),gu.defaultChars+"%")}function at(e,t){if(!(this instanceof at))return new at(e,t);t||Es(e)||(t=e||{},e="default"),this.inline=new Ir,this.block=new wi,this.core=new As,this.renderer=new Su,this.linkify=new Ze,this.validateLink=ay,this.normalizeLink=sy,this.normalizeLinkText=cy,this.utils=f3,this.helpers=bi({},g3),this.options={},this.configure(e),t&&this.set(t)}at.prototype.set=function(e){return bi(this.options,e),this};at.prototype.configure=function(e){const t=this;if(Es(e)){const n=e;if(e=oy[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};at.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this};at.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this};at.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};at.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};at.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};at.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};at.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const dy=new at({html:!1,breaks:!0,linkify:!0,typographer:!0});function fy(e){return dy.render(e)}function py(e,t,n){return e.role==="user"?"done":n&&t?"thinking":!e.content&&!e.reasoningContent?"streaming":"done"}function hy({message:e,isLast:t,isThinking:n,onRegenerate:u,onContinue:r,onQuote:o,onDelete:i}){const l=e.role==="user",a=e.role==="tool",[s,d]=k.useState(!1),{toast:h}=ks(),{confirmState:m,confirm:v,handleConfirm:x,handleCancel:_}=Ep(),C=py(e,!!t,!!n),g=k.useCallback(()=>{navigator.clipboard.writeText(e.content).then(()=>{h("已复制到剪贴板","success")})},[e.content,h]),f=k.useCallback(async()=>{await v({title:"删除消息",description:"确定要删除这条消息吗?",confirmText:"删除",variant:"danger"})&&(i==null||i(e.id))},[e.id,i,v]);if(a){let y="";try{y=JSON.parse(e.content).tool||""}catch{}return c.jsxs("div",{className:"flex items-center gap-2 py-1 px-3",children:[c.jsx(Zc,{size:13,className:"text-zinc-400"}),c.jsxs("span",{className:"text-xs text-zinc-400",children:["工具调用: ",y]})]})}const p=C==="done"&&!l&&e.content;return c.jsxs("div",{className:zt("flex gap-3 mb-5 group/msg",l?"flex-row-reverse":"flex-row"),children:[c.jsx("div",{className:zt("w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 text-xs",l?"bg-gradient-to-br from-indigo-500 to-indigo-600 text-white shadow-sm":"bg-zinc-100 text-zinc-500"),children:l?c.jsx(Fg,{size:14}):c.jsx(Zc,{size:14})}),c.jsxs("div",{className:zt("flex-1 max-w-[78%]",l&&"flex flex-col items-end"),children:[C==="thinking"&&!e.content&&!e.reasoningContent&&c.jsx("div",{className:"rounded-2xl px-4 py-3 bg-gradient-to-br from-indigo-50 to-zinc-50 border border-indigo-100/50 rounded-tl-sm",children:c.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 text-sm",children:[c.jsx(tl,{size:14,className:"animate-pulse text-indigo-400"}),c.jsx("span",{children:"深度思考中..."})]})}),e.reasoningContent&&c.jsxs("div",{className:"mb-1.5 w-full",children:[c.jsxs("button",{onClick:()=>d(!s),className:"flex items-center gap-1.5 text-xs text-zinc-400 hover:text-zinc-600 transition-colors py-1",children:[C==="streaming"||C==="thinking"?c.jsx(tl,{size:12,className:"animate-pulse text-indigo-400"}):c.jsx(tl,{size:12}),c.jsx("span",{children:C==="done"?"深度思考":"思考中..."}),C==="done"&&(s?c.jsx(mg,{size:12}):c.jsx(hp,{size:12}))]}),(s||C!=="done")&&c.jsx("div",{className:"mt-1 px-3 py-2.5 rounded-xl bg-gradient-to-br from-indigo-50/80 to-violet-50/40 border border-indigo-100/50 text-xs text-zinc-500 leading-relaxed max-h-60 overflow-y-auto whitespace-pre-wrap",children:e.reasoningContent})]}),!(e.content==="(调用工具)"&&C==="done"&&e.reasoningContent)&&c.jsx("div",{className:zt("rounded-2xl px-4 py-2.5 text-sm leading-relaxed",l?"bg-gradient-to-br from-indigo-500 to-indigo-600 text-white rounded-tr-sm shadow-sm":"bg-zinc-50/80 text-zinc-700 border border-zinc-100 rounded-tl-sm"),children:C==="streaming"&&!e.content?c.jsxs("div",{className:"flex items-center gap-1.5 text-zinc-400",children:[c.jsx("span",{className:"inline-block w-1.5 h-1.5 bg-indigo-300 rounded-full animate-pulse"}),c.jsx("span",{className:"inline-block w-1.5 h-1.5 bg-indigo-300 rounded-full animate-pulse [animation-delay:150ms]"}),c.jsx("span",{className:"inline-block w-1.5 h-1.5 bg-indigo-300 rounded-full animate-pulse [animation-delay:300ms]"})]}):l?c.jsx("p",{className:"whitespace-pre-wrap",children:e.content}):c.jsx("div",{className:"markdown-body prose prose-sm max-w-none",dangerouslySetInnerHTML:{__html:fy(e.content)}})}),p&&c.jsxs("div",{className:"flex gap-0.5 mt-1 opacity-0 group-hover/msg:opacity-100 transition-opacity duration-200 px-1",children:[c.jsxs("button",{onClick:g,className:"flex items-center gap-1 px-1.5 py-0.5 rounded-md text-[10px] text-zinc-400 hover:text-zinc-600 hover:bg-zinc-100 transition-colors",children:[c.jsx(bg,{size:10}),"复制"]}),c.jsxs("button",{onClick:()=>o==null?void 0:o(e.content),className:"flex items-center gap-1 px-1.5 py-0.5 rounded-md text-[10px] text-zinc-400 hover:text-zinc-600 hover:bg-zinc-100 transition-colors",children:[c.jsx(Cg,{size:10}),"引用"]}),c.jsxs("button",{onClick:f,className:"flex items-center gap-1 px-1.5 py-0.5 rounded-md text-[10px] text-zinc-400 hover:text-red-500 hover:bg-red-50 transition-colors",children:[c.jsx(Pr,{size:10}),"删除"]}),c.jsxs("button",{onClick:()=>u==null?void 0:u(e.id),className:"flex items-center gap-1 px-1.5 py-0.5 rounded-md text-[10px] text-zinc-400 hover:text-zinc-600 hover:bg-zinc-100 transition-colors",children:[c.jsx(ys,{size:10}),"重新生成"]}),c.jsxs("button",{onClick:()=>r==null?void 0:r(),className:"flex items-center gap-1 px-1.5 py-0.5 rounded-md text-[10px] text-zinc-400 hover:text-zinc-600 hover:bg-zinc-100 transition-colors",children:[c.jsx(fg,{size:10}),"继续"]})]})]}),c.jsx(_p,{open:m.open,title:m.title,description:m.description,confirmText:m.confirmText,cancelText:m.cancelText,variant:m.variant,onConfirm:x,onCancel:_})]})}const my=[{cmd:"/run",desc:"执行 pipeline 阶段",icon:_g},{cmd:"/status",desc:"查看管线进度",icon:Jc},{cmd:"/images",desc:"生成图片",icon:Mn},{cmd:"/list",desc:"列出可用账号",icon:kg},{cmd:"/help",desc:"显示帮助",icon:Jc}];function k0({onSend:e,disabled:t}){const[n,u]=k.useState(""),[r,o]=k.useState(!1),[i,l]=k.useState(0),a=k.useRef(null),s=n.startsWith("/")?my.filter(v=>v.cmd.startsWith(n.split(" ")[0])):[];k.useEffect(()=>{n.startsWith("/")&&s.length>0?(o(!0),l(0)):o(!1)},[n,s.length]);const d=()=>{var v;!n.trim()||t||(e(n.trim()),u(""),o(!1),(v=a.current)==null||v.focus())},h=v=>{if(r&&s.length>0){if(v.key==="Tab"){v.preventDefault(),u(s[i%s.length].cmd+" "),o(!1);return}if(v.key==="ArrowDown"){v.preventDefault(),l(x=>(x+1)%s.length);return}if(v.key==="ArrowUp"){v.preventDefault(),l(x=>(x-1+s.length)%s.length);return}}if(v.key==="Escape"){o(!1);return}v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),d())},m=n.trim().length>0&&!t;return c.jsxs("div",{className:"relative",children:[r&&s.length>0&&c.jsx("div",{className:"mx-6 mb-0.5 bg-white border border-zinc-200 rounded-xl shadow-lg overflow-hidden animate-in slide-in-from-bottom-2",children:s.map((v,x)=>{const _=v.icon;return c.jsxs("button",{onClick:()=>{var C;u(v.cmd+" "),o(!1),(C=a.current)==null||C.focus()},className:`w-full flex items-center gap-2.5 px-3.5 py-2 text-sm transition-colors ${x===i%s.length?"bg-indigo-50 text-indigo-700":"text-zinc-600 hover:bg-zinc-50"}`,children:[c.jsx(_,{size:15,className:"text-zinc-400"}),c.jsx("span",{className:"font-mono font-semibold text-xs",children:v.cmd}),c.jsx("span",{className:"text-zinc-400 text-xs",children:v.desc})]},v.cmd)})}),c.jsxs("div",{className:"px-4 pb-4 pt-2 bg-gradient-to-t from-white via-white to-transparent",children:[c.jsxs("div",{className:`
|
||
flex items-end gap-2 bg-zinc-50 rounded-2xl border transition-all duration-200 px-4 py-3
|
||
${t?"border-zinc-200 opacity-60":"border-zinc-200 focus-within:border-indigo-300 focus-within:shadow-md focus-within:shadow-indigo-50 focus-within:bg-white"}
|
||
`,children:[c.jsx("textarea",{ref:a,value:n,onChange:v=>u(v.target.value),onKeyDown:h,rows:1,placeholder:t?"等待回复中...":"输入消息,或按 / 查看快捷命令...",className:"flex-1 bg-transparent text-sm resize-none outline-none placeholder:text-zinc-400 text-zinc-700 min-h-[24px] max-h-[120px]",disabled:t,style:{height:"auto"},onInput:v=>{const x=v.currentTarget;x.style.height="auto",x.style.height=Math.min(x.scrollHeight,120)+"px"}}),c.jsx("button",{onClick:d,disabled:!m,className:`
|
||
w-8 h-8 rounded-xl flex items-center justify-center transition-all flex-shrink-0
|
||
${m?"bg-indigo-600 text-white hover:bg-indigo-700 shadow-sm":"bg-zinc-200 text-zinc-400 cursor-not-allowed"}
|
||
`,children:c.jsx(pg,{size:16,strokeWidth:2.5})})]}),c.jsx("p",{className:"text-[10px] text-zinc-400 text-center mt-1.5",children:"美图 Agent 可能会产生错误内容,请核实重要信息"})]})]})}function gy({phase:e,progress:t,currentItem:n,totalItems:u,status:r}){const o={images:"生成图片",upload:"上传素材",videos:"生成视频",tts:"配音",assemble:"成片组装"};return c.jsxs("div",{className:"bg-gradient-to-br from-zinc-900 to-zinc-800 border border-zinc-700/50 rounded-xl p-3.5 my-2 shadow-lg shadow-zinc-900/20",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("span",{className:"text-xs text-zinc-400 font-medium",children:[o[e]||e,n&&u?` (${n}/${u})`:""]}),c.jsxs("span",{className:"text-xs font-mono text-zinc-500",children:[t,"%"]})]}),c.jsx("div",{className:"w-full h-1.5 bg-zinc-700/50 rounded-full overflow-hidden",children:c.jsx("div",{className:zt("h-full rounded-full transition-all duration-700 ease-out",t<100?"bg-gradient-to-r from-blue-500 to-indigo-400":"bg-gradient-to-r from-emerald-500 to-green-400"),style:{width:`${t}%`}})}),r&&c.jsx("p",{className:"text-xs text-zinc-500 mt-1.5",children:r})]})}const w0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_0=gp,xy=(e,t)=>n=>{var u;if((t==null?void 0:t.variants)==null)return _0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:o}=t,i=Object.keys(r).map(s=>{const d=n==null?void 0:n[s],h=o==null?void 0:o[s];if(d===null)return null;const m=w0(d)||w0(h);return r[s][m]}),l=n&&Object.entries(n).reduce((s,d)=>{let[h,m]=d;return m===void 0||(s[h]=m),s},{}),a=t==null||(u=t.compoundVariants)===null||u===void 0?void 0:u.reduce((s,d)=>{let{class:h,className:m,...v}=d;return Object.entries(v).every(x=>{let[_,C]=x;return Array.isArray(C)?C.includes({...o,...l}[_]):{...o,...l}[_]===C})?[...s,h,m]:s},[]);return _0(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)},vy=xy("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),yt=k.forwardRef(({className:e,variant:t,size:n,...u},r)=>c.jsx("button",{className:zt(vy({variant:t,size:n,className:e})),ref:r,...u}));yt.displayName="Button";function C0(){const{conversationId:e}=rp(),t=Cu(),{setConversations:n,selectedAccountId:u,conversations:r}=pa(),{messages:o,connected:i,thinking:l,toolStatus:a,pipeline:s,send:d,stop:h,createConversation:m,removeMessage:v}=Ex(e||null),[x,_]=k.useState(null),[C,g]=k.useState([]),[f,p]=k.useState(null),[y,b]=k.useState(null),[w,E]=k.useState(!1),S=k.useRef(!1),A=k.useRef(null),j=k.useRef(!1);k.useEffect(()=>{fe.listAccounts().then(g).catch(()=>{})},[]),k.useEffect(()=>{fe.listConversations().then(n).catch(()=>{})},[o]),k.useEffect(()=>{const z=o.filter(T=>T.role==="tool");if(z.length>0)try{const T=JSON.parse(z[z.length-1].content);T.manifest&&_(T.manifest)}catch{}},[o]),k.useEffect(()=>{const z=A.current;z&&(j.current||(z.scrollTop=z.scrollHeight))},[o,l,s,a]),k.useEffect(()=>{const z=A.current;if(!z)return;const T=()=>{const O=z.scrollHeight-z.scrollTop-z.clientHeight<80;j.current=!O,E(!O)};return z.addEventListener("scroll",T,{passive:!0}),()=>z.removeEventListener("scroll",T)},[]),k.useEffect(()=>{j.current=!1,E(!1)},[e]),k.useEffect(()=>{if(e&&i&&y){const z=setTimeout(()=>{d(y),b(null)},300);return()=>clearTimeout(z)}},[e,i,y]);const I=async()=>{x&&await fetch("/api/pipeline/resume",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({manifest:x})})},M=k.useCallback(z=>{const T=o.findIndex(O=>O.id===z);if(T<=0)return null;for(let O=T-1;O>=0;O--)if(o[O].role==="user")return o[O];return null},[o]),ue=k.useCallback(z=>{const T=M(z);T&&d(T.content)},[M,d]),L=k.useCallback(()=>{d("请继续")},[d]),B=k.useCallback(z=>{p(z.slice(0,200))},[]),Y=k.useCallback(z=>{v(z)},[v]),W=k.useCallback(async z=>{if(!S.current){S.current=!0,b(z);try{const T=await m(z.slice(0,30),u||void 0);if(T){const O=await fe.listConversations();n(O),t(`/chat/${T}`)}}catch{}S.current=!1}},[m,u]),F=k.useCallback(z=>{f&&(z=`> ${f}
|
||
|
||
${z}`,p(null)),e?d(z):W(z)},[d,f,e]),P=k.useCallback(()=>{h()},[h]);if(!e){const z=r.slice(0,5);return c.jsx("div",{className:"flex-1 flex flex-col items-center justify-center bg-gradient-to-b from-white to-zinc-50/30",children:c.jsxs("div",{className:"w-full max-w-xl px-4",children:[c.jsxs("div",{className:"text-center mb-6",children:[c.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-br from-indigo-50 to-violet-50 flex items-center justify-center mx-auto mb-4 shadow-sm",children:c.jsx(Zo,{size:24,className:"text-indigo-400",strokeWidth:1.5})}),c.jsx("h2",{className:"text-lg font-semibold text-zinc-800",children:"开始新对话"}),c.jsx("p",{className:"text-sm text-zinc-400 mt-1",children:"输入消息开始创作,对话将自动创建"})]}),c.jsx(k0,{onSend:F,disabled:l||S.current}),C.length>0&&c.jsxs("div",{className:"flex items-center gap-2 mt-3 justify-center",children:[c.jsx("span",{className:"text-xs text-zinc-400",children:"当前账号:"}),c.jsxs("select",{value:u||"",onChange:T=>pa.getState().setSelectedAccountId(T.target.value||null),className:"h-7 rounded-lg border border-zinc-100 bg-white px-2.5 text-xs text-zinc-600 hover:border-zinc-200 transition-colors",children:[c.jsx("option",{value:"",children:"不指定"}),C.map(T=>c.jsx("option",{value:T.id,children:T.name},T.id))]})]}),z.length>0&&c.jsxs("div",{className:"mt-8 border-t border-zinc-100 pt-4",children:[c.jsx("p",{className:"text-[10px] text-zinc-400 uppercase tracking-wider mb-2",children:"最近对话"}),z.map(T=>c.jsxs("button",{onClick:()=>t(`/chat/${T.id}`),className:"w-full flex items-center gap-2 px-3 py-2 rounded-xl text-left hover:bg-zinc-50/80 transition-colors group",children:[c.jsx(Zo,{size:13,className:"text-zinc-300 flex-shrink-0"}),c.jsx("span",{className:"text-sm text-zinc-600 truncate flex-1 group-hover:text-zinc-800",children:T.title}),c.jsx("span",{className:"text-[10px] text-zinc-300 flex-shrink-0",children:new Date(T.updated_at).toLocaleDateString("zh-CN",{month:"short",day:"numeric"})})]},T.id))]})]})})}return c.jsxs("div",{className:"flex-1 flex flex-col bg-white h-full",children:[c.jsxs("div",{className:"px-4 py-2 border-b border-zinc-100 flex items-center justify-between flex-shrink-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:`w-2 h-2 rounded-full ${i?"bg-emerald-400 shadow-sm shadow-emerald-200":"bg-red-400 animate-pulse"}`}),c.jsx("span",{className:"text-xs text-zinc-400",children:i?"在线":"连接中"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[x&&c.jsxs(yt,{size:"sm",variant:"outline",className:"h-7 text-xs rounded-lg",onClick:I,children:[c.jsx(ys,{size:12,className:"mr-1"}),"断点续跑"]}),l&&c.jsxs(yt,{size:"sm",variant:"outline",className:"h-7 text-xs text-red-500 border-red-200 hover:bg-red-50 rounded-lg",onClick:P,children:[c.jsx(yg,{size:12,className:"mr-1"}),"停止"]})]})]}),c.jsx("div",{className:"flex-1 overflow-hidden relative",children:c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{ref:A,className:"flex-1 overflow-y-auto px-4 py-4",children:[o.map((z,T)=>z.role!=="tool"&&c.jsx(hy,{message:z,isLast:T===o.length-1,isThinking:l,onRegenerate:z.role==="assistant"?ue:void 0,onContinue:z.role==="assistant"?L:void 0,onQuote:B,onDelete:Y},z.id)),s&&c.jsx(gy,{phase:s.phase,progress:s.progress,currentItem:s.currentItem,totalItems:s.totalItems,status:s.status}),l&&!s&&c.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 text-sm py-2",children:[c.jsx(sa,{size:14,className:"animate-spin text-indigo-400"}),a||"思考中..."]})]}),w&&c.jsx("button",{onClick:()=>{var z;(z=A.current)==null||z.scrollTo({top:A.current.scrollHeight,behavior:"smooth"}),j.current=!1,E(!1)},className:"absolute bottom-4 left-1/2 -translate-x-1/2 w-9 h-9 rounded-full bg-white border border-zinc-200 shadow-lg shadow-zinc-200/60 flex items-center justify-center text-zinc-400 hover:text-zinc-700 hover:border-zinc-300 hover:shadow-xl transition-all",children:c.jsx(cg,{size:16})}),f&&c.jsxs("div",{className:"mx-4 px-3 py-1.5 bg-indigo-50/60 border border-indigo-100/50 rounded-xl flex items-center gap-2 text-xs text-zinc-500 flex-shrink-0",children:[c.jsxs("span",{className:"flex-1 truncate",children:["引用: ",f]}),c.jsx("button",{onClick:()=>p(null),className:"text-zinc-400 hover:text-zinc-600",children:c.jsx(yi,{size:12})})]}),c.jsx(k0,{onSend:F,disabled:l})]})})]})}function Yp(){const[e,t]=k.useState([]),[n,u]=k.useState(!0),r=k.useCallback(()=>fe.listAccounts().then(t).finally(()=>u(!1)),[]);return k.useEffect(()=>{r()},[r]),{accounts:e,loading:n,refresh:r,create:async a=>{const s=await fe.createAccount(a);return await r(),s},update:(a,s)=>fe.updateAccount(a,s).then(r),remove:a=>fe.deleteAccount(a).then(r)}}const E0={gemini:"Gemini",mj:"MJ",gpt:"GPT",kling:"Kling","veo3-fast":"Veo3","veo3-fast-frames":"Veo3F",grok:"Grok"};function yy({account:e,isSelected:t,onClick:n}){const u=e.defaultFormat||"9:16";return c.jsxs("button",{onClick:n,className:`w-full text-left rounded-xl p-4 transition-all duration-200 cursor-pointer group
|
||
${t?"bg-indigo-50/80 ring-1 ring-indigo-200 shadow-sm shadow-indigo-100/50":"bg-white border border-zinc-100 hover:border-zinc-200 hover:shadow-lg hover:shadow-zinc-100/80 hover:-translate-y-0.5"}`,children:[c.jsxs("div",{className:"flex items-start justify-between mb-2",children:[c.jsx("h3",{className:"font-semibold text-sm text-zinc-800 truncate flex-1 mr-2",children:e.name}),c.jsx("span",{className:`text-[10px] font-mono px-2 py-0.5 rounded-full ${t?"bg-indigo-100 text-indigo-600":"bg-zinc-100 text-zinc-500"}`,children:u})]}),e.description&&c.jsx("p",{className:"text-xs text-zinc-400 line-clamp-2 mb-3 leading-relaxed",children:e.description}),c.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[c.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] px-2 py-0.5 rounded-full bg-blue-50/80 text-blue-600",children:[c.jsx(Mn,{size:10}),E0[e.imageModel]||e.imageModel]}),c.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] px-2 py-0.5 rounded-full bg-violet-50/80 text-violet-600",children:[c.jsx(Dg,{size:10}),E0[e.videoModel]||e.videoModel]}),e.ttsVoice&&c.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full bg-emerald-50/80 text-emerald-600",children:"TTS"})]})]})}function by({account:e,onSave:t}){const[n,u]=k.useState({name:e.name||"",description:e.description||"",pipeline:e.pipeline||"image-video",defaultFormat:e.defaultFormat||"9:16",imageModel:e.imageModel||"gemini",videoModel:e.videoModel||"veo3-fast",batchSize:e.batchSize||30,ttsVoice:e.ttsVoice||"",ttsInstruction:e.ttsInstruction||""}),[r,o]=k.useState(!1),i=(a,s)=>{u(d=>({...d,[a]:s})),o(!1)},l=()=>{t(n),o(!0),setTimeout(()=>o(!1),2e3)};return c.jsxs("div",{className:"max-w-lg space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"名称"}),c.jsx(he,{value:n.name,onChange:a=>i("name",a.target.value),className:"mt-1 bg-zinc-50 border-zinc-200"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"描述"}),c.jsx(he,{value:n.description,onChange:a=>i("description",a.target.value),placeholder:"账号描述...",className:"mt-1 bg-zinc-50 border-zinc-200"})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"画幅"}),c.jsxs("select",{value:n.defaultFormat,onChange:a=>i("defaultFormat",a.target.value),className:"mt-1 w-full h-10 rounded-md border border-zinc-200 bg-zinc-50 px-3 text-sm",children:[c.jsx("option",{value:"9:16",children:"9:16 竖屏"}),c.jsx("option",{value:"16:9",children:"16:9 横屏"}),c.jsx("option",{value:"1:1",children:"1:1 方形"}),c.jsx("option",{value:"4:3",children:"4:3"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"生图模型"}),c.jsxs("select",{value:n.imageModel,onChange:a=>i("imageModel",a.target.value),className:"mt-1 w-full h-10 rounded-md border border-zinc-200 bg-zinc-50 px-3 text-sm",children:[c.jsx("option",{value:"gemini",children:"Gemini"}),c.jsx("option",{value:"mj",children:"Midjourney"}),c.jsx("option",{value:"gpt",children:"GPT Image"}),c.jsx("option",{value:"kling",children:"Kling"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"视频模型"}),c.jsxs("select",{value:n.videoModel,onChange:a=>i("videoModel",a.target.value),className:"mt-1 w-full h-10 rounded-md border border-zinc-200 bg-zinc-50 px-3 text-sm",children:[c.jsx("option",{value:"veo3-fast",children:"Veo3 Fast"}),c.jsx("option",{value:"veo3-fast-frames",children:"Veo3 Frames"}),c.jsx("option",{value:"kling",children:"Kling"}),c.jsx("option",{value:"grok",children:"Grok"})]})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"Pipeline"}),c.jsxs("select",{value:n.pipeline,onChange:a=>i("pipeline",a.target.value),className:"mt-1 w-full h-10 rounded-md border border-zinc-200 bg-zinc-50 px-3 text-sm",children:[c.jsx("option",{value:"image-video",children:"图片+视频"}),c.jsx("option",{value:"single",children:"单图模式"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"批量数量"}),c.jsx(he,{type:"number",value:n.batchSize,onChange:a=>i("batchSize",parseInt(a.target.value)||30),className:"mt-1 bg-zinc-50 border-zinc-200"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"TTS 语音 ID"}),c.jsx(he,{value:n.ttsVoice,onChange:a=>i("ttsVoice",a.target.value),placeholder:"cosyvoice-xxx",className:"mt-1 bg-zinc-50 border-zinc-200 font-mono text-xs"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"TTS 指令"}),c.jsx("textarea",{value:n.ttsInstruction,onChange:a=>i("ttsInstruction",a.target.value),rows:3,placeholder:"用沉稳有力的男性声音朗读...",className:"mt-1 w-full rounded-md border border-zinc-200 bg-zinc-50 px-3 py-2 text-sm resize-y"})]}),c.jsx(yt,{onClick:l,children:r?"已保存":"保存基本信息"})]})}var Jp={},be=ot&&ot.__assign||function(){return be=Object.assign||function(e){for(var t,n=1,u=arguments.length;n<u;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},be.apply(this,arguments)},ky=ot&&ot.__createBinding||(Object.create?function(e,t,n,u){u===void 0&&(u=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,u,r)}:function(e,t,n,u){u===void 0&&(u=n),e[u]=t[n]}),wy=ot&&ot.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),_y=ot&&ot.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&ky(t,e,n);return wy(t,e),t},Cy=ot&&ot.__rest||function(e,t){var n={};for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&t.indexOf(u)<0&&(n[u]=e[u]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,u=Object.getOwnPropertySymbols(e);r<u.length;r++)t.indexOf(u[r])<0&&Object.prototype.propertyIsEnumerable.call(e,u[r])&&(n[u[r]]=e[u[r]]);return n};Object.defineProperty(Jp,"__esModule",{value:!0});var et=_y(k),Ey=89,lo=90,Sy=77,S0=57,A0=219,z0=222,F0=192,D0=100,Ay=3e3,zy=typeof window<"u"&&"navigator"in window&&/Win/i.test(navigator.platform),dl=typeof window<"u"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),_o="npm__react-simple-code-editor__textarea",Fy=`
|
||
/**
|
||
* Reset the text fill color so that placeholder is visible
|
||
*/
|
||
.`.concat(_o,`:empty {
|
||
-webkit-text-fill-color: inherit !important;
|
||
}
|
||
|
||
/**
|
||
* Hack to apply on some CSS on IE10 and IE11
|
||
*/
|
||
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
||
/**
|
||
* IE doesn't support '-webkit-text-fill-color'
|
||
* So we use 'color: transparent' to make the text transparent on IE
|
||
* Unlike other browsers, it doesn't affect caret color in IE
|
||
*/
|
||
.`).concat(_o,` {
|
||
color: transparent !important;
|
||
}
|
||
|
||
.`).concat(_o,`::selection {
|
||
background-color: #accef7 !important;
|
||
color: transparent !important;
|
||
}
|
||
}
|
||
`),Dy=et.forwardRef(function(t,n){var u=t.autoFocus,r=t.disabled,o=t.form,i=t.highlight,l=t.ignoreTabKey,a=l===void 0?!1:l,s=t.insertSpaces,d=s===void 0?!0:s,h=t.maxLength,m=t.minLength,v=t.name,x=t.onBlur,_=t.onClick,C=t.onFocus,g=t.onKeyDown,f=t.onKeyUp,p=t.onValueChange,y=t.padding,b=y===void 0?0:y,w=t.placeholder,E=t.preClassName,S=t.readOnly,A=t.required,j=t.style,I=t.tabSize,M=I===void 0?2:I,ue=t.textareaClassName,L=t.textareaId,B=t.value,Y=Cy(t,["autoFocus","disabled","form","highlight","ignoreTabKey","insertSpaces","maxLength","minLength","name","onBlur","onClick","onFocus","onKeyDown","onKeyUp","onValueChange","padding","placeholder","preClassName","readOnly","required","style","tabSize","textareaClassName","textareaId","value"]),W=et.useRef({stack:[],offset:-1}),F=et.useRef(null),P=et.useState(!0),z=P[0],T=P[1],O={paddingTop:typeof b=="object"?b.top:b,paddingRight:typeof b=="object"?b.right:b,paddingBottom:typeof b=="object"?b.bottom:b,paddingLeft:typeof b=="object"?b.left:b},wt=i(B),re=function(N,Q){return N.substring(0,Q).split(`
|
||
`)},Le=et.useCallback(function(N,Q){var U,q,pe;Q===void 0&&(Q=!1);var Ne=W.current,Pt=Ne.stack,zu=Ne.offset;if(Pt.length&&zu>-1){W.current.stack=Pt.slice(0,zu+1);var Fu=W.current.stack.length;if(Fu>D0){var $n=Fu-D0;W.current.stack=Pt.slice($n,Fu),W.current.offset=Math.max(W.current.offset-$n,0)}}var Ct=Date.now();if(Q){var Qt=W.current.stack[W.current.offset];if(Qt&&Ct-Qt.timestamp<Ay){var Du=/[^a-z0-9]([a-z0-9]+)$/i,qe=(U=re(Qt.value,Qt.selectionStart).pop())===null||U===void 0?void 0:U.match(Du),ju=(q=re(N.value,N.selectionStart).pop())===null||q===void 0?void 0:q.match(Du);if(qe!=null&&qe[1]&&(!((pe=ju==null?void 0:ju[1])===null||pe===void 0)&&pe.startsWith(qe[1]))){W.current.stack[W.current.offset]=be(be({},N),{timestamp:Ct});return}}}W.current.stack.push(be(be({},N),{timestamp:Ct})),W.current.offset++},[]),je=et.useCallback(function(){var N=F.current;if(N){var Q=N.value,U=N.selectionStart,q=N.selectionEnd;Le({value:Q,selectionStart:U,selectionEnd:q})}},[Le]),Ve=function(N){var Q=F.current;Q&&(Q.value=N.value,Q.selectionStart=N.selectionStart,Q.selectionEnd=N.selectionEnd,p==null||p(N.value))},_t=function(N){var Q=F.current,U=W.current.stack[W.current.offset];U&&Q&&(W.current.stack[W.current.offset]=be(be({},U),{selectionStart:Q.selectionStart,selectionEnd:Q.selectionEnd})),Le(N),Ve(N)},Or=function(){var N=W.current,Q=N.stack,U=N.offset,q=Q[U-1];q&&(Ve(q),W.current.offset=Math.max(U-1,0))},Au=function(){var N=W.current,Q=N.stack,U=N.offset,q=Q[U+1];q&&(Ve(q),W.current.offset=Math.min(U+1,Q.length-1))},On=function(N){if(!(g&&(g(N),N.defaultPrevented))){N.key==="Escape"&&N.currentTarget.blur();var Q=N.currentTarget,U=Q.value,q=Q.selectionStart,pe=Q.selectionEnd,Ne=(d?" ":" ").repeat(M);if(N.key==="Tab"&&!a&&z)if(N.preventDefault(),N.shiftKey){var Pt=re(U,q),zu=Pt.length-1,Fu=re(U,pe).length-1,$n=U.split(`
|
||
`).map(function(Nu,js){return js>=zu&&js<=Fu&&Nu.startsWith(Ne)?Nu.substring(Ne.length):Nu}).join(`
|
||
`);if(U!==$n){var Ct=Pt[zu];_t({value:$n,selectionStart:Ct!=null&&Ct.startsWith(Ne)?q-Ne.length:q,selectionEnd:pe-(U.length-$n.length)})}}else if(q!==pe){var Pt=re(U,q),Qt=Pt.length-1,Du=re(U,pe).length-1,Ct=Pt[Qt];_t({value:U.split(`
|
||
`).map(function(Ns,Ts){return Ts>=Qt&&Ts<=Du?Ne+Ns:Ns}).join(`
|
||
`),selectionStart:Ct&&/\S/.test(Ct)?q+Ne.length:q,selectionEnd:pe+Ne.length*(Du-Qt+1)})}else{var qe=q+Ne.length;_t({value:U.substring(0,q)+Ne+U.substring(pe),selectionStart:qe,selectionEnd:qe})}else if(N.key==="Backspace"){var ju=q!==pe,eh=U.substring(0,q);if(eh.endsWith(Ne)&&!ju){N.preventDefault();var qe=q-Ne.length;_t({value:U.substring(0,q-Ne.length)+U.substring(pe),selectionStart:qe,selectionEnd:qe})}}else if(N.key==="Enter"){if(q===pe){var Ei=re(U,q).pop(),$r=Ei==null?void 0:Ei.match(/^\s+/);if($r!=null&&$r[0]){N.preventDefault();var Ds=`
|
||
`+$r[0],qe=q+Ds.length;_t({value:U.substring(0,q)+Ds+U.substring(pe),selectionStart:qe,selectionEnd:qe})}}}else if(N.keyCode===S0||N.keyCode===A0||N.keyCode===z0||N.keyCode===F0){var Mt=void 0;N.keyCode===S0&&N.shiftKey?Mt=["(",")"]:N.keyCode===A0?N.shiftKey?Mt=["{","}"]:Mt=["[","]"]:N.keyCode===z0?N.shiftKey?Mt=['"','"']:Mt=["'","'"]:N.keyCode===F0&&!N.shiftKey&&(Mt=["`","`"]),q!==pe&&Mt&&(N.preventDefault(),_t({value:U.substring(0,q)+Mt[0]+U.substring(q,pe)+Mt[1]+U.substring(pe),selectionStart:q,selectionEnd:pe+2}))}else(dl?N.metaKey&&N.keyCode===lo:N.ctrlKey&&N.keyCode===lo)&&!N.shiftKey&&!N.altKey?(N.preventDefault(),Or()):(dl?N.metaKey&&N.keyCode===lo&&N.shiftKey:zy?N.ctrlKey&&N.keyCode===Ey:N.ctrlKey&&N.keyCode===lo&&N.shiftKey)&&!N.altKey?(N.preventDefault(),Au()):N.keyCode===Sy&&N.ctrlKey&&(!dl||N.shiftKey)&&(N.preventDefault(),T(function(Nu){return!Nu}))}},Ci=function(N){var Q=N.currentTarget,U=Q.value,q=Q.selectionStart,pe=Q.selectionEnd;Le({value:U,selectionStart:q,selectionEnd:pe},!0),p(U)};return et.useEffect(function(){je()},[je]),et.useImperativeHandle(n,function(){return{get session(){return{history:W.current}},set session(N){W.current=N.history}}},[]),et.createElement("div",be({},Y,{style:be(be({},qu.container),j)}),et.createElement("pre",be({className:E,"aria-hidden":"true",style:be(be(be({},qu.editor),qu.highlight),O)},typeof wt=="string"?{dangerouslySetInnerHTML:{__html:wt+"<br />"}}:{children:wt})),et.createElement("textarea",{ref:function(N){return F.current=N},style:be(be(be({},qu.editor),qu.textarea),O),className:_o+(ue?" ".concat(ue):""),id:L,value:B,onChange:Ci,onKeyDown:On,onClick:_,onKeyUp:f,onFocus:C,onBlur:x,disabled:r,form:o,maxLength:h,minLength:m,name:v,placeholder:w,readOnly:S,required:A,autoFocus:u,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),et.createElement("style",{dangerouslySetInnerHTML:{__html:Fy}}))}),qu={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}},jy=Jp.default=Dy,Xp={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
||
* Prism: Lightweight, robust, elegant syntax highlighting
|
||
*
|
||
* @license MIT <https://opensource.org/licenses/MIT>
|
||
* @author Lea Verou <https://lea.verou.me>
|
||
* @namespace
|
||
* @public
|
||
*/var n=function(u){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,i={},l={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function f(p){return p instanceof a?new a(p.type,f(p.content),p.alias):Array.isArray(p)?p.map(f):p.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(f){return Object.prototype.toString.call(f).slice(8,-1)},objId:function(f){return f.__id||Object.defineProperty(f,"__id",{value:++o}),f.__id},clone:function f(p,y){y=y||{};var b,w;switch(l.util.type(p)){case"Object":if(w=l.util.objId(p),y[w])return y[w];b={},y[w]=b;for(var E in p)p.hasOwnProperty(E)&&(b[E]=f(p[E],y));return b;case"Array":return w=l.util.objId(p),y[w]?y[w]:(b=[],y[w]=b,p.forEach(function(S,A){b[A]=f(S,y)}),b);default:return p}},getLanguage:function(f){for(;f;){var p=r.exec(f.className);if(p)return p[1].toLowerCase();f=f.parentElement}return"none"},setLanguage:function(f,p){f.className=f.className.replace(RegExp(r,"gi"),""),f.classList.add("language-"+p)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(b){var f=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(f){var p=document.getElementsByTagName("script");for(var y in p)if(p[y].src==f)return p[y]}return null}},isActive:function(f,p,y){for(var b="no-"+p;f;){var w=f.classList;if(w.contains(p))return!0;if(w.contains(b))return!1;f=f.parentElement}return!!y}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(f,p){var y=l.util.clone(l.languages[f]);for(var b in p)y[b]=p[b];return y},insertBefore:function(f,p,y,b){b=b||l.languages;var w=b[f],E={};for(var S in w)if(w.hasOwnProperty(S)){if(S==p)for(var A in y)y.hasOwnProperty(A)&&(E[A]=y[A]);y.hasOwnProperty(S)||(E[S]=w[S])}var j=b[f];return b[f]=E,l.languages.DFS(l.languages,function(I,M){M===j&&I!=f&&(this[I]=E)}),E},DFS:function f(p,y,b,w){w=w||{};var E=l.util.objId;for(var S in p)if(p.hasOwnProperty(S)){y.call(p,S,p[S],b||S);var A=p[S],j=l.util.type(A);j==="Object"&&!w[E(A)]?(w[E(A)]=!0,f(A,y,null,w)):j==="Array"&&!w[E(A)]&&(w[E(A)]=!0,f(A,y,S,w))}}},plugins:{},highlightAll:function(f,p){l.highlightAllUnder(document,f,p)},highlightAllUnder:function(f,p,y){var b={callback:y,container:f,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),l.hooks.run("before-all-elements-highlight",b);for(var w=0,E;E=b.elements[w++];)l.highlightElement(E,p===!0,b.callback)},highlightElement:function(f,p,y){var b=l.util.getLanguage(f),w=l.languages[b];l.util.setLanguage(f,b);var E=f.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(E,b);var S=f.textContent,A={element:f,language:b,grammar:w,code:S};function j(M){A.highlightedCode=M,l.hooks.run("before-insert",A),A.element.innerHTML=A.highlightedCode,l.hooks.run("after-highlight",A),l.hooks.run("complete",A),y&&y.call(A.element)}if(l.hooks.run("before-sanity-check",A),E=A.element.parentElement,E&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!A.code){l.hooks.run("complete",A),y&&y.call(A.element);return}if(l.hooks.run("before-highlight",A),!A.grammar){j(l.util.encode(A.code));return}if(p&&u.Worker){var I=new Worker(l.filename);I.onmessage=function(M){j(M.data)},I.postMessage(JSON.stringify({language:A.language,code:A.code,immediateClose:!0}))}else j(l.highlight(A.code,A.grammar,A.language))},highlight:function(f,p,y){var b={code:f,grammar:p,language:y};if(l.hooks.run("before-tokenize",b),!b.grammar)throw new Error('The language "'+b.language+'" has no grammar.');return b.tokens=l.tokenize(b.code,b.grammar),l.hooks.run("after-tokenize",b),a.stringify(l.util.encode(b.tokens),b.language)},tokenize:function(f,p){var y=p.rest;if(y){for(var b in y)p[b]=y[b];delete p.rest}var w=new h;return m(w,w.head,f),d(f,w,p,w.head,0),x(w)},hooks:{all:{},add:function(f,p){var y=l.hooks.all;y[f]=y[f]||[],y[f].push(p)},run:function(f,p){var y=l.hooks.all[f];if(!(!y||!y.length))for(var b=0,w;w=y[b++];)w(p)}},Token:a};u.Prism=l;function a(f,p,y,b){this.type=f,this.content=p,this.alias=y,this.length=(b||"").length|0}a.stringify=function f(p,y){if(typeof p=="string")return p;if(Array.isArray(p)){var b="";return p.forEach(function(j){b+=f(j,y)}),b}var w={type:p.type,content:f(p.content,y),tag:"span",classes:["token",p.type],attributes:{},language:y},E=p.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(w.classes,E):w.classes.push(E)),l.hooks.run("wrap",w);var S="";for(var A in w.attributes)S+=" "+A+'="'+(w.attributes[A]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+S+">"+w.content+"</"+w.tag+">"};function s(f,p,y,b){f.lastIndex=p;var w=f.exec(y);if(w&&b&&w[1]){var E=w[1].length;w.index+=E,w[0]=w[0].slice(E)}return w}function d(f,p,y,b,w,E){for(var S in y)if(!(!y.hasOwnProperty(S)||!y[S])){var A=y[S];A=Array.isArray(A)?A:[A];for(var j=0;j<A.length;++j){if(E&&E.cause==S+","+j)return;var I=A[j],M=I.inside,ue=!!I.lookbehind,L=!!I.greedy,B=I.alias;if(L&&!I.pattern.global){var Y=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,Y+"g")}for(var W=I.pattern||I,F=b.next,P=w;F!==p.tail&&!(E&&P>=E.reach);P+=F.value.length,F=F.next){var z=F.value;if(p.length>f.length)return;if(!(z instanceof a)){var T=1,O;if(L){if(O=s(W,P,f,ue),!O||O.index>=f.length)break;var je=O.index,wt=O.index+O[0].length,re=P;for(re+=F.value.length;je>=re;)F=F.next,re+=F.value.length;if(re-=F.value.length,P=re,F.value instanceof a)continue;for(var Le=F;Le!==p.tail&&(re<wt||typeof Le.value=="string");Le=Le.next)T++,re+=Le.value.length;T--,z=f.slice(P,re),O.index-=P}else if(O=s(W,0,z,ue),!O)continue;var je=O.index,Ve=O[0],_t=z.slice(0,je),Or=z.slice(je+Ve.length),Au=P+z.length;E&&Au>E.reach&&(E.reach=Au);var On=F.prev;_t&&(On=m(p,On,_t),P+=_t.length),v(p,On,T);var Ci=new a(S,M?l.tokenize(Ve,M):Ve,B,Ve);if(F=m(p,On,Ci),Or&&m(p,F,Or),T>1){var N={cause:S+","+j,reach:Au};d(f,p,y,F.prev,P,N),E&&N.reach>E.reach&&(E.reach=N.reach)}}}}}}function h(){var f={value:null,prev:null,next:null},p={value:null,prev:f,next:null};f.next=p,this.head=f,this.tail=p,this.length=0}function m(f,p,y){var b=p.next,w={value:y,prev:p,next:b};return p.next=w,b.prev=w,f.length++,w}function v(f,p,y){for(var b=p.next,w=0;w<y&&b!==f.tail;w++)b=b.next;p.next=b,b.prev=p,f.length-=w}function x(f){for(var p=[],y=f.head.next;y!==f.tail;)p.push(y.value),y=y.next;return p}if(!u.document)return u.addEventListener&&(l.disableWorkerMessageHandler||u.addEventListener("message",function(f){var p=JSON.parse(f.data),y=p.language,b=p.code,w=p.immediateClose;u.postMessage(l.highlight(b,l.languages[y],y)),w&&u.close()},!1)),l;var _=l.util.currentScript();_&&(l.filename=_.src,_.hasAttribute("data-manual")&&(l.manual=!0));function C(){l.manual||l.highlightAll()}if(!l.manual){var g=document.readyState;g==="loading"||g==="interactive"&&_&&_.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return l}(t);e.exports&&(e.exports=n),typeof ot<"u"&&(ot.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(u){u.type==="entity"&&(u.attributes.title=u.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(r,o){var i={};i["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};l["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var a={};a[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(u,r){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+u+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:n.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(u){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;u.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},u.languages.css.atrule.inside.rest=u.languages.css;var o=u.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var u="Loading…",r=function(_,C){return"✖ Error "+_+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",i={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",a="loading",s="loaded",d="failed",h="pre[data-src]:not(["+l+'="'+s+'"]):not(['+l+'="'+a+'"])';function m(_,C,g){var f=new XMLHttpRequest;f.open("GET",_,!0),f.onreadystatechange=function(){f.readyState==4&&(f.status<400&&f.responseText?C(f.responseText):f.status>=400?g(r(f.status,f.statusText)):g(o))},f.send(null)}function v(_){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(_||"");if(C){var g=Number(C[1]),f=C[2],p=C[3];return f?p?[g,Number(p)]:[g,void 0]:[g,g]}}n.hooks.add("before-highlightall",function(_){_.selector+=", "+h}),n.hooks.add("before-sanity-check",function(_){var C=_.element;if(C.matches(h)){_.code="",C.setAttribute(l,a);var g=C.appendChild(document.createElement("CODE"));g.textContent=u;var f=C.getAttribute("data-src"),p=_.language;if(p==="none"){var y=(/\.(\w+)$/.exec(f)||[,"none"])[1];p=i[y]||y}n.util.setLanguage(g,p),n.util.setLanguage(C,p);var b=n.plugins.autoloader;b&&b.loadLanguages(p),m(f,function(w){C.setAttribute(l,s);var E=v(C.getAttribute("data-range"));if(E){var S=w.split(/\r\n?|\n/g),A=E[0],j=E[1]==null?S.length:E[1];A<0&&(A+=S.length),A=Math.max(0,Math.min(A-1,S.length)),j<0&&(j+=S.length),j=Math.max(0,Math.min(j,S.length)),w=S.slice(A,j).join(`
|
||
`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(A+1))}g.textContent=w,n.highlightElement(g)},function(w){C.setAttribute(l,d),g.textContent=w})}}),n.plugins.fileHighlight={highlight:function(C){for(var g=(C||document).querySelectorAll(h),f=0,p;p=g[f++];)n.highlightElement(p)}};var x=!1;n.fileHighlight=function(){x||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),x=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Xp);var j0=Xp.exports;(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var u=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return u}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+o+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+o+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(u),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(u),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(h){d!==h&&(e.languages.markdown[d].inside.content.inside[h]=e.languages.markdown[h])})}),e.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function h(m){if(!(!m||typeof m=="string"))for(var v=0,x=m.length;v<x;v++){var _=m[v];if(_.type!=="code"){h(_.content);continue}var C=_.content[1],g=_.content[3];if(C&&g&&C.type==="code-language"&&g.type==="code-block"&&typeof C.content=="string"){var f=C.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");f=(/[a-z][\w-]*/i.exec(f)||[""])[0].toLowerCase();var p="language-"+f;g.alias?typeof g.alias=="string"?g.alias=[g.alias,p]:g.alias.push(p):g.alias=[p]}}}h(d.tokens)}),e.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var h="",m=0,v=d.classes.length;m<v;m++){var x=d.classes[m],_=/language-(.+)/.exec(x);if(_){h=_[1];break}}var C=e.languages[h];if(C)d.content=e.highlight(s(d.content),C,h);else if(h&&h!=="none"&&e.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=g,e.plugins.autoloader.loadLanguages(h,function(){var f=document.getElementById(g);f&&(f.innerHTML=e.highlight(f.textContent,e.languages[h],h))})}}});var i=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function s(d){var h=d.replace(i,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(m,v){if(v=v.toLowerCase(),v[0]==="#"){var x;return v[1]==="x"?x=parseInt(v.slice(2),16):x=Number(v.slice(1)),a(x)}else{var _=l[v];return _||m}}),h}e.languages.md=e.languages.markdown})(Prism);(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,u="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",r=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(l,a){a=(a||"").replace(/m/g,"")+"m";var s=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return u}).replace(/<<value>>/g,function(){return l});return RegExp(s,a)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return u})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return u}).replace(/<<key>>/g,function(){return"(?:"+r+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(Prism);function Ny(){const[e,t]=k.useState(""),[n,u]=k.useState(""),[r,o]=k.useState(!1),i=k.useCallback(async(a,s)=>{o(!0);try{const d=await fe.getPrompt(a,s);t(d.content),u(d.path)}catch{t(""),u("")}o(!1)},[]),l=k.useCallback(async(a,s,d)=>{await fe.savePrompt(a,s,d),t(d)},[]);return{content:e,path:n,loading:r,load:i,save:l,setContent:t}}const Ty=[{type:"storyboard",label:"分镜"},{type:"image",label:"图片提示词"},{type:"video",label:"视频提示词"}],Ry={fontFamily:'"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace',fontSize:13,lineHeight:1.6,minHeight:"100%"};function Py({accountId:e}={}){const{accounts:t}=Yp(),[n,u]=k.useState(""),[r,o]=k.useState("storyboard"),{content:i,path:l,loading:a,load:s,save:d,setContent:h}=Ny();k.useEffect(()=>{e?u(e):t.length>0&&!n&&u(t[0].id)},[e,t]),k.useEffect(()=>{n&&s(n,r)},[n,r]);const m=k.useCallback(v=>{try{return j0.highlight(v,j0.languages.markdown,"markdown")}catch{return v}},[]);return c.jsxs("div",{className:"flex h-full",children:[c.jsxs("div",{className:"w-48 border-r border-zinc-200 p-3 space-y-3 bg-zinc-50",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"账户"}),c.jsx("select",{value:n,onChange:v=>u(v.target.value),className:"mt-1 w-full h-9 rounded-md border border-zinc-200 bg-white px-2 text-sm text-zinc-700",children:t.map(v=>c.jsx("option",{value:v.id,children:v.name},v.id))})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"模板"}),c.jsx("div",{className:"mt-1 space-y-0.5",children:Ty.map(({type:v,label:x})=>c.jsx("button",{onClick:()=>o(v),className:`w-full text-left px-2 py-1.5 rounded text-sm transition-colors ${r===v?"bg-indigo-50 text-indigo-700 font-medium":"text-zinc-500 hover:text-zinc-700 hover:bg-white"}`,children:x},v))})]})]}),c.jsxs("div",{className:"flex-1 flex flex-col bg-white",children:[c.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-zinc-200",children:[c.jsx("span",{className:"text-xs text-zinc-400 font-mono",children:l||"选择账户和模板"}),c.jsx(yt,{size:"sm",onClick:()=>d(n,r,i),disabled:!n||a,className:"text-xs",children:a?"加载中...":"保存"})]}),c.jsx("div",{className:"flex-1 overflow-auto",children:c.jsx(jy,{value:i,onValueChange:h,highlight:m,padding:16,style:Ry,className:"min-h-full bg-white",textareaClassName:"outline-none"})})]})]})}function My({accountId:e}){return c.jsx(Py,{accountId:e})}const Ly={effects:[],filter:"",subtitleStyle:{fontSize:24,color:"#FFFFFF",highlightColor:"#FF6B35",bold:!0,transformY:-380,inAnimation:"淡入",outAnimation:"淡出"},defaultBGM:""};function Iy({account:e,onSave:t}){const n=e.capcut||Ly,[u,r]=k.useState((n.effects||[]).join(", ")),[o,i]=k.useState(n.filter||""),[l,a]=k.useState(n.subtitleStyle||{}),[s,d]=k.useState(n.defaultBGM||""),[h,m]=k.useState(!1),v=()=>{t({capcut:{...n,effects:u.split(",").map(x=>x.trim()).filter(Boolean),filter:o,subtitleStyle:l,defaultBGM:s}}),m(!0),setTimeout(()=>m(!1),2e3)};return c.jsxs("div",{className:"max-w-lg space-y-5",children:[c.jsxs("fieldset",{className:"space-y-2",children:[c.jsx("legend",{className:"text-xs font-semibold text-zinc-600 uppercase tracking-wide",children:"特效"}),c.jsx(he,{value:u,onChange:x=>r(x.target.value),placeholder:"特效名1, 特效名2",className:"bg-zinc-50 border-zinc-200 text-xs"}),c.jsx("p",{className:"text-[10px] text-zinc-400",children:"多个特效用逗号分隔"})]}),c.jsxs("fieldset",{className:"space-y-2",children:[c.jsx("legend",{className:"text-xs font-semibold text-zinc-600 uppercase tracking-wide",children:"滤镜"}),c.jsx(he,{value:o,onChange:x=>i(x.target.value),placeholder:"质感暗调:30",className:"bg-zinc-50 border-zinc-200 text-xs font-mono"})]}),c.jsxs("fieldset",{className:"space-y-3",children:[c.jsx("legend",{className:"text-xs font-semibold text-zinc-600 uppercase tracking-wide",children:"字幕样式"}),c.jsxs("div",{className:"bg-zinc-50 rounded-lg border border-zinc-200 p-3 space-y-2",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-[10px] text-zinc-500",children:"字号"}),c.jsx(he,{type:"number",value:l.fontSize||"",onChange:x=>a({...l,fontSize:parseInt(x.target.value)||void 0}),className:"h-8 text-xs bg-white border-zinc-200"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-[10px] text-zinc-500",children:"颜色"}),c.jsxs("div",{className:"flex gap-1 items-center",children:[c.jsx("input",{type:"color",value:l.color||"#FFFFFF",onChange:x=>a({...l,color:x.target.value}),className:"w-8 h-8 rounded border border-zinc-200 cursor-pointer"}),c.jsx(he,{value:l.color||"",onChange:x=>a({...l,color:x.target.value}),className:"h-8 text-xs bg-white border-zinc-200 font-mono flex-1"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-[10px] text-zinc-500",children:"高亮色"}),c.jsxs("div",{className:"flex gap-1 items-center",children:[c.jsx("input",{type:"color",value:l.highlightColor||"#FF6B35",onChange:x=>a({...l,highlightColor:x.target.value}),className:"w-8 h-8 rounded border border-zinc-200 cursor-pointer"}),c.jsx(he,{value:l.highlightColor||"",onChange:x=>a({...l,highlightColor:x.target.value}),className:"h-8 text-xs bg-white border-zinc-200 font-mono flex-1"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-[10px] text-zinc-500",children:"Y偏移"}),c.jsx(he,{type:"number",value:l.transformY||"",onChange:x=>a({...l,transformY:parseInt(x.target.value)||void 0}),className:"h-8 text-xs bg-white border-zinc-200"})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-[10px] text-zinc-500",children:"入动画"}),c.jsx(he,{value:l.inAnimation||"",onChange:x=>a({...l,inAnimation:x.target.value}),placeholder:"淡入",className:"h-8 text-xs bg-white border-zinc-200"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-[10px] text-zinc-500",children:"出动画"}),c.jsx(he,{value:l.outAnimation||"",onChange:x=>a({...l,outAnimation:x.target.value}),placeholder:"淡出",className:"h-8 text-xs bg-white border-zinc-200"})]})]}),c.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600",children:[c.jsx("input",{type:"checkbox",checked:l.bold||!1,onChange:x=>a({...l,bold:x.target.checked})}),"粗体"]})]})]}),c.jsxs("fieldset",{className:"space-y-2",children:[c.jsx("legend",{className:"text-xs font-semibold text-zinc-600 uppercase tracking-wide",children:"背景音乐"}),c.jsx(he,{value:s,onChange:x=>d(x.target.value),placeholder:"BGM URL",className:"bg-zinc-50 border-zinc-200 text-xs font-mono"})]}),c.jsx(yt,{onClick:v,children:h?"已保存":"保存 CapCut 配置"})]})}function Oy({account:e,onSave:t}){const n=e.references||[],[u,r]=k.useState(!1),o=k.useRef(null),i=async a=>{var d;const s=(d=a.target.files)==null?void 0:d[0];if(s){r(!0);try{const h=new FormData;h.append("file",s),await fetch(`/api/accounts/${e.id}/references/upload`,{method:"POST",body:h});const m=await fe.getAccount(e.id);t({references:m.references})}catch(h){alert("上传失败: "+h.message)}r(!1),o.current&&(o.current.value="")}},l=async a=>{if(confirm("确定删除这张参考图?"))try{await fetch(`/api/accounts/${e.id}/references/${a}`,{method:"DELETE"});const s=await fe.getAccount(e.id);t({references:s.references})}catch(s){alert("删除失败: "+s.message)}};return c.jsxs("div",{className:"max-w-lg space-y-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("input",{ref:o,type:"file",accept:"image/*",onChange:i,className:"hidden"}),c.jsxs(yt,{variant:"outline",size:"sm",onClick:()=>{var a;return(a=o.current)==null?void 0:a.click()},disabled:u,children:[c.jsx(zg,{size:14,className:"mr-1"}),u?"上传中...":"添加参考图"]}),c.jsxs("span",{className:"text-xs text-zinc-400",children:[n.length," 张参考图"]})]}),n.length>0?c.jsx("div",{className:"grid grid-cols-4 gap-2",children:n.map((a,s)=>c.jsxs("div",{className:"group relative aspect-square bg-zinc-100 rounded-lg overflow-hidden border border-zinc-200",children:[a.file?c.jsx("img",{src:`/api/accounts/${e.id}/references/${encodeURIComponent(a.file.split("/").pop()||"")}`,alt:"",className:"w-full h-full object-cover"}):a.url?c.jsx("img",{src:a.url,alt:"",className:"w-full h-full object-cover"}):c.jsx("div",{className:"w-full h-full flex items-center justify-center",children:c.jsx(Mn,{size:20,className:"text-zinc-400"})}),c.jsx("button",{onClick:()=>l(s),className:"absolute top-1 right-1 p-1 rounded bg-white/80 opacity-0 group-hover:opacity-100 transition-opacity shadow-sm",children:c.jsx(Pr,{size:11,className:"text-red-500"})}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/30 to-transparent p-1",children:c.jsx("span",{className:"text-[9px] text-white truncate block",children:a.file})})]},s))}):c.jsxs("div",{className:"text-center py-8 text-zinc-400",children:[c.jsx(Mn,{size:28,className:"mx-auto mb-2 opacity-40"}),c.jsx("p",{className:"text-xs",children:"暂无参考图"}),c.jsx("p",{className:"text-[10px] mt-1",children:"点击上方按钮上传参考图"})]}),e.styles&&Object.keys(e.styles).length>0&&c.jsxs("div",{className:"mt-4",children:[c.jsx("h4",{className:"text-xs font-semibold text-zinc-600 mb-2",children:"风格预设"}),c.jsx("div",{className:"space-y-1",children:Object.entries(e.styles).map(([a,s])=>{var d;return c.jsxs("div",{className:"flex items-center justify-between px-3 py-2 bg-zinc-50 rounded-lg text-xs",children:[c.jsx("span",{className:"font-medium text-zinc-700",children:a}),c.jsxs("span",{className:"text-zinc-400",children:[((d=s.references)==null?void 0:d.length)||0," 张"]})]},a)})})]})]})}const $y=[{key:"basic",label:"基本信息"},{key:"prompts",label:"提示词"},{key:"capcut",label:"CapCut"},{key:"references",label:"参考图"}];function By({account:e,onSave:t,onDelete:n,onBack:u}){const[r,o]=k.useState("basic");return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"flex items-center justify-between px-6 py-3 border-b border-zinc-200 bg-white flex-shrink-0",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("button",{onClick:u,className:"p-1 rounded hover:bg-zinc-100 text-zinc-500 hover:text-zinc-700 transition-colors",children:c.jsx(dg,{size:18})}),c.jsx("h2",{className:"text-base font-semibold text-zinc-800",children:e.name}),c.jsx("span",{className:"text-xs text-zinc-400",children:e.id})]}),c.jsxs(yt,{size:"sm",variant:"ghost",className:"text-red-500 hover:bg-red-50 hover:text-red-600",onClick:()=>{confirm(`确定删除账户「${e.name}」?`)&&n()},children:[c.jsx(Pr,{size:14,className:"mr-1"}),"删除"]})]}),c.jsx("div",{className:"flex gap-0 border-b border-zinc-200 px-6 bg-white flex-shrink-0",children:$y.map(({key:i,label:l})=>c.jsx("button",{onClick:()=>o(i),className:`px-4 py-2.5 text-sm font-medium transition-colors border-b-2 -mb-px
|
||
${r===i?"border-indigo-600 text-indigo-600":"border-transparent text-zinc-500 hover:text-zinc-700"}`,children:l},i))}),c.jsxs("div",{className:"flex-1 overflow-auto p-6",children:[r==="basic"&&c.jsx(by,{account:e,onSave:t}),r==="prompts"&&c.jsx(My,{accountId:e.id}),r==="capcut"&&c.jsx(Iy,{account:e,onSave:t}),r==="references"&&c.jsx(Oy,{account:e,onSave:t})]})]})}function Uy(){return c.jsxs("div",{className:"rounded-xl p-4 border border-zinc-100 bg-white",children:[c.jsxs("div",{className:"flex items-start justify-between mb-2",children:[c.jsx("div",{className:"skeleton h-4 w-24"}),c.jsx("div",{className:"skeleton h-4 w-10 rounded-full"})]}),c.jsx("div",{className:"skeleton h-3 w-full mb-2"}),c.jsx("div",{className:"skeleton h-3 w-2/3 mb-3"}),c.jsxs("div",{className:"flex gap-1.5",children:[c.jsx("div",{className:"skeleton h-4 w-14 rounded-full"}),c.jsx("div",{className:"skeleton h-4 w-12 rounded-full"})]})]})}function N0(){const{accountId:e}=rp(),t=Cu(),{accounts:n,loading:u,create:r,update:o,remove:i}=Yp(),[l,a]=k.useState(""),s=e&&n.find(m=>m.id===e)||null,d=n.filter(m=>{if(!l)return!0;const v=l.toLowerCase();return m.name.toLowerCase().includes(v)||(m.description||"").toLowerCase().includes(v)}),h=async()=>{const m=`新账号 ${n.length+1}`,v=await r({name:m,pipeline:"image-video",defaultFormat:"9:16",imageModel:"gemini",videoModel:"veo3-fast"});v!=null&&v.id&&t(`/accounts/${v.id}`)};return s?c.jsx(By,{account:s,onSave:m=>o(s.id,m),onDelete:()=>i(s.id).then(()=>t("/accounts")),onBack:()=>t("/accounts")}):c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-zinc-100 bg-white flex-shrink-0",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("h1",{className:"text-base font-semibold text-zinc-800",children:"账号管理"}),c.jsxs("div",{className:"relative",children:[c.jsx(da,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-zinc-300"}),c.jsx(he,{value:l,onChange:m=>a(m.target.value),placeholder:"搜索账号...",className:"pl-8 h-8 w-48 text-xs bg-zinc-50/80 border-zinc-100 focus:bg-white"})]})]}),c.jsxs("button",{onClick:h,className:"inline-flex items-center gap-1.5 px-3.5 py-1.5 text-xs font-medium text-white bg-indigo-600 rounded-lg hover:bg-indigo-700 transition-colors shadow-sm shadow-indigo-200/50",children:[c.jsx(ca,{size:14}),"新建账号"]})]}),c.jsx("div",{className:"flex-1 overflow-auto p-6",children:u?c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:Array.from({length:6}).map((m,v)=>c.jsx(Uy,{},v))}):d.length>0?c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:d.map(m=>c.jsx(yy,{account:m,isSelected:m.id===e,onClick:()=>t(`/accounts/${m.id}`)},m.id))}):c.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-zinc-300",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl bg-zinc-50 flex items-center justify-center mb-4",children:c.jsx(da,{size:24,strokeWidth:1.5,className:"text-zinc-300"})}),l?c.jsxs(c.Fragment,{children:[c.jsxs("p",{className:"text-sm text-zinc-400",children:["没有匹配「",l,"」的账号"]}),c.jsx("button",{onClick:()=>a(""),className:"mt-2 text-xs text-indigo-500 hover:text-indigo-600",children:"清除搜索"})]}):c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"text-sm text-zinc-400",children:"还没有创建任何账号"}),c.jsxs("button",{onClick:h,className:"mt-3 inline-flex items-center gap-1.5 px-4 py-2 text-xs font-medium text-white bg-indigo-600 rounded-lg hover:bg-indigo-700 transition-colors shadow-sm shadow-indigo-200/50",children:[c.jsx(ca,{size:14}),"创建第一个账号"]})]})]})})]})}function Hy(e){const[t,n]=k.useState([]),[u,r]=k.useState(!0),o=k.useCallback(()=>{r(!0),fe.listAssets(e).then(n).finally(()=>r(!1))},[e==null?void 0:e.accountId,e==null?void 0:e.type]);return k.useEffect(()=>{o()},[o]),{assets:t,loading:u,refresh:o,remove:l=>fe.deleteAsset(l).then(o)}}function Vy({title:e,subtitle:t,assets:n,onPreview:u,onDelete:r}){const o=n.filter(l=>l.type==="image"),i=n.filter(l=>l.type==="video");return c.jsxs("div",{className:"mb-6",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx("h3",{className:"text-sm font-semibold text-zinc-700 truncate",children:e}),t&&c.jsx("span",{className:"text-[10px] text-zinc-400",children:t}),c.jsxs("div",{className:"flex items-center gap-2 ml-auto text-[10px] text-zinc-400",children:[o.length>0&&c.jsxs("span",{className:"inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded-full bg-blue-50/60 text-blue-500",children:[c.jsx(Mn,{size:10})," ",o.length]}),i.length>0&&c.jsxs("span",{className:"inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded-full bg-violet-50/60 text-violet-500",children:[c.jsx(la,{size:10})," ",i.length]})]})]}),c.jsx("div",{className:"flex gap-2.5 overflow-x-auto pb-2",children:n.map(l=>c.jsxs("div",{className:"group relative flex-shrink-0 w-28 h-28 bg-zinc-100 rounded-xl overflow-hidden cursor-pointer border border-zinc-100 hover:shadow-lg hover:shadow-zinc-200/60 hover:-translate-y-0.5 transition-all duration-200",onClick:()=>u(l),children:[l.type==="image"?c.jsx("img",{src:`/api/assets/file?path=${encodeURIComponent(l.file_path)}`,alt:"",className:"w-full h-full object-cover",loading:"lazy"}):c.jsxs("div",{className:"w-full h-full flex items-center justify-center bg-gradient-to-br from-zinc-800 to-zinc-900",children:[c.jsx(la,{size:20,className:"text-zinc-500"}),c.jsx("video",{src:`/api/assets/file?path=${encodeURIComponent(l.file_path)}`,className:"absolute inset-0 w-full h-full object-cover",muted:!0,preload:"none"})]}),c.jsx("button",{onClick:a=>{a.stopPropagation(),confirm("确定删除这个资产?")&&r(l.id)},className:"absolute top-1.5 right-1.5 p-1 rounded-lg bg-white/90 opacity-0 group-hover:opacity-100 transition-all duration-200 shadow-sm hover:bg-red-50",children:c.jsx(Pr,{size:10,className:"text-red-500"})}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/50 to-transparent px-1.5 py-1",children:c.jsxs("span",{className:"text-[9px] text-white/80 font-medium",children:[l.type==="image"?"IMG":"VID"," #",l.shot_index??"?"]})})]},l.id))})]})}function qy({asset:e,allAssets:t,onClose:n,onNavigate:u}){const r=t.findIndex(d=>d.id===e.id),o=k.useCallback(()=>{r>0&&u(t[r-1])},[r,t,u]),i=k.useCallback(()=>{r<t.length-1&&u(t[r+1])},[r,t,u]),l=k.useCallback(d=>{d.key==="Escape"&&n(),d.key==="ArrowLeft"&&o(),d.key==="ArrowRight"&&i()},[n,o,i]);k.useEffect(()=>(document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)),[l]);const a=r>0,s=r<t.length-1;return c.jsxs("div",{className:"fixed inset-0 z-50 bg-black/90 flex items-center justify-center",onClick:n,children:[c.jsx("button",{onClick:n,className:"absolute top-4 right-4 p-2 rounded-full bg-zinc-800 hover:bg-zinc-700 text-white z-10",children:c.jsx(yi,{size:20})}),a&&c.jsx("button",{onClick:d=>{d.stopPropagation(),o()},className:"absolute left-4 p-2 rounded-full bg-zinc-800/80 hover:bg-zinc-700 text-white z-10",children:c.jsx(gg,{size:24})}),s&&c.jsx("button",{onClick:d=>{d.stopPropagation(),i()},className:"absolute right-4 p-2 rounded-full bg-zinc-800/80 hover:bg-zinc-700 text-white z-10",children:c.jsx(hp,{size:24})}),c.jsx("div",{className:"max-w-[90vw] max-h-[90vh]",onClick:d=>d.stopPropagation(),children:e.type==="image"?c.jsx("img",{src:`/api/assets/file?path=${encodeURIComponent(e.file_path)}`,alt:"",className:"max-w-full max-h-[90vh] object-contain rounded-lg"}):c.jsx("video",{src:`/api/assets/file?path=${encodeURIComponent(e.file_path)}`,controls:!0,autoPlay:!0,className:"max-w-full max-h-[90vh] rounded-lg"})}),t.length>1&&c.jsxs("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 text-xs text-zinc-400 bg-zinc-900/80 px-3 py-1 rounded-full",children:[r+1," / ",t.length]})]})}function Wy(){return c.jsxs("div",{className:"mb-6",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx("div",{className:"skeleton h-4 w-28"}),c.jsx("div",{className:"skeleton h-3 w-20"})]}),c.jsx("div",{className:"flex gap-2.5",children:Array.from({length:4}).map((e,t)=>c.jsx("div",{className:"w-28 h-28 rounded-xl skeleton"},t))})]})}function Ky(){const[e,t]=k.useState(""),[n,u]=k.useState("all"),[r,o]=k.useState([]),[i,l]=k.useState([]),[a,s]=k.useState(null),{assets:d,loading:h,remove:m}=Hy({accountId:e||void 0});k.useEffect(()=>{fetch("/api/accounts").then(w=>w.json()).then(o).catch(()=>{}),fetch("/api/assets/manifests").then(w=>w.json()).then(l).catch(()=>{})},[]);const v=k.useMemo(()=>n==="all"?d:d.filter(w=>w.type===n),[d,n]),x=k.useMemo(()=>{const w=new Map;for(const E of v){const S=E.manifest_path||"ungrouped";w.has(S)||w.set(S,[]),w.get(S).push(E)}return w},[v]),_=d.filter(w=>w.type==="image").length,C=d.filter(w=>w.type==="video").length,g=async()=>{await fetch("/api/assets/scan",{method:"POST"}),window.location.reload()},f=w=>{const E=w.replace(/\\/g,"/").split("/");return E.length>=2?E[E.length-2]:w},p=w=>{const E=i.find(j=>j.manifest_path===w);if(!E)return"";const S=[];E.image_count&&S.push(`${E.image_count} 图`),E.video_count&&S.push(`${E.video_count} 视频`);const A=r.find(j=>j.id===E.account_id);return A&&S.push(A.name),S.join(" · ")},y=k.useMemo(()=>e?[...x.entries()].filter(([w])=>{if(w==="ungrouped")return!0;const E=i.find(S=>S.manifest_path===w);return(E==null?void 0:E.account_id)===e}):[...x.entries()],[x,i,e]),b=[{key:"all",label:"全部",icon:aa,count:d.length},{key:"image",label:"图片",icon:Mn,count:_},{key:"video",label:"视频",icon:la,count:C}];return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-zinc-100 bg-white flex-shrink-0",children:[c.jsx("div",{className:"flex rounded-lg border border-zinc-100 overflow-hidden bg-zinc-50/50",children:b.map(({key:w,label:E,icon:S,count:A})=>c.jsxs("button",{onClick:()=>u(w),className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium transition-all duration-150
|
||
${n===w?"bg-white text-indigo-600 shadow-sm":"text-zinc-400 hover:text-zinc-600"}`,children:[c.jsx(S,{size:13}),E,c.jsx("span",{className:`text-[10px] px-1.5 rounded-full ${n===w?"bg-indigo-50 text-indigo-500":"bg-zinc-100 text-zinc-400"}`,children:A})]},w))}),c.jsxs("select",{value:e,onChange:w=>t(w.target.value),className:"h-8 rounded-lg border border-zinc-100 bg-zinc-50/80 px-2 text-xs hover:border-zinc-200 transition-colors",children:[c.jsx("option",{value:"",children:"全部账号"}),r.map(w=>c.jsx("option",{value:w.id,children:w.name},w.id))]}),c.jsx("div",{className:"flex-1"}),c.jsxs(yt,{size:"sm",variant:"outline",className:"h-8 text-xs rounded-lg",onClick:g,children:[c.jsx(ys,{size:12,className:"mr-1"}),"扫描"]})]}),c.jsx("div",{className:"flex-1 overflow-auto p-4",children:h?c.jsx("div",{children:Array.from({length:3}).map((w,E)=>c.jsx(Wy,{},E))}):y.length===0?c.jsxs("div",{className:"flex flex-col items-center justify-center mt-16 text-zinc-300",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl bg-zinc-50 flex items-center justify-center mb-4",children:c.jsx(aa,{size:24,strokeWidth:1.5,className:"text-zinc-300"})}),c.jsx("p",{className:"text-sm text-zinc-400",children:n==="all"?"暂无资产":`暂无${n==="image"?"图片":"视频"}`}),c.jsx("p",{className:"text-xs mt-1 text-zinc-300",children:"点击「扫描」从 output 目录导入"})]}):y.map(([w,E])=>c.jsx(Vy,{title:f(w),subtitle:p(w),assets:E,onPreview:s,onDelete:m},w))}),a&&c.jsx(qy,{asset:a,allAssets:v,onClose:()=>s(null),onNavigate:s})]})}const Gy=[{title:"CapCut / 剪映",fields:[{key:"jianyingDraftPath",label:"剪映草稿路径",placeholder:"C:/Users/.../com.lveditor.draft"},{key:"capcutMateDir",label:"CapCut Mate 目录",placeholder:"C:/Users/.../capcut-mate"},{key:"capcutMateApiBase",label:"CapCut Mate API",placeholder:"http://localhost:30000"}]},{title:"Gemini 生图",fields:[{key:"geminiApiBaseUrl",label:"API Base URL",placeholder:"https://generativelanguage.googleapis.com"},{key:"geminiApiKey",label:"API Key",type:"password"},{key:"geminiModel",label:"模型",placeholder:"gemini-3.1-flash-image-preview"}]},{title:"Midjourney",fields:[{key:"mjApiBaseUrl",label:"API Base URL"},{key:"mjApiKey",label:"API Key",type:"password"}]},{title:"Veo 视频生成",fields:[{key:"veoApiBaseUrl",label:"API Base URL"},{key:"veoApiKey",label:"API Key",type:"password"},{key:"veoModel",label:"模型",placeholder:"veo3-fast-frames"},{key:"veoEnhancePrompt",label:"增强提示词",type:"toggle"},{key:"veoEnableUpsample",label:"启用 Upsample",type:"toggle"}]},{title:"Grok 视频生成",fields:[{key:"grokApiBaseUrl",label:"API Base URL"},{key:"grokApiKey",label:"API Key",type:"password"},{key:"grokModel",label:"模型",placeholder:"grok-video-3"}]},{title:"GPT Image",fields:[{key:"gptImageApiBaseUrl",label:"API Base URL"},{key:"gptImageApiKey",label:"API Key",type:"password"},{key:"gptImageModel",label:"模型",placeholder:"gpt-image-2"}]},{title:"Kling 可灵",fields:[{key:"kelingApiBaseUrl",label:"API Base URL",placeholder:"https://api-beijing.klingai.com"},{key:"kelingApiKey",label:"API Key",type:"password"},{key:"kelingSecretAccessKey",label:"Secret Key",type:"password"},{key:"kelingModel",label:"模型",placeholder:"kling-v2-5-turbo"}]},{title:"OSS 存储",fields:[{key:"ossRegion",label:"Region",placeholder:"oss-cn-hangzhou"},{key:"ossAccessKeyId",label:"Access Key ID"},{key:"ossAccessKeySecret",label:"Access Key Secret",type:"password"},{key:"ossBucket",label:"Bucket",placeholder:"my-bucket"},{key:"ossFolder",label:"目录前缀",placeholder:"tmp/"},{key:"ossExpires",label:"链接有效期(秒)",placeholder:"31536000"}]},{title:"TTS 语音合成",fields:[{key:"ttsApiBaseUrl",label:"API Base URL",placeholder:"https://dashscope.aliyuncs.com/api/v1"},{key:"ttsApiKey",label:"API Key",type:"password"},{key:"ttsModel",label:"模型",placeholder:"cosyvoice-v3.5-plus"},{key:"ttsVoice",label:"音色 ID",placeholder:"cosyvoice-v3.5-plus-bailian-xxx"},{key:"ttsLanguage",label:"语言",placeholder:"Chinese"}]}];function Qy(){var g;const[e,t]=k.useState("agent"),[n,u]=k.useState(!1),[r,o]=k.useState(!1),[i,l]=k.useState(!1),[a,s]=k.useState(null),[d,h]=k.useState({protocol:"anthropic",model:"",baseUrl:"",authToken:"",defaultImageModel:"",defaultVideoModel:"",defaultFormat:""}),[m,v]=k.useState({});k.useEffect(()=>{fe.getConfigs().then(f=>{const p={...d};for(const y of f)try{const b=typeof y.value=="string"?JSON.parse(y.value):y.value;y.key==="api_keys"&&(b.ANTHROPIC_MODEL&&(p.model=b.ANTHROPIC_MODEL),b.ANTHROPIC_BASE_URL&&(p.baseUrl=b.ANTHROPIC_BASE_URL),b.ANTHROPIC_AUTH_TOKEN&&(p.authToken=b.ANTHROPIC_AUTH_TOKEN),b.PROTOCOL&&(p.protocol=b.PROTOCOL)),y.key==="defaults"&&(b.imageModel&&(p.defaultImageModel=b.imageModel),b.videoModel&&(p.defaultVideoModel=b.videoModel),b.format&&(p.defaultFormat=b.format))}catch{}h(p)}),fe.getSkillsConfig().then(v).catch(()=>{})},[]);const x=(f,p)=>{h(y=>({...y,[f]:p}))},_=(f,p)=>{v(y=>({...y,[f]:p}))},C=async()=>{u(!0);try{e==="agent"?(await fe.saveConfig("api_keys",{PROTOCOL:d.protocol,ANTHROPIC_MODEL:d.model,ANTHROPIC_BASE_URL:d.baseUrl,ANTHROPIC_AUTH_TOKEN:d.authToken}),await fe.saveConfig("defaults",{imageModel:d.defaultImageModel,videoModel:d.defaultVideoModel,format:d.defaultFormat})):await fe.saveSkillsConfig(m),o(!0),setTimeout(()=>o(!1),2e3)}catch{}u(!1)};return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"flex gap-0 border-b border-zinc-200 px-6 bg-white",children:[c.jsx("button",{onClick:()=>t("agent"),className:`px-4 py-2.5 text-sm font-medium transition-colors border-b-2 -mb-px
|
||
${e==="agent"?"border-indigo-600 text-indigo-600":"border-transparent text-zinc-500 hover:text-zinc-700"}`,children:"Agent 配置"}),c.jsx("button",{onClick:()=>t("skills"),className:`px-4 py-2.5 text-sm font-medium transition-colors border-b-2 -mb-px
|
||
${e==="skills"?"border-indigo-600 text-indigo-600":"border-transparent text-zinc-500 hover:text-zinc-700"}`,children:"工具配置"})]}),c.jsx("div",{className:"flex-1 overflow-auto",children:c.jsxs("div",{className:"max-w-2xl mx-auto p-6 space-y-6",children:[e==="agent"?c.jsxs(c.Fragment,{children:[c.jsxs("section",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-zinc-500 uppercase tracking-wide",children:"API 配置"}),c.jsxs("div",{className:"space-y-3 bg-white rounded-lg border border-zinc-200 p-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"协议"}),c.jsx("div",{className:"mt-1 flex gap-2",children:["anthropic","openai"].map(f=>c.jsx("button",{onClick:()=>x("protocol",f),className:`flex-1 py-2 rounded-md text-sm font-medium transition-colors border ${d.protocol===f?"bg-indigo-50 border-indigo-300 text-indigo-700":"bg-zinc-50 border-zinc-200 text-zinc-500 hover:bg-zinc-100"}`,children:f==="anthropic"?"Anthropic":"OpenAI"},f))}),c.jsx("p",{className:"text-[10px] text-zinc-400 mt-1",children:d.protocol==="anthropic"?"Anthropic 兼容协议(支持 Claude、GLM、DeepSeek 代理等)":"OpenAI 兼容协议(支持 GPT、DeepSeek、Qwen、Ollama 等)"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"模型"}),c.jsx(he,{value:d.model,onChange:f=>x("model",f.target.value),placeholder:d.protocol==="anthropic"?"claude-sonnet-4-6 或 GLM-5.1":"gpt-4o 或 deepseek-chat",className:"mt-1 bg-zinc-50 border-zinc-200"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"Base URL"}),c.jsx(he,{value:d.baseUrl,onChange:f=>x("baseUrl",f.target.value),placeholder:d.protocol==="anthropic"?"https://api.anthropic.com":"https://api.openai.com/v1",className:"mt-1 bg-zinc-50 border-zinc-200 font-mono text-xs"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"Auth Token"}),c.jsx(he,{value:d.authToken,onChange:f=>x("authToken",f.target.value),type:"password",placeholder:"sk-...",className:"mt-1 bg-zinc-50 border-zinc-200 font-mono text-xs"})]}),c.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[c.jsxs(yt,{size:"sm",variant:"outline",className:"text-xs",disabled:i,onClick:async()=>{l(!0),s(null);try{await C();const p=await(await fetch("/api/configs/test-connection",{method:"POST"})).json();s(p)}catch(f){s({ok:!1,error:f.message})}l(!1)},children:[i?c.jsx(sa,{size:12,className:"mr-1 animate-spin"}):c.jsx(Ag,{size:12,className:"mr-1"}),i?"测试中...":"测试连接"]}),a&&c.jsx("span",{className:`text-xs ${a.ok?"text-green-600":"text-red-500"}`,children:a.ok?`连接成功 ${(g=a.models)!=null&&g.length?`(${a.models.join(", ")})`:""}`:a.error})]})]})]}),c.jsxs("section",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-zinc-500 uppercase tracking-wide",children:"默认参数"}),c.jsx("div",{className:"space-y-3 bg-white rounded-lg border border-zinc-200 p-4",children:c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"生图模型"}),c.jsxs("select",{value:d.defaultImageModel,onChange:f=>x("defaultImageModel",f.target.value),className:"mt-1 w-full h-10 rounded-md border border-zinc-200 bg-zinc-50 px-3 text-sm",children:[c.jsx("option",{value:"",children:"未设置"}),c.jsx("option",{value:"gemini",children:"Gemini"}),c.jsx("option",{value:"mj",children:"Midjourney"}),c.jsx("option",{value:"gpt",children:"GPT Image"}),c.jsx("option",{value:"kling",children:"Kling"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"视频模型"}),c.jsxs("select",{value:d.defaultVideoModel,onChange:f=>x("defaultVideoModel",f.target.value),className:"mt-1 w-full h-10 rounded-md border border-zinc-200 bg-zinc-50 px-3 text-sm",children:[c.jsx("option",{value:"",children:"未设置"}),c.jsx("option",{value:"veo3-fast",children:"Veo3 Fast"}),c.jsx("option",{value:"veo3-fast-frames",children:"Veo3 Fast Frames"}),c.jsx("option",{value:"kling",children:"Kling"}),c.jsx("option",{value:"grok",children:"Grok"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"画幅"}),c.jsxs("select",{value:d.defaultFormat,onChange:f=>x("defaultFormat",f.target.value),className:"mt-1 w-full h-10 rounded-md border border-zinc-200 bg-zinc-50 px-3 text-sm",children:[c.jsx("option",{value:"",children:"未设置"}),c.jsx("option",{value:"9:16",children:"9:16 竖屏"}),c.jsx("option",{value:"16:9",children:"16:9 横屏"}),c.jsx("option",{value:"1:1",children:"1:1 方形"})]})]})]})})]})]}):c.jsx(c.Fragment,{children:Gy.map(f=>c.jsxs("section",{className:"space-y-3",children:[c.jsx("h3",{className:"text-sm font-medium text-zinc-500 uppercase tracking-wide",children:f.title}),c.jsx("div",{className:"space-y-3 bg-white rounded-lg border border-zinc-200 p-4",children:f.fields.map(p=>{const y=m[p.key];return p.type==="toggle"?c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:p.label}),c.jsx("button",{onClick:()=>_(p.key,!y),className:`w-10 h-5 rounded-full transition-colors relative ${y?"bg-indigo-600":"bg-zinc-300"}`,children:c.jsx("span",{className:`absolute top-0.5 w-4 h-4 bg-white rounded-full shadow transition-transform ${y?"left-5":"left-0.5"}`})})]},p.key):c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:p.label}),c.jsx(he,{value:typeof y=="string"?y:y!=null?String(y):"",onChange:b=>_(p.key,b.target.value),type:p.type==="password"?"password":"text",placeholder:p.placeholder,className:"mt-1 bg-zinc-50 border-zinc-200 font-mono text-xs"})]},p.key)})})]},f.title))}),c.jsx(yt,{onClick:C,disabled:n,className:"w-full",children:r?c.jsxs(c.Fragment,{children:[c.jsx(hg,{size:14,className:"mr-1"}),"已保存"]}):n?c.jsxs(c.Fragment,{children:[c.jsx(sa,{size:14,className:"mr-1 animate-spin"}),"保存中..."]}):c.jsxs(c.Fragment,{children:[c.jsx(Eg,{size:14,className:"mr-1"}),"保存设置"]})})]})})]})}function Zy(){return c.jsx(xx,{children:c.jsx(_x,{children:c.jsxs(z2,{children:[c.jsx(Xt,{path:"/",element:c.jsx(S2,{to:"/chat",replace:!0})}),c.jsx(Xt,{path:"/chat",element:c.jsx(C0,{})}),c.jsx(Xt,{path:"/chat/:conversationId",element:c.jsx(C0,{})}),c.jsx(Xt,{path:"/accounts",element:c.jsx(N0,{})}),c.jsx(Xt,{path:"/accounts/:accountId",element:c.jsx(N0,{})}),c.jsx(Xt,{path:"/assets",element:c.jsx(Ky,{})}),c.jsx(Xt,{path:"/settings",element:c.jsx(Qy,{})})]})})})}fl.createRoot(document.getElementById("root")).render(c.jsx(Wu.StrictMode,{children:c.jsx(J2,{children:c.jsx(Zy,{})})}));
|