Files
video-create/web/client/dist/assets/index-Cgtxrl8D.js
sion123 a92379e20e feat(ui): 替换原生select为shadcn/ui组件并支持图片消息发送
- 将 AccountBasicTab 和 ConfigForm 中的原生 select 替换为 shadcn/ui Select 组件
- ChatInput 支持拖放上传图片附件
- 添加 attachment button 并整合图片附件到消息发送
- 优化 Select 组件样式,增加过渡动画和悬停效果
- 调整 ConfigForm tab 切换样式为按钮风格
- AssetGallery 使用 useAccounts hook 获取账户列表
- 重新构建前端静态资源
2026-05-08 02:29:07 +08:00

371 lines
495 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var Tg=Object.defineProperty;var Mg=(e,t,n)=>t in e?Tg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _u=(e,t,n)=>Mg(e,typeof t!="symbol"?t+"":t,n);function Lg(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const u in r)if(u!=="default"&&!(u in e)){const o=Object.getOwnPropertyDescriptor(r,u);o&&Object.defineProperty(e,u,o.get?o:{enumerable:!0,get:()=>r[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const o of u)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(u){const o={};return u.integrity&&(o.integrity=u.integrity),u.referrerPolicy&&(o.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?o.credentials="include":u.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(u){if(u.ep)return;u.ep=!0;const o=n(u);fetch(u.href,o)}})();var wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jf={exports:{}},il={},ep={exports:{}},Q={};/**
* @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 wo=Symbol.for("react.element"),Ig=Symbol.for("react.portal"),Og=Symbol.for("react.fragment"),$g=Symbol.for("react.strict_mode"),Bg=Symbol.for("react.profiler"),Ug=Symbol.for("react.provider"),Hg=Symbol.for("react.context"),Vg=Symbol.for("react.forward_ref"),Wg=Symbol.for("react.suspense"),qg=Symbol.for("react.memo"),Kg=Symbol.for("react.lazy"),_d=Symbol.iterator;function Gg(e){return e===null||typeof e!="object"?null:(e=_d&&e[_d]||e["@@iterator"],typeof e=="function"?e:null)}var tp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},np=Object.assign,rp={};function ou(e,t,n){this.props=e,this.context=t,this.refs=rp,this.updater=n||tp}ou.prototype.isReactComponent={};ou.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")};ou.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function up(){}up.prototype=ou.prototype;function Ga(e,t,n){this.props=e,this.context=t,this.refs=rp,this.updater=n||tp}var Za=Ga.prototype=new up;Za.constructor=Ga;np(Za,ou.prototype);Za.isPureReactComponent=!0;var Ed=Array.isArray,op=Object.prototype.hasOwnProperty,Qa={current:null},ip={key:!0,ref:!0,__self:!0,__source:!0};function lp(e,t,n){var r,u={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)op.call(t,r)&&!ip.hasOwnProperty(r)&&(u[r]=t[r]);var l=arguments.length-2;if(l===1)u.children=n;else if(1<l){for(var s=Array(l),a=0;a<l;a++)s[a]=arguments[a+2];u.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)u[r]===void 0&&(u[r]=l[r]);return{$$typeof:wo,type:e,key:o,ref:i,props:u,_owner:Qa.current}}function Zg(e,t){return{$$typeof:wo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ya(e){return typeof e=="object"&&e!==null&&e.$$typeof===wo}function Qg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Sd=/\/+/g;function Il(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Qg(""+e.key):t.toString(36)}function ii(e,t,n,r,u){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 wo:case Ig:i=!0}}if(i)return i=e,u=u(i),e=r===""?"."+Il(i,0):r,Ed(u)?(n="",e!=null&&(n=e.replace(Sd,"$&/")+"/"),ii(u,t,n,"",function(a){return a})):u!=null&&(Ya(u)&&(u=Zg(u,n+(!u.key||i&&i.key===u.key?"":(""+u.key).replace(Sd,"$&/")+"/")+e)),t.push(u)),1;if(i=0,r=r===""?".":r+":",Ed(e))for(var l=0;l<e.length;l++){o=e[l];var s=r+Il(o,l);i+=ii(o,t,n,s,u)}else if(s=Gg(e),typeof s=="function")for(e=s.call(e),l=0;!(o=e.next()).done;)o=o.value,s=r+Il(o,l++),i+=ii(o,t,n,s,u);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 Po(e,t,n){if(e==null)return e;var r=[],u=0;return ii(e,r,"","",function(o){return t.call(n,o,u++)}),r}function Yg(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 Ke={current:null},li={transition:null},Xg={ReactCurrentDispatcher:Ke,ReactCurrentBatchConfig:li,ReactCurrentOwner:Qa};function sp(){throw Error("act(...) is not supported in production builds of React.")}Q.Children={map:Po,forEach:function(e,t,n){Po(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Po(e,function(){t++}),t},toArray:function(e){return Po(e,function(t){return t})||[]},only:function(e){if(!Ya(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Q.Component=ou;Q.Fragment=Og;Q.Profiler=Bg;Q.PureComponent=Ga;Q.StrictMode=$g;Q.Suspense=Wg;Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xg;Q.act=sp;Q.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=np({},e.props),u=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Qa.current),t.key!==void 0&&(u=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)op.call(t,s)&&!ip.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var a=0;a<s;a++)l[a]=arguments[a+2];r.children=l}return{$$typeof:wo,type:e.type,key:u,ref:o,props:r,_owner:i}};Q.createContext=function(e){return e={$$typeof:Hg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ug,_context:e},e.Consumer=e};Q.createElement=lp;Q.createFactory=function(e){var t=lp.bind(null,e);return t.type=e,t};Q.createRef=function(){return{current:null}};Q.forwardRef=function(e){return{$$typeof:Vg,render:e}};Q.isValidElement=Ya;Q.lazy=function(e){return{$$typeof:Kg,_payload:{_status:-1,_result:e},_init:Yg}};Q.memo=function(e,t){return{$$typeof:qg,type:e,compare:t===void 0?null:t}};Q.startTransition=function(e){var t=li.transition;li.transition={};try{e()}finally{li.transition=t}};Q.unstable_act=sp;Q.useCallback=function(e,t){return Ke.current.useCallback(e,t)};Q.useContext=function(e){return Ke.current.useContext(e)};Q.useDebugValue=function(){};Q.useDeferredValue=function(e){return Ke.current.useDeferredValue(e)};Q.useEffect=function(e,t){return Ke.current.useEffect(e,t)};Q.useId=function(){return Ke.current.useId()};Q.useImperativeHandle=function(e,t,n){return Ke.current.useImperativeHandle(e,t,n)};Q.useInsertionEffect=function(e,t){return Ke.current.useInsertionEffect(e,t)};Q.useLayoutEffect=function(e,t){return Ke.current.useLayoutEffect(e,t)};Q.useMemo=function(e,t){return Ke.current.useMemo(e,t)};Q.useReducer=function(e,t,n){return Ke.current.useReducer(e,t,n)};Q.useRef=function(e){return Ke.current.useRef(e)};Q.useState=function(e){return Ke.current.useState(e)};Q.useSyncExternalStore=function(e,t,n){return Ke.current.useSyncExternalStore(e,t,n)};Q.useTransition=function(){return Ke.current.useTransition()};Q.version="18.3.1";ep.exports=Q;var g=ep.exports;const it=Xf(g),ap=Lg({__proto__:null,default:it},[g]);/**
* @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 Jg=g,e2=Symbol.for("react.element"),t2=Symbol.for("react.fragment"),n2=Object.prototype.hasOwnProperty,r2=Jg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u2={key:!0,ref:!0,__self:!0,__source:!0};function cp(e,t,n){var r,u={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)n2.call(t,r)&&!u2.hasOwnProperty(r)&&(u[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)u[r]===void 0&&(u[r]=t[r]);return{$$typeof:e2,type:e,key:o,ref:i,props:u,_owner:r2.current}}il.Fragment=t2;il.jsx=cp;il.jsxs=cp;Jf.exports=il;var c=Jf.exports,Ps={},dp={exports:{}},pt={},fp={exports:{}},pp={};/**
* @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(N,P){var j=N.length;N.push(P);e:for(;0<j;){var L=j-1>>>1,V=N[L];if(0<u(V,P))N[L]=P,N[j]=V,j=L;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var P=N[0],j=N.pop();if(j!==P){N[0]=j;e:for(var L=0,V=N.length,$e=V>>>1;L<$e;){var ee=2*(L+1)-1,ye=N[ee],he=ee+1,H=N[he];if(0>u(ye,j))he<V&&0>u(H,ye)?(N[L]=H,N[he]=j,L=he):(N[L]=ye,N[ee]=j,L=ee);else if(he<V&&0>u(H,j))N[L]=H,N[he]=j,L=he;else break e}}return P}function u(N,P){var j=N.sortIndex-P.sortIndex;return j!==0?j:N.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 s=[],a=[],d=1,p=null,m=3,y=!1,v=!1,b=!1,C=typeof setTimeout=="function"?setTimeout:null,x=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 h(N){for(var P=n(a);P!==null;){if(P.callback===null)r(a);else if(P.startTime<=N)r(a),P.sortIndex=P.expirationTime,t(s,P);else break;P=n(a)}}function w(N){if(b=!1,h(N),!v)if(n(s)!==null)v=!0,B(k);else{var P=n(a);P!==null&&$(w,P.startTime-N)}}function k(N,P){v=!1,b&&(b=!1,x(E),E=-1),y=!0;var j=m;try{for(h(P),p=n(s);p!==null&&(!(p.expirationTime>P)||N&&!z());){var L=p.callback;if(typeof L=="function"){p.callback=null,m=p.priorityLevel;var V=L(p.expirationTime<=P);P=e.unstable_now(),typeof V=="function"?p.callback=V:p===n(s)&&r(s),h(P)}else r(s);p=n(s)}if(p!==null)var $e=!0;else{var ee=n(a);ee!==null&&$(w,ee.startTime-P),$e=!1}return $e}finally{p=null,m=j,y=!1}}var _=!1,S=null,E=-1,A=5,D=-1;function z(){return!(e.unstable_now()-D<A)}function M(){if(S!==null){var N=e.unstable_now();D=N;var P=!0;try{P=S(!0,N)}finally{P?U():(_=!1,S=null)}}else _=!1}var U;if(typeof f=="function")U=function(){f(M)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,I=T.port2;T.port1.onmessage=M,U=function(){I.postMessage(null)}}else U=function(){C(M,0)};function B(N){S=N,_||(_=!0,U())}function $(N,P){E=C(function(){N(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(N){N.callback=null},e.unstable_continueExecution=function(){v||y||(v=!0,B(k))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(N){switch(m){case 1:case 2:case 3:var P=3;break;default:P=m}var j=m;m=P;try{return N()}finally{m=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,P){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var j=m;m=N;try{return P()}finally{m=j}},e.unstable_scheduleCallback=function(N,P,j){var L=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?L+j:L):j=L,N){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=j+V,N={id:d++,callback:P,priorityLevel:N,startTime:j,expirationTime:V,sortIndex:-1},j>L?(N.sortIndex=j,t(a,N),n(s)===null&&N===n(a)&&(b?(x(E),E=-1):b=!0,$(w,j-L))):(N.sortIndex=V,t(s,N),v||y||(v=!0,B(k))),N},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(N){var P=m;return function(){var j=m;m=P;try{return N.apply(this,arguments)}finally{m=j}}}})(pp);fp.exports=pp;var o2=fp.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 i2=g,dt=o2;function R(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 hp=new Set,Yu={};function yr(e,t){Zr(e,t),Zr(e+"Capture",t)}function Zr(e,t){for(Yu[e]=t,e=0;e<t.length;e++)hp.add(t[e])}var pn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ts=Object.prototype.hasOwnProperty,l2=/^[: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]*$/,Ad={},Nd={};function s2(e){return Ts.call(Nd,e)?!0:Ts.call(Ad,e)?!1:l2.test(e)?Nd[e]=!0:(Ad[e]=!0,!1)}function a2(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function c2(e,t,n,r){if(t===null||typeof t>"u"||a2(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ge(e,t,n,r,u,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=u,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ge(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){Ie[e]=new Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xa=/[\-:]([a-z])/g;function Ja(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(Xa,Ja);Ie[t]=new Ge(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(Xa,Ja);Ie[t]=new Ge(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(Xa,Ja);Ie[t]=new Ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ge(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function ec(e,t,n,r){var u=Ie.hasOwnProperty(t)?Ie[t]:null;(u!==null?u.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(c2(t,n,u,r)&&(n=null),r||u===null?s2(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):u.mustUseProperty?e[u.propertyName]=n===null?u.type===3?!1:"":n:(t=u.attributeName,r=u.attributeNamespace,n===null?e.removeAttribute(t):(u=u.type,n=u===3||u===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var bn=i2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,To=Symbol.for("react.element"),Ar=Symbol.for("react.portal"),Nr=Symbol.for("react.fragment"),tc=Symbol.for("react.strict_mode"),Ms=Symbol.for("react.profiler"),mp=Symbol.for("react.provider"),gp=Symbol.for("react.context"),nc=Symbol.for("react.forward_ref"),Ls=Symbol.for("react.suspense"),Is=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),Nn=Symbol.for("react.lazy"),xp=Symbol.for("react.offscreen"),Dd=Symbol.iterator;function Eu(e){return e===null||typeof e!="object"?null:(e=Dd&&e[Dd]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Object.assign,Ol;function Lu(e){if(Ol===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ol=t&&t[1]||""}return`
`+Ol+e}var $l=!1;function Bl(e,t){if(!e||$l)return"";$l=!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(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var u=a.stack.split(`
`),o=r.stack.split(`
`),i=u.length-1,l=o.length-1;1<=i&&0<=l&&u[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(u[i]!==o[l]){if(i!==1||l!==1)do if(i--,l--,0>l||u[i]!==o[l]){var s=`
`+u[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=l);break}}}finally{$l=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Lu(e):""}function d2(e){switch(e.tag){case 5:return Lu(e.type);case 16:return Lu("Lazy");case 13:return Lu("Suspense");case 19:return Lu("SuspenseList");case 0:case 2:case 15:return e=Bl(e.type,!1),e;case 11:return e=Bl(e.type.render,!1),e;case 1:return e=Bl(e.type,!0),e;default:return""}}function Os(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 Nr:return"Fragment";case Ar:return"Portal";case Ms:return"Profiler";case tc:return"StrictMode";case Ls:return"Suspense";case Is:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gp:return(e.displayName||"Context")+".Consumer";case mp:return(e._context.displayName||"Context")+".Provider";case nc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rc:return t=e.displayName||null,t!==null?t:Os(e.type)||"Memo";case Nn:t=e._payload,e=e._init;try{return Os(e(t))}catch{}}return null}function f2(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 Os(t);case 8:return t===tc?"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 Wn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function p2(e){var t=vp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mo(e){e._valueTracker||(e._valueTracker=p2(e))}function yp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _i(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 $s(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bp(e,t){t=t.checked,t!=null&&ec(e,"checked",t,!1)}function Bs(e,t){bp(e,t);var n=Wn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Us(e,t.type,n):t.hasOwnProperty("defaultValue")&&Us(e,t.type,Wn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Us(e,t,n){(t!=="number"||_i(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Iu=Array.isArray;function Or(e,t,n,r){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Wn(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,r&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Hs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function zd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Iu(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Wn(n)}}function wp(e,t){var n=Wn(t.value),r=Wn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Rd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function kp(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 Vs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?kp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Lo,Cp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,u){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,u)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Lo=Lo||document.createElement("div"),Lo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Lo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Uu={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},h2=["Webkit","ms","Moz","O"];Object.keys(Uu).forEach(function(e){h2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Uu[t]=Uu[e]})});function _p(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Uu.hasOwnProperty(e)&&Uu[e]?(""+t).trim():t+"px"}function Ep(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,u=_p(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,u):e[n]=u}}var m2=xe({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 Ws(e,t){if(t){if(m2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function qs(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 Ks=null;function uc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gs=null,$r=null,Br=null;function Pd(e){if(e=_o(e)){if(typeof Gs!="function")throw Error(R(280));var t=e.stateNode;t&&(t=dl(t),Gs(e.stateNode,e.type,t))}}function Sp(e){$r?Br?Br.push(e):Br=[e]:$r=e}function Ap(){if($r){var e=$r,t=Br;if(Br=$r=null,Pd(e),t)for(e=0;e<t.length;e++)Pd(t[e])}}function Np(e,t){return e(t)}function Dp(){}var Ul=!1;function jp(e,t,n){if(Ul)return e(t,n);Ul=!0;try{return Np(e,t,n)}finally{Ul=!1,($r!==null||Br!==null)&&(Dp(),Ap())}}function Ju(e,t){var n=e.stateNode;if(n===null)return null;var r=dl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var Zs=!1;if(pn)try{var Su={};Object.defineProperty(Su,"passive",{get:function(){Zs=!0}}),window.addEventListener("test",Su,Su),window.removeEventListener("test",Su,Su)}catch{Zs=!1}function g2(e,t,n,r,u,o,i,l,s){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(d){this.onError(d)}}var Hu=!1,Ei=null,Si=!1,Qs=null,x2={onError:function(e){Hu=!0,Ei=e}};function v2(e,t,n,r,u,o,i,l,s){Hu=!1,Ei=null,g2.apply(x2,arguments)}function y2(e,t,n,r,u,o,i,l,s){if(v2.apply(this,arguments),Hu){if(Hu){var a=Ei;Hu=!1,Ei=null}else throw Error(R(198));Si||(Si=!0,Qs=a)}}function br(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 Fp(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 Td(e){if(br(e)!==e)throw Error(R(188))}function b2(e){var t=e.alternate;if(!t){if(t=br(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var u=n.return;if(u===null)break;var o=u.alternate;if(o===null){if(r=u.return,r!==null){n=r;continue}break}if(u.child===o.child){for(o=u.child;o;){if(o===n)return Td(u),e;if(o===r)return Td(u),t;o=o.sibling}throw Error(R(188))}if(n.return!==r.return)n=u,r=o;else{for(var i=!1,l=u.child;l;){if(l===n){i=!0,n=u,r=o;break}if(l===r){i=!0,r=u,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=u;break}if(l===r){i=!0,r=o,n=u;break}l=l.sibling}if(!i)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function zp(e){return e=b2(e),e!==null?Rp(e):null}function Rp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Rp(e);if(t!==null)return t;e=e.sibling}return null}var Pp=dt.unstable_scheduleCallback,Md=dt.unstable_cancelCallback,w2=dt.unstable_shouldYield,k2=dt.unstable_requestPaint,we=dt.unstable_now,C2=dt.unstable_getCurrentPriorityLevel,oc=dt.unstable_ImmediatePriority,Tp=dt.unstable_UserBlockingPriority,Ai=dt.unstable_NormalPriority,_2=dt.unstable_LowPriority,Mp=dt.unstable_IdlePriority,ll=null,Jt=null;function E2(e){if(Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(ll,e,void 0,(e.current.flags&128)===128)}catch{}}var Rt=Math.clz32?Math.clz32:N2,S2=Math.log,A2=Math.LN2;function N2(e){return e>>>=0,e===0?32:31-(S2(e)/A2|0)|0}var Io=64,Oo=4194304;function Ou(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 Ni(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,u=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~u;l!==0?r=Ou(l):(o&=i,o!==0&&(r=Ou(o)))}else i=n&~u,i!==0?r=Ou(i):o!==0&&(r=Ou(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&u)&&(u=r&-r,o=t&-t,u>=o||u===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Rt(t),u=1<<n,r|=e[n],t&=~u;return r}function D2(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 j2(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,u=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Rt(o),l=1<<i,s=u[i];s===-1?(!(l&n)||l&r)&&(u[i]=D2(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}}function Ys(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Lp(){var e=Io;return Io<<=1,!(Io&4194240)&&(Io=64),e}function Hl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ko(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rt(t),e[t]=n}function F2(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var u=31-Rt(n),o=1<<u;t[u]=0,r[u]=-1,e[u]=-1,n&=~o}}function ic(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Rt(n),u=1<<r;u&t|e[r]&t&&(e[r]|=t),n&=~u}}var oe=0;function Ip(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Op,lc,$p,Bp,Up,Xs=!1,$o=[],Ln=null,In=null,On=null,eo=new Map,to=new Map,Fn=[],z2="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 Ld(e,t){switch(e){case"focusin":case"focusout":Ln=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":On=null;break;case"pointerover":case"pointerout":eo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":to.delete(t.pointerId)}}function Au(e,t,n,r,u,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[u]},t!==null&&(t=_o(t),t!==null&&lc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function R2(e,t,n,r,u){switch(t){case"focusin":return Ln=Au(Ln,e,t,n,r,u),!0;case"dragenter":return In=Au(In,e,t,n,r,u),!0;case"mouseover":return On=Au(On,e,t,n,r,u),!0;case"pointerover":var o=u.pointerId;return eo.set(o,Au(eo.get(o)||null,e,t,n,r,u)),!0;case"gotpointercapture":return o=u.pointerId,to.set(o,Au(to.get(o)||null,e,t,n,r,u)),!0}return!1}function Hp(e){var t=ur(e.target);if(t!==null){var n=br(t);if(n!==null){if(t=n.tag,t===13){if(t=Fp(n),t!==null){e.blockedOn=t,Up(e.priority,function(){$p(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 si(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Js(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ks=r,n.target.dispatchEvent(r),Ks=null}else return t=_o(n),t!==null&&lc(t),e.blockedOn=n,!1;t.shift()}return!0}function Id(e,t,n){si(e)&&n.delete(t)}function P2(){Xs=!1,Ln!==null&&si(Ln)&&(Ln=null),In!==null&&si(In)&&(In=null),On!==null&&si(On)&&(On=null),eo.forEach(Id),to.forEach(Id)}function Nu(e,t){e.blockedOn===t&&(e.blockedOn=null,Xs||(Xs=!0,dt.unstable_scheduleCallback(dt.unstable_NormalPriority,P2)))}function no(e){function t(u){return Nu(u,e)}if(0<$o.length){Nu($o[0],e);for(var n=1;n<$o.length;n++){var r=$o[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ln!==null&&Nu(Ln,e),In!==null&&Nu(In,e),On!==null&&Nu(On,e),eo.forEach(t),to.forEach(t),n=0;n<Fn.length;n++)r=Fn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Fn.length&&(n=Fn[0],n.blockedOn===null);)Hp(n),n.blockedOn===null&&Fn.shift()}var Ur=bn.ReactCurrentBatchConfig,Di=!0;function T2(e,t,n,r){var u=oe,o=Ur.transition;Ur.transition=null;try{oe=1,sc(e,t,n,r)}finally{oe=u,Ur.transition=o}}function M2(e,t,n,r){var u=oe,o=Ur.transition;Ur.transition=null;try{oe=4,sc(e,t,n,r)}finally{oe=u,Ur.transition=o}}function sc(e,t,n,r){if(Di){var u=Js(e,t,n,r);if(u===null)Jl(e,t,r,ji,n),Ld(e,r);else if(R2(u,e,t,n,r))r.stopPropagation();else if(Ld(e,r),t&4&&-1<z2.indexOf(e)){for(;u!==null;){var o=_o(u);if(o!==null&&Op(o),o=Js(e,t,n,r),o===null&&Jl(e,t,r,ji,n),o===u)break;u=o}u!==null&&r.stopPropagation()}else Jl(e,t,r,null,n)}}var ji=null;function Js(e,t,n,r){if(ji=null,e=uc(r),e=ur(e),e!==null)if(t=br(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Fp(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 ji=e,null}function Vp(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(C2()){case oc:return 1;case Tp:return 4;case Ai:case _2:return 16;case Mp:return 536870912;default:return 16}default:return 16}}var Pn=null,ac=null,ai=null;function Wp(){if(ai)return ai;var e,t=ac,n=t.length,r,u="value"in Pn?Pn.value:Pn.textContent,o=u.length;for(e=0;e<n&&t[e]===u[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===u[o-r];r++);return ai=u.slice(e,1<r?1-r:void 0)}function ci(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 Bo(){return!0}function Od(){return!1}function ht(e){function t(n,r,u,o,i){this._reactName=n,this._targetInst=u,this.type=r,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)?Bo:Od,this.isPropagationStopped=Od,this}return xe(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=Bo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bo)},persist:function(){},isPersistent:Bo}),t}var iu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cc=ht(iu),Co=xe({},iu,{view:0,detail:0}),L2=ht(Co),Vl,Wl,Du,sl=xe({},Co,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dc,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!==Du&&(Du&&e.type==="mousemove"?(Vl=e.screenX-Du.screenX,Wl=e.screenY-Du.screenY):Wl=Vl=0,Du=e),Vl)},movementY:function(e){return"movementY"in e?e.movementY:Wl}}),$d=ht(sl),I2=xe({},sl,{dataTransfer:0}),O2=ht(I2),$2=xe({},Co,{relatedTarget:0}),ql=ht($2),B2=xe({},iu,{animationName:0,elapsedTime:0,pseudoElement:0}),U2=ht(B2),H2=xe({},iu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),V2=ht(H2),W2=xe({},iu,{data:0}),Bd=ht(W2),q2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},K2={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"},G2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Z2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=G2[e])?!!t[e]:!1}function dc(){return Z2}var Q2=xe({},Co,{key:function(e){if(e.key){var t=q2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?K2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dc,charCode:function(e){return e.type==="keypress"?ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Y2=ht(Q2),X2=xe({},sl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=ht(X2),J2=xe({},Co,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dc}),ex=ht(J2),tx=xe({},iu,{propertyName:0,elapsedTime:0,pseudoElement:0}),nx=ht(tx),rx=xe({},sl,{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}),ux=ht(rx),ox=[9,13,27,32],fc=pn&&"CompositionEvent"in window,Vu=null;pn&&"documentMode"in document&&(Vu=document.documentMode);var ix=pn&&"TextEvent"in window&&!Vu,qp=pn&&(!fc||Vu&&8<Vu&&11>=Vu),Hd=" ",Vd=!1;function Kp(e,t){switch(e){case"keyup":return ox.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dr=!1;function lx(e,t){switch(e){case"compositionend":return Gp(t);case"keypress":return t.which!==32?null:(Vd=!0,Hd);case"textInput":return e=t.data,e===Hd&&Vd?null:e;default:return null}}function sx(e,t){if(Dr)return e==="compositionend"||!fc&&Kp(e,t)?(e=Wp(),ai=ac=Pn=null,Dr=!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 qp&&t.locale!=="ko"?null:t.data;default:return null}}var ax={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 Wd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ax[e.type]:t==="textarea"}function Zp(e,t,n,r){Sp(r),t=Fi(t,"onChange"),0<t.length&&(n=new cc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wu=null,ro=null;function cx(e){ih(e,0)}function al(e){var t=zr(e);if(yp(t))return e}function dx(e,t){if(e==="change")return t}var Qp=!1;if(pn){var Kl;if(pn){var Gl="oninput"in document;if(!Gl){var qd=document.createElement("div");qd.setAttribute("oninput","return;"),Gl=typeof qd.oninput=="function"}Kl=Gl}else Kl=!1;Qp=Kl&&(!document.documentMode||9<document.documentMode)}function Kd(){Wu&&(Wu.detachEvent("onpropertychange",Yp),ro=Wu=null)}function Yp(e){if(e.propertyName==="value"&&al(ro)){var t=[];Zp(t,ro,e,uc(e)),jp(cx,t)}}function fx(e,t,n){e==="focusin"?(Kd(),Wu=t,ro=n,Wu.attachEvent("onpropertychange",Yp)):e==="focusout"&&Kd()}function px(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return al(ro)}function hx(e,t){if(e==="click")return al(t)}function mx(e,t){if(e==="input"||e==="change")return al(t)}function gx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:gx;function uo(e,t){if(Mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var u=n[r];if(!Ts.call(t,u)||!Mt(e[u],t[u]))return!1}return!0}function Gd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zd(e,t){var n=Gd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gd(n)}}function Xp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jp(){for(var e=window,t=_i();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_i(e.document)}return t}function pc(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 xx(e){var t=Jp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xp(n.ownerDocument.documentElement,n)){if(r!==null&&pc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var u=n.textContent.length,o=Math.min(r.start,u);r=r.end===void 0?o:Math.min(r.end,u),!e.extend&&o>r&&(u=r,r=o,o=u),u=Zd(n,o);var i=Zd(n,r);u&&i&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),e.removeAllRanges(),o>r?(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 vx=pn&&"documentMode"in document&&11>=document.documentMode,jr=null,ea=null,qu=null,ta=!1;function Qd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ta||jr==null||jr!==_i(r)||(r=jr,"selectionStart"in r&&pc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qu&&uo(qu,r)||(qu=r,r=Fi(ea,"onSelect"),0<r.length&&(t=new cc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=jr)))}function Uo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fr={animationend:Uo("Animation","AnimationEnd"),animationiteration:Uo("Animation","AnimationIteration"),animationstart:Uo("Animation","AnimationStart"),transitionend:Uo("Transition","TransitionEnd")},Zl={},eh={};pn&&(eh=document.createElement("div").style,"AnimationEvent"in window||(delete Fr.animationend.animation,delete Fr.animationiteration.animation,delete Fr.animationstart.animation),"TransitionEvent"in window||delete Fr.transitionend.transition);function cl(e){if(Zl[e])return Zl[e];if(!Fr[e])return e;var t=Fr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in eh)return Zl[e]=t[n];return e}var th=cl("animationend"),nh=cl("animationiteration"),rh=cl("animationstart"),uh=cl("transitionend"),oh=new Map,Yd="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 Qn(e,t){oh.set(e,t),yr(t,[e])}for(var Ql=0;Ql<Yd.length;Ql++){var Yl=Yd[Ql],yx=Yl.toLowerCase(),bx=Yl[0].toUpperCase()+Yl.slice(1);Qn(yx,"on"+bx)}Qn(th,"onAnimationEnd");Qn(nh,"onAnimationIteration");Qn(rh,"onAnimationStart");Qn("dblclick","onDoubleClick");Qn("focusin","onFocus");Qn("focusout","onBlur");Qn(uh,"onTransitionEnd");Zr("onMouseEnter",["mouseout","mouseover"]);Zr("onMouseLeave",["mouseout","mouseover"]);Zr("onPointerEnter",["pointerout","pointerover"]);Zr("onPointerLeave",["pointerout","pointerover"]);yr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));yr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));yr("onBeforeInput",["compositionend","keypress","textInput","paste"]);yr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));yr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));yr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $u="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(" "),wx=new Set("cancel close invalid load scroll toggle".split(" ").concat($u));function Xd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,y2(r,t,void 0,e),e.currentTarget=null}function ih(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],u=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,a=l.currentTarget;if(l=l.listener,s!==o&&u.isPropagationStopped())break e;Xd(u,l,a),o=s}else for(i=0;i<r.length;i++){if(l=r[i],s=l.instance,a=l.currentTarget,l=l.listener,s!==o&&u.isPropagationStopped())break e;Xd(u,l,a),o=s}}}if(Si)throw e=Qs,Si=!1,Qs=null,e}function ce(e,t){var n=t[ia];n===void 0&&(n=t[ia]=new Set);var r=e+"__bubble";n.has(r)||(lh(t,e,2,!1),n.add(r))}function Xl(e,t,n){var r=0;t&&(r|=4),lh(n,e,r,t)}var Ho="_reactListening"+Math.random().toString(36).slice(2);function oo(e){if(!e[Ho]){e[Ho]=!0,hp.forEach(function(n){n!=="selectionchange"&&(wx.has(n)||Xl(n,!1,e),Xl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ho]||(t[Ho]=!0,Xl("selectionchange",!1,t))}}function lh(e,t,n,r){switch(Vp(t)){case 1:var u=T2;break;case 4:u=M2;break;default:u=sc}n=u.bind(null,t,n,e),u=void 0,!Zs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),r?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function Jl(e,t,n,r,u){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===u||l.nodeType===8&&l.parentNode===u)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&(s=i.stateNode.containerInfo,s===u||s.nodeType===8&&s.parentNode===u))return;i=i.return}for(;l!==null;){if(i=ur(l),i===null)return;if(s=i.tag,s===5||s===6){r=o=i;continue e}l=l.parentNode}}r=r.return}jp(function(){var a=o,d=uc(n),p=[];e:{var m=oh.get(e);if(m!==void 0){var y=cc,v=e;switch(e){case"keypress":if(ci(n)===0)break e;case"keydown":case"keyup":y=Y2;break;case"focusin":v="focus",y=ql;break;case"focusout":v="blur",y=ql;break;case"beforeblur":case"afterblur":y=ql;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":y=$d;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=O2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=ex;break;case th:case nh:case rh:y=U2;break;case uh:y=nx;break;case"scroll":y=L2;break;case"wheel":y=ux;break;case"copy":case"cut":case"paste":y=V2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Ud}var b=(t&4)!==0,C=!b&&e==="scroll",x=b?m!==null?m+"Capture":null:m;b=[];for(var f=a,h;f!==null;){h=f;var w=h.stateNode;if(h.tag===5&&w!==null&&(h=w,x!==null&&(w=Ju(f,x),w!=null&&b.push(io(f,w,h)))),C)break;f=f.return}0<b.length&&(m=new y(m,v,null,n,d),p.push({event:m,listeners:b}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",m&&n!==Ks&&(v=n.relatedTarget||n.fromElement)&&(ur(v)||v[hn]))break e;if((y||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,y?(v=n.relatedTarget||n.toElement,y=a,v=v?ur(v):null,v!==null&&(C=br(v),v!==C||v.tag!==5&&v.tag!==6)&&(v=null)):(y=null,v=a),y!==v)){if(b=$d,w="onMouseLeave",x="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(b=Ud,w="onPointerLeave",x="onPointerEnter",f="pointer"),C=y==null?m:zr(y),h=v==null?m:zr(v),m=new b(w,f+"leave",y,n,d),m.target=C,m.relatedTarget=h,w=null,ur(d)===a&&(b=new b(x,f+"enter",v,n,d),b.target=h,b.relatedTarget=C,w=b),C=w,y&&v)t:{for(b=y,x=v,f=0,h=b;h;h=kr(h))f++;for(h=0,w=x;w;w=kr(w))h++;for(;0<f-h;)b=kr(b),f--;for(;0<h-f;)x=kr(x),h--;for(;f--;){if(b===x||x!==null&&b===x.alternate)break t;b=kr(b),x=kr(x)}b=null}else b=null;y!==null&&Jd(p,m,y,b,!1),v!==null&&C!==null&&Jd(p,C,v,b,!0)}}e:{if(m=a?zr(a):window,y=m.nodeName&&m.nodeName.toLowerCase(),y==="select"||y==="input"&&m.type==="file")var k=dx;else if(Wd(m))if(Qp)k=mx;else{k=px;var _=fx}else(y=m.nodeName)&&y.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(k=hx);if(k&&(k=k(e,a))){Zp(p,k,n,d);break e}_&&_(e,m,a),e==="focusout"&&(_=m._wrapperState)&&_.controlled&&m.type==="number"&&Us(m,"number",m.value)}switch(_=a?zr(a):window,e){case"focusin":(Wd(_)||_.contentEditable==="true")&&(jr=_,ea=a,qu=null);break;case"focusout":qu=ea=jr=null;break;case"mousedown":ta=!0;break;case"contextmenu":case"mouseup":case"dragend":ta=!1,Qd(p,n,d);break;case"selectionchange":if(vx)break;case"keydown":case"keyup":Qd(p,n,d)}var S;if(fc)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Dr?Kp(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(qp&&n.locale!=="ko"&&(Dr||E!=="onCompositionStart"?E==="onCompositionEnd"&&Dr&&(S=Wp()):(Pn=d,ac="value"in Pn?Pn.value:Pn.textContent,Dr=!0)),_=Fi(a,E),0<_.length&&(E=new Bd(E,e,null,n,d),p.push({event:E,listeners:_}),S?E.data=S:(S=Gp(n),S!==null&&(E.data=S)))),(S=ix?lx(e,n):sx(e,n))&&(a=Fi(a,"onBeforeInput"),0<a.length&&(d=new Bd("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:a}),d.data=S))}ih(p,t)})}function io(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fi(e,t){for(var n=t+"Capture",r=[];e!==null;){var u=e,o=u.stateNode;u.tag===5&&o!==null&&(u=o,o=Ju(e,n),o!=null&&r.unshift(io(e,o,u)),o=Ju(e,t),o!=null&&r.push(io(e,o,u))),e=e.return}return r}function kr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Jd(e,t,n,r,u){for(var o=t._reactName,i=[];n!==null&&n!==r;){var l=n,s=l.alternate,a=l.stateNode;if(s!==null&&s===r)break;l.tag===5&&a!==null&&(l=a,u?(s=Ju(n,o),s!=null&&i.unshift(io(n,s,l))):u||(s=Ju(n,o),s!=null&&i.push(io(n,s,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var kx=/\r\n?/g,Cx=/\u0000|\uFFFD/g;function e0(e){return(typeof e=="string"?e:""+e).replace(kx,`
`).replace(Cx,"")}function Vo(e,t,n){if(t=e0(t),e0(e)!==t&&n)throw Error(R(425))}function zi(){}var na=null,ra=null;function ua(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 oa=typeof setTimeout=="function"?setTimeout:void 0,_x=typeof clearTimeout=="function"?clearTimeout:void 0,t0=typeof Promise=="function"?Promise:void 0,Ex=typeof queueMicrotask=="function"?queueMicrotask:typeof t0<"u"?function(e){return t0.resolve(null).then(e).catch(Sx)}:oa;function Sx(e){setTimeout(function(){throw e})}function es(e,t){var n=t,r=0;do{var u=n.nextSibling;if(e.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"){if(r===0){e.removeChild(u),no(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=u}while(n);no(t)}function $n(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 n0(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 lu=Math.random().toString(36).slice(2),qt="__reactFiber$"+lu,lo="__reactProps$"+lu,hn="__reactContainer$"+lu,ia="__reactEvents$"+lu,Ax="__reactListeners$"+lu,Nx="__reactHandles$"+lu;function ur(e){var t=e[qt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hn]||n[qt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=n0(e);e!==null;){if(n=e[qt])return n;e=n0(e)}return t}e=n,n=e.parentNode}return null}function _o(e){return e=e[qt]||e[hn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function dl(e){return e[lo]||null}var la=[],Rr=-1;function Yn(e){return{current:e}}function de(e){0>Rr||(e.current=la[Rr],la[Rr]=null,Rr--)}function le(e,t){Rr++,la[Rr]=e.current,e.current=t}var qn={},Ve=Yn(qn),Je=Yn(!1),ar=qn;function Qr(e,t){var n=e.type.contextTypes;if(!n)return qn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var u={},o;for(o in n)u[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function et(e){return e=e.childContextTypes,e!=null}function Ri(){de(Je),de(Ve)}function r0(e,t,n){if(Ve.current!==qn)throw Error(R(168));le(Ve,t),le(Je,n)}function sh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var u in r)if(!(u in t))throw Error(R(108,f2(e)||"Unknown",u));return xe({},n,r)}function Pi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qn,ar=Ve.current,le(Ve,e),le(Je,Je.current),!0}function u0(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=sh(e,t,ar),r.__reactInternalMemoizedMergedChildContext=e,de(Je),de(Ve),le(Ve,e)):de(Je),le(Je,n)}var an=null,fl=!1,ts=!1;function ah(e){an===null?an=[e]:an.push(e)}function Dx(e){fl=!0,ah(e)}function Xn(){if(!ts&&an!==null){ts=!0;var e=0,t=oe;try{var n=an;for(oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}an=null,fl=!1}catch(u){throw an!==null&&(an=an.slice(e+1)),Pp(oc,Xn),u}finally{oe=t,ts=!1}}return null}var Pr=[],Tr=0,Ti=null,Mi=0,xt=[],vt=0,cr=null,cn=1,dn="";function nr(e,t){Pr[Tr++]=Mi,Pr[Tr++]=Ti,Ti=e,Mi=t}function ch(e,t,n){xt[vt++]=cn,xt[vt++]=dn,xt[vt++]=cr,cr=e;var r=cn;e=dn;var u=32-Rt(r)-1;r&=~(1<<u),n+=1;var o=32-Rt(t)+u;if(30<o){var i=u-u%5;o=(r&(1<<i)-1).toString(32),r>>=i,u-=i,cn=1<<32-Rt(t)+u|n<<u|r,dn=o+e}else cn=1<<o|n<<u|r,dn=e}function hc(e){e.return!==null&&(nr(e,1),ch(e,1,0))}function mc(e){for(;e===Ti;)Ti=Pr[--Tr],Pr[Tr]=null,Mi=Pr[--Tr],Pr[Tr]=null;for(;e===cr;)cr=xt[--vt],xt[vt]=null,dn=xt[--vt],xt[vt]=null,cn=xt[--vt],xt[vt]=null}var at=null,st=null,fe=!1,jt=null;function dh(e,t){var n=yt(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 o0(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,at=e,st=$n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,at=e,st=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=cr!==null?{id:cn,overflow:dn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=yt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,at=e,st=null,!0):!1;default:return!1}}function sa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function aa(e){if(fe){var t=st;if(t){var n=t;if(!o0(e,t)){if(sa(e))throw Error(R(418));t=$n(n.nextSibling);var r=at;t&&o0(e,t)?dh(r,n):(e.flags=e.flags&-4097|2,fe=!1,at=e)}}else{if(sa(e))throw Error(R(418));e.flags=e.flags&-4097|2,fe=!1,at=e}}}function i0(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;at=e}function Wo(e){if(e!==at)return!1;if(!fe)return i0(e),fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ua(e.type,e.memoizedProps)),t&&(t=st)){if(sa(e))throw fh(),Error(R(418));for(;t;)dh(e,t),t=$n(t.nextSibling)}if(i0(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){st=$n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}st=null}}else st=at?$n(e.stateNode.nextSibling):null;return!0}function fh(){for(var e=st;e;)e=$n(e.nextSibling)}function Yr(){st=at=null,fe=!1}function gc(e){jt===null?jt=[e]:jt.push(e)}var jx=bn.ReactCurrentBatchConfig;function ju(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(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var u=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var l=u.refs;i===null?delete l[o]:l[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function qo(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function l0(e){var t=e._init;return t(e._payload)}function ph(e){function t(x,f){if(e){var h=x.deletions;h===null?(x.deletions=[f],x.flags|=16):h.push(f)}}function n(x,f){if(!e)return null;for(;f!==null;)t(x,f),f=f.sibling;return null}function r(x,f){for(x=new Map;f!==null;)f.key!==null?x.set(f.key,f):x.set(f.index,f),f=f.sibling;return x}function u(x,f){return x=Vn(x,f),x.index=0,x.sibling=null,x}function o(x,f,h){return x.index=h,e?(h=x.alternate,h!==null?(h=h.index,h<f?(x.flags|=2,f):h):(x.flags|=2,f)):(x.flags|=1048576,f)}function i(x){return e&&x.alternate===null&&(x.flags|=2),x}function l(x,f,h,w){return f===null||f.tag!==6?(f=ss(h,x.mode,w),f.return=x,f):(f=u(f,h),f.return=x,f)}function s(x,f,h,w){var k=h.type;return k===Nr?d(x,f,h.props.children,w,h.key):f!==null&&(f.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Nn&&l0(k)===f.type)?(w=u(f,h.props),w.ref=ju(x,f,h),w.return=x,w):(w=xi(h.type,h.key,h.props,null,x.mode,w),w.ref=ju(x,f,h),w.return=x,w)}function a(x,f,h,w){return f===null||f.tag!==4||f.stateNode.containerInfo!==h.containerInfo||f.stateNode.implementation!==h.implementation?(f=as(h,x.mode,w),f.return=x,f):(f=u(f,h.children||[]),f.return=x,f)}function d(x,f,h,w,k){return f===null||f.tag!==7?(f=sr(h,x.mode,w,k),f.return=x,f):(f=u(f,h),f.return=x,f)}function p(x,f,h){if(typeof f=="string"&&f!==""||typeof f=="number")return f=ss(""+f,x.mode,h),f.return=x,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case To:return h=xi(f.type,f.key,f.props,null,x.mode,h),h.ref=ju(x,null,f),h.return=x,h;case Ar:return f=as(f,x.mode,h),f.return=x,f;case Nn:var w=f._init;return p(x,w(f._payload),h)}if(Iu(f)||Eu(f))return f=sr(f,x.mode,h,null),f.return=x,f;qo(x,f)}return null}function m(x,f,h,w){var k=f!==null?f.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return k!==null?null:l(x,f,""+h,w);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case To:return h.key===k?s(x,f,h,w):null;case Ar:return h.key===k?a(x,f,h,w):null;case Nn:return k=h._init,m(x,f,k(h._payload),w)}if(Iu(h)||Eu(h))return k!==null?null:d(x,f,h,w,null);qo(x,h)}return null}function y(x,f,h,w,k){if(typeof w=="string"&&w!==""||typeof w=="number")return x=x.get(h)||null,l(f,x,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case To:return x=x.get(w.key===null?h:w.key)||null,s(f,x,w,k);case Ar:return x=x.get(w.key===null?h:w.key)||null,a(f,x,w,k);case Nn:var _=w._init;return y(x,f,h,_(w._payload),k)}if(Iu(w)||Eu(w))return x=x.get(h)||null,d(f,x,w,k,null);qo(f,w)}return null}function v(x,f,h,w){for(var k=null,_=null,S=f,E=f=0,A=null;S!==null&&E<h.length;E++){S.index>E?(A=S,S=null):A=S.sibling;var D=m(x,S,h[E],w);if(D===null){S===null&&(S=A);break}e&&S&&D.alternate===null&&t(x,S),f=o(D,f,E),_===null?k=D:_.sibling=D,_=D,S=A}if(E===h.length)return n(x,S),fe&&nr(x,E),k;if(S===null){for(;E<h.length;E++)S=p(x,h[E],w),S!==null&&(f=o(S,f,E),_===null?k=S:_.sibling=S,_=S);return fe&&nr(x,E),k}for(S=r(x,S);E<h.length;E++)A=y(S,x,E,h[E],w),A!==null&&(e&&A.alternate!==null&&S.delete(A.key===null?E:A.key),f=o(A,f,E),_===null?k=A:_.sibling=A,_=A);return e&&S.forEach(function(z){return t(x,z)}),fe&&nr(x,E),k}function b(x,f,h,w){var k=Eu(h);if(typeof k!="function")throw Error(R(150));if(h=k.call(h),h==null)throw Error(R(151));for(var _=k=null,S=f,E=f=0,A=null,D=h.next();S!==null&&!D.done;E++,D=h.next()){S.index>E?(A=S,S=null):A=S.sibling;var z=m(x,S,D.value,w);if(z===null){S===null&&(S=A);break}e&&S&&z.alternate===null&&t(x,S),f=o(z,f,E),_===null?k=z:_.sibling=z,_=z,S=A}if(D.done)return n(x,S),fe&&nr(x,E),k;if(S===null){for(;!D.done;E++,D=h.next())D=p(x,D.value,w),D!==null&&(f=o(D,f,E),_===null?k=D:_.sibling=D,_=D);return fe&&nr(x,E),k}for(S=r(x,S);!D.done;E++,D=h.next())D=y(S,x,E,D.value,w),D!==null&&(e&&D.alternate!==null&&S.delete(D.key===null?E:D.key),f=o(D,f,E),_===null?k=D:_.sibling=D,_=D);return e&&S.forEach(function(M){return t(x,M)}),fe&&nr(x,E),k}function C(x,f,h,w){if(typeof h=="object"&&h!==null&&h.type===Nr&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case To:e:{for(var k=h.key,_=f;_!==null;){if(_.key===k){if(k=h.type,k===Nr){if(_.tag===7){n(x,_.sibling),f=u(_,h.props.children),f.return=x,x=f;break e}}else if(_.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Nn&&l0(k)===_.type){n(x,_.sibling),f=u(_,h.props),f.ref=ju(x,_,h),f.return=x,x=f;break e}n(x,_);break}else t(x,_);_=_.sibling}h.type===Nr?(f=sr(h.props.children,x.mode,w,h.key),f.return=x,x=f):(w=xi(h.type,h.key,h.props,null,x.mode,w),w.ref=ju(x,f,h),w.return=x,x=w)}return i(x);case Ar:e:{for(_=h.key;f!==null;){if(f.key===_)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(x,f.sibling),f=u(f,h.children||[]),f.return=x,x=f;break e}else{n(x,f);break}else t(x,f);f=f.sibling}f=as(h,x.mode,w),f.return=x,x=f}return i(x);case Nn:return _=h._init,C(x,f,_(h._payload),w)}if(Iu(h))return v(x,f,h,w);if(Eu(h))return b(x,f,h,w);qo(x,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,f!==null&&f.tag===6?(n(x,f.sibling),f=u(f,h),f.return=x,x=f):(n(x,f),f=ss(h,x.mode,w),f.return=x,x=f),i(x)):n(x,f)}return C}var Xr=ph(!0),hh=ph(!1),Li=Yn(null),Ii=null,Mr=null,xc=null;function vc(){xc=Mr=Ii=null}function yc(e){var t=Li.current;de(Li),e._currentValue=t}function ca(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Hr(e,t){Ii=e,xc=Mr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ye=!0),e.firstContext=null)}function kt(e){var t=e._currentValue;if(xc!==e)if(e={context:e,memoizedValue:t,next:null},Mr===null){if(Ii===null)throw Error(R(308));Mr=e,Ii.dependencies={lanes:0,firstContext:e}}else Mr=Mr.next=e;return t}var or=null;function bc(e){or===null?or=[e]:or.push(e)}function mh(e,t,n,r){var u=t.interleaved;return u===null?(n.next=n,bc(t)):(n.next=u.next,u.next=n),t.interleaved=n,mn(e,r)}function mn(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 Dn=!1;function wc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gh(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 fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var u=r.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),r.pending=t,mn(e,n)}return u=r.interleaved,u===null?(t.next=t,bc(r)):(t.next=u.next,u.next=t),r.interleaved=t,mn(e,n)}function di(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ic(e,n)}}function s0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var u=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?u=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?u=o=t:o=o.next=t}else u=o=t;n={baseState:r.baseState,firstBaseUpdate:u,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Oi(e,t,n,r){var u=e.updateQueue;Dn=!1;var o=u.firstBaseUpdate,i=u.lastBaseUpdate,l=u.shared.pending;if(l!==null){u.shared.pending=null;var s=l,a=s.next;s.next=null,i===null?o=a:i.next=a,i=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=a:l.next=a,d.lastBaseUpdate=s))}if(o!==null){var p=u.baseState;i=0,d=a=s=null,l=o;do{var m=l.lane,y=l.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,b=l;switch(m=t,y=n,b.tag){case 1:if(v=b.payload,typeof v=="function"){p=v.call(y,p,m);break e}p=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=b.payload,m=typeof v=="function"?v.call(y,p,m):v,m==null)break e;p=xe({},p,m);break e;case 2:Dn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=u.effects,m===null?u.effects=[l]:m.push(l))}else y={eventTime:y,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(a=d=y,s=p):d=d.next=y,i|=m;if(l=l.next,l===null){if(l=u.shared.pending,l===null)break;m=l,l=m.next,m.next=null,u.lastBaseUpdate=m,u.shared.pending=null}}while(!0);if(d===null&&(s=p),u.baseState=s,u.firstBaseUpdate=a,u.lastBaseUpdate=d,t=u.shared.interleaved,t!==null){u=t;do i|=u.lane,u=u.next;while(u!==t)}else o===null&&(u.shared.lanes=0);fr|=i,e.lanes=i,e.memoizedState=p}}function a0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],u=r.callback;if(u!==null){if(r.callback=null,r=n,typeof u!="function")throw Error(R(191,u));u.call(r)}}}var Eo={},en=Yn(Eo),so=Yn(Eo),ao=Yn(Eo);function ir(e){if(e===Eo)throw Error(R(174));return e}function kc(e,t){switch(le(ao,t),le(so,e),le(en,Eo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vs(t,e)}de(en),le(en,t)}function Jr(){de(en),de(so),de(ao)}function xh(e){ir(ao.current);var t=ir(en.current),n=Vs(t,e.type);t!==n&&(le(so,e),le(en,n))}function Cc(e){so.current===e&&(de(en),de(so))}var me=Yn(0);function $i(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 ns=[];function _c(){for(var e=0;e<ns.length;e++)ns[e]._workInProgressVersionPrimary=null;ns.length=0}var fi=bn.ReactCurrentDispatcher,rs=bn.ReactCurrentBatchConfig,dr=0,ge=null,Ae=null,ze=null,Bi=!1,Ku=!1,co=0,Fx=0;function Be(){throw Error(R(321))}function Ec(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mt(e[n],t[n]))return!1;return!0}function Sc(e,t,n,r,u,o){if(dr=o,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fi.current=e===null||e.memoizedState===null?Tx:Mx,e=n(r,u),Ku){o=0;do{if(Ku=!1,co=0,25<=o)throw Error(R(301));o+=1,ze=Ae=null,t.updateQueue=null,fi.current=Lx,e=n(r,u)}while(Ku)}if(fi.current=Ui,t=Ae!==null&&Ae.next!==null,dr=0,ze=Ae=ge=null,Bi=!1,t)throw Error(R(300));return e}function Ac(){var e=co!==0;return co=0,e}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?ge.memoizedState=ze=e:ze=ze.next=e,ze}function Ct(){if(Ae===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=ze===null?ge.memoizedState:ze.next;if(t!==null)ze=t,Ae=e;else{if(e===null)throw Error(R(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},ze===null?ge.memoizedState=ze=e:ze=ze.next=e}return ze}function fo(e,t){return typeof t=="function"?t(e):t}function us(e){var t=Ct(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=Ae,u=r.baseQueue,o=n.pending;if(o!==null){if(u!==null){var i=u.next;u.next=o.next,o.next=i}r.baseQueue=u=o,n.pending=null}if(u!==null){o=u.next,r=r.baseState;var l=i=null,s=null,a=o;do{var d=a.lane;if((dr&d)===d)s!==null&&(s=s.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var p={lane:d,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};s===null?(l=s=p,i=r):s=s.next=p,ge.lanes|=d,fr|=d}a=a.next}while(a!==null&&a!==o);s===null?i=r:s.next=l,Mt(r,t.memoizedState)||(Ye=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){u=e;do o=u.lane,ge.lanes|=o,fr|=o,u=u.next;while(u!==e)}else u===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function os(e){var t=Ct(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,u=n.pending,o=t.memoizedState;if(u!==null){n.pending=null;var i=u=u.next;do o=e(o,i.action),i=i.next;while(i!==u);Mt(o,t.memoizedState)||(Ye=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function vh(){}function yh(e,t){var n=ge,r=Ct(),u=t(),o=!Mt(r.memoizedState,u);if(o&&(r.memoizedState=u,Ye=!0),r=r.queue,Nc(kh.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ze!==null&&ze.memoizedState.tag&1){if(n.flags|=2048,po(9,wh.bind(null,n,r,u,t),void 0,null),Pe===null)throw Error(R(349));dr&30||bh(n,t,u)}return u}function bh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function wh(e,t,n,r){t.value=n,t.getSnapshot=r,Ch(t)&&_h(e)}function kh(e,t,n){return n(function(){Ch(t)&&_h(e)})}function Ch(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mt(e,n)}catch{return!0}}function _h(e){var t=mn(e,1);t!==null&&Pt(t,e,1,-1)}function c0(e){var t=Wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:e},t.queue=e,e=e.dispatch=Px.bind(null,ge,e),[t.memoizedState,e]}function po(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Eh(){return Ct().memoizedState}function pi(e,t,n,r){var u=Wt();ge.flags|=e,u.memoizedState=po(1|t,n,void 0,r===void 0?null:r)}function pl(e,t,n,r){var u=Ct();r=r===void 0?null:r;var o=void 0;if(Ae!==null){var i=Ae.memoizedState;if(o=i.destroy,r!==null&&Ec(r,i.deps)){u.memoizedState=po(t,n,o,r);return}}ge.flags|=e,u.memoizedState=po(1|t,n,o,r)}function d0(e,t){return pi(8390656,8,e,t)}function Nc(e,t){return pl(2048,8,e,t)}function Sh(e,t){return pl(4,2,e,t)}function Ah(e,t){return pl(4,4,e,t)}function Nh(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 Dh(e,t,n){return n=n!=null?n.concat([e]):null,pl(4,4,Nh.bind(null,t,e),n)}function Dc(){}function jh(e,t){var n=Ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ec(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fh(e,t){var n=Ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ec(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function zh(e,t,n){return dr&21?(Mt(n,t)||(n=Lp(),ge.lanes|=n,fr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ye=!0),e.memoizedState=n)}function zx(e,t){var n=oe;oe=n!==0&&4>n?n:4,e(!0);var r=rs.transition;rs.transition={};try{e(!1),t()}finally{oe=n,rs.transition=r}}function Rh(){return Ct().memoizedState}function Rx(e,t,n){var r=Hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ph(e))Th(t,n);else if(n=mh(e,t,n,r),n!==null){var u=qe();Pt(n,e,r,u),Mh(n,t,r)}}function Px(e,t,n){var r=Hn(e),u={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ph(e))Th(t,u);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(u.hasEagerState=!0,u.eagerState=l,Mt(l,i)){var s=t.interleaved;s===null?(u.next=u,bc(t)):(u.next=s.next,s.next=u),t.interleaved=u;return}}catch{}finally{}n=mh(e,t,u,r),n!==null&&(u=qe(),Pt(n,e,r,u),Mh(n,t,r))}}function Ph(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Th(e,t){Ku=Bi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Mh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ic(e,n)}}var Ui={readContext:kt,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},Tx={readContext:kt,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:d0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pi(4194308,4,Nh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return pi(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Rx.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:c0,useDebugValue:Dc,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=c0(!1),t=e[0];return e=zx.bind(null,e[1]),Wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,u=Wt();if(fe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Pe===null)throw Error(R(349));dr&30||bh(r,t,n)}u.memoizedState=n;var o={value:n,getSnapshot:t};return u.queue=o,d0(kh.bind(null,r,o,e),[e]),r.flags|=2048,po(9,wh.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Wt(),t=Pe.identifierPrefix;if(fe){var n=dn,r=cn;n=(r&~(1<<32-Rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=co++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Fx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Mx={readContext:kt,useCallback:jh,useContext:kt,useEffect:Nc,useImperativeHandle:Dh,useInsertionEffect:Sh,useLayoutEffect:Ah,useMemo:Fh,useReducer:us,useRef:Eh,useState:function(){return us(fo)},useDebugValue:Dc,useDeferredValue:function(e){var t=Ct();return zh(t,Ae.memoizedState,e)},useTransition:function(){var e=us(fo)[0],t=Ct().memoizedState;return[e,t]},useMutableSource:vh,useSyncExternalStore:yh,useId:Rh,unstable_isNewReconciler:!1},Lx={readContext:kt,useCallback:jh,useContext:kt,useEffect:Nc,useImperativeHandle:Dh,useInsertionEffect:Sh,useLayoutEffect:Ah,useMemo:Fh,useReducer:os,useRef:Eh,useState:function(){return os(fo)},useDebugValue:Dc,useDeferredValue:function(e){var t=Ct();return Ae===null?t.memoizedState=e:zh(t,Ae.memoizedState,e)},useTransition:function(){var e=os(fo)[0],t=Ct().memoizedState;return[e,t]},useMutableSource:vh,useSyncExternalStore:yh,useId:Rh,unstable_isNewReconciler:!1};function Nt(e,t){if(e&&e.defaultProps){t=xe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function da(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hl={isMounted:function(e){return(e=e._reactInternals)?br(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=qe(),u=Hn(e),o=fn(r,u);o.payload=t,n!=null&&(o.callback=n),t=Bn(e,o,u),t!==null&&(Pt(t,e,u,r),di(t,e,u))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qe(),u=Hn(e),o=fn(r,u);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Bn(e,o,u),t!==null&&(Pt(t,e,u,r),di(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qe(),r=Hn(e),u=fn(n,r);u.tag=2,t!=null&&(u.callback=t),t=Bn(e,u,r),t!==null&&(Pt(t,e,r,n),di(t,e,r))}};function f0(e,t,n,r,u,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!uo(n,r)||!uo(u,o):!0}function Lh(e,t,n){var r=!1,u=qn,o=t.contextType;return typeof o=="object"&&o!==null?o=kt(o):(u=et(t)?ar:Ve.current,r=t.contextTypes,o=(r=r!=null)?Qr(e,u):qn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=hl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=o),t}function p0(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&hl.enqueueReplaceState(t,t.state,null)}function fa(e,t,n,r){var u=e.stateNode;u.props=n,u.state=e.memoizedState,u.refs={},wc(e);var o=t.contextType;typeof o=="object"&&o!==null?u.context=kt(o):(o=et(t)?ar:Ve.current,u.context=Qr(e,o)),u.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(da(e,t,o,n),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(t=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),t!==u.state&&hl.enqueueReplaceState(u,u.state,null),Oi(e,n,u,r),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308)}function eu(e,t){try{var n="",r=t;do n+=d2(r),r=r.return;while(r);var u=n}catch(o){u=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:u,digest:null}}function is(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function pa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ix=typeof WeakMap=="function"?WeakMap:Map;function Ih(e,t,n){n=fn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vi||(Vi=!0,Ca=r),pa(e,t)},n}function Oh(e,t,n){n=fn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var u=t.value;n.payload=function(){return r(u)},n.callback=function(){pa(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){pa(e,t),typeof r!="function"&&(Un===null?Un=new Set([this]):Un.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function h0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ix;var u=new Set;r.set(t,u)}else u=r.get(t),u===void 0&&(u=new Set,r.set(t,u));u.has(n)||(u.add(n),e=Xx.bind(null,e,t,n),t.then(e,e))}function m0(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 g0(e,t,n,r,u){return e.mode&1?(e.flags|=65536,e.lanes=u,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=fn(-1,1),t.tag=2,Bn(n,t,1))),n.lanes|=1),e)}var Ox=bn.ReactCurrentOwner,Ye=!1;function We(e,t,n,r){t.child=e===null?hh(t,null,n,r):Xr(t,e.child,n,r)}function x0(e,t,n,r,u){n=n.render;var o=t.ref;return Hr(t,u),r=Sc(e,t,n,r,o,u),n=Ac(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,gn(e,t,u)):(fe&&n&&hc(t),t.flags|=1,We(e,t,r,u),t.child)}function v0(e,t,n,r,u){if(e===null){var o=n.type;return typeof o=="function"&&!Lc(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,$h(e,t,o,r,u)):(e=xi(n.type,null,r,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&u)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:uo,n(i,r)&&e.ref===t.ref)return gn(e,t,u)}return t.flags|=1,e=Vn(o,r),e.ref=t.ref,e.return=t,t.child=e}function $h(e,t,n,r,u){if(e!==null){var o=e.memoizedProps;if(uo(o,r)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=r=o,(e.lanes&u)!==0)e.flags&131072&&(Ye=!0);else return t.lanes=e.lanes,gn(e,t,u)}return ha(e,t,n,r,u)}function Bh(e,t,n){var r=t.pendingProps,u=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(Ir,ot),ot|=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,le(Ir,ot),ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,le(Ir,ot),ot|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,le(Ir,ot),ot|=r;return We(e,t,u,n),t.child}function Uh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ha(e,t,n,r,u){var o=et(n)?ar:Ve.current;return o=Qr(t,o),Hr(t,u),n=Sc(e,t,n,r,o,u),r=Ac(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,gn(e,t,u)):(fe&&r&&hc(t),t.flags|=1,We(e,t,n,u),t.child)}function y0(e,t,n,r,u){if(et(n)){var o=!0;Pi(t)}else o=!1;if(Hr(t,u),t.stateNode===null)hi(e,t),Lh(t,n,r),fa(t,n,r,u),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=kt(a):(a=et(n)?ar:Ve.current,a=Qr(t,a));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||s!==a)&&p0(t,i,r,a),Dn=!1;var m=t.memoizedState;i.state=m,Oi(t,r,i,u),s=t.memoizedState,l!==r||m!==s||Je.current||Dn?(typeof d=="function"&&(da(t,n,d,r),s=t.memoizedState),(l=Dn||f0(t,n,l,r,m,s,a))?(p||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=r,t.memoizedState=s),i.props=r,i.state=s,i.context=a,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,gh(e,t),l=t.memoizedProps,a=t.type===t.elementType?l:Nt(t.type,l),i.props=a,p=t.pendingProps,m=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=kt(s):(s=et(n)?ar:Ve.current,s=Qr(t,s));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==p||m!==s)&&p0(t,i,r,s),Dn=!1,m=t.memoizedState,i.state=m,Oi(t,r,i,u);var v=t.memoizedState;l!==p||m!==v||Je.current||Dn?(typeof y=="function"&&(da(t,n,y,r),v=t.memoizedState),(a=Dn||f0(t,n,a,r,m,v,s)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,s)),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=r,t.memoizedState=v),i.props=r,i.state=v,i.context=s,r=a):(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),r=!1)}return ma(e,t,n,r,o,u)}function ma(e,t,n,r,u,o){Uh(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return u&&u0(t,n,!1),gn(e,t,o);r=t.stateNode,Ox.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Xr(t,e.child,null,o),t.child=Xr(t,null,l,o)):We(e,t,l,o),t.memoizedState=r.state,u&&u0(t,n,!0),t.child}function Hh(e){var t=e.stateNode;t.pendingContext?r0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&r0(e,t.context,!1),kc(e,t.containerInfo)}function b0(e,t,n,r,u){return Yr(),gc(u),t.flags|=256,We(e,t,n,r),t.child}var ga={dehydrated:null,treeContext:null,retryLane:0};function xa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Vh(e,t,n){var r=t.pendingProps,u=me.current,o=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(u&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(u|=1),le(me,u&1),e===null)return aa(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=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=xl(i,r,0,null),e=sr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=xa(n),t.memoizedState=ga,e):jc(t,i));if(u=e.memoizedState,u!==null&&(l=u.dehydrated,l!==null))return $x(e,t,i,r,l,u,n);if(o){o=r.fallback,i=t.mode,u=e.child,l=u.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==u?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Vn(u,s),r.subtreeFlags=u.subtreeFlags&14680064),l!==null?o=Vn(l,o):(o=sr(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?xa(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=ga,r}return o=e.child,e=o.sibling,r=Vn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function jc(e,t){return t=xl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ko(e,t,n,r){return r!==null&&gc(r),Xr(t,e.child,null,n),e=jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $x(e,t,n,r,u,o,i){if(n)return t.flags&256?(t.flags&=-257,r=is(Error(R(422))),Ko(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,u=t.mode,r=xl({mode:"visible",children:r.children},u,0,null),o=sr(o,u,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Xr(t,e.child,null,i),t.child.memoizedState=xa(i),t.memoizedState=ga,o);if(!(t.mode&1))return Ko(e,t,i,null);if(u.data==="$!"){if(r=u.nextSibling&&u.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(R(419)),r=is(o,r,void 0),Ko(e,t,i,r)}if(l=(i&e.childLanes)!==0,Ye||l){if(r=Pe,r!==null){switch(i&-i){case 4:u=2;break;case 16:u=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:u=32;break;case 536870912:u=268435456;break;default:u=0}u=u&(r.suspendedLanes|i)?0:u,u!==0&&u!==o.retryLane&&(o.retryLane=u,mn(e,u),Pt(r,e,u,-1))}return Mc(),r=is(Error(R(421))),Ko(e,t,i,r)}return u.data==="$?"?(t.flags|=128,t.child=e.child,t=Jx.bind(null,e),u._reactRetry=t,null):(e=o.treeContext,st=$n(u.nextSibling),at=t,fe=!0,jt=null,e!==null&&(xt[vt++]=cn,xt[vt++]=dn,xt[vt++]=cr,cn=e.id,dn=e.overflow,cr=t),t=jc(t,r.children),t.flags|=4096,t)}function w0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ca(e.return,t,n)}function ls(e,t,n,r,u){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:u}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=u)}function Wh(e,t,n){var r=t.pendingProps,u=r.revealOrder,o=r.tail;if(We(e,t,r.children,n),r=me.current,r&2)r=r&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&&w0(e,n,t);else if(e.tag===19)w0(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(le(me,r),!(t.mode&1))t.memoizedState=null;else switch(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&$i(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),ls(t,!1,u,n,o);break;case"backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&$i(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}ls(t,!0,n,null,o);break;case"together":ls(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function gn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=Vn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Vn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Bx(e,t,n){switch(t.tag){case 3:Hh(t),Yr();break;case 5:xh(t);break;case 1:et(t.type)&&Pi(t);break;case 4:kc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,u=t.memoizedProps.value;le(Li,r._currentValue),r._currentValue=u;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(me,me.current&1),t.flags|=128,null):n&t.child.childLanes?Vh(e,t,n):(le(me,me.current&1),e=gn(e,t,n),e!==null?e.sibling:null);le(me,me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Wh(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),le(me,me.current),r)break;return null;case 22:case 23:return t.lanes=0,Bh(e,t,n)}return gn(e,t,n)}var qh,va,Kh,Gh;qh=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}};va=function(){};Kh=function(e,t,n,r){var u=e.memoizedProps;if(u!==r){e=t.stateNode,ir(en.current);var o=null;switch(n){case"input":u=$s(e,u),r=$s(e,r),o=[];break;case"select":u=xe({},u,{value:void 0}),r=xe({},r,{value:void 0}),o=[];break;case"textarea":u=Hs(e,u),r=Hs(e,r),o=[];break;default:typeof u.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=zi)}Ws(n,r);var i;n=null;for(a in u)if(!r.hasOwnProperty(a)&&u.hasOwnProperty(a)&&u[a]!=null)if(a==="style"){var l=u[a];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Yu.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var s=r[a];if(l=u!=null?u[a]:void 0,r.hasOwnProperty(a)&&s!==l&&(s!=null||l!=null))if(a==="style")if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(o||(o=[]),o.push(a,n)),n=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(o=o||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Yu.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&ce("scroll",e),o||l===s||(o=[])):(o=o||[]).push(a,s))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}};Gh=function(e,t,n,r){n!==r&&(t.flags|=4)};function Fu(e,t){if(!fe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,r|=u.subtreeFlags&14680064,r|=u.flags&14680064,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,r|=u.subtreeFlags,r|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ux(e,t,n){var r=t.pendingProps;switch(mc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return et(t.type)&&Ri(),Ue(t),null;case 3:return r=t.stateNode,Jr(),de(Je),de(Ve),_c(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Wo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jt!==null&&(Sa(jt),jt=null))),va(e,t),Ue(t),null;case 5:Cc(t);var u=ir(ao.current);if(n=t.type,e!==null&&t.stateNode!=null)Kh(e,t,n,r,u),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return Ue(t),null}if(e=ir(en.current),Wo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[qt]=t,r[lo]=o,e=(t.mode&1)!==0,n){case"dialog":ce("cancel",r),ce("close",r);break;case"iframe":case"object":case"embed":ce("load",r);break;case"video":case"audio":for(u=0;u<$u.length;u++)ce($u[u],r);break;case"source":ce("error",r);break;case"img":case"image":case"link":ce("error",r),ce("load",r);break;case"details":ce("toggle",r);break;case"input":jd(r,o),ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ce("invalid",r);break;case"textarea":zd(r,o),ce("invalid",r)}Ws(n,o),u=null;for(var i in o)if(o.hasOwnProperty(i)){var l=o[i];i==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&Vo(r.textContent,l,e),u=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Vo(r.textContent,l,e),u=["children",""+l]):Yu.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&ce("scroll",r)}switch(n){case"input":Mo(r),Fd(r,o,!0);break;case"textarea":Mo(r),Rd(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=zi)}r=u,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=u.nodeType===9?u:u.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=kp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[qt]=t,e[lo]=r,qh(e,t,!1,!1),t.stateNode=e;e:{switch(i=qs(n,r),n){case"dialog":ce("cancel",e),ce("close",e),u=r;break;case"iframe":case"object":case"embed":ce("load",e),u=r;break;case"video":case"audio":for(u=0;u<$u.length;u++)ce($u[u],e);u=r;break;case"source":ce("error",e),u=r;break;case"img":case"image":case"link":ce("error",e),ce("load",e),u=r;break;case"details":ce("toggle",e),u=r;break;case"input":jd(e,r),u=$s(e,r),ce("invalid",e);break;case"option":u=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},u=xe({},r,{value:void 0}),ce("invalid",e);break;case"textarea":zd(e,r),u=Hs(e,r),ce("invalid",e);break;default:u=r}Ws(n,u),l=u;for(o in l)if(l.hasOwnProperty(o)){var s=l[o];o==="style"?Ep(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Cp(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Xu(e,s):typeof s=="number"&&Xu(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Yu.hasOwnProperty(o)?s!=null&&o==="onScroll"&&ce("scroll",e):s!=null&&ec(e,o,s,i))}switch(n){case"input":Mo(e),Fd(e,r,!1);break;case"textarea":Mo(e),Rd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Wn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Or(e,!!r.multiple,o,!1):r.defaultValue!=null&&Or(e,!!r.multiple,r.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=zi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ue(t),null;case 6:if(e&&t.stateNode!=null)Gh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=ir(ao.current),ir(en.current),Wo(t)){if(r=t.stateNode,n=t.memoizedProps,r[qt]=t,(o=r.nodeValue!==n)&&(e=at,e!==null))switch(e.tag){case 3:Vo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Vo(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[qt]=t,t.stateNode=r}return Ue(t),null;case 13:if(de(me),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(fe&&st!==null&&t.mode&1&&!(t.flags&128))fh(),Yr(),t.flags|=98560,o=!1;else if(o=Wo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(R(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(R(317));o[qt]=t}else Yr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ue(t),o=!1}else jt!==null&&(Sa(jt),jt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||me.current&1?Ne===0&&(Ne=3):Mc())),t.updateQueue!==null&&(t.flags|=4),Ue(t),null);case 4:return Jr(),va(e,t),e===null&&oo(t.stateNode.containerInfo),Ue(t),null;case 10:return yc(t.type._context),Ue(t),null;case 17:return et(t.type)&&Ri(),Ue(t),null;case 19:if(de(me),o=t.memoizedState,o===null)return Ue(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)Fu(o,!1);else{if(Ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=$i(e),i!==null){for(t.flags|=128,Fu(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,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 le(me,me.current&1|2),t.child}e=e.sibling}o.tail!==null&&we()>tu&&(t.flags|=128,r=!0,Fu(o,!1),t.lanes=4194304)}else{if(!r)if(e=$i(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!fe)return Ue(t),null}else 2*we()-o.renderingStartTime>tu&&n!==1073741824&&(t.flags|=128,r=!0,Fu(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=we(),t.sibling=null,n=me.current,le(me,r?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return Tc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ot&1073741824&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function Hx(e,t){switch(mc(t),t.tag){case 1:return et(t.type)&&Ri(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jr(),de(Je),de(Ve),_c(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cc(t),null;case 13:if(de(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(me),null;case 4:return Jr(),null;case 10:return yc(t.type._context),null;case 22:case 23:return Tc(),null;case 24:return null;default:return null}}var Go=!1,He=!1,Vx=typeof WeakSet=="function"?WeakSet:Set,O=null;function Lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ve(e,t,r)}else n.current=null}function ya(e,t,n){try{n()}catch(r){ve(e,t,r)}}var k0=!1;function Wx(e,t){if(na=Di,e=Jp(),pc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var u=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,l=-1,s=-1,a=0,d=0,p=e,m=null;t:for(;;){for(var y;p!==n||u!==0&&p.nodeType!==3||(l=i+u),p!==o||r!==0&&p.nodeType!==3||(s=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(y=p.firstChild)!==null;)m=p,p=y;for(;;){if(p===e)break t;if(m===n&&++a===u&&(l=i),m===o&&++d===r&&(s=i),(y=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=y}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ra={focusedElem:e,selectionRange:n},Di=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var b=v.memoizedProps,C=v.memoizedState,x=t.stateNode,f=x.getSnapshotBeforeUpdate(t.elementType===t.type?b:Nt(t.type,b),C);x.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(w){ve(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return v=k0,k0=!1,v}function Gu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var u=r=r.next;do{if((u.tag&e)===e){var o=u.destroy;u.destroy=void 0,o!==void 0&&ya(t,n,o)}u=u.next}while(u!==r)}}function ml(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ba(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 Zh(e){var t=e.alternate;t!==null&&(e.alternate=null,Zh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qt],delete t[lo],delete t[ia],delete t[Ax],delete t[Nx])),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 Qh(e){return e.tag===5||e.tag===3||e.tag===4}function C0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qh(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 wa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zi));else if(r!==4&&(e=e.child,e!==null))for(wa(e,t,n),e=e.sibling;e!==null;)wa(e,t,n),e=e.sibling}function ka(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ka(e,t,n),e=e.sibling;e!==null;)ka(e,t,n),e=e.sibling}var Me=null,Dt=!1;function Cn(e,t,n){for(n=n.child;n!==null;)Yh(e,t,n),n=n.sibling}function Yh(e,t,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(ll,n)}catch{}switch(n.tag){case 5:He||Lr(n,t);case 6:var r=Me,u=Dt;Me=null,Cn(e,t,n),Me=r,Dt=u,Me!==null&&(Dt?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(Dt?(e=Me,n=n.stateNode,e.nodeType===8?es(e.parentNode,n):e.nodeType===1&&es(e,n),no(e)):es(Me,n.stateNode));break;case 4:r=Me,u=Dt,Me=n.stateNode.containerInfo,Dt=!0,Cn(e,t,n),Me=r,Dt=u;break;case 0:case 11:case 14:case 15:if(!He&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){u=r=r.next;do{var o=u,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&ya(n,t,i),u=u.next}while(u!==r)}Cn(e,t,n);break;case 1:if(!He&&(Lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ve(n,t,l)}Cn(e,t,n);break;case 21:Cn(e,t,n);break;case 22:n.mode&1?(He=(r=He)||n.memoizedState!==null,Cn(e,t,n),He=r):Cn(e,t,n);break;default:Cn(e,t,n)}}function _0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vx),t.forEach(function(r){var u=ev.bind(null,e,r);n.has(r)||(n.add(r),r.then(u,u))})}}function St(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var u=n[r];try{var o=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:Me=l.stateNode,Dt=!1;break e;case 3:Me=l.stateNode.containerInfo,Dt=!0;break e;case 4:Me=l.stateNode.containerInfo,Dt=!0;break e}l=l.return}if(Me===null)throw Error(R(160));Yh(o,i,u),Me=null,Dt=!1;var s=u.alternate;s!==null&&(s.return=null),u.return=null}catch(a){ve(u,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Xh(t,e),t=t.sibling}function Xh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(St(t,e),Vt(e),r&4){try{Gu(3,e,e.return),ml(3,e)}catch(b){ve(e,e.return,b)}try{Gu(5,e,e.return)}catch(b){ve(e,e.return,b)}}break;case 1:St(t,e),Vt(e),r&512&&n!==null&&Lr(n,n.return);break;case 5:if(St(t,e),Vt(e),r&512&&n!==null&&Lr(n,n.return),e.flags&32){var u=e.stateNode;try{Xu(u,"")}catch(b){ve(e,e.return,b)}}if(r&4&&(u=e.stateNode,u!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&bp(u,o),qs(l,i);var a=qs(l,o);for(i=0;i<s.length;i+=2){var d=s[i],p=s[i+1];d==="style"?Ep(u,p):d==="dangerouslySetInnerHTML"?Cp(u,p):d==="children"?Xu(u,p):ec(u,d,p,a)}switch(l){case"input":Bs(u,o);break;case"textarea":wp(u,o);break;case"select":var m=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?Or(u,!!o.multiple,y,!1):m!==!!o.multiple&&(o.defaultValue!=null?Or(u,!!o.multiple,o.defaultValue,!0):Or(u,!!o.multiple,o.multiple?[]:"",!1))}u[lo]=o}catch(b){ve(e,e.return,b)}}break;case 6:if(St(t,e),Vt(e),r&4){if(e.stateNode===null)throw Error(R(162));u=e.stateNode,o=e.memoizedProps;try{u.nodeValue=o}catch(b){ve(e,e.return,b)}}break;case 3:if(St(t,e),Vt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{no(t.containerInfo)}catch(b){ve(e,e.return,b)}break;case 4:St(t,e),Vt(e);break;case 13:St(t,e),Vt(e),u=e.child,u.flags&8192&&(o=u.memoizedState!==null,u.stateNode.isHidden=o,!o||u.alternate!==null&&u.alternate.memoizedState!==null||(Rc=we())),r&4&&_0(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(He=(a=He)||d,St(t,e),He=a):St(t,e),Vt(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!d&&e.mode&1)for(O=e,d=e.child;d!==null;){for(p=O=d;O!==null;){switch(m=O,y=m.child,m.tag){case 0:case 11:case 14:case 15:Gu(4,m,m.return);break;case 1:Lr(m,m.return);var v=m.stateNode;if(typeof v.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(b){ve(r,n,b)}}break;case 5:Lr(m,m.return);break;case 22:if(m.memoizedState!==null){S0(p);continue}}y!==null?(y.return=m,O=y):S0(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{u=p.stateNode,a?(o=u.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=p.stateNode,s=p.memoizedProps.style,i=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=_p("display",i))}catch(b){ve(e,e.return,b)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=a?"":p.memoizedProps}catch(b){ve(e,e.return,b)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:St(t,e),Vt(e),r&4&&_0(e);break;case 21:break;default:St(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Qh(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var u=r.stateNode;r.flags&32&&(Xu(u,""),r.flags&=-33);var o=C0(e);ka(e,o,u);break;case 3:case 4:var i=r.stateNode.containerInfo,l=C0(e);wa(e,l,i);break;default:throw Error(R(161))}}catch(s){ve(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qx(e,t,n){O=e,Jh(e)}function Jh(e,t,n){for(var r=(e.mode&1)!==0;O!==null;){var u=O,o=u.child;if(u.tag===22&&r){var i=u.memoizedState!==null||Go;if(!i){var l=u.alternate,s=l!==null&&l.memoizedState!==null||He;l=Go;var a=He;if(Go=i,(He=s)&&!a)for(O=u;O!==null;)i=O,s=i.child,i.tag===22&&i.memoizedState!==null?A0(u):s!==null?(s.return=i,O=s):A0(u);for(;o!==null;)O=o,Jh(o),o=o.sibling;O=u,Go=l,He=a}E0(e)}else u.subtreeFlags&8772&&o!==null?(o.return=u,O=o):E0(e)}}function E0(e){for(;O!==null;){var t=O;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:He||ml(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!He)if(n===null)r.componentDidMount();else{var u=t.elementType===t.type?n.memoizedProps:Nt(t.type,n.memoizedProps);r.componentDidUpdate(u,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&a0(t,o,r);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}a0(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var d=a.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&no(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}He||t.flags&512&&ba(t)}catch(m){ve(t,t.return,m)}}if(t===e){O=null;break}if(n=t.sibling,n!==null){n.return=t.return,O=n;break}O=t.return}}function S0(e){for(;O!==null;){var t=O;if(t===e){O=null;break}var n=t.sibling;if(n!==null){n.return=t.return,O=n;break}O=t.return}}function A0(e){for(;O!==null;){var t=O;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ml(4,t)}catch(s){ve(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var u=t.return;try{r.componentDidMount()}catch(s){ve(t,u,s)}}var o=t.return;try{ba(t)}catch(s){ve(t,o,s)}break;case 5:var i=t.return;try{ba(t)}catch(s){ve(t,i,s)}}}catch(s){ve(t,t.return,s)}if(t===e){O=null;break}var l=t.sibling;if(l!==null){l.return=t.return,O=l;break}O=t.return}}var Kx=Math.ceil,Hi=bn.ReactCurrentDispatcher,Fc=bn.ReactCurrentOwner,bt=bn.ReactCurrentBatchConfig,te=0,Pe=null,Se=null,Le=0,ot=0,Ir=Yn(0),Ne=0,ho=null,fr=0,gl=0,zc=0,Zu=null,Qe=null,Rc=0,tu=1/0,sn=null,Vi=!1,Ca=null,Un=null,Zo=!1,Tn=null,Wi=0,Qu=0,_a=null,mi=-1,gi=0;function qe(){return te&6?we():mi!==-1?mi:mi=we()}function Hn(e){return e.mode&1?te&2&&Le!==0?Le&-Le:jx.transition!==null?(gi===0&&(gi=Lp()),gi):(e=oe,e!==0||(e=window.event,e=e===void 0?16:Vp(e.type)),e):1}function Pt(e,t,n,r){if(50<Qu)throw Qu=0,_a=null,Error(R(185));ko(e,n,r),(!(te&2)||e!==Pe)&&(e===Pe&&(!(te&2)&&(gl|=n),Ne===4&&zn(e,Le)),tt(e,r),n===1&&te===0&&!(t.mode&1)&&(tu=we()+500,fl&&Xn()))}function tt(e,t){var n=e.callbackNode;j2(e,t);var r=Ni(e,e===Pe?Le:0);if(r===0)n!==null&&Md(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Md(n),t===1)e.tag===0?Dx(N0.bind(null,e)):ah(N0.bind(null,e)),Ex(function(){!(te&6)&&Xn()}),n=null;else{switch(Ip(r)){case 1:n=oc;break;case 4:n=Tp;break;case 16:n=Ai;break;case 536870912:n=Mp;break;default:n=Ai}n=l1(n,e1.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function e1(e,t){if(mi=-1,gi=0,te&6)throw Error(R(327));var n=e.callbackNode;if(Vr()&&e.callbackNode!==n)return null;var r=Ni(e,e===Pe?Le:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=qi(e,r);else{t=r;var u=te;te|=2;var o=n1();(Pe!==e||Le!==t)&&(sn=null,tu=we()+500,lr(e,t));do try{Qx();break}catch(l){t1(e,l)}while(!0);vc(),Hi.current=o,te=u,Se!==null?t=0:(Pe=null,Le=0,t=Ne)}if(t!==0){if(t===2&&(u=Ys(e),u!==0&&(r=u,t=Ea(e,u))),t===1)throw n=ho,lr(e,0),zn(e,r),tt(e,we()),n;if(t===6)zn(e,r);else{if(u=e.current.alternate,!(r&30)&&!Gx(u)&&(t=qi(e,r),t===2&&(o=Ys(e),o!==0&&(r=o,t=Ea(e,o))),t===1))throw n=ho,lr(e,0),zn(e,r),tt(e,we()),n;switch(e.finishedWork=u,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:rr(e,Qe,sn);break;case 3:if(zn(e,r),(r&130023424)===r&&(t=Rc+500-we(),10<t)){if(Ni(e,0)!==0)break;if(u=e.suspendedLanes,(u&r)!==r){qe(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=oa(rr.bind(null,e,Qe,sn),t);break}rr(e,Qe,sn);break;case 4:if(zn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,u=-1;0<r;){var i=31-Rt(r);o=1<<i,i=t[i],i>u&&(u=i),r&=~o}if(r=u,r=we()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kx(r/1960))-r,10<r){e.timeoutHandle=oa(rr.bind(null,e,Qe,sn),r);break}rr(e,Qe,sn);break;case 5:rr(e,Qe,sn);break;default:throw Error(R(329))}}}return tt(e,we()),e.callbackNode===n?e1.bind(null,e):null}function Ea(e,t){var n=Zu;return e.current.memoizedState.isDehydrated&&(lr(e,t).flags|=256),e=qi(e,t),e!==2&&(t=Qe,Qe=n,t!==null&&Sa(t)),e}function Sa(e){Qe===null?Qe=e:Qe.push.apply(Qe,e)}function Gx(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var u=n[r],o=u.getSnapshot;u=u.value;try{if(!Mt(o(),u))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 zn(e,t){for(t&=~zc,t&=~gl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Rt(t),r=1<<n;e[n]=-1,t&=~r}}function N0(e){if(te&6)throw Error(R(327));Vr();var t=Ni(e,0);if(!(t&1))return tt(e,we()),null;var n=qi(e,t);if(e.tag!==0&&n===2){var r=Ys(e);r!==0&&(t=r,n=Ea(e,r))}if(n===1)throw n=ho,lr(e,0),zn(e,t),tt(e,we()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,rr(e,Qe,sn),tt(e,we()),null}function Pc(e,t){var n=te;te|=1;try{return e(t)}finally{te=n,te===0&&(tu=we()+500,fl&&Xn())}}function pr(e){Tn!==null&&Tn.tag===0&&!(te&6)&&Vr();var t=te;te|=1;var n=bt.transition,r=oe;try{if(bt.transition=null,oe=1,e)return e()}finally{oe=r,bt.transition=n,te=t,!(te&6)&&Xn()}}function Tc(){ot=Ir.current,de(Ir)}function lr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,_x(n)),Se!==null)for(n=Se.return;n!==null;){var r=n;switch(mc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ri();break;case 3:Jr(),de(Je),de(Ve),_c();break;case 5:Cc(r);break;case 4:Jr();break;case 13:de(me);break;case 19:de(me);break;case 10:yc(r.type._context);break;case 22:case 23:Tc()}n=n.return}if(Pe=e,Se=e=Vn(e.current,null),Le=ot=t,Ne=0,ho=null,zc=gl=fr=0,Qe=Zu=null,or!==null){for(t=0;t<or.length;t++)if(n=or[t],r=n.interleaved,r!==null){n.interleaved=null;var u=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=u,r.next=i}n.pending=r}or=null}return e}function t1(e,t){do{var n=Se;try{if(vc(),fi.current=Ui,Bi){for(var r=ge.memoizedState;r!==null;){var u=r.queue;u!==null&&(u.pending=null),r=r.next}Bi=!1}if(dr=0,ze=Ae=ge=null,Ku=!1,co=0,Fc.current=null,n===null||n.return===null){Ne=1,ho=t,Se=null;break}e:{var o=e,i=n.return,l=n,s=t;if(t=Le,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var a=s,d=l,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===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 y=m0(i);if(y!==null){y.flags&=-257,g0(y,i,l,o,t),y.mode&1&&h0(o,a,t),t=y,s=a;var v=t.updateQueue;if(v===null){var b=new Set;b.add(s),t.updateQueue=b}else v.add(s);break e}else{if(!(t&1)){h0(o,a,t),Mc();break e}s=Error(R(426))}}else if(fe&&l.mode&1){var C=m0(i);if(C!==null){!(C.flags&65536)&&(C.flags|=256),g0(C,i,l,o,t),gc(eu(s,l));break e}}o=s=eu(s,l),Ne!==4&&(Ne=2),Zu===null?Zu=[o]:Zu.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var x=Ih(o,s,t);s0(o,x);break e;case 1:l=s;var f=o.type,h=o.stateNode;if(!(o.flags&128)&&(typeof f.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Un===null||!Un.has(h)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=Oh(o,l,t);s0(o,w);break e}}o=o.return}while(o!==null)}u1(n)}catch(k){t=k,Se===n&&n!==null&&(Se=n=n.return);continue}break}while(!0)}function n1(){var e=Hi.current;return Hi.current=Ui,e===null?Ui:e}function Mc(){(Ne===0||Ne===3||Ne===2)&&(Ne=4),Pe===null||!(fr&268435455)&&!(gl&268435455)||zn(Pe,Le)}function qi(e,t){var n=te;te|=2;var r=n1();(Pe!==e||Le!==t)&&(sn=null,lr(e,t));do try{Zx();break}catch(u){t1(e,u)}while(!0);if(vc(),te=n,Hi.current=r,Se!==null)throw Error(R(261));return Pe=null,Le=0,Ne}function Zx(){for(;Se!==null;)r1(Se)}function Qx(){for(;Se!==null&&!w2();)r1(Se)}function r1(e){var t=i1(e.alternate,e,ot);e.memoizedProps=e.pendingProps,t===null?u1(e):Se=t,Fc.current=null}function u1(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Hx(n,t),n!==null){n.flags&=32767,Se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ne=6,Se=null;return}}else if(n=Ux(n,t,ot),n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ne===0&&(Ne=5)}function rr(e,t,n){var r=oe,u=bt.transition;try{bt.transition=null,oe=1,Yx(e,t,n,r)}finally{bt.transition=u,oe=r}return null}function Yx(e,t,n,r){do Vr();while(Tn!==null);if(te&6)throw Error(R(327));n=e.finishedWork;var u=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(F2(e,o),e===Pe&&(Se=Pe=null,Le=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Zo||(Zo=!0,l1(Ai,function(){return Vr(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=bt.transition,bt.transition=null;var i=oe;oe=1;var l=te;te|=4,Fc.current=null,Wx(e,n),Xh(n,e),xx(ra),Di=!!na,ra=na=null,e.current=n,qx(n),k2(),te=l,oe=i,bt.transition=o}else e.current=n;if(Zo&&(Zo=!1,Tn=e,Wi=u),o=e.pendingLanes,o===0&&(Un=null),E2(n.stateNode),tt(e,we()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)u=t[n],r(u.value,{componentStack:u.stack,digest:u.digest});if(Vi)throw Vi=!1,e=Ca,Ca=null,e;return Wi&1&&e.tag!==0&&Vr(),o=e.pendingLanes,o&1?e===_a?Qu++:(Qu=0,_a=e):Qu=0,Xn(),null}function Vr(){if(Tn!==null){var e=Ip(Wi),t=bt.transition,n=oe;try{if(bt.transition=null,oe=16>e?16:e,Tn===null)var r=!1;else{if(e=Tn,Tn=null,Wi=0,te&6)throw Error(R(331));var u=te;for(te|=4,O=e.current;O!==null;){var o=O,i=o.child;if(O.flags&16){var l=o.deletions;if(l!==null){for(var s=0;s<l.length;s++){var a=l[s];for(O=a;O!==null;){var d=O;switch(d.tag){case 0:case 11:case 15:Gu(8,d,o)}var p=d.child;if(p!==null)p.return=d,O=p;else for(;O!==null;){d=O;var m=d.sibling,y=d.return;if(Zh(d),d===a){O=null;break}if(m!==null){m.return=y,O=m;break}O=y}}}var v=o.alternate;if(v!==null){var b=v.child;if(b!==null){v.child=null;do{var C=b.sibling;b.sibling=null,b=C}while(b!==null)}}O=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,O=i;else e:for(;O!==null;){if(o=O,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Gu(9,o,o.return)}var x=o.sibling;if(x!==null){x.return=o.return,O=x;break e}O=o.return}}var f=e.current;for(O=f;O!==null;){i=O;var h=i.child;if(i.subtreeFlags&2064&&h!==null)h.return=i,O=h;else e:for(i=f;O!==null;){if(l=O,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ml(9,l)}}catch(k){ve(l,l.return,k)}if(l===i){O=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,O=w;break e}O=l.return}}if(te=u,Xn(),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(ll,e)}catch{}r=!0}return r}finally{oe=n,bt.transition=t}}return!1}function D0(e,t,n){t=eu(n,t),t=Ih(e,t,1),e=Bn(e,t,1),t=qe(),e!==null&&(ko(e,1,t),tt(e,t))}function ve(e,t,n){if(e.tag===3)D0(e,e,n);else for(;t!==null;){if(t.tag===3){D0(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Un===null||!Un.has(r))){e=eu(n,e),e=Oh(t,e,1),t=Bn(t,e,1),e=qe(),t!==null&&(ko(t,1,e),tt(t,e));break}}t=t.return}}function Xx(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=qe(),e.pingedLanes|=e.suspendedLanes&n,Pe===e&&(Le&n)===n&&(Ne===4||Ne===3&&(Le&130023424)===Le&&500>we()-Rc?lr(e,0):zc|=n),tt(e,t)}function o1(e,t){t===0&&(e.mode&1?(t=Oo,Oo<<=1,!(Oo&130023424)&&(Oo=4194304)):t=1);var n=qe();e=mn(e,t),e!==null&&(ko(e,t,n),tt(e,n))}function Jx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),o1(e,n)}function ev(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),o1(e,n)}var i1;i1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)Ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ye=!1,Bx(e,t,n);Ye=!!(e.flags&131072)}else Ye=!1,fe&&t.flags&1048576&&ch(t,Mi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hi(e,t),e=t.pendingProps;var u=Qr(t,Ve.current);Hr(t,n),u=Sc(null,t,r,e,u,n);var o=Ac();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,et(r)?(o=!0,Pi(t)):o=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,wc(t),u.updater=hl,t.stateNode=u,u._reactInternals=t,fa(t,r,e,n),t=ma(null,t,r,!0,o,n)):(t.tag=0,fe&&o&&hc(t),We(null,t,u,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hi(e,t),e=t.pendingProps,u=r._init,r=u(r._payload),t.type=r,u=t.tag=nv(r),e=Nt(r,e),u){case 0:t=ha(null,t,r,e,n);break e;case 1:t=y0(null,t,r,e,n);break e;case 11:t=x0(null,t,r,e,n);break e;case 14:t=v0(null,t,r,Nt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,u=t.pendingProps,u=t.elementType===r?u:Nt(r,u),ha(e,t,r,u,n);case 1:return r=t.type,u=t.pendingProps,u=t.elementType===r?u:Nt(r,u),y0(e,t,r,u,n);case 3:e:{if(Hh(t),e===null)throw Error(R(387));r=t.pendingProps,o=t.memoizedState,u=o.element,gh(e,t),Oi(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){u=eu(Error(R(423)),t),t=b0(e,t,r,n,u);break e}else if(r!==u){u=eu(Error(R(424)),t),t=b0(e,t,r,n,u);break e}else for(st=$n(t.stateNode.containerInfo.firstChild),at=t,fe=!0,jt=null,n=hh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yr(),r===u){t=gn(e,t,n);break e}We(e,t,r,n)}t=t.child}return t;case 5:return xh(t),e===null&&aa(t),r=t.type,u=t.pendingProps,o=e!==null?e.memoizedProps:null,i=u.children,ua(r,u)?i=null:o!==null&&ua(r,o)&&(t.flags|=32),Uh(e,t),We(e,t,i,n),t.child;case 6:return e===null&&aa(t),null;case 13:return Vh(e,t,n);case 4:return kc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xr(t,null,r,n):We(e,t,r,n),t.child;case 11:return r=t.type,u=t.pendingProps,u=t.elementType===r?u:Nt(r,u),x0(e,t,r,u,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,u=t.pendingProps,o=t.memoizedProps,i=u.value,le(Li,r._currentValue),r._currentValue=i,o!==null)if(Mt(o.value,i)){if(o.children===u.children&&!Je.current){t=gn(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 s=l.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=fn(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),ca(o.return,n,t),l.lanes|=n;break}s=s.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(R(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),ca(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}We(e,t,u.children,n),t=t.child}return t;case 9:return u=t.type,r=t.pendingProps.children,Hr(t,n),u=kt(u),r=r(u),t.flags|=1,We(e,t,r,n),t.child;case 14:return r=t.type,u=Nt(r,t.pendingProps),u=Nt(r.type,u),v0(e,t,r,u,n);case 15:return $h(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,u=t.pendingProps,u=t.elementType===r?u:Nt(r,u),hi(e,t),t.tag=1,et(r)?(e=!0,Pi(t)):e=!1,Hr(t,n),Lh(t,r,u),fa(t,r,u,n),ma(null,t,r,!0,e,n);case 19:return Wh(e,t,n);case 22:return Bh(e,t,n)}throw Error(R(156,t.tag))};function l1(e,t){return Pp(e,t)}function tv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,n,r){return new tv(e,t,n,r)}function Lc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nv(e){if(typeof e=="function")return Lc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nc)return 11;if(e===rc)return 14}return 2}function Vn(e,t){var n=e.alternate;return n===null?(n=yt(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 xi(e,t,n,r,u,o){var i=2;if(r=e,typeof e=="function")Lc(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Nr:return sr(n.children,u,o,t);case tc:i=8,u|=8;break;case Ms:return e=yt(12,n,t,u|2),e.elementType=Ms,e.lanes=o,e;case Ls:return e=yt(13,n,t,u),e.elementType=Ls,e.lanes=o,e;case Is:return e=yt(19,n,t,u),e.elementType=Is,e.lanes=o,e;case xp:return xl(n,u,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mp:i=10;break e;case gp:i=9;break e;case nc:i=11;break e;case rc:i=14;break e;case Nn:i=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=yt(i,n,t,u),t.elementType=e,t.type=r,t.lanes=o,t}function sr(e,t,n,r){return e=yt(7,e,r,t),e.lanes=n,e}function xl(e,t,n,r){return e=yt(22,e,r,t),e.elementType=xp,e.lanes=n,e.stateNode={isHidden:!1},e}function ss(e,t,n){return e=yt(6,e,null,t),e.lanes=n,e}function as(e,t,n){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rv(e,t,n,r,u){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=Hl(0),this.expirationTimes=Hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hl(0),this.identifierPrefix=r,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function Ic(e,t,n,r,u,o,i,l,s){return e=new rv(e,t,n,l,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=yt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},wc(o),e}function uv(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ar,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function s1(e){if(!e)return qn;e=e._reactInternals;e:{if(br(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(et(n))return sh(e,n,t)}return t}function a1(e,t,n,r,u,o,i,l,s){return e=Ic(n,r,!0,e,u,o,i,l,s),e.context=s1(null),n=e.current,r=qe(),u=Hn(n),o=fn(r,u),o.callback=t??null,Bn(n,o,u),e.current.lanes=u,ko(e,u,r),tt(e,r),e}function vl(e,t,n,r){var u=t.current,o=qe(),i=Hn(u);return n=s1(n),t.context===null?t.context=n:t.pendingContext=n,t=fn(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Bn(u,t,i),e!==null&&(Pt(e,u,i,o),di(e,u,i)),i}function Ki(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 j0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Oc(e,t){j0(e,t),(e=e.alternate)&&j0(e,t)}function ov(){return null}var c1=typeof reportError=="function"?reportError:function(e){console.error(e)};function $c(e){this._internalRoot=e}yl.prototype.render=$c.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));vl(e,t,null,null)};yl.prototype.unmount=$c.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pr(function(){vl(null,e,null,null)}),t[hn]=null}};function yl(e){this._internalRoot=e}yl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fn.length&&t!==0&&t<Fn[n].priority;n++);Fn.splice(n,0,e),n===0&&Hp(e)}};function Bc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function F0(){}function iv(e,t,n,r,u){if(u){if(typeof r=="function"){var o=r;r=function(){var a=Ki(i);o.call(a)}}var i=a1(t,r,e,0,null,!1,!1,"",F0);return e._reactRootContainer=i,e[hn]=i.current,oo(e.nodeType===8?e.parentNode:e),pr(),i}for(;u=e.lastChild;)e.removeChild(u);if(typeof r=="function"){var l=r;r=function(){var a=Ki(s);l.call(a)}}var s=Ic(e,0,!1,null,null,!1,!1,"",F0);return e._reactRootContainer=s,e[hn]=s.current,oo(e.nodeType===8?e.parentNode:e),pr(function(){vl(t,s,n,r)}),s}function wl(e,t,n,r,u){var o=n._reactRootContainer;if(o){var i=o;if(typeof u=="function"){var l=u;u=function(){var s=Ki(i);l.call(s)}}vl(t,i,e,u)}else i=iv(n,t,e,u,r);return Ki(i)}Op=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ou(t.pendingLanes);n!==0&&(ic(t,n|1),tt(t,we()),!(te&6)&&(tu=we()+500,Xn()))}break;case 13:pr(function(){var r=mn(e,1);if(r!==null){var u=qe();Pt(r,e,1,u)}}),Oc(e,1)}};lc=function(e){if(e.tag===13){var t=mn(e,134217728);if(t!==null){var n=qe();Pt(t,e,134217728,n)}Oc(e,134217728)}};$p=function(e){if(e.tag===13){var t=Hn(e),n=mn(e,t);if(n!==null){var r=qe();Pt(n,e,t,r)}Oc(e,t)}};Bp=function(){return oe};Up=function(e,t){var n=oe;try{return oe=e,t()}finally{oe=n}};Gs=function(e,t,n){switch(t){case"input":if(Bs(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var u=dl(r);if(!u)throw Error(R(90));yp(r),Bs(r,u)}}}break;case"textarea":wp(e,n);break;case"select":t=n.value,t!=null&&Or(e,!!n.multiple,t,!1)}};Np=Pc;Dp=pr;var lv={usingClientEntryPoint:!1,Events:[_o,zr,dl,Sp,Ap,Pc]},zu={findFiberByHostInstance:ur,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},sv={bundleType:zu.bundleType,version:zu.version,rendererPackageName:zu.rendererPackageName,rendererConfig:zu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:bn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=zp(e),e===null?null:e.stateNode},findFiberByHostInstance:zu.findFiberByHostInstance||ov,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 Qo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qo.isDisabled&&Qo.supportsFiber)try{ll=Qo.inject(sv),Jt=Qo}catch{}}pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lv;pt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bc(t))throw Error(R(200));return uv(e,t,null,n)};pt.createRoot=function(e,t){if(!Bc(e))throw Error(R(299));var n=!1,r="",u=c1;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=Ic(e,1,!1,null,null,n,!1,r,u),e[hn]=t.current,oo(e.nodeType===8?e.parentNode:e),new $c(t)};pt.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(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=zp(t),e=e===null?null:e.stateNode,e};pt.flushSync=function(e){return pr(e)};pt.hydrate=function(e,t,n){if(!bl(t))throw Error(R(200));return wl(null,e,t,!0,n)};pt.hydrateRoot=function(e,t,n){if(!Bc(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,u=!1,o="",i=c1;if(n!=null&&(n.unstable_strictMode===!0&&(u=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=a1(t,null,e,1,n??null,u,!1,o,i),e[hn]=t.current,oo(e),r)for(e=0;e<r.length;e++)n=r[e],u=n._getVersion,u=u(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,u]:t.mutableSourceEagerHydrationData.push(n,u);return new yl(t)};pt.render=function(e,t,n){if(!bl(t))throw Error(R(200));return wl(null,e,t,!1,n)};pt.unmountComponentAtNode=function(e){if(!bl(e))throw Error(R(40));return e._reactRootContainer?(pr(function(){wl(null,null,e,!1,function(){e._reactRootContainer=null,e[hn]=null})}),!0):!1};pt.unstable_batchedUpdates=Pc;pt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!bl(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return wl(e,t,n,!1,r)};pt.version="18.3.1-next-f1338f8080-20240426";function d1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d1)}catch(e){console.error(e)}}d1(),dp.exports=pt;var su=dp.exports;const av=Xf(su);var z0=su;Ps.createRoot=z0.createRoot,Ps.hydrateRoot=z0.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 R0="popstate";function P0(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function cv(e={}){function t(r,u){var a;let o=(a=u.state)==null?void 0:a.masked,{pathname:i,search:l,hash:s}=o||r.location;return Aa("",{pathname:i,search:l,hash:s},u.state&&u.state.usr||null,u.state&&u.state.key||"default",o?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,u){return typeof u=="string"?u:mo(u)}return fv(t,n,null,e)}function pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Lt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function dv(){return Math.random().toString(36).substring(2,10)}function T0(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 Aa(e,t,n=null,r,u){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?au(t):t,state:n,key:t&&t.key||r||dv(),mask:u}}function mo({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 au(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function fv(e,t,n,r={}){let{window:u=document.defaultView,v5Compat:o=!1}=r,i=u.history,l="POP",s=null,a=d();a==null&&(a=0,i.replaceState({...i.state,idx:a},""));function d(){return(i.state||{idx:null}).idx}function p(){l="POP";let C=d(),x=C==null?null:C-a;a=C,s&&s({action:l,location:b.location,delta:x})}function m(C,x){l="PUSH";let f=P0(C)?C:Aa(b.location,C,x);a=d()+1;let h=T0(f,a),w=b.createHref(f.mask||f);try{i.pushState(h,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;u.location.assign(w)}o&&s&&s({action:l,location:b.location,delta:1})}function y(C,x){l="REPLACE";let f=P0(C)?C:Aa(b.location,C,x);a=d();let h=T0(f,a),w=b.createHref(f.mask||f);i.replaceState(h,"",w),o&&s&&s({action:l,location:b.location,delta:0})}function v(C){return pv(C)}let b={get action(){return l},get location(){return e(u,i)},listen(C){if(s)throw new Error("A history only accepts one active listener");return u.addEventListener(R0,p),s=C,()=>{u.removeEventListener(R0,p),s=null}},createHref(C){return t(u,C)},createURL:v,encodeLocation(C){let x=v(C);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:m,replace:y,go(C){return i.go(C)}};return b}function pv(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),pe(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:mo(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function f1(e,t,n="/"){return hv(e,t,n,!1)}function hv(e,t,n,r,u){let o=typeof t=="string"?au(t):t,i=xn(o.pathname||"/",n);if(i==null)return null;let l=mv(e),s=null,a=Av(i);for(let d=0;s==null&&d<l.length;++d)s=Ev(l[d],a,r);return s}function mv(e){let t=p1(e);return gv(t),t}function p1(e,t=[],n=[],r="",u=!1){let o=(i,l,s=u,a)=>{let d={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&s)return;pe(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let p=Tt([r,d.relativePath]),m=n.concat(d);i.children&&i.children.length>0&&(pe(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),p1(i.children,t,m,p,s)),!(i.path==null&&!i.index)&&t.push({path:p,score:Cv(p,i.index),routesMeta:m})};return e.forEach((i,l)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,l);else for(let a of h1(i.path))o(i,l,!0,a)}),t}function h1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,u=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return u?[o,""]:[o];let i=h1(r.join("/")),l=[];return l.push(...i.map(s=>s===""?o:[o,s].join("/"))),u&&l.push(...i),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function gv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:_v(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var xv=/^:[\w-]+$/,vv=3,yv=2,bv=1,wv=10,kv=-2,M0=e=>e==="*";function Cv(e,t){let n=e.split("/"),r=n.length;return n.some(M0)&&(r+=kv),t&&(r+=yv),n.filter(u=>!M0(u)).reduce((u,o)=>u+(xv.test(o)?vv:o===""?bv:wv),r)}function _v(e,t){return e.length===t.length&&e.slice(0,-1).every((r,u)=>r===t[u])?e[e.length-1]-t[t.length-1]:0}function Ev(e,t,n=!1){let{routesMeta:r}=e,u={},o="/",i=[];for(let l=0;l<r.length;++l){let s=r[l],a=l===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",p=Gi({path:s.relativePath,caseSensitive:s.caseSensitive,end:a},d),m=s.route;if(!p&&a&&n&&!r[r.length-1].route.index&&(p=Gi({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!p)return null;Object.assign(u,p.params),i.push({params:u,pathname:Tt([o,p.pathname]),pathnameBase:Fv(Tt([o,p.pathnameBase])),route:m}),p.pathnameBase!=="/"&&(o=Tt([o,p.pathnameBase]))}return i}function Gi(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Sv(e.path,e.caseSensitive,e.end),u=t.match(n);if(!u)return null;let o=u[0],i=o.replace(/(.)\/+$/,"$1"),l=u.slice(1);return{params:r.reduce((a,{paramName:d,isOptional:p},m)=>{if(d==="*"){let v=l[m]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const y=l[m];return p&&!y?a[d]=void 0:a[d]=(y||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function Sv(e,t=!1,n=!0){Lt(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 r=[],u="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,s,a,d)=>{if(r.push({paramName:l,isOptional:s!=null}),s){let p=d.charAt(a+i.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),u+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?u+="\\/*$":e!==""&&e!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,t?void 0:"i"),r]}function Av(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Lt(!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 xn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Nv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Dv(e,t="/"){let{pathname:n,search:r="",hash:u=""}=typeof e=="string"?au(e):e,o;return n?(n=m1(n),n.startsWith("/")?o=L0(n.substring(1),"/"):o=L0(n,t)):o=t,{pathname:o,search:zv(r),hash:Rv(u)}}function L0(e,t){let n=Zi(t).split("/");return e.split("/").forEach(u=>{u===".."?n.length>1&&n.pop():u!=="."&&n.push(u)}),n.length>1?n.join("/"):"/"}function cs(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. 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 jv(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Uc(e){let t=jv(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function kl(e,t,n,r=!1){let u;typeof e=="string"?u=au(e):(u={...e},pe(!u.pathname||!u.pathname.includes("?"),cs("?","pathname","search",u)),pe(!u.pathname||!u.pathname.includes("#"),cs("#","pathname","hash",u)),pe(!u.search||!u.search.includes("#"),cs("#","search","hash",u)));let o=e===""||u.pathname==="",i=o?"/":u.pathname,l;if(i==null)l=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;u.pathname=m.join("/")}l=p>=0?t[p]:"/"}let s=Dv(u,l),a=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(a||d)&&(s.pathname+="/"),s}var m1=e=>e.replace(/\/\/+/g,"/"),Tt=e=>m1(e.join("/")),Zi=e=>e.replace(/\/+$/,""),Fv=e=>Zi(e).replace(/^\/*/,"/"),zv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Rv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Pv=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Tv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Mv(e){let t=e.map(n=>n.route.path).filter(Boolean);return Tt(t)||"/"}var g1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function x1(e,t){let n=e;if(typeof n!="string"||!Nv.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,u=!1;if(g1)try{let o=new URL(window.location.href),i=n.startsWith("//")?new URL(o.protocol+n):new URL(n),l=xn(i.pathname,t);i.origin===o.origin&&l!=null?n=l+i.search+i.hash:u=!0}catch{Lt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:u,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var v1=["POST","PUT","PATCH","DELETE"];new Set(v1);var Lv=["GET",...v1];new Set(Lv);var cu=g.createContext(null);cu.displayName="DataRouter";var Cl=g.createContext(null);Cl.displayName="DataRouterState";var y1=g.createContext(!1);function Iv(){return g.useContext(y1)}var b1=g.createContext({isTransitioning:!1});b1.displayName="ViewTransition";var Ov=g.createContext(new Map);Ov.displayName="Fetchers";var $v=g.createContext(null);$v.displayName="Await";var mt=g.createContext(null);mt.displayName="Navigation";var So=g.createContext(null);So.displayName="Location";var Bt=g.createContext({outlet:null,matches:[],isDataRoute:!1});Bt.displayName="Route";var Hc=g.createContext(null);Hc.displayName="RouteError";var w1="REACT_ROUTER_ERROR",Bv="REDIRECT",Uv="ROUTE_ERROR_RESPONSE";function Hv(e){if(e.startsWith(`${w1}:${Bv}:{`))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 Vv(e){if(e.startsWith(`${w1}:${Uv}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Pv(t.status,t.statusText,t.data)}catch{}}function Wv(e,{relative:t}={}){pe(du(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=g.useContext(mt),{hash:u,pathname:o,search:i}=Ao(e,{relative:t}),l=o;return n!=="/"&&(l=o==="/"?n:Tt([n,o])),r.createHref({pathname:l,search:i,hash:u})}function du(){return g.useContext(So)!=null}function Et(){return pe(du(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(So).location}var k1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function C1(e){g.useContext(mt).static||g.useLayoutEffect(e)}function fu(){let{isDataRoute:e}=g.useContext(Bt);return e?uy():qv()}function qv(){pe(du(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(cu),{basename:t,navigator:n}=g.useContext(mt),{matches:r}=g.useContext(Bt),{pathname:u}=Et(),o=JSON.stringify(Uc(r)),i=g.useRef(!1);return C1(()=>{i.current=!0}),g.useCallback((s,a={})=>{if(Lt(i.current,k1),!i.current)return;if(typeof s=="number"){n.go(s);return}let d=kl(s,JSON.parse(o),u,a.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Tt([t,d.pathname])),(a.replace?n.replace:n.push)(d,a.state,a)},[t,n,o,u,e])}g.createContext(null);function _1(){let{matches:e}=g.useContext(Bt),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function Ao(e,{relative:t}={}){let{matches:n}=g.useContext(Bt),{pathname:r}=Et(),u=JSON.stringify(Uc(n));return g.useMemo(()=>kl(e,JSON.parse(u),r,t==="path"),[e,u,r,t])}function Kv(e,t){return E1(e,t)}function E1(e,t,n){var C;pe(du(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=g.useContext(mt),{matches:u}=g.useContext(Bt),o=u[u.length-1],i=o?o.params:{},l=o?o.pathname:"/",s=o?o.pathnameBase:"/",a=o&&o.route;{let x=a&&a.path||"";A1(l,!a||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${x}">) 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="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let d=Et(),p;if(t){let x=typeof t=="string"?au(t):t;pe(s==="/"||((C=x.pathname)==null?void 0:C.startsWith(s)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${x.pathname}" was given in the \`location\` prop.`),p=x}else p=d;let m=p.pathname||"/",y=m;if(s!=="/"){let x=s.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=n&&n.state.matches.length?n.state.matches.map(x=>Object.assign(x,{route:n.manifest[x.route.id]||x.route})):f1(e,{pathname:y});Lt(a||v!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Lt(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=Xv(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},i,x.params),pathname:Tt([s,r.encodeLocation?r.encodeLocation(x.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?s:Tt([s,r.encodeLocation?r.encodeLocation(x.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),u,n);return t&&b?g.createElement(So.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},b):b}function Gv(){let e=ry(),t=Tv(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:o},"ErrorBoundary")," or"," ",g.createElement("code",{style:o},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:u},n):null,i)}var Zv=g.createElement(Gv,null),S1=class extends g.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=Vv(e.digest);n&&(e=n)}let t=e!==void 0?g.createElement(Bt.Provider,{value:this.props.routeContext},g.createElement(Hc.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(Qv,{error:e},t):t}};S1.contextType=y1;var ds=new WeakMap;function Qv({children:e,error:t}){let{basename:n}=g.useContext(mt);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Hv(t.digest);if(r){let u=ds.get(t);if(u)throw u;let o=x1(r.location,n);if(g1&&!ds.get(t))if(o.isExternal||r.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw ds.set(t,i),i}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Yv({routeContext:e,match:t,children:n}){let r=g.useContext(cu);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(Bt.Provider,{value:e},n)}function Xv(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let u=e,o=r==null?void 0:r.errors;if(o!=null){let d=u.findIndex(p=>p.route.id&&(o==null?void 0:o[p.route.id])!==void 0);pe(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),u=u.slice(0,Math.min(u.length,d+1))}let i=!1,l=-1;if(n&&r){i=r.renderFallback;for(let d=0;d<u.length;d++){let p=u[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(l=d),p.route.id){let{loaderData:m,errors:y}=r,v=p.route.loader&&!m.hasOwnProperty(p.route.id)&&(!y||y[p.route.id]===void 0);if(p.route.lazy||v){n.isStatic&&(i=!0),l>=0?u=u.slice(0,l+1):u=[u[0]];break}}}}let s=n==null?void 0:n.onError,a=r&&s?(d,p)=>{var m,y;s(d,{location:r.location,params:((y=(m=r.matches)==null?void 0:m[0])==null?void 0:y.params)??{},pattern:Mv(r.matches),errorInfo:p})}:void 0;return u.reduceRight((d,p,m)=>{let y,v=!1,b=null,C=null;r&&(y=o&&p.route.id?o[p.route.id]:void 0,b=p.route.errorElement||Zv,i&&(l<0&&m===0?(A1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,C=null):l===m&&(v=!0,C=p.route.hydrateFallbackElement||null)));let x=t.concat(u.slice(0,m+1)),f=()=>{let h;return y?h=b:v?h=C:p.route.Component?h=g.createElement(p.route.Component,null):p.route.element?h=p.route.element:h=d,g.createElement(Yv,{match:p,routeContext:{outlet:d,matches:x,isDataRoute:r!=null},children:h})};return r&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?g.createElement(S1,{location:r.location,revalidation:r.revalidation,component:b,error:y,children:f(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:a}):f()},null)}function Vc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jv(e){let t=g.useContext(cu);return pe(t,Vc(e)),t}function ey(e){let t=g.useContext(Cl);return pe(t,Vc(e)),t}function ty(e){let t=g.useContext(Bt);return pe(t,Vc(e)),t}function Wc(e){let t=ty(e),n=t.matches[t.matches.length-1];return pe(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function ny(){return Wc("useRouteId")}function ry(){var r;let e=g.useContext(Hc),t=ey("useRouteError"),n=Wc("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function uy(){let{router:e}=Jv("useNavigate"),t=Wc("useNavigate"),n=g.useRef(!1);return C1(()=>{n.current=!0}),g.useCallback(async(u,o={})=>{Lt(n.current,k1),n.current&&(typeof u=="number"?await e.navigate(u):await e.navigate(u,{fromRouteId:t,...o}))},[e,t])}var I0={};function A1(e,t,n){!t&&!I0[e]&&(I0[e]=!0,Lt(!1,n))}g.memo(oy);function oy({routes:e,manifest:t,future:n,state:r,isStatic:u,onError:o}){return E1(e,void 0,{manifest:t,state:r,isStatic:u,onError:o})}function iy({to:e,replace:t,state:n,relative:r}){pe(du(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=g.useContext(mt);Lt(!u,"<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}=g.useContext(Bt),{pathname:i}=Et(),l=fu(),s=kl(e,Uc(o),i,r==="path"),a=JSON.stringify(s);return g.useEffect(()=>{l(JSON.parse(a),{replace:t,state:n,relative:r})},[l,a,r,t,n]),null}function Sn(e){pe(!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 ly({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:u,static:o=!1,useTransitions:i}){pe(!du(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),s=g.useMemo(()=>({basename:l,navigator:u,static:o,useTransitions:i,future:{}}),[l,u,o,i]);typeof n=="string"&&(n=au(n));let{pathname:a="/",search:d="",hash:p="",state:m=null,key:y="default",mask:v}=n,b=g.useMemo(()=>{let C=xn(a,l);return C==null?null:{location:{pathname:C,search:d,hash:p,state:m,key:y,mask:v},navigationType:r}},[l,a,d,p,m,y,r,v]);return Lt(b!=null,`<Router basename="${l}"> is not able to match the URL "${a}${d}${p}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:g.createElement(mt.Provider,{value:s},g.createElement(So.Provider,{children:t,value:b}))}function sy({children:e,location:t}){return Kv(Na(e),t)}function Na(e,t=[]){let n=[];return g.Children.forEach(e,(r,u)=>{if(!g.isValidElement(r))return;let o=[...t,u];if(r.type===g.Fragment){n.push.apply(n,Na(r.props.children,o));return}pe(r.type===Sn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),pe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Na(r.props.children,o)),n.push(i)}),n}var vi="get",yi="application/x-www-form-urlencoded";function _l(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function ay(e){return _l(e)&&e.tagName.toLowerCase()==="button"}function cy(e){return _l(e)&&e.tagName.toLowerCase()==="form"}function dy(e){return _l(e)&&e.tagName.toLowerCase()==="input"}function fy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function py(e,t){return e.button===0&&(!t||t==="_self")&&!fy(e)}var Yo=null;function hy(){if(Yo===null)try{new FormData(document.createElement("form"),0),Yo=!1}catch{Yo=!0}return Yo}var my=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function fs(e){return e!=null&&!my.has(e)?(Lt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yi}"`),null):e}function gy(e,t){let n,r,u,o,i;if(cy(e)){let l=e.getAttribute("action");r=l?xn(l,t):null,n=e.getAttribute("method")||vi,u=fs(e.getAttribute("enctype"))||yi,o=new FormData(e)}else if(ay(e)||dy(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 s=e.getAttribute("formaction")||l.getAttribute("action");if(r=s?xn(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||vi,u=fs(e.getAttribute("formenctype"))||fs(l.getAttribute("enctype"))||yi,o=new FormData(l,e),!hy()){let{name:a,type:d,value:p}=e;if(d==="image"){let m=a?`${a}.`:"";o.append(`${m}x`,"0"),o.append(`${m}y`,"0")}else a&&o.append(a,p)}}else{if(_l(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=vi,r=null,u=yi,i=e}return o&&u==="text/plain"&&(i=o,o=void 0),{action:r,method:n.toLowerCase(),encType:u,formData:o,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qc(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function N1(e,t,n,r){let u=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${r}`:u.pathname=`${u.pathname}.${r}`:u.pathname==="/"?u.pathname=`_root.${r}`:t&&xn(u.pathname,t)==="/"?u.pathname=`${Zi(t)}/_root.${r}`:u.pathname=`${Zi(u.pathname)}.${r}`,u}async function xy(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 vy(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 yy(e,t,n){let r=await Promise.all(e.map(async u=>{let o=t.routes[u.route.id];if(o){let i=await xy(o,n);return i.links?i.links():[]}return[]}));return Cy(r.flat(1).filter(vy).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function O0(e,t,n,r,u,o){let i=(s,a)=>n[a]?s.route.id!==n[a].route.id:!0,l=(s,a)=>{var d;return n[a].pathname!==s.pathname||((d=n[a].route.path)==null?void 0:d.endsWith("*"))&&n[a].params["*"]!==s.params["*"]};return o==="assets"?t.filter((s,a)=>i(s,a)||l(s,a)):o==="data"?t.filter((s,a)=>{var p;let d=r.routes[s.route.id];if(!d||!d.hasLoader)return!1;if(i(s,a)||l(s,a))return!0;if(s.route.shouldRevalidate){let m=s.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function by(e,t,{includeHydrateFallback:n}={}){return wy(e.map(r=>{let u=t.routes[r.route.id];if(!u)return[];let o=[u.module];return u.clientActionModule&&(o=o.concat(u.clientActionModule)),u.clientLoaderModule&&(o=o.concat(u.clientLoaderModule)),n&&u.hydrateFallbackModule&&(o=o.concat(u.hydrateFallbackModule)),u.imports&&(o=o.concat(u.imports)),o}).flat(1))}function wy(e){return[...new Set(e)]}function ky(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Cy(e,t){let n=new Set;return new Set(t),e.reduce((r,u)=>{let o=JSON.stringify(ky(u));return n.has(o)||(n.add(o),r.push({key:o,link:u})),r},[])}function Kc(){let e=g.useContext(cu);return qc(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function _y(){let e=g.useContext(Cl);return qc(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Gc=g.createContext(void 0);Gc.displayName="FrameworkContext";function Zc(){let e=g.useContext(Gc);return qc(e,"You must render this element inside a <HydratedRouter> element"),e}function Ey(e,t){let n=g.useContext(Gc),[r,u]=g.useState(!1),[o,i]=g.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:a,onMouseLeave:d,onTouchStart:p}=t,m=g.useRef(null);g.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let b=x=>{x.forEach(f=>{i(f.isIntersecting)})},C=new IntersectionObserver(b,{threshold:.5});return m.current&&C.observe(m.current),()=>{C.disconnect()}}},[e]),g.useEffect(()=>{if(r){let b=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(b)}}},[r]);let y=()=>{u(!0)},v=()=>{u(!1),i(!1)};return n?e!=="intent"?[o,m,{}]:[o,m,{onFocus:Ru(l,y),onBlur:Ru(s,v),onMouseEnter:Ru(a,y),onMouseLeave:Ru(d,v),onTouchStart:Ru(p,y)}]:[!1,m,{}]}function Ru(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Sy({page:e,...t}){let n=Iv(),{router:r}=Kc(),u=g.useMemo(()=>f1(r.routes,e,r.basename),[r.routes,e,r.basename]);return u?n?g.createElement(Ny,{page:e,matches:u,...t}):g.createElement(Dy,{page:e,matches:u,...t}):null}function Ay(e){let{manifest:t,routeModules:n}=Zc(),[r,u]=g.useState([]);return g.useEffect(()=>{let o=!1;return yy(e,t,n).then(i=>{o||u(i)}),()=>{o=!0}},[e,t,n]),r}function Ny({page:e,matches:t,...n}){let r=Et(),{future:u}=Zc(),{basename:o}=Kc(),i=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let l=N1(e,o,u.unstable_trailingSlashAwareDataRequests,"rsc"),s=!1,a=[];for(let d of t)typeof d.route.shouldRevalidate=="function"?s=!0:a.push(d.route.id);return s&&a.length>0&&l.searchParams.set("_routes",a.join(",")),[l.pathname+l.search]},[o,u.unstable_trailingSlashAwareDataRequests,e,r,t]);return g.createElement(g.Fragment,null,i.map(l=>g.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...n})))}function Dy({page:e,matches:t,...n}){let r=Et(),{future:u,manifest:o,routeModules:i}=Zc(),{basename:l}=Kc(),{loaderData:s,matches:a}=_y(),d=g.useMemo(()=>O0(e,t,a,o,r,"data"),[e,t,a,o,r]),p=g.useMemo(()=>O0(e,t,a,o,r,"assets"),[e,t,a,o,r]),m=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,C=!1;if(t.forEach(f=>{var w;let h=o.routes[f.route.id];!h||!h.hasLoader||(!d.some(k=>k.route.id===f.route.id)&&f.route.id in s&&((w=i[f.route.id])!=null&&w.shouldRevalidate)||h.hasClientLoader?C=!0:b.add(f.route.id))}),b.size===0)return[];let x=N1(e,l,u.unstable_trailingSlashAwareDataRequests,"data");return C&&b.size>0&&x.searchParams.set("_routes",t.filter(f=>b.has(f.route.id)).map(f=>f.route.id).join(",")),[x.pathname+x.search]},[l,u.unstable_trailingSlashAwareDataRequests,s,r,o,d,t,e,i]),y=g.useMemo(()=>by(p,o),[p,o]),v=Ay(p);return g.createElement(g.Fragment,null,m.map(b=>g.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),y.map(b=>g.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),v.map(({key:b,link:C})=>g.createElement("link",{key:b,nonce:n.nonce,...C,crossOrigin:C.crossOrigin??n.crossOrigin})))}function jy(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Fy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Fy&&(window.__reactRouterVersion="7.15.0")}catch{}function zy({basename:e,children:t,useTransitions:n,window:r}){let u=g.useRef();u.current==null&&(u.current=cv({window:r,v5Compat:!0}));let o=u.current,[i,l]=g.useState({action:o.action,location:o.location}),s=g.useCallback(a=>{n===!1?l(a):g.startTransition(()=>l(a))},[n]);return g.useLayoutEffect(()=>o.listen(s),[o,s]),g.createElement(ly,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o,useTransitions:n})}var D1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,j1=g.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:u,reloadDocument:o,replace:i,mask:l,state:s,target:a,to:d,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:y,...v},b){let{basename:C,navigator:x,useTransitions:f}=g.useContext(mt),h=typeof d=="string"&&D1.test(d),w=x1(d,C);d=w.to;let k=Wv(d,{relative:u}),_=Et(),S=null;if(l){let I=kl(l,[],_.mask?_.mask.pathname:"/",!0);C!=="/"&&(I.pathname=I.pathname==="/"?C:Tt([C,I.pathname])),S=x.createHref(I)}let[E,A,D]=Ey(r,v),z=Ty(d,{replace:i,mask:l,state:s,target:a,preventScrollReset:p,relative:u,viewTransition:m,defaultShouldRevalidate:y,useTransitions:f});function M(I){t&&t(I),I.defaultPrevented||z(I)}let U=!(w.isExternal||o),T=g.createElement("a",{...v,...D,href:(U?S:void 0)||w.absoluteURL||k,onClick:U?M:t,ref:jy(b,A),target:a,"data-discover":!h&&n==="render"?"true":void 0});return E&&!h?g.createElement(g.Fragment,null,T,g.createElement(Sy,{page:k})):T});j1.displayName="Link";var F1=g.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:u=!1,style:o,to:i,viewTransition:l,children:s,...a},d){let p=Ao(i,{relative:a.relative}),m=Et(),y=g.useContext(Cl),{navigator:v,basename:b}=g.useContext(mt),C=y!=null&&$y(p)&&l===!0,x=v.encodeLocation?v.encodeLocation(p).pathname:p.pathname,f=m.pathname,h=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(f=f.toLowerCase(),h=h?h.toLowerCase():null,x=x.toLowerCase()),h&&b&&(h=xn(h,b)||h);const w=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let k=f===x||!u&&f.startsWith(x)&&f.charAt(w)==="/",_=h!=null&&(h===x||!u&&h.startsWith(x)&&h.charAt(x.length)==="/"),S={isActive:k,isPending:_,isTransitioning:C},E=k?t:void 0,A;typeof r=="function"?A=r(S):A=[r,k?"active":null,_?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let D=typeof o=="function"?o(S):o;return g.createElement(j1,{...a,"aria-current":E,className:A,ref:d,style:D,to:i,viewTransition:l},typeof s=="function"?s(S):s)});F1.displayName="NavLink";var Ry=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:u,state:o,method:i=vi,action:l,onSubmit:s,relative:a,preventScrollReset:d,viewTransition:p,defaultShouldRevalidate:m,...y},v)=>{let{useTransitions:b}=g.useContext(mt),C=Iy(),x=Oy(l,{relative:a}),f=i.toLowerCase()==="get"?"get":"post",h=typeof l=="string"&&D1.test(l),w=k=>{if(s&&s(k),k.defaultPrevented)return;k.preventDefault();let _=k.nativeEvent.submitter,S=(_==null?void 0:_.getAttribute("formmethod"))||i,E=()=>C(_||k.currentTarget,{fetcherKey:t,method:S,navigate:n,replace:u,state:o,relative:a,preventScrollReset:d,viewTransition:p,defaultShouldRevalidate:m});b&&n!==!1?g.startTransition(()=>E()):E()};return g.createElement("form",{ref:v,method:f,action:x,onSubmit:r?s:w,...y,"data-discover":!h&&e==="render"?"true":void 0})});Ry.displayName="Form";function Py(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function z1(e){let t=g.useContext(cu);return pe(t,Py(e)),t}function Ty(e,{target:t,replace:n,mask:r,state:u,preventScrollReset:o,relative:i,viewTransition:l,defaultShouldRevalidate:s,useTransitions:a}={}){let d=fu(),p=Et(),m=Ao(e,{relative:i});return g.useCallback(y=>{if(py(y,t)){y.preventDefault();let v=n!==void 0?n:mo(p)===mo(m),b=()=>d(e,{replace:v,mask:r,state:u,preventScrollReset:o,relative:i,viewTransition:l,defaultShouldRevalidate:s});a?g.startTransition(()=>b()):b()}},[p,d,m,n,r,u,t,e,o,i,l,s,a])}var My=0,Ly=()=>`__${String(++My)}__`;function Iy(){let{router:e}=z1("useSubmit"),{basename:t}=g.useContext(mt),n=ny(),r=e.fetch,u=e.navigate;return g.useCallback(async(o,i={})=>{let{action:l,method:s,encType:a,formData:d,body:p}=gy(o,t);if(i.navigate===!1){let m=i.fetcherKey||Ly();await r(m,n,i.action||l,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||s,formEncType:i.encType||a,flushSync:i.flushSync})}else await u(i.action||l,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||s,formEncType:i.encType||a,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,u,t,n])}function Oy(e,{relative:t}={}){let{basename:n}=g.useContext(mt),r=g.useContext(Bt);pe(r,"useFormAction must be used inside a RouteContext");let[u]=r.matches.slice(-1),o={...Ao(e||".",{relative:t})},i=Et();if(e==null){o.search=i.search;let l=new URLSearchParams(o.search),s=l.getAll("index");if(s.some(d=>d==="")){l.delete("index"),s.filter(p=>p).forEach(p=>l.append("index",p));let d=l.toString();o.search=d?`?${d}`:""}}return(!e||e===".")&&u.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Tt([n,o.pathname])),mo(o)}function $y(e,{relative:t}={}){let n=g.useContext(b1);pe(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=z1("useViewTransitionState"),u=Ao(e,{relative:t});if(!n.isTransitioning)return!1;let o=xn(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=xn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Gi(u.pathname,i)!=null||Gi(u.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 By=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),R1=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.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 Uy={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 Hy=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:u="",children:o,iconNode:i,...l},s)=>g.createElement("svg",{ref:s,...Uy,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:R1("lucide",u),...l},[...i.map(([a,d])=>g.createElement(a,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 Z=(e,t)=>{const n=g.forwardRef(({className:r,...u},o)=>g.createElement(Hy,{ref:o,iconNode:t,className:R1(`lucide-${By(e)}`,r),...u}));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 Vy=Z("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 Wy=Z("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 qy=Z("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 Ky=Z("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 $0=Z("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 ps=Z("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 P1=Z("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 T1=Z("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 M1=Z("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 Qc=Z("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 Gy=Z("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 Zy=Z("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 Qy=Z("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 Yy=Z("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 Xy=Z("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 Da=Z("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 ja=Z("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 hr=Z("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 Jy=Z("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 Fa=Z("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 Qi=Z("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 eb=Z("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
* @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 B0=Z("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 L1=Z("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 U0=Z("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 tb=Z("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 Yc=Z("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 nb=Z("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 za=Z("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 rb=Z("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 ub=Z("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
* @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 H0=Z("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 ob=Z("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 No=Z("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 ib=Z("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 lb=Z("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 sb=Z("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 pu=Z("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function I1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(t=0;t<u;t++)e[t]&&(n=I1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function O1(){for(var e,t,n=0,r="",u=arguments.length;n<u;n++)(e=arguments[n])&&(t=I1(e))&&(r&&(r+=" "),r+=t);return r}const Xc="-",ab=e=>{const t=db(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const l=i.split(Xc);return l[0]===""&&l.length!==1&&l.shift(),$1(l,t)||cb(i)},getConflictingClassGroupIds:(i,l)=>{const s=n[i]||[];return l&&r[i]?[...s,...r[i]]:s}}},$1=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),u=r?$1(e.slice(1),r):void 0;if(u)return u;if(t.validators.length===0)return;const o=e.join(Xc);return(i=t.validators.find(({validator:l})=>l(o)))==null?void 0:i.classGroupId},V0=/^\[(.+)\]$/,cb=e=>{if(V0.test(e)){const t=V0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},db=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return pb(Object.entries(e.classGroups),n).forEach(([o,i])=>{Ra(i,r,o,t)}),r},Ra=(e,t,n,r)=>{e.forEach(u=>{if(typeof u=="string"){const o=u===""?t:W0(t,u);o.classGroupId=n;return}if(typeof u=="function"){if(fb(u)){Ra(u(r),t,n,r);return}t.validators.push({validator:u,classGroupId:n});return}Object.entries(u).forEach(([o,i])=>{Ra(i,W0(t,o),n,r)})})},W0=(e,t)=>{let n=e;return t.split(Xc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},fb=e=>e.isThemeGetter,pb=(e,t)=>t?e.map(([n,r])=>{const u=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[n,u]}):e,hb=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const u=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return u(o,i),i},set(o,i){n.has(o)?n.set(o,i):u(o,i)}}},B1="!",mb=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,u=t[0],o=t.length,i=l=>{const s=[];let a=0,d=0,p;for(let C=0;C<l.length;C++){let x=l[C];if(a===0){if(x===u&&(r||l.slice(C,C+o)===t)){s.push(l.slice(d,C)),d=C+o;continue}if(x==="/"){p=C;continue}}x==="["?a++:x==="]"&&a--}const m=s.length===0?l:l.substring(d),y=m.startsWith(B1),v=y?m.substring(1):m,b=p&&p>d?p-d:void 0;return{modifiers:s,hasImportantModifier:y,baseClassName:v,maybePostfixModifierPosition:b}};return n?l=>n({className:l,parseClassName:i}):i},gb=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},xb=e=>({cache:hb(e.cacheSize),parseClassName:mb(e),...ab(e)}),vb=/\s+/,yb=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:u}=t,o=[],i=e.trim().split(vb);let l="";for(let s=i.length-1;s>=0;s-=1){const a=i[s],{modifiers:d,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:y}=n(a);let v=!!y,b=r(v?m.substring(0,y):m);if(!b){if(!v){l=a+(l.length>0?" "+l:l);continue}if(b=r(m),!b){l=a+(l.length>0?" "+l:l);continue}v=!1}const C=gb(d).join(":"),x=p?C+B1:C,f=x+b;if(o.includes(f))continue;o.push(f);const h=u(b,v);for(let w=0;w<h.length;++w){const k=h[w];o.push(x+k)}l=a+(l.length>0?" "+l:l)}return l};function bb(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=U1(t))&&(r&&(r+=" "),r+=n);return r}const U1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=U1(e[r]))&&(n&&(n+=" "),n+=t);return n};function wb(e,...t){let n,r,u,o=i;function i(s){const a=t.reduce((d,p)=>p(d),e());return n=xb(a),r=n.cache.get,u=n.cache.set,o=l,l(s)}function l(s){const a=r(s);if(a)return a;const d=yb(s,n);return u(s,d),d}return function(){return o(bb.apply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},H1=/^\[(?:([a-z-]+):)?(.+)\]$/i,kb=/^\d+\/\d+$/,Cb=new Set(["px","full","screen"]),_b=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Eb=/\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$/,Sb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ab=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ln=e=>Wr(e)||Cb.has(e)||kb.test(e),_n=e=>hu(e,"length",Mb),Wr=e=>!!e&&!Number.isNaN(Number(e)),hs=e=>hu(e,"number",Wr),Pu=e=>!!e&&Number.isInteger(Number(e)),Db=e=>e.endsWith("%")&&Wr(e.slice(0,-1)),K=e=>H1.test(e),En=e=>_b.test(e),jb=new Set(["length","size","percentage"]),Fb=e=>hu(e,jb,V1),zb=e=>hu(e,"position",V1),Rb=new Set(["image","url"]),Pb=e=>hu(e,Rb,Ib),Tb=e=>hu(e,"",Lb),Tu=()=>!0,hu=(e,t,n)=>{const r=H1.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Mb=e=>Eb.test(e)&&!Sb.test(e),V1=()=>!1,Lb=e=>Ab.test(e),Ib=e=>Nb.test(e),Ob=()=>{const e=ae("colors"),t=ae("spacing"),n=ae("blur"),r=ae("brightness"),u=ae("borderColor"),o=ae("borderRadius"),i=ae("borderSpacing"),l=ae("borderWidth"),s=ae("contrast"),a=ae("grayscale"),d=ae("hueRotate"),p=ae("invert"),m=ae("gap"),y=ae("gradientColorStops"),v=ae("gradientColorStopPositions"),b=ae("inset"),C=ae("margin"),x=ae("opacity"),f=ae("padding"),h=ae("saturate"),w=ae("scale"),k=ae("sepia"),_=ae("skew"),S=ae("space"),E=ae("translate"),A=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",K,t],M=()=>[K,t],U=()=>["",ln,_n],T=()=>["auto",Wr,K],I=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",K],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[Wr,K];return{cacheSize:500,separator:":",theme:{colors:[Tu],spacing:[ln,_n],blur:["none","",En,K],brightness:L(),borderColor:[e],borderRadius:["none","","full",En,K],borderSpacing:M(),borderWidth:U(),contrast:L(),grayscale:P(),hueRotate:L(),invert:P(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[Db,_n],inset:z(),margin:z(),opacity:L(),padding:M(),saturate:L(),scale:L(),sepia:P(),skew:L(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[En]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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:[...I(),K]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pu,K]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Pu,K]}],"grid-cols":[{"grid-cols":[Tu]}],"col-start-end":[{col:["auto",{span:["full",Pu,K]},K]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[Tu]}],"row-start-end":[{row:["auto",{span:[Pu,K]},K]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",K]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",K]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"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":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,t]}],"min-w":[{"min-w":[K,t,"min","max","fit"]}],"max-w":[{"max-w":[K,t,"none","full","min","max","fit","prose",{screen:[En]},En]}],h:[{h:[K,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,t,"auto","min","max","fit"]}],"font-size":[{text:["base",En,_n]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",hs]}],"font-family":[{font:[Tu]}],"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",K]}],"line-clamp":[{"line-clamp":["none",Wr,hs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ln,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ln,_n]}],"underline-offset":[{"underline-offset":["auto",ln,K]}],"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",K]}],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",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...I(),zb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Fb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Pb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],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":[x]}],"border-style":[{border:[...B(),"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":[x]}],"divide-style":[{divide:B()}],"border-color":[{border:[u]}],"border-color-x":[{"border-x":[u]}],"border-color-y":[{"border-y":[u]}],"border-color-s":[{"border-s":[u]}],"border-color-e":[{"border-e":[u]}],"border-color-t":[{"border-t":[u]}],"border-color-r":[{"border-r":[u]}],"border-color-b":[{"border-b":[u]}],"border-color-l":[{"border-l":[u]}],"divide-color":[{divide:[u]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[ln,K]}],"outline-w":[{outline:[ln,_n]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[ln,_n]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",En,Tb]}],"shadow-color":[{shadow:[Tu]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...$(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",En,K]}],grayscale:[{grayscale:[a]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[h]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[a]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[h]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"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",K]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Pu,K]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],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",K]}],"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",K]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ln,_n,hs]}],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"]}}},$b=wb(Ob);function Xe(...e){return $b(O1(e))}const Bb=[{to:"/chat",icon:Qi,label:"对话"},{to:"/accounts",icon:ja,label:"账户"},{to:"/assets",icon:hr,label:"资产"},{to:"/settings",icon:rb,label:"设置"}];function Ub(){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:Bb.map(({to:e,icon:t,label:n})=>c.jsxs(F1,{to:e,title:n,className:({isActive:r})=>Xe("w-11 h-11 flex flex-col items-center justify-center gap-0.5 rounded-xl transition-all duration-200 text-[10px] font-medium",r?"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 _e=g.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:Xe("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:r,...n}));_e.displayName="Input";const W1=g.forwardRef(({className:e,children:t,...n},r)=>c.jsx("div",{ref:r,className:Xe("overflow-auto",e),...n,children:t}));W1.displayName="ScrollArea";function q1({open:e,title:t,description:n,confirmText:r="确认",cancelText:u="取消",variant:o="default",onConfirm:i,onCancel:l}){const s=g.useRef(null);return g.useEffect(()=>{var d;e&&((d=s.current)==null||d.focus());const a=p=>{p.key==="Escape"&&l()};return e&&document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[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(pu,{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:s,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:u}),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:r})]})]})]}):null}const q0=e=>{let t;const n=new Set,r=(a,d)=>{const p=typeof a=="function"?a(t):a;if(!Object.is(p,t)){const m=t;t=d??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(y=>y(t,m))}},u=()=>t,l={setState:r,getState:u,getInitialState:()=>s,subscribe:a=>(n.add(a),()=>n.delete(a))},s=t=e(r,u,l);return l},Hb=e=>e?q0(e):q0,Vb=e=>e;function Wb(e,t=Vb){const n=it.useSyncExternalStore(e.subscribe,it.useCallback(()=>t(e.getState()),[e,t]),it.useCallback(()=>t(e.getInitialState()),[e,t]));return it.useDebugValue(n),n}const K0=e=>{const t=Hb(e),n=r=>Wb(t,r);return Object.assign(n,t),n},qb=e=>e?K0(e):K0,Pa=qb(e=>({selectedAccountId:null,setSelectedAccountId:t=>e({selectedAccountId:t}),conversations:[],setConversations:t=>e({conversations:t})})),Kb="/api";async function De(e,t){const n=await fetch(`${Kb}${e}`,{headers:{"Content-Type":"application/json"},...t});if(!n.ok)throw new Error(await n.text());if(n.status!==204)return n.json()}const ke={listAccounts:()=>De("/accounts"),getAccount:e=>De(`/accounts/${e}`),createAccount:e=>De("/accounts",{method:"POST",body:JSON.stringify(e)}),updateAccount:(e,t)=>De(`/accounts/${e}`,{method:"PUT",body:JSON.stringify(t)}),deleteAccount:e=>De(`/accounts/${e}`,{method:"DELETE"}),getPrompt:(e,t)=>De(`/prompts/${e}/${t}`),savePrompt:(e,t,n)=>De(`/prompts/${e}/${t}`,{method:"PUT",body:JSON.stringify({content:n})}),listConversations:()=>De("/pipeline/conversations"),getMessages:e=>De(`/pipeline/conversations/${e}/messages`),updateConversation:(e,t)=>De(`/pipeline/conversations/${e}`,{method:"PATCH",body:JSON.stringify(t)}),deleteConversation:e=>De(`/pipeline/conversations/${e}`,{method:"DELETE"}),deleteMessage:e=>De(`/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),De(`/assets?${t}`)},deleteAsset:e=>De(`/assets/${e}`,{method:"DELETE"}),getConfigs:()=>De("/configs"),saveConfig:(e,t)=>De(`/configs/${e}`,{method:"PUT",body:JSON.stringify({value:t})}),getSkillsConfig:()=>De("/configs/skills/file"),saveSkillsConfig:e=>De("/configs/skills/file",{method:"PUT",body:JSON.stringify(e)})},K1=g.createContext(null);let Gb=0;function Zb({children:e}){const[t,n]=g.useState([]),r=g.useRef(new Map),u=g.useCallback(i=>{const l=r.current.get(i);l&&clearTimeout(l),r.current.delete(i),n(s=>s.filter(a=>a.id!==i))},[]),o=g.useCallback((i,l="info")=>{const s=Gb++;n(d=>[...d.slice(-4),{id:s,message:i,type:l}]);const a=setTimeout(()=>u(s),3e3);r.current.set(s,a)},[u]);return c.jsx(K1.Provider,{value:{toasts:t,toast:o,dismiss:u},children:e})}function Jc(){const e=g.useContext(K1);if(!e)throw new Error("useToast must be used within ToastProvider");return e}const ms={open:!1,title:"",description:"",resolve:null};function G1(){const[e,t]=g.useState(ms),n=g.useCallback(o=>new Promise(i=>{t({...o,open:!0,resolve:i})}),[]),r=g.useCallback(()=>{var o;(o=e.resolve)==null||o.call(e,!0),t(ms)},[e.resolve]),u=g.useCallback(()=>{var o;(o=e.resolve)==null||o.call(e,!1),t(ms)},[e.resolve]);return{confirmState:e,confirm:n,handleConfirm:r,handleCancel:u}}function Qb(){const{conversations:e,setConversations:t}=Pa(),[n,r]=g.useState(""),u=fu(),o=Et(),{toast:i}=Jc(),{confirmState:l,confirm:s,handleConfirm:a,handleCancel:d}=G1(),p=g.useMemo(()=>{const E=o.pathname.match(/^\/chat\/(.+)$/);return E?E[1]:null},[o.pathname]),m=()=>{ke.listConversations().then(t).catch(()=>{})};g.useEffect(()=>{m()},[]);const y=E=>{if(r(E),!E){m();return}const A=`?search=${encodeURIComponent(E)}`;fetch(`/api/pipeline/conversations${A}`).then(D=>D.json()).then(t).catch(()=>{})},v=async(E,A)=>{A.stopPropagation();const D=e.find(z=>z.id===E);D&&(await ke.updateConversation(E,{pinned:!D.pinned}),m())},b=async(E,A)=>{A.stopPropagation(),await s({title:"删除对话",description:"确定要删除这个对话吗?此操作无法撤销。",confirmText:"删除",variant:"danger"})&&(await ke.deleteConversation(E),m(),i("对话已删除","success"),E===p&&u("/chat"))},C=E=>{const A=new Date(E),z=new Date().getTime()-A.getTime();return z<864e5?A.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}):z<6048e5?`${Math.floor(z/864e5)}天前`:A.toLocaleDateString("zh-CN",{month:"short",day:"numeric"})},x=e.filter(E=>E.pinned),f=e.filter(E=>!E.pinned),h=new Date,w=new Date(h.getFullYear(),h.getMonth(),h.getDate()).getTime(),k=w-864e5,_=w-6*864e5,S=[{label:"今天",items:[]},{label:"昨天",items:[]},{label:"7 天内",items:[]},{label:"更早",items:[]}];for(const E of f){const A=new Date(E.updated_at).getTime();A>=w?S[0].items.push(E):A>=k?S[1].items.push(E):A>=_?S[2].items.push(E):S[3].items.push(E)}return c.jsxs("aside",{className:"w-60 flex flex-col border-r border-zinc-100 bg-zinc-50/40",children:[c.jsxs("div",{className:"px-3 pt-3 pb-3 bg-white/80 backdrop-blur-sm border-b border-zinc-100",children:[c.jsxs("div",{className:"relative",children:[c.jsx(za,{size:13,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-zinc-300"}),c.jsx(_e,{placeholder:"搜索对话...",className:"h-8 text-xs bg-zinc-100/80 border-transparent pl-8 rounded-xl focus:bg-white focus:border-indigo-200 focus:ring-1 focus:ring-indigo-200/50 transition-all",value:n,onChange:E=>y(E.target.value)})]}),c.jsxs("button",{onClick:()=>u("/chat"),className:"w-full mt-2.5 flex items-center gap-2.5 px-3 py-2 rounded-xl bg-gradient-to-r from-indigo-500 to-indigo-600 text-white text-xs font-medium hover:from-indigo-600 hover:to-indigo-700 transition-all duration-200 shadow-md shadow-indigo-200/50 active:scale-[0.98]",children:[c.jsx("div",{className:"w-6 h-6 rounded-lg bg-white/20 flex items-center justify-center flex-shrink-0",children:c.jsx(ub,{size:13})}),c.jsx("span",{children:"新建对话"})]})]}),c.jsxs(W1,{className:"flex-1 px-2 py-1.5",children:[x.length>0&&c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"px-2 pt-1.5 pb-1 text-[10px] text-zinc-400 font-medium tracking-wider",children:"置顶"}),x.map(E=>c.jsx(G0,{conv:E,isActive:E.id===p,onNavigate:()=>u(`/chat/${E.id}`),onTogglePin:A=>v(E.id,A),onDelete:A=>b(E.id,A),formatDate:C},E.id)),c.jsx("div",{className:"my-1.5 mx-2 border-t border-zinc-200/60"})]}),S.map(E=>E.items.length>0?c.jsxs("div",{children:[c.jsx("p",{className:"px-2 pt-2 pb-1 text-[10px] text-zinc-400 font-medium tracking-wider",children:E.label}),E.items.map(A=>c.jsx(G0,{conv:A,isActive:A.id===p,onNavigate:()=>u(`/chat/${A.id}`),onTogglePin:D=>v(A.id,D),onDelete:D=>b(A.id,D),formatDate:C},A.id))]},E.label):null),e.length===0&&c.jsxs("div",{className:"flex flex-col items-center justify-center pt-20 text-zinc-300",children:[c.jsx("div",{className:"w-12 h-12 rounded-2xl bg-white flex items-center justify-center mb-3 shadow-sm",children:c.jsx(Qi,{size:20,strokeWidth:1.5,className:"text-zinc-300"})}),c.jsx("p",{className:"text-xs text-zinc-400",children:"暂无对话"})]})]}),c.jsx(q1,{open:l.open,title:l.title,description:l.description,confirmText:l.confirmText,cancelText:l.cancelText,variant:l.variant,onConfirm:a,onCancel:d})]})}function G0({conv:e,isActive:t,onNavigate:n,onTogglePin:r,onDelete:u,formatDate:o}){return c.jsxs("div",{onClick:n,className:`group my-0.5 rounded-xl px-3 py-2 transition-all duration-200 cursor-pointer
${t?"bg-white ring-1 ring-indigo-200/60 shadow-sm shadow-indigo-100/30":"hover:bg-white hover:shadow-sm hover:shadow-zinc-200/40"}`,children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[e.pinned?c.jsx(B0,{size:10,className:"text-indigo-400 flex-shrink-0"}):null,c.jsx("span",{className:`text-[13px] truncate flex-1 leading-snug ${t?"text-indigo-700 font-medium":"text-zinc-600"}`,children:e.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:r,className:`p-0.5 rounded-md transition-colors ${e.pinned?"text-indigo-400":"text-zinc-300 hover:text-zinc-500 hover:bg-zinc-100"}`,title:e.pinned?"取消置顶":"置顶",children:c.jsx(B0,{size:12})}),c.jsx("button",{onClick:u,className:"p-0.5 rounded-md text-zinc-300 hover:text-red-500 hover:bg-red-50 transition-colors",title:"删除",children:c.jsx(No,{size:12})})]})]}),c.jsx("span",{className:"text-[10px] text-zinc-300 mt-0.5 block",children:o(e.updated_at)})]})}const Yb={success:Zy,error:Gy,info:Jy},Xb={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 Jb({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(e3,{item:n,dismiss:t},n.id))})}function e3({item:e,dismiss:t}){const n=Yb[e.type],r=g.useRef(null);return g.useEffect(()=>{var u;(u=r.current)==null||u.animate([{opacity:0,transform:"translateY(8px)"},{opacity:1,transform:"translateY(0)"}],{duration:200,fill:"forwards"})},[]),c.jsxs("div",{ref:r,className:Xe("pointer-events-auto flex items-center gap-2 px-3.5 py-2.5 rounded-lg border shadow-lg text-sm",Xb[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(pu,{size:13})})]})}function t3({children:e}){const{pathname:t}=Et(),n=fu(),r=t.startsWith("/chat"),{toasts:u,dismiss:o}=Jc();return g.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(Ub,{}),r&&c.jsx(Qb,{}),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(Jb,{toasts:u,dismiss:o})]})}class n3{constructor(){_u(this,"ws",null);_u(this,"handlers",new Map);_u(this,"reconnectTimer",null);_u(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=r=>{try{const{type:u,data:o}=JSON.parse(r.data);this.emit(u,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 r=this.handlers.get(t);if(r){const u=r.indexOf(n);u!==-1&&r.splice(u,1)}}send(t,n={}){var r;((r=this.ws)==null?void 0:r.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:t,...n}))}stop(){this.send("stop")}emit(t,n){(this.handlers.get(t)||[]).forEach(r=>r(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 ue=new n3;function r3(e){const[t,n]=g.useState([]),[r,u]=g.useState(!1),[o,i]=g.useState(!1),[l,s]=g.useState(null),[a,d]=g.useState(null),p=g.useRef(null),m=g.useRef(null);g.useEffect(()=>{const x=()=>u(!0),f=T=>{n(T.messages||[])},h=T=>{n(I=>[...I,T])},w=T=>{T.status==="thinking"&&i(!0),T.status==="done"&&(i(!1),s(null))},k=T=>{i(!1),n(I=>[...I,{id:T.id,role:"assistant",content:"",reasoningContent:"",created_at:new Date().toISOString(),conversation_id:""}])},_=T=>{n(I=>I.map(B=>B.id===T.id?{...B,reasoningContent:(B.reasoningContent||"")+T.text}:B))},S=T=>{n(I=>I.map(B=>B.id===T.id?{...B,content:B.content+T.text}:B))},E=()=>{i(!1)},A=T=>{s(`执行: ${T.tool}...`)},D=T=>{s(null),i(!0),n(I=>[...I,{id:`tool-${Date.now()}`,role:"tool",content:JSON.stringify({tool:T.tool,result:T.result}),assets:T.assets||void 0,created_at:new Date().toISOString(),conversation_id:""}])},z=T=>{s(`失败: ${T.tool}`),setTimeout(()=>s(null),4e3)},M=T=>{d({phase:T.phase,progress:T.progress,currentItem:T.currentItem,totalItems:T.totalItems,status:T.status})},U=T=>{const I=T.id;p.current=I,m.current&&(m.current(I),m.current=null)};return ue.on("connected",x),ue.on("history",f),ue.on("message",h),ue.on("status",w),ue.on("message_start",k),ue.on("reasoning_delta",_),ue.on("text_delta",S),ue.on("message_end",E),ue.on("tool_start",A),ue.on("tool_result",D),ue.on("tool_error",z),ue.on("pipeline_progress",M),ue.on("conversation_created",U),ue.connect(),()=>{ue.off("connected",x),ue.off("history",f),ue.off("message",h),ue.off("status",w),ue.off("message_start",k),ue.off("reasoning_delta",_),ue.off("text_delta",S),ue.off("message_end",E),ue.off("tool_start",A),ue.off("tool_result",D),ue.off("tool_error",z),ue.off("pipeline_progress",M),ue.off("conversation_created",U),ue.disconnect()}},[]),g.useEffect(()=>{r&&(e&&e!==p.current&&(p.current=e,n([]),i(!1),s(null),d(null),ue.send("init",{conversationId:e})),e||(p.current=null,n([]),i(!1),s(null),d(null)))},[e,r]);const y=g.useCallback((x,f)=>{ue.send("chat",{content:x,images:f})},[]),v=g.useCallback(()=>{ue.stop()},[]),b=g.useCallback((x,f)=>new Promise(h=>{m.current=h,ue.send("create_conversation",{title:x,accountId:f}),setTimeout(()=>{m.current&&(m.current=null,h(""))},5e3)}),[]),C=g.useCallback(async x=>{n(f=>f.filter(h=>h.id!==x));try{await fetch(`/api/pipeline/messages/${x}`,{method:"DELETE"})}catch{}},[]);return{messages:t,connected:r,thinking:o,toolStatus:l,pipeline:a,send:y,stop:v,createConversation:b,removeMessage:C}}const Z0={};function u3(e){let t=Z0[e];if(t)return t;t=Z0[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function nu(e,t){typeof t!="string"&&(t=nu.defaultChars);const n=u3(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let u="";for(let o=0,i=r.length;o<i;o+=3){const l=parseInt(r.slice(o+1,o+3),16);if(l<128){u+=n[l];continue}if((l&224)===192&&o+3<i){const s=parseInt(r.slice(o+4,o+6),16);if((s&192)===128){const a=l<<6&1984|s&63;a<128?u+="<22><>":u+=String.fromCharCode(a),o+=3;continue}}if((l&240)===224&&o+6<i){const s=parseInt(r.slice(o+4,o+6),16),a=parseInt(r.slice(o+7,o+9),16);if((s&192)===128&&(a&192)===128){const d=l<<12&61440|s<<6&4032|a&63;d<2048||d>=55296&&d<=57343?u+="<22><><EFBFBD>":u+=String.fromCharCode(d),o+=6;continue}}if((l&248)===240&&o+9<i){const s=parseInt(r.slice(o+4,o+6),16),a=parseInt(r.slice(o+7,o+9),16),d=parseInt(r.slice(o+10,o+12),16);if((s&192)===128&&(a&192)===128&&(d&192)===128){let p=l<<18&1835008|s<<12&258048|a<<6&4032|d&63;p<65536||p>1114111?u+="<22><><EFBFBD><EFBFBD>":(p-=65536,u+=String.fromCharCode(55296+(p>>10),56320+(p&1023))),o+=9;continue}}u+="<22>"}return u})}nu.defaultChars=";/?:@&=+$,#";nu.componentChars="";const Q0={};function o3(e){let t=Q0[e];if(t)return t;t=Q0[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):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 Do(e,t,n){typeof t!="string"&&(n=t,t=Do.defaultChars),typeof n>"u"&&(n=!0);const r=o3(t);let u="";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))){u+=e.slice(o,o+3),o+=2;continue}if(l<128){u+=r[l];continue}if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&o+1<i){const s=e.charCodeAt(o+1);if(s>=56320&&s<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}u+="%EF%BF%BD";continue}u+=encodeURIComponent(e[o])}return u}Do.defaultChars=";/?:@&=+$,-_.!~*'()#";Do.componentChars="-_.!~*'()";function ed(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 Yi(){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 i3=/^([a-z0-9.+-]+:)/i,l3=/:[0-9]*$/,s3=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,a3=["<",">",'"',"`"," ","\r",`
`," "],c3=["{","}","|","\\","^","`"].concat(a3),d3=["'"].concat(c3),Y0=["%","/","?",";","#"].concat(d3),X0=["/","?","#"],f3=255,J0=/^[+a-z0-9A-Z_-]{0,63}$/,p3=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ef={javascript:!0,"javascript:":!0},tf={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function td(e,t){if(e&&e instanceof Yi)return e;const n=new Yi;return n.parse(e,t),n}Yi.prototype.parse=function(e,t){let n,r,u,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const a=s3.exec(o);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}let i=i3.exec(o);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,o=o.substr(i.length)),(t||i||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=o.substr(0,2)==="//",u&&!(i&&ef[i])&&(o=o.substr(2),this.slashes=!0)),!ef[i]&&(u||i&&!tf[i])){let a=-1;for(let v=0;v<X0.length;v++)r=o.indexOf(X0[v]),r!==-1&&(a===-1||r<a)&&(a=r);let d,p;a===-1?p=o.lastIndexOf("@"):p=o.lastIndexOf("@",a),p!==-1&&(d=o.slice(0,p),o=o.slice(p+1),this.auth=d),a=-1;for(let v=0;v<Y0.length;v++)r=o.indexOf(Y0[v]),r!==-1&&(a===-1||r<a)&&(a=r);a===-1&&(a=o.length),o[a-1]===":"&&a--;const m=o.slice(0,a);o=o.slice(a),this.parseHost(m),this.hostname=this.hostname||"";const y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){const v=this.hostname.split(/\./);for(let b=0,C=v.length;b<C;b++){const x=v[b];if(x&&!x.match(J0)){let f="";for(let h=0,w=x.length;h<w;h++)x.charCodeAt(h)>127?f+="x":f+=x[h];if(!f.match(J0)){const h=v.slice(0,b),w=v.slice(b+1),k=x.match(p3);k&&(h.push(k[1]),w.unshift(k[2])),w.length&&(o=w.join(".")+o),this.hostname=h.join(".");break}}}}this.hostname.length>f3&&(this.hostname=""),y&&(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 s=o.indexOf("?");return s!==-1&&(this.search=o.substr(s),o=o.slice(0,s)),o&&(this.pathname=o),tf[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Yi.prototype.parseHost=function(e){let t=l3.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 h3=Object.freeze(Object.defineProperty({__proto__:null,decode:nu,encode:Do,format:ed,parse:td},Symbol.toStringTag,{value:"Module"})),Z1=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Q1=/[\0-\x1F\x7F-\x9F]/,m3=/[\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]/,nd=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Y1=/[\$\+<->\^`\|~\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]/,X1=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,g3=Object.freeze(Object.defineProperty({__proto__:null,Any:Z1,Cc:Q1,Cf:m3,P:nd,S:Y1,Z:X1},Symbol.toStringTag,{value:"Module"})),x3=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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;怳Ādp໩໮uct;戏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ǣጓ\0጖y;䐎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Ā;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀ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Ā;e᜚᜜lƀ;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\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îeĀmx᫱᫶ent»᫩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ῦῪ \0llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0g;耀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檈Ā;qim;拧pf;쀀𝕘Āci⅃r;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞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;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\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\0⹻m;櫳;櫽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))),v3=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var gs;const y3=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]]),b3=(gs=String.fromCodePoint)!==null&&gs!==void 0?gs: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 w3(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=y3.get(e))!==null&&t!==void 0?t:e}var Re;(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"})(Re||(Re={}));const k3=32;var Mn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Mn||(Mn={}));function Ta(e){return e>=Re.ZERO&&e<=Re.NINE}function C3(e){return e>=Re.UPPER_A&&e<=Re.UPPER_F||e>=Re.LOWER_A&&e<=Re.LOWER_F}function _3(e){return e>=Re.UPPER_A&&e<=Re.UPPER_Z||e>=Re.LOWER_A&&e<=Re.LOWER_Z||Ta(e)}function E3(e){return e===Re.EQUALS||_3(e)}var je;(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"})(je||(je={}));var Rn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Rn||(Rn={}));class S3{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=je.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Rn.Strict}startEntity(t){this.decodeMode=t,this.state=je.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case je.EntityStart:return t.charCodeAt(n)===Re.NUM?(this.state=je.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=je.NamedEntity,this.stateNamedEntity(t,n));case je.NumericStart:return this.stateNumericStart(t,n);case je.NumericDecimal:return this.stateNumericDecimal(t,n);case je.NumericHex:return this.stateNumericHex(t,n);case je.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|k3)===Re.LOWER_X?(this.state=je.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=je.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,u){if(n!==r){const o=r-n;this.result=this.result*Math.pow(u,o)+parseInt(t.substr(n,o),u),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(Ta(u)||C3(u))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(Ta(u))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(u,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Re.SEMI)this.consumed+=1;else if(this.decodeMode===Rn.Strict)return 0;return this.emitCodePoint(w3(this.result),this.consumed),this.errors&&(t!==Re.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let u=r[this.treeIndex],o=(u&Mn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const i=t.charCodeAt(n);if(this.treeIndex=A3(r,u,this.treeIndex+Math.max(1,o),i),this.treeIndex<0)return this.result===0||this.decodeMode===Rn.Attribute&&(o===0||E3(i))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],o=(u&Mn.VALUE_LENGTH)>>14,o!==0){if(i===Re.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Rn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,u=(r[n]&Mn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~Mn.VALUE_LENGTH:u[t+1],r),n===3&&this.emitCodePoint(u[t+2],r),r}end(){var t;switch(this.state){case je.NamedEntity:return this.result!==0&&(this.decodeMode!==Rn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case je.NumericDecimal:return this.emitNumericEntity(0,2);case je.NumericHex:return this.emitNumericEntity(0,3);case je.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case je.EntityStart:return 0}}}function J1(e){let t="";const n=new S3(e,r=>t+=b3(r));return function(u,o){let i=0,l=0;for(;(l=u.indexOf("&",l))>=0;){t+=u.slice(i,l),n.startEntity(o);const a=n.write(u,l+1);if(a<0){i=l+n.end();break}i=l+a,l=a===0?i+1:i}const s=t+u.slice(i);return t="",s}}function A3(e,t,n,r){const u=(t&Mn.BRANCH_LENGTH)>>7,o=t&Mn.JUMP_TABLE;if(u===0)return o!==0&&r===o?n:-1;if(o){const s=r-o;return s<0||s>=u?-1:e[n+s]-1}let i=n,l=i+u-1;for(;i<=l;){const s=i+l>>>1,a=e[s];if(a<r)i=s+1;else if(a>r)l=s-1;else return e[s+u]}return-1}const N3=J1(x3);J1(v3);function em(e,t=Rn.Legacy){return N3(e,t)}function D3(e){return Object.prototype.toString.call(e)}function rd(e){return D3(e)==="[object String]"}const j3=Object.prototype.hasOwnProperty;function F3(e,t){return j3.call(e,t)}function El(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(r){e[r]=n[r]})}}),e}function tm(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function ud(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 Xi(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 nm=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,z3=/&([a-z#][a-z0-9]{1,31});/gi,R3=new RegExp(nm.source+"|"+z3.source,"gi"),P3=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function T3(e,t){if(t.charCodeAt(0)===35&&P3.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return ud(r)?Xi(r):e}const n=em(e);return n!==e?n:e}function M3(e){return e.indexOf("\\")<0?e:e.replace(nm,"$1")}function ru(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(R3,function(t,n,r){return n||T3(t,r)})}const L3=/[&<>"]/,I3=/[&<>"]/g,O3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function $3(e){return O3[e]}function Kn(e){return L3.test(e)?e.replace(I3,$3):e}const B3=/[.?*+^$[\]\\(){}|-]/g;function U3(e){return e.replace(B3,"\\$&")}function se(e){switch(e){case 9:case 32:return!0}return!1}function go(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 xo(e){return nd.test(e)||Y1.test(e)}function vo(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 Sl(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const H3={mdurl:h3,ucmicro:g3},V3=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:tm,assign:El,escapeHtml:Kn,escapeRE:U3,fromCodePoint:Xi,has:F3,isMdAsciiPunct:vo,isPunctChar:xo,isSpace:se,isString:rd,isValidEntityCode:ud,isWhiteSpace:go,lib:H3,normalizeReference:Sl,unescapeAll:ru,unescapeMd:M3},Symbol.toStringTag,{value:"Module"}));function W3(e,t,n){let r,u,o,i;const l=e.posMax,s=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){u=!0;break}if(i=e.pos,e.md.inline.skipToken(e),o===91){if(i===e.pos-1)r++;else if(n)return e.pos=s,-1}}let a=-1;return u&&(a=e.pos),e.pos=s,a}function q3(e,t,n){let r,u=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(u)===60){for(u++;u<n;){if(r=e.charCodeAt(u),r===10||r===60)return o;if(r===62)return o.pos=u+1,o.str=ru(e.slice(t+1,u)),o.ok=!0,o;if(r===92&&u+1<n){u+=2;continue}u++}return o}let i=0;for(;u<n&&(r=e.charCodeAt(u),!(r===32||r<32||r===127));){if(r===92&&u+1<n){if(e.charCodeAt(u+1)===32)break;u+=2;continue}if(r===40&&(i++,i>32))return o;if(r===41){if(i===0)break;i--}u++}return t===u||i!==0||(o.str=ru(e.slice(t,u)),o.pos=u,o.ok=!0),o}function K3(e,t,n,r){let u,o=t;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)i.str=r.str,i.marker=r.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(u=e.charCodeAt(o),u===i.marker)return i.pos=o+1,i.str+=ru(e.slice(t,o)),i.ok=!0,i;if(u===40&&i.marker===41)return i;u===92&&o+1<n&&o++,o++}return i.can_continue=!0,i.str+=ru(e.slice(t,o)),i}const G3=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:q3,parseLinkLabel:W3,parseLinkTitle:K3},Symbol.toStringTag,{value:"Module"})),nn={};nn.code_inline=function(e,t,n,r,u){const o=e[t];return"<code"+u.renderAttrs(o)+">"+Kn(o.content)+"</code>"};nn.code_block=function(e,t,n,r,u){const o=e[t];return"<pre"+u.renderAttrs(o)+"><code>"+Kn(e[t].content)+`</code></pre>
`};nn.fence=function(e,t,n,r,u){const o=e[t],i=o.info?ru(o.info).trim():"";let l="",s="";if(i){const d=i.split(/(\s+)/g);l=d[0],s=d.slice(2).join("")}let a;if(n.highlight?a=n.highlight(o.content,l,s)||Kn(o.content):a=Kn(o.content),a.indexOf("<pre")===0)return a+`
`;if(i){const d=o.attrIndex("class"),p=o.attrs?o.attrs.slice():[];d<0?p.push(["class",n.langPrefix+l]):(p[d]=p[d].slice(),p[d][1]+=" "+n.langPrefix+l);const m={attrs:p};return`<pre><code${u.renderAttrs(m)}>${a}</code></pre>
`}return`<pre><code${u.renderAttrs(o)}>${a}</code></pre>
`};nn.image=function(e,t,n,r,u){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=u.renderInlineAsText(o.children,n,r),u.renderToken(e,t,n)};nn.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
`:`<br>
`};nn.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
`:`<br>
`:`
`};nn.text=function(e,t){return Kn(e[t].content)};nn.html_block=function(e,t){return e[t].content};nn.html_inline=function(e,t){return e[t].content};function mu(){this.rules=El({},nn)}mu.prototype.renderAttrs=function(t){let n,r,u;if(!t.attrs)return"";for(u="",n=0,r=t.attrs.length;n<r;n++)u+=" "+Kn(t.attrs[n][0])+'="'+Kn(t.attrs[n][1])+'"';return u};mu.prototype.renderToken=function(t,n,r){const u=t[n];let o="";if(u.hidden)return"";u.block&&u.nesting!==-1&&n&&t[n-1].hidden&&(o+=`
`),o+=(u.nesting===-1?"</":"<")+u.tag,o+=this.renderAttrs(u),u.nesting===0&&r.xhtmlOut&&(o+=" /");let i=!1;if(u.block&&(i=!0,u.nesting===1&&n+1<t.length)){const l=t[n+1];(l.type==="inline"||l.hidden||l.nesting===-1&&l.tag===u.tag)&&(i=!1)}return o+=i?`>
`:">",o};mu.prototype.renderInline=function(e,t,n){let r="";const u=this.rules;for(let o=0,i=e.length;o<i;o++){const l=e[o].type;typeof u[l]<"u"?r+=u[l](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r};mu.prototype.renderInlineAsText=function(e,t,n){let r="";for(let u=0,o=e.length;u<o;u++)switch(e[u].type){case"text":r+=e[u].content;break;case"image":r+=this.renderInlineAsText(e[u].children,t,n);break;case"html_inline":case"html_block":r+=e[u].content;break;case"softbreak":case"hardbreak":r+=`
`;break}return r};mu.prototype.render=function(e,t,n){let r="";const u=this.rules;for(let o=0,i=e.length;o<i;o++){const l=e[o].type;l==="inline"?r+=this.renderInline(e[o].children,t,n):typeof u[l]<"u"?r+=u[l](e,o,t,n,this):r+=this.renderToken(e,o,t,n)}return r};function nt(){this.__rules__=[],this.__cache__=null}nt.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};nt.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};nt.prototype.at=function(e,t,n){const r=this.__find__(e),u=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=u.alt||[],this.__cache__=null};nt.prototype.before=function(e,t,n,r){const u=this.__find__(e),o=r||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(u,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};nt.prototype.after=function(e,t,n,r){const u=this.__find__(e),o=r||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(u+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};nt.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};nt.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const u=this.__find__(r);if(u<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[u].enabled=!0,n.push(r)},this),this.__cache__=null,n};nt.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};nt.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const u=this.__find__(r);if(u<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[u].enabled=!1,n.push(r)},this),this.__cache__=null,n};nt.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Ut(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}Ut.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,u=n.length;r<u;r++)if(n[r][0]===t)return r;return-1};Ut.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Ut.prototype.attrSet=function(t,n){const r=this.attrIndex(t),u=[t,n];r<0?this.attrPush(u):this.attrs[r]=u};Ut.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r};Ut.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function rm(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}rm.prototype.Token=Ut;const Z3=/\r\n?|\n/g,Q3=/\0/g;function Y3(e){let t;t=e.src.replace(Z3,`
`),t=t.replace(Q3,"<22>"),e.src=t}function X3(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 J3(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const u=t[n];u.type==="inline"&&e.md.inline.parse(u.content,e.md,e.env,u.children)}}function e6(e){return/^<a[>\s]/i.test(e)}function t6(e){return/^<\/a\s*>/i.test(e)}function n6(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let u=t[n].children,o=0;for(let i=u.length-1;i>=0;i--){const l=u[i];if(l.type==="link_close"){for(i--;u[i].level!==l.level&&u[i].type!=="link_open";)i--;continue}if(l.type==="html_inline"&&(e6(l.content)&&o>0&&o--,t6(l.content)&&o++),!(o>0)&&l.type==="text"&&e.md.linkify.test(l.content)){const s=l.content;let a=e.md.linkify.match(s);const d=[];let p=l.level,m=0;a.length>0&&a[0].index===0&&i>0&&u[i-1].type==="text_special"&&(a=a.slice(1));for(let y=0;y<a.length;y++){const v=a[y].url,b=e.md.normalizeLink(v);if(!e.md.validateLink(b))continue;let C=a[y].text;a[y].schema?a[y].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 x=a[y].index;if(x>m){const k=new e.Token("text","",0);k.content=s.slice(m,x),k.level=p,d.push(k)}const f=new e.Token("link_open","a",1);f.attrs=[["href",b]],f.level=p++,f.markup="linkify",f.info="auto",d.push(f);const h=new e.Token("text","",0);h.content=C,h.level=p,d.push(h);const w=new e.Token("link_close","a",-1);w.level=--p,w.markup="linkify",w.info="auto",d.push(w),m=a[y].lastIndex}if(m<s.length){const y=new e.Token("text","",0);y.content=s.slice(m),y.level=p,d.push(y)}t[n].children=u=tm(u,i,d)}}}}const um=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,r6=/\((c|tm|r)\)/i,u6=/\((c|tm|r)\)/ig,o6={c:"©",r:"®",tm:"™"};function i6(e,t){return o6[t.toLowerCase()]}function l6(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(u6,i6)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function s6(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&um.test(r.content)&&(r.content=r.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")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function a6(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(r6.test(e.tokens[t].content)&&l6(e.tokens[t].children),um.test(e.tokens[t].content)&&s6(e.tokens[t].children))}const c6=/['"]/,nf=/['"]/g,rf="";function Xo(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function d6(e,t){let n;const r=[];for(let u=0;u<e.length;u++){const o=e[u],i=e[u].level;for(n=r.length-1;n>=0&&!(r[n].level<=i);n--);if(r.length=n+1,o.type!=="text")continue;let l=o.content,s=0,a=l.length;e:for(;s<a;){nf.lastIndex=s;const d=nf.exec(l);if(!d)break;let p=!0,m=!0;s=d.index+1;const y=d[0]==="'";let v=32;if(d.index-1>=0)v=l.charCodeAt(d.index-1);else for(n=u-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){v=e[n].content.charCodeAt(e[n].content.length-1);break}let b=32;if(s<a)b=l.charCodeAt(s);else for(n=u+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){b=e[n].content.charCodeAt(0);break}const C=vo(v)||xo(String.fromCharCode(v)),x=vo(b)||xo(String.fromCharCode(b)),f=go(v),h=go(b);if(h?p=!1:x&&(f||C||(p=!1)),f?m=!1:C&&(h||x||(m=!1)),b===34&&d[0]==='"'&&v>=48&&v<=57&&(m=p=!1),p&&m&&(p=C,m=x),!p&&!m){y&&(o.content=Xo(o.content,d.index,rf));continue}if(m)for(n=r.length-1;n>=0;n--){let w=r[n];if(r[n].level<i)break;if(w.single===y&&r[n].level===i){w=r[n];let k,_;y?(k=t.md.options.quotes[2],_=t.md.options.quotes[3]):(k=t.md.options.quotes[0],_=t.md.options.quotes[1]),o.content=Xo(o.content,d.index,_),e[w.token].content=Xo(e[w.token].content,w.pos,k),s+=_.length-1,w.token===u&&(s+=k.length-1),l=o.content,a=l.length,r.length=n;continue e}}p?r.push({token:u,pos:d.index,single:y,level:i}):m&&y&&(o.content=Xo(o.content,d.index,rf))}}}function f6(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!c6.test(e.tokens[t].content)||d6(e.tokens[t].children,e)}function p6(e){let t,n;const r=e.tokens,u=r.length;for(let o=0;o<u;o++){if(r[o].type!=="inline")continue;const i=r[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 xs=[["normalize",Y3],["block",X3],["inline",J3],["linkify",n6],["replacements",a6],["smartquotes",f6],["text_join",p6]];function od(){this.ruler=new nt;for(let e=0;e<xs.length;e++)this.ruler.push(xs[e][0],xs[e][1])}od.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};od.prototype.State=rm;function rn(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,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 u=this.src;for(let o=0,i=0,l=0,s=0,a=u.length,d=!1;i<a;i++){const p=u.charCodeAt(i);if(!d)if(se(p)){l++,p===9?s+=4-s%4:s++;continue}else d=!0;(p===10||i===a-1)&&(p!==10&&i++,this.bMarks.push(o),this.eMarks.push(i),this.tShift.push(l),this.sCount.push(s),this.bsCount.push(0),d=!1,l=0,s=0,o=i+1)}this.bMarks.push(u.length),this.eMarks.push(u.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}rn.prototype.push=function(e,t,n){const r=new Ut(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};rn.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};rn.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};rn.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!se(r))break}return t};rn.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!se(this.src.charCodeAt(--t)))return t+1;return t};rn.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t};rn.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t};rn.prototype.getLines=function(t,n,r,u){if(t>=n)return"";const o=new Array(n-t);for(let i=0,l=t;l<n;l++,i++){let s=0;const a=this.bMarks[l];let d=a,p;for(l+1<n||u?p=this.eMarks[l]+1:p=this.eMarks[l];d<p&&s<r;){const m=this.src.charCodeAt(d);if(se(m))m===9?s+=4-(s+this.bsCount[l])%4:s++;else if(d-a<this.tShift[l])s++;else break;d++}s>r?o[i]=new Array(s-r+1).join(" ")+this.src.slice(d,p):o[i]=this.src.slice(d,p)}return o.join("")};rn.prototype.Token=Ut;const h6=65536;function vs(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function uf(e){const t=[],n=e.length;let r=0,u=e.charCodeAt(r),o=!1,i=0,l="";for(;r<n;)u===124&&(o?(l+=e.substring(i,r-1),i=r):(t.push(l+e.substring(i,r)),l="",i=r+1)),o=u===92,r++,u=e.charCodeAt(r);return t.push(l+e.substring(i)),t}function m6(e,t,n,r){if(t+2>n)return!1;let u=t+1;if(e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)return!1;let o=e.bMarks[u]+e.tShift[u];if(o>=e.eMarks[u])return!1;const i=e.src.charCodeAt(o++);if(i!==124&&i!==45&&i!==58||o>=e.eMarks[u])return!1;const l=e.src.charCodeAt(o++);if(l!==124&&l!==45&&l!==58&&!se(l)||i===45&&se(l))return!1;for(;o<e.eMarks[u];){const w=e.src.charCodeAt(o);if(w!==124&&w!==45&&w!==58&&!se(w))return!1;o++}let s=vs(e,t+1),a=s.split("|");const d=[];for(let w=0;w<a.length;w++){const k=a[w].trim();if(!k){if(w===0||w===a.length-1)continue;return!1}if(!/^:?-+:?$/.test(k))return!1;k.charCodeAt(k.length-1)===58?d.push(k.charCodeAt(0)===58?"center":"right"):k.charCodeAt(0)===58?d.push("left"):d.push("")}if(s=vs(e,t).trim(),s.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;a=uf(s),a.length&&a[0]===""&&a.shift(),a.length&&a[a.length-1]===""&&a.pop();const p=a.length;if(p===0||p!==d.length)return!1;if(r)return!0;const m=e.parentType;e.parentType="table";const y=e.md.block.ruler.getRules("blockquote"),v=e.push("table_open","table",1),b=[t,0];v.map=b;const C=e.push("thead_open","thead",1);C.map=[t,t+1];const x=e.push("tr_open","tr",1);x.map=[t,t+1];for(let w=0;w<a.length;w++){const k=e.push("th_open","th",1);d[w]&&(k.attrs=[["style","text-align:"+d[w]]]);const _=e.push("inline","",0);_.content=a[w].trim(),_.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let f,h=0;for(u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){let w=!1;for(let _=0,S=y.length;_<S;_++)if(y[_](e,u,n,!0)){w=!0;break}if(w||(s=vs(e,u).trim(),!s)||e.sCount[u]-e.blkIndent>=4||(a=uf(s),a.length&&a[0]===""&&a.shift(),a.length&&a[a.length-1]===""&&a.pop(),h+=p-a.length,h>h6))break;if(u===t+2){const _=e.push("tbody_open","tbody",1);_.map=f=[t+2,0]}const k=e.push("tr_open","tr",1);k.map=[u,u+1];for(let _=0;_<p;_++){const S=e.push("td_open","td",1);d[_]&&(S.attrs=[["style","text-align:"+d[_]]]);const E=e.push("inline","",0);E.content=a[_]?a[_].trim():"",E.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return f&&(e.push("tbody_close","tbody",-1),f[1]=u),e.push("table_close","table",-1),b[1]=u,e.parentType=m,e.line=u,!0}function g6(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,u=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,u=r;continue}break}e.line=u;const o=e.push("code_block","code",0);return o.content=e.getLines(t,u,4+e.blkIndent,!1)+`
`,o.map=[t,e.line],!0}function x6(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||u+3>o)return!1;const i=e.src.charCodeAt(u);if(i!==126&&i!==96)return!1;let l=u;u=e.skipChars(u,i);let s=u-l;if(s<3)return!1;const a=e.src.slice(l,u),d=e.src.slice(u,o);if(i===96&&d.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;let p=t,m=!1;for(;p++,!(p>=n||(u=l=e.bMarks[p]+e.tShift[p],o=e.eMarks[p],u<o&&e.sCount[p]<e.blkIndent));)if(e.src.charCodeAt(u)===i&&!(e.sCount[p]-e.blkIndent>=4)&&(u=e.skipChars(u,i),!(u-l<s)&&(u=e.skipSpaces(u),!(u<o)))){m=!0;break}s=e.sCount[t],e.line=p+(m?1:0);const y=e.push("fence","code",0);return y.info=d,y.content=e.getLines(t+1,p,s,!0),y.markup=a,y.map=[t,e.line],!0}function v6(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const i=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==62)return!1;if(r)return!0;const l=[],s=[],a=[],d=[],p=e.md.block.ruler.getRules("blockquote"),m=e.parentType;e.parentType="blockquote";let y=!1,v;for(v=t;v<n;v++){const h=e.sCount[v]<e.blkIndent;if(u=e.bMarks[v]+e.tShift[v],o=e.eMarks[v],u>=o)break;if(e.src.charCodeAt(u++)===62&&!h){let k=e.sCount[v]+1,_,S;e.src.charCodeAt(u)===32?(u++,k++,S=!1,_=!0):e.src.charCodeAt(u)===9?(_=!0,(e.bsCount[v]+k)%4===3?(u++,k++,S=!1):S=!0):_=!1;let E=k;for(l.push(e.bMarks[v]),e.bMarks[v]=u;u<o;){const A=e.src.charCodeAt(u);if(se(A))A===9?E+=4-(E+e.bsCount[v]+(S?1:0))%4:E++;else break;u++}y=u>=o,s.push(e.bsCount[v]),e.bsCount[v]=e.sCount[v]+1+(_?1:0),a.push(e.sCount[v]),e.sCount[v]=E-k,d.push(e.tShift[v]),e.tShift[v]=u-e.bMarks[v];continue}if(y)break;let w=!1;for(let k=0,_=p.length;k<_;k++)if(p[k](e,v,n,!0)){w=!0;break}if(w){e.lineMax=v,e.blkIndent!==0&&(l.push(e.bMarks[v]),s.push(e.bsCount[v]),d.push(e.tShift[v]),a.push(e.sCount[v]),e.sCount[v]-=e.blkIndent);break}l.push(e.bMarks[v]),s.push(e.bsCount[v]),d.push(e.tShift[v]),a.push(e.sCount[v]),e.sCount[v]=-1}const b=e.blkIndent;e.blkIndent=0;const C=e.push("blockquote_open","blockquote",1);C.markup=">";const x=[t,0];C.map=x,e.md.block.tokenize(e,t,v);const f=e.push("blockquote_close","blockquote",-1);f.markup=">",e.lineMax=i,e.parentType=m,x[1]=e.line;for(let h=0;h<d.length;h++)e.bMarks[h+t]=l[h],e.tShift[h+t]=d[h],e.sCount[h+t]=a[h],e.bsCount[h+t]=s[h];return e.blkIndent=b,!0}function y6(e,t,n,r){const u=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<u;){const a=e.src.charCodeAt(o++);if(a!==i&&!se(a))return!1;a===i&&l++}if(l<3)return!1;if(r)return!0;e.line=t+1;const s=e.push("hr","hr",0);return s.map=[t,e.line],s.markup=Array(l+1).join(String.fromCharCode(i)),!0}function of(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(r++);if(u!==42&&u!==45&&u!==43)return-1;if(r<n){const o=e.src.charCodeAt(r);if(!se(o))return-1}return r}function lf(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let u=n;if(u+1>=r)return-1;let o=e.src.charCodeAt(u++);if(o<48||o>57)return-1;for(;;){if(u>=r)return-1;if(o=e.src.charCodeAt(u++),o>=48&&o<=57){if(u-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return u<r&&(o=e.src.charCodeAt(u),!se(o))?-1:u}function b6(e,t){const n=e.level+2;for(let r=t+2,u=e.tokens.length-2;r<u;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function w6(e,t,n,r){let u,o,i,l,s=t,a=!0;if(e.sCount[s]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[s]-e.listIndent>=4&&e.sCount[s]<e.blkIndent)return!1;let d=!1;r&&e.parentType==="paragraph"&&e.sCount[s]>=e.blkIndent&&(d=!0);let p,m,y;if((y=lf(e,s))>=0){if(p=!0,i=e.bMarks[s]+e.tShift[s],m=Number(e.src.slice(i,y-1)),d&&m!==1)return!1}else if((y=of(e,s))>=0)p=!1;else return!1;if(d&&e.skipSpaces(y)>=e.eMarks[s])return!1;if(r)return!0;const v=e.src.charCodeAt(y-1),b=e.tokens.length;p?(l=e.push("ordered_list_open","ol",1),m!==1&&(l.attrs=[["start",m]])):l=e.push("bullet_list_open","ul",1);const C=[s,0];l.map=C,l.markup=String.fromCharCode(v);let x=!1;const f=e.md.block.ruler.getRules("list"),h=e.parentType;for(e.parentType="list";s<n;){o=y,u=e.eMarks[s];const w=e.sCount[s]+y-(e.bMarks[s]+e.tShift[s]);let k=w;for(;o<u;){const I=e.src.charCodeAt(o);if(I===9)k+=4-(k+e.bsCount[s])%4;else if(I===32)k++;else break;o++}const _=o;let S;_>=u?S=1:S=k-w,S>4&&(S=1);const E=w+S;l=e.push("list_item_open","li",1),l.markup=String.fromCharCode(v);const A=[s,0];l.map=A,p&&(l.info=e.src.slice(i,y-1));const D=e.tight,z=e.tShift[s],M=e.sCount[s],U=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=E,e.tight=!0,e.tShift[s]=_-e.bMarks[s],e.sCount[s]=k,_>=u&&e.isEmpty(s+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,s,n,!0),(!e.tight||x)&&(a=!1),x=e.line-s>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=U,e.tShift[s]=z,e.sCount[s]=M,e.tight=D,l=e.push("list_item_close","li",-1),l.markup=String.fromCharCode(v),s=e.line,A[1]=s,s>=n||e.sCount[s]<e.blkIndent||e.sCount[s]-e.blkIndent>=4)break;let T=!1;for(let I=0,B=f.length;I<B;I++)if(f[I](e,s,n,!0)){T=!0;break}if(T)break;if(p){if(y=lf(e,s),y<0)break;i=e.bMarks[s]+e.tShift[s]}else if(y=of(e,s),y<0)break;if(v!==e.src.charCodeAt(y-1))break}return p?l=e.push("ordered_list_close","ol",-1):l=e.push("bullet_list_close","ul",-1),l.markup=String.fromCharCode(v),C[1]=s,e.line=s,e.parentType=h,a&&b6(e,b),!0}function k6(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],i=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==91)return!1;function l(f){const h=e.lineMax;if(f>=h||e.isEmpty(f))return null;let w=!1;if(e.sCount[f]-e.blkIndent>3&&(w=!0),e.sCount[f]<0&&(w=!0),!w){const S=e.md.block.ruler.getRules("reference"),E=e.parentType;e.parentType="reference";let A=!1;for(let D=0,z=S.length;D<z;D++)if(S[D](e,f,h,!0)){A=!0;break}if(e.parentType=E,A)return null}const k=e.bMarks[f]+e.tShift[f],_=e.eMarks[f];return e.src.slice(k,_+1)}let s=e.src.slice(u,o+1);o=s.length;let a=-1;for(u=1;u<o;u++){const f=s.charCodeAt(u);if(f===91)return!1;if(f===93){a=u;break}else if(f===10){const h=l(i);h!==null&&(s+=h,o=s.length,i++)}else if(f===92&&(u++,u<o&&s.charCodeAt(u)===10)){const h=l(i);h!==null&&(s+=h,o=s.length,i++)}}if(a<0||s.charCodeAt(a+1)!==58)return!1;for(u=a+2;u<o;u++){const f=s.charCodeAt(u);if(f===10){const h=l(i);h!==null&&(s+=h,o=s.length,i++)}else if(!se(f))break}const d=e.md.helpers.parseLinkDestination(s,u,o);if(!d.ok)return!1;const p=e.md.normalizeLink(d.str);if(!e.md.validateLink(p))return!1;u=d.pos;const m=u,y=i,v=u;for(;u<o;u++){const f=s.charCodeAt(u);if(f===10){const h=l(i);h!==null&&(s+=h,o=s.length,i++)}else if(!se(f))break}let b=e.md.helpers.parseLinkTitle(s,u,o);for(;b.can_continue;){const f=l(i);if(f===null)break;s+=f,u=o,o=s.length,i++,b=e.md.helpers.parseLinkTitle(s,u,o,b)}let C;for(u<o&&v!==u&&b.ok?(C=b.str,u=b.pos):(C="",u=m,i=y);u<o;){const f=s.charCodeAt(u);if(!se(f))break;u++}if(u<o&&s.charCodeAt(u)!==10&&C)for(C="",u=m,i=y;u<o;){const f=s.charCodeAt(u);if(!se(f))break;u++}if(u<o&&s.charCodeAt(u)!==10)return!1;const x=Sl(s.slice(1,a));return x?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[x]>"u"&&(e.env.references[x]={title:C,href:p}),e.line=i),!0):!1}const C6=["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"],_6="[a-zA-Z_:][a-zA-Z0-9:._-]*",E6="[^\"'=<>`\\x00-\\x20]+",S6="'[^']*'",A6='"[^"]*"',N6="(?:"+E6+"|"+S6+"|"+A6+")",D6="(?:\\s+"+_6+"(?:\\s*=\\s*"+N6+")?)",om="<[A-Za-z][A-Za-z0-9\\-]*"+D6+"*\\s*\\/?>",im="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",j6="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",F6="<[?][\\s\\S]*?[?]>",z6="<![A-Za-z][^>]*>",R6="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",P6=new RegExp("^(?:"+om+"|"+im+"|"+j6+"|"+F6+"|"+z6+"|"+R6+")"),T6=new RegExp("^(?:"+om+"|"+im+")"),Cr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+C6.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(T6.source+"\\s*$"),/^$/,!1]];function M6(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;let i=e.src.slice(u,o),l=0;for(;l<Cr.length&&!Cr[l][0].test(i);l++);if(l===Cr.length)return!1;if(r)return Cr[l][2];let s=t+1;if(!Cr[l][1].test(i)){for(;s<n&&!(e.sCount[s]<e.blkIndent);s++)if(u=e.bMarks[s]+e.tShift[s],o=e.eMarks[s],i=e.src.slice(u,o),Cr[l][1].test(i)){i.length!==0&&s++;break}}e.line=s;const a=e.push("html_block","",0);return a.map=[t,s],a.content=e.getLines(t,s,e.blkIndent,!0),!0}function L6(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(u);if(i!==35||u>=o)return!1;let l=1;for(i=e.src.charCodeAt(++u);i===35&&u<o&&l<=6;)l++,i=e.src.charCodeAt(++u);if(l>6||u<o&&!se(i))return!1;if(r)return!0;o=e.skipSpacesBack(o,u);const s=e.skipCharsBack(o,35,u);s>u&&se(e.src.charCodeAt(s-1))&&(o=s),e.line=t+1;const a=e.push("heading_open","h"+String(l),1);a.markup="########".slice(0,l),a.map=[t,e.line];const d=e.push("inline","",0);d.content=e.src.slice(u,o).trim(),d.map=[t,e.line],d.children=[];const p=e.push("heading_close","h"+String(l),-1);return p.markup="########".slice(0,l),!0}function I6(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const u=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 y=e.bMarks[l]+e.tShift[l];const v=e.eMarks[l];if(y<v&&(i=e.src.charCodeAt(y),(i===45||i===61)&&(y=e.skipChars(y,i),y=e.skipSpaces(y),y>=v))){o=i===61?1:2;break}}if(e.sCount[l]<0)continue;let m=!1;for(let y=0,v=r.length;y<v;y++)if(r[y](e,l,n,!0)){m=!0;break}if(m)break}if(!o)return!1;const s=e.getLines(t,l,e.blkIndent,!1).trim();e.line=l+1;const a=e.push("heading_open","h"+String(o),1);a.markup=String.fromCharCode(i),a.map=[t,e.line];const d=e.push("inline","",0);d.content=s,d.map=[t,e.line-1],d.children=[];const p=e.push("heading_close","h"+String(o),-1);return p.markup=String.fromCharCode(i),e.parentType=u,!0}function O6(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),u=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 a=!1;for(let d=0,p=r.length;d<p;d++)if(r[d](e,o,n,!0)){a=!0;break}if(a)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 s=e.push("inline","",0);return s.content=i,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=u,!0}const Jo=[["table",m6,["paragraph","reference"]],["code",g6],["fence",x6,["paragraph","reference","blockquote","list"]],["blockquote",v6,["paragraph","reference","blockquote","list"]],["hr",y6,["paragraph","reference","blockquote","list"]],["list",w6,["paragraph","reference","blockquote"]],["reference",k6],["html_block",M6,["paragraph","reference","blockquote"]],["heading",L6,["paragraph","reference","blockquote"]],["lheading",I6],["paragraph",O6]];function Al(){this.ruler=new nt;for(let e=0;e<Jo.length;e++)this.ruler.push(Jo[e][0],Jo[e][1],{alt:(Jo[e][2]||[]).slice()})}Al.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),u=r.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 s=e.line;let a=!1;for(let d=0;d<u;d++)if(a=r[d](e,i,n,!1),a){if(s>=e.line)throw new Error("block rule didn't increment state.line");break}if(!a)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)}};Al.prototype.parse=function(e,t,n,r){if(!e)return;const u=new this.State(e,t,n,r);this.tokenize(u,u.line,u.lineMax)};Al.prototype.State=rn;function jo(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.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}jo.prototype.pushPending=function(){const e=new Ut("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};jo.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Ut(e,t,n);let u=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],u={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(u),r};jo.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),u=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const i=o-e,l=o<n?this.src.charCodeAt(o):32,s=vo(u)||xo(String.fromCharCode(u)),a=vo(l)||xo(String.fromCharCode(l)),d=go(u),p=go(l),m=!p&&(!a||d||s),y=!d&&(!s||p||a);return{can_open:m&&(t||!y||s),can_close:y&&(t||!m||a),length:i}};jo.prototype.Token=Ut;function $6(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 B6(e,t){let n=e.pos;for(;n<e.posMax&&!$6(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const U6=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function H6(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const u=e.pending.match(U6);if(!u)return!1;const o=u[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 s=l.length;for(;s>0&&l.charCodeAt(s-1)===42;)s--;s!==l.length&&(l=l.slice(0,s));const a=e.md.normalizeLink(l);if(!e.md.validateLink(a))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const d=e.push("link_open","a",1);d.attrs=[["href",a]],d.markup="linkify",d.info="auto";const p=e.push("text","",0);p.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 V6(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,u=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-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<u&&se(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const id=[];for(let e=0;e<256;e++)id.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){id[e.charCodeAt(0)]=1});function W6(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let u=e.src.charCodeAt(n);if(u===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(u=e.src.charCodeAt(n),!!se(u));)n++;return e.pos=n,!0}let o=e.src[n];if(u>=55296&&u<=56319&&n+1<r){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);u<256&&id[u]!==0?l.content=o:l.content=i,l.markup=i,l.info="escape"}return e.pos=n+1,!0}function q6(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const u=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const i=e.src.slice(u,n),l=i.length;if(e.backticksScanned&&(e.backticks[l]||0)<=u)return t||(e.pending+=i),e.pos+=l,!0;let s=n,a;for(;(a=e.src.indexOf("`",s))!==-1;){for(s=a+1;s<o&&e.src.charCodeAt(s)===96;)s++;const d=s-a;if(d===l){if(!t){const p=e.push("code_inline","code",0);p.markup=i,p.content=e.src.slice(n,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=s,!0}e.backticks[d]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}function K6(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const u=e.scanDelims(e.pos,!0);let o=u.length;const i=String.fromCharCode(r);if(o<2)return!1;let l;o%2&&(l=e.push("text","",0),l.content=i,o--);for(let s=0;s<o;s+=2)l=e.push("text","",0),l.content=i+i,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close});return e.pos+=u.length,!0}function sf(e,t){let n;const r=[],u=t.length;for(let o=0;o<u;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==="~"&&r.push(l.token-1)}for(;r.length;){const o=r.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 G6(e){const t=e.tokens_meta,n=e.tokens_meta.length;sf(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&sf(e,t[r].delimiters)}const lm={tokenize:K6,postProcess:G6};function Z6(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const u=e.scanDelims(e.pos,r===42);for(let o=0;o<u.length;o++){const i=e.push("text","",0);i.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:u.length,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return e.pos+=u.length,!0}function af(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const u=t[r];if(u.marker!==95&&u.marker!==42||u.end===-1)continue;const o=t[u.end],i=r>0&&t[r-1].end===u.end+1&&t[r-1].marker===u.marker&&t[r-1].token===u.token-1&&t[u.end+1].token===o.token+1,l=String.fromCharCode(u.marker),s=e.tokens[u.token];s.type=i?"strong_open":"em_open",s.tag=i?"strong":"em",s.nesting=1,s.markup=i?l+l:l,s.content="";const a=e.tokens[o.token];a.type=i?"strong_close":"em_close",a.tag=i?"strong":"em",a.nesting=-1,a.markup=i?l+l:l,a.content="",i&&(e.tokens[t[r-1].token].content="",e.tokens[t[u.end+1].token].content="",r--)}}function Q6(e){const t=e.tokens_meta,n=e.tokens_meta.length;af(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&af(e,t[r].delimiters)}const sm={tokenize:Z6,postProcess:Q6};function Y6(e,t){let n,r,u,o,i="",l="",s=e.pos,a=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const d=e.pos,p=e.posMax,m=e.pos+1,y=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(y<0)return!1;let v=y+1;if(v<p&&e.src.charCodeAt(v)===40){for(a=!1,v++;v<p&&(n=e.src.charCodeAt(v),!(!se(n)&&n!==10));v++);if(v>=p)return!1;if(s=v,u=e.md.helpers.parseLinkDestination(e.src,v,e.posMax),u.ok){for(i=e.md.normalizeLink(u.str),e.md.validateLink(i)?v=u.pos:i="",s=v;v<p&&(n=e.src.charCodeAt(v),!(!se(n)&&n!==10));v++);if(u=e.md.helpers.parseLinkTitle(e.src,v,e.posMax),v<p&&s!==v&&u.ok)for(l=u.str,v=u.pos;v<p&&(n=e.src.charCodeAt(v),!(!se(n)&&n!==10));v++);}(v>=p||e.src.charCodeAt(v)!==41)&&(a=!0),v++}if(a){if(typeof e.env.references>"u")return!1;if(v<p&&e.src.charCodeAt(v)===91?(s=v+1,v=e.md.helpers.parseLinkLabel(e,v),v>=0?r=e.src.slice(s,v++):v=y+1):v=y+1,r||(r=e.src.slice(m,y)),o=e.env.references[Sl(r)],!o)return e.pos=d,!1;i=o.href,l=o.title}if(!t){e.pos=m,e.posMax=y;const b=e.push("link_open","a",1),C=[["href",i]];b.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=v,e.posMax=p,!0}function X6(e,t){let n,r,u,o,i,l,s,a,d="";const p=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const y=e.pos+2,v=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(v<0)return!1;if(o=v+1,o<m&&e.src.charCodeAt(o)===40){for(o++;o<m&&(n=e.src.charCodeAt(o),!(!se(n)&&n!==10));o++);if(o>=m)return!1;for(a=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=""),a=o;o<m&&(n=e.src.charCodeAt(o),!(!se(n)&&n!==10));o++);if(l=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<m&&a!==o&&l.ok)for(s=l.str,o=l.pos;o<m&&(n=e.src.charCodeAt(o),!(!se(n)&&n!==10));o++);else s="";if(o>=m||e.src.charCodeAt(o)!==41)return e.pos=p,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<m&&e.src.charCodeAt(o)===91?(a=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?u=e.src.slice(a,o++):o=v+1):o=v+1,u||(u=e.src.slice(y,v)),i=e.env.references[Sl(u)],!i)return e.pos=p,!1;d=i.href,s=i.title}if(!t){r=e.src.slice(y,v);const b=[];e.md.inline.parse(r,e.md,e.env,b);const C=e.push("image","img",0),x=[["src",d],["alt",""]];C.attrs=x,C.children=b,C.content=r,s&&x.push(["title",s])}return e.pos=o,e.posMax=m,!0}const J6=/^([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])?)*)$/,ew=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function tw(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,u=e.posMax;for(;;){if(++n>=u)return!1;const i=e.src.charCodeAt(n);if(i===60)return!1;if(i===62)break}const o=e.src.slice(r+1,n);if(ew.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 s=e.push("text","",0);s.content=e.md.normalizeLinkText(o);const a=e.push("link_close","a",-1);a.markup="autolink",a.info="auto"}return e.pos+=o.length+2,!0}if(J6.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 s=e.push("text","",0);s.content=e.md.normalizeLinkText(o);const a=e.push("link_close","a",-1);a.markup="autolink",a.info="auto"}return e.pos+=o.length+2,!0}return!1}function nw(e){return/^<a[>\s]/i.test(e)}function rw(e){return/^<\/a\s*>/i.test(e)}function uw(e){const t=e|32;return t>=97&&t<=122}function ow(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const u=e.src.charCodeAt(r+1);if(u!==33&&u!==63&&u!==47&&!uw(u))return!1;const o=e.src.slice(r).match(P6);if(!o)return!1;if(!t){const i=e.push("html_inline","",0);i.content=o[0],nw(i.content)&&e.linkLevel++,rw(i.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const iw=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,lw=/^&([a-z][a-z0-9]{1,31});/i;function sw(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(iw);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=ud(i)?Xi(i):Xi(65533),l.markup=o[0],l.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(lw);if(o){const i=em(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 cf(e){const t={},n=e.length;if(!n)return;let r=0,u=-2;const o=[];for(let i=0;i<n;i++){const l=e[i];if(o.push(0),(e[r].marker!==l.marker||u!==l.token-1)&&(r=i),u=l.token,l.length=l.length||0,!l.close)continue;t.hasOwnProperty(l.marker)||(t[l.marker]=[-1,-1,-1,-1,-1,-1]);const s=t[l.marker][(l.open?3:0)+l.length%3];let a=r-o[r]-1,d=a;for(;a>s;a-=o[a]+1){const p=e[a];if(p.marker===l.marker&&p.open&&p.end<0){let m=!1;if((p.close||l.open)&&(p.length+l.length)%3===0&&(p.length%3!==0||l.length%3!==0)&&(m=!0),!m){const y=a>0&&!e[a-1].open?o[a-1]+1:0;o[i]=i-a+y,o[a]=y,l.open=!1,p.end=i,p.close=!1,d=-1,u=-2;break}}}d!==-1&&(t[l.marker][(l.open?3:0)+(l.length||0)%3]=d)}}function aw(e){const t=e.tokens_meta,n=e.tokens_meta.length;cf(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&cf(t[r].delimiters)}function cw(e){let t,n,r=0;const u=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)u[t].nesting<0&&r--,u[t].level=r,u[t].nesting>0&&r++,u[t].type==="text"&&t+1<o&&u[t+1].type==="text"?u[t+1].content=u[t].content+u[t+1].content:(t!==n&&(u[n]=u[t]),n++);t!==n&&(u.length=n)}const ys=[["text",B6],["linkify",H6],["newline",V6],["escape",W6],["backticks",q6],["strikethrough",lm.tokenize],["emphasis",sm.tokenize],["link",Y6],["image",X6],["autolink",tw],["html_inline",ow],["entity",sw]],bs=[["balance_pairs",aw],["strikethrough",lm.postProcess],["emphasis",sm.postProcess],["fragments_join",cw]];function Fo(){this.ruler=new nt;for(let e=0;e<ys.length;e++)this.ruler.push(ys[e][0],ys[e][1]);this.ruler2=new nt;for(let e=0;e<bs.length;e++)this.ruler2.push(bs[e][0],bs[e][1])}Fo.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,u=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let i=!1;if(e.level<u){for(let l=0;l<r;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};Fo.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,u=e.md.options.maxNesting;for(;e.pos<r;){const o=e.pos;let i=!1;if(e.level<u){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>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};Fo.prototype.parse=function(e,t,n,r){const u=new this.State(e,t,n,r);this.tokenize(u);const o=this.ruler2.getRules(""),i=o.length;for(let l=0;l<i;l++)o[l](u)};Fo.prototype.State=jo;function dw(e){const t={};e=e||{},t.src_Any=Z1.source,t.src_Cc=Q1.source,t.src_Z=X1.source,t.src_P=nd.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(r){e[r]=n[r]})}),e}function Nl(e){return Object.prototype.toString.call(e)}function fw(e){return Nl(e)==="[object String]"}function pw(e){return Nl(e)==="[object Object]"}function hw(e){return Nl(e)==="[object RegExp]"}function df(e){return Nl(e)==="[object Function]"}function mw(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const am={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function gw(e){return Object.keys(e||{}).reduce(function(t,n){return t||am.hasOwnProperty(n)},!1)}const xw={"http:":{validate:function(e,t,n){const r=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(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=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(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=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(r)?r.match(n.re.mailto)[0].length:0}}},vw="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]",yw="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function bw(e){e.__index__=-1,e.__text_cache__=""}function ww(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function ff(){return function(e,t){t.normalize(e)}}function Ji(e){const t=e.re=dw(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(vw),n.push(t.src_xn),t.src_tlds=n.join("|");function r(l){return l.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const u=[];e.__compiled__={};function o(l,s){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+s)}Object.keys(e.__schemas__).forEach(function(l){const s=e.__schemas__[l];if(s===null)return;const a={validate:null,link:null};if(e.__compiled__[l]=a,pw(s)){hw(s.validate)?a.validate=ww(s.validate):df(s.validate)?a.validate=s.validate:o(l,s),df(s.normalize)?a.normalize=s.normalize:s.normalize?o(l,s):a.normalize=ff();return}if(fw(s)){u.push(l);return}o(l,s)}),u.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:ff()};const i=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(mw).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"),bw(e)}function kw(e,t){const n=e.__index__,r=e.__last_index__,u=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=u,this.text=u,this.url=u}function La(e,t){const n=new kw(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function ft(e,t){if(!(this instanceof ft))return new ft(e,t);t||gw(e)&&(t=e,e={}),this.__opts__=Ma({},am,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Ma({},xw,e),this.__compiled__={},this.__tlds__=yw,this.__tlds_replaced__=!1,this.re={},Ji(this)}ft.prototype.add=function(t,n){return this.__schemas__[t]=n,Ji(this),this};ft.prototype.set=function(t){return this.__opts__=Ma(this.__opts__,t),this};ft.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,u,o,i,l,s,a,d;if(this.re.schema_test.test(t)){for(s=this.re.schema_search,s.lastIndex=0;(n=s.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],s.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:"]&&(a=t.search(this.re.host_fuzzy_test),a>=0&&(this.__index__<0||a<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=r.index+r[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=t.indexOf("@"),d>=0&&(u=t.match(this.re.email_fuzzy))!==null&&(i=u.index+u[1].length,l=u.index+u[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};ft.prototype.pretest=function(t){return this.re.pretest.test(t)};ft.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};ft.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(La(this,r)),r=this.__last_index__);let u=r?t.slice(r):t;for(;this.test(u);)n.push(La(this,r)),u=u.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};ft.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 r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,La(this,0)):null};ft.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,u,o){return r!==o[u-1]}).reverse(),Ji(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Ji(this),this)};ft.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};ft.prototype.onCompile=function(){};const qr=2147483647,Gt=36,ld=1,yo=26,Cw=38,_w=700,cm=72,dm=128,fm="-",Ew=/^xn--/,Sw=/[^\0-\x7F]/,Aw=/[\x2E\u3002\uFF0E\uFF61]/g,Nw={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ws=Gt-ld,Zt=Math.floor,ks=String.fromCharCode;function jn(e){throw new RangeError(Nw[e])}function Dw(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function pm(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(Aw,".");const u=e.split("."),o=Dw(u,t).join(".");return r+o}function hm(e){const t=[];let n=0;const r=e.length;for(;n<r;){const u=e.charCodeAt(n++);if(u>=55296&&u<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((u&1023)<<10)+(o&1023)+65536):(t.push(u),n--)}else t.push(u)}return t}const jw=e=>String.fromCodePoint(...e),Fw=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Gt},pf=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},mm=function(e,t,n){let r=0;for(e=n?Zt(e/_w):e>>1,e+=Zt(e/t);e>ws*yo>>1;r+=Gt)e=Zt(e/ws);return Zt(r+(ws+1)*e/(e+Cw))},gm=function(e){const t=[],n=e.length;let r=0,u=dm,o=cm,i=e.lastIndexOf(fm);i<0&&(i=0);for(let l=0;l<i;++l)e.charCodeAt(l)>=128&&jn("not-basic"),t.push(e.charCodeAt(l));for(let l=i>0?i+1:0;l<n;){const s=r;for(let d=1,p=Gt;;p+=Gt){l>=n&&jn("invalid-input");const m=Fw(e.charCodeAt(l++));m>=Gt&&jn("invalid-input"),m>Zt((qr-r)/d)&&jn("overflow"),r+=m*d;const y=p<=o?ld:p>=o+yo?yo:p-o;if(m<y)break;const v=Gt-y;d>Zt(qr/v)&&jn("overflow"),d*=v}const a=t.length+1;o=mm(r-s,a,s==0),Zt(r/a)>qr-u&&jn("overflow"),u+=Zt(r/a),r%=a,t.splice(r++,0,u)}return String.fromCodePoint(...t)},xm=function(e){const t=[];e=hm(e);const n=e.length;let r=dm,u=0,o=cm;for(const s of e)s<128&&t.push(ks(s));const i=t.length;let l=i;for(i&&t.push(fm);l<n;){let s=qr;for(const d of e)d>=r&&d<s&&(s=d);const a=l+1;s-r>Zt((qr-u)/a)&&jn("overflow"),u+=(s-r)*a,r=s;for(const d of e)if(d<r&&++u>qr&&jn("overflow"),d===r){let p=u;for(let m=Gt;;m+=Gt){const y=m<=o?ld:m>=o+yo?yo:m-o;if(p<y)break;const v=p-y,b=Gt-y;t.push(ks(pf(y+v%b,0))),p=Zt(v/b)}t.push(ks(pf(p,0))),o=mm(u,a,l===i),u=0,++l}++u,++r}return t.join("")},zw=function(e){return pm(e,function(t){return Ew.test(t)?gm(t.slice(4).toLowerCase()):t})},Rw=function(e){return pm(e,function(t){return Sw.test(t)?"xn--"+xm(t):t})},vm={version:"2.3.1",ucs2:{decode:hm,encode:jw},decode:gm,encode:xm,toASCII:Rw,toUnicode:zw},Pw={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Tw={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"]}}},Mw={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"]}}},Lw={default:Pw,zero:Tw,commonmark:Mw},Iw=/^(vbscript|javascript|file|data):/,Ow=/^data:image\/(gif|png|jpeg|webp);/;function $w(e){const t=e.trim().toLowerCase();return Iw.test(t)?Ow.test(t):!0}const ym=["http:","https:","mailto:"];function Bw(e){const t=td(e,!0);if(t.hostname&&(!t.protocol||ym.indexOf(t.protocol)>=0))try{t.hostname=vm.toASCII(t.hostname)}catch{}return Do(ed(t))}function Uw(e){const t=td(e,!0);if(t.hostname&&(!t.protocol||ym.indexOf(t.protocol)>=0))try{t.hostname=vm.toUnicode(t.hostname)}catch{}return nu(ed(t),nu.defaultChars+"%")}function _t(e,t){if(!(this instanceof _t))return new _t(e,t);t||rd(e)||(t=e||{},e="default"),this.inline=new Fo,this.block=new Al,this.core=new od,this.renderer=new mu,this.linkify=new ft,this.validateLink=$w,this.normalizeLink=Bw,this.normalizeLinkText=Uw,this.utils=V3,this.helpers=El({},G3),this.options={},this.configure(e),t&&this.set(t)}_t.prototype.set=function(e){return El(this.options,e),this};_t.prototype.configure=function(e){const t=this;if(rd(e)){const n=e;if(e=Lw[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};_t.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};_t.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};_t.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};_t.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};_t.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};_t.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};_t.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Hw=new _t({html:!1,breaks:!0,linkify:!0,typographer:!0});function Vw(e){return Hw.render(e)}function Ww({assets:e,currentIndex:t,onClose:n,onNavigate:r}){const u=()=>t>0&&r(t-1),o=()=>t<e.length-1&&r(t+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(pu,{size:20})}),t>0&&c.jsx("button",{onClick:i=>{i.stopPropagation(),u()},className:"absolute left-4 p-2 rounded-full bg-zinc-800/80 hover:bg-zinc-700 text-white z-10",children:c.jsx(M1,{size:24})}),t<e.length-1&&c.jsx("button",{onClick:i=>{i.stopPropagation(),o()},className:"absolute right-4 p-2 rounded-full bg-zinc-800/80 hover:bg-zinc-700 text-white z-10",children:c.jsx(Qc,{size:24})}),c.jsx("div",{className:"max-w-[90vw] max-h-[90vh]",onClick:i=>i.stopPropagation(),children:e[t].type==="image"?c.jsx("img",{src:e[t].url,alt:"",className:"max-w-full max-h-[90vh] object-contain rounded-lg"}):c.jsx("video",{src:e[t].url,controls:!0,autoPlay:!0,className:"max-w-full max-h-[90vh] rounded-lg"})}),e.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:[t+1," / ",e.length]})]})}function qw(e,t,n){return e.role==="user"?"done":n&&t?"thinking":!e.content&&!e.reasoningContent?"streaming":"done"}function Kw({message:e,isLast:t,isThinking:n,onRegenerate:r,onContinue:u,onQuote:o,onDelete:i}){const l=e.role==="user",s=e.role==="tool",[a,d]=g.useState(!1),[p,m]=g.useState(null),{toast:y}=Jc(),{confirmState:v,confirm:b,handleConfirm:C,handleCancel:x}=G1(),f=qw(e,!!t,!!n),h=g.useCallback(()=>{navigator.clipboard.writeText(e.content).then(()=>{y("已复制到剪贴板","success")})},[e.content,y]),w=g.useCallback(async()=>{await b({title:"删除消息",description:"确定要删除这条消息吗?",confirmText:"删除",variant:"danger"})&&(i==null||i(e.id))},[e.id,i,b]);if(s){let _="";try{_=JSON.parse(e.content).tool||""}catch{}return c.jsxs("div",{className:"py-1 px-3",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[c.jsx($0,{size:13,className:"text-zinc-400"}),c.jsxs("span",{className:"text-xs text-zinc-400",children:["工具调用: ",_]})]}),e.assets&&e.assets.length>0&&c.jsx("div",{className:"flex flex-wrap gap-2",children:e.assets.map((S,E)=>c.jsxs("button",{onClick:()=>m(E),className:"relative group/thumb rounded-lg overflow-hidden border border-zinc-200 hover:border-indigo-300 transition-colors",children:[S.type==="image"?c.jsx("img",{src:S.url,alt:S.name,className:"w-20 h-20 object-cover"}):c.jsx("div",{className:"w-20 h-20 bg-zinc-900 flex items-center justify-center",children:c.jsx(L1,{size:20,className:"text-white"})}),c.jsx("div",{className:"absolute inset-0 bg-black/0 group-hover/thumb:bg-black/10 transition-colors"})]},E))}),p!==null&&e.assets&&c.jsx(Ww,{assets:e.assets,currentIndex:p,onClose:()=>m(null),onNavigate:S=>m(S)})]})}const k=f==="done"&&!l&&e.content;return c.jsxs("div",{className:Xe("flex gap-3 mb-5 group/msg",l?"flex-row-reverse":"flex-row"),children:[c.jsx("div",{className:Xe("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(lb,{size:14}):c.jsx($0,{size:14})}),c.jsxs("div",{className:Xe("flex-1 max-w-[78%]",l&&"flex flex-col items-end"),children:[f==="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(ps,{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(!a),className:"flex items-center gap-1.5 text-xs text-zinc-400 hover:text-zinc-600 transition-colors py-1",children:[f==="streaming"||f==="thinking"?c.jsx(ps,{size:12,className:"animate-pulse text-indigo-400"}):c.jsx(ps,{size:12}),c.jsx("span",{children:f==="done"?"深度思考":"思考中..."}),f==="done"&&(a?c.jsx(T1,{size:12}):c.jsx(Qc,{size:12}))]}),(a||f!=="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})]}),f==="streaming"&&!e.content&&!l&&c.jsxs("div",{className:"inline-flex items-center gap-1.5 py-2",children:[c.jsx("span",{className:"inline-block w-1.5 h-1.5 bg-indigo-400 rounded-full animate-bounce [animation-delay:0ms]"}),c.jsx("span",{className:"inline-block w-1.5 h-1.5 bg-indigo-400 rounded-full animate-bounce [animation-delay:150ms]"}),c.jsx("span",{className:"inline-block w-1.5 h-1.5 bg-indigo-400 rounded-full animate-bounce [animation-delay:300ms]"})]}),!(e.content==="(调用工具)"&&f==="done"&&e.reasoningContent)&&!(f==="streaming"&&!e.content&&!l)&&c.jsx("div",{className:Xe("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: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:Vw(e.content)}})}),k&&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:h,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(Yy,{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(tb,{size:10}),"引用"]}),c.jsxs("button",{onClick:w,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(No,{size:10}),"删除"]}),c.jsxs("button",{onClick:()=>r==null?void 0:r(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(Yc,{size:10}),"重新生成"]}),c.jsxs("button",{onClick:()=>u==null?void 0:u(),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(qy,{size:10}),"继续"]})]})]}),c.jsx(q1,{open:v.open,title:v.title,description:v.description,confirmText:v.confirmText,cancelText:v.cancelText,variant:v.variant,onConfirm:C,onCancel:x})]})}const Gw=[{cmd:"/run",desc:"执行 pipeline 阶段",icon:L1},{cmd:"/status",desc:"查看管线进度",icon:H0},{cmd:"/images",desc:"生成图片",icon:hr},{cmd:"/list",desc:"列出可用账号",icon:Xy},{cmd:"/help",desc:"显示帮助",icon:H0}];function hf({onSend:e,disabled:t}){const[n,r]=g.useState(""),[u,o]=g.useState(!1),[i,l]=g.useState(0),[s,a]=g.useState([]),[d,p]=g.useState(!1),m=g.useRef(null),y=g.useRef(null),v=n.startsWith("/")?Gw.filter(E=>E.cmd.startsWith(n.split(" ")[0])):[],b=E=>{if(E.length===0)return;let A=0;const D=[];E.forEach((z,M)=>{const U=new FileReader;U.onload=()=>{const T=U.result.split(",")[1];D[M]={data:T,mimeType:z.type,preview:U.result},A++,A===E.length&&a(I=>[...I,...D])},U.readAsDataURL(z)})},C=E=>{E.target.files&&b(Array.from(E.target.files)),E.target.value=""},x=E=>{E.preventDefault(),d||p(!0)},f=E=>{E.preventDefault(),p(!1)},h=E=>{E.preventDefault(),p(!1);const A=Array.from(E.dataTransfer.files).filter(D=>D.type.startsWith("image/"));A.length>0&&b(A)},w=E=>{a(A=>A.filter((D,z)=>z!==E))},k=()=>{var D;const E=n.trim();if(!E&&s.length===0||t)return;const A=s.length>0?s.map(({data:z,mimeType:M})=>({data:z,mimeType:M})):void 0;e(E||"(图片)",A),r(""),a([]),o(!1),(D=y.current)==null||D.focus()},_=E=>{if(u&&v.length>0){if(E.key==="Tab"){E.preventDefault(),r(v[i%v.length].cmd+" "),o(!1);return}if(E.key==="ArrowDown"){E.preventDefault(),l(A=>(A+1)%v.length);return}if(E.key==="ArrowUp"){E.preventDefault(),l(A=>(A-1+v.length)%v.length);return}}if(E.key==="Escape"){o(!1);return}E.key==="Enter"&&!E.shiftKey&&(E.preventDefault(),k())},S=(n.trim().length>0||s.length>0)&&!t;return c.jsxs("div",{className:"relative",children:[u&&v.length>0&&c.jsx("div",{className:"mx-6 mb-1 bg-white border border-zinc-200 rounded-2xl shadow-xl shadow-zinc-200/50 overflow-hidden animate-in slide-in-from-bottom-2",children:v.map((E,A)=>{const D=E.icon;return c.jsxs("button",{onClick:()=>{var z;r(E.cmd+" "),o(!1),(z=y.current)==null||z.focus()},className:`w-full flex items-center gap-3 px-4 py-2.5 text-sm transition-colors ${A===i%v.length?"bg-zinc-50 text-zinc-900":"text-zinc-500 hover:bg-zinc-50"}`,children:[c.jsx(D,{size:15,className:"text-zinc-400"}),c.jsx("span",{className:"font-mono font-medium text-xs",children:E.cmd}),c.jsx("span",{className:"text-zinc-400 text-xs",children:E.desc})]},E.cmd)})}),c.jsx("div",{className:"px-5 pb-5 pt-3",onDragOver:x,onDragLeave:f,onDrop:h,children:c.jsxs("div",{className:`
bg-white rounded-3xl border transition-all duration-300 relative
${d?"border-zinc-400 shadow-xl shadow-zinc-200/60":t?"border-zinc-100 opacity-50":"border-zinc-200/80 shadow-lg shadow-zinc-100/50 focus-within:border-zinc-300 focus-within:shadow-xl focus-within:shadow-zinc-200/40"}
`,children:[d&&c.jsx("div",{className:"absolute inset-0 rounded-3xl bg-zinc-50/80 backdrop-blur-sm z-10 flex items-center justify-center pointer-events-none",children:c.jsx("span",{className:"text-sm text-zinc-400 font-medium",children:"松开以添加图片"})}),s.length>0&&c.jsx("div",{className:"flex flex-wrap gap-2.5 px-5 pt-4",children:s.map((E,A)=>c.jsxs("div",{className:"relative group/att",children:[c.jsx("img",{src:E.preview,alt:"",className:"w-20 h-20 object-cover rounded-2xl shadow-sm"}),c.jsx("button",{onClick:()=>w(A),className:"absolute -top-2 -right-2 w-5 h-5 bg-zinc-900 text-white rounded-full flex items-center justify-center opacity-0 group-hover/att:opacity-100 transition-all duration-200 scale-75 group-hover/att:scale-100",children:c.jsx(pu,{size:10,strokeWidth:3})})]},A))}),c.jsxs("div",{className:"flex items-end gap-1 px-3 py-3",children:[c.jsx("button",{onClick:()=>{var E;return(E=m.current)==null?void 0:E.click()},disabled:t,className:"flex-shrink-0 w-10 h-10 rounded-2xl flex items-center justify-center text-zinc-300 hover:text-zinc-500 hover:bg-zinc-50 active:scale-95 transition-all duration-200 disabled:opacity-40",children:c.jsx(eb,{size:20,strokeWidth:1.8})}),c.jsx("input",{ref:m,type:"file",accept:"image/*",multiple:!0,onChange:C,className:"hidden"}),c.jsx("textarea",{ref:y,value:n,onChange:E=>r(E.target.value),onKeyDown:_,rows:1,placeholder:t?"等待回复中...":"输入消息...",className:"flex-1 bg-transparent text-[15px] resize-none outline-none placeholder:text-zinc-300 text-zinc-800 min-h-[40px] max-h-[140px] py-2 leading-relaxed",disabled:t,style:{height:"auto"},onInput:E=>{const A=E.currentTarget;A.style.height="auto",A.style.height=Math.min(A.scrollHeight,140)+"px"}}),c.jsx("button",{onClick:k,disabled:!S,className:`
flex-shrink-0 w-10 h-10 rounded-2xl flex items-center justify-center transition-all duration-200
${S?"bg-zinc-900 text-white hover:bg-zinc-800 active:scale-90":"bg-zinc-100 text-zinc-300"}
`,children:c.jsx(Ky,{size:18,strokeWidth:2.5})})]})]})})]})}function Zw({phase:e,progress:t,currentItem:n,totalItems:r,status:u}){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&&r?` (${n}/${r})`:""]}),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:Xe("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}%`}})}),u&&c.jsx("p",{className:"text-xs text-zinc-500 mt-1.5",children:u})]})}const mf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,gf=O1,Qw=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return gf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:u,defaultVariants:o}=t,i=Object.keys(u).map(a=>{const d=n==null?void 0:n[a],p=o==null?void 0:o[a];if(d===null)return null;const m=mf(d)||mf(p);return u[a][m]}),l=n&&Object.entries(n).reduce((a,d)=>{let[p,m]=d;return m===void 0||(a[p]=m),a},{}),s=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((a,d)=>{let{class:p,className:m,...y}=d;return Object.entries(y).every(v=>{let[b,C]=v;return Array.isArray(C)?C.includes({...o,...l}[b]):{...o,...l}[b]===C})?[...a,p,m]:a},[]);return gf(e,i,s,n==null?void 0:n.class,n==null?void 0:n.className)},Yw=Qw("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"}}),It=g.forwardRef(({className:e,variant:t,size:n,...r},u)=>c.jsx("button",{className:Xe(Yw({variant:t,size:n,className:e})),ref:u,...r}));It.displayName="Button";function xf(e,[t,n]){return Math.min(n,Math.max(t,e))}function Ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(u){if(e==null||e(u),n===!1||!u.defaultPrevented)return t==null?void 0:t(u)}}function sd(e,t=[]){let n=[];function r(o,i){const l=g.createContext(i),s=n.length;n=[...n,i];const a=p=>{var x;const{scope:m,children:y,...v}=p,b=((x=m==null?void 0:m[e])==null?void 0:x[s])||l,C=g.useMemo(()=>v,Object.values(v));return c.jsx(b.Provider,{value:C,children:y})};a.displayName=o+"Provider";function d(p,m){var b;const y=((b=m==null?void 0:m[e])==null?void 0:b[s])||l,v=g.useContext(y);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[a,d]}const u=()=>{const o=n.map(i=>g.createContext(i));return function(l){const s=(l==null?void 0:l[e])||o;return g.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return u.scopeName=e,[r,Xw(u,...t)]}function Xw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(o){const i=r.reduce((l,{useScope:s,scopeName:a})=>{const p=s(o)[`__scope${a}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function vf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function bm(...e){return t=>{let n=!1;const r=e.map(u=>{const o=vf(u,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let u=0;u<r.length;u++){const o=r[u];typeof o=="function"?o():vf(e[u],null)}}}}function Oe(...e){return g.useCallback(bm(...e),e)}function el(e){const t=Jw(e),n=g.forwardRef((r,u)=>{const{children:o,...i}=r,l=g.Children.toArray(o),s=l.find(t4);if(s){const a=s.props.children,d=l.map(p=>p===s?g.Children.count(a)>1?g.Children.only(null):g.isValidElement(a)?a.props.children:null:p);return c.jsx(t,{...i,ref:u,children:g.isValidElement(a)?g.cloneElement(a,void 0,d):null})}return c.jsx(t,{...i,ref:u,children:o})});return n.displayName=`${e}.Slot`,n}function Jw(e){const t=g.forwardRef((n,r)=>{const{children:u,...o}=n;if(g.isValidElement(u)){const i=r4(u),l=n4(o,u.props);return u.type!==g.Fragment&&(l.ref=r?bm(r,i):i),g.cloneElement(u,l)}return g.Children.count(u)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var e4=Symbol("radix.slottable");function t4(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===e4}function n4(e,t){const n={...t};for(const r in t){const u=e[r],o=t[r];/^on[A-Z]/.test(r)?u&&o?n[r]=(...l)=>{const s=o(...l);return u(...l),s}:u&&(n[r]=u):r==="style"?n[r]={...u,...o}:r==="className"&&(n[r]=[u,o].filter(Boolean).join(" "))}return{...e,...n}}function r4(e){var r,u;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function u4(e){const t=e+"CollectionProvider",[n,r]=sd(t),[u,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=b=>{const{scope:C,children:x}=b,f=it.useRef(null),h=it.useRef(new Map).current;return c.jsx(u,{scope:C,itemMap:h,collectionRef:f,children:x})};i.displayName=t;const l=e+"CollectionSlot",s=el(l),a=it.forwardRef((b,C)=>{const{scope:x,children:f}=b,h=o(l,x),w=Oe(C,h.collectionRef);return c.jsx(s,{ref:w,children:f})});a.displayName=l;const d=e+"CollectionItemSlot",p="data-radix-collection-item",m=el(d),y=it.forwardRef((b,C)=>{const{scope:x,children:f,...h}=b,w=it.useRef(null),k=Oe(C,w),_=o(d,x);return it.useEffect(()=>(_.itemMap.set(w,{ref:w,...h}),()=>void _.itemMap.delete(w))),c.jsx(m,{[p]:"",ref:k,children:f})});y.displayName=d;function v(b){const C=o(e+"CollectionConsumer",b);return it.useCallback(()=>{const f=C.collectionRef.current;if(!f)return[];const h=Array.from(f.querySelectorAll(`[${p}]`));return Array.from(C.itemMap.values()).sort((_,S)=>h.indexOf(_.ref.current)-h.indexOf(S.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:i,Slot:a,ItemSlot:y},v,r]}var o4=g.createContext(void 0);function i4(e){const t=g.useContext(o4);return e||t||"ltr"}var l4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ce=l4.reduce((e,t)=>{const n=el(`Primitive.${t}`),r=g.forwardRef((u,o)=>{const{asChild:i,...l}=u,s=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(s,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function s4(e,t){e&&su.flushSync(()=>e.dispatchEvent(t))}function mr(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function a4(e,t=globalThis==null?void 0:globalThis.document){const n=mr(e);g.useEffect(()=>{const r=u=>{u.key==="Escape"&&n(u)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var c4="DismissableLayer",Ia="dismissableLayer.update",d4="dismissableLayer.pointerDownOutside",f4="dismissableLayer.focusOutside",yf,wm=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),km=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:u,onFocusOutside:o,onInteractOutside:i,onDismiss:l,...s}=e,a=g.useContext(wm),[d,p]=g.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=g.useState({}),v=Oe(t,S=>p(S)),b=Array.from(a.layers),[C]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(C),f=d?b.indexOf(d):-1,h=a.layersWithOutsidePointerEventsDisabled.size>0,w=f>=x,k=m4(S=>{const E=S.target,A=[...a.branches].some(D=>D.contains(E));!w||A||(u==null||u(S),i==null||i(S),S.defaultPrevented||l==null||l())},m),_=g4(S=>{const E=S.target;[...a.branches].some(D=>D.contains(E))||(o==null||o(S),i==null||i(S),S.defaultPrevented||l==null||l())},m);return a4(S=>{f===a.layers.size-1&&(r==null||r(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},m),g.useEffect(()=>{if(d)return n&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(yf=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(d)),a.layers.add(d),bf(),()=>{n&&a.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=yf)}},[d,m,n,a]),g.useEffect(()=>()=>{d&&(a.layers.delete(d),a.layersWithOutsidePointerEventsDisabled.delete(d),bf())},[d,a]),g.useEffect(()=>{const S=()=>y({});return document.addEventListener(Ia,S),()=>document.removeEventListener(Ia,S)},[]),c.jsx(Ce.div,{...s,ref:v,style:{pointerEvents:h?w?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,k.onPointerDownCapture)})});km.displayName=c4;var p4="DismissableLayerBranch",h4=g.forwardRef((e,t)=>{const n=g.useContext(wm),r=g.useRef(null),u=Oe(t,r);return g.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),c.jsx(Ce.div,{...e,ref:u})});h4.displayName=p4;function m4(e,t=globalThis==null?void 0:globalThis.document){const n=mr(e),r=g.useRef(!1),u=g.useRef(()=>{});return g.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let s=function(){Cm(d4,n,a,{discrete:!0})};const a={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",u.current),u.current=s,t.addEventListener("click",u.current,{once:!0})):s()}else t.removeEventListener("click",u.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",u.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function g4(e,t=globalThis==null?void 0:globalThis.document){const n=mr(e),r=g.useRef(!1);return g.useEffect(()=>{const u=o=>{o.target&&!r.current&&Cm(f4,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",u),()=>t.removeEventListener("focusin",u)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function bf(){const e=new CustomEvent(Ia);document.dispatchEvent(e)}function Cm(e,t,n,{discrete:r}){const u=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&u.addEventListener(e,t,{once:!0}),r?s4(u,o):u.dispatchEvent(o)}var Cs=0;function x4(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??wf()),document.body.insertAdjacentElement("beforeend",e[1]??wf()),Cs++,()=>{Cs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Cs--}},[])}function wf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _s="focusScope.autoFocusOnMount",Es="focusScope.autoFocusOnUnmount",kf={bubbles:!1,cancelable:!0},v4="FocusScope",_m=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:u,onUnmountAutoFocus:o,...i}=e,[l,s]=g.useState(null),a=mr(u),d=mr(o),p=g.useRef(null),m=Oe(t,b=>s(b)),y=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let b=function(h){if(y.paused||!l)return;const w=h.target;l.contains(w)?p.current=w:An(p.current,{select:!0})},C=function(h){if(y.paused||!l)return;const w=h.relatedTarget;w!==null&&(l.contains(w)||An(p.current,{select:!0}))},x=function(h){if(document.activeElement===document.body)for(const k of h)k.removedNodes.length>0&&An(l)};document.addEventListener("focusin",b),document.addEventListener("focusout",C);const f=new MutationObserver(x);return l&&f.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",C),f.disconnect()}}},[r,l,y.paused]),g.useEffect(()=>{if(l){_f.add(y);const b=document.activeElement;if(!l.contains(b)){const x=new CustomEvent(_s,kf);l.addEventListener(_s,a),l.dispatchEvent(x),x.defaultPrevented||(y4(_4(Em(l)),{select:!0}),document.activeElement===b&&An(l))}return()=>{l.removeEventListener(_s,a),setTimeout(()=>{const x=new CustomEvent(Es,kf);l.addEventListener(Es,d),l.dispatchEvent(x),x.defaultPrevented||An(b??document.body,{select:!0}),l.removeEventListener(Es,d),_f.remove(y)},0)}}},[l,a,d,y]);const v=g.useCallback(b=>{if(!n&&!r||y.paused)return;const C=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,x=document.activeElement;if(C&&x){const f=b.currentTarget,[h,w]=b4(f);h&&w?!b.shiftKey&&x===w?(b.preventDefault(),n&&An(h,{select:!0})):b.shiftKey&&x===h&&(b.preventDefault(),n&&An(w,{select:!0})):x===f&&b.preventDefault()}},[n,r,y.paused]);return c.jsx(Ce.div,{tabIndex:-1,...i,ref:m,onKeyDown:v})});_m.displayName=v4;function y4(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(An(r,{select:t}),document.activeElement!==n)return}function b4(e){const t=Em(e),n=Cf(t,e),r=Cf(t.reverse(),e);return[n,r]}function Em(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const u=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||u?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Cf(e,t){for(const n of e)if(!w4(n,{upTo:t}))return n}function w4(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function k4(e){return e instanceof HTMLInputElement&&"select"in e}function An(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&k4(e)&&t&&e.select()}}var _f=C4();function C4(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ef(e,t),e.unshift(t)},remove(t){var n;e=Ef(e,t),(n=e[0])==null||n.resume()}}}function Ef(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function _4(e){return e.filter(t=>t.tagName!=="A")}var rt=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},E4=ap[" useId ".trim().toString()]||(()=>{}),S4=0;function ad(e){const[t,n]=g.useState(E4());return rt(()=>{n(r=>r??String(S4++))},[e]),t?`radix-${t}`:""}const A4=["top","right","bottom","left"],Gn=Math.min,lt=Math.max,tl=Math.round,ei=Math.floor,tn=e=>({x:e,y:e}),N4={left:"right",right:"left",bottom:"top",top:"bottom"};function Oa(e,t,n){return lt(e,Gn(t,n))}function vn(e,t){return typeof e=="function"?e(t):e}function yn(e){return e.split("-")[0]}function gu(e){return e.split("-")[1]}function cd(e){return e==="x"?"y":"x"}function dd(e){return e==="y"?"height":"width"}function Qt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function fd(e){return cd(Qt(e))}function D4(e,t,n){n===void 0&&(n=!1);const r=gu(e),u=fd(e),o=dd(u);let i=u==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=nl(i)),[i,nl(i)]}function j4(e){const t=nl(e);return[$a(e),t,$a(t)]}function $a(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Sf=["left","right"],Af=["right","left"],F4=["top","bottom"],z4=["bottom","top"];function R4(e,t,n){switch(e){case"top":case"bottom":return n?t?Af:Sf:t?Sf:Af;case"left":case"right":return t?F4:z4;default:return[]}}function P4(e,t,n,r){const u=gu(e);let o=R4(yn(e),n==="start",r);return u&&(o=o.map(i=>i+"-"+u),t&&(o=o.concat(o.map($a)))),o}function nl(e){const t=yn(e);return N4[t]+e.slice(t.length)}function T4(e){return{top:0,right:0,bottom:0,left:0,...e}}function Sm(e){return typeof e!="number"?T4(e):{top:e,right:e,bottom:e,left:e}}function rl(e){const{x:t,y:n,width:r,height:u}=e;return{width:r,height:u,top:n,left:t,right:t+r,bottom:n+u,x:t,y:n}}function Nf(e,t,n){let{reference:r,floating:u}=e;const o=Qt(t),i=fd(t),l=dd(i),s=yn(t),a=o==="y",d=r.x+r.width/2-u.width/2,p=r.y+r.height/2-u.height/2,m=r[l]/2-u[l]/2;let y;switch(s){case"top":y={x:d,y:r.y-u.height};break;case"bottom":y={x:d,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-u.width,y:p};break;default:y={x:r.x,y:r.y}}switch(gu(t)){case"start":y[i]-=m*(n&&a?-1:1);break;case"end":y[i]+=m*(n&&a?-1:1);break}return y}async function M4(e,t){var n;t===void 0&&(t={});const{x:r,y:u,platform:o,rects:i,elements:l,strategy:s}=e,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:y=0}=vn(t,e),v=Sm(y),C=l[m?p==="floating"?"reference":"floating":p],x=rl(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(C)))==null||n?C:C.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:a,rootBoundary:d,strategy:s})),f=p==="floating"?{x:r,y:u,width:i.floating.width,height:i.floating.height}:i.reference,h=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),w=await(o.isElement==null?void 0:o.isElement(h))?await(o.getScale==null?void 0:o.getScale(h))||{x:1,y:1}:{x:1,y:1},k=rl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:f,offsetParent:h,strategy:s}):f);return{top:(x.top-k.top+v.top)/w.y,bottom:(k.bottom-x.bottom+v.bottom)/w.y,left:(x.left-k.left+v.left)/w.x,right:(k.right-x.right+v.right)/w.x}}const L4=50,I4=async(e,t,n)=>{const{placement:r="bottom",strategy:u="absolute",middleware:o=[],platform:i}=n,l=i.detectOverflow?i:{...i,detectOverflow:M4},s=await(i.isRTL==null?void 0:i.isRTL(t));let a=await i.getElementRects({reference:e,floating:t,strategy:u}),{x:d,y:p}=Nf(a,r,s),m=r,y=0;const v={};for(let b=0;b<o.length;b++){const C=o[b];if(!C)continue;const{name:x,fn:f}=C,{x:h,y:w,data:k,reset:_}=await f({x:d,y:p,initialPlacement:r,placement:m,strategy:u,middlewareData:v,rects:a,platform:l,elements:{reference:e,floating:t}});d=h??d,p=w??p,v[x]={...v[x],...k},_&&y<L4&&(y++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(a=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:u}):_.rects),{x:d,y:p}=Nf(a,m,s)),b=-1)}return{x:d,y:p,placement:m,strategy:u,middlewareData:v}},O4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:u,rects:o,platform:i,elements:l,middlewareData:s}=t,{element:a,padding:d=0}=vn(e,t)||{};if(a==null)return{};const p=Sm(d),m={x:n,y:r},y=fd(u),v=dd(y),b=await i.getDimensions(a),C=y==="y",x=C?"top":"left",f=C?"bottom":"right",h=C?"clientHeight":"clientWidth",w=o.reference[v]+o.reference[y]-m[y]-o.floating[v],k=m[y]-o.reference[y],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a));let S=_?_[h]:0;(!S||!await(i.isElement==null?void 0:i.isElement(_)))&&(S=l.floating[h]||o.floating[v]);const E=w/2-k/2,A=S/2-b[v]/2-1,D=Gn(p[x],A),z=Gn(p[f],A),M=D,U=S-b[v]-z,T=S/2-b[v]/2+E,I=Oa(M,T,U),B=!s.arrow&&gu(u)!=null&&T!==I&&o.reference[v]/2-(T<M?D:z)-b[v]/2<0,$=B?T<M?T-M:T-U:0;return{[y]:m[y]+$,data:{[y]:I,centerOffset:T-I-$,...B&&{alignmentOffset:$}},reset:B}}}),$4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:u,middlewareData:o,rects:i,initialPlacement:l,platform:s,elements:a}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,...C}=vn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=yn(u),f=Qt(l),h=yn(l)===l,w=await(s.isRTL==null?void 0:s.isRTL(a.floating)),k=m||(h||!b?[nl(l)]:j4(l)),_=v!=="none";!m&&_&&k.push(...P4(l,b,v,w));const S=[l,...k],E=await s.detectOverflow(t,C),A=[];let D=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&A.push(E[x]),p){const T=D4(u,i,w);A.push(E[T[0]],E[T[1]])}if(D=[...D,{placement:u,overflows:A}],!A.every(T=>T<=0)){var z,M;const T=(((z=o.flip)==null?void 0:z.index)||0)+1,I=S[T];if(I&&(!(p==="alignment"?f!==Qt(I):!1)||D.every(N=>Qt(N.placement)===f?N.overflows[0]>0:!0)))return{data:{index:T,overflows:D},reset:{placement:I}};let B=(M=D.filter($=>$.overflows[0]<=0).sort(($,N)=>$.overflows[1]-N.overflows[1])[0])==null?void 0:M.placement;if(!B)switch(y){case"bestFit":{var U;const $=(U=D.filter(N=>{if(_){const P=Qt(N.placement);return P===f||P==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(P=>P>0).reduce((P,j)=>P+j,0)]).sort((N,P)=>N[1]-P[1])[0])==null?void 0:U[0];$&&(B=$);break}case"initialPlacement":B=l;break}if(u!==B)return{reset:{placement:B}}}return{}}}};function Df(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jf(e){return A4.some(t=>e[t]>=0)}const B4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:u="referenceHidden",...o}=vn(e,t);switch(u){case"referenceHidden":{const i=await r.detectOverflow(t,{...o,elementContext:"reference"}),l=Df(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:jf(l)}}}case"escaped":{const i=await r.detectOverflow(t,{...o,altBoundary:!0}),l=Df(i,n.floating);return{data:{escapedOffsets:l,escaped:jf(l)}}}default:return{}}}}},Am=new Set(["left","top"]);async function U4(e,t){const{placement:n,platform:r,elements:u}=e,o=await(r.isRTL==null?void 0:r.isRTL(u.floating)),i=yn(n),l=gu(n),s=Qt(n)==="y",a=Am.has(i)?-1:1,d=o&&s?-1:1,p=vn(t,e);let{mainAxis:m,crossAxis:y,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof v=="number"&&(y=l==="end"?v*-1:v),s?{x:y*d,y:m*a}:{x:m*a,y:y*d}}const H4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:u,y:o,placement:i,middlewareData:l}=t,s=await U4(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:u+s.x,y:o+s.y,data:{...s,placement:i}}}}},V4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:u,platform:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:x=>{let{x:f,y:h}=x;return{x:f,y:h}}},...a}=vn(e,t),d={x:n,y:r},p=await o.detectOverflow(t,a),m=Qt(yn(u)),y=cd(m);let v=d[y],b=d[m];if(i){const x=y==="y"?"top":"left",f=y==="y"?"bottom":"right",h=v+p[x],w=v-p[f];v=Oa(h,v,w)}if(l){const x=m==="y"?"top":"left",f=m==="y"?"bottom":"right",h=b+p[x],w=b-p[f];b=Oa(h,b,w)}const C=s.fn({...t,[y]:v,[m]:b});return{...C,data:{x:C.x-n,y:C.y-r,enabled:{[y]:i,[m]:l}}}}}},W4=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:u,rects:o,middlewareData:i}=t,{offset:l=0,mainAxis:s=!0,crossAxis:a=!0}=vn(e,t),d={x:n,y:r},p=Qt(u),m=cd(p);let y=d[m],v=d[p];const b=vn(l,t),C=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(s){const h=m==="y"?"height":"width",w=o.reference[m]-o.floating[h]+C.mainAxis,k=o.reference[m]+o.reference[h]-C.mainAxis;y<w?y=w:y>k&&(y=k)}if(a){var x,f;const h=m==="y"?"width":"height",w=Am.has(yn(u)),k=o.reference[p]-o.floating[h]+(w&&((x=i.offset)==null?void 0:x[p])||0)+(w?0:C.crossAxis),_=o.reference[p]+o.reference[h]+(w?0:((f=i.offset)==null?void 0:f[p])||0)-(w?C.crossAxis:0);v<k?v=k:v>_&&(v=_)}return{[m]:y,[p]:v}}}},q4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:u,rects:o,platform:i,elements:l}=t,{apply:s=()=>{},...a}=vn(e,t),d=await i.detectOverflow(t,a),p=yn(u),m=gu(u),y=Qt(u)==="y",{width:v,height:b}=o.floating;let C,x;p==="top"||p==="bottom"?(C=p,x=m===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(x=p,C=m==="end"?"top":"bottom");const f=b-d.top-d.bottom,h=v-d.left-d.right,w=Gn(b-d[C],f),k=Gn(v-d[x],h),_=!t.middlewareData.shift;let S=w,E=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=h),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=f),_&&!m){const D=lt(d.left,0),z=lt(d.right,0),M=lt(d.top,0),U=lt(d.bottom,0);y?E=v-2*(D!==0||z!==0?D+z:lt(d.left,d.right)):S=b-2*(M!==0||U!==0?M+U:lt(d.top,d.bottom))}await s({...t,availableWidth:E,availableHeight:S});const A=await i.getDimensions(l.floating);return v!==A.width||b!==A.height?{reset:{rects:!0}}:{}}}};function Dl(){return typeof window<"u"}function xu(e){return Nm(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function un(e){var t;return(t=(Nm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Nm(e){return Dl()?e instanceof Node||e instanceof ct(e).Node:!1}function Ot(e){return Dl()?e instanceof Element||e instanceof ct(e).Element:!1}function wn(e){return Dl()?e instanceof HTMLElement||e instanceof ct(e).HTMLElement:!1}function Ff(e){return!Dl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}function zo(e){const{overflow:t,overflowX:n,overflowY:r,display:u}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&u!=="inline"&&u!=="contents"}function K4(e){return/^(table|td|th)$/.test(xu(e))}function jl(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const G4=/transform|translate|scale|rotate|perspective|filter/,Z4=/paint|layout|strict|content/,tr=e=>!!e&&e!=="none";let Ss;function pd(e){const t=Ot(e)?$t(e):e;return tr(t.transform)||tr(t.translate)||tr(t.scale)||tr(t.rotate)||tr(t.perspective)||!hd()&&(tr(t.backdropFilter)||tr(t.filter))||G4.test(t.willChange||"")||Z4.test(t.contain||"")}function Q4(e){let t=Zn(e);for(;wn(t)&&!uu(t);){if(pd(t))return t;if(jl(t))return null;t=Zn(t)}return null}function hd(){return Ss==null&&(Ss=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ss}function uu(e){return/^(html|body|#document)$/.test(xu(e))}function $t(e){return ct(e).getComputedStyle(e)}function Fl(e){return Ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zn(e){if(xu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ff(e)&&e.host||un(e);return Ff(t)?t.host:t}function Dm(e){const t=Zn(e);return uu(t)?e.ownerDocument?e.ownerDocument.body:e.body:wn(t)&&zo(t)?t:Dm(t)}function bo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const u=Dm(e),o=u===((r=e.ownerDocument)==null?void 0:r.body),i=ct(u);if(o){const l=Ba(i);return t.concat(i,i.visualViewport||[],zo(u)?u:[],l&&n?bo(l):[])}else return t.concat(u,bo(u,[],n))}function Ba(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jm(e){const t=$t(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const u=wn(e),o=u?e.offsetWidth:n,i=u?e.offsetHeight:r,l=tl(n)!==o||tl(r)!==i;return l&&(n=o,r=i),{width:n,height:r,$:l}}function md(e){return Ot(e)?e:e.contextElement}function Kr(e){const t=md(e);if(!wn(t))return tn(1);const n=t.getBoundingClientRect(),{width:r,height:u,$:o}=jm(t);let i=(o?tl(n.width):n.width)/r,l=(o?tl(n.height):n.height)/u;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Y4=tn(0);function Fm(e){const t=ct(e);return!hd()||!t.visualViewport?Y4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function X4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ct(e)?!1:t}function gr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const u=e.getBoundingClientRect(),o=md(e);let i=tn(1);t&&(r?Ot(r)&&(i=Kr(r)):i=Kr(e));const l=X4(o,n,r)?Fm(o):tn(0);let s=(u.left+l.x)/i.x,a=(u.top+l.y)/i.y,d=u.width/i.x,p=u.height/i.y;if(o){const m=ct(o),y=r&&Ot(r)?ct(r):r;let v=m,b=Ba(v);for(;b&&r&&y!==v;){const C=Kr(b),x=b.getBoundingClientRect(),f=$t(b),h=x.left+(b.clientLeft+parseFloat(f.paddingLeft))*C.x,w=x.top+(b.clientTop+parseFloat(f.paddingTop))*C.y;s*=C.x,a*=C.y,d*=C.x,p*=C.y,s+=h,a+=w,v=ct(b),b=Ba(v)}}return rl({width:d,height:p,x:s,y:a})}function zl(e,t){const n=Fl(e).scrollLeft;return t?t.left+n:gr(un(e)).left+n}function zm(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-zl(e,n),u=n.top+t.scrollTop;return{x:r,y:u}}function J4(e){let{elements:t,rect:n,offsetParent:r,strategy:u}=e;const o=u==="fixed",i=un(r),l=t?jl(t.floating):!1;if(r===i||l&&o)return n;let s={scrollLeft:0,scrollTop:0},a=tn(1);const d=tn(0),p=wn(r);if((p||!p&&!o)&&((xu(r)!=="body"||zo(i))&&(s=Fl(r)),p)){const y=gr(r);a=Kr(r),d.x=y.x+r.clientLeft,d.y=y.y+r.clientTop}const m=i&&!p&&!o?zm(i,s):tn(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+d.x+m.x,y:n.y*a.y-s.scrollTop*a.y+d.y+m.y}}function ek(e){return Array.from(e.getClientRects())}function tk(e){const t=un(e),n=Fl(e),r=e.ownerDocument.body,u=lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+zl(e);const l=-n.scrollTop;return $t(r).direction==="rtl"&&(i+=lt(t.clientWidth,r.clientWidth)-u),{width:u,height:o,x:i,y:l}}const zf=25;function nk(e,t){const n=ct(e),r=un(e),u=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,l=0,s=0;if(u){o=u.width,i=u.height;const d=hd();(!d||d&&t==="fixed")&&(l=u.offsetLeft,s=u.offsetTop)}const a=zl(r);if(a<=0){const d=r.ownerDocument,p=d.body,m=getComputedStyle(p),y=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,v=Math.abs(r.clientWidth-p.clientWidth-y);v<=zf&&(o-=v)}else a<=zf&&(o+=a);return{width:o,height:i,x:l,y:s}}function rk(e,t){const n=gr(e,!0,t==="fixed"),r=n.top+e.clientTop,u=n.left+e.clientLeft,o=wn(e)?Kr(e):tn(1),i=e.clientWidth*o.x,l=e.clientHeight*o.y,s=u*o.x,a=r*o.y;return{width:i,height:l,x:s,y:a}}function Rf(e,t,n){let r;if(t==="viewport")r=nk(e,n);else if(t==="document")r=tk(un(e));else if(Ot(t))r=rk(t,n);else{const u=Fm(e);r={x:t.x-u.x,y:t.y-u.y,width:t.width,height:t.height}}return rl(r)}function Rm(e,t){const n=Zn(e);return n===t||!Ot(n)||uu(n)?!1:$t(n).position==="fixed"||Rm(n,t)}function uk(e,t){const n=t.get(e);if(n)return n;let r=bo(e,[],!1).filter(l=>Ot(l)&&xu(l)!=="body"),u=null;const o=$t(e).position==="fixed";let i=o?Zn(e):e;for(;Ot(i)&&!uu(i);){const l=$t(i),s=pd(i);!s&&l.position==="fixed"&&(u=null),(o?!s&&!u:!s&&l.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||zo(i)&&!s&&Rm(e,i))?r=r.filter(d=>d!==i):u=l,i=Zn(i)}return t.set(e,r),r}function ok(e){let{element:t,boundary:n,rootBoundary:r,strategy:u}=e;const i=[...n==="clippingAncestors"?jl(t)?[]:uk(t,this._c):[].concat(n),r],l=Rf(t,i[0],u);let s=l.top,a=l.right,d=l.bottom,p=l.left;for(let m=1;m<i.length;m++){const y=Rf(t,i[m],u);s=lt(y.top,s),a=Gn(y.right,a),d=Gn(y.bottom,d),p=lt(y.left,p)}return{width:a-p,height:d-s,x:p,y:s}}function ik(e){const{width:t,height:n}=jm(e);return{width:t,height:n}}function lk(e,t,n){const r=wn(t),u=un(t),o=n==="fixed",i=gr(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const s=tn(0);function a(){s.x=zl(u)}if(r||!r&&!o)if((xu(t)!=="body"||zo(u))&&(l=Fl(t)),r){const y=gr(t,!0,o,t);s.x=y.x+t.clientLeft,s.y=y.y+t.clientTop}else u&&a();o&&!r&&u&&a();const d=u&&!r&&!o?zm(u,l):tn(0),p=i.left+l.scrollLeft-s.x-d.x,m=i.top+l.scrollTop-s.y-d.y;return{x:p,y:m,width:i.width,height:i.height}}function As(e){return $t(e).position==="static"}function Pf(e,t){if(!wn(e)||$t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return un(e)===n&&(n=n.ownerDocument.body),n}function Pm(e,t){const n=ct(e);if(jl(e))return n;if(!wn(e)){let u=Zn(e);for(;u&&!uu(u);){if(Ot(u)&&!As(u))return u;u=Zn(u)}return n}let r=Pf(e,t);for(;r&&K4(r)&&As(r);)r=Pf(r,t);return r&&uu(r)&&As(r)&&!pd(r)?n:r||Q4(e)||n}const sk=async function(e){const t=this.getOffsetParent||Pm,n=this.getDimensions,r=await n(e.floating);return{reference:lk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ak(e){return $t(e).direction==="rtl"}const ck={convertOffsetParentRelativeRectToViewportRelativeRect:J4,getDocumentElement:un,getClippingRect:ok,getOffsetParent:Pm,getElementRects:sk,getClientRects:ek,getDimensions:ik,getScale:Kr,isElement:Ot,isRTL:ak};function Tm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function dk(e,t){let n=null,r;const u=un(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),o();const a=e.getBoundingClientRect(),{left:d,top:p,width:m,height:y}=a;if(l||t(),!m||!y)return;const v=ei(p),b=ei(u.clientWidth-(d+m)),C=ei(u.clientHeight-(p+y)),x=ei(d),h={rootMargin:-v+"px "+-b+"px "+-C+"px "+-x+"px",threshold:lt(0,Gn(1,s))||1};let w=!0;function k(_){const S=_[0].intersectionRatio;if(S!==s){if(!w)return i();S?i(!1,S):r=setTimeout(()=>{i(!1,1e-7)},1e3)}S===1&&!Tm(a,e.getBoundingClientRect())&&i(),w=!1}try{n=new IntersectionObserver(k,{...h,root:u.ownerDocument})}catch{n=new IntersectionObserver(k,h)}n.observe(e)}return i(!0),o}function fk(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:u=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,a=md(e),d=u||o?[...a?bo(a):[],...t?bo(t):[]]:[];d.forEach(x=>{u&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const p=a&&l?dk(a,n):null;let m=-1,y=null;i&&(y=new ResizeObserver(x=>{let[f]=x;f&&f.target===a&&y&&t&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var h;(h=y)==null||h.observe(t)})),n()}),a&&!s&&y.observe(a),t&&y.observe(t));let v,b=s?gr(e):null;s&&C();function C(){const x=gr(e);b&&!Tm(b,x)&&n(),b=x,v=requestAnimationFrame(C)}return n(),()=>{var x;d.forEach(f=>{u&&f.removeEventListener("scroll",n),o&&f.removeEventListener("resize",n)}),p==null||p(),(x=y)==null||x.disconnect(),y=null,s&&cancelAnimationFrame(v)}}const pk=H4,hk=V4,mk=$4,gk=q4,xk=B4,Tf=O4,vk=W4,yk=(e,t,n)=>{const r=new Map,u={platform:ck,...n},o={...u.platform,_c:r};return I4(e,t,{...u,platform:o})};var bk=typeof document<"u",wk=function(){},bi=bk?g.useLayoutEffect:wk;function ul(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,u;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ul(e[r],t[r]))return!1;return!0}if(u=Object.keys(e),n=u.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,u[r]))return!1;for(r=n;r--!==0;){const o=u[r];if(!(o==="_owner"&&e.$$typeof)&&!ul(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Mm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mf(e,t){const n=Mm(e);return Math.round(t*n)/n}function Ns(e){const t=g.useRef(e);return bi(()=>{t.current=e}),t}function kk(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:u,elements:{reference:o,floating:i}={},transform:l=!0,whileElementsMounted:s,open:a}=e,[d,p]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,y]=g.useState(r);ul(m,r)||y(r);const[v,b]=g.useState(null),[C,x]=g.useState(null),f=g.useCallback(N=>{N!==_.current&&(_.current=N,b(N))},[]),h=g.useCallback(N=>{N!==S.current&&(S.current=N,x(N))},[]),w=o||v,k=i||C,_=g.useRef(null),S=g.useRef(null),E=g.useRef(d),A=s!=null,D=Ns(s),z=Ns(u),M=Ns(a),U=g.useCallback(()=>{if(!_.current||!S.current)return;const N={placement:t,strategy:n,middleware:m};z.current&&(N.platform=z.current),yk(_.current,S.current,N).then(P=>{const j={...P,isPositioned:M.current!==!1};T.current&&!ul(E.current,j)&&(E.current=j,su.flushSync(()=>{p(j)}))})},[m,t,n,z,M]);bi(()=>{a===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(N=>({...N,isPositioned:!1})))},[a]);const T=g.useRef(!1);bi(()=>(T.current=!0,()=>{T.current=!1}),[]),bi(()=>{if(w&&(_.current=w),k&&(S.current=k),w&&k){if(D.current)return D.current(w,k,U);U()}},[w,k,U,D,A]);const I=g.useMemo(()=>({reference:_,floating:S,setReference:f,setFloating:h}),[f,h]),B=g.useMemo(()=>({reference:w,floating:k}),[w,k]),$=g.useMemo(()=>{const N={position:n,left:0,top:0};if(!B.floating)return N;const P=Mf(B.floating,d.x),j=Mf(B.floating,d.y);return l?{...N,transform:"translate("+P+"px, "+j+"px)",...Mm(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:j}},[n,l,B.floating,d.x,d.y]);return g.useMemo(()=>({...d,update:U,refs:I,elements:B,floatingStyles:$}),[d,U,I,B,$])}const Ck=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:u}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Tf({element:r.current,padding:u}).fn(n):{}:r?Tf({element:r,padding:u}).fn(n):{}}}},_k=(e,t)=>{const n=pk(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ek=(e,t)=>{const n=hk(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sk=(e,t)=>({fn:vk(e).fn,options:[e,t]}),Ak=(e,t)=>{const n=mk(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nk=(e,t)=>{const n=gk(e);return{name:n.name,fn:n.fn,options:[e,t]}},Dk=(e,t)=>{const n=xk(e);return{name:n.name,fn:n.fn,options:[e,t]}},jk=(e,t)=>{const n=Ck(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Fk="Arrow",Lm=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:u=5,...o}=e;return c.jsx(Ce.svg,{...o,ref:t,width:r,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Lm.displayName=Fk;var zk=Lm;function Rk(e){const[t,n]=g.useState(void 0);return rt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const o=u[0];let i,l;if("borderBoxSize"in o){const s=o.borderBoxSize,a=Array.isArray(s)?s[0]:s;i=a.inlineSize,l=a.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var gd="Popper",[Im,Om]=sd(gd),[Pk,$m]=Im(gd),Bm=e=>{const{__scopePopper:t,children:n}=e,[r,u]=g.useState(null);return c.jsx(Pk,{scope:t,anchor:r,onAnchorChange:u,children:n})};Bm.displayName=gd;var Um="PopperAnchor",Hm=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...u}=e,o=$m(Um,n),i=g.useRef(null),l=Oe(t,i),s=g.useRef(null);return g.useEffect(()=>{const a=s.current;s.current=(r==null?void 0:r.current)||i.current,a!==s.current&&o.onAnchorChange(s.current)}),r?null:c.jsx(Ce.div,{...u,ref:l})});Hm.displayName=Um;var xd="PopperContent",[Tk,Mk]=Im(xd),Vm=g.forwardRef((e,t)=>{var H,Y,be,ne,X,re;const{__scopePopper:n,side:r="bottom",sideOffset:u=0,align:o="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:s=!0,collisionBoundary:a=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:y="optimized",onPlaced:v,...b}=e,C=$m(xd,n),[x,f]=g.useState(null),h=Oe(t,F=>f(F)),[w,k]=g.useState(null),_=Rk(w),S=(_==null?void 0:_.width)??0,E=(_==null?void 0:_.height)??0,A=r+(o!=="center"?"-"+o:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},z=Array.isArray(a)?a:[a],M=z.length>0,U={padding:D,boundary:z.filter(Ik),altBoundary:M},{refs:T,floatingStyles:I,placement:B,isPositioned:$,middlewareData:N}=kk({strategy:"fixed",placement:A,whileElementsMounted:(...F)=>fk(...F,{animationFrame:y==="always"}),elements:{reference:C.anchor},middleware:[_k({mainAxis:u+E,alignmentAxis:i}),s&&Ek({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Sk():void 0,...U}),s&&Ak({...U}),Nk({...U,apply:({elements:F,rects:G,availableWidth:W,availableHeight:q})=>{const{width:ie,height:Te}=G.reference,Ze=F.floating.style;Ze.setProperty("--radix-popper-available-width",`${W}px`),Ze.setProperty("--radix-popper-available-height",`${q}px`),Ze.setProperty("--radix-popper-anchor-width",`${ie}px`),Ze.setProperty("--radix-popper-anchor-height",`${Te}px`)}}),w&&jk({element:w,padding:l}),Ok({arrowWidth:S,arrowHeight:E}),m&&Dk({strategy:"referenceHidden",...U})]}),[P,j]=Km(B),L=mr(v);rt(()=>{$&&(L==null||L())},[$,L]);const V=(H=N.arrow)==null?void 0:H.x,$e=(Y=N.arrow)==null?void 0:Y.y,ee=((be=N.arrow)==null?void 0:be.centerOffset)!==0,[ye,he]=g.useState();return rt(()=>{x&&he(window.getComputedStyle(x).zIndex)},[x]),c.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:$?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ye,"--radix-popper-transform-origin":[(ne=N.transformOrigin)==null?void 0:ne.x,(X=N.transformOrigin)==null?void 0:X.y].join(" "),...((re=N.hide)==null?void 0:re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Tk,{scope:n,placedSide:P,onArrowChange:k,arrowX:V,arrowY:$e,shouldHideArrow:ee,children:c.jsx(Ce.div,{"data-side":P,"data-align":j,...b,ref:h,style:{...b.style,animation:$?void 0:"none"}})})})});Vm.displayName=xd;var Wm="PopperArrow",Lk={top:"bottom",right:"left",bottom:"top",left:"right"},qm=g.forwardRef(function(t,n){const{__scopePopper:r,...u}=t,o=Mk(Wm,r),i=Lk[o.placedSide];return c.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:c.jsx(zk,{...u,ref:n,style:{...u.style,display:"block"}})})});qm.displayName=Wm;function Ik(e){return e!==null}var Ok=e=>({name:"transformOrigin",options:e,fn(t){var C,x,f;const{placement:n,rects:r,middlewareData:u}=t,i=((C=u.arrow)==null?void 0:C.centerOffset)!==0,l=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[a,d]=Km(n),p={start:"0%",center:"50%",end:"100%"}[d],m=(((x=u.arrow)==null?void 0:x.x)??0)+l/2,y=(((f=u.arrow)==null?void 0:f.y)??0)+s/2;let v="",b="";return a==="bottom"?(v=i?p:`${m}px`,b=`${-s}px`):a==="top"?(v=i?p:`${m}px`,b=`${r.floating.height+s}px`):a==="right"?(v=`${-s}px`,b=i?p:`${y}px`):a==="left"&&(v=`${r.floating.width+s}px`,b=i?p:`${y}px`),{data:{x:v,y:b}}}});function Km(e){const[t,n="center"]=e.split("-");return[t,n]}var $k=Bm,Bk=Hm,Uk=Vm,Hk=qm,Vk="Portal",Gm=g.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[u,o]=g.useState(!1);rt(()=>o(!0),[]);const i=n||u&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?av.createPortal(c.jsx(Ce.div,{...r,ref:t}),i):null});Gm.displayName=Vk;var Wk=ap[" useInsertionEffect ".trim().toString()]||rt;function Lf({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[u,o,i]=qk({defaultProp:t,onChange:n}),l=e!==void 0,s=l?e:u;{const d=g.useRef(e!==void 0);g.useEffect(()=>{const p=d.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const a=g.useCallback(d=>{var p;if(l){const m=Kk(d)?d(e):d;m!==e&&((p=i.current)==null||p.call(i,m))}else o(d)},[l,e,o,i]);return[s,a]}function qk({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),u=g.useRef(n),o=g.useRef(t);return Wk(()=>{o.current=t},[t]),g.useEffect(()=>{var i;u.current!==n&&((i=o.current)==null||i.call(o,n),u.current=n)},[n,u]),[n,r,o]}function Kk(e){return typeof e=="function"}function Gk(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Zm=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Zk="VisuallyHidden",Qk=g.forwardRef((e,t)=>c.jsx(Ce.span,{...e,ref:t,style:{...Zm,...e.style}}));Qk.displayName=Zk;var Yk=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_r=new WeakMap,ti=new WeakMap,ni={},Ds=0,Qm=function(e){return e&&(e.host||Qm(e.parentNode))},Xk=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Qm(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Jk=function(e,t,n,r){var u=Xk(t,Array.isArray(e)?e:[e]);ni[n]||(ni[n]=new WeakMap);var o=ni[n],i=[],l=new Set,s=new Set(u),a=function(p){!p||l.has(p)||(l.add(p),a(p.parentNode))};u.forEach(a);var d=function(p){!p||s.has(p)||Array.prototype.forEach.call(p.children,function(m){if(l.has(m))d(m);else try{var y=m.getAttribute(r),v=y!==null&&y!=="false",b=(_r.get(m)||0)+1,C=(o.get(m)||0)+1;_r.set(m,b),o.set(m,C),i.push(m),b===1&&v&&ti.set(m,!0),C===1&&m.setAttribute(n,"true"),v||m.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",m,x)}})};return d(t),l.clear(),Ds++,function(){i.forEach(function(p){var m=_r.get(p)-1,y=o.get(p)-1;_r.set(p,m),o.set(p,y),m||(ti.has(p)||p.removeAttribute(r),ti.delete(p)),y||p.removeAttribute(n)}),Ds--,Ds||(_r=new WeakMap,_r=new WeakMap,ti=new WeakMap,ni={})}},e5=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),u=Yk(e);return u?(r.push.apply(r,Array.from(u.querySelectorAll("[aria-live], script"))),Jk(r,u,n,"aria-hidden")):function(){return null}},Kt=function(){return Kt=Object.assign||function(t){for(var n,r=1,u=arguments.length;r<u;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Kt.apply(this,arguments)};function Ym(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(n[r[u]]=e[r[u]]);return n}function t5(e,t,n){if(n||arguments.length===2)for(var r=0,u=t.length,o;r<u;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var wi="right-scroll-bar-position",ki="width-before-scroll-bar",n5="with-scroll-bars-hidden",r5="--removed-body-scroll-bar-size";function js(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function u5(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var u=n.value;u!==r&&(n.value=r,n.callback(r,u))}}}})[0];return n.callback=t,n.facade}var o5=typeof window<"u"?g.useLayoutEffect:g.useEffect,If=new WeakMap;function i5(e,t){var n=u5(null,function(r){return e.forEach(function(u){return js(u,r)})});return o5(function(){var r=If.get(n);if(r){var u=new Set(r),o=new Set(e),i=n.current;u.forEach(function(l){o.has(l)||js(l,null)}),o.forEach(function(l){u.has(l)||js(l,i)})}If.set(n,e)},[e]),n}function l5(e){return e}function s5(e,t){t===void 0&&(t=l5);var n=[],r=!1,u={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var i=t(o,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(o){for(r=!0;n.length;){var i=n;n=[],i.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(o),i=n}var s=function(){var d=i;i=[],d.forEach(o)},a=function(){return Promise.resolve().then(s)};a(),n={push:function(d){i.push(d),a()},filter:function(d){return i=i.filter(d),n}}}};return u}function a5(e){e===void 0&&(e={});var t=s5(null);return t.options=Kt({async:!0,ssr:!1},e),t}var Xm=function(e){var t=e.sideCar,n=Ym(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,Kt({},n))};Xm.isSideCarExport=!0;function c5(e,t){return e.useMedium(t),Xm}var Jm=a5(),Fs=function(){},Rl=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:Fs,onWheelCapture:Fs,onTouchMoveCapture:Fs}),u=r[0],o=r[1],i=e.forwardProps,l=e.children,s=e.className,a=e.removeScrollBar,d=e.enabled,p=e.shards,m=e.sideCar,y=e.noRelative,v=e.noIsolation,b=e.inert,C=e.allowPinchZoom,x=e.as,f=x===void 0?"div":x,h=e.gapMode,w=Ym(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=m,_=i5([n,t]),S=Kt(Kt({},w),u);return g.createElement(g.Fragment,null,d&&g.createElement(k,{sideCar:Jm,removeScrollBar:a,shards:p,noRelative:y,noIsolation:v,inert:b,setCallbacks:o,allowPinchZoom:!!C,lockRef:n,gapMode:h}),i?g.cloneElement(g.Children.only(l),Kt(Kt({},S),{ref:_})):g.createElement(f,Kt({},S,{className:s,ref:_}),l))});Rl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Rl.classNames={fullWidth:ki,zeroRight:wi};var d5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function f5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d5();return t&&e.setAttribute("nonce",t),e}function p5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function h5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var m5=function(){var e=0,t=null;return{add:function(n){e==0&&(t=f5())&&(p5(t,n),h5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},g5=function(){var e=m5();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},eg=function(){var e=g5(),t=function(n){var r=n.styles,u=n.dynamic;return e(r,u),null};return t},x5={left:0,top:0,right:0,gap:0},zs=function(e){return parseInt(e||"",10)||0},v5=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],u=t[e==="padding"?"paddingRight":"marginRight"];return[zs(n),zs(r),zs(u)]},y5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return x5;var t=v5(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},b5=eg(),Gr="data-scroll-locked",w5=function(e,t,n,r){var u=e.left,o=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),`
.`.concat(n5,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(l,"px ").concat(r,`;
}
body[`).concat(Gr,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(u,`px;
padding-top: `).concat(o,`px;
padding-right: `).concat(i,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(l,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(wi,` {
right: `).concat(l,"px ").concat(r,`;
}
.`).concat(ki,` {
margin-right: `).concat(l,"px ").concat(r,`;
}
.`).concat(wi," .").concat(wi,` {
right: 0 `).concat(r,`;
}
.`).concat(ki," .").concat(ki,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(Gr,`] {
`).concat(r5,": ").concat(l,`px;
}
`)},Of=function(){var e=parseInt(document.body.getAttribute(Gr)||"0",10);return isFinite(e)?e:0},k5=function(){g.useEffect(function(){return document.body.setAttribute(Gr,(Of()+1).toString()),function(){var e=Of()-1;e<=0?document.body.removeAttribute(Gr):document.body.setAttribute(Gr,e.toString())}},[])},C5=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,u=r===void 0?"margin":r;k5();var o=g.useMemo(function(){return y5(u)},[u]);return g.createElement(b5,{styles:w5(o,!t,u,n?"":"!important")})},Ua=!1;if(typeof window<"u")try{var ri=Object.defineProperty({},"passive",{get:function(){return Ua=!0,!0}});window.addEventListener("test",ri,ri),window.removeEventListener("test",ri,ri)}catch{Ua=!1}var Er=Ua?{passive:!1}:!1,_5=function(e){return e.tagName==="TEXTAREA"},tg=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_5(e)&&n[t]==="visible")},E5=function(e){return tg(e,"overflowY")},S5=function(e){return tg(e,"overflowX")},$f=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var u=ng(e,r);if(u){var o=rg(e,r),i=o[1],l=o[2];if(i>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},A5=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},N5=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ng=function(e,t){return e==="v"?E5(t):S5(t)},rg=function(e,t){return e==="v"?A5(t):N5(t)},D5=function(e,t){return e==="h"&&t==="rtl"?-1:1},j5=function(e,t,n,r,u){var o=D5(e,window.getComputedStyle(t).direction),i=o*r,l=n.target,s=t.contains(l),a=!1,d=i>0,p=0,m=0;do{if(!l)break;var y=rg(e,l),v=y[0],b=y[1],C=y[2],x=b-C-o*v;(v||x)&&ng(e,l)&&(p+=x,m+=v);var f=l.parentNode;l=f&&f.nodeType===Node.DOCUMENT_FRAGMENT_NODE?f.host:f}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(d&&Math.abs(p)<1||!d&&Math.abs(m)<1)&&(a=!0),a},ui=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bf=function(e){return[e.deltaX,e.deltaY]},Uf=function(e){return e&&"current"in e?e.current:e},F5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},z5=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},R5=0,Sr=[];function P5(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),u=g.useState(R5++)[0],o=g.useState(eg)[0],i=g.useRef(e);g.useEffect(function(){i.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(u));var b=t5([e.lockRef.current],(e.shards||[]).map(Uf),!0).filter(Boolean);return b.forEach(function(C){return C.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),b.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(u))})}}},[e.inert,e.lockRef.current,e.shards]);var l=g.useCallback(function(b,C){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!i.current.allowPinchZoom;var x=ui(b),f=n.current,h="deltaX"in b?b.deltaX:f[0]-x[0],w="deltaY"in b?b.deltaY:f[1]-x[1],k,_=b.target,S=Math.abs(h)>Math.abs(w)?"h":"v";if("touches"in b&&S==="h"&&_.type==="range")return!1;var E=window.getSelection(),A=E&&E.anchorNode,D=A?A===_||A.contains(_):!1;if(D)return!1;var z=$f(S,_);if(!z)return!0;if(z?k=S:(k=S==="v"?"h":"v",z=$f(S,_)),!z)return!1;if(!r.current&&"changedTouches"in b&&(h||w)&&(r.current=k),!k)return!0;var M=r.current||k;return j5(M,C,b,M==="h"?h:w)},[]),s=g.useCallback(function(b){var C=b;if(!(!Sr.length||Sr[Sr.length-1]!==o)){var x="deltaY"in C?Bf(C):ui(C),f=t.current.filter(function(k){return k.name===C.type&&(k.target===C.target||C.target===k.shadowParent)&&F5(k.delta,x)})[0];if(f&&f.should){C.cancelable&&C.preventDefault();return}if(!f){var h=(i.current.shards||[]).map(Uf).filter(Boolean).filter(function(k){return k.contains(C.target)}),w=h.length>0?l(C,h[0]):!i.current.noIsolation;w&&C.cancelable&&C.preventDefault()}}},[]),a=g.useCallback(function(b,C,x,f){var h={name:b,delta:C,target:x,should:f,shadowParent:T5(x)};t.current.push(h),setTimeout(function(){t.current=t.current.filter(function(w){return w!==h})},1)},[]),d=g.useCallback(function(b){n.current=ui(b),r.current=void 0},[]),p=g.useCallback(function(b){a(b.type,Bf(b),b.target,l(b,e.lockRef.current))},[]),m=g.useCallback(function(b){a(b.type,ui(b),b.target,l(b,e.lockRef.current))},[]);g.useEffect(function(){return Sr.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",s,Er),document.addEventListener("touchmove",s,Er),document.addEventListener("touchstart",d,Er),function(){Sr=Sr.filter(function(b){return b!==o}),document.removeEventListener("wheel",s,Er),document.removeEventListener("touchmove",s,Er),document.removeEventListener("touchstart",d,Er)}},[]);var y=e.removeScrollBar,v=e.inert;return g.createElement(g.Fragment,null,v?g.createElement(o,{styles:z5(u)}):null,y?g.createElement(C5,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function T5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const M5=c5(Jm,P5);var ug=g.forwardRef(function(e,t){return g.createElement(Rl,Kt({},e,{ref:t,sideCar:M5}))});ug.classNames=Rl.classNames;var L5=[" ","Enter","ArrowUp","ArrowDown"],I5=[" ","Enter"],xr="Select",[Pl,Tl,O5]=u4(xr),[vu]=sd(xr,[O5,Om]),Ml=Om(),[$5,Jn]=vu(xr),[B5,U5]=vu(xr),og=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:u,onOpenChange:o,value:i,defaultValue:l,onValueChange:s,dir:a,name:d,autoComplete:p,disabled:m,required:y,form:v}=e,b=Ml(t),[C,x]=g.useState(null),[f,h]=g.useState(null),[w,k]=g.useState(!1),_=i4(a),[S,E]=Lf({prop:r,defaultProp:u??!1,onChange:o,caller:xr}),[A,D]=Lf({prop:i,defaultProp:l,onChange:s,caller:xr}),z=g.useRef(null),M=C?v||!!C.closest("form"):!0,[U,T]=g.useState(new Set),I=Array.from(U).map(B=>B.props.value).join(";");return c.jsx($k,{...b,children:c.jsxs($5,{required:y,scope:t,trigger:C,onTriggerChange:x,valueNode:f,onValueNodeChange:h,valueNodeHasChildren:w,onValueNodeHasChildrenChange:k,contentId:ad(),value:A,onValueChange:D,open:S,onOpenChange:E,dir:_,triggerPointerDownPosRef:z,disabled:m,children:[c.jsx(Pl.Provider,{scope:t,children:c.jsx(B5,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(B=>{T($=>new Set($).add(B))},[]),onNativeOptionRemove:g.useCallback(B=>{T($=>{const N=new Set($);return N.delete(B),N})},[]),children:n})}),M?c.jsxs(Eg,{"aria-hidden":!0,required:y,tabIndex:-1,name:d,autoComplete:p,value:A,onChange:B=>D(B.target.value),disabled:m,form:v,children:[A===void 0?c.jsx("option",{value:""}):null,Array.from(U)]},I):null]})})};og.displayName=xr;var ig="SelectTrigger",lg=g.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...u}=e,o=Ml(n),i=Jn(ig,n),l=i.disabled||r,s=Oe(t,i.onTriggerChange),a=Tl(n),d=g.useRef("touch"),[p,m,y]=Ag(b=>{const C=a().filter(h=>!h.disabled),x=C.find(h=>h.value===i.value),f=Ng(C,b,x);f!==void 0&&i.onValueChange(f.value)}),v=b=>{l||(i.onOpenChange(!0),y()),b&&(i.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return c.jsx(Bk,{asChild:!0,...o,children:c.jsx(Ce.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Sg(i.value)?"":void 0,...u,ref:s,onClick:Ee(u.onClick,b=>{b.currentTarget.focus(),d.current!=="mouse"&&v(b)}),onPointerDown:Ee(u.onPointerDown,b=>{d.current=b.pointerType;const C=b.target;C.hasPointerCapture(b.pointerId)&&C.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(v(b),b.preventDefault())}),onKeyDown:Ee(u.onKeyDown,b=>{const C=p.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&m(b.key),!(C&&b.key===" ")&&L5.includes(b.key)&&(v(),b.preventDefault())})})})});lg.displayName=ig;var sg="SelectValue",ag=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:u,children:o,placeholder:i="",...l}=e,s=Jn(sg,n),{onValueNodeHasChildrenChange:a}=s,d=o!==void 0,p=Oe(t,s.onValueNodeChange);return rt(()=>{a(d)},[a,d]),c.jsx(Ce.span,{...l,ref:p,style:{pointerEvents:"none"},children:Sg(s.value)?c.jsx(c.Fragment,{children:i}):o})});ag.displayName=sg;var H5="SelectIcon",cg=g.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...u}=e;return c.jsx(Ce.span,{"aria-hidden":!0,...u,ref:t,children:r||"▼"})});cg.displayName=H5;var V5="SelectPortal",dg=e=>c.jsx(Gm,{asChild:!0,...e});dg.displayName=V5;var vr="SelectContent",fg=g.forwardRef((e,t)=>{const n=Jn(vr,e.__scopeSelect),[r,u]=g.useState();if(rt(()=>{u(new DocumentFragment)},[]),!n.open){const o=r;return o?su.createPortal(c.jsx(pg,{scope:e.__scopeSelect,children:c.jsx(Pl.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),o):null}return c.jsx(hg,{...e,ref:t})});fg.displayName=vr;var At=10,[pg,er]=vu(vr),W5="SelectContentImpl",q5=el("SelectContent.RemoveScroll"),hg=g.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:o,onPointerDownOutside:i,side:l,sideOffset:s,align:a,alignOffset:d,arrowPadding:p,collisionBoundary:m,collisionPadding:y,sticky:v,hideWhenDetached:b,avoidCollisions:C,...x}=e,f=Jn(vr,n),[h,w]=g.useState(null),[k,_]=g.useState(null),S=Oe(t,H=>w(H)),[E,A]=g.useState(null),[D,z]=g.useState(null),M=Tl(n),[U,T]=g.useState(!1),I=g.useRef(!1);g.useEffect(()=>{if(h)return e5(h)},[h]),x4();const B=g.useCallback(H=>{const[Y,...be]=M().map(re=>re.ref.current),[ne]=be.slice(-1),X=document.activeElement;for(const re of H)if(re===X||(re==null||re.scrollIntoView({block:"nearest"}),re===Y&&k&&(k.scrollTop=0),re===ne&&k&&(k.scrollTop=k.scrollHeight),re==null||re.focus(),document.activeElement!==X))return},[M,k]),$=g.useCallback(()=>B([E,h]),[B,E,h]);g.useEffect(()=>{U&&$()},[U,$]);const{onOpenChange:N,triggerPointerDownPosRef:P}=f;g.useEffect(()=>{if(h){let H={x:0,y:0};const Y=ne=>{var X,re;H={x:Math.abs(Math.round(ne.pageX)-(((X=P.current)==null?void 0:X.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((re=P.current)==null?void 0:re.y)??0))}},be=ne=>{H.x<=10&&H.y<=10?ne.preventDefault():h.contains(ne.target)||N(!1),document.removeEventListener("pointermove",Y),P.current=null};return P.current!==null&&(document.addEventListener("pointermove",Y),document.addEventListener("pointerup",be,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Y),document.removeEventListener("pointerup",be,{capture:!0})}}},[h,N,P]),g.useEffect(()=>{const H=()=>N(!1);return window.addEventListener("blur",H),window.addEventListener("resize",H),()=>{window.removeEventListener("blur",H),window.removeEventListener("resize",H)}},[N]);const[j,L]=Ag(H=>{const Y=M().filter(X=>!X.disabled),be=Y.find(X=>X.ref.current===document.activeElement),ne=Ng(Y,H,be);ne&&setTimeout(()=>ne.ref.current.focus())}),V=g.useCallback((H,Y,be)=>{const ne=!I.current&&!be;(f.value!==void 0&&f.value===Y||ne)&&(A(H),ne&&(I.current=!0))},[f.value]),$e=g.useCallback(()=>h==null?void 0:h.focus(),[h]),ee=g.useCallback((H,Y,be)=>{const ne=!I.current&&!be;(f.value!==void 0&&f.value===Y||ne)&&z(H)},[f.value]),ye=r==="popper"?Ha:mg,he=ye===Ha?{side:l,sideOffset:s,align:a,alignOffset:d,arrowPadding:p,collisionBoundary:m,collisionPadding:y,sticky:v,hideWhenDetached:b,avoidCollisions:C}:{};return c.jsx(pg,{scope:n,content:h,viewport:k,onViewportChange:_,itemRefCallback:V,selectedItem:E,onItemLeave:$e,itemTextRefCallback:ee,focusSelectedItem:$,selectedItemText:D,position:r,isPositioned:U,searchRef:j,children:c.jsx(ug,{as:q5,allowPinchZoom:!0,children:c.jsx(_m,{asChild:!0,trapped:f.open,onMountAutoFocus:H=>{H.preventDefault()},onUnmountAutoFocus:Ee(u,H=>{var Y;(Y=f.trigger)==null||Y.focus({preventScroll:!0}),H.preventDefault()}),children:c.jsx(km,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:H=>H.preventDefault(),onDismiss:()=>f.onOpenChange(!1),children:c.jsx(ye,{role:"listbox",id:f.contentId,"data-state":f.open?"open":"closed",dir:f.dir,onContextMenu:H=>H.preventDefault(),...x,...he,onPlaced:()=>T(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:Ee(x.onKeyDown,H=>{const Y=H.ctrlKey||H.altKey||H.metaKey;if(H.key==="Tab"&&H.preventDefault(),!Y&&H.key.length===1&&L(H.key),["ArrowUp","ArrowDown","Home","End"].includes(H.key)){let ne=M().filter(X=>!X.disabled).map(X=>X.ref.current);if(["ArrowUp","End"].includes(H.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(H.key)){const X=H.target,re=ne.indexOf(X);ne=ne.slice(re+1)}setTimeout(()=>B(ne)),H.preventDefault()}})})})})})})});hg.displayName=W5;var K5="SelectItemAlignedPosition",mg=g.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...u}=e,o=Jn(vr,n),i=er(vr,n),[l,s]=g.useState(null),[a,d]=g.useState(null),p=Oe(t,S=>d(S)),m=Tl(n),y=g.useRef(!1),v=g.useRef(!0),{viewport:b,selectedItem:C,selectedItemText:x,focusSelectedItem:f}=i,h=g.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&a&&b&&C&&x){const S=o.trigger.getBoundingClientRect(),E=a.getBoundingClientRect(),A=o.valueNode.getBoundingClientRect(),D=x.getBoundingClientRect();if(o.dir!=="rtl"){const X=D.left-E.left,re=A.left-X,F=S.left-re,G=S.width+F,W=Math.max(G,E.width),q=window.innerWidth-At,ie=xf(re,[At,Math.max(At,q-W)]);l.style.minWidth=G+"px",l.style.left=ie+"px"}else{const X=E.right-D.right,re=window.innerWidth-A.right-X,F=window.innerWidth-S.right-re,G=S.width+F,W=Math.max(G,E.width),q=window.innerWidth-At,ie=xf(re,[At,Math.max(At,q-W)]);l.style.minWidth=G+"px",l.style.right=ie+"px"}const z=m(),M=window.innerHeight-At*2,U=b.scrollHeight,T=window.getComputedStyle(a),I=parseInt(T.borderTopWidth,10),B=parseInt(T.paddingTop,10),$=parseInt(T.borderBottomWidth,10),N=parseInt(T.paddingBottom,10),P=I+B+U+N+$,j=Math.min(C.offsetHeight*5,P),L=window.getComputedStyle(b),V=parseInt(L.paddingTop,10),$e=parseInt(L.paddingBottom,10),ee=S.top+S.height/2-At,ye=M-ee,he=C.offsetHeight/2,H=C.offsetTop+he,Y=I+B+H,be=P-Y;if(Y<=ee){const X=z.length>0&&C===z[z.length-1].ref.current;l.style.bottom="0px";const re=a.clientHeight-b.offsetTop-b.offsetHeight,F=Math.max(ye,he+(X?$e:0)+re+$),G=Y+F;l.style.height=G+"px"}else{const X=z.length>0&&C===z[0].ref.current;l.style.top="0px";const F=Math.max(ee,I+b.offsetTop+(X?V:0)+he)+be;l.style.height=F+"px",b.scrollTop=Y-ee+b.offsetTop}l.style.margin=`${At}px 0`,l.style.minHeight=j+"px",l.style.maxHeight=M+"px",r==null||r(),requestAnimationFrame(()=>y.current=!0)}},[m,o.trigger,o.valueNode,l,a,b,C,x,o.dir,r]);rt(()=>h(),[h]);const[w,k]=g.useState();rt(()=>{a&&k(window.getComputedStyle(a).zIndex)},[a]);const _=g.useCallback(S=>{S&&v.current===!0&&(h(),f==null||f(),v.current=!1)},[h,f]);return c.jsx(Z5,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:y,onScrollButtonChange:_,children:c.jsx("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:c.jsx(Ce.div,{...u,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});mg.displayName=K5;var G5="SelectPopperPosition",Ha=g.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:u=At,...o}=e,i=Ml(n);return c.jsx(Uk,{...i,...o,ref:t,align:r,collisionPadding:u,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ha.displayName=G5;var[Z5,vd]=vu(vr,{}),Va="SelectViewport",gg=g.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...u}=e,o=er(Va,n),i=vd(Va,n),l=Oe(t,o.onViewportChange),s=g.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),c.jsx(Pl.Slot,{scope:n,children:c.jsx(Ce.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:Ee(u.onScroll,a=>{const d=a.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&p){const y=Math.abs(s.current-d.scrollTop);if(y>0){const v=window.innerHeight-At*2,b=parseFloat(p.style.minHeight),C=parseFloat(p.style.height),x=Math.max(b,C);if(x<v){const f=x+y,h=Math.min(v,f),w=f-h;p.style.height=h+"px",p.style.bottom==="0px"&&(d.scrollTop=w>0?w:0,p.style.justifyContent="flex-end")}}}s.current=d.scrollTop})})})]})});gg.displayName=Va;var xg="SelectGroup",[Q5,Y5]=vu(xg),X5=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,u=ad();return c.jsx(Q5,{scope:n,id:u,children:c.jsx(Ce.div,{role:"group","aria-labelledby":u,...r,ref:t})})});X5.displayName=xg;var vg="SelectLabel",J5=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,u=Y5(vg,n);return c.jsx(Ce.div,{id:u.id,...r,ref:t})});J5.displayName=vg;var ol="SelectItem",[e8,yg]=vu(ol),bg=g.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:u=!1,textValue:o,...i}=e,l=Jn(ol,n),s=er(ol,n),a=l.value===r,[d,p]=g.useState(o??""),[m,y]=g.useState(!1),v=Oe(t,f=>{var h;return(h=s.itemRefCallback)==null?void 0:h.call(s,f,r,u)}),b=ad(),C=g.useRef("touch"),x=()=>{u||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(e8,{scope:n,value:r,disabled:u,textId:b,isSelected:a,onItemTextChange:g.useCallback(f=>{p(h=>h||((f==null?void 0:f.textContent)??"").trim())},[]),children:c.jsx(Pl.ItemSlot,{scope:n,value:r,disabled:u,textValue:d,children:c.jsx(Ce.div,{role:"option","aria-labelledby":b,"data-highlighted":m?"":void 0,"aria-selected":a&&m,"data-state":a?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...i,ref:v,onFocus:Ee(i.onFocus,()=>y(!0)),onBlur:Ee(i.onBlur,()=>y(!1)),onClick:Ee(i.onClick,()=>{C.current!=="mouse"&&x()}),onPointerUp:Ee(i.onPointerUp,()=>{C.current==="mouse"&&x()}),onPointerDown:Ee(i.onPointerDown,f=>{C.current=f.pointerType}),onPointerMove:Ee(i.onPointerMove,f=>{var h;C.current=f.pointerType,u?(h=s.onItemLeave)==null||h.call(s):C.current==="mouse"&&f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ee(i.onPointerLeave,f=>{var h;f.currentTarget===document.activeElement&&((h=s.onItemLeave)==null||h.call(s))}),onKeyDown:Ee(i.onKeyDown,f=>{var w;((w=s.searchRef)==null?void 0:w.current)!==""&&f.key===" "||(I5.includes(f.key)&&x(),f.key===" "&&f.preventDefault())})})})})});bg.displayName=ol;var Bu="SelectItemText",wg=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:u,...o}=e,i=Jn(Bu,n),l=er(Bu,n),s=yg(Bu,n),a=U5(Bu,n),[d,p]=g.useState(null),m=Oe(t,x=>p(x),s.onItemTextChange,x=>{var f;return(f=l.itemTextRefCallback)==null?void 0:f.call(l,x,s.value,s.disabled)}),y=d==null?void 0:d.textContent,v=g.useMemo(()=>c.jsx("option",{value:s.value,disabled:s.disabled,children:y},s.value),[s.disabled,s.value,y]),{onNativeOptionAdd:b,onNativeOptionRemove:C}=a;return rt(()=>(b(v),()=>C(v)),[b,C,v]),c.jsxs(c.Fragment,{children:[c.jsx(Ce.span,{id:s.textId,...o,ref:m}),s.isSelected&&i.valueNode&&!i.valueNodeHasChildren?su.createPortal(o.children,i.valueNode):null]})});wg.displayName=Bu;var kg="SelectItemIndicator",Cg=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return yg(kg,n).isSelected?c.jsx(Ce.span,{"aria-hidden":!0,...r,ref:t}):null});Cg.displayName=kg;var Wa="SelectScrollUpButton",t8=g.forwardRef((e,t)=>{const n=er(Wa,e.__scopeSelect),r=vd(Wa,e.__scopeSelect),[u,o]=g.useState(!1),i=Oe(t,r.onScrollButtonChange);return rt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const a=s.scrollTop>0;o(a)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),u?c.jsx(_g,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:s}=n;l&&s&&(l.scrollTop=l.scrollTop-s.offsetHeight)}}):null});t8.displayName=Wa;var qa="SelectScrollDownButton",n8=g.forwardRef((e,t)=>{const n=er(qa,e.__scopeSelect),r=vd(qa,e.__scopeSelect),[u,o]=g.useState(!1),i=Oe(t,r.onScrollButtonChange);return rt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const a=s.scrollHeight-s.clientHeight,d=Math.ceil(s.scrollTop)<a;o(d)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),u?c.jsx(_g,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:s}=n;l&&s&&(l.scrollTop=l.scrollTop+s.offsetHeight)}}):null});n8.displayName=qa;var _g=g.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...u}=e,o=er("SelectScrollButton",n),i=g.useRef(null),l=Tl(n),s=g.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return g.useEffect(()=>()=>s(),[s]),rt(()=>{var d;const a=l().find(p=>p.ref.current===document.activeElement);(d=a==null?void 0:a.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),c.jsx(Ce.div,{"aria-hidden":!0,...u,ref:t,style:{flexShrink:0,...u.style},onPointerDown:Ee(u.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:Ee(u.onPointerMove,()=>{var a;(a=o.onItemLeave)==null||a.call(o),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:Ee(u.onPointerLeave,()=>{s()})})}),r8="SelectSeparator",u8=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.jsx(Ce.div,{"aria-hidden":!0,...r,ref:t})});u8.displayName=r8;var Ka="SelectArrow",o8=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,u=Ml(n),o=Jn(Ka,n),i=er(Ka,n);return o.open&&i.position==="popper"?c.jsx(Hk,{...u,...r,ref:t}):null});o8.displayName=Ka;var i8="SelectBubbleInput",Eg=g.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const u=g.useRef(null),o=Oe(r,u),i=Gk(t);return g.useEffect(()=>{const l=u.current;if(!l)return;const s=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(s,"value").set;if(i!==t&&d){const p=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(p)}},[i,t]),c.jsx(Ce.select,{...n,style:{...Zm,...n.style},ref:o,defaultValue:t})});Eg.displayName=i8;function Sg(e){return e===""||e===void 0}function Ag(e){const t=mr(e),n=g.useRef(""),r=g.useRef(0),u=g.useCallback(i=>{const l=n.current+i;t(l),function s(a){n.current=a,window.clearTimeout(r.current),a!==""&&(r.current=window.setTimeout(()=>s(""),1e3))}(l)},[t]),o=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,u,o]}function Ng(e,t,n){const u=t.length>1&&Array.from(t).every(a=>a===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=l8(e,Math.max(o,0));u.length===1&&(i=i.filter(a=>a!==n));const s=i.find(a=>a.textValue.toLowerCase().startsWith(u.toLowerCase()));return s!==n?s:void 0}function l8(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var s8=og,Dg=lg,a8=ag,c8=cg,d8=dg,jg=fg,f8=gg,Fg=bg,p8=wg,h8=Cg;const Yt=s8,Xt=a8,Ft=g.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(Dg,{ref:r,className:Xe("flex h-9 w-full items-center justify-between rounded-lg border border-zinc-200 bg-white px-3 py-2 text-sm text-zinc-700 shadow-sm transition-colors placeholder:text-zinc-400 focus:outline-none focus:ring-2 focus:ring-indigo-200 focus:border-indigo-300 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,c.jsx(c8,{asChild:!0,children:c.jsx(T1,{size:14,className:"text-zinc-400"})})]}));Ft.displayName=Dg.displayName;const zt=g.forwardRef(({className:e,children:t,position:n="popper",...r},u)=>c.jsx(d8,{children:c.jsx(jg,{ref:u,className:Xe("relative z-50 max-h-72 min-w-[8rem] overflow-hidden rounded-lg border border-zinc-200 bg-white text-zinc-700 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:c.jsx(f8,{className:Xe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));zt.displayName=jg.displayName;const J=g.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(Fg,{ref:r,className:Xe("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-indigo-50 focus:text-indigo-700 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(h8,{children:c.jsx(P1,{size:14})})}),c.jsx(p8,{children:t})]}));J.displayName=Fg.displayName;function Hf(){const{conversationId:e}=_1(),t=fu(),{setConversations:n,selectedAccountId:r,conversations:u}=Pa(),{messages:o,connected:i,thinking:l,toolStatus:s,pipeline:a,send:d,stop:p,createConversation:m,removeMessage:y}=r3(e||null),[v,b]=g.useState(null),[C,x]=g.useState([]),[f,h]=g.useState(null),[w,k]=g.useState(null),[_,S]=g.useState(!1),E=g.useRef(!1),A=g.useRef(null),D=g.useRef(!1);g.useEffect(()=>{ke.listAccounts().then(x).catch(()=>{})},[]),g.useEffect(()=>{ke.listConversations().then(n).catch(()=>{})},[o]),g.useEffect(()=>{const j=o.filter(L=>L.role==="tool");if(j.length>0)try{const L=JSON.parse(j[j.length-1].content);L.manifest&&b(L.manifest)}catch{}},[o]),g.useEffect(()=>{const j=A.current;j&&(D.current||(j.scrollTop=j.scrollHeight))},[o,l,a,s]),g.useEffect(()=>{const j=A.current;if(!j)return;const L=()=>{const V=j.scrollHeight-j.scrollTop-j.clientHeight<80;D.current=!V,S(!V)};return j.addEventListener("scroll",L,{passive:!0}),()=>j.removeEventListener("scroll",L)},[]),g.useEffect(()=>{D.current=!1,S(!1)},[e]),g.useEffect(()=>{if(e&&i&&w){const j=setTimeout(()=>{d(w),k(null)},300);return()=>clearTimeout(j)}},[e,i,w]);const z=async()=>{v&&await fetch("/api/pipeline/resume",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({manifest:v})})},M=g.useCallback(j=>{const L=o.findIndex(V=>V.id===j);if(L<=0)return null;for(let V=L-1;V>=0;V--)if(o[V].role==="user")return o[V];return null},[o]),U=g.useCallback(j=>{const L=M(j);L&&d(L.content)},[M,d]),T=g.useCallback(()=>{d("请继续")},[d]),I=g.useCallback(j=>{h(j.slice(0,200))},[]),B=g.useCallback(j=>{y(j)},[y]),$=g.useCallback(async j=>{if(!E.current){E.current=!0,k(j);try{const L=await m(j.slice(0,30),r||void 0);if(L){const V=await ke.listConversations();n(V),t(`/chat/${L}`)}}catch{}E.current=!1}},[m,r]),N=g.useCallback((j,L)=>{f&&(j=`> ${f}
${j}`,h(null)),e?d(j,L):$(j)},[d,f,e]),P=g.useCallback(()=>{p()},[p]);if(!e){const j=u.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(Qi,{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(hf,{onSend:N,disabled:l||E.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(Yt,{value:r||"",onValueChange:L=>Pa.getState().setSelectedAccountId(L==="none"?null:L),children:[c.jsx(Ft,{className:"h-7 w-auto min-w-[100px] text-xs px-2.5 border-zinc-100 hover:border-zinc-200",children:c.jsx(Xt,{placeholder:"不指定"})}),c.jsxs(zt,{children:[c.jsx(J,{value:"none",children:"不指定"}),C.map(L=>c.jsx(J,{value:L.id,children:L.name},L.id))]})]})]}),j.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:"最近对话"}),j.map(L=>c.jsxs("button",{onClick:()=>t(`/chat/${L.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(Qi,{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:L.title}),c.jsx("span",{className:"text-[10px] text-zinc-300 flex-shrink-0",children:new Date(L.updated_at).toLocaleDateString("zh-CN",{month:"short",day:"numeric"})})]},L.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:[v&&c.jsxs(It,{size:"sm",variant:"outline",className:"h-7 text-xs rounded-lg",onClick:z,children:[c.jsx(Yc,{size:12,className:"mr-1"}),"断点续跑"]}),l&&c.jsxs(It,{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(Qy,{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((j,L)=>j.role!=="tool"&&c.jsx(Kw,{message:j,isLast:L===o.length-1,isThinking:l,onRegenerate:j.role==="assistant"?U:void 0,onContinue:j.role==="assistant"?T:void 0,onQuote:I,onDelete:B},j.id)),a&&c.jsx(Zw,{phase:a.phase,progress:a.progress,currentItem:a.currentItem,totalItems:a.totalItems,status:a.status}),l&&!a&&c.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 text-sm py-2",children:[c.jsx(Fa,{size:14,className:"animate-spin text-indigo-400"}),s||"思考中..."]})]}),_&&c.jsx("button",{onClick:()=>{var j;(j=A.current)==null||j.scrollTo({top:A.current.scrollHeight,behavior:"smooth"}),D.current=!1,S(!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(Vy,{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:()=>h(null),className:"text-zinc-400 hover:text-zinc-600",children:c.jsx(pu,{size:12})})]}),c.jsx(hf,{onSend:N,disabled:l})]})})]})}function yd(){const[e,t]=g.useState([]),[n,r]=g.useState(!0),u=g.useCallback(()=>ke.listAccounts().then(t).finally(()=>r(!1)),[]);return g.useEffect(()=>{u()},[u]),{accounts:e,loading:n,refresh:u,create:async s=>{const a=await ke.createAccount(s);return await u(),a},update:(s,a)=>ke.updateAccount(s,a).then(u),remove:s=>ke.deleteAccount(s).then(u)}}const Vf={gemini:"Gemini",mj:"MJ",gpt:"GPT",kling:"Kling","veo3-fast":"Veo3","veo3-fast-frames":"Veo3F",grok:"Grok"};function m8({account:e,isSelected:t,onClick:n}){const r=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:r})]}),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(hr,{size:10}),Vf[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(sb,{size:10}),Vf[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 g8({account:e,onSave:t}){const[n,r]=g.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||""}),[u,o]=g.useState(!1),i=(s,a)=>{r(d=>({...d,[s]:a})),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(_e,{value:n.name,onChange:s=>i("name",s.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(_e,{value:n.description,onChange:s=>i("description",s.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(Yt,{value:n.defaultFormat,onValueChange:s=>i("defaultFormat",s),children:[c.jsx(Ft,{className:"mt-1 w-full h-10 text-sm bg-zinc-50 border-zinc-200",children:c.jsx(Xt,{})}),c.jsxs(zt,{children:[c.jsx(J,{value:"9:16",children:"9:16 竖屏"}),c.jsx(J,{value:"16:9",children:"16:9 横屏"}),c.jsx(J,{value:"1:1",children:"1:1 方形"}),c.jsx(J,{value:"4:3",children:"4:3"})]})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"生图模型"}),c.jsxs(Yt,{value:n.imageModel,onValueChange:s=>i("imageModel",s),children:[c.jsx(Ft,{className:"mt-1 w-full h-10 text-sm bg-zinc-50 border-zinc-200",children:c.jsx(Xt,{})}),c.jsxs(zt,{children:[c.jsx(J,{value:"gemini",children:"Gemini"}),c.jsx(J,{value:"mj",children:"Midjourney"}),c.jsx(J,{value:"gpt",children:"GPT Image"}),c.jsx(J,{value:"kling",children:"Kling"})]})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"视频模型"}),c.jsxs(Yt,{value:n.videoModel,onValueChange:s=>i("videoModel",s),children:[c.jsx(Ft,{className:"mt-1 w-full h-10 text-sm bg-zinc-50 border-zinc-200",children:c.jsx(Xt,{})}),c.jsxs(zt,{children:[c.jsx(J,{value:"veo3-fast",children:"Veo3 Fast"}),c.jsx(J,{value:"veo3-fast-frames",children:"Veo3 Frames"}),c.jsx(J,{value:"kling",children:"Kling"}),c.jsx(J,{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(Yt,{value:n.pipeline,onValueChange:s=>i("pipeline",s),children:[c.jsx(Ft,{className:"mt-1 w-full h-10 text-sm bg-zinc-50 border-zinc-200",children:c.jsx(Xt,{})}),c.jsxs(zt,{children:[c.jsx(J,{value:"image-video",children:"图片+视频"}),c.jsx(J,{value:"single",children:"单图模式"})]})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"批量数量"}),c.jsx(_e,{type:"number",value:n.batchSize,onChange:s=>i("batchSize",parseInt(s.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(_e,{value:n.ttsVoice,onChange:s=>i("ttsVoice",s.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:s=>i("ttsInstruction",s.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(It,{onClick:l,children:u?"已保存":"保存基本信息"})]})}var zg={},Fe=wt&&wt.__assign||function(){return Fe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(e[u]=t[u])}return e},Fe.apply(this,arguments)},x8=wt&&wt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var u=Object.getOwnPropertyDescriptor(t,n);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),v8=wt&&wt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),y8=wt&&wt.__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)&&x8(t,e,n);return v8(t,e),t},b8=wt&&wt.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(n[r[u]]=e[r[u]]);return n};Object.defineProperty(zg,"__esModule",{value:!0});var gt=y8(g),w8=89,oi=90,k8=77,Wf=57,qf=219,Kf=222,Gf=192,Zf=100,C8=3e3,_8=typeof window<"u"&&"navigator"in window&&/Win/i.test(navigator.platform),Rs=typeof window<"u"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Ci="npm__react-simple-code-editor__textarea",E8=`
/**
* Reset the text fill color so that placeholder is visible
*/
.`.concat(Ci,`: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(Ci,` {
color: transparent !important;
}
.`).concat(Ci,`::selection {
background-color: #accef7 !important;
color: transparent !important;
}
}
`),S8=gt.forwardRef(function(t,n){var r=t.autoFocus,u=t.disabled,o=t.form,i=t.highlight,l=t.ignoreTabKey,s=l===void 0?!1:l,a=t.insertSpaces,d=a===void 0?!0:a,p=t.maxLength,m=t.minLength,y=t.name,v=t.onBlur,b=t.onClick,C=t.onFocus,x=t.onKeyDown,f=t.onKeyUp,h=t.onValueChange,w=t.padding,k=w===void 0?0:w,_=t.placeholder,S=t.preClassName,E=t.readOnly,A=t.required,D=t.style,z=t.tabSize,M=z===void 0?2:z,U=t.textareaClassName,T=t.textareaId,I=t.value,B=b8(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"]),$=gt.useRef({stack:[],offset:-1}),N=gt.useRef(null),P=gt.useState(!0),j=P[0],L=P[1],V={paddingTop:typeof k=="object"?k.top:k,paddingRight:typeof k=="object"?k.right:k,paddingBottom:typeof k=="object"?k.bottom:k,paddingLeft:typeof k=="object"?k.left:k},$e=i(I),ee=function(F,G){return F.substring(0,G).split(`
`)},ye=gt.useCallback(function(F,G){var W,q,ie;G===void 0&&(G=!1);var Te=$.current,Ze=Te.stack,yu=Te.offset;if(Ze.length&&yu>-1){$.current.stack=Ze.slice(0,yu+1);var bu=$.current.stack.length;if(bu>Zf){var wr=bu-Zf;$.current.stack=Ze.slice(wr,bu),$.current.offset=Math.max($.current.offset-wr,0)}}var Ht=Date.now();if(G){var kn=$.current.stack[$.current.offset];if(kn&&Ht-kn.timestamp<C8){var wu=/[^a-z0-9]([a-z0-9]+)$/i,ut=(W=ee(kn.value,kn.selectionStart).pop())===null||W===void 0?void 0:W.match(wu),ku=(q=ee(F.value,F.selectionStart).pop())===null||q===void 0?void 0:q.match(wu);if(ut!=null&&ut[1]&&(!((ie=ku==null?void 0:ku[1])===null||ie===void 0)&&ie.startsWith(ut[1]))){$.current.stack[$.current.offset]=Fe(Fe({},F),{timestamp:Ht});return}}}$.current.stack.push(Fe(Fe({},F),{timestamp:Ht})),$.current.offset++},[]),he=gt.useCallback(function(){var F=N.current;if(F){var G=F.value,W=F.selectionStart,q=F.selectionEnd;ye({value:G,selectionStart:W,selectionEnd:q})}},[ye]),H=function(F){var G=N.current;G&&(G.value=F.value,G.selectionStart=F.selectionStart,G.selectionEnd=F.selectionEnd,h==null||h(F.value))},Y=function(F){var G=N.current,W=$.current.stack[$.current.offset];W&&G&&($.current.stack[$.current.offset]=Fe(Fe({},W),{selectionStart:G.selectionStart,selectionEnd:G.selectionEnd})),ye(F),H(F)},be=function(){var F=$.current,G=F.stack,W=F.offset,q=G[W-1];q&&(H(q),$.current.offset=Math.max(W-1,0))},ne=function(){var F=$.current,G=F.stack,W=F.offset,q=G[W+1];q&&(H(q),$.current.offset=Math.min(W+1,G.length-1))},X=function(F){if(!(x&&(x(F),F.defaultPrevented))){F.key==="Escape"&&F.currentTarget.blur();var G=F.currentTarget,W=G.value,q=G.selectionStart,ie=G.selectionEnd,Te=(d?" ":" ").repeat(M);if(F.key==="Tab"&&!s&&j)if(F.preventDefault(),F.shiftKey){var Ze=ee(W,q),yu=Ze.length-1,bu=ee(W,ie).length-1,wr=W.split(`
`).map(function(Cu,wd){return wd>=yu&&wd<=bu&&Cu.startsWith(Te)?Cu.substring(Te.length):Cu}).join(`
`);if(W!==wr){var Ht=Ze[yu];Y({value:wr,selectionStart:Ht!=null&&Ht.startsWith(Te)?q-Te.length:q,selectionEnd:ie-(W.length-wr.length)})}}else if(q!==ie){var Ze=ee(W,q),kn=Ze.length-1,wu=ee(W,ie).length-1,Ht=Ze[kn];Y({value:W.split(`
`).map(function(kd,Cd){return Cd>=kn&&Cd<=wu?Te+kd:kd}).join(`
`),selectionStart:Ht&&/\S/.test(Ht)?q+Te.length:q,selectionEnd:ie+Te.length*(wu-kn+1)})}else{var ut=q+Te.length;Y({value:W.substring(0,q)+Te+W.substring(ie),selectionStart:ut,selectionEnd:ut})}else if(F.key==="Backspace"){var ku=q!==ie,Pg=W.substring(0,q);if(Pg.endsWith(Te)&&!ku){F.preventDefault();var ut=q-Te.length;Y({value:W.substring(0,q-Te.length)+W.substring(ie),selectionStart:ut,selectionEnd:ut})}}else if(F.key==="Enter"){if(q===ie){var Ll=ee(W,q).pop(),Ro=Ll==null?void 0:Ll.match(/^\s+/);if(Ro!=null&&Ro[0]){F.preventDefault();var bd=`
`+Ro[0],ut=q+bd.length;Y({value:W.substring(0,q)+bd+W.substring(ie),selectionStart:ut,selectionEnd:ut})}}}else if(F.keyCode===Wf||F.keyCode===qf||F.keyCode===Kf||F.keyCode===Gf){var on=void 0;F.keyCode===Wf&&F.shiftKey?on=["(",")"]:F.keyCode===qf?F.shiftKey?on=["{","}"]:on=["[","]"]:F.keyCode===Kf?F.shiftKey?on=['"','"']:on=["'","'"]:F.keyCode===Gf&&!F.shiftKey&&(on=["`","`"]),q!==ie&&on&&(F.preventDefault(),Y({value:W.substring(0,q)+on[0]+W.substring(q,ie)+on[1]+W.substring(ie),selectionStart:q,selectionEnd:ie+2}))}else(Rs?F.metaKey&&F.keyCode===oi:F.ctrlKey&&F.keyCode===oi)&&!F.shiftKey&&!F.altKey?(F.preventDefault(),be()):(Rs?F.metaKey&&F.keyCode===oi&&F.shiftKey:_8?F.ctrlKey&&F.keyCode===w8:F.ctrlKey&&F.keyCode===oi&&F.shiftKey)&&!F.altKey?(F.preventDefault(),ne()):F.keyCode===k8&&F.ctrlKey&&(!Rs||F.shiftKey)&&(F.preventDefault(),L(function(Cu){return!Cu}))}},re=function(F){var G=F.currentTarget,W=G.value,q=G.selectionStart,ie=G.selectionEnd;ye({value:W,selectionStart:q,selectionEnd:ie},!0),h(W)};return gt.useEffect(function(){he()},[he]),gt.useImperativeHandle(n,function(){return{get session(){return{history:$.current}},set session(F){$.current=F.history}}},[]),gt.createElement("div",Fe({},B,{style:Fe(Fe({},Mu.container),D)}),gt.createElement("pre",Fe({className:S,"aria-hidden":"true",style:Fe(Fe(Fe({},Mu.editor),Mu.highlight),V)},typeof $e=="string"?{dangerouslySetInnerHTML:{__html:$e+"<br />"}}:{children:$e})),gt.createElement("textarea",{ref:function(F){return N.current=F},style:Fe(Fe(Fe({},Mu.editor),Mu.textarea),V),className:Ci+(U?" ".concat(U):""),id:T,value:I,onChange:re,onKeyDown:X,onClick:b,onKeyUp:f,onFocus:C,onBlur:v,disabled:u,form:o,maxLength:p,minLength:m,name:y,placeholder:_,readOnly:E,required:A,autoFocus:r,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),gt.createElement("style",{dangerouslySetInnerHTML:{__html:E8}}))}),Mu={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"}},A8=zg.default=S8,Rg={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(r){var u=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,i={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function f(h){return h instanceof s?new s(h.type,f(h.content),h.alias):Array.isArray(h)?h.map(f):h.replace(/&/g,"&amp;").replace(/</g,"&lt;").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(h,w){w=w||{};var k,_;switch(l.util.type(h)){case"Object":if(_=l.util.objId(h),w[_])return w[_];k={},w[_]=k;for(var S in h)h.hasOwnProperty(S)&&(k[S]=f(h[S],w));return k;case"Array":return _=l.util.objId(h),w[_]?w[_]:(k=[],w[_]=k,h.forEach(function(E,A){k[A]=f(E,w)}),k);default:return h}},getLanguage:function(f){for(;f;){var h=u.exec(f.className);if(h)return h[1].toLowerCase();f=f.parentElement}return"none"},setLanguage:function(f,h){f.className=f.className.replace(RegExp(u,"gi"),""),f.classList.add("language-"+h)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(k){var f=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(f){var h=document.getElementsByTagName("script");for(var w in h)if(h[w].src==f)return h[w]}return null}},isActive:function(f,h,w){for(var k="no-"+h;f;){var _=f.classList;if(_.contains(h))return!0;if(_.contains(k))return!1;f=f.parentElement}return!!w}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(f,h){var w=l.util.clone(l.languages[f]);for(var k in h)w[k]=h[k];return w},insertBefore:function(f,h,w,k){k=k||l.languages;var _=k[f],S={};for(var E in _)if(_.hasOwnProperty(E)){if(E==h)for(var A in w)w.hasOwnProperty(A)&&(S[A]=w[A]);w.hasOwnProperty(E)||(S[E]=_[E])}var D=k[f];return k[f]=S,l.languages.DFS(l.languages,function(z,M){M===D&&z!=f&&(this[z]=S)}),S},DFS:function f(h,w,k,_){_=_||{};var S=l.util.objId;for(var E in h)if(h.hasOwnProperty(E)){w.call(h,E,h[E],k||E);var A=h[E],D=l.util.type(A);D==="Object"&&!_[S(A)]?(_[S(A)]=!0,f(A,w,null,_)):D==="Array"&&!_[S(A)]&&(_[S(A)]=!0,f(A,w,E,_))}}},plugins:{},highlightAll:function(f,h){l.highlightAllUnder(document,f,h)},highlightAllUnder:function(f,h,w){var k={callback:w,container:f,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),l.hooks.run("before-all-elements-highlight",k);for(var _=0,S;S=k.elements[_++];)l.highlightElement(S,h===!0,k.callback)},highlightElement:function(f,h,w){var k=l.util.getLanguage(f),_=l.languages[k];l.util.setLanguage(f,k);var S=f.parentElement;S&&S.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(S,k);var E=f.textContent,A={element:f,language:k,grammar:_,code:E};function D(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),w&&w.call(A.element)}if(l.hooks.run("before-sanity-check",A),S=A.element.parentElement,S&&S.nodeName.toLowerCase()==="pre"&&!S.hasAttribute("tabindex")&&S.setAttribute("tabindex","0"),!A.code){l.hooks.run("complete",A),w&&w.call(A.element);return}if(l.hooks.run("before-highlight",A),!A.grammar){D(l.util.encode(A.code));return}if(h&&r.Worker){var z=new Worker(l.filename);z.onmessage=function(M){D(M.data)},z.postMessage(JSON.stringify({language:A.language,code:A.code,immediateClose:!0}))}else D(l.highlight(A.code,A.grammar,A.language))},highlight:function(f,h,w){var k={code:f,grammar:h,language:w};if(l.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=l.tokenize(k.code,k.grammar),l.hooks.run("after-tokenize",k),s.stringify(l.util.encode(k.tokens),k.language)},tokenize:function(f,h){var w=h.rest;if(w){for(var k in w)h[k]=w[k];delete h.rest}var _=new p;return m(_,_.head,f),d(f,_,h,_.head,0),v(_)},hooks:{all:{},add:function(f,h){var w=l.hooks.all;w[f]=w[f]||[],w[f].push(h)},run:function(f,h){var w=l.hooks.all[f];if(!(!w||!w.length))for(var k=0,_;_=w[k++];)_(h)}},Token:s};r.Prism=l;function s(f,h,w,k){this.type=f,this.content=h,this.alias=w,this.length=(k||"").length|0}s.stringify=function f(h,w){if(typeof h=="string")return h;if(Array.isArray(h)){var k="";return h.forEach(function(D){k+=f(D,w)}),k}var _={type:h.type,content:f(h.content,w),tag:"span",classes:["token",h.type],attributes:{},language:w},S=h.alias;S&&(Array.isArray(S)?Array.prototype.push.apply(_.classes,S):_.classes.push(S)),l.hooks.run("wrap",_);var E="";for(var A in _.attributes)E+=" "+A+'="'+(_.attributes[A]||"").replace(/"/g,"&quot;")+'"';return"<"+_.tag+' class="'+_.classes.join(" ")+'"'+E+">"+_.content+"</"+_.tag+">"};function a(f,h,w,k){f.lastIndex=h;var _=f.exec(w);if(_&&k&&_[1]){var S=_[1].length;_.index+=S,_[0]=_[0].slice(S)}return _}function d(f,h,w,k,_,S){for(var E in w)if(!(!w.hasOwnProperty(E)||!w[E])){var A=w[E];A=Array.isArray(A)?A:[A];for(var D=0;D<A.length;++D){if(S&&S.cause==E+","+D)return;var z=A[D],M=z.inside,U=!!z.lookbehind,T=!!z.greedy,I=z.alias;if(T&&!z.pattern.global){var B=z.pattern.toString().match(/[imsuy]*$/)[0];z.pattern=RegExp(z.pattern.source,B+"g")}for(var $=z.pattern||z,N=k.next,P=_;N!==h.tail&&!(S&&P>=S.reach);P+=N.value.length,N=N.next){var j=N.value;if(h.length>f.length)return;if(!(j instanceof s)){var L=1,V;if(T){if(V=a($,P,f,U),!V||V.index>=f.length)break;var he=V.index,$e=V.index+V[0].length,ee=P;for(ee+=N.value.length;he>=ee;)N=N.next,ee+=N.value.length;if(ee-=N.value.length,P=ee,N.value instanceof s)continue;for(var ye=N;ye!==h.tail&&(ee<$e||typeof ye.value=="string");ye=ye.next)L++,ee+=ye.value.length;L--,j=f.slice(P,ee),V.index-=P}else if(V=a($,0,j,U),!V)continue;var he=V.index,H=V[0],Y=j.slice(0,he),be=j.slice(he+H.length),ne=P+j.length;S&&ne>S.reach&&(S.reach=ne);var X=N.prev;Y&&(X=m(h,X,Y),P+=Y.length),y(h,X,L);var re=new s(E,M?l.tokenize(H,M):H,I,H);if(N=m(h,X,re),be&&m(h,N,be),L>1){var F={cause:E+","+D,reach:ne};d(f,h,w,N.prev,P,F),S&&F.reach>S.reach&&(S.reach=F.reach)}}}}}}function p(){var f={value:null,prev:null,next:null},h={value:null,prev:f,next:null};f.next=h,this.head=f,this.tail=h,this.length=0}function m(f,h,w){var k=h.next,_={value:w,prev:h,next:k};return h.next=_,k.prev=_,f.length++,_}function y(f,h,w){for(var k=h.next,_=0;_<w&&k!==f.tail;_++)k=k.next;h.next=k,k.prev=h,f.length-=_}function v(f){for(var h=[],w=f.head.next;w!==f.tail;)h.push(w.value),w=w.next;return h}if(!r.document)return r.addEventListener&&(l.disableWorkerMessageHandler||r.addEventListener("message",function(f){var h=JSON.parse(f.data),w=h.language,k=h.code,_=h.immediateClose;r.postMessage(l.highlight(k,l.languages[w],w)),_&&r.close()},!1)),l;var b=l.util.currentScript();b&&(l.filename=b.src,b.hasAttribute("data-manual")&&(l.manual=!0));function C(){l.manual||l.highlightAll()}if(!l.manual){var x=document.readyState;x==="loading"||x==="interactive"&&b&&b.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return l}(t);e.exports&&(e.exports=n),typeof wt<"u"&&(wt.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(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(u,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 s={};s[u]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return u}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,u){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\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:[u,"language-"+u],inside:n.languages[u]},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(r){var u=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+u.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\\((?:"+u.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+u.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+u.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:u,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:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.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 r="Loading…",u=function(b,C){return"✖ Error "+b+" 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",s="loading",a="loaded",d="failed",p="pre[data-src]:not(["+l+'="'+a+'"]):not(['+l+'="'+s+'"])';function m(b,C,x){var f=new XMLHttpRequest;f.open("GET",b,!0),f.onreadystatechange=function(){f.readyState==4&&(f.status<400&&f.responseText?C(f.responseText):f.status>=400?x(u(f.status,f.statusText)):x(o))},f.send(null)}function y(b){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b||"");if(C){var x=Number(C[1]),f=C[2],h=C[3];return f?h?[x,Number(h)]:[x,void 0]:[x,x]}}n.hooks.add("before-highlightall",function(b){b.selector+=", "+p}),n.hooks.add("before-sanity-check",function(b){var C=b.element;if(C.matches(p)){b.code="",C.setAttribute(l,s);var x=C.appendChild(document.createElement("CODE"));x.textContent=r;var f=C.getAttribute("data-src"),h=b.language;if(h==="none"){var w=(/\.(\w+)$/.exec(f)||[,"none"])[1];h=i[w]||w}n.util.setLanguage(x,h),n.util.setLanguage(C,h);var k=n.plugins.autoloader;k&&k.loadLanguages(h),m(f,function(_){C.setAttribute(l,a);var S=y(C.getAttribute("data-range"));if(S){var E=_.split(/\r\n?|\n/g),A=S[0],D=S[1]==null?E.length:S[1];A<0&&(A+=E.length),A=Math.max(0,Math.min(A-1,E.length)),D<0&&(D+=E.length),D=Math.max(0,Math.min(D,E.length)),_=E.slice(A,D).join(`
`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(A+1))}x.textContent=_,n.highlightElement(x)},function(_){C.setAttribute(l,d),x.textContent=_})}}),n.plugins.fileHighlight={highlight:function(C){for(var x=(C||document).querySelectorAll(p),f=0,h;h=x[f++];)n.highlightElement(h)}};var v=!1;n.fileHighlight=function(){v||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),v=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Rg);var Qf=Rg.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 r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,u=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),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("^"+u+o+"(?:"+u+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+u+o+")(?:"+u+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+u+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+u+"$"),inside:{"table-header":{pattern:RegExp(r),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(p){d!==p&&(e.languages.markdown[d].inside.content.inside[p]=e.languages.markdown[p])})}),e.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function p(m){if(!(!m||typeof m=="string"))for(var y=0,v=m.length;y<v;y++){var b=m[y];if(b.type!=="code"){p(b.content);continue}var C=b.content[1],x=b.content[3];if(C&&x&&C.type==="code-language"&&x.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 h="language-"+f;x.alias?typeof x.alias=="string"?x.alias=[x.alias,h]:x.alias.push(h):x.alias=[h]}}}p(d.tokens)}),e.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var p="",m=0,y=d.classes.length;m<y;m++){var v=d.classes[m],b=/language-(.+)/.exec(v);if(b){p=b[1];break}}var C=e.languages[p];if(C)d.content=e.highlight(a(d.content),C,p);else if(p&&p!=="none"&&e.plugins.autoloader){var x="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=x,e.plugins.autoloader.loadLanguages(p,function(){var f=document.getElementById(x);f&&(f.innerHTML=e.highlight(f.textContent,e.languages[p],p))})}}});var i=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;function a(d){var p=d.replace(i,"");return p=p.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(m,y){if(y=y.toLowerCase(),y[0]==="#"){var v;return y[1]==="x"?v=parseInt(y.slice(2),16):v=Number(y.slice(1)),s(v)}else{var b=l[y];return b||m}}),p}e.languages.md=e.languages.markdown})(Prism);(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",u=/(?:[^\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,s){s=(s||"").replace(/m/g,"")+"m";var a=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return l});return RegExp(a,s)}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 r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return"(?:"+u+"|"+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 N8(){const[e,t]=g.useState(""),[n,r]=g.useState(""),[u,o]=g.useState(!1),i=g.useCallback(async(s,a)=>{o(!0);try{const d=await ke.getPrompt(s,a);t(d.content),r(d.path)}catch{t(""),r("")}o(!1)},[]),l=g.useCallback(async(s,a,d)=>{await ke.savePrompt(s,a,d),t(d)},[]);return{content:e,path:n,loading:u,load:i,save:l,setContent:t}}const D8=[{type:"storyboard",label:"分镜"},{type:"image",label:"图片提示词"},{type:"video",label:"视频提示词"}],j8={fontFamily:'"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace',fontSize:13,lineHeight:1.6,minHeight:"100%"};function F8({accountId:e}={}){const{accounts:t}=yd(),[n,r]=g.useState(""),[u,o]=g.useState("storyboard"),{content:i,path:l,loading:s,load:a,save:d,setContent:p}=N8();g.useEffect(()=>{e?r(e):t.length>0&&!n&&r(t[0].id)},[e,t]),g.useEffect(()=>{n&&a(n,u)},[n,u]);const m=g.useCallback(y=>{try{return Qf.highlight(y,Qf.languages.markdown,"markdown")}catch{return y}},[]);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.jsxs(Yt,{value:n,onValueChange:r,children:[c.jsx(Ft,{className:"mt-1 w-full h-9 text-sm",children:c.jsx(Xt,{placeholder:"选择账户"})}),c.jsx(zt,{children:t.map(y=>c.jsx(J,{value:y.id,children:y.name},y.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:D8.map(({type:y,label:v})=>c.jsx("button",{onClick:()=>o(y),className:`w-full text-left px-2 py-1.5 rounded text-sm transition-colors ${u===y?"bg-indigo-50 text-indigo-700 font-medium":"text-zinc-500 hover:text-zinc-700 hover:bg-white"}`,children:v},y))})]})]}),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(It,{size:"sm",onClick:()=>d(n,u,i),disabled:!n||s,className:"text-xs",children:s?"加载中...":"保存"})]}),c.jsx("div",{className:"flex-1 overflow-auto",children:c.jsx(A8,{value:i,onValueChange:p,highlight:m,padding:16,style:j8,className:"min-h-full bg-white",textareaClassName:"outline-none"})})]})]})}function z8({accountId:e}){return c.jsx(F8,{accountId:e})}const R8={effects:[],filter:"",subtitleStyle:{fontSize:24,color:"#FFFFFF",highlightColor:"#FF6B35",bold:!0,transformY:-380,inAnimation:"淡入",outAnimation:"淡出"},defaultBGM:""};function P8({account:e,onSave:t}){const n=e.capcut||R8,[r,u]=g.useState((n.effects||[]).join(", ")),[o,i]=g.useState(n.filter||""),[l,s]=g.useState(n.subtitleStyle||{}),[a,d]=g.useState(n.defaultBGM||""),[p,m]=g.useState(!1),y=()=>{t({capcut:{...n,effects:r.split(",").map(v=>v.trim()).filter(Boolean),filter:o,subtitleStyle:l,defaultBGM:a}}),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(_e,{value:r,onChange:v=>u(v.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(_e,{value:o,onChange:v=>i(v.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(_e,{type:"number",value:l.fontSize||"",onChange:v=>s({...l,fontSize:parseInt(v.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:v=>s({...l,color:v.target.value}),className:"w-8 h-8 rounded border border-zinc-200 cursor-pointer"}),c.jsx(_e,{value:l.color||"",onChange:v=>s({...l,color:v.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:v=>s({...l,highlightColor:v.target.value}),className:"w-8 h-8 rounded border border-zinc-200 cursor-pointer"}),c.jsx(_e,{value:l.highlightColor||"",onChange:v=>s({...l,highlightColor:v.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(_e,{type:"number",value:l.transformY||"",onChange:v=>s({...l,transformY:parseInt(v.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(_e,{value:l.inAnimation||"",onChange:v=>s({...l,inAnimation:v.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(_e,{value:l.outAnimation||"",onChange:v=>s({...l,outAnimation:v.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:v=>s({...l,bold:v.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(_e,{value:a,onChange:v=>d(v.target.value),placeholder:"BGM URL",className:"bg-zinc-50 border-zinc-200 text-xs font-mono"})]}),c.jsx(It,{onClick:y,children:p?"已保存":"保存 CapCut 配置"})]})}function T8({account:e,onSave:t}){const n=e.references||[],[r,u]=g.useState(!1),o=g.useRef(null),i=async s=>{var d;const a=(d=s.target.files)==null?void 0:d[0];if(a){u(!0);try{const p=new FormData;p.append("file",a),await fetch(`/api/accounts/${e.id}/references/upload`,{method:"POST",body:p});const m=await ke.getAccount(e.id);t({references:m.references})}catch(p){alert("上传失败: "+p.message)}u(!1),o.current&&(o.current.value="")}},l=async s=>{if(confirm("确定删除这张参考图?"))try{await fetch(`/api/accounts/${e.id}/references/${s}`,{method:"DELETE"});const a=await ke.getAccount(e.id);t({references:a.references})}catch(a){alert("删除失败: "+a.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(It,{variant:"outline",size:"sm",onClick:()=>{var s;return(s=o.current)==null?void 0:s.click()},disabled:r,children:[c.jsx(ib,{size:14,className:"mr-1"}),r?"上传中...":"添加参考图"]}),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((s,a)=>c.jsxs("div",{className:"group relative aspect-square bg-zinc-100 rounded-lg overflow-hidden border border-zinc-200",children:[s.file?c.jsx("img",{src:`/api/accounts/${e.id}/references/${encodeURIComponent(s.file.split("/").pop()||"")}`,alt:"",className:"w-full h-full object-cover"}):s.url?c.jsx("img",{src:s.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(hr,{size:20,className:"text-zinc-400"})}),c.jsx("button",{onClick:()=>l(a),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(No,{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:s.file})})]},a))}):c.jsxs("div",{className:"text-center py-8 text-zinc-400",children:[c.jsx(hr,{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(([s,a])=>{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:s}),c.jsxs("span",{className:"text-zinc-400",children:[((d=a.references)==null?void 0:d.length)||0," 张"]})]},s)})})]})]})}const M8=[{key:"basic",label:"基本信息"},{key:"prompts",label:"提示词"},{key:"capcut",label:"CapCut"},{key:"references",label:"参考图"}];function L8({account:e,onSave:t,onDelete:n,onBack:r}){const[u,o]=g.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:r,className:"p-1 rounded hover:bg-zinc-100 text-zinc-500 hover:text-zinc-700 transition-colors",children:c.jsx(Wy,{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(It,{size:"sm",variant:"ghost",className:"text-red-500 hover:bg-red-50 hover:text-red-600",onClick:()=>{confirm(`确定删除账户「${e.name}」?`)&&n()},children:[c.jsx(No,{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:M8.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
${u===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:[u==="basic"&&c.jsx(g8,{account:e,onSave:t}),u==="prompts"&&c.jsx(z8,{accountId:e.id}),u==="capcut"&&c.jsx(P8,{account:e,onSave:t}),u==="references"&&c.jsx(T8,{account:e,onSave:t})]})]})}function I8(){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 Yf(){const{accountId:e}=_1(),t=fu(),{accounts:n,loading:r,create:u,update:o,remove:i}=yd(),[l,s]=g.useState(""),a=e&&n.find(m=>m.id===e)||null,d=n.filter(m=>{if(!l)return!0;const y=l.toLowerCase();return m.name.toLowerCase().includes(y)||(m.description||"").toLowerCase().includes(y)}),p=async()=>{const m=`新账号 ${n.length+1}`,y=await u({name:m,pipeline:"image-video",defaultFormat:"9:16",imageModel:"gemini",videoModel:"veo3-fast"});y!=null&&y.id&&t(`/accounts/${y.id}`)};return a?c.jsx(L8,{account:a,onSave:m=>o(a.id,m),onDelete:()=>i(a.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(za,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-zinc-300"}),c.jsx(_e,{value:l,onChange:m=>s(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:p,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(U0,{size:14}),"新建账号"]})]}),c.jsx("div",{className:"flex-1 overflow-auto p-6",children:r?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,y)=>c.jsx(I8,{},y))}):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(m8,{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(za,{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:()=>s(""),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:p,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(U0,{size:14}),"创建第一个账号"]})]})]})})]})}function O8(e){const[t,n]=g.useState([]),[r,u]=g.useState(!0),o=g.useCallback(()=>{u(!0),ke.listAssets(e).then(n).finally(()=>u(!1))},[e==null?void 0:e.accountId,e==null?void 0:e.type]);return g.useEffect(()=>{o()},[o]),{assets:t,loading:r,refresh:o,remove:l=>ke.deleteAsset(l).then(o)}}function $8({title:e,subtitle:t,assets:n,onPreview:r,onDelete:u}){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(hr,{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(Da,{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:()=>r(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(Da,{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:s=>{s.stopPropagation(),confirm("确定删除这个资产?")&&u(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(No,{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 B8({asset:e,allAssets:t,onClose:n,onNavigate:r}){const u=t.findIndex(d=>d.id===e.id),o=g.useCallback(()=>{u>0&&r(t[u-1])},[u,t,r]),i=g.useCallback(()=>{u<t.length-1&&r(t[u+1])},[u,t,r]),l=g.useCallback(d=>{d.key==="Escape"&&n(),d.key==="ArrowLeft"&&o(),d.key==="ArrowRight"&&i()},[n,o,i]);g.useEffect(()=>(document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)),[l]);const s=u>0,a=u<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(pu,{size:20})}),s&&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(M1,{size:24})}),a&&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(Qc,{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:[u+1," / ",t.length]})]})}function U8(){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 H8(){const[e,t]=g.useState(""),[n,r]=g.useState("all"),[u,o]=g.useState([]),[i,l]=g.useState(null),{accounts:s}=yd(),{assets:a,loading:d,remove:p}=O8({accountId:e||void 0});g.useEffect(()=>{fetch("/api/assets/manifests").then(k=>k.json()).then(o).catch(()=>{})},[]);const m=g.useMemo(()=>n==="all"?a:a.filter(k=>k.type===n),[a,n]),y=g.useMemo(()=>{const k=new Map;for(const _ of m){const S=_.manifest_path||"ungrouped";k.has(S)||k.set(S,[]),k.get(S).push(_)}return k},[m]),v=a.filter(k=>k.type==="image").length,b=a.filter(k=>k.type==="video").length,C=async()=>{await fetch("/api/assets/scan",{method:"POST"}),window.location.reload()},x=k=>{const _=k.replace(/\\/g,"/").split("/");return _.length>=2?_[_.length-2]:k},f=k=>{const _=u.find(A=>A.manifest_path===k);if(!_)return"";const S=[];_.image_count&&S.push(`${_.image_count}`),_.video_count&&S.push(`${_.video_count} 视频`);const E=s.find(A=>A.id===_.account_id);return E&&S.push(E.name),S.join(" · ")},h=g.useMemo(()=>e?[...y.entries()].filter(([k])=>{if(k==="ungrouped")return!0;const _=u.find(S=>S.manifest_path===k);return(_==null?void 0:_.account_id)===e}):[...y.entries()],[y,u,e]),w=[{key:"all",label:"全部",icon:ja,count:a.length},{key:"image",label:"图片",icon:hr,count:v},{key:"video",label:"视频",icon:Da,count:b}];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:w.map(({key:k,label:_,icon:S,count:E})=>c.jsxs("button",{onClick:()=>r(k),className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium transition-all duration-150
${n===k?"bg-white text-indigo-600 shadow-sm":"text-zinc-400 hover:text-zinc-600"}`,children:[c.jsx(S,{size:13}),_,c.jsx("span",{className:`text-[10px] px-1.5 rounded-full ${n===k?"bg-indigo-50 text-indigo-500":"bg-zinc-100 text-zinc-400"}`,children:E})]},k))}),c.jsxs(Yt,{value:e||"all",onValueChange:k=>t(k==="all"?"":k),children:[c.jsx(Ft,{className:"h-8 w-auto min-w-[100px] text-xs border-zinc-100 bg-zinc-50/80 hover:border-zinc-200",children:c.jsx(Xt,{placeholder:"全部账号"})}),c.jsxs(zt,{children:[c.jsx(J,{value:"all",children:"全部账号"}),s.map(k=>c.jsx(J,{value:k.id,children:k.name},k.id))]})]}),c.jsx("div",{className:"flex-1"}),c.jsxs(It,{size:"sm",variant:"outline",className:"h-8 text-xs rounded-lg",onClick:C,children:[c.jsx(Yc,{size:12,className:"mr-1"}),"扫描"]})]}),c.jsx("div",{className:"flex-1 overflow-auto p-4",children:d?c.jsx("div",{children:Array.from({length:3}).map((k,_)=>c.jsx(U8,{},_))}):h.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(ja,{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 目录导入"})]}):h.map(([k,_])=>c.jsx($8,{title:x(k),subtitle:f(k),assets:_,onPreview:l,onDelete:p},k))}),i&&c.jsx(B8,{asset:i,allAssets:m,onClose:()=>l(null),onNavigate:l})]})}const V8=[{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 W8(){var x;const[e,t]=g.useState("agent"),[n,r]=g.useState(!1),[u,o]=g.useState(!1),[i,l]=g.useState(!1),[s,a]=g.useState(null),[d,p]=g.useState({protocol:"anthropic",model:"",baseUrl:"",authToken:"",defaultImageModel:"",defaultVideoModel:"",defaultFormat:""}),[m,y]=g.useState({});g.useEffect(()=>{ke.getConfigs().then(f=>{const h={...d};for(const w of f)try{const k=typeof w.value=="string"?JSON.parse(w.value):w.value;w.key==="api_keys"&&(k.ANTHROPIC_MODEL&&(h.model=k.ANTHROPIC_MODEL),k.ANTHROPIC_BASE_URL&&(h.baseUrl=k.ANTHROPIC_BASE_URL),k.ANTHROPIC_AUTH_TOKEN&&(h.authToken=k.ANTHROPIC_AUTH_TOKEN),k.PROTOCOL&&(h.protocol=k.PROTOCOL)),w.key==="defaults"&&(k.imageModel&&(h.defaultImageModel=k.imageModel),k.videoModel&&(h.defaultVideoModel=k.videoModel),k.format&&(h.defaultFormat=k.format))}catch{}p(h)}),ke.getSkillsConfig().then(y).catch(()=>{})},[]);const v=(f,h)=>{p(w=>({...w,[f]:h}))},b=(f,h)=>{y(w=>({...w,[f]:h}))},C=async()=>{r(!0);try{e==="agent"?(await ke.saveConfig("api_keys",{PROTOCOL:d.protocol,ANTHROPIC_MODEL:d.model,ANTHROPIC_BASE_URL:d.baseUrl,ANTHROPIC_AUTH_TOKEN:d.authToken}),await ke.saveConfig("defaults",{imageModel:d.defaultImageModel,videoModel:d.defaultVideoModel,format:d.defaultFormat})):await ke.saveSkillsConfig(m),o(!0),setTimeout(()=>o(!1),2e3)}catch{}r(!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:()=>v("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(_e,{value:d.model,onChange:f=>v("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(_e,{value:d.baseUrl,onChange:f=>v("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(_e,{value:d.authToken,onChange:f=>v("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(It,{size:"sm",variant:"outline",className:"text-xs",disabled:i,onClick:async()=>{l(!0),a(null);try{await C();const h=await(await fetch("/api/configs/test-connection",{method:"POST"})).json();a(h)}catch(f){a({ok:!1,error:f.message})}l(!1)},children:[i?c.jsx(Fa,{size:12,className:"mr-1 animate-spin"}):c.jsx(ob,{size:12,className:"mr-1"}),i?"测试中...":"测试连接"]}),s&&c.jsx("span",{className:`text-xs ${s.ok?"text-green-600":"text-red-500"}`,children:s.ok?`连接成功 ${(x=s.models)!=null&&x.length?`(${s.models.join(", ")})`:""}`:s.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(Yt,{value:d.defaultImageModel||"none",onValueChange:f=>v("defaultImageModel",f==="none"?"":f),children:[c.jsx(Ft,{className:"mt-1 w-full h-10 text-sm bg-zinc-50 border-zinc-200",children:c.jsx(Xt,{placeholder:"未设置"})}),c.jsxs(zt,{children:[c.jsx(J,{value:"none",children:"未设置"}),c.jsx(J,{value:"gemini",children:"Gemini"}),c.jsx(J,{value:"mj",children:"Midjourney"}),c.jsx(J,{value:"gpt",children:"GPT Image"}),c.jsx(J,{value:"kling",children:"Kling"})]})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"视频模型"}),c.jsxs(Yt,{value:d.defaultVideoModel||"none",onValueChange:f=>v("defaultVideoModel",f==="none"?"":f),children:[c.jsx(Ft,{className:"mt-1 w-full h-10 text-sm bg-zinc-50 border-zinc-200",children:c.jsx(Xt,{placeholder:"未设置"})}),c.jsxs(zt,{children:[c.jsx(J,{value:"none",children:"未设置"}),c.jsx(J,{value:"veo3-fast",children:"Veo3 Fast"}),c.jsx(J,{value:"veo3-fast-frames",children:"Veo3 Fast Frames"}),c.jsx(J,{value:"kling",children:"Kling"}),c.jsx(J,{value:"grok",children:"Grok"})]})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:"画幅"}),c.jsxs(Yt,{value:d.defaultFormat||"none",onValueChange:f=>v("defaultFormat",f==="none"?"":f),children:[c.jsx(Ft,{className:"mt-1 w-full h-10 text-sm bg-zinc-50 border-zinc-200",children:c.jsx(Xt,{placeholder:"未设置"})}),c.jsxs(zt,{children:[c.jsx(J,{value:"none",children:"未设置"}),c.jsx(J,{value:"9:16",children:"9:16 竖屏"}),c.jsx(J,{value:"16:9",children:"16:9 横屏"}),c.jsx(J,{value:"1:1",children:"1:1 方形"})]})]})]})]})})]})]}):c.jsx(c.Fragment,{children:V8.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(h=>{const w=m[h.key];return h.type==="toggle"?c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:h.label}),c.jsx("button",{onClick:()=>b(h.key,!w),className:`w-10 h-5 rounded-full transition-colors relative ${w?"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 ${w?"left-5":"left-0.5"}`})})]},h.key):c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-medium text-zinc-500",children:h.label}),c.jsx(_e,{value:typeof w=="string"?w:w!=null?String(w):"",onChange:k=>b(h.key,k.target.value),type:h.type==="password"?"password":"text",placeholder:h.placeholder,className:"mt-1 bg-zinc-50 border-zinc-200 font-mono text-xs"})]},h.key)})})]},f.title))}),c.jsx(It,{onClick:C,disabled:n,className:"w-full",children:u?c.jsxs(c.Fragment,{children:[c.jsx(P1,{size:14,className:"mr-1"}),"已保存"]}):n?c.jsxs(c.Fragment,{children:[c.jsx(Fa,{size:14,className:"mr-1 animate-spin"}),"保存中..."]}):c.jsxs(c.Fragment,{children:[c.jsx(nb,{size:14,className:"mr-1"}),"保存设置"]})})]})})]})}function q8(){return c.jsx(Zb,{children:c.jsx(t3,{children:c.jsxs(sy,{children:[c.jsx(Sn,{path:"/",element:c.jsx(iy,{to:"/chat",replace:!0})}),c.jsx(Sn,{path:"/chat",element:c.jsx(Hf,{})}),c.jsx(Sn,{path:"/chat/:conversationId",element:c.jsx(Hf,{})}),c.jsx(Sn,{path:"/accounts",element:c.jsx(Yf,{})}),c.jsx(Sn,{path:"/accounts/:accountId",element:c.jsx(Yf,{})}),c.jsx(Sn,{path:"/assets",element:c.jsx(H8,{})}),c.jsx(Sn,{path:"/settings",element:c.jsx(W8,{})})]})})})}Ps.createRoot(document.getElementById("root")).render(c.jsx(it.StrictMode,{children:c.jsx(zy,{children:c.jsx(q8,{})})}));