@chances-ai/cli 17.0.0 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/boot/dispose.d.ts.map +1 -1
- package/dist/boot/dispose.js +11 -0
- package/dist/boot/dispose.js.map +1 -1
- package/dist/boot/load-runtime.d.ts +8 -0
- package/dist/boot/load-runtime.d.ts.map +1 -1
- package/dist/boot/load-runtime.js +2 -37
- package/dist/boot/load-runtime.js.map +1 -1
- package/dist/boot/open-browser.d.ts +10 -0
- package/dist/boot/open-browser.d.ts.map +1 -0
- package/dist/boot/open-browser.js +39 -0
- package/dist/boot/open-browser.js.map +1 -0
- package/dist/boot/web-assets.d.ts +11 -0
- package/dist/boot/web-assets.d.ts.map +1 -0
- package/dist/boot/web-assets.js +23 -0
- package/dist/boot/web-assets.js.map +1 -0
- package/dist/commands/chat.d.ts +2 -2
- package/dist/commands/chat.d.ts.map +1 -1
- package/dist/commands/chat.js +10 -4
- package/dist/commands/chat.js.map +1 -1
- package/dist/commands/config.d.ts +4 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +8 -3
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/doctor.d.ts +4 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +8 -3
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/help-text.d.ts +43 -0
- package/dist/commands/help-text.d.ts.map +1 -0
- package/dist/commands/help-text.js +87 -0
- package/dist/commands/help-text.js.map +1 -0
- package/dist/commands/prompt.d.ts +4 -1
- package/dist/commands/prompt.d.ts.map +1 -1
- package/dist/commands/prompt.js +6 -3
- package/dist/commands/prompt.js.map +1 -1
- package/dist/commands/serve.js +1 -1
- package/dist/commands/serve.js.map +1 -1
- package/dist/commands/stats.d.ts +4 -0
- package/dist/commands/stats.d.ts.map +1 -1
- package/dist/commands/stats.js +18 -0
- package/dist/commands/stats.js.map +1 -1
- package/dist/commands/version.d.ts.map +1 -1
- package/dist/commands/version.js +7 -17
- package/dist/commands/version.js.map +1 -1
- package/dist/slash/config.d.ts +10 -0
- package/dist/slash/config.d.ts.map +1 -0
- package/dist/slash/config.js +22 -0
- package/dist/slash/config.js.map +1 -0
- package/dist/slash/doctor.d.ts +9 -0
- package/dist/slash/doctor.d.ts.map +1 -0
- package/dist/slash/doctor.js +21 -0
- package/dist/slash/doctor.js.map +1 -0
- package/dist/slash/help.d.ts +9 -8
- package/dist/slash/help.d.ts.map +1 -1
- package/dist/slash/help.js +36 -18
- package/dist/slash/help.js.map +1 -1
- package/dist/slash/index.d.ts +6 -0
- package/dist/slash/index.d.ts.map +1 -1
- package/dist/slash/index.js +11 -1
- package/dist/slash/index.js.map +1 -1
- package/dist/slash/stats.d.ts +10 -0
- package/dist/slash/stats.d.ts.map +1 -0
- package/dist/slash/stats.js +23 -0
- package/dist/slash/stats.js.map +1 -0
- package/dist/slash/web.d.ts +25 -0
- package/dist/slash/web.d.ts.map +1 -0
- package/dist/slash/web.js +79 -0
- package/dist/slash/web.js.map +1 -0
- package/dist/web/assets/index-C060taGU.css +1 -0
- package/dist/web/assets/index-DGs1rWta.js +110 -0
- package/dist/web/assets/index-DGs1rWta.js.map +1 -0
- package/dist/web/index.html +13 -0
- package/package.json +21 -21
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
var wv=Object.defineProperty;var Dv=(a,i,r)=>i in a?wv(a,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[i]=r;var mt=(a,i,r)=>Dv(a,typeof i!="symbol"?i+"":i,r);function zv(a,i){for(var r=0;r<i.length;r++){const o=i[r];if(typeof o!="string"&&!Array.isArray(o)){for(const u in o)if(u!=="default"&&!(u in a)){const f=Object.getOwnPropertyDescriptor(o,u);f&&Object.defineProperty(a,u,f.get?f:{enumerable:!0,get:()=>o[u]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&o(m)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();function Pp(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Lu={exports:{}},xs={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Hg;function Bv(){if(Hg)return xs;Hg=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(o,u,f){var m=null;if(f!==void 0&&(m=""+f),u.key!==void 0&&(m=""+u.key),"key"in u){f={};for(var p in u)p!=="key"&&(f[p]=u[p])}else f=u;return u=f.ref,{$$typeof:a,type:o,key:m,ref:u!==void 0?u:null,props:f}}return xs.Fragment=i,xs.jsx=r,xs.jsxs=r,xs}var $g;function Lv(){return $g||($g=1,Lu.exports=Bv()),Lu.exports}var Z=Lv(),Uu={exports:{}},Rs={},ku={exports:{}},Hu={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var jg;function Uv(){return jg||(jg=1,(function(a){function i(L,W){var P=L.length;L.push(W);e:for(;0<P;){var ve=P-1>>>1,Y=L[ve];if(0<u(Y,W))L[ve]=W,L[P]=Y,P=ve;else break e}}function r(L){return L.length===0?null:L[0]}function o(L){if(L.length===0)return null;var W=L[0],P=L.pop();if(P!==W){L[0]=P;e:for(var ve=0,Y=L.length,A=Y>>>1;ve<A;){var k=2*(ve+1)-1,j=L[k],re=k+1,xe=L[re];if(0>u(j,P))re<Y&&0>u(xe,j)?(L[ve]=xe,L[re]=P,ve=re):(L[ve]=j,L[k]=P,ve=k);else if(re<Y&&0>u(xe,P))L[ve]=xe,L[re]=P,ve=re;else break e}}return W}function u(L,W){var P=L.sortIndex-W.sortIndex;return P!==0?P:L.id-W.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,p=m.now();a.unstable_now=function(){return m.now()-p}}var h=[],g=[],y=1,S=null,_=3,E=!1,O=!1,M=!1,x=!1,N=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function X(L){for(var W=r(g);W!==null;){if(W.callback===null)o(g);else if(W.startTime<=L)o(g),W.sortIndex=W.expirationTime,i(h,W);else break;W=r(g)}}function J(L){if(M=!1,X(L),!O)if(r(h)!==null)O=!0,K||(K=!0,se());else{var W=r(g);W!==null&&De(J,W.startTime-L)}}var K=!1,ae=-1,I=5,de=-1;function we(){return x?!0:!(a.unstable_now()-de<I)}function ie(){if(x=!1,K){var L=a.unstable_now();de=L;var W=!0;try{e:{O=!1,M&&(M=!1,D(ae),ae=-1),E=!0;var P=_;try{t:{for(X(L),S=r(h);S!==null&&!(S.expirationTime>L&&we());){var ve=S.callback;if(typeof ve=="function"){S.callback=null,_=S.priorityLevel;var Y=ve(S.expirationTime<=L);if(L=a.unstable_now(),typeof Y=="function"){S.callback=Y,X(L),W=!0;break t}S===r(h)&&o(h),X(L)}else o(h);S=r(h)}if(S!==null)W=!0;else{var A=r(g);A!==null&&De(J,A.startTime-L),W=!1}}break e}finally{S=null,_=P,E=!1}W=void 0}}finally{W?se():K=!1}}}var se;if(typeof w=="function")se=function(){w(ie)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,Ee=_e.port2;_e.port1.onmessage=ie,se=function(){Ee.postMessage(null)}}else se=function(){N(ie,0)};function De(L,W){ae=N(function(){L(a.unstable_now())},W)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(L){L.callback=null},a.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<L?Math.floor(1e3/L):5},a.unstable_getCurrentPriorityLevel=function(){return _},a.unstable_next=function(L){switch(_){case 1:case 2:case 3:var W=3;break;default:W=_}var P=_;_=W;try{return L()}finally{_=P}},a.unstable_requestPaint=function(){x=!0},a.unstable_runWithPriority=function(L,W){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var P=_;_=L;try{return W()}finally{_=P}},a.unstable_scheduleCallback=function(L,W,P){var ve=a.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?ve+P:ve):P=ve,L){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=P+Y,L={id:y++,callback:W,priorityLevel:L,startTime:P,expirationTime:Y,sortIndex:-1},P>ve?(L.sortIndex=P,i(g,L),r(h)===null&&L===r(g)&&(M?(D(ae),ae=-1):M=!0,De(J,P-ve))):(L.sortIndex=Y,i(h,L),O||E||(O=!0,K||(K=!0,se()))),L},a.unstable_shouldYield=we,a.unstable_wrapCallback=function(L){var W=_;return function(){var P=_;_=W;try{return L.apply(this,arguments)}finally{_=P}}}})(Hu)),Hu}var Gg;function kv(){return Gg||(Gg=1,ku.exports=Uv()),ku.exports}var $u={exports:{}},Be={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var qg;function Hv(){if(qg)return Be;qg=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),_=Symbol.iterator;function E(A){return A===null||typeof A!="object"?null:(A=_&&A[_]||A["@@iterator"],typeof A=="function"?A:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,x={};function N(A,k,j){this.props=A,this.context=k,this.refs=x,this.updater=j||O}N.prototype.isReactComponent={},N.prototype.setState=function(A,k){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,k,"setState")},N.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function D(){}D.prototype=N.prototype;function w(A,k,j){this.props=A,this.context=k,this.refs=x,this.updater=j||O}var X=w.prototype=new D;X.constructor=w,M(X,N.prototype),X.isPureReactComponent=!0;var J=Array.isArray;function K(){}var ae={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function de(A,k,j){var re=j.ref;return{$$typeof:a,type:A,key:k,ref:re!==void 0?re:null,props:j}}function we(A,k){return de(A.type,k,A.props)}function ie(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function se(A){var k={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(j){return k[j]})}var _e=/\/+/g;function Ee(A,k){return typeof A=="object"&&A!==null&&A.key!=null?se(""+A.key):k.toString(36)}function De(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(K,K):(A.status="pending",A.then(function(k){A.status==="pending"&&(A.status="fulfilled",A.value=k)},function(k){A.status==="pending"&&(A.status="rejected",A.reason=k)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function L(A,k,j,re,xe){var Me=typeof A;(Me==="undefined"||Me==="boolean")&&(A=null);var Ve=!1;if(A===null)Ve=!0;else switch(Me){case"bigint":case"string":case"number":Ve=!0;break;case"object":switch(A.$$typeof){case a:case i:Ve=!0;break;case y:return Ve=A._init,L(Ve(A._payload),k,j,re,xe)}}if(Ve)return xe=xe(A),Ve=re===""?"."+Ee(A,0):re,J(xe)?(j="",Ve!=null&&(j=Ve.replace(_e,"$&/")+"/"),L(xe,k,j,"",function(ht){return ht})):xe!=null&&(ie(xe)&&(xe=we(xe,j+(xe.key==null||A&&A.key===xe.key?"":(""+xe.key).replace(_e,"$&/")+"/")+Ve)),k.push(xe)),1;Ve=0;var St=re===""?".":re+":";if(J(A))for(var je=0;je<A.length;je++)re=A[je],Me=St+Ee(re,je),Ve+=L(re,k,j,Me,xe);else if(je=E(A),typeof je=="function")for(A=je.call(A),je=0;!(re=A.next()).done;)re=re.value,Me=St+Ee(re,je++),Ve+=L(re,k,j,Me,xe);else if(Me==="object"){if(typeof A.then=="function")return L(De(A),k,j,re,xe);throw k=String(A),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return Ve}function W(A,k,j){if(A==null)return A;var re=[],xe=0;return L(A,re,"","",function(Me){return k.call(j,Me,xe++)}),re}function P(A){if(A._status===-1){var k=A._result;k=k(),k.then(function(j){(A._status===0||A._status===-1)&&(A._status=1,A._result=j)},function(j){(A._status===0||A._status===-1)&&(A._status=2,A._result=j)}),A._status===-1&&(A._status=0,A._result=k)}if(A._status===1)return A._result.default;throw A._result}var ve=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},Y={map:W,forEach:function(A,k,j){W(A,function(){k.apply(this,arguments)},j)},count:function(A){var k=0;return W(A,function(){k++}),k},toArray:function(A){return W(A,function(k){return k})||[]},only:function(A){if(!ie(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Be.Activity=S,Be.Children=Y,Be.Component=N,Be.Fragment=r,Be.Profiler=u,Be.PureComponent=w,Be.StrictMode=o,Be.Suspense=h,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae,Be.__COMPILER_RUNTIME={__proto__:null,c:function(A){return ae.H.useMemoCache(A)}},Be.cache=function(A){return function(){return A.apply(null,arguments)}},Be.cacheSignal=function(){return null},Be.cloneElement=function(A,k,j){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var re=M({},A.props),xe=A.key;if(k!=null)for(Me in k.key!==void 0&&(xe=""+k.key),k)!I.call(k,Me)||Me==="key"||Me==="__self"||Me==="__source"||Me==="ref"&&k.ref===void 0||(re[Me]=k[Me]);var Me=arguments.length-2;if(Me===1)re.children=j;else if(1<Me){for(var Ve=Array(Me),St=0;St<Me;St++)Ve[St]=arguments[St+2];re.children=Ve}return de(A.type,xe,re)},Be.createContext=function(A){return A={$$typeof:m,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},Be.createElement=function(A,k,j){var re,xe={},Me=null;if(k!=null)for(re in k.key!==void 0&&(Me=""+k.key),k)I.call(k,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(xe[re]=k[re]);var Ve=arguments.length-2;if(Ve===1)xe.children=j;else if(1<Ve){for(var St=Array(Ve),je=0;je<Ve;je++)St[je]=arguments[je+2];xe.children=St}if(A&&A.defaultProps)for(re in Ve=A.defaultProps,Ve)xe[re]===void 0&&(xe[re]=Ve[re]);return de(A,Me,xe)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(A){return{$$typeof:p,render:A}},Be.isValidElement=ie,Be.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:P}},Be.memo=function(A,k){return{$$typeof:g,type:A,compare:k===void 0?null:k}},Be.startTransition=function(A){var k=ae.T,j={};ae.T=j;try{var re=A(),xe=ae.S;xe!==null&&xe(j,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(K,ve)}catch(Me){ve(Me)}finally{k!==null&&j.types!==null&&(k.types=j.types),ae.T=k}},Be.unstable_useCacheRefresh=function(){return ae.H.useCacheRefresh()},Be.use=function(A){return ae.H.use(A)},Be.useActionState=function(A,k,j){return ae.H.useActionState(A,k,j)},Be.useCallback=function(A,k){return ae.H.useCallback(A,k)},Be.useContext=function(A){return ae.H.useContext(A)},Be.useDebugValue=function(){},Be.useDeferredValue=function(A,k){return ae.H.useDeferredValue(A,k)},Be.useEffect=function(A,k){return ae.H.useEffect(A,k)},Be.useEffectEvent=function(A){return ae.H.useEffectEvent(A)},Be.useId=function(){return ae.H.useId()},Be.useImperativeHandle=function(A,k,j){return ae.H.useImperativeHandle(A,k,j)},Be.useInsertionEffect=function(A,k){return ae.H.useInsertionEffect(A,k)},Be.useLayoutEffect=function(A,k){return ae.H.useLayoutEffect(A,k)},Be.useMemo=function(A,k){return ae.H.useMemo(A,k)},Be.useOptimistic=function(A,k){return ae.H.useOptimistic(A,k)},Be.useReducer=function(A,k,j){return ae.H.useReducer(A,k,j)},Be.useRef=function(A){return ae.H.useRef(A)},Be.useState=function(A){return ae.H.useState(A)},Be.useSyncExternalStore=function(A,k,j){return ae.H.useSyncExternalStore(A,k,j)},Be.useTransition=function(){return ae.H.useTransition()},Be.version="19.2.6",Be}var Ig;function qf(){return Ig||(Ig=1,$u.exports=Hv()),$u.exports}var ju={exports:{}},hn={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Yg;function $v(){if(Yg)return hn;Yg=1;var a=qf();function i(h){var g="https://react.dev/errors/"+h;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(h,g,y){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:h,containerInfo:g,implementation:y}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(h,g){if(h==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return hn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,hn.createPortal=function(h,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return f(h,g,null,y)},hn.flushSync=function(h){var g=m.T,y=o.p;try{if(m.T=null,o.p=2,h)return h()}finally{m.T=g,o.p=y,o.d.f()}},hn.preconnect=function(h,g){typeof h=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(h,g))},hn.prefetchDNS=function(h){typeof h=="string"&&o.d.D(h)},hn.preinit=function(h,g){if(typeof h=="string"&&g&&typeof g.as=="string"){var y=g.as,S=p(y,g.crossOrigin),_=typeof g.integrity=="string"?g.integrity:void 0,E=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?o.d.S(h,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:_,fetchPriority:E}):y==="script"&&o.d.X(h,{crossOrigin:S,integrity:_,fetchPriority:E,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},hn.preinitModule=function(h,g){if(typeof h=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=p(g.as,g.crossOrigin);o.d.M(h,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(h)},hn.preload=function(h,g){if(typeof h=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,S=p(y,g.crossOrigin);o.d.L(h,y,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},hn.preloadModule=function(h,g){if(typeof h=="string")if(g){var y=p(g.as,g.crossOrigin);o.d.m(h,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(h)},hn.requestFormReset=function(h){o.d.r(h)},hn.unstable_batchedUpdates=function(h,g){return h(g)},hn.useFormState=function(h,g,y){return m.H.useFormState(h,g,y)},hn.useFormStatus=function(){return m.H.useHostTransitionStatus()},hn.version="19.2.6",hn}var Vg;function eb(){if(Vg)return ju.exports;Vg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),ju.exports=$v(),ju.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Kg;function jv(){if(Kg)return Rs;Kg=1;var a=kv(),i=qf(),r=eb();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(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 p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(o(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,l=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return h(s),e;if(c===l)return h(s),t;c=c.sibling}throw Error(o(188))}if(n.return!==l.return)n=s,l=c;else{for(var d=!1,b=s.child;b;){if(b===n){d=!0,n=s,l=c;break}if(b===l){d=!0,l=s,n=c;break}b=b.sibling}if(!d){for(b=c.child;b;){if(b===n){d=!0,n=c,l=s;break}if(b===l){d=!0,l=c,n=s;break}b=b.sibling}if(!d)throw Error(o(189))}}if(n.alternate!==l)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,_=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),w=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),we=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function se(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var _e=Symbol.for("react.client.reference");function Ee(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_e?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case N:return"Profiler";case x:return"StrictMode";case J:return"Suspense";case K:return"SuspenseList";case de:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case w:return e.displayName||"Context";case D:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return t=e.displayName||null,t!==null?t:Ee(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return Ee(e(t))}catch{}}return null}var De=Array.isArray,L=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},ve=[],Y=-1;function A(e){return{current:e}}function k(e){0>Y||(e.current=ve[Y],ve[Y]=null,Y--)}function j(e,t){Y++,ve[Y]=e.current,e.current=t}var re=A(null),xe=A(null),Me=A(null),Ve=A(null);function St(e,t){switch(j(Me,t),j(xe,e),j(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rg(t),e=og(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}k(re),j(re,e)}function je(){k(re),k(xe),k(Me)}function ht(e){e.memoizedState!==null&&j(Ve,e);var t=re.current,n=og(t,e.type);t!==n&&(j(xe,e),j(re,n))}function Mn(e){xe.current===e&&(k(re),k(xe)),Ve.current===e&&(k(Ve),Es._currentValue=P)}var Gn,ca;function xt(e){if(Gn===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Gn=t&&t[1]||"",ca=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Gn+e+ca}var ta=!1;function Cn(e,t){if(!e||ta)return"";ta=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(H){var U=H}Reflect.construct(e,[],V)}else{try{V.call()}catch(H){U=H}e.call(V.prototype)}}else{try{throw Error()}catch(H){U=H}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(H){if(H&&U&&typeof H.stack=="string")return[H.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),d=c[0],b=c[1];if(d&&b){var T=d.split(`
|
|
44
|
+
`),B=b.split(`
|
|
45
|
+
`);for(s=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;s<B.length&&!B[s].includes("DetermineComponentFrameRoot");)s++;if(l===T.length||s===B.length)for(l=T.length-1,s=B.length-1;1<=l&&0<=s&&T[l]!==B[s];)s--;for(;1<=l&&0<=s;l--,s--)if(T[l]!==B[s]){if(l!==1||s!==1)do if(l--,s--,0>s||T[l]!==B[s]){var G=`
|
|
46
|
+
`+T[l].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=l&&0<=s);break}}}finally{ta=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?xt(n):""}function Je(e,t){switch(e.tag){case 26:case 27:case 5:return xt(e.type);case 16:return xt("Lazy");case 13:return e.child!==t&&t!==null?xt("Suspense Fallback"):xt("Suspense");case 19:return xt("SuspenseList");case 0:case 15:return Cn(e.type,!1);case 11:return Cn(e.type.render,!1);case 1:return Cn(e.type,!0);case 31:return xt("Activity");default:return""}}function fe(e){try{var t="",n=null;do t+=Je(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var Ae=Object.prototype.hasOwnProperty,tt=a.unstable_scheduleCallback,_t=a.unstable_cancelCallback,Oe=a.unstable_shouldYield,st=a.unstable_requestPaint,Ce=a.unstable_now,it=a.unstable_getCurrentPriorityLevel,Ft=a.unstable_ImmediatePriority,pn=a.unstable_UserBlockingPriority,na=a.unstable_NormalPriority,yl=a.unstable_LowPriority,Sl=a.unstable_IdlePriority,rt=a.log,Re=a.unstable_setDisableYieldValue,Et=null,Mt=null;function tn(e){if(typeof rt=="function"&&Re(e),Mt&&typeof Mt.setStrictMode=="function")try{Mt.setStrictMode(Et,e)}catch{}}var qt=Math.clz32?Math.clz32:$a,wn=Math.log,qn=Math.LN2;function $a(e){return e>>>=0,e===0?32:31-(wn(e)/qn|0)|0}var gt=256,Dt=262144,Wt=4194304;function et(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function v(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var s=0,c=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var b=l&134217727;return b!==0?(l=b&~c,l!==0?s=et(l):(d&=b,d!==0?s=et(d):n||(n=b&~e,n!==0&&(s=et(n))))):(b=l&~c,b!==0?s=et(b):d!==0?s=et(d):n||(n=l&~e,n!==0&&(s=et(n)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:s}function $(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Q(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function oe(){var e=Wt;return Wt<<=1,(Wt&62914560)===0&&(Wt=4194304),e}function Ue(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function be(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function le(e,t,n,l,s,c){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var b=e.entanglements,T=e.expirationTimes,B=e.hiddenUpdates;for(n=d&~n;0<n;){var G=31-qt(n),V=1<<G;b[G]=0,T[G]=-1;var U=B[G];if(U!==null)for(B[G]=null,G=0;G<U.length;G++){var H=U[G];H!==null&&(H.lane&=-536870913)}n&=~V}l!==0&&te(e,l,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(d&~t))}function te(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-qt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function me(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-qt(n),s=1<<l;s&t|e[l]&t&&(e[l]|=t),n&=~s}}function ot(e,t){var n=t&-t;return n=(n&42)!==0?1:Ge(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ge(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function zt(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ct(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:wg(e.type))}function nn(e,t){var n=W.p;try{return W.p=e,t()}finally{W.p=n}}var Ht=Math.random().toString(36).slice(2),qe="__reactFiber$"+Ht,Jt="__reactProps$"+Ht,ua="__reactContainer$"+Ht,ja="__reactEvents$"+Ht,vl="__reactListeners$"+Ht,fa="__reactHandles$"+Ht,ya="__reactResources$"+Ht,da="__reactMarker$"+Ht;function _l(e){delete e[qe],delete e[Jt],delete e[ja],delete e[vl],delete e[fa]}function an(e){var t=e[qe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ua]||n[qe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gg(e);e!==null;){if(n=e[qe])return n;e=gg(e)}return t}e=n,n=e.parentNode}return null}function yn(e){if(e=e[qe]||e[ua]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Sn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function aa(e){var t=e[ya];return t||(t=e[ya]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Rt(e){e[da]=!0}var El=new Set,Sa={};function Dn(e,t){F(e,t),F(e+"Capture",t)}function F(e,t){for(Sa[e]=t,e=0;e<t.length;e++)El.add(t[e])}var pe=RegExp("^[: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]*$"),He={},ye={};function Tt(e){return Ae.call(ye,e)?!0:Ae.call(He,e)?!1:pe.test(e)?ye[e]=!0:(He[e]=!0,!1)}function It(e,t,n){if(Tt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function dn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function sn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tl(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(d){n=""+d,c.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ce(e){if(!e._valueTracker){var t=mn(e)?"checked":"value";e._valueTracker=Tl(e,t,""+e[t])}}function ze(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=mn(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Ke(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}}var Pe=/[\n"\\]/g;function Xe(e){return e.replace(Pe,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function $t(e,t,n,l,s,c,d,b){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ct(t)):e.value!==""+ct(t)&&(e.value=""+ct(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?vn(e,d,ct(t)):n!=null?vn(e,d,ct(n)):l!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+ct(b):e.removeAttribute("name")}function In(e,t,n,l,s,c,d,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){ce(e);return}n=n!=null?""+ct(n):"",t=t!=null?""+ct(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=b?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),ce(e)}function vn(e,t,n){t==="number"&&Ke(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Yt(e,t,n,l){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&l&&(e[n].defaultSelected=!0)}else{for(n=""+ct(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Xl(e,t,n){if(t!=null&&(t=""+ct(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ct(n):""}function Zl(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(o(92));if(De(l)){if(1<l.length)throw Error(o(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=ct(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),ce(e)}function Ne(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ys=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Vt(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Ys.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function ut(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&n[s]!==l&&Vt(e,s,l)}else for(var c in t)t.hasOwnProperty(c)&&Vt(e,c,t[c])}function Ga(e){if(e.indexOf("-")===-1)return!1;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 va=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ki=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function qa(e){return ki.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ne(){}var he=null;function Le(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ze=null,wt=null;function Yn(e){var t=yn(e);if(t&&(e=t.stateNode)){var n=e[Jt]||null;e:switch(e=t.stateNode,t.type){case"input":if($t(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Xe(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var s=l[Jt]||null;if(!s)throw Error(o(90));$t(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&ze(l)}break e;case"textarea":Xl(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Yt(e,!!n.multiple,t,!1)}}}var Hi=!1;function Vs(e,t,n){if(Hi)return e(t,n);Hi=!0;try{var l=e(t);return l}finally{if(Hi=!1,(Ze!==null||wt!==null)&&(Dr(),Ze&&(t=Ze,e=wt,wt=Ze=null,Yn(t),e)))for(t=0;t<e.length;t++)Yn(e[t])}}function $i(e,t){var n=e.stateNode;if(n===null)return null;var l=n[Jt]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var _a=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lo=!1;if(_a)try{var ji={};Object.defineProperty(ji,"passive",{get:function(){Lo=!0}}),window.addEventListener("test",ji,ji),window.removeEventListener("test",ji,ji)}catch{Lo=!1}var Ia=null,Uo=null,Ks=null;function od(){if(Ks)return Ks;var e,t=Uo,n=t.length,l,s="value"in Ia?Ia.value:Ia.textContent,c=s.length;for(e=0;e<n&&t[e]===s[e];e++);var d=n-e;for(l=1;l<=d&&t[n-l]===s[c-l];l++);return Ks=s.slice(e,1<l?1-l:void 0)}function Xs(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 Zs(){return!0}function cd(){return!1}function _n(e){function t(n,l,s,c,d){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=c,this.target=d,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Zs:cd,this.isPropagationStopped=cd,this}return S(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=Zs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Zs)},persist:function(){},isPersistent:Zs}),t}var Al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qs=_n(Al),Gi=S({},Al,{view:0,detail:0}),My=_n(Gi),ko,Ho,qi,Fs=S({},Gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jo,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!==qi&&(qi&&e.type==="mousemove"?(ko=e.screenX-qi.screenX,Ho=e.screenY-qi.screenY):Ho=ko=0,qi=e),ko)},movementY:function(e){return"movementY"in e?e.movementY:Ho}}),ud=_n(Fs),Cy=S({},Fs,{dataTransfer:0}),wy=_n(Cy),Dy=S({},Gi,{relatedTarget:0}),$o=_n(Dy),zy=S({},Al,{animationName:0,elapsedTime:0,pseudoElement:0}),By=_n(zy),Ly=S({},Al,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uy=_n(Ly),ky=S({},Al,{data:0}),fd=_n(ky),Hy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$y={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"},jy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jy[e])?!!t[e]:!1}function jo(){return Gy}var qy=S({},Gi,{key:function(e){if(e.key){var t=Hy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$y[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jo,charCode:function(e){return e.type==="keypress"?Xs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Iy=_n(qy),Yy=S({},Fs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dd=_n(Yy),Vy=S({},Gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jo}),Ky=_n(Vy),Xy=S({},Al,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zy=_n(Xy),Qy=S({},Fs,{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}),Fy=_n(Qy),Wy=S({},Al,{newState:0,oldState:0}),Jy=_n(Wy),Py=[9,13,27,32],Go=_a&&"CompositionEvent"in window,Ii=null;_a&&"documentMode"in document&&(Ii=document.documentMode);var eS=_a&&"TextEvent"in window&&!Ii,md=_a&&(!Go||Ii&&8<Ii&&11>=Ii),hd=" ",gd=!1;function pd(e,t){switch(e){case"keyup":return Py.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ql=!1;function tS(e,t){switch(e){case"compositionend":return bd(t);case"keypress":return t.which!==32?null:(gd=!0,hd);case"textInput":return e=t.data,e===hd&&gd?null:e;default:return null}}function nS(e,t){if(Ql)return e==="compositionend"||!Go&&pd(e,t)?(e=od(),Ks=Uo=Ia=null,Ql=!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 md&&t.locale!=="ko"?null:t.data;default:return null}}var aS={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 yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!aS[e.type]:t==="textarea"}function Sd(e,t,n,l){Ze?wt?wt.push(l):wt=[l]:Ze=l,t=$r(t,"onChange"),0<t.length&&(n=new Qs("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Yi=null,Vi=null;function lS(e){tg(e,0)}function Ws(e){var t=Sn(e);if(ze(t))return e}function vd(e,t){if(e==="change")return t}var _d=!1;if(_a){var qo;if(_a){var Io="oninput"in document;if(!Io){var Ed=document.createElement("div");Ed.setAttribute("oninput","return;"),Io=typeof Ed.oninput=="function"}qo=Io}else qo=!1;_d=qo&&(!document.documentMode||9<document.documentMode)}function Td(){Yi&&(Yi.detachEvent("onpropertychange",Ad),Vi=Yi=null)}function Ad(e){if(e.propertyName==="value"&&Ws(Vi)){var t=[];Sd(t,Vi,e,Le(e)),Vs(lS,t)}}function iS(e,t,n){e==="focusin"?(Td(),Yi=t,Vi=n,Yi.attachEvent("onpropertychange",Ad)):e==="focusout"&&Td()}function sS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ws(Vi)}function rS(e,t){if(e==="click")return Ws(t)}function oS(e,t){if(e==="input"||e==="change")return Ws(t)}function cS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zn=typeof Object.is=="function"?Object.is:cS;function Ki(e,t){if(zn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var s=n[l];if(!Ae.call(t,s)||!zn(e[s],t[s]))return!1}return!0}function Nd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xd(e,t){var n=Nd(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Nd(n)}}function Rd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Od(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ke(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ke(e.document)}return t}function Yo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var uS=_a&&"documentMode"in document&&11>=document.documentMode,Fl=null,Vo=null,Xi=null,Ko=!1;function Md(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ko||Fl==null||Fl!==Ke(l)||(l=Fl,"selectionStart"in l&&Yo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Xi&&Ki(Xi,l)||(Xi=l,l=$r(Vo,"onSelect"),0<l.length&&(t=new Qs("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Fl)))}function Nl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wl={animationend:Nl("Animation","AnimationEnd"),animationiteration:Nl("Animation","AnimationIteration"),animationstart:Nl("Animation","AnimationStart"),transitionrun:Nl("Transition","TransitionRun"),transitionstart:Nl("Transition","TransitionStart"),transitioncancel:Nl("Transition","TransitionCancel"),transitionend:Nl("Transition","TransitionEnd")},Xo={},Cd={};_a&&(Cd=document.createElement("div").style,"AnimationEvent"in window||(delete Wl.animationend.animation,delete Wl.animationiteration.animation,delete Wl.animationstart.animation),"TransitionEvent"in window||delete Wl.transitionend.transition);function xl(e){if(Xo[e])return Xo[e];if(!Wl[e])return e;var t=Wl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cd)return Xo[e]=t[n];return e}var wd=xl("animationend"),Dd=xl("animationiteration"),zd=xl("animationstart"),fS=xl("transitionrun"),dS=xl("transitionstart"),mS=xl("transitioncancel"),Bd=xl("transitionend"),Ld=new Map,Zo="abort auxClick beforeToggle 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(" ");Zo.push("scrollEnd");function la(e,t){Ld.set(e,t),Dn(t,[e])}var Js=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Vn=[],Jl=0,Qo=0;function Ps(){for(var e=Jl,t=Qo=Jl=0;t<e;){var n=Vn[t];Vn[t++]=null;var l=Vn[t];Vn[t++]=null;var s=Vn[t];Vn[t++]=null;var c=Vn[t];if(Vn[t++]=null,l!==null&&s!==null){var d=l.pending;d===null?s.next=s:(s.next=d.next,d.next=s),l.pending=s}c!==0&&Ud(n,s,c)}}function er(e,t,n,l){Vn[Jl++]=e,Vn[Jl++]=t,Vn[Jl++]=n,Vn[Jl++]=l,Qo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Fo(e,t,n,l){return er(e,t,n,l),tr(e)}function Rl(e,t){return er(e,null,null,t),tr(e)}function Ud(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var s=!1,c=e.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-qt(n),e=c.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=n|536870912),c):null}function tr(e){if(50<gs)throw gs=0,iu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Pl={};function hS(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bn(e,t,n,l){return new hS(e,t,n,l)}function Wo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ea(e,t){var n=e.alternate;return n===null?(n=Bn(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&65011712,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.refCleanup=e.refCleanup,n}function kd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function nr(e,t,n,l,s,c){var d=0;if(l=e,typeof e=="function")Wo(e)&&(d=1);else if(typeof e=="string")d=Sv(e,n,re.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case de:return e=Bn(31,n,t,s),e.elementType=de,e.lanes=c,e;case M:return Ol(n.children,s,c,t);case x:d=8,s|=24;break;case N:return e=Bn(12,n,t,s|2),e.elementType=N,e.lanes=c,e;case J:return e=Bn(13,n,t,s),e.elementType=J,e.lanes=c,e;case K:return e=Bn(19,n,t,s),e.elementType=K,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case w:d=10;break e;case D:d=9;break e;case X:d=11;break e;case ae:d=14;break e;case I:d=16,l=null;break e}d=29,n=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=Bn(d,n,t,s),t.elementType=e,t.type=l,t.lanes=c,t}function Ol(e,t,n,l){return e=Bn(7,e,l,t),e.lanes=n,e}function Jo(e,t,n){return e=Bn(6,e,null,t),e.lanes=n,e}function Hd(e){var t=Bn(18,null,null,0);return t.stateNode=e,t}function Po(e,t,n){return t=Bn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $d=new WeakMap;function Kn(e,t){if(typeof e=="object"&&e!==null){var n=$d.get(e);return n!==void 0?n:(t={value:e,source:t,stack:fe(t)},$d.set(e,t),t)}return{value:e,source:t,stack:fe(t)}}var ei=[],ti=0,ar=null,Zi=0,Xn=[],Zn=0,Ya=null,ma=1,ha="";function Ta(e,t){ei[ti++]=Zi,ei[ti++]=ar,ar=e,Zi=t}function jd(e,t,n){Xn[Zn++]=ma,Xn[Zn++]=ha,Xn[Zn++]=Ya,Ya=e;var l=ma;e=ha;var s=32-qt(l)-1;l&=~(1<<s),n+=1;var c=32-qt(t)+s;if(30<c){var d=s-s%5;c=(l&(1<<d)-1).toString(32),l>>=d,s-=d,ma=1<<32-qt(t)+s|n<<s|l,ha=c+e}else ma=1<<c|n<<s|l,ha=e}function ec(e){e.return!==null&&(Ta(e,1),jd(e,1,0))}function tc(e){for(;e===ar;)ar=ei[--ti],ei[ti]=null,Zi=ei[--ti],ei[ti]=null;for(;e===Ya;)Ya=Xn[--Zn],Xn[Zn]=null,ha=Xn[--Zn],Xn[Zn]=null,ma=Xn[--Zn],Xn[Zn]=null}function Gd(e,t){Xn[Zn++]=ma,Xn[Zn++]=ha,Xn[Zn++]=Ya,ma=t.id,ha=t.overflow,Ya=e}var rn=null,At=null,We=!1,Va=null,Qn=!1,nc=Error(o(519));function Ka(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qi(Kn(t,e)),nc}function qd(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[qe]=e,t[Jt]=l,n){case"dialog":Ye("cancel",t),Ye("close",t);break;case"iframe":case"object":case"embed":Ye("load",t);break;case"video":case"audio":for(n=0;n<bs.length;n++)Ye(bs[n],t);break;case"source":Ye("error",t);break;case"img":case"image":case"link":Ye("error",t),Ye("load",t);break;case"details":Ye("toggle",t);break;case"input":Ye("invalid",t),In(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ye("invalid",t);break;case"textarea":Ye("invalid",t),Zl(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||ig(t.textContent,n)?(l.popover!=null&&(Ye("beforetoggle",t),Ye("toggle",t)),l.onScroll!=null&&Ye("scroll",t),l.onScrollEnd!=null&&Ye("scrollend",t),l.onClick!=null&&(t.onclick=ne),t=!0):t=!1,t||Ka(e,!0)}function Id(e){for(rn=e.return;rn;)switch(rn.tag){case 5:case 31:case 13:Qn=!1;return;case 27:case 3:Qn=!0;return;default:rn=rn.return}}function ni(e){if(e!==rn)return!1;if(!We)return Id(e),We=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||vu(e.type,e.memoizedProps)),n=!n),n&&At&&Ka(e),Id(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));At=hg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));At=hg(e)}else t===27?(t=At,sl(e.type)?(e=Nu,Nu=null,At=e):At=t):At=rn?Wn(e.stateNode.nextSibling):null;return!0}function Ml(){At=rn=null,We=!1}function ac(){var e=Va;return e!==null&&(Nn===null?Nn=e:Nn.push.apply(Nn,e),Va=null),e}function Qi(e){Va===null?Va=[e]:Va.push(e)}var lc=A(null),Cl=null,Aa=null;function Xa(e,t,n){j(lc,t._currentValue),t._currentValue=n}function Na(e){e._currentValue=lc.current,k(lc)}function ic(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function sc(e,t,n,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var d=s.child;c=c.firstContext;e:for(;c!==null;){var b=c;c=s;for(var T=0;T<t.length;T++)if(b.context===t[T]){c.lanes|=n,b=c.alternate,b!==null&&(b.lanes|=n),ic(c.return,n,e),l||(d=null);break e}c=b.next}}else if(s.tag===18){if(d=s.return,d===null)throw Error(o(341));d.lanes|=n,c=d.alternate,c!==null&&(c.lanes|=n),ic(d,n,e),d=null}else d=s.child;if(d!==null)d.return=s;else for(d=s;d!==null;){if(d===e){d=null;break}if(s=d.sibling,s!==null){s.return=d.return,d=s;break}d=d.return}s=d}}function ai(e,t,n,l){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var d=s.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var b=s.type;zn(s.pendingProps.value,d.value)||(e!==null?e.push(b):e=[b])}}else if(s===Ve.current){if(d=s.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Es):e=[Es])}s=s.return}e!==null&&sc(t,e,n,l),t.flags|=262144}function lr(e){for(e=e.firstContext;e!==null;){if(!zn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function wl(e){Cl=e,Aa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function on(e){return Yd(Cl,e)}function ir(e,t){return Cl===null&&wl(e),Yd(e,t)}function Yd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Aa===null){if(e===null)throw Error(o(308));Aa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Aa=Aa.next=t;return n}var gS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},pS=a.unstable_scheduleCallback,bS=a.unstable_NormalPriority,Kt={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rc(){return{controller:new gS,data:new Map,refCount:0}}function Fi(e){e.refCount--,e.refCount===0&&pS(bS,function(){e.controller.abort()})}var Wi=null,oc=0,li=0,ii=null;function yS(e,t){if(Wi===null){var n=Wi=[];oc=0,li=fu(),ii={status:"pending",value:void 0,then:function(l){n.push(l)}}}return oc++,t.then(Vd,Vd),t}function Vd(){if(--oc===0&&Wi!==null){ii!==null&&(ii.status="fulfilled");var e=Wi;Wi=null,li=0,ii=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function SS(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var Kd=L.S;L.S=function(e,t){Mh=Ce(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&yS(e,t),Kd!==null&&Kd(e,t)};var Dl=A(null);function cc(){var e=Dl.current;return e!==null?e:vt.pooledCache}function sr(e,t){t===null?j(Dl,Dl.current):j(Dl,t.pool)}function Xd(){var e=cc();return e===null?null:{parent:Kt._currentValue,pool:e}}var si=Error(o(460)),uc=Error(o(474)),rr=Error(o(542)),or={then:function(){}};function Zd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Qd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ne,ne),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wd(e),e;default:if(typeof t.status=="string")t.then(ne,ne);else{if(e=vt,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wd(e),e}throw Bl=t,si}}function zl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Bl=n,si):n}}var Bl=null;function Fd(){if(Bl===null)throw Error(o(459));var e=Bl;return Bl=null,e}function Wd(e){if(e===si||e===rr)throw Error(o(483))}var ri=null,Ji=0;function cr(e){var t=Ji;return Ji+=1,ri===null&&(ri=[]),Qd(ri,e,t)}function Pi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ur(e,t){throw t.$$typeof===_?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Jd(e){function t(C,R){if(e){var z=C.deletions;z===null?(C.deletions=[R],C.flags|=16):z.push(R)}}function n(C,R){if(!e)return null;for(;R!==null;)t(C,R),R=R.sibling;return null}function l(C){for(var R=new Map;C!==null;)C.key!==null?R.set(C.key,C):R.set(C.index,C),C=C.sibling;return R}function s(C,R){return C=Ea(C,R),C.index=0,C.sibling=null,C}function c(C,R,z){return C.index=z,e?(z=C.alternate,z!==null?(z=z.index,z<R?(C.flags|=67108866,R):z):(C.flags|=67108866,R)):(C.flags|=1048576,R)}function d(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function b(C,R,z,q){return R===null||R.tag!==6?(R=Jo(z,C.mode,q),R.return=C,R):(R=s(R,z),R.return=C,R)}function T(C,R,z,q){var Se=z.type;return Se===M?G(C,R,z.props.children,q,z.key):R!==null&&(R.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===I&&zl(Se)===R.type)?(R=s(R,z.props),Pi(R,z),R.return=C,R):(R=nr(z.type,z.key,z.props,null,C.mode,q),Pi(R,z),R.return=C,R)}function B(C,R,z,q){return R===null||R.tag!==4||R.stateNode.containerInfo!==z.containerInfo||R.stateNode.implementation!==z.implementation?(R=Po(z,C.mode,q),R.return=C,R):(R=s(R,z.children||[]),R.return=C,R)}function G(C,R,z,q,Se){return R===null||R.tag!==7?(R=Ol(z,C.mode,q,Se),R.return=C,R):(R=s(R,z),R.return=C,R)}function V(C,R,z){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Jo(""+R,C.mode,z),R.return=C,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case E:return z=nr(R.type,R.key,R.props,null,C.mode,z),Pi(z,R),z.return=C,z;case O:return R=Po(R,C.mode,z),R.return=C,R;case I:return R=zl(R),V(C,R,z)}if(De(R)||se(R))return R=Ol(R,C.mode,z,null),R.return=C,R;if(typeof R.then=="function")return V(C,cr(R),z);if(R.$$typeof===w)return V(C,ir(C,R),z);ur(C,R)}return null}function U(C,R,z,q){var Se=R!==null?R.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return Se!==null?null:b(C,R,""+z,q);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case E:return z.key===Se?T(C,R,z,q):null;case O:return z.key===Se?B(C,R,z,q):null;case I:return z=zl(z),U(C,R,z,q)}if(De(z)||se(z))return Se!==null?null:G(C,R,z,q,null);if(typeof z.then=="function")return U(C,R,cr(z),q);if(z.$$typeof===w)return U(C,R,ir(C,z),q);ur(C,z)}return null}function H(C,R,z,q,Se){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return C=C.get(z)||null,b(R,C,""+q,Se);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case E:return C=C.get(q.key===null?z:q.key)||null,T(R,C,q,Se);case O:return C=C.get(q.key===null?z:q.key)||null,B(R,C,q,Se);case I:return q=zl(q),H(C,R,z,q,Se)}if(De(q)||se(q))return C=C.get(z)||null,G(R,C,q,Se,null);if(typeof q.then=="function")return H(C,R,z,cr(q),Se);if(q.$$typeof===w)return H(C,R,z,ir(R,q),Se);ur(R,q)}return null}function ue(C,R,z,q){for(var Se=null,nt=null,ge=R,$e=R=0,Fe=null;ge!==null&&$e<z.length;$e++){ge.index>$e?(Fe=ge,ge=null):Fe=ge.sibling;var at=U(C,ge,z[$e],q);if(at===null){ge===null&&(ge=Fe);break}e&&ge&&at.alternate===null&&t(C,ge),R=c(at,R,$e),nt===null?Se=at:nt.sibling=at,nt=at,ge=Fe}if($e===z.length)return n(C,ge),We&&Ta(C,$e),Se;if(ge===null){for(;$e<z.length;$e++)ge=V(C,z[$e],q),ge!==null&&(R=c(ge,R,$e),nt===null?Se=ge:nt.sibling=ge,nt=ge);return We&&Ta(C,$e),Se}for(ge=l(ge);$e<z.length;$e++)Fe=H(ge,C,$e,z[$e],q),Fe!==null&&(e&&Fe.alternate!==null&&ge.delete(Fe.key===null?$e:Fe.key),R=c(Fe,R,$e),nt===null?Se=Fe:nt.sibling=Fe,nt=Fe);return e&&ge.forEach(function(fl){return t(C,fl)}),We&&Ta(C,$e),Se}function Te(C,R,z,q){if(z==null)throw Error(o(151));for(var Se=null,nt=null,ge=R,$e=R=0,Fe=null,at=z.next();ge!==null&&!at.done;$e++,at=z.next()){ge.index>$e?(Fe=ge,ge=null):Fe=ge.sibling;var fl=U(C,ge,at.value,q);if(fl===null){ge===null&&(ge=Fe);break}e&&ge&&fl.alternate===null&&t(C,ge),R=c(fl,R,$e),nt===null?Se=fl:nt.sibling=fl,nt=fl,ge=Fe}if(at.done)return n(C,ge),We&&Ta(C,$e),Se;if(ge===null){for(;!at.done;$e++,at=z.next())at=V(C,at.value,q),at!==null&&(R=c(at,R,$e),nt===null?Se=at:nt.sibling=at,nt=at);return We&&Ta(C,$e),Se}for(ge=l(ge);!at.done;$e++,at=z.next())at=H(ge,C,$e,at.value,q),at!==null&&(e&&at.alternate!==null&&ge.delete(at.key===null?$e:at.key),R=c(at,R,$e),nt===null?Se=at:nt.sibling=at,nt=at);return e&&ge.forEach(function(Cv){return t(C,Cv)}),We&&Ta(C,$e),Se}function yt(C,R,z,q){if(typeof z=="object"&&z!==null&&z.type===M&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case E:e:{for(var Se=z.key;R!==null;){if(R.key===Se){if(Se=z.type,Se===M){if(R.tag===7){n(C,R.sibling),q=s(R,z.props.children),q.return=C,C=q;break e}}else if(R.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===I&&zl(Se)===R.type){n(C,R.sibling),q=s(R,z.props),Pi(q,z),q.return=C,C=q;break e}n(C,R);break}else t(C,R);R=R.sibling}z.type===M?(q=Ol(z.props.children,C.mode,q,z.key),q.return=C,C=q):(q=nr(z.type,z.key,z.props,null,C.mode,q),Pi(q,z),q.return=C,C=q)}return d(C);case O:e:{for(Se=z.key;R!==null;){if(R.key===Se)if(R.tag===4&&R.stateNode.containerInfo===z.containerInfo&&R.stateNode.implementation===z.implementation){n(C,R.sibling),q=s(R,z.children||[]),q.return=C,C=q;break e}else{n(C,R);break}else t(C,R);R=R.sibling}q=Po(z,C.mode,q),q.return=C,C=q}return d(C);case I:return z=zl(z),yt(C,R,z,q)}if(De(z))return ue(C,R,z,q);if(se(z)){if(Se=se(z),typeof Se!="function")throw Error(o(150));return z=Se.call(z),Te(C,R,z,q)}if(typeof z.then=="function")return yt(C,R,cr(z),q);if(z.$$typeof===w)return yt(C,R,ir(C,z),q);ur(C,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,R!==null&&R.tag===6?(n(C,R.sibling),q=s(R,z),q.return=C,C=q):(n(C,R),q=Jo(z,C.mode,q),q.return=C,C=q),d(C)):n(C,R)}return function(C,R,z,q){try{Ji=0;var Se=yt(C,R,z,q);return ri=null,Se}catch(ge){if(ge===si||ge===rr)throw ge;var nt=Bn(29,ge,null,C.mode);return nt.lanes=q,nt.return=C,nt}finally{}}}var Ll=Jd(!0),Pd=Jd(!1),Za=!1;function fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fa(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(lt&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=tr(e),Ud(e,null,n),t}return er(e,l,t,n),tr(e)}function es(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,me(e,n)}}function mc(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?s=c=d:c=c.next=d,n=n.next}while(n!==null);c===null?s=c=t:c=c.next=t}else s=c=t;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var hc=!1;function ts(){if(hc){var e=ii;if(e!==null)throw e}}function ns(e,t,n,l){hc=!1;var s=e.updateQueue;Za=!1;var c=s.firstBaseUpdate,d=s.lastBaseUpdate,b=s.shared.pending;if(b!==null){s.shared.pending=null;var T=b,B=T.next;T.next=null,d===null?c=B:d.next=B,d=T;var G=e.alternate;G!==null&&(G=G.updateQueue,b=G.lastBaseUpdate,b!==d&&(b===null?G.firstBaseUpdate=B:b.next=B,G.lastBaseUpdate=T))}if(c!==null){var V=s.baseState;d=0,G=B=T=null,b=c;do{var U=b.lane&-536870913,H=U!==b.lane;if(H?(Qe&U)===U:(l&U)===U){U!==0&&U===li&&(hc=!0),G!==null&&(G=G.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ue=e,Te=b;U=t;var yt=n;switch(Te.tag){case 1:if(ue=Te.payload,typeof ue=="function"){V=ue.call(yt,V,U);break e}V=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=Te.payload,U=typeof ue=="function"?ue.call(yt,V,U):ue,U==null)break e;V=S({},V,U);break e;case 2:Za=!0}}U=b.callback,U!==null&&(e.flags|=64,H&&(e.flags|=8192),H=s.callbacks,H===null?s.callbacks=[U]:H.push(U))}else H={lane:U,tag:b.tag,payload:b.payload,callback:b.callback,next:null},G===null?(B=G=H,T=V):G=G.next=H,d|=U;if(b=b.next,b===null){if(b=s.shared.pending,b===null)break;H=b,b=H.next,H.next=null,s.lastBaseUpdate=H,s.shared.pending=null}}while(!0);G===null&&(T=V),s.baseState=T,s.firstBaseUpdate=B,s.lastBaseUpdate=G,c===null&&(s.shared.lanes=0),tl|=d,e.lanes=d,e.memoizedState=V}}function em(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function tm(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)em(n[e],t)}var oi=A(null),fr=A(0);function nm(e,t){e=Ba,j(fr,e),j(oi,t),Ba=e|t.baseLanes}function gc(){j(fr,Ba),j(oi,oi.current)}function pc(){Ba=fr.current,k(oi),k(fr)}var Ln=A(null),Fn=null;function Wa(e){var t=e.alternate;j(jt,jt.current&1),j(Ln,e),Fn===null&&(t===null||oi.current!==null||t.memoizedState!==null)&&(Fn=e)}function bc(e){j(jt,jt.current),j(Ln,e),Fn===null&&(Fn=e)}function am(e){e.tag===22?(j(jt,jt.current),j(Ln,e),Fn===null&&(Fn=e)):Ja()}function Ja(){j(jt,jt.current),j(Ln,Ln.current)}function Un(e){k(Ln),Fn===e&&(Fn=null),k(jt)}var jt=A(0);function dr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Tu(n)||Au(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xa=0,ke=null,pt=null,Xt=null,mr=!1,ci=!1,Ul=!1,hr=0,as=0,ui=null,vS=0;function Bt(){throw Error(o(321))}function yc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zn(e[n],t[n]))return!1;return!0}function Sc(e,t,n,l,s,c){return xa=c,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?jm:Bc,Ul=!1,c=n(l,s),Ul=!1,ci&&(c=im(t,n,l,s)),lm(e),c}function lm(e){L.H=ss;var t=pt!==null&&pt.next!==null;if(xa=0,Xt=pt=ke=null,mr=!1,as=0,ui=null,t)throw Error(o(300));e===null||Zt||(e=e.dependencies,e!==null&&lr(e)&&(Zt=!0))}function im(e,t,n,l){ke=e;var s=0;do{if(ci&&(ui=null),as=0,ci=!1,25<=s)throw Error(o(301));if(s+=1,Xt=pt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}L.H=Gm,c=t(n,l)}while(ci);return c}function _S(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?ls(t):t,e=e.useState()[0],(pt!==null?pt.memoizedState:null)!==e&&(ke.flags|=1024),t}function vc(){var e=hr!==0;return hr=0,e}function _c(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ec(e){if(mr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mr=!1}xa=0,Xt=pt=ke=null,ci=!1,as=hr=0,ui=null}function bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?ke.memoizedState=Xt=e:Xt=Xt.next=e,Xt}function Gt(){if(pt===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=pt.next;var t=Xt===null?ke.memoizedState:Xt.next;if(t!==null)Xt=t,pt=e;else{if(e===null)throw ke.alternate===null?Error(o(467)):Error(o(310));pt=e,e={memoizedState:pt.memoizedState,baseState:pt.baseState,baseQueue:pt.baseQueue,queue:pt.queue,next:null},Xt===null?ke.memoizedState=Xt=e:Xt=Xt.next=e}return Xt}function gr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ls(e){var t=as;return as+=1,ui===null&&(ui=[]),e=Qd(ui,e,t),t=ke,(Xt===null?t.memoizedState:Xt.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?jm:Bc),e}function pr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ls(e);if(e.$$typeof===w)return on(e)}throw Error(o(438,String(e)))}function Tc(e){var t=null,n=ke.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ke.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=gr(),ke.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=we;return t.index++,n}function Ra(e,t){return typeof t=="function"?t(e):t}function br(e){var t=Gt();return Ac(t,pt,e)}function Ac(e,t,n){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var s=e.baseQueue,c=l.pending;if(c!==null){if(s!==null){var d=s.next;s.next=c.next,c.next=d}t.baseQueue=s=c,l.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var b=d=null,T=null,B=t,G=!1;do{var V=B.lane&-536870913;if(V!==B.lane?(Qe&V)===V:(xa&V)===V){var U=B.revertLane;if(U===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),V===li&&(G=!0);else if((xa&U)===U){B=B.next,U===li&&(G=!0);continue}else V={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},T===null?(b=T=V,d=c):T=T.next=V,ke.lanes|=U,tl|=U;V=B.action,Ul&&n(c,V),c=B.hasEagerState?B.eagerState:n(c,V)}else U={lane:V,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},T===null?(b=T=U,d=c):T=T.next=U,ke.lanes|=V,tl|=V;B=B.next}while(B!==null&&B!==t);if(T===null?d=c:T.next=b,!zn(c,e.memoizedState)&&(Zt=!0,G&&(n=ii,n!==null)))throw n;e.memoizedState=c,e.baseState=d,e.baseQueue=T,l.lastRenderedState=c}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Nc(e){var t=Gt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var l=n.dispatch,s=n.pending,c=t.memoizedState;if(s!==null){n.pending=null;var d=s=s.next;do c=e(c,d.action),d=d.next;while(d!==s);zn(c,t.memoizedState)||(Zt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,l]}function sm(e,t,n){var l=ke,s=Gt(),c=We;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=t();var d=!zn((pt||s).memoizedState,n);if(d&&(s.memoizedState=n,Zt=!0),s=s.queue,Oc(cm.bind(null,l,s,e),[e]),s.getSnapshot!==t||d||Xt!==null&&Xt.memoizedState.tag&1){if(l.flags|=2048,fi(9,{destroy:void 0},om.bind(null,l,s,n,t),null),vt===null)throw Error(o(349));c||(xa&127)!==0||rm(l,t,n)}return n}function rm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ke.updateQueue,t===null?(t=gr(),ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function om(e,t,n,l){t.value=n,t.getSnapshot=l,um(t)&&fm(e)}function cm(e,t,n){return n(function(){um(t)&&fm(e)})}function um(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zn(e,n)}catch{return!0}}function fm(e){var t=Rl(e,2);t!==null&&xn(t,e,2)}function xc(e){var t=bn();if(typeof e=="function"){var n=e;if(e=n(),Ul){tn(!0);try{n()}finally{tn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:e},t}function dm(e,t,n,l){return e.baseState=n,Ac(e,pt,typeof l=="function"?l:Ra)}function ES(e,t,n,l,s){if(vr(e))throw Error(o(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){c.listeners.push(d)}};L.T!==null?n(!0):c.isTransition=!1,l(c),n=t.pending,n===null?(c.next=t.pending=c,mm(t,c)):(c.next=n.next,t.pending=n.next=c)}}function mm(e,t){var n=t.action,l=t.payload,s=e.state;if(t.isTransition){var c=L.T,d={};L.T=d;try{var b=n(s,l),T=L.S;T!==null&&T(d,b),hm(e,t,b)}catch(B){Rc(e,t,B)}finally{c!==null&&d.types!==null&&(c.types=d.types),L.T=c}}else try{c=n(s,l),hm(e,t,c)}catch(B){Rc(e,t,B)}}function hm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){gm(e,t,l)},function(l){return Rc(e,t,l)}):gm(e,t,n)}function gm(e,t,n){t.status="fulfilled",t.value=n,pm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,mm(e,n)))}function Rc(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,pm(t),t=t.next;while(t!==l)}e.action=null}function pm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bm(e,t){return t}function ym(e,t){if(We){var n=vt.formState;if(n!==null){e:{var l=ke;if(We){if(At){t:{for(var s=At,c=Qn;s.nodeType!==8;){if(!c){s=null;break t}if(s=Wn(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){At=Wn(s.nextSibling),l=s.data==="F!";break e}}Ka(l)}l=!1}l&&(t=n[0])}}return n=bn(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bm,lastRenderedState:t},n.queue=l,n=km.bind(null,ke,l),l.dispatch=n,l=xc(!1),c=zc.bind(null,ke,!1,l.queue),l=bn(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,n=ES.bind(null,ke,s,c,n),s.dispatch=n,l.memoizedState=e,[t,n,!1]}function Sm(e){var t=Gt();return vm(t,pt,e)}function vm(e,t,n){if(t=Ac(e,t,bm)[0],e=br(Ra)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ls(t)}catch(d){throw d===si?rr:d}else l=t;t=Gt();var s=t.queue,c=s.dispatch;return n!==t.memoizedState&&(ke.flags|=2048,fi(9,{destroy:void 0},TS.bind(null,s,n),null)),[l,c,e]}function TS(e,t){e.action=t}function _m(e){var t=Gt(),n=pt;if(n!==null)return vm(t,n,e);Gt(),t=t.memoizedState,n=Gt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function fi(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ke.updateQueue,t===null&&(t=gr(),ke.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Em(){return Gt().memoizedState}function yr(e,t,n,l){var s=bn();ke.flags|=e,s.memoizedState=fi(1|t,{destroy:void 0},n,l===void 0?null:l)}function Sr(e,t,n,l){var s=Gt();l=l===void 0?null:l;var c=s.memoizedState.inst;pt!==null&&l!==null&&yc(l,pt.memoizedState.deps)?s.memoizedState=fi(t,c,n,l):(ke.flags|=e,s.memoizedState=fi(1|t,c,n,l))}function Tm(e,t){yr(8390656,8,e,t)}function Oc(e,t){Sr(2048,8,e,t)}function AS(e){ke.flags|=4;var t=ke.updateQueue;if(t===null)t=gr(),ke.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Am(e){var t=Gt().memoizedState;return AS({ref:t,nextImpl:e}),function(){if((lt&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Nm(e,t){return Sr(4,2,e,t)}function xm(e,t){return Sr(4,4,e,t)}function Rm(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Om(e,t,n){n=n!=null?n.concat([e]):null,Sr(4,4,Rm.bind(null,t,e),n)}function Mc(){}function Mm(e,t){var n=Gt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&yc(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Cm(e,t){var n=Gt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&yc(t,l[1]))return l[0];if(l=e(),Ul){tn(!0);try{e()}finally{tn(!1)}}return n.memoizedState=[l,t],l}function Cc(e,t,n){return n===void 0||(xa&1073741824)!==0&&(Qe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=wh(),ke.lanes|=e,tl|=e,n)}function wm(e,t,n,l){return zn(n,t)?n:oi.current!==null?(e=Cc(e,n,l),zn(e,t)||(Zt=!0),e):(xa&42)===0||(xa&1073741824)!==0&&(Qe&261930)===0?(Zt=!0,e.memoizedState=n):(e=wh(),ke.lanes|=e,tl|=e,t)}function Dm(e,t,n,l,s){var c=W.p;W.p=c!==0&&8>c?c:8;var d=L.T,b={};L.T=b,zc(e,!1,t,n);try{var T=s(),B=L.S;if(B!==null&&B(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var G=SS(T,l);is(e,t,G,$n(e))}else is(e,t,l,$n(e))}catch(V){is(e,t,{then:function(){},status:"rejected",reason:V},$n())}finally{W.p=c,d!==null&&b.types!==null&&(d.types=b.types),L.T=d}}function NS(){}function wc(e,t,n,l){if(e.tag!==5)throw Error(o(476));var s=zm(e).queue;Dm(e,s,t,P,n===null?NS:function(){return Bm(e),n(l)})}function zm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:P},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Bm(e){var t=zm(e);t.next===null&&(t=e.alternate.memoizedState),is(e,t.next.queue,{},$n())}function Dc(){return on(Es)}function Lm(){return Gt().memoizedState}function Um(){return Gt().memoizedState}function xS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=$n();e=Qa(n);var l=Fa(t,e,n);l!==null&&(xn(l,t,n),es(l,t,n)),t={cache:rc()},e.payload=t;return}t=t.return}}function RS(e,t,n){var l=$n();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},vr(e)?Hm(t,n):(n=Fo(e,t,n,l),n!==null&&(xn(n,e,l),$m(n,t,l)))}function km(e,t,n){var l=$n();is(e,t,n,l)}function is(e,t,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(vr(e))Hm(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var d=t.lastRenderedState,b=c(d,n);if(s.hasEagerState=!0,s.eagerState=b,zn(b,d))return er(e,t,s,0),vt===null&&Ps(),!1}catch{}finally{}if(n=Fo(e,t,s,l),n!==null)return xn(n,e,l),$m(n,t,l),!0}return!1}function zc(e,t,n,l){if(l={lane:2,revertLane:fu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},vr(e)){if(t)throw Error(o(479))}else t=Fo(e,n,l,2),t!==null&&xn(t,e,2)}function vr(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function Hm(e,t){ci=mr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $m(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,me(e,n)}}var ss={readContext:on,use:pr,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};ss.useEffectEvent=Bt;var jm={readContext:on,use:pr,useCallback:function(e,t){return bn().memoizedState=[e,t===void 0?null:t],e},useContext:on,useEffect:Tm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yr(4194308,4,Rm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yr(4194308,4,e,t)},useInsertionEffect:function(e,t){yr(4,2,e,t)},useMemo:function(e,t){var n=bn();t=t===void 0?null:t;var l=e();if(Ul){tn(!0);try{e()}finally{tn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=bn();if(n!==void 0){var s=n(t);if(Ul){tn(!0);try{n(t)}finally{tn(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=RS.bind(null,ke,e),[l.memoizedState,e]},useRef:function(e){var t=bn();return e={current:e},t.memoizedState=e},useState:function(e){e=xc(e);var t=e.queue,n=km.bind(null,ke,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Mc,useDeferredValue:function(e,t){var n=bn();return Cc(n,e,t)},useTransition:function(){var e=xc(!1);return e=Dm.bind(null,ke,e.queue,!0,!1),bn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ke,s=bn();if(We){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),vt===null)throw Error(o(349));(Qe&127)!==0||rm(l,t,n)}s.memoizedState=n;var c={value:n,getSnapshot:t};return s.queue=c,Tm(cm.bind(null,l,c,e),[e]),l.flags|=2048,fi(9,{destroy:void 0},om.bind(null,l,c,n,t),null),n},useId:function(){var e=bn(),t=vt.identifierPrefix;if(We){var n=ha,l=ma;n=(l&~(1<<32-qt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=hr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=vS++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Dc,useFormState:ym,useActionState:ym,useOptimistic:function(e){var t=bn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=zc.bind(null,ke,!0,n),n.dispatch=t,[e,t]},useMemoCache:Tc,useCacheRefresh:function(){return bn().memoizedState=xS.bind(null,ke)},useEffectEvent:function(e){var t=bn(),n={impl:e};return t.memoizedState=n,function(){if((lt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Bc={readContext:on,use:pr,useCallback:Mm,useContext:on,useEffect:Oc,useImperativeHandle:Om,useInsertionEffect:Nm,useLayoutEffect:xm,useMemo:Cm,useReducer:br,useRef:Em,useState:function(){return br(Ra)},useDebugValue:Mc,useDeferredValue:function(e,t){var n=Gt();return wm(n,pt.memoizedState,e,t)},useTransition:function(){var e=br(Ra)[0],t=Gt().memoizedState;return[typeof e=="boolean"?e:ls(e),t]},useSyncExternalStore:sm,useId:Lm,useHostTransitionStatus:Dc,useFormState:Sm,useActionState:Sm,useOptimistic:function(e,t){var n=Gt();return dm(n,pt,e,t)},useMemoCache:Tc,useCacheRefresh:Um};Bc.useEffectEvent=Am;var Gm={readContext:on,use:pr,useCallback:Mm,useContext:on,useEffect:Oc,useImperativeHandle:Om,useInsertionEffect:Nm,useLayoutEffect:xm,useMemo:Cm,useReducer:Nc,useRef:Em,useState:function(){return Nc(Ra)},useDebugValue:Mc,useDeferredValue:function(e,t){var n=Gt();return pt===null?Cc(n,e,t):wm(n,pt.memoizedState,e,t)},useTransition:function(){var e=Nc(Ra)[0],t=Gt().memoizedState;return[typeof e=="boolean"?e:ls(e),t]},useSyncExternalStore:sm,useId:Lm,useHostTransitionStatus:Dc,useFormState:_m,useActionState:_m,useOptimistic:function(e,t){var n=Gt();return pt!==null?dm(n,pt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Tc,useCacheRefresh:Um};Gm.useEffectEvent=Am;function Lc(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:S({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Uc={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=$n(),s=Qa(l);s.payload=t,n!=null&&(s.callback=n),t=Fa(e,s,l),t!==null&&(xn(t,e,l),es(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=$n(),s=Qa(l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Fa(e,s,l),t!==null&&(xn(t,e,l),es(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$n(),l=Qa(n);l.tag=2,t!=null&&(l.callback=t),t=Fa(e,l,n),t!==null&&(xn(t,e,n),es(t,e,n))}};function qm(e,t,n,l,s,c,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,d):t.prototype&&t.prototype.isPureReactComponent?!Ki(n,l)||!Ki(s,c):!0}function Im(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Uc.enqueueReplaceState(t,t.state,null)}function kl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=S({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function Ym(e){Js(e)}function Vm(e){console.error(e)}function Km(e){Js(e)}function _r(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Xm(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function kc(e,t,n){return n=Qa(n),n.tag=3,n.payload={element:null},n.callback=function(){_r(e,t)},n}function Zm(e){return e=Qa(e),e.tag=3,e}function Qm(e,t,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var c=l.value;e.payload=function(){return s(c)},e.callback=function(){Xm(t,n,l)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Xm(t,n,l),typeof s!="function"&&(nl===null?nl=new Set([this]):nl.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function OS(e,t,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ai(t,n,s,!0),n=Ln.current,n!==null){switch(n.tag){case 31:case 13:return Fn===null?zr():n.alternate===null&&Lt===0&&(Lt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===or?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),ou(e,l,s)),!1;case 22:return n.flags|=65536,l===or?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),ou(e,l,s)),!1}throw Error(o(435,n.tag))}return ou(e,l,s),zr(),!1}if(We)return t=Ln.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==nc&&(e=Error(o(422),{cause:l}),Qi(Kn(e,n)))):(l!==nc&&(t=Error(o(423),{cause:l}),Qi(Kn(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=Kn(l,n),s=kc(e.stateNode,l,s),mc(e,s),Lt!==4&&(Lt=2)),!1;var c=Error(o(520),{cause:l});if(c=Kn(c,n),hs===null?hs=[c]:hs.push(c),Lt!==4&&(Lt=2),t===null)return!0;l=Kn(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=kc(n.stateNode,l,e),mc(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(nl===null||!nl.has(c))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Zm(s),Qm(s,e,n,l),mc(n,s),!1}n=n.return}while(n!==null);return!1}var Hc=Error(o(461)),Zt=!1;function cn(e,t,n,l){t.child=e===null?Pd(t,null,n,l):Ll(t,e.child,n,l)}function Fm(e,t,n,l,s){n=n.render;var c=t.ref;if("ref"in l){var d={};for(var b in l)b!=="ref"&&(d[b]=l[b])}else d=l;return wl(t),l=Sc(e,t,n,d,c,s),b=vc(),e!==null&&!Zt?(_c(e,t,s),Oa(e,t,s)):(We&&b&&ec(t),t.flags|=1,cn(e,t,l,s),t.child)}function Wm(e,t,n,l,s){if(e===null){var c=n.type;return typeof c=="function"&&!Wo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Jm(e,t,c,l,s)):(e=nr(n.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Kc(e,s)){var d=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ki,n(d,l)&&e.ref===t.ref)return Oa(e,t,s)}return t.flags|=1,e=Ea(c,l),e.ref=t.ref,e.return=t,t.child=e}function Jm(e,t,n,l,s){if(e!==null){var c=e.memoizedProps;if(Ki(c,l)&&e.ref===t.ref)if(Zt=!1,t.pendingProps=l=c,Kc(e,s))(e.flags&131072)!==0&&(Zt=!0);else return t.lanes=e.lanes,Oa(e,t,s)}return $c(e,t,n,l,s)}function Pm(e,t,n,l){var s=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~c}else l=0,t.child=null;return eh(e,t,c,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&sr(t,c!==null?c.cachePool:null),c!==null?nm(t,c):gc(),am(t);else return l=t.lanes=536870912,eh(e,t,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(sr(t,c.cachePool),nm(t,c),Ja(),t.memoizedState=null):(e!==null&&sr(t,null),gc(),Ja());return cn(e,t,s,n),t.child}function rs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function eh(e,t,n,l,s){var c=cc();return c=c===null?null:{parent:Kt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&sr(t,null),gc(),am(t),e!==null&&ai(e,t,l,!0),t.childLanes=s,null}function Er(e,t){return t=Ar({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function th(e,t,n){return Ll(t,e.child,null,n),e=Er(t,t.pendingProps),e.flags|=2,Un(t),t.memoizedState=null,e}function MS(e,t,n){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(We){if(l.mode==="hidden")return e=Er(t,l),t.lanes=536870912,rs(null,e);if(bc(t),(e=At)?(e=mg(e,Qn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ya!==null?{id:ma,overflow:ha}:null,retryLane:536870912,hydrationErrors:null},n=Hd(e),n.return=t,t.child=n,rn=t,At=null)):e=null,e===null)throw Ka(t);return t.lanes=536870912,null}return Er(t,l)}var c=e.memoizedState;if(c!==null){var d=c.dehydrated;if(bc(t),s)if(t.flags&256)t.flags&=-257,t=th(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Zt||ai(e,t,n,!1),s=(n&e.childLanes)!==0,Zt||s){if(l=vt,l!==null&&(d=ot(l,n),d!==0&&d!==c.retryLane))throw c.retryLane=d,Rl(e,d),xn(l,e,d),Hc;zr(),t=th(e,t,n)}else e=c.treeContext,At=Wn(d.nextSibling),rn=t,We=!0,Va=null,Qn=!1,e!==null&&Gd(t,e),t=Er(t,l),t.flags|=4096;return t}return e=Ea(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function $c(e,t,n,l,s){return wl(t),n=Sc(e,t,n,l,void 0,s),l=vc(),e!==null&&!Zt?(_c(e,t,s),Oa(e,t,s)):(We&&l&&ec(t),t.flags|=1,cn(e,t,n,s),t.child)}function nh(e,t,n,l,s,c){return wl(t),t.updateQueue=null,n=im(t,l,n,s),lm(e),l=vc(),e!==null&&!Zt?(_c(e,t,c),Oa(e,t,c)):(We&&l&&ec(t),t.flags|=1,cn(e,t,n,c),t.child)}function ah(e,t,n,l,s){if(wl(t),t.stateNode===null){var c=Pl,d=n.contextType;typeof d=="object"&&d!==null&&(c=on(d)),c=new n(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Uc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},fc(t),d=n.contextType,c.context=typeof d=="object"&&d!==null?on(d):Pl,c.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Lc(t,n,d,l),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(d=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),d!==c.state&&Uc.enqueueReplaceState(c,c.state,null),ns(t,l,c,s),ts(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var b=t.memoizedProps,T=kl(n,b);c.props=T;var B=c.context,G=n.contextType;d=Pl,typeof G=="object"&&G!==null&&(d=on(G));var V=n.getDerivedStateFromProps;G=typeof V=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,G||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||B!==d)&&Im(t,c,l,d),Za=!1;var U=t.memoizedState;c.state=U,ns(t,l,c,s),ts(),B=t.memoizedState,b||U!==B||Za?(typeof V=="function"&&(Lc(t,n,V,l),B=t.memoizedState),(T=Za||qm(t,n,T,l,U,B,d))?(G||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=B),c.props=l,c.state=B,c.context=d,l=T):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,dc(e,t),d=t.memoizedProps,G=kl(n,d),c.props=G,V=t.pendingProps,U=c.context,B=n.contextType,T=Pl,typeof B=="object"&&B!==null&&(T=on(B)),b=n.getDerivedStateFromProps,(B=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==V||U!==T)&&Im(t,c,l,T),Za=!1,U=t.memoizedState,c.state=U,ns(t,l,c,s),ts();var H=t.memoizedState;d!==V||U!==H||Za||e!==null&&e.dependencies!==null&&lr(e.dependencies)?(typeof b=="function"&&(Lc(t,n,b,l),H=t.memoizedState),(G=Za||qm(t,n,G,l,U,H,T)||e!==null&&e.dependencies!==null&&lr(e.dependencies))?(B||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,H,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,H,T)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=H),c.props=l,c.state=H,c.context=T,l=G):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,Tr(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Ll(t,e.child,null,s),t.child=Ll(t,null,n,s)):cn(e,t,n,s),t.memoizedState=c.state,e=t.child):e=Oa(e,t,s),e}function lh(e,t,n,l){return Ml(),t.flags|=256,cn(e,t,n,l),t.child}var jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:Xd()}}function qc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Hn),e}function ih(e,t,n){var l=t.pendingProps,s=!1,c=(t.flags&128)!==0,d;if((d=c)||(d=e!==null&&e.memoizedState===null?!1:(jt.current&2)!==0),d&&(s=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(We){if(s?Wa(t):Ja(),(e=At)?(e=mg(e,Qn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ya!==null?{id:ma,overflow:ha}:null,retryLane:536870912,hydrationErrors:null},n=Hd(e),n.return=t,t.child=n,rn=t,At=null)):e=null,e===null)throw Ka(t);return Au(e)?t.lanes=32:t.lanes=536870912,null}var b=l.children;return l=l.fallback,s?(Ja(),s=t.mode,b=Ar({mode:"hidden",children:b},s),l=Ol(l,s,n,null),b.return=t,l.return=t,b.sibling=l,t.child=b,l=t.child,l.memoizedState=Gc(n),l.childLanes=qc(e,d,n),t.memoizedState=jc,rs(null,l)):(Wa(t),Ic(t,b))}var T=e.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(c)t.flags&256?(Wa(t),t.flags&=-257,t=Yc(e,t,n)):t.memoizedState!==null?(Ja(),t.child=e.child,t.flags|=128,t=null):(Ja(),b=l.fallback,s=t.mode,l=Ar({mode:"visible",children:l.children},s),b=Ol(b,s,n,null),b.flags|=2,l.return=t,b.return=t,l.sibling=b,t.child=l,Ll(t,e.child,null,n),l=t.child,l.memoizedState=Gc(n),l.childLanes=qc(e,d,n),t.memoizedState=jc,t=rs(null,l));else if(Wa(t),Au(b)){if(d=b.nextSibling&&b.nextSibling.dataset,d)var B=d.dgst;d=B,l=Error(o(419)),l.stack="",l.digest=d,Qi({value:l,source:null,stack:null}),t=Yc(e,t,n)}else if(Zt||ai(e,t,n,!1),d=(n&e.childLanes)!==0,Zt||d){if(d=vt,d!==null&&(l=ot(d,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,Rl(e,l),xn(d,e,l),Hc;Tu(b)||zr(),t=Yc(e,t,n)}else Tu(b)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,At=Wn(b.nextSibling),rn=t,We=!0,Va=null,Qn=!1,e!==null&&Gd(t,e),t=Ic(t,l.children),t.flags|=4096);return t}return s?(Ja(),b=l.fallback,s=t.mode,T=e.child,B=T.sibling,l=Ea(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,B!==null?b=Ea(B,b):(b=Ol(b,s,n,null),b.flags|=2),b.return=t,l.return=t,l.sibling=b,t.child=l,rs(null,l),l=t.child,b=e.child.memoizedState,b===null?b=Gc(n):(s=b.cachePool,s!==null?(T=Kt._currentValue,s=s.parent!==T?{parent:T,pool:T}:s):s=Xd(),b={baseLanes:b.baseLanes|n,cachePool:s}),l.memoizedState=b,l.childLanes=qc(e,d,n),t.memoizedState=jc,rs(e.child,l)):(Wa(t),n=e.child,e=n.sibling,n=Ea(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function Ic(e,t){return t=Ar({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ar(e,t){return e=Bn(22,e,null,t),e.lanes=0,e}function Yc(e,t,n){return Ll(t,e.child,null,n),e=Ic(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),ic(e.return,t,n)}function Vc(e,t,n,l,s,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=n,d.tailMode=s,d.treeForkCount=c)}function rh(e,t,n){var l=t.pendingProps,s=l.revealOrder,c=l.tail;l=l.children;var d=jt.current,b=(d&2)!==0;if(b?(d=d&1|2,t.flags|=128):d&=1,j(jt,d),cn(e,t,l,n),l=We?Zi:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sh(e,n,t);else if(e.tag===19)sh(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}switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&dr(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Vc(t,!1,s,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&dr(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Vc(t,!0,n,null,c,l);break;case"together":Vc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Oa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),tl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ai(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=Ea(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ea(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Kc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&lr(e)))}function CS(e,t,n){switch(t.tag){case 3:St(t,t.stateNode.containerInfo),Xa(t,Kt,e.memoizedState.cache),Ml();break;case 27:case 5:ht(t);break;case 4:St(t,t.stateNode.containerInfo);break;case 10:Xa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,bc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Wa(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ih(e,t,n):(Wa(t),e=Oa(e,t,n),e!==null?e.sibling:null);Wa(t);break;case 19:var s=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ai(e,t,n,!1),l=(n&t.childLanes)!==0),s){if(l)return rh(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),j(jt,jt.current),l)break;return null;case 22:return t.lanes=0,Pm(e,t,n,t.pendingProps);case 24:Xa(t,Kt,e.memoizedState.cache)}return Oa(e,t,n)}function oh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Zt=!0;else{if(!Kc(e,n)&&(t.flags&128)===0)return Zt=!1,CS(e,t,n);Zt=(e.flags&131072)!==0}else Zt=!1,We&&(t.flags&1048576)!==0&&jd(t,Zi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=zl(t.elementType),t.type=e,typeof e=="function")Wo(e)?(l=kl(e,l),t.tag=1,t=ah(null,t,e,l,n)):(t.tag=0,t=$c(null,t,e,l,n));else{if(e!=null){var s=e.$$typeof;if(s===X){t.tag=11,t=Fm(null,t,e,l,n);break e}else if(s===ae){t.tag=14,t=Wm(null,t,e,l,n);break e}}throw t=Ee(e)||e,Error(o(306,t,""))}}return t;case 0:return $c(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,s=kl(l,t.pendingProps),ah(e,t,l,s,n);case 3:e:{if(St(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var c=t.memoizedState;s=c.element,dc(e,t),ns(t,l,null,n);var d=t.memoizedState;if(l=d.cache,Xa(t,Kt,l),l!==c.cache&&sc(t,[Kt],n,!0),ts(),l=d.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=lh(e,t,l,n);break e}else if(l!==s){s=Kn(Error(o(424)),t),Qi(s),t=lh(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(At=Wn(e.firstChild),rn=t,We=!0,Va=null,Qn=!0,n=Pd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ml(),l===s){t=Oa(e,t,n);break e}cn(e,t,l,n)}t=t.child}return t;case 26:return Tr(e,t),e===null?(n=Sg(t.type,null,t.pendingProps,null))?t.memoizedState=n:We||(n=t.type,e=t.pendingProps,l=jr(Me.current).createElement(n),l[qe]=t,l[Jt]=e,un(l,n,e),Rt(l),t.stateNode=l):t.memoizedState=Sg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ht(t),e===null&&We&&(l=t.stateNode=pg(t.type,t.pendingProps,Me.current),rn=t,Qn=!0,s=At,sl(t.type)?(Nu=s,At=Wn(l.firstChild)):At=s),cn(e,t,t.pendingProps.children,n),Tr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&We&&((s=l=At)&&(l=sv(l,t.type,t.pendingProps,Qn),l!==null?(t.stateNode=l,rn=t,At=Wn(l.firstChild),Qn=!1,s=!0):s=!1),s||Ka(t)),ht(t),s=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,l=c.children,vu(s,c)?l=null:d!==null&&vu(s,d)&&(t.flags|=32),t.memoizedState!==null&&(s=Sc(e,t,_S,null,null,n),Es._currentValue=s),Tr(e,t),cn(e,t,l,n),t.child;case 6:return e===null&&We&&((e=n=At)&&(n=rv(n,t.pendingProps,Qn),n!==null?(t.stateNode=n,rn=t,At=null,e=!0):e=!1),e||Ka(t)),null;case 13:return ih(e,t,n);case 4:return St(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ll(t,null,l,n):cn(e,t,l,n),t.child;case 11:return Fm(e,t,t.type,t.pendingProps,n);case 7:return cn(e,t,t.pendingProps,n),t.child;case 8:return cn(e,t,t.pendingProps.children,n),t.child;case 12:return cn(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Xa(t,t.type,l.value),cn(e,t,l.children,n),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,wl(t),s=on(s),l=l(s),t.flags|=1,cn(e,t,l,n),t.child;case 14:return Wm(e,t,t.type,t.pendingProps,n);case 15:return Jm(e,t,t.type,t.pendingProps,n);case 19:return rh(e,t,n);case 31:return MS(e,t,n);case 22:return Pm(e,t,n,t.pendingProps);case 24:return wl(t),l=on(Kt),e===null?(s=cc(),s===null&&(s=vt,c=rc(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=n),s=c),t.memoizedState={parent:l,cache:s},fc(t),Xa(t,Kt,s)):((e.lanes&n)!==0&&(dc(e,t),ns(t,null,null,n),ts()),s=e.memoizedState,c=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Xa(t,Kt,l)):(l=c.cache,Xa(t,Kt,l),l!==s.cache&&sc(t,[Kt],n,!0))),cn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Ma(e){e.flags|=4}function Xc(e,t,n,l,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Lh())e.flags|=8192;else throw Bl=or,uc}else e.flags&=-16777217}function ch(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ag(t))if(Lh())e.flags|=8192;else throw Bl=or,uc}function Nr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?oe():536870912,e.lanes|=t,gi|=t)}function os(e,t){if(!We)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 l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function wS(e,t,n){var l=t.pendingProps;switch(tc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(t),null;case 1:return Nt(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Na(Kt),je(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ni(t)?Ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ac())),Nt(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(Ma(t),c!==null?(Nt(t),ch(t,c)):(Nt(t),Xc(t,s,null,l,n))):c?c!==e.memoizedState?(Ma(t),Nt(t),ch(t,c)):(Nt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Ma(t),Nt(t),Xc(t,s,e,l,n)),null;case 27:if(Mn(t),n=Me.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Ma(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Nt(t),null}e=re.current,ni(t)?qd(t):(e=pg(s,l,n),t.stateNode=e,Ma(t))}return Nt(t),null;case 5:if(Mn(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Ma(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Nt(t),null}if(c=re.current,ni(t))qd(t);else{var d=jr(Me.current);switch(c){case 1:c=d.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=d.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=d.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?d.createElement(s,{is:l.is}):d.createElement(s)}}c[qe]=t,c[Jt]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)c.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=c;e:switch(un(c,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Ma(t)}}return Nt(t),Xc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Ma(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=Me.current,ni(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,s=rn,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[qe]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||ig(e.nodeValue,n)),e||Ka(t,!0)}else e=jr(e).createTextNode(l),e[qe]=t,t.stateNode=e}return Nt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=ni(t),n!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[qe]=t}else Ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Nt(t),e=!1}else n=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Un(t),t):(Un(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Nt(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=ni(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(o(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[qe]=t}else Ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Nt(t),s=!1}else s=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Un(t),t):(Un(t),null)}return Un(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==s&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Nr(t,t.updateQueue),Nt(t),null);case 4:return je(),e===null&&gu(t.stateNode.containerInfo),Nt(t),null;case 10:return Na(t.type),Nt(t),null;case 19:if(k(jt),l=t.memoizedState,l===null)return Nt(t),null;if(s=(t.flags&128)!==0,c=l.rendering,c===null)if(s)os(l,!1);else{if(Lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=dr(e),c!==null){for(t.flags|=128,os(l,!1),e=c.updateQueue,t.updateQueue=e,Nr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)kd(n,e),n=n.sibling;return j(jt,jt.current&1|2),We&&Ta(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ce()>Cr&&(t.flags|=128,s=!0,os(l,!1),t.lanes=4194304)}else{if(!s)if(e=dr(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Nr(t,e),os(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!We)return Nt(t),null}else 2*Ce()-l.renderingStartTime>Cr&&n!==536870912&&(t.flags|=128,s=!0,os(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ce(),e.sibling=null,n=jt.current,j(jt,s?n&1|2:n&1),We&&Ta(t,l.treeForkCount),e):(Nt(t),null);case 22:case 23:return Un(t),pc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Nt(t),t.subtreeFlags&6&&(t.flags|=8192)):Nt(t),n=t.updateQueue,n!==null&&Nr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&k(Dl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Na(Kt),Nt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function DS(e,t){switch(tc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Na(Kt),je(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Mn(t),null;case 31:if(t.memoizedState!==null){if(Un(t),t.alternate===null)throw Error(o(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Un(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(jt),null;case 4:return je(),null;case 10:return Na(t.type),null;case 22:case 23:return Un(t),pc(),e!==null&&k(Dl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Na(Kt),null;case 25:return null;default:return null}}function uh(e,t){switch(tc(t),t.tag){case 3:Na(Kt),je();break;case 26:case 27:case 5:Mn(t);break;case 4:je();break;case 31:t.memoizedState!==null&&Un(t);break;case 13:Un(t);break;case 19:k(jt);break;case 10:Na(t.type);break;case 22:case 23:Un(t),pc(),e!==null&&k(Dl);break;case 24:Na(Kt)}}function cs(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&e)===e){l=void 0;var c=n.create,d=n.inst;l=c(),d.destroy=l}n=n.next}while(n!==s)}}catch(b){dt(t,t.return,b)}}function Pa(e,t,n){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var c=s.next;l=c;do{if((l.tag&e)===e){var d=l.inst,b=d.destroy;if(b!==void 0){d.destroy=void 0,s=t;var T=n,B=b;try{B()}catch(G){dt(s,T,G)}}}l=l.next}while(l!==c)}}catch(G){dt(t,t.return,G)}}function fh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{tm(t,n)}catch(l){dt(e,e.return,l)}}}function dh(e,t,n){n.props=kl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){dt(e,t,l)}}function us(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(s){dt(e,t,s)}}function ga(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){dt(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){dt(e,t,s)}else n.current=null}function mh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(s){dt(e,e.return,s)}}function Zc(e,t,n){try{var l=e.stateNode;ev(l,e.type,n,t),l[Jt]=t}catch(s){dt(e,e.return,s)}}function hh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sl(e.type)||e.tag===4}function Qc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sl(e.type)||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 Fc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ne));else if(l!==4&&(l===27&&sl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Fc(e,t,n),e=e.sibling;e!==null;)Fc(e,t,n),e=e.sibling}function xr(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&sl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(xr(e,t,n),e=e.sibling;e!==null;)xr(e,t,n),e=e.sibling}function gh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);un(t,l,n),t[qe]=e,t[Jt]=n}catch(c){dt(e,e.return,c)}}var Ca=!1,Qt=!1,Wc=!1,ph=typeof WeakSet=="function"?WeakSet:Set,ln=null;function zS(e,t){if(e=e.containerInfo,yu=Xr,e=Od(e),Yo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var d=0,b=-1,T=-1,B=0,G=0,V=e,U=null;t:for(;;){for(var H;V!==n||s!==0&&V.nodeType!==3||(b=d+s),V!==c||l!==0&&V.nodeType!==3||(T=d+l),V.nodeType===3&&(d+=V.nodeValue.length),(H=V.firstChild)!==null;)U=V,V=H;for(;;){if(V===e)break t;if(U===n&&++B===s&&(b=d),U===c&&++G===l&&(T=d),(H=V.nextSibling)!==null)break;V=U,U=V.parentNode}V=H}n=b===-1||T===-1?null:{start:b,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Su={focusedElem:e,selectionRange:n},Xr=!1,ln=t;ln!==null;)if(t=ln,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ln=e;else for(;ln!==null;){switch(t=ln,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,s=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var ue=kl(n.type,s);e=l.getSnapshotBeforeUpdate(ue,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(Te){dt(n,n.return,Te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Eu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Eu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,ln=e;break}ln=t.return}}function bh(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Da(e,n),l&4&&cs(5,n);break;case 1:if(Da(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){dt(n,n.return,d)}else{var s=kl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){dt(n,n.return,d)}}l&64&&fh(n),l&512&&us(n,n.return);break;case 3:if(Da(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{tm(e,t)}catch(d){dt(n,n.return,d)}}break;case 27:t===null&&l&4&&gh(n);case 26:case 5:Da(e,n),t===null&&l&4&&mh(n),l&512&&us(n,n.return);break;case 12:Da(e,n);break;case 31:Da(e,n),l&4&&vh(e,n);break;case 13:Da(e,n),l&4&&_h(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qS.bind(null,n),ov(e,n))));break;case 22:if(l=n.memoizedState!==null||Ca,!l){t=t!==null&&t.memoizedState!==null||Qt,s=Ca;var c=Qt;Ca=l,(Qt=t)&&!c?za(e,n,(n.subtreeFlags&8772)!==0):Da(e,n),Ca=s,Qt=c}break;case 30:break;default:Da(e,n)}}function yh(e){var t=e.alternate;t!==null&&(e.alternate=null,yh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&_l(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ot=null,En=!1;function wa(e,t,n){for(n=n.child;n!==null;)Sh(e,t,n),n=n.sibling}function Sh(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Et,n)}catch{}switch(n.tag){case 26:Qt||ga(n,t),wa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qt||ga(n,t);var l=Ot,s=En;sl(n.type)&&(Ot=n.stateNode,En=!1),wa(e,t,n),Ss(n.stateNode),Ot=l,En=s;break;case 5:Qt||ga(n,t);case 6:if(l=Ot,s=En,Ot=null,wa(e,t,n),Ot=l,En=s,Ot!==null)if(En)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(n.stateNode)}catch(c){dt(n,t,c)}else try{Ot.removeChild(n.stateNode)}catch(c){dt(n,t,c)}break;case 18:Ot!==null&&(En?(e=Ot,fg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ti(e)):fg(Ot,n.stateNode));break;case 4:l=Ot,s=En,Ot=n.stateNode.containerInfo,En=!0,wa(e,t,n),Ot=l,En=s;break;case 0:case 11:case 14:case 15:Pa(2,n,t),Qt||Pa(4,n,t),wa(e,t,n);break;case 1:Qt||(ga(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&dh(n,t,l)),wa(e,t,n);break;case 21:wa(e,t,n);break;case 22:Qt=(l=Qt)||n.memoizedState!==null,wa(e,t,n),Qt=l;break;default:wa(e,t,n)}}function vh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ti(e)}catch(n){dt(t,t.return,n)}}}function _h(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ti(e)}catch(n){dt(t,t.return,n)}}function BS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ph),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ph),t;default:throw Error(o(435,e.tag))}}function Rr(e,t){var n=BS(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var s=IS.bind(null,e,l);l.then(s,s)}})}function Tn(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],c=e,d=t,b=d;e:for(;b!==null;){switch(b.tag){case 27:if(sl(b.type)){Ot=b.stateNode,En=!1;break e}break;case 5:Ot=b.stateNode,En=!1;break e;case 3:case 4:Ot=b.stateNode.containerInfo,En=!0;break e}b=b.return}if(Ot===null)throw Error(o(160));Sh(c,d,s),Ot=null,En=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Eh(t,e),t=t.sibling}var ia=null;function Eh(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Tn(t,e),An(e),l&4&&(Pa(3,e,e.return),cs(3,e),Pa(5,e,e.return));break;case 1:Tn(t,e),An(e),l&512&&(Qt||n===null||ga(n,n.return)),l&64&&Ca&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var s=ia;if(Tn(t,e),An(e),l&512&&(Qt||n===null||ga(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":c=s.getElementsByTagName("title")[0],(!c||c[da]||c[qe]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(l),s.head.insertBefore(c,s.querySelector("head > title"))),un(c,l,n),c[qe]=e,Rt(c),l=c;break e;case"link":var d=Eg("link","href",s).get(l+(n.href||""));if(d){for(var b=0;b<d.length;b++)if(c=d[b],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(b,1);break t}}c=s.createElement(l),un(c,l,n),s.head.appendChild(c);break;case"meta":if(d=Eg("meta","content",s).get(l+(n.content||""))){for(b=0;b<d.length;b++)if(c=d[b],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(b,1);break t}}c=s.createElement(l),un(c,l,n),s.head.appendChild(c);break;default:throw Error(o(468,l))}c[qe]=e,Rt(c),l=c}e.stateNode=l}else Tg(s,e.type,e.stateNode);else e.stateNode=_g(s,l,e.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?Tg(s,e.type,e.stateNode):_g(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Zc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Tn(t,e),An(e),l&512&&(Qt||n===null||ga(n,n.return)),n!==null&&l&4&&Zc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Tn(t,e),An(e),l&512&&(Qt||n===null||ga(n,n.return)),e.flags&32){s=e.stateNode;try{Ne(s,"")}catch(ue){dt(e,e.return,ue)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,Zc(e,s,n!==null?n.memoizedProps:s)),l&1024&&(Wc=!0);break;case 6:if(Tn(t,e),An(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ue){dt(e,e.return,ue)}}break;case 3:if(Ir=null,s=ia,ia=Gr(t.containerInfo),Tn(t,e),ia=s,An(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ti(t.containerInfo)}catch(ue){dt(e,e.return,ue)}Wc&&(Wc=!1,Th(e));break;case 4:l=ia,ia=Gr(e.stateNode.containerInfo),Tn(t,e),An(e),ia=l;break;case 12:Tn(t,e),An(e);break;case 31:Tn(t,e),An(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Rr(e,l)));break;case 13:Tn(t,e),An(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Mr=Ce()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Rr(e,l)));break;case 22:s=e.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,B=Ca,G=Qt;if(Ca=B||s,Qt=G||T,Tn(t,e),Qt=G,Ca=B,An(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||T||Ca||Qt||Hl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){T=n=t;try{if(c=T.stateNode,s)d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{b=T.stateNode;var V=T.memoizedProps.style,U=V!=null&&V.hasOwnProperty("display")?V.display:null;b.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(ue){dt(T,T.return,ue)}}}else if(t.tag===6){if(n===null){T=t;try{T.stateNode.nodeValue=s?"":T.memoizedProps}catch(ue){dt(T,T.return,ue)}}}else if(t.tag===18){if(n===null){T=t;try{var H=T.stateNode;s?dg(H,!0):dg(T.stateNode,!1)}catch(ue){dt(T,T.return,ue)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Rr(e,n))));break;case 19:Tn(t,e),An(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Rr(e,l)));break;case 30:break;case 21:break;default:Tn(t,e),An(e)}}function An(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(hh(l)){n=l;break}l=l.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var s=n.stateNode,c=Qc(e);xr(e,c,s);break;case 5:var d=n.stateNode;n.flags&32&&(Ne(d,""),n.flags&=-33);var b=Qc(e);xr(e,b,d);break;case 3:case 4:var T=n.stateNode.containerInfo,B=Qc(e);Fc(e,B,T);break;default:throw Error(o(161))}}catch(G){dt(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Th(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Th(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Da(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bh(e,t.alternate,t),t=t.sibling}function Hl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pa(4,t,t.return),Hl(t);break;case 1:ga(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&dh(t,t.return,n),Hl(t);break;case 27:Ss(t.stateNode);case 26:case 5:ga(t,t.return),Hl(t);break;case 22:t.memoizedState===null&&Hl(t);break;case 30:Hl(t);break;default:Hl(t)}e=e.sibling}}function za(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,c=t,d=c.flags;switch(c.tag){case 0:case 11:case 15:za(s,c,n),cs(4,c);break;case 1:if(za(s,c,n),l=c,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(B){dt(l,l.return,B)}if(l=c,s=l.updateQueue,s!==null){var b=l.stateNode;try{var T=s.shared.hiddenCallbacks;if(T!==null)for(s.shared.hiddenCallbacks=null,s=0;s<T.length;s++)em(T[s],b)}catch(B){dt(l,l.return,B)}}n&&d&64&&fh(c),us(c,c.return);break;case 27:gh(c);case 26:case 5:za(s,c,n),n&&l===null&&d&4&&mh(c),us(c,c.return);break;case 12:za(s,c,n);break;case 31:za(s,c,n),n&&d&4&&vh(s,c);break;case 13:za(s,c,n),n&&d&4&&_h(s,c);break;case 22:c.memoizedState===null&&za(s,c,n),us(c,c.return);break;case 30:break;default:za(s,c,n)}t=t.sibling}}function Jc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Fi(n))}function Pc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fi(e))}function sa(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ah(e,t,n,l),t=t.sibling}function Ah(e,t,n,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:sa(e,t,n,l),s&2048&&cs(9,t);break;case 1:sa(e,t,n,l);break;case 3:sa(e,t,n,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fi(e)));break;case 12:if(s&2048){sa(e,t,n,l),e=t.stateNode;try{var c=t.memoizedProps,d=c.id,b=c.onPostCommit;typeof b=="function"&&b(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){dt(t,t.return,T)}}else sa(e,t,n,l);break;case 31:sa(e,t,n,l);break;case 13:sa(e,t,n,l);break;case 23:break;case 22:c=t.stateNode,d=t.alternate,t.memoizedState!==null?c._visibility&2?sa(e,t,n,l):fs(e,t):c._visibility&2?sa(e,t,n,l):(c._visibility|=2,di(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Jc(d,t);break;case 24:sa(e,t,n,l),s&2048&&Pc(t.alternate,t);break;default:sa(e,t,n,l)}}function di(e,t,n,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,d=t,b=n,T=l,B=d.flags;switch(d.tag){case 0:case 11:case 15:di(c,d,b,T,s),cs(8,d);break;case 23:break;case 22:var G=d.stateNode;d.memoizedState!==null?G._visibility&2?di(c,d,b,T,s):fs(c,d):(G._visibility|=2,di(c,d,b,T,s)),s&&B&2048&&Jc(d.alternate,d);break;case 24:di(c,d,b,T,s),s&&B&2048&&Pc(d.alternate,d);break;default:di(c,d,b,T,s)}t=t.sibling}}function fs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,s=l.flags;switch(l.tag){case 22:fs(n,l),s&2048&&Jc(l.alternate,l);break;case 24:fs(n,l),s&2048&&Pc(l.alternate,l);break;default:fs(n,l)}t=t.sibling}}var ds=8192;function mi(e,t,n){if(e.subtreeFlags&ds)for(e=e.child;e!==null;)Nh(e,t,n),e=e.sibling}function Nh(e,t,n){switch(e.tag){case 26:mi(e,t,n),e.flags&ds&&e.memoizedState!==null&&vv(n,ia,e.memoizedState,e.memoizedProps);break;case 5:mi(e,t,n);break;case 3:case 4:var l=ia;ia=Gr(e.stateNode.containerInfo),mi(e,t,n),ia=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ds,ds=16777216,mi(e,t,n),ds=l):mi(e,t,n));break;default:mi(e,t,n)}}function xh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ms(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];ln=l,Oh(l,e)}xh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rh(e),e=e.sibling}function Rh(e){switch(e.tag){case 0:case 11:case 15:ms(e),e.flags&2048&&Pa(9,e,e.return);break;case 3:ms(e);break;case 12:ms(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Or(e)):ms(e);break;default:ms(e)}}function Or(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];ln=l,Oh(l,e)}xh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pa(8,t,t.return),Or(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Or(t));break;default:Or(t)}e=e.sibling}}function Oh(e,t){for(;ln!==null;){var n=ln;switch(n.tag){case 0:case 11:case 15:Pa(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Fi(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ln=l;else e:for(n=e;ln!==null;){l=ln;var s=l.sibling,c=l.return;if(yh(l),l===n){ln=null;break e}if(s!==null){s.return=c,ln=s;break e}ln=c}}}var LS={getCacheForType:function(e){var t=on(Kt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return on(Kt).controller.signal}},US=typeof WeakMap=="function"?WeakMap:Map,lt=0,vt=null,Ie=null,Qe=0,ft=0,kn=null,el=!1,hi=!1,eu=!1,Ba=0,Lt=0,tl=0,$l=0,tu=0,Hn=0,gi=0,hs=null,Nn=null,nu=!1,Mr=0,Mh=0,Cr=1/0,wr=null,nl=null,Pt=0,al=null,pi=null,La=0,au=0,lu=null,Ch=null,gs=0,iu=null;function $n(){return(lt&2)!==0&&Qe!==0?Qe&-Qe:L.T!==null?fu():Ct()}function wh(){if(Hn===0)if((Qe&536870912)===0||We){var e=Dt;Dt<<=1,(Dt&3932160)===0&&(Dt=262144),Hn=e}else Hn=536870912;return e=Ln.current,e!==null&&(e.flags|=32),Hn}function xn(e,t,n){(e===vt&&(ft===2||ft===9)||e.cancelPendingCommit!==null)&&(bi(e,0),ll(e,Qe,Hn,!1)),be(e,n),((lt&2)===0||e!==vt)&&(e===vt&&((lt&2)===0&&($l|=n),Lt===4&&ll(e,Qe,Hn,!1)),pa(e))}function Dh(e,t,n){if((lt&6)!==0)throw Error(o(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||$(e,t),s=l?$S(e,t):ru(e,t,!0),c=l;do{if(s===0){hi&&!l&&ll(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!kS(n)){s=ru(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var b=e;s=hs;var T=b.current.memoizedState.isDehydrated;if(T&&(bi(b,d).flags|=256),d=ru(b,d,!1),d!==2){if(eu&&!T){b.errorRecoveryDisabledLanes|=c,$l|=c,s=4;break e}c=Nn,Nn=s,c!==null&&(Nn===null?Nn=c:Nn.push.apply(Nn,c))}s=d}if(c=!1,s!==2)continue}}if(s===1){bi(e,0),ll(e,t,0,!0);break}e:{switch(l=e,c=s,c){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:ll(l,t,Hn,!el);break e;case 2:Nn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(s=Mr+300-Ce(),10<s)){if(ll(l,t,Hn,!el),v(l,0,!0)!==0)break e;La=t,l.timeoutHandle=cg(zh.bind(null,l,n,Nn,wr,nu,t,Hn,$l,gi,el,c,"Throttled",-0,0),s);break e}zh(l,n,Nn,wr,nu,t,Hn,$l,gi,el,c,null,-0,0)}}break}while(!0);pa(e)}function zh(e,t,n,l,s,c,d,b,T,B,G,V,U,H){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ne},Nh(t,c,V);var ue=(c&62914560)===c?Mr-Ce():(c&4194048)===c?Mh-Ce():0;if(ue=_v(V,ue),ue!==null){La=c,e.cancelPendingCommit=ue(Gh.bind(null,e,t,c,n,l,s,d,b,T,G,V,null,U,H)),ll(e,c,d,!B);return}}Gh(e,t,c,n,l,s,d,b,T)}function kS(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var s=n[l],c=s.getSnapshot;s=s.value;try{if(!zn(c(),s))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 ll(e,t,n,l){t&=~tu,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var c=31-qt(s),d=1<<c;l[c]=-1,s&=~d}n!==0&&te(e,n,t)}function Dr(){return(lt&6)===0?(ps(0),!1):!0}function su(){if(Ie!==null){if(ft===0)var e=Ie.return;else e=Ie,Aa=Cl=null,Ec(e),ri=null,Ji=0,e=Ie;for(;e!==null;)uh(e.alternate,e),e=e.return;Ie=null}}function bi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,av(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),La=0,su(),vt=e,Ie=n=Ea(e.current,null),Qe=t,ft=0,kn=null,el=!1,hi=$(e,t),eu=!1,gi=Hn=tu=$l=tl=Lt=0,Nn=hs=null,nu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-qt(l),c=1<<s;t|=e[s],l&=~c}return Ba=t,Ps(),n}function Bh(e,t){ke=null,L.H=ss,t===si||t===rr?(t=Fd(),ft=3):t===uc?(t=Fd(),ft=4):ft=t===Hc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,kn=t,Ie===null&&(Lt=1,_r(e,Kn(t,e.current)))}function Lh(){var e=Ln.current;return e===null?!0:(Qe&4194048)===Qe?Fn===null:(Qe&62914560)===Qe||(Qe&536870912)!==0?e===Fn:!1}function Uh(){var e=L.H;return L.H=ss,e===null?ss:e}function kh(){var e=L.A;return L.A=LS,e}function zr(){Lt=4,el||(Qe&4194048)!==Qe&&Ln.current!==null||(hi=!0),(tl&134217727)===0&&($l&134217727)===0||vt===null||ll(vt,Qe,Hn,!1)}function ru(e,t,n){var l=lt;lt|=2;var s=Uh(),c=kh();(vt!==e||Qe!==t)&&(wr=null,bi(e,t)),t=!1;var d=Lt;e:do try{if(ft!==0&&Ie!==null){var b=Ie,T=kn;switch(ft){case 8:su(),d=6;break e;case 3:case 2:case 9:case 6:Ln.current===null&&(t=!0);var B=ft;if(ft=0,kn=null,yi(e,b,T,B),n&&hi){d=0;break e}break;default:B=ft,ft=0,kn=null,yi(e,b,T,B)}}HS(),d=Lt;break}catch(G){Bh(e,G)}while(!0);return t&&e.shellSuspendCounter++,Aa=Cl=null,lt=l,L.H=s,L.A=c,Ie===null&&(vt=null,Qe=0,Ps()),d}function HS(){for(;Ie!==null;)Hh(Ie)}function $S(e,t){var n=lt;lt|=2;var l=Uh(),s=kh();vt!==e||Qe!==t?(wr=null,Cr=Ce()+500,bi(e,t)):hi=$(e,t);e:do try{if(ft!==0&&Ie!==null){t=Ie;var c=kn;t:switch(ft){case 1:ft=0,kn=null,yi(e,t,c,1);break;case 2:case 9:if(Zd(c)){ft=0,kn=null,$h(t);break}t=function(){ft!==2&&ft!==9||vt!==e||(ft=7),pa(e)},c.then(t,t);break e;case 3:ft=7;break e;case 4:ft=5;break e;case 7:Zd(c)?(ft=0,kn=null,$h(t)):(ft=0,kn=null,yi(e,t,c,7));break;case 5:var d=null;switch(Ie.tag){case 26:d=Ie.memoizedState;case 5:case 27:var b=Ie;if(d?Ag(d):b.stateNode.complete){ft=0,kn=null;var T=b.sibling;if(T!==null)Ie=T;else{var B=b.return;B!==null?(Ie=B,Br(B)):Ie=null}break t}}ft=0,kn=null,yi(e,t,c,5);break;case 6:ft=0,kn=null,yi(e,t,c,6);break;case 8:su(),Lt=6;break e;default:throw Error(o(462))}}jS();break}catch(G){Bh(e,G)}while(!0);return Aa=Cl=null,L.H=l,L.A=s,lt=n,Ie!==null?0:(vt=null,Qe=0,Ps(),Lt)}function jS(){for(;Ie!==null&&!Oe();)Hh(Ie)}function Hh(e){var t=oh(e.alternate,e,Ba);e.memoizedProps=e.pendingProps,t===null?Br(e):Ie=t}function $h(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=nh(n,t,t.pendingProps,t.type,void 0,Qe);break;case 11:t=nh(n,t,t.pendingProps,t.type.render,t.ref,Qe);break;case 5:Ec(t);default:uh(n,t),t=Ie=kd(t,Ba),t=oh(n,t,Ba)}e.memoizedProps=e.pendingProps,t===null?Br(e):Ie=t}function yi(e,t,n,l){Aa=Cl=null,Ec(t),ri=null,Ji=0;var s=t.return;try{if(OS(e,s,t,n,Qe)){Lt=1,_r(e,Kn(n,e.current)),Ie=null;return}}catch(c){if(s!==null)throw Ie=s,c;Lt=1,_r(e,Kn(n,e.current)),Ie=null;return}t.flags&32768?(We||l===1?e=!0:hi||(Qe&536870912)!==0?e=!1:(el=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ln.current,l!==null&&l.tag===13&&(l.flags|=16384))),jh(t,e)):Br(t)}function Br(e){var t=e;do{if((t.flags&32768)!==0){jh(t,el);return}e=t.return;var n=wS(t.alternate,t,Ba);if(n!==null){Ie=n;return}if(t=t.sibling,t!==null){Ie=t;return}Ie=t=e}while(t!==null);Lt===0&&(Lt=5)}function jh(e,t){do{var n=DS(e.alternate,e);if(n!==null){n.flags&=32767,Ie=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ie=e;return}Ie=e=n}while(e!==null);Lt=6,Ie=null}function Gh(e,t,n,l,s,c,d,b,T){e.cancelPendingCommit=null;do Lr();while(Pt!==0);if((lt&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(c=t.lanes|t.childLanes,c|=Qo,le(e,n,c,d,b,T),e===vt&&(Ie=vt=null,Qe=0),pi=t,al=e,La=n,au=c,lu=s,Ch=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,YS(na,function(){return Kh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=L.T,L.T=null,s=W.p,W.p=2,d=lt,lt|=4;try{zS(e,t,n)}finally{lt=d,W.p=s,L.T=l}}Pt=1,qh(),Ih(),Yh()}}function qh(){if(Pt===1){Pt=0;var e=al,t=pi,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=L.T,L.T=null;var l=W.p;W.p=2;var s=lt;lt|=4;try{Eh(t,e);var c=Su,d=Od(e.containerInfo),b=c.focusedElem,T=c.selectionRange;if(d!==b&&b&&b.ownerDocument&&Rd(b.ownerDocument.documentElement,b)){if(T!==null&&Yo(b)){var B=T.start,G=T.end;if(G===void 0&&(G=B),"selectionStart"in b)b.selectionStart=B,b.selectionEnd=Math.min(G,b.value.length);else{var V=b.ownerDocument||document,U=V&&V.defaultView||window;if(U.getSelection){var H=U.getSelection(),ue=b.textContent.length,Te=Math.min(T.start,ue),yt=T.end===void 0?Te:Math.min(T.end,ue);!H.extend&&Te>yt&&(d=yt,yt=Te,Te=d);var C=xd(b,Te),R=xd(b,yt);if(C&&R&&(H.rangeCount!==1||H.anchorNode!==C.node||H.anchorOffset!==C.offset||H.focusNode!==R.node||H.focusOffset!==R.offset)){var z=V.createRange();z.setStart(C.node,C.offset),H.removeAllRanges(),Te>yt?(H.addRange(z),H.extend(R.node,R.offset)):(z.setEnd(R.node,R.offset),H.addRange(z))}}}}for(V=[],H=b;H=H.parentNode;)H.nodeType===1&&V.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<V.length;b++){var q=V[b];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Xr=!!yu,Su=yu=null}finally{lt=s,W.p=l,L.T=n}}e.current=t,Pt=2}}function Ih(){if(Pt===2){Pt=0;var e=al,t=pi,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=L.T,L.T=null;var l=W.p;W.p=2;var s=lt;lt|=4;try{bh(e,t.alternate,t)}finally{lt=s,W.p=l,L.T=n}}Pt=3}}function Yh(){if(Pt===4||Pt===3){Pt=0,st();var e=al,t=pi,n=La,l=Ch;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Pt=5:(Pt=0,pi=al=null,Vh(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(nl=null),zt(n),t=t.stateNode,Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(Et,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=L.T,s=W.p,W.p=2,L.T=null;try{for(var c=e.onRecoverableError,d=0;d<l.length;d++){var b=l[d];c(b.value,{componentStack:b.stack})}}finally{L.T=t,W.p=s}}(La&3)!==0&&Lr(),pa(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===iu?gs++:(gs=0,iu=e):gs=0,ps(0)}}function Vh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fi(t)))}function Lr(){return qh(),Ih(),Yh(),Kh()}function Kh(){if(Pt!==5)return!1;var e=al,t=au;au=0;var n=zt(La),l=L.T,s=W.p;try{W.p=32>n?32:n,L.T=null,n=lu,lu=null;var c=al,d=La;if(Pt=0,pi=al=null,La=0,(lt&6)!==0)throw Error(o(331));var b=lt;if(lt|=4,Rh(c.current),Ah(c,c.current,d,n),lt=b,ps(0,!1),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(Et,c)}catch{}return!0}finally{W.p=s,L.T=l,Vh(e,t)}}function Xh(e,t,n){t=Kn(n,t),t=kc(e.stateNode,t,2),e=Fa(e,t,2),e!==null&&(be(e,2),pa(e))}function dt(e,t,n){if(e.tag===3)Xh(e,e,n);else for(;t!==null;){if(t.tag===3){Xh(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(nl===null||!nl.has(l))){e=Kn(n,e),n=Zm(2),l=Fa(t,n,2),l!==null&&(Qm(n,l,t,e),be(l,2),pa(l));break}}t=t.return}}function ou(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new US;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(n)||(eu=!0,s.add(n),e=GS.bind(null,e,t,n),t.then(e,e))}function GS(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,vt===e&&(Qe&n)===n&&(Lt===4||Lt===3&&(Qe&62914560)===Qe&&300>Ce()-Mr?(lt&2)===0&&bi(e,0):tu|=n,gi===Qe&&(gi=0)),pa(e)}function Zh(e,t){t===0&&(t=oe()),e=Rl(e,t),e!==null&&(be(e,t),pa(e))}function qS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zh(e,n)}function IS(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),Zh(e,n)}function YS(e,t){return tt(e,t)}var Ur=null,Si=null,cu=!1,kr=!1,uu=!1,il=0;function pa(e){e!==Si&&e.next===null&&(Si===null?Ur=Si=e:Si=Si.next=e),kr=!0,cu||(cu=!0,KS())}function ps(e,t){if(!uu&&kr){uu=!0;do for(var n=!1,l=Ur;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var c=0;else{var d=l.suspendedLanes,b=l.pingedLanes;c=(1<<31-qt(42|e)+1)-1,c&=s&~(d&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Jh(l,c))}else c=Qe,c=v(l,l===vt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||$(l,c)||(n=!0,Jh(l,c));l=l.next}while(n);uu=!1}}function VS(){Qh()}function Qh(){kr=cu=!1;var e=0;il!==0&&nv()&&(e=il);for(var t=Ce(),n=null,l=Ur;l!==null;){var s=l.next,c=Fh(l,t);c===0?(l.next=null,n===null?Ur=s:n.next=s,s===null&&(Si=n)):(n=l,(e!==0||(c&3)!==0)&&(kr=!0)),l=s}Pt!==0&&Pt!==5||ps(e),il!==0&&(il=0)}function Fh(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var d=31-qt(c),b=1<<d,T=s[d];T===-1?((b&n)===0||(b&l)!==0)&&(s[d]=Q(b,t)):T<=t&&(e.expiredLanes|=b),c&=~b}if(t=vt,n=Qe,n=v(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(ft===2||ft===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&_t(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||$(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&_t(l),zt(n)){case 2:case 8:n=pn;break;case 32:n=na;break;case 268435456:n=Sl;break;default:n=na}return l=Wh.bind(null,e),n=tt(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&_t(l),e.callbackPriority=2,e.callbackNode=null,2}function Wh(e,t){if(Pt!==0&&Pt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Lr()&&e.callbackNode!==n)return null;var l=Qe;return l=v(e,e===vt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Dh(e,l,t),Fh(e,Ce()),e.callbackNode!=null&&e.callbackNode===n?Wh.bind(null,e):null)}function Jh(e,t){if(Lr())return null;Dh(e,t,!0)}function KS(){lv(function(){(lt&6)!==0?tt(Ft,VS):Qh()})}function fu(){if(il===0){var e=li;e===0&&(e=gt,gt<<=1,(gt&261888)===0&&(gt=256)),il=e}return il}function Ph(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:qa(""+e)}function eg(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function XS(e,t,n,l,s){if(t==="submit"&&n&&n.stateNode===s){var c=Ph((s[Jt]||null).action),d=l.submitter;d&&(t=(t=d[Jt]||null)?Ph(t.formAction):d.getAttribute("formAction"),t!==null&&(c=t,d=null));var b=new Qs("action","action",null,l,s);e.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(il!==0){var T=d?eg(s,d):new FormData(s);wc(n,{pending:!0,data:T,method:s.method,action:c},null,T)}}else typeof c=="function"&&(b.preventDefault(),T=d?eg(s,d):new FormData(s),wc(n,{pending:!0,data:T,method:s.method,action:c},c,T))},currentTarget:s}]})}}for(var du=0;du<Zo.length;du++){var mu=Zo[du],ZS=mu.toLowerCase(),QS=mu[0].toUpperCase()+mu.slice(1);la(ZS,"on"+QS)}la(wd,"onAnimationEnd"),la(Dd,"onAnimationIteration"),la(zd,"onAnimationStart"),la("dblclick","onDoubleClick"),la("focusin","onFocus"),la("focusout","onBlur"),la(fS,"onTransitionRun"),la(dS,"onTransitionStart"),la(mS,"onTransitionCancel"),la(Bd,"onTransitionEnd"),F("onMouseEnter",["mouseout","mouseover"]),F("onMouseLeave",["mouseout","mouseover"]),F("onPointerEnter",["pointerout","pointerover"]),F("onPointerLeave",["pointerout","pointerover"]),Dn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Dn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Dn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Dn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Dn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Dn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bs="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(" "),FS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bs));function tg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],s=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var d=l.length-1;0<=d;d--){var b=l[d],T=b.instance,B=b.currentTarget;if(b=b.listener,T!==c&&s.isPropagationStopped())break e;c=b,s.currentTarget=B;try{c(s)}catch(G){Js(G)}s.currentTarget=null,c=T}else for(d=0;d<l.length;d++){if(b=l[d],T=b.instance,B=b.currentTarget,b=b.listener,T!==c&&s.isPropagationStopped())break e;c=b,s.currentTarget=B;try{c(s)}catch(G){Js(G)}s.currentTarget=null,c=T}}}}function Ye(e,t){var n=t[ja];n===void 0&&(n=t[ja]=new Set);var l=e+"__bubble";n.has(l)||(ng(t,e,2,!1),n.add(l))}function hu(e,t,n){var l=0;t&&(l|=4),ng(n,e,l,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function gu(e){if(!e[Hr]){e[Hr]=!0,El.forEach(function(n){n!=="selectionchange"&&(FS.has(n)||hu(n,!1,e),hu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hr]||(t[Hr]=!0,hu("selectionchange",!1,t))}}function ng(e,t,n,l){switch(wg(t)){case 2:var s=Av;break;case 8:s=Nv;break;default:s=Cu}n=s.bind(null,t,n,e),s=void 0,!Lo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function pu(e,t,n,l,s){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var b=l.stateNode.containerInfo;if(b===s)break;if(d===4)for(d=l.return;d!==null;){var T=d.tag;if((T===3||T===4)&&d.stateNode.containerInfo===s)return;d=d.return}for(;b!==null;){if(d=an(b),d===null)return;if(T=d.tag,T===5||T===6||T===26||T===27){l=c=d;continue e}b=b.parentNode}}l=l.return}Vs(function(){var B=c,G=Le(n),V=[];e:{var U=Ld.get(e);if(U!==void 0){var H=Qs,ue=e;switch(e){case"keypress":if(Xs(n)===0)break e;case"keydown":case"keyup":H=Iy;break;case"focusin":ue="focus",H=$o;break;case"focusout":ue="blur",H=$o;break;case"beforeblur":case"afterblur":H=$o;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":H=ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=wy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Ky;break;case wd:case Dd:case zd:H=By;break;case Bd:H=Zy;break;case"scroll":case"scrollend":H=My;break;case"wheel":H=Fy;break;case"copy":case"cut":case"paste":H=Uy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=dd;break;case"toggle":case"beforetoggle":H=Jy}var Te=(t&4)!==0,yt=!Te&&(e==="scroll"||e==="scrollend"),C=Te?U!==null?U+"Capture":null:U;Te=[];for(var R=B,z;R!==null;){var q=R;if(z=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||z===null||C===null||(q=$i(R,C),q!=null&&Te.push(ys(R,q,z))),yt)break;R=R.return}0<Te.length&&(U=new H(U,ue,null,n,G),V.push({event:U,listeners:Te}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",U&&n!==he&&(ue=n.relatedTarget||n.fromElement)&&(an(ue)||ue[ua]))break e;if((H||U)&&(U=G.window===G?G:(U=G.ownerDocument)?U.defaultView||U.parentWindow:window,H?(ue=n.relatedTarget||n.toElement,H=B,ue=ue?an(ue):null,ue!==null&&(yt=f(ue),Te=ue.tag,ue!==yt||Te!==5&&Te!==27&&Te!==6)&&(ue=null)):(H=null,ue=B),H!==ue)){if(Te=ud,q="onMouseLeave",C="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(Te=dd,q="onPointerLeave",C="onPointerEnter",R="pointer"),yt=H==null?U:Sn(H),z=ue==null?U:Sn(ue),U=new Te(q,R+"leave",H,n,G),U.target=yt,U.relatedTarget=z,q=null,an(G)===B&&(Te=new Te(C,R+"enter",ue,n,G),Te.target=z,Te.relatedTarget=yt,q=Te),yt=q,H&&ue)t:{for(Te=WS,C=H,R=ue,z=0,q=C;q;q=Te(q))z++;q=0;for(var Se=R;Se;Se=Te(Se))q++;for(;0<z-q;)C=Te(C),z--;for(;0<q-z;)R=Te(R),q--;for(;z--;){if(C===R||R!==null&&C===R.alternate){Te=C;break t}C=Te(C),R=Te(R)}Te=null}else Te=null;H!==null&&ag(V,U,H,Te,!1),ue!==null&&yt!==null&&ag(V,yt,ue,Te,!0)}}e:{if(U=B?Sn(B):window,H=U.nodeName&&U.nodeName.toLowerCase(),H==="select"||H==="input"&&U.type==="file")var nt=vd;else if(yd(U))if(_d)nt=oS;else{nt=sS;var ge=iS}else H=U.nodeName,!H||H.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?B&&Ga(B.elementType)&&(nt=vd):nt=rS;if(nt&&(nt=nt(e,B))){Sd(V,nt,n,G);break e}ge&&ge(e,U,B),e==="focusout"&&B&&U.type==="number"&&B.memoizedProps.value!=null&&vn(U,"number",U.value)}switch(ge=B?Sn(B):window,e){case"focusin":(yd(ge)||ge.contentEditable==="true")&&(Fl=ge,Vo=B,Xi=null);break;case"focusout":Xi=Vo=Fl=null;break;case"mousedown":Ko=!0;break;case"contextmenu":case"mouseup":case"dragend":Ko=!1,Md(V,n,G);break;case"selectionchange":if(uS)break;case"keydown":case"keyup":Md(V,n,G)}var $e;if(Go)e:{switch(e){case"compositionstart":var Fe="onCompositionStart";break e;case"compositionend":Fe="onCompositionEnd";break e;case"compositionupdate":Fe="onCompositionUpdate";break e}Fe=void 0}else Ql?pd(e,n)&&(Fe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Fe="onCompositionStart");Fe&&(md&&n.locale!=="ko"&&(Ql||Fe!=="onCompositionStart"?Fe==="onCompositionEnd"&&Ql&&($e=od()):(Ia=G,Uo="value"in Ia?Ia.value:Ia.textContent,Ql=!0)),ge=$r(B,Fe),0<ge.length&&(Fe=new fd(Fe,e,null,n,G),V.push({event:Fe,listeners:ge}),$e?Fe.data=$e:($e=bd(n),$e!==null&&(Fe.data=$e)))),($e=eS?tS(e,n):nS(e,n))&&(Fe=$r(B,"onBeforeInput"),0<Fe.length&&(ge=new fd("onBeforeInput","beforeinput",null,n,G),V.push({event:ge,listeners:Fe}),ge.data=$e)),XS(V,e,B,n,G)}tg(V,t)})}function ys(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",l=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=$i(e,n),s!=null&&l.unshift(ys(e,s,c)),s=$i(e,t),s!=null&&l.push(ys(e,s,c))),e.tag===3)return l;e=e.return}return[]}function WS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ag(e,t,n,l,s){for(var c=t._reactName,d=[];n!==null&&n!==l;){var b=n,T=b.alternate,B=b.stateNode;if(b=b.tag,T!==null&&T===l)break;b!==5&&b!==26&&b!==27||B===null||(T=B,s?(B=$i(n,c),B!=null&&d.unshift(ys(n,B,T))):s||(B=$i(n,c),B!=null&&d.push(ys(n,B,T)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var JS=/\r\n?/g,PS=/\u0000|\uFFFD/g;function lg(e){return(typeof e=="string"?e:""+e).replace(JS,`
|
|
49
|
+
`).replace(PS,"")}function ig(e,t){return t=lg(t),lg(e)===t}function bt(e,t,n,l,s,c){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ne(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ne(e,""+l);break;case"className":dn(e,"class",l);break;case"tabIndex":dn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":dn(e,n,l);break;case"style":ut(e,l,c);break;case"data":if(t!=="object"){dn(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=qa(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&bt(e,t,"name",s.name,s,null),bt(e,t,"formEncType",s.formEncType,s,null),bt(e,t,"formMethod",s.formMethod,s,null),bt(e,t,"formTarget",s.formTarget,s,null)):(bt(e,t,"encType",s.encType,s,null),bt(e,t,"method",s.method,s,null),bt(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=qa(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=ne);break;case"onScroll":l!=null&&Ye("scroll",e);break;case"onScrollEnd":l!=null&&Ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=qa(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Ye("beforetoggle",e),Ye("toggle",e),It(e,"popover",l);break;case"xlinkActuate":sn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":sn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":sn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":sn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":sn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":sn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":sn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":sn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":sn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":It(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=va.get(n)||n,It(e,n,l))}}function bu(e,t,n,l,s,c){switch(n){case"style":ut(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Ne(e,l):(typeof l=="number"||typeof l=="bigint")&&Ne(e,""+l);break;case"onScroll":l!=null&&Ye("scroll",e);break;case"onScrollEnd":l!=null&&Ye("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ne);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Sa.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),c=e[Jt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof l=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,s);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):It(e,n,l)}}}function un(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ye("error",e),Ye("load",e);var l=!1,s=!1,c;for(c in n)if(n.hasOwnProperty(c)){var d=n[c];if(d!=null)switch(c){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:bt(e,t,c,d,n,null)}}s&&bt(e,t,"srcSet",n.srcSet,n,null),l&&bt(e,t,"src",n.src,n,null);return;case"input":Ye("invalid",e);var b=c=d=s=null,T=null,B=null;for(l in n)if(n.hasOwnProperty(l)){var G=n[l];if(G!=null)switch(l){case"name":s=G;break;case"type":d=G;break;case"checked":T=G;break;case"defaultChecked":B=G;break;case"value":c=G;break;case"defaultValue":b=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(o(137,t));break;default:bt(e,t,l,G,n,null)}}In(e,c,b,T,B,d,s,!1);return;case"select":Ye("invalid",e),l=d=c=null;for(s in n)if(n.hasOwnProperty(s)&&(b=n[s],b!=null))switch(s){case"value":c=b;break;case"defaultValue":d=b;break;case"multiple":l=b;default:bt(e,t,s,b,n,null)}t=c,n=d,e.multiple=!!l,t!=null?Yt(e,!!l,t,!1):n!=null&&Yt(e,!!l,n,!0);return;case"textarea":Ye("invalid",e),c=s=l=null;for(d in n)if(n.hasOwnProperty(d)&&(b=n[d],b!=null))switch(d){case"value":l=b;break;case"defaultValue":s=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:bt(e,t,d,b,n,null)}Zl(e,l,s,c);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:bt(e,t,T,l,n,null)}return;case"dialog":Ye("beforetoggle",e),Ye("toggle",e),Ye("cancel",e),Ye("close",e);break;case"iframe":case"object":Ye("load",e);break;case"video":case"audio":for(l=0;l<bs.length;l++)Ye(bs[l],e);break;case"image":Ye("error",e),Ye("load",e);break;case"details":Ye("toggle",e);break;case"embed":case"source":case"link":Ye("error",e),Ye("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in n)if(n.hasOwnProperty(B)&&(l=n[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:bt(e,t,B,l,n,null)}return;default:if(Ga(t)){for(G in n)n.hasOwnProperty(G)&&(l=n[G],l!==void 0&&bu(e,t,G,l,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(l=n[b],l!=null&&bt(e,t,b,l,n,null))}function ev(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,d=null,b=null,T=null,B=null,G=null;for(H in n){var V=n[H];if(n.hasOwnProperty(H)&&V!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":T=V;default:l.hasOwnProperty(H)||bt(e,t,H,null,l,V)}}for(var U in l){var H=l[U];if(V=n[U],l.hasOwnProperty(U)&&(H!=null||V!=null))switch(U){case"type":c=H;break;case"name":s=H;break;case"checked":B=H;break;case"defaultChecked":G=H;break;case"value":d=H;break;case"defaultValue":b=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(o(137,t));break;default:H!==V&&bt(e,t,U,H,l,V)}}$t(e,d,b,T,B,G,c,s);return;case"select":H=d=b=U=null;for(c in n)if(T=n[c],n.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":H=T;default:l.hasOwnProperty(c)||bt(e,t,c,null,l,T)}for(s in l)if(c=l[s],T=n[s],l.hasOwnProperty(s)&&(c!=null||T!=null))switch(s){case"value":U=c;break;case"defaultValue":b=c;break;case"multiple":d=c;default:c!==T&&bt(e,t,s,c,l,T)}t=b,n=d,l=H,U!=null?Yt(e,!!n,U,!1):!!l!=!!n&&(t!=null?Yt(e,!!n,t,!0):Yt(e,!!n,n?[]:"",!1));return;case"textarea":H=U=null;for(b in n)if(s=n[b],n.hasOwnProperty(b)&&s!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:bt(e,t,b,null,l,s)}for(d in l)if(s=l[d],c=n[d],l.hasOwnProperty(d)&&(s!=null||c!=null))switch(d){case"value":U=s;break;case"defaultValue":H=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==c&&bt(e,t,d,s,l,c)}Xl(e,U,H);return;case"option":for(var ue in n)if(U=n[ue],n.hasOwnProperty(ue)&&U!=null&&!l.hasOwnProperty(ue))switch(ue){case"selected":e.selected=!1;break;default:bt(e,t,ue,null,l,U)}for(T in l)if(U=l[T],H=n[T],l.hasOwnProperty(T)&&U!==H&&(U!=null||H!=null))switch(T){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:bt(e,t,T,U,l,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Te in n)U=n[Te],n.hasOwnProperty(Te)&&U!=null&&!l.hasOwnProperty(Te)&&bt(e,t,Te,null,l,U);for(B in l)if(U=l[B],H=n[B],l.hasOwnProperty(B)&&U!==H&&(U!=null||H!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,t));break;default:bt(e,t,B,U,l,H)}return;default:if(Ga(t)){for(var yt in n)U=n[yt],n.hasOwnProperty(yt)&&U!==void 0&&!l.hasOwnProperty(yt)&&bu(e,t,yt,void 0,l,U);for(G in l)U=l[G],H=n[G],!l.hasOwnProperty(G)||U===H||U===void 0&&H===void 0||bu(e,t,G,U,l,H);return}}for(var C in n)U=n[C],n.hasOwnProperty(C)&&U!=null&&!l.hasOwnProperty(C)&&bt(e,t,C,null,l,U);for(V in l)U=l[V],H=n[V],!l.hasOwnProperty(V)||U===H||U==null&&H==null||bt(e,t,V,U,l,H)}function sg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function tv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],c=s.transferSize,d=s.initiatorType,b=s.duration;if(c&&b&&sg(d)){for(d=0,b=s.responseEnd,l+=1;l<n.length;l++){var T=n[l],B=T.startTime;if(B>b)break;var G=T.transferSize,V=T.initiatorType;G&&sg(V)&&(T=T.responseEnd,d+=G*(T<b?1:(b-B)/(T-B)))}if(--l,t+=8*(c+d)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var yu=null,Su=null;function jr(e){return e.nodeType===9?e:e.ownerDocument}function rg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function og(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function vu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _u=null;function nv(){var e=window.event;return e&&e.type==="popstate"?e===_u?!1:(_u=e,!0):(_u=null,!1)}var cg=typeof setTimeout=="function"?setTimeout:void 0,av=typeof clearTimeout=="function"?clearTimeout:void 0,ug=typeof Promise=="function"?Promise:void 0,lv=typeof queueMicrotask=="function"?queueMicrotask:typeof ug<"u"?function(e){return ug.resolve(null).then(e).catch(iv)}:cg;function iv(e){setTimeout(function(){throw e})}function sl(e){return e==="head"}function fg(e,t){var n=t,l=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(s),Ti(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ss(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ss(n);for(var c=n.firstChild;c;){var d=c.nextSibling,b=c.nodeName;c[da]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=d}}else n==="body"&&Ss(e.ownerDocument.body);n=s}while(n);Ti(t)}function dg(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Eu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Eu(n),_l(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function sv(e,t,n,l){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[da])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Wn(e.nextSibling),e===null)break}return null}function rv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Wn(e.nextSibling),e===null))return null;return e}function mg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Wn(e.nextSibling),e===null))return null;return e}function Tu(e){return e.data==="$?"||e.data==="$~"}function Au(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ov(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Wn(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Nu=null;function hg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Wn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function gg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function pg(e,t,n){switch(t=jr(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Ss(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);_l(e)}var Jn=new Map,bg=new Set;function Gr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ua=W.d;W.d={f:cv,r:uv,D:fv,C:dv,L:mv,m:hv,X:pv,S:gv,M:bv};function cv(){var e=Ua.f(),t=Dr();return e||t}function uv(e){var t=yn(e);t!==null&&t.tag===5&&t.type==="form"?Bm(t):Ua.r(e)}var vi=typeof document>"u"?null:document;function yg(e,t,n){var l=vi;if(l&&typeof t=="string"&&t){var s=Xe(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),bg.has(s)||(bg.add(s),e={rel:e,crossOrigin:n,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),un(t,"link",e),Rt(t),l.head.appendChild(t)))}}function fv(e){Ua.D(e),yg("dns-prefetch",e,null)}function dv(e,t){Ua.C(e,t),yg("preconnect",e,t)}function mv(e,t,n){Ua.L(e,t,n);var l=vi;if(l&&e&&t){var s='link[rel="preload"][as="'+Xe(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Xe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Xe(n.imageSizes)+'"]')):s+='[href="'+Xe(e)+'"]';var c=s;switch(t){case"style":c=_i(e);break;case"script":c=Ei(e)}Jn.has(c)||(e=S({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Jn.set(c,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(vs(c))||t==="script"&&l.querySelector(_s(c))||(t=l.createElement("link"),un(t,"link",e),Rt(t),l.head.appendChild(t)))}}function hv(e,t){Ua.m(e,t);var n=vi;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Xe(l)+'"][href="'+Xe(e)+'"]',c=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ei(e)}if(!Jn.has(c)&&(e=S({rel:"modulepreload",href:e},t),Jn.set(c,e),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(_s(c)))return}l=n.createElement("link"),un(l,"link",e),Rt(l),n.head.appendChild(l)}}}function gv(e,t,n){Ua.S(e,t,n);var l=vi;if(l&&e){var s=aa(l).hoistableStyles,c=_i(e);t=t||"default";var d=s.get(c);if(!d){var b={loading:0,preload:null};if(d=l.querySelector(vs(c)))b.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Jn.get(c))&&xu(e,n);var T=d=l.createElement("link");Rt(T),un(T,"link",e),T._p=new Promise(function(B,G){T.onload=B,T.onerror=G}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,qr(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:b},s.set(c,d)}}}function pv(e,t){Ua.X(e,t);var n=vi;if(n&&e){var l=aa(n).hoistableScripts,s=Ei(e),c=l.get(s);c||(c=n.querySelector(_s(s)),c||(e=S({src:e,async:!0},t),(t=Jn.get(s))&&Ru(e,t),c=n.createElement("script"),Rt(c),un(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function bv(e,t){Ua.M(e,t);var n=vi;if(n&&e){var l=aa(n).hoistableScripts,s=Ei(e),c=l.get(s);c||(c=n.querySelector(_s(s)),c||(e=S({src:e,async:!0,type:"module"},t),(t=Jn.get(s))&&Ru(e,t),c=n.createElement("script"),Rt(c),un(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function Sg(e,t,n,l){var s=(s=Me.current)?Gr(s):null;if(!s)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=_i(n.href),n=aa(s).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=_i(n.href);var c=aa(s).hoistableStyles,d=c.get(e);if(d||(s=s.ownerDocument||s,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=s.querySelector(vs(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Jn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Jn.set(e,n),c||yv(s,e,n,d.state))),t&&l===null)throw Error(o(528,""));return d}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ei(n),n=aa(s).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function _i(e){return'href="'+Xe(e)+'"'}function vs(e){return'link[rel="stylesheet"]['+e+"]"}function vg(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function yv(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),un(t,"link",n),Rt(t),e.head.appendChild(t))}function Ei(e){return'[src="'+Xe(e)+'"]'}function _s(e){return"script[async]"+e}function _g(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Xe(n.href)+'"]');if(l)return t.instance=l,Rt(l),l;var s=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Rt(l),un(l,"style",s),qr(l,n.precedence,e),t.instance=l;case"stylesheet":s=_i(n.href);var c=e.querySelector(vs(s));if(c)return t.state.loading|=4,t.instance=c,Rt(c),c;l=vg(n),(s=Jn.get(s))&&xu(l,s),c=(e.ownerDocument||e).createElement("link"),Rt(c);var d=c;return d._p=new Promise(function(b,T){d.onload=b,d.onerror=T}),un(c,"link",l),t.state.loading|=4,qr(c,n.precedence,e),t.instance=c;case"script":return c=Ei(n.src),(s=e.querySelector(_s(c)))?(t.instance=s,Rt(s),s):(l=n,(s=Jn.get(c))&&(l=S({},n),Ru(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),Rt(s),un(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,qr(l,n.precedence,e));return t.instance}function qr(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,c=s,d=0;d<l.length;d++){var b=l[d];if(b.dataset.precedence===t)c=b;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function xu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ru(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ir=null;function Eg(e,t,n){if(Ir===null){var l=new Map,s=Ir=new Map;s.set(n,l)}else s=Ir,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var c=n[s];if(!(c[da]||c[qe]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var d=c.getAttribute(t)||"";d=e+d;var b=l.get(d);b?b.push(c):l.set(d,[c])}}return l}function Tg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Sv(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ag(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function vv(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=_i(l.href),c=t.querySelector(vs(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,Rt(c);return}c=t.ownerDocument||t,l=vg(l),(s=Jn.get(s))&&xu(l,s),c=c.createElement("link"),Rt(c);var d=c;d._p=new Promise(function(b,T){d.onload=b,d.onerror=T}),un(c,"link",l),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Yr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Ou=0;function _v(e,t){return e.stylesheets&&e.count===0&&Kr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Ou===0&&(Ou=62500*tv());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Ou?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function Yr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Kr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Vr=null;function Kr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Vr=new Map,t.forEach(Ev,e),Vr=null,Yr.call(e))}function Ev(e,t){if(!(t.state.loading&4)){var n=Vr.get(e);if(n)var l=n.get(null);else{n=new Map,Vr.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var d=s[c];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),l=d)}l&&n.set(null,l)}s=t.instance,d=s.getAttribute("data-precedence"),c=n.get(d)||l,c===l&&n.set(null,s),n.set(d,s),this.count++,l=Yr.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Es={$$typeof:w,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function Tv(e,t,n,l,s,c,d,b,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ue(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ue(0),this.hiddenUpdates=Ue(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Ng(e,t,n,l,s,c,d,b,T,B,G,V){return e=new Tv(e,t,n,d,T,B,G,V,b),t=1,c===!0&&(t|=24),c=Bn(3,null,null,t),e.current=c,c.stateNode=e,t=rc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:t},fc(c),e}function xg(e){return e?(e=Pl,e):Pl}function Rg(e,t,n,l,s,c){s=xg(s),l.context===null?l.context=s:l.pendingContext=s,l=Qa(t),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=Fa(e,l,t),n!==null&&(xn(n,e,t),es(n,e,t))}function Og(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Mu(e,t){Og(e,t),(e=e.alternate)&&Og(e,t)}function Mg(e){if(e.tag===13||e.tag===31){var t=Rl(e,67108864);t!==null&&xn(t,e,67108864),Mu(e,67108864)}}function Cg(e){if(e.tag===13||e.tag===31){var t=$n();t=Ge(t);var n=Rl(e,t);n!==null&&xn(n,e,t),Mu(e,t)}}var Xr=!0;function Av(e,t,n,l){var s=L.T;L.T=null;var c=W.p;try{W.p=2,Cu(e,t,n,l)}finally{W.p=c,L.T=s}}function Nv(e,t,n,l){var s=L.T;L.T=null;var c=W.p;try{W.p=8,Cu(e,t,n,l)}finally{W.p=c,L.T=s}}function Cu(e,t,n,l){if(Xr){var s=wu(l);if(s===null)pu(e,t,l,Zr,n),Dg(e,l);else if(Rv(s,e,t,n,l))l.stopPropagation();else if(Dg(e,l),t&4&&-1<xv.indexOf(e)){for(;s!==null;){var c=yn(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var d=et(c.pendingLanes);if(d!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;d;){var T=1<<31-qt(d);b.entanglements[1]|=T,d&=~T}pa(c),(lt&6)===0&&(Cr=Ce()+500,ps(0))}}break;case 31:case 13:b=Rl(c,2),b!==null&&xn(b,c,2),Dr(),Mu(c,2)}if(c=wu(l),c===null&&pu(e,t,l,Zr,n),c===s)break;s=c}s!==null&&l.stopPropagation()}else pu(e,t,l,null,n)}}function wu(e){return e=Le(e),Du(e)}var Zr=null;function Du(e){if(Zr=null,e=an(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=p(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 Zr=e,null}function wg(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(it()){case Ft:return 2;case pn:return 8;case na:case yl:return 32;case Sl:return 268435456;default:return 32}default:return 32}}var zu=!1,rl=null,ol=null,cl=null,Ts=new Map,As=new Map,ul=[],xv="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".split(" ");function Dg(e,t){switch(e){case"focusin":case"focusout":rl=null;break;case"dragenter":case"dragleave":ol=null;break;case"mouseover":case"mouseout":cl=null;break;case"pointerover":case"pointerout":Ts.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":As.delete(t.pointerId)}}function Ns(e,t,n,l,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[s]},t!==null&&(t=yn(t),t!==null&&Mg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Rv(e,t,n,l,s){switch(t){case"focusin":return rl=Ns(rl,e,t,n,l,s),!0;case"dragenter":return ol=Ns(ol,e,t,n,l,s),!0;case"mouseover":return cl=Ns(cl,e,t,n,l,s),!0;case"pointerover":var c=s.pointerId;return Ts.set(c,Ns(Ts.get(c)||null,e,t,n,l,s)),!0;case"gotpointercapture":return c=s.pointerId,As.set(c,Ns(As.get(c)||null,e,t,n,l,s)),!0}return!1}function zg(e){var t=an(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,nn(e.priority,function(){Cg(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,nn(e.priority,function(){Cg(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 Qr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);he=l,n.target.dispatchEvent(l),he=null}else return t=yn(n),t!==null&&Mg(t),e.blockedOn=n,!1;t.shift()}return!0}function Bg(e,t,n){Qr(e)&&n.delete(t)}function Ov(){zu=!1,rl!==null&&Qr(rl)&&(rl=null),ol!==null&&Qr(ol)&&(ol=null),cl!==null&&Qr(cl)&&(cl=null),Ts.forEach(Bg),As.forEach(Bg)}function Fr(e,t){e.blockedOn===t&&(e.blockedOn=null,zu||(zu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Ov)))}var Wr=null;function Lg(e){Wr!==e&&(Wr=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Wr===e&&(Wr=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(Du(l||n)===null)continue;break}var c=yn(n);c!==null&&(e.splice(t,3),t-=3,wc(c,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function Ti(e){function t(T){return Fr(T,e)}rl!==null&&Fr(rl,e),ol!==null&&Fr(ol,e),cl!==null&&Fr(cl,e),Ts.forEach(t),As.forEach(t);for(var n=0;n<ul.length;n++){var l=ul[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ul.length&&(n=ul[0],n.blockedOn===null);)zg(n),n.blockedOn===null&&ul.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],c=n[l+1],d=s[Jt]||null;if(typeof c=="function")d||Lg(n);else if(d){var b=null;if(c&&c.hasAttribute("formAction")){if(s=c,d=c[Jt]||null)b=d.formAction;else if(Du(s)!==null)continue}else b=d.action;typeof b=="function"?n[l+1]=b:(n.splice(l,3),l-=3),Lg(n)}}}function Ug(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(d){return s=d})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Bu(e){this._internalRoot=e}Jr.prototype.render=Bu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,l=$n();Rg(n,l,e,t,null,null)},Jr.prototype.unmount=Bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rg(e.current,2,null,e,null,null),Dr(),t[ua]=null}};function Jr(e){this._internalRoot=e}Jr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ul.length&&t!==0&&t<ul[n].priority;n++);ul.splice(n,0,e),n===0&&zg(e)}};var kg=i.version;if(kg!=="19.2.6")throw Error(o(527,kg,"19.2.6"));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Mv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pr.isDisabled&&Pr.supportsFiber)try{Et=Pr.inject(Mv),Mt=Pr}catch{}}return Rs.createRoot=function(e,t){if(!u(e))throw Error(o(299));var n=!1,l="",s=Ym,c=Vm,d=Km;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Ng(e,1,!1,null,null,n,l,null,s,c,d,Ug),e[ua]=t.current,gu(e),new Bu(t)},Rs.hydrateRoot=function(e,t,n){if(!u(e))throw Error(o(299));var l=!1,s="",c=Ym,d=Vm,b=Km,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),t=Ng(e,1,!0,t,n??null,l,s,T,c,d,b,Ug),t.context=xg(null),n=t.current,l=$n(),l=Ge(l),s=Qa(l),s.callback=null,Fa(n,s,l),n=l,t.current.lanes=n,be(t,n),pa(t),e[ua]=t.current,gu(e),new Jr(t)},Rs.version="19.2.6",Rs}var Xg;function Gv(){if(Xg)return Uu.exports;Xg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Uu.exports=jv(),Uu.exports}var qv=Gv(),ee=qf();const Ut=Pp(ee),Iv=zv({__proto__:null,default:Ut},[ee]);eb();/**
|
|
50
|
+
* @remix-run/router v1.23.3
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/function go(){return go=Object.assign?Object.assign.bind():function(a){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var o in r)({}).hasOwnProperty.call(r,o)&&(a[o]=r[o])}return a},go.apply(null,arguments)}var hl;(function(a){a.Pop="POP",a.Push="PUSH",a.Replace="REPLACE"})(hl||(hl={}));const Zg="popstate";function Yv(a){a===void 0&&(a={});function i(o,u){let{pathname:f,search:m,hash:p}=o.location;return cf("",{pathname:f,search:m,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function r(o,u){return typeof u=="string"?u:nb(u)}return Kv(i,r,null,a)}function Rn(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function tb(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Vv(){return Math.random().toString(36).substr(2,8)}function Qg(a,i){return{usr:a.state,key:a.key,idx:i}}function cf(a,i,r,o){return r===void 0&&(r=null),go({pathname:typeof a=="string"?a:a.pathname,search:"",hash:""},typeof i=="string"?Ro(i):i,{state:r,key:i&&i.key||o||Vv()})}function nb(a){let{pathname:i="/",search:r="",hash:o=""}=a;return r&&r!=="?"&&(i+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(i+=o.charAt(0)==="#"?o:"#"+o),i}function Ro(a){let i={};if(a){let r=a.indexOf("#");r>=0&&(i.hash=a.substr(r),a=a.substr(0,r));let o=a.indexOf("?");o>=0&&(i.search=a.substr(o),a=a.substr(0,o)),a&&(i.pathname=a)}return i}function Kv(a,i,r,o){o===void 0&&(o={});let{window:u=document.defaultView,v5Compat:f=!1}=o,m=u.history,p=hl.Pop,h=null,g=y();g==null&&(g=0,m.replaceState(go({},m.state,{idx:g}),""));function y(){return(m.state||{idx:null}).idx}function S(){p=hl.Pop;let x=y(),N=x==null?null:x-g;g=x,h&&h({action:p,location:M.location,delta:N})}function _(x,N){p=hl.Push;let D=cf(M.location,x,N);g=y()+1;let w=Qg(D,g),X=M.createHref(D);try{m.pushState(w,"",X)}catch(J){if(J instanceof DOMException&&J.name==="DataCloneError")throw J;u.location.assign(X)}f&&h&&h({action:p,location:M.location,delta:1})}function E(x,N){p=hl.Replace;let D=cf(M.location,x,N);g=y();let w=Qg(D,g),X=M.createHref(D);m.replaceState(w,"",X),f&&h&&h({action:p,location:M.location,delta:0})}function O(x){let N=u.location.origin!=="null"?u.location.origin:u.location.href,D=typeof x=="string"?x:nb(x);return D=D.replace(/ $/,"%20"),Rn(N,"No window.location.(origin|href) available to create URL for href: "+D),new URL(D,N)}let M={get action(){return p},get location(){return a(u,m)},listen(x){if(h)throw new Error("A history only accepts one active listener");return u.addEventListener(Zg,S),h=x,()=>{u.removeEventListener(Zg,S),h=null}},createHref(x){return i(u,x)},createURL:O,encodeLocation(x){let N=O(x);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:_,replace:E,go(x){return m.go(x)}};return M}var Fg;(function(a){a.data="data",a.deferred="deferred",a.redirect="redirect",a.error="error"})(Fg||(Fg={}));function Xv(a,i,r){return r===void 0&&(r="/"),Zv(a,i,r)}function Zv(a,i,r,o){let u=typeof i=="string"?Ro(i):i,f=ib(u.pathname||"/",r);if(f==null)return null;let m=ab(a);Qv(m);let p=null,h=r0(f);for(let g=0;p==null&&g<m.length;++g)p=l0(m[g],h);return p}function ab(a,i,r,o){i===void 0&&(i=[]),r===void 0&&(r=[]),o===void 0&&(o="");let u=(f,m,p)=>{let h={relativePath:p===void 0?f.path||"":p,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};h.relativePath.startsWith("/")&&(Rn(h.relativePath.startsWith(o),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(o.length));let g=Mi([o,h.relativePath]),y=r.concat(h);f.children&&f.children.length>0&&(Rn(f.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+g+'".')),ab(f.children,i,y,g)),!(f.path==null&&!f.index)&&i.push({path:g,score:n0(g,f.index),routesMeta:y})};return a.forEach((f,m)=>{var p;if(f.path===""||!((p=f.path)!=null&&p.includes("?")))u(f,m);else for(let h of lb(f.path))u(f,m,h)}),i}function lb(a){let i=a.split("/");if(i.length===0)return[];let[r,...o]=i,u=r.endsWith("?"),f=r.replace(/\?$/,"");if(o.length===0)return u?[f,""]:[f];let m=lb(o.join("/")),p=[];return p.push(...m.map(h=>h===""?f:[f,h].join("/"))),u&&p.push(...m),p.map(h=>a.startsWith("/")&&h===""?"/":h)}function Qv(a){a.sort((i,r)=>i.score!==r.score?r.score-i.score:a0(i.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}const Fv=/^:[\w-]+$/,Wv=3,Jv=2,Pv=1,e0=10,t0=-2,Wg=a=>a==="*";function n0(a,i){let r=a.split("/"),o=r.length;return r.some(Wg)&&(o+=t0),i&&(o+=Jv),r.filter(u=>!Wg(u)).reduce((u,f)=>u+(Fv.test(f)?Wv:f===""?Pv:e0),o)}function a0(a,i){return a.length===i.length&&a.slice(0,-1).every((o,u)=>o===i[u])?a[a.length-1]-i[i.length-1]:0}function l0(a,i,r){let{routesMeta:o}=a,u={},f="/",m=[];for(let p=0;p<o.length;++p){let h=o[p],g=p===o.length-1,y=f==="/"?i:i.slice(f.length)||"/",S=i0({path:h.relativePath,caseSensitive:h.caseSensitive,end:g},y),_=h.route;if(!S)return null;Object.assign(u,S.params),m.push({params:u,pathname:Mi([f,S.pathname]),pathnameBase:c0(Mi([f,S.pathnameBase])),route:_}),S.pathnameBase!=="/"&&(f=Mi([f,S.pathnameBase]))}return m}function i0(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[r,o]=s0(a.path,a.caseSensitive,a.end),u=i.match(r);if(!u)return null;let f=u[0],m=f.replace(/(.)\/+$/,"$1"),p=u.slice(1);return{params:o.reduce((g,y,S)=>{let{paramName:_,isOptional:E}=y;if(_==="*"){let M=p[S]||"";m=f.slice(0,f.length-M.length).replace(/(.)\/+$/,"$1")}const O=p[S];return E&&!O?g[_]=void 0:g[_]=(O||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:m,pattern:a}}function s0(a,i,r){i===void 0&&(i=!1),r===void 0&&(r=!0),tb(a==="*"||!a.endsWith("*")||a.endsWith("/*"),'Route path "'+a+'" will be treated as if it were '+('"'+a.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+a.replace(/\*$/,"/*")+'".'));let o=[],u="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,p,h)=>(o.push({paramName:p,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(o.push({paramName:"*"}),u+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?u+="\\/*$":a!==""&&a!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,i?void 0:"i"),o]}function r0(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return tb(!1,'The URL path "'+a+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+i+").")),a}}function ib(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,o=a.charAt(r);return o&&o!=="/"?null:a.slice(r)||"/"}const o0=a=>a.replace(/\/\/+/g,"/"),Mi=a=>o0(a.join("/")),c0=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/");function u0(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}const sb=["post","put","patch","delete"];new Set(sb);const f0=["get",...sb];new Set(f0);/**
|
|
59
|
+
* React Router v6.30.4
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Remix Software Inc.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
+
*
|
|
66
|
+
* @license MIT
|
|
67
|
+
*/function po(){return po=Object.assign?Object.assign.bind():function(a){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var o in r)({}).hasOwnProperty.call(r,o)&&(a[o]=r[o])}return a},po.apply(null,arguments)}const d0=ee.createContext(null),m0=ee.createContext(null),rb=ee.createContext(null),Oo=ee.createContext(null),Mo=ee.createContext({outlet:null,matches:[],isDataRoute:!1}),ob=ee.createContext(null);function If(){return ee.useContext(Oo)!=null}function h0(){return If()||Rn(!1),ee.useContext(Oo).location}function g0(a,i){return p0(a,i)}function p0(a,i,r,o){If()||Rn(!1);let{navigator:u}=ee.useContext(rb),{matches:f}=ee.useContext(Mo),m=f[f.length-1],p=m?m.params:{};m&&m.pathname;let h=m?m.pathnameBase:"/";m&&m.route;let g=h0(),y;if(i){var S;let x=typeof i=="string"?Ro(i):i;h==="/"||(S=x.pathname)!=null&&S.startsWith(h)||Rn(!1),y=x}else y=g;let _=y.pathname||"/",E=_;if(h!=="/"){let x=h.replace(/^\//,"").split("/");E="/"+_.replace(/^\//,"").split("/").slice(x.length).join("/")}let O=Xv(a,{pathname:E}),M=_0(O&&O.map(x=>Object.assign({},x,{params:Object.assign({},p,x.params),pathname:Mi([h,u.encodeLocation?u.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?h:Mi([h,u.encodeLocation?u.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),f,r,o);return i&&M?ee.createElement(Oo.Provider,{value:{location:po({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:hl.Pop}},M):M}function b0(){let a=N0(),i=u0(a)?a.status+" "+a.statusText:a instanceof Error?a.message:JSON.stringify(a),r=a instanceof Error?a.stack:null,u={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return ee.createElement(ee.Fragment,null,ee.createElement("h2",null,"Unexpected Application Error!"),ee.createElement("h3",{style:{fontStyle:"italic"}},i),r?ee.createElement("pre",{style:u},r):null,null)}const y0=ee.createElement(b0,null);class S0 extends ee.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,r){return r.location!==i.location||r.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:r.error,location:r.location,revalidation:i.revalidation||r.revalidation}}componentDidCatch(i,r){console.error("React Router caught the following error during render",i,r)}render(){return this.state.error!==void 0?ee.createElement(Mo.Provider,{value:this.props.routeContext},ee.createElement(ob.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function v0(a){let{routeContext:i,match:r,children:o}=a,u=ee.useContext(d0);return u&&u.static&&u.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=r.route.id),ee.createElement(Mo.Provider,{value:i},o)}function _0(a,i,r,o){var u;if(i===void 0&&(i=[]),r===void 0&&(r=null),o===void 0&&(o=null),a==null){var f;if(!r)return null;if(r.errors)a=r.matches;else if((f=o)!=null&&f.v7_partialHydration&&i.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let m=a,p=(u=r)==null?void 0:u.errors;if(p!=null){let y=m.findIndex(S=>S.route.id&&(p==null?void 0:p[S.route.id])!==void 0);y>=0||Rn(!1),m=m.slice(0,Math.min(m.length,y+1))}let h=!1,g=-1;if(r&&o&&o.v7_partialHydration)for(let y=0;y<m.length;y++){let S=m[y];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(g=y),S.route.id){let{loaderData:_,errors:E}=r,O=S.route.loader&&_[S.route.id]===void 0&&(!E||E[S.route.id]===void 0);if(S.route.lazy||O){h=!0,g>=0?m=m.slice(0,g+1):m=[m[0]];break}}}return m.reduceRight((y,S,_)=>{let E,O=!1,M=null,x=null;r&&(E=p&&S.route.id?p[S.route.id]:void 0,M=S.route.errorElement||y0,h&&(g<0&&_===0?(x0("route-fallback"),O=!0,x=null):g===_&&(O=!0,x=S.route.hydrateFallbackElement||null)));let N=i.concat(m.slice(0,_+1)),D=()=>{let w;return E?w=M:O?w=x:S.route.Component?w=ee.createElement(S.route.Component,null):S.route.element?w=S.route.element:w=y,ee.createElement(v0,{match:S,routeContext:{outlet:y,matches:N,isDataRoute:r!=null},children:w})};return r&&(S.route.ErrorBoundary||S.route.errorElement||_===0)?ee.createElement(S0,{location:r.location,revalidation:r.revalidation,component:M,error:E,children:D(),routeContext:{outlet:null,matches:N,isDataRoute:!0}}):D()},null)}var cb=(function(a){return a.UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a})(cb||{});function E0(a){let i=ee.useContext(m0);return i||Rn(!1),i}function T0(a){let i=ee.useContext(Mo);return i||Rn(!1),i}function A0(a){let i=T0(),r=i.matches[i.matches.length-1];return r.route.id||Rn(!1),r.route.id}function N0(){var a;let i=ee.useContext(ob),r=E0(cb.UseRouteError),o=A0();return i!==void 0?i:(a=r.errors)==null?void 0:a[o]}const Jg={};function x0(a,i,r){Jg[a]||(Jg[a]=!0)}function R0(a,i){a==null||a.v7_startTransition,a==null||a.v7_relativeSplatPath}function uf(a){Rn(!1)}function O0(a){let{basename:i="/",children:r=null,location:o,navigationType:u=hl.Pop,navigator:f,static:m=!1,future:p}=a;If()&&Rn(!1);let h=i.replace(/^\/*/,"/"),g=ee.useMemo(()=>({basename:h,navigator:f,static:m,future:po({v7_relativeSplatPath:!1},p)}),[h,p,f,m]);typeof o=="string"&&(o=Ro(o));let{pathname:y="/",search:S="",hash:_="",state:E=null,key:O="default"}=o,M=ee.useMemo(()=>{let x=ib(y,h);return x==null?null:{location:{pathname:x,search:S,hash:_,state:E,key:O},navigationType:u}},[h,y,S,_,E,O,u]);return M==null?null:ee.createElement(rb.Provider,{value:g},ee.createElement(Oo.Provider,{children:r,value:M}))}function M0(a){let{children:i,location:r}=a;return g0(ff(i),r)}new Promise(()=>{});function ff(a,i){i===void 0&&(i=[]);let r=[];return ee.Children.forEach(a,(o,u)=>{if(!ee.isValidElement(o))return;let f=[...i,u];if(o.type===ee.Fragment){r.push.apply(r,ff(o.props.children,f));return}o.type!==uf&&Rn(!1),!o.props.index||!o.props.children||Rn(!1);let m={id:o.props.id||f.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(m.children=ff(o.props.children,f)),r.push(m)}),r}/**
|
|
68
|
+
* React Router DOM v6.30.4
|
|
69
|
+
*
|
|
70
|
+
* Copyright (c) Remix Software Inc.
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the MIT license found in the
|
|
73
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
74
|
+
*
|
|
75
|
+
* @license MIT
|
|
76
|
+
*/const C0="6";try{window.__reactRouterVersion=C0}catch{}const w0="startTransition",Pg=Iv[w0];function D0(a){let{basename:i,children:r,future:o,window:u}=a,f=ee.useRef();f.current==null&&(f.current=Yv({window:u,v5Compat:!0}));let m=f.current,[p,h]=ee.useState({action:m.action,location:m.location}),{v7_startTransition:g}=o||{},y=ee.useCallback(S=>{g&&Pg?Pg(()=>h(S)):h(S)},[h,g]);return ee.useLayoutEffect(()=>m.listen(y),[m,y]),ee.useEffect(()=>R0(o),[o]),ee.createElement(O0,{basename:i,children:r,location:p.location,navigationType:p.action,navigator:m,future:o})}var ep;(function(a){a.UseScrollRestoration="useScrollRestoration",a.UseSubmit="useSubmit",a.UseSubmitFetcher="useSubmitFetcher",a.UseFetcher="useFetcher",a.useViewTransitionState="useViewTransitionState"})(ep||(ep={}));var tp;(function(a){a.UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"})(tp||(tp={}));const z0={accent:"rgb(215,119,87)",success:"rgb(78,186,101)",error:"rgb(255,107,128)",warning:"rgb(255,193,7)",permission:"rgb(177,185,249)",planMode:"rgb(72,150,140)",autoAccept:"rgb(175,135,255)",bashPink:"rgb(253,93,177)",diffAddedBg:"rgb(34,92,43)",diffRemovedBg:"rgb(122,41,54)",diffAddedWordBg:"rgb(56,166,96)",diffRemovedWordBg:"rgb(179,89,107)",userMessageBg:"rgb(55,55,55)",stall:"rgb(171,43,63)",synKeyword:"rgb(198,120,221)",synString:"rgb(152,195,121)",synComment:"rgb(106,115,125)",synNumber:"rgb(209,154,102)",synFunction:"rgb(97,175,239)",synType:"rgb(229,192,123)",synLiteral:"rgb(86,182,194)",synTitle:"rgb(97,175,239)",synAttr:"rgb(209,154,102)"},B0={accent:"rgb(215,119,87)",success:"rgb(44,122,57)",error:"rgb(171,43,63)",warning:"rgb(150,108,30)",permission:"rgb(87,105,247)",planMode:"rgb(0,102,102)",autoAccept:"rgb(135,0,255)",bashPink:"rgb(255,0,135)",diffAddedBg:"rgb(105,219,124)",diffRemovedBg:"rgb(255,168,180)",diffAddedWordBg:"rgb(47,157,68)",diffRemovedWordBg:"rgb(209,69,75)",userMessageBg:"rgb(240,240,240)",stall:"rgb(171,43,63)",synKeyword:"rgb(166,38,164)",synString:"rgb(80,161,79)",synComment:"rgb(160,161,167)",synNumber:"rgb(152,104,1)",synFunction:"rgb(64,120,242)",synType:"rgb(193,132,1)",synLiteral:"rgb(1,132,188)",synTitle:"rgb(64,120,242)",synAttr:"rgb(152,104,1)"},L0={};function U0(a){const i=a.NO_COLOR;return typeof i=="string"&&i.length>0}function Co(a,i){return U0(i)?L0:a==="light"?B0:z0}function k0(a){return{dot:"●",branch:"⎿",prompt:"❯",blockquote:"▎",plan:"⏸",accept:"⏵⏵",tick:"✓",hr:"─",bullet:"•",thinking:"✻",arrowDown:"↓",arrowUp:"↑"}}var Gu,np;function H0(){if(np)return Gu;np=1;function a(v){return v instanceof Map?v.clear=v.delete=v.set=function(){throw new Error("map is read-only")}:v instanceof Set&&(v.add=v.clear=v.delete=function(){throw new Error("set is read-only")}),Object.freeze(v),Object.getOwnPropertyNames(v).forEach($=>{const Q=v[$],oe=typeof Q;(oe==="object"||oe==="function")&&!Object.isFrozen(Q)&&a(Q)}),v}class i{constructor($){$.data===void 0&&($.data={}),this.data=$.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(v){return v.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function o(v,...$){const Q=Object.create(null);for(const oe in v)Q[oe]=v[oe];return $.forEach(function(oe){for(const Ue in oe)Q[Ue]=oe[Ue]}),Q}const u="</span>",f=v=>!!v.scope,m=(v,{prefix:$})=>{if(v.startsWith("language:"))return v.replace("language:","language-");if(v.includes(".")){const Q=v.split(".");return[`${$}${Q.shift()}`,...Q.map((oe,Ue)=>`${oe}${"_".repeat(Ue+1)}`)].join(" ")}return`${$}${v}`};class p{constructor($,Q){this.buffer="",this.classPrefix=Q.classPrefix,$.walk(this)}addText($){this.buffer+=r($)}openNode($){if(!f($))return;const Q=m($.scope,{prefix:this.classPrefix});this.span(Q)}closeNode($){f($)&&(this.buffer+=u)}value(){return this.buffer}span($){this.buffer+=`<span class="${$}">`}}const h=(v={})=>{const $={children:[]};return Object.assign($,v),$};class g{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add($){this.top.children.push($)}openNode($){const Q=h({scope:$});this.add(Q),this.stack.push(Q)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk($){return this.constructor._walk($,this.rootNode)}static _walk($,Q){return typeof Q=="string"?$.addText(Q):Q.children&&($.openNode(Q),Q.children.forEach(oe=>this._walk($,oe)),$.closeNode(Q)),$}static _collapse($){typeof $!="string"&&$.children&&($.children.every(Q=>typeof Q=="string")?$.children=[$.children.join("")]:$.children.forEach(Q=>{g._collapse(Q)}))}}class y extends g{constructor($){super(),this.options=$}addText($){$!==""&&this.add($)}startScope($){this.openNode($)}endScope(){this.closeNode()}__addSublanguage($,Q){const oe=$.root;Q&&(oe.scope=`language:${Q}`),this.add(oe)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function S(v){return v?typeof v=="string"?v:v.source:null}function _(v){return M("(?=",v,")")}function E(v){return M("(?:",v,")*")}function O(v){return M("(?:",v,")?")}function M(...v){return v.map(Q=>S(Q)).join("")}function x(v){const $=v[v.length-1];return typeof $=="object"&&$.constructor===Object?(v.splice(v.length-1,1),$):{}}function N(...v){return"("+(x(v).capture?"":"?:")+v.map(oe=>S(oe)).join("|")+")"}function D(v){return new RegExp(v.toString()+"|").exec("").length-1}function w(v,$){const Q=v&&v.exec($);return Q&&Q.index===0}const X=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function J(v,{joinWith:$}){let Q=0;return v.map(oe=>{Q+=1;const Ue=Q;let be=S(oe),le="";for(;be.length>0;){const te=X.exec(be);if(!te){le+=be;break}le+=be.substring(0,te.index),be=be.substring(te.index+te[0].length),te[0][0]==="\\"&&te[1]?le+="\\"+String(Number(te[1])+Ue):(le+=te[0],te[0]==="("&&Q++)}return le}).map(oe=>`(${oe})`).join($)}const K=/\b\B/,ae="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",de="\\b\\d+(\\.\\d+)?",we="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ie="\\b(0b[01]+)",se="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",_e=(v={})=>{const $=/^#![ ]*\//;return v.binary&&(v.begin=M($,/.*\b/,v.binary,/\b.*/)),o({scope:"meta",begin:$,end:/$/,relevance:0,"on:begin":(Q,oe)=>{Q.index!==0&&oe.ignoreMatch()}},v)},Ee={begin:"\\\\[\\s\\S]",relevance:0},De={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ee]},L={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ee]},W={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},P=function(v,$,Q={}){const oe=o({scope:"comment",begin:v,end:$,contains:[]},Q);oe.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Ue=N("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return oe.contains.push({begin:M(/[ ]+/,"(",Ue,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),oe},ve=P("//","$"),Y=P("/\\*","\\*/"),A=P("#","$"),k={scope:"number",begin:de,relevance:0},j={scope:"number",begin:we,relevance:0},re={scope:"number",begin:ie,relevance:0},xe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ee,{begin:/\[/,end:/\]/,relevance:0,contains:[Ee]}]},Me={scope:"title",begin:ae,relevance:0},Ve={scope:"title",begin:I,relevance:0},St={begin:"\\.\\s*"+I,relevance:0};var ht=Object.freeze({__proto__:null,APOS_STRING_MODE:De,BACKSLASH_ESCAPE:Ee,BINARY_NUMBER_MODE:re,BINARY_NUMBER_RE:ie,COMMENT:P,C_BLOCK_COMMENT_MODE:Y,C_LINE_COMMENT_MODE:ve,C_NUMBER_MODE:j,C_NUMBER_RE:we,END_SAME_AS_BEGIN:function(v){return Object.assign(v,{"on:begin":($,Q)=>{Q.data._beginMatch=$[1]},"on:end":($,Q)=>{Q.data._beginMatch!==$[1]&&Q.ignoreMatch()}})},HASH_COMMENT_MODE:A,IDENT_RE:ae,MATCH_NOTHING_RE:K,METHOD_GUARD:St,NUMBER_MODE:k,NUMBER_RE:de,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:L,REGEXP_MODE:xe,RE_STARTERS_RE:se,SHEBANG:_e,TITLE_MODE:Me,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:Ve});function Mn(v,$){v.input[v.index-1]==="."&&$.ignoreMatch()}function Gn(v,$){v.className!==void 0&&(v.scope=v.className,delete v.className)}function ca(v,$){$&&v.beginKeywords&&(v.begin="\\b("+v.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",v.__beforeBegin=Mn,v.keywords=v.keywords||v.beginKeywords,delete v.beginKeywords,v.relevance===void 0&&(v.relevance=0))}function xt(v,$){Array.isArray(v.illegal)&&(v.illegal=N(...v.illegal))}function ta(v,$){if(v.match){if(v.begin||v.end)throw new Error("begin & end are not supported with match");v.begin=v.match,delete v.match}}function Cn(v,$){v.relevance===void 0&&(v.relevance=1)}const Je=(v,$)=>{if(!v.beforeMatch)return;if(v.starts)throw new Error("beforeMatch cannot be used with starts");const Q=Object.assign({},v);Object.keys(v).forEach(oe=>{delete v[oe]}),v.keywords=Q.keywords,v.begin=M(Q.beforeMatch,_(Q.begin)),v.starts={relevance:0,contains:[Object.assign(Q,{endsParent:!0})]},v.relevance=0,delete Q.beforeMatch},fe=["of","and","for","in","not","or","if","then","parent","list","value"],Ae="keyword";function tt(v,$,Q=Ae){const oe=Object.create(null);return typeof v=="string"?Ue(Q,v.split(" ")):Array.isArray(v)?Ue(Q,v):Object.keys(v).forEach(function(be){Object.assign(oe,tt(v[be],$,be))}),oe;function Ue(be,le){$&&(le=le.map(te=>te.toLowerCase())),le.forEach(function(te){const me=te.split("|");oe[me[0]]=[be,_t(me[0],me[1])]})}}function _t(v,$){return $?Number($):Oe(v)?0:1}function Oe(v){return fe.includes(v.toLowerCase())}const st={},Ce=v=>{console.error(v)},it=(v,...$)=>{console.log(`WARN: ${v}`,...$)},Ft=(v,$)=>{st[`${v}/${$}`]||(console.log(`Deprecated as of ${v}. ${$}`),st[`${v}/${$}`]=!0)},pn=new Error;function na(v,$,{key:Q}){let oe=0;const Ue=v[Q],be={},le={};for(let te=1;te<=$.length;te++)le[te+oe]=Ue[te],be[te+oe]=!0,oe+=D($[te-1]);v[Q]=le,v[Q]._emit=be,v[Q]._multi=!0}function yl(v){if(Array.isArray(v.begin)){if(v.skip||v.excludeBegin||v.returnBegin)throw Ce("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),pn;if(typeof v.beginScope!="object"||v.beginScope===null)throw Ce("beginScope must be object"),pn;na(v,v.begin,{key:"beginScope"}),v.begin=J(v.begin,{joinWith:""})}}function Sl(v){if(Array.isArray(v.end)){if(v.skip||v.excludeEnd||v.returnEnd)throw Ce("skip, excludeEnd, returnEnd not compatible with endScope: {}"),pn;if(typeof v.endScope!="object"||v.endScope===null)throw Ce("endScope must be object"),pn;na(v,v.end,{key:"endScope"}),v.end=J(v.end,{joinWith:""})}}function rt(v){v.scope&&typeof v.scope=="object"&&v.scope!==null&&(v.beginScope=v.scope,delete v.scope)}function Re(v){rt(v),typeof v.beginScope=="string"&&(v.beginScope={_wrap:v.beginScope}),typeof v.endScope=="string"&&(v.endScope={_wrap:v.endScope}),yl(v),Sl(v)}function Et(v){function $(le,te){return new RegExp(S(le),"m"+(v.case_insensitive?"i":"")+(v.unicodeRegex?"u":"")+(te?"g":""))}class Q{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(te,me){me.position=this.position++,this.matchIndexes[this.matchAt]=me,this.regexes.push([me,te]),this.matchAt+=D(te)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const te=this.regexes.map(me=>me[1]);this.matcherRe=$(J(te,{joinWith:"|"}),!0),this.lastIndex=0}exec(te){this.matcherRe.lastIndex=this.lastIndex;const me=this.matcherRe.exec(te);if(!me)return null;const ot=me.findIndex((zt,Ct)=>Ct>0&&zt!==void 0),Ge=this.matchIndexes[ot];return me.splice(0,ot),Object.assign(me,Ge)}}class oe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(te){if(this.multiRegexes[te])return this.multiRegexes[te];const me=new Q;return this.rules.slice(te).forEach(([ot,Ge])=>me.addRule(ot,Ge)),me.compile(),this.multiRegexes[te]=me,me}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(te,me){this.rules.push([te,me]),me.type==="begin"&&this.count++}exec(te){const me=this.getMatcher(this.regexIndex);me.lastIndex=this.lastIndex;let ot=me.exec(te);if(this.resumingScanAtSamePosition()&&!(ot&&ot.index===this.lastIndex)){const Ge=this.getMatcher(0);Ge.lastIndex=this.lastIndex+1,ot=Ge.exec(te)}return ot&&(this.regexIndex+=ot.position+1,this.regexIndex===this.count&&this.considerAll()),ot}}function Ue(le){const te=new oe;return le.contains.forEach(me=>te.addRule(me.begin,{rule:me,type:"begin"})),le.terminatorEnd&&te.addRule(le.terminatorEnd,{type:"end"}),le.illegal&&te.addRule(le.illegal,{type:"illegal"}),te}function be(le,te){const me=le;if(le.isCompiled)return me;[Gn,ta,Re,Je].forEach(Ge=>Ge(le,te)),v.compilerExtensions.forEach(Ge=>Ge(le,te)),le.__beforeBegin=null,[ca,xt,Cn].forEach(Ge=>Ge(le,te)),le.isCompiled=!0;let ot=null;return typeof le.keywords=="object"&&le.keywords.$pattern&&(le.keywords=Object.assign({},le.keywords),ot=le.keywords.$pattern,delete le.keywords.$pattern),ot=ot||/\w+/,le.keywords&&(le.keywords=tt(le.keywords,v.case_insensitive)),me.keywordPatternRe=$(ot,!0),te&&(le.begin||(le.begin=/\B|\b/),me.beginRe=$(me.begin),!le.end&&!le.endsWithParent&&(le.end=/\B|\b/),le.end&&(me.endRe=$(me.end)),me.terminatorEnd=S(me.end)||"",le.endsWithParent&&te.terminatorEnd&&(me.terminatorEnd+=(le.end?"|":"")+te.terminatorEnd)),le.illegal&&(me.illegalRe=$(le.illegal)),le.contains||(le.contains=[]),le.contains=[].concat(...le.contains.map(function(Ge){return tn(Ge==="self"?le:Ge)})),le.contains.forEach(function(Ge){be(Ge,me)}),le.starts&&be(le.starts,te),me.matcher=Ue(me),me}if(v.compilerExtensions||(v.compilerExtensions=[]),v.contains&&v.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return v.classNameAliases=o(v.classNameAliases||{}),be(v)}function Mt(v){return v?v.endsWithParent||Mt(v.starts):!1}function tn(v){return v.variants&&!v.cachedVariants&&(v.cachedVariants=v.variants.map(function($){return o(v,{variants:null},$)})),v.cachedVariants?v.cachedVariants:Mt(v)?o(v,{starts:v.starts?o(v.starts):null}):Object.isFrozen(v)?o(v):v}var qt="11.11.1";class wn extends Error{constructor($,Q){super($),this.name="HTMLInjectionError",this.html=Q}}const qn=r,$a=o,gt=Symbol("nomatch"),Dt=7,Wt=function(v){const $=Object.create(null),Q=Object.create(null),oe=[];let Ue=!0;const be="Could not find the language '{}', did you forget to load/include a language module?",le={disableAutodetect:!0,name:"Plain text",contains:[]};let te={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:y};function me(F){return te.noHighlightRe.test(F)}function ot(F){let pe=F.className+" ";pe+=F.parentNode?F.parentNode.className:"";const He=te.languageDetectRe.exec(pe);if(He){const ye=an(He[1]);return ye||(it(be.replace("{}",He[1])),it("Falling back to no-highlight mode for this block.",F)),ye?He[1]:"no-highlight"}return pe.split(/\s+/).find(ye=>me(ye)||an(ye))}function Ge(F,pe,He){let ye="",Tt="";typeof pe=="object"?(ye=F,He=pe.ignoreIllegals,Tt=pe.language):(Ft("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ft("10.7.0",`Please use highlight(code, options) instead.
|
|
77
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),Tt=F,ye=pe),He===void 0&&(He=!0);const It={code:ye,language:Tt};Sa("before:highlight",It);const dn=It.result?It.result:zt(It.language,It.code,He);return dn.code=It.code,Sa("after:highlight",dn),dn}function zt(F,pe,He,ye){const Tt=Object.create(null);function It(ne,he){return ne.keywords[he]}function dn(){if(!Ne.keywords){Vt.addText(ut);return}let ne=0;Ne.keywordPatternRe.lastIndex=0;let he=Ne.keywordPatternRe.exec(ut),Le="";for(;he;){Le+=ut.substring(ne,he.index);const Ze=Yt.case_insensitive?he[0].toLowerCase():he[0],wt=It(Ne,Ze);if(wt){const[Yn,Hi]=wt;if(Vt.addText(Le),Le="",Tt[Ze]=(Tt[Ze]||0)+1,Tt[Ze]<=Dt&&(Ga+=Hi),Yn.startsWith("_"))Le+=he[0];else{const Vs=Yt.classNameAliases[Yn]||Yn;mn(he[0],Vs)}}else Le+=he[0];ne=Ne.keywordPatternRe.lastIndex,he=Ne.keywordPatternRe.exec(ut)}Le+=ut.substring(ne),Vt.addText(Le)}function sn(){if(ut==="")return;let ne=null;if(typeof Ne.subLanguage=="string"){if(!$[Ne.subLanguage]){Vt.addText(ut);return}ne=zt(Ne.subLanguage,ut,!0,Ys[Ne.subLanguage]),Ys[Ne.subLanguage]=ne._top}else ne=nn(ut,Ne.subLanguage.length?Ne.subLanguage:null);Ne.relevance>0&&(Ga+=ne.relevance),Vt.__addSublanguage(ne._emitter,ne.language)}function ct(){Ne.subLanguage!=null?sn():dn(),ut=""}function mn(ne,he){ne!==""&&(Vt.startScope(he),Vt.addText(ne),Vt.endScope())}function Tl(ne,he){let Le=1;const Ze=he.length-1;for(;Le<=Ze;){if(!ne._emit[Le]){Le++;continue}const wt=Yt.classNameAliases[ne[Le]]||ne[Le],Yn=he[Le];wt?mn(Yn,wt):(ut=Yn,dn(),ut=""),Le++}}function ce(ne,he){return ne.scope&&typeof ne.scope=="string"&&Vt.openNode(Yt.classNameAliases[ne.scope]||ne.scope),ne.beginScope&&(ne.beginScope._wrap?(mn(ut,Yt.classNameAliases[ne.beginScope._wrap]||ne.beginScope._wrap),ut=""):ne.beginScope._multi&&(Tl(ne.beginScope,he),ut="")),Ne=Object.create(ne,{parent:{value:Ne}}),Ne}function ze(ne,he,Le){let Ze=w(ne.endRe,Le);if(Ze){if(ne["on:end"]){const wt=new i(ne);ne["on:end"](he,wt),wt.isMatchIgnored&&(Ze=!1)}if(Ze){for(;ne.endsParent&&ne.parent;)ne=ne.parent;return ne}}if(ne.endsWithParent)return ze(ne.parent,he,Le)}function Ke(ne){return Ne.matcher.regexIndex===0?(ut+=ne[0],1):(qa=!0,0)}function Pe(ne){const he=ne[0],Le=ne.rule,Ze=new i(Le),wt=[Le.__beforeBegin,Le["on:begin"]];for(const Yn of wt)if(Yn&&(Yn(ne,Ze),Ze.isMatchIgnored))return Ke(he);return Le.skip?ut+=he:(Le.excludeBegin&&(ut+=he),ct(),!Le.returnBegin&&!Le.excludeBegin&&(ut=he)),ce(Le,ne),Le.returnBegin?0:he.length}function Xe(ne){const he=ne[0],Le=pe.substring(ne.index),Ze=ze(Ne,ne,Le);if(!Ze)return gt;const wt=Ne;Ne.endScope&&Ne.endScope._wrap?(ct(),mn(he,Ne.endScope._wrap)):Ne.endScope&&Ne.endScope._multi?(ct(),Tl(Ne.endScope,ne)):wt.skip?ut+=he:(wt.returnEnd||wt.excludeEnd||(ut+=he),ct(),wt.excludeEnd&&(ut=he));do Ne.scope&&Vt.closeNode(),!Ne.skip&&!Ne.subLanguage&&(Ga+=Ne.relevance),Ne=Ne.parent;while(Ne!==Ze.parent);return Ze.starts&&ce(Ze.starts,ne),wt.returnEnd?0:he.length}function $t(){const ne=[];for(let he=Ne;he!==Yt;he=he.parent)he.scope&&ne.unshift(he.scope);ne.forEach(he=>Vt.openNode(he))}let In={};function vn(ne,he){const Le=he&&he[0];if(ut+=ne,Le==null)return ct(),0;if(In.type==="begin"&&he.type==="end"&&In.index===he.index&&Le===""){if(ut+=pe.slice(he.index,he.index+1),!Ue){const Ze=new Error(`0 width match regex (${F})`);throw Ze.languageName=F,Ze.badRule=In.rule,Ze}return 1}if(In=he,he.type==="begin")return Pe(he);if(he.type==="illegal"&&!He){const Ze=new Error('Illegal lexeme "'+Le+'" for mode "'+(Ne.scope||"<unnamed>")+'"');throw Ze.mode=Ne,Ze}else if(he.type==="end"){const Ze=Xe(he);if(Ze!==gt)return Ze}if(he.type==="illegal"&&Le==="")return ut+=`
|
|
78
|
+
`,1;if(ki>1e5&&ki>he.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ut+=Le,Le.length}const Yt=an(F);if(!Yt)throw Ce(be.replace("{}",F)),new Error('Unknown language: "'+F+'"');const Xl=Et(Yt);let Zl="",Ne=ye||Xl;const Ys={},Vt=new te.__emitter(te);$t();let ut="",Ga=0,va=0,ki=0,qa=!1;try{if(Yt.__emitTokens)Yt.__emitTokens(pe,Vt);else{for(Ne.matcher.considerAll();;){ki++,qa?qa=!1:Ne.matcher.considerAll(),Ne.matcher.lastIndex=va;const ne=Ne.matcher.exec(pe);if(!ne)break;const he=pe.substring(va,ne.index),Le=vn(he,ne);va=ne.index+Le}vn(pe.substring(va))}return Vt.finalize(),Zl=Vt.toHTML(),{language:F,value:Zl,relevance:Ga,illegal:!1,_emitter:Vt,_top:Ne}}catch(ne){if(ne.message&&ne.message.includes("Illegal"))return{language:F,value:qn(pe),illegal:!0,relevance:0,_illegalBy:{message:ne.message,index:va,context:pe.slice(va-100,va+100),mode:ne.mode,resultSoFar:Zl},_emitter:Vt};if(Ue)return{language:F,value:qn(pe),illegal:!1,relevance:0,errorRaised:ne,_emitter:Vt,_top:Ne};throw ne}}function Ct(F){const pe={value:qn(F),illegal:!1,relevance:0,_top:le,_emitter:new te.__emitter(te)};return pe._emitter.addText(F),pe}function nn(F,pe){pe=pe||te.languages||Object.keys($);const He=Ct(F),ye=pe.filter(an).filter(Sn).map(ct=>zt(ct,F,!1));ye.unshift(He);const Tt=ye.sort((ct,mn)=>{if(ct.relevance!==mn.relevance)return mn.relevance-ct.relevance;if(ct.language&&mn.language){if(an(ct.language).supersetOf===mn.language)return 1;if(an(mn.language).supersetOf===ct.language)return-1}return 0}),[It,dn]=Tt,sn=It;return sn.secondBest=dn,sn}function Ht(F,pe,He){const ye=pe&&Q[pe]||He;F.classList.add("hljs"),F.classList.add(`language-${ye}`)}function qe(F){let pe=null;const He=ot(F);if(me(He))return;if(Sa("before:highlightElement",{el:F,language:He}),F.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",F);return}if(F.children.length>0&&(te.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(F)),te.throwUnescapedHTML))throw new wn("One of your code blocks includes unescaped HTML.",F.innerHTML);pe=F;const ye=pe.textContent,Tt=He?Ge(ye,{language:He,ignoreIllegals:!0}):nn(ye);F.innerHTML=Tt.value,F.dataset.highlighted="yes",Ht(F,He,Tt.language),F.result={language:Tt.language,re:Tt.relevance,relevance:Tt.relevance},Tt.secondBest&&(F.secondBest={language:Tt.secondBest.language,relevance:Tt.secondBest.relevance}),Sa("after:highlightElement",{el:F,result:Tt,text:ye})}function Jt(F){te=$a(te,F)}const ua=()=>{fa(),Ft("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function ja(){fa(),Ft("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let vl=!1;function fa(){function F(){fa()}if(document.readyState==="loading"){vl||window.addEventListener("DOMContentLoaded",F,!1),vl=!0;return}document.querySelectorAll(te.cssSelector).forEach(qe)}function ya(F,pe){let He=null;try{He=pe(v)}catch(ye){if(Ce("Language definition for '{}' could not be registered.".replace("{}",F)),Ue)Ce(ye);else throw ye;He=le}He.name||(He.name=F),$[F]=He,He.rawDefinition=pe.bind(null,v),He.aliases&&yn(He.aliases,{languageName:F})}function da(F){delete $[F];for(const pe of Object.keys(Q))Q[pe]===F&&delete Q[pe]}function _l(){return Object.keys($)}function an(F){return F=(F||"").toLowerCase(),$[F]||$[Q[F]]}function yn(F,{languageName:pe}){typeof F=="string"&&(F=[F]),F.forEach(He=>{Q[He.toLowerCase()]=pe})}function Sn(F){const pe=an(F);return pe&&!pe.disableAutodetect}function aa(F){F["before:highlightBlock"]&&!F["before:highlightElement"]&&(F["before:highlightElement"]=pe=>{F["before:highlightBlock"](Object.assign({block:pe.el},pe))}),F["after:highlightBlock"]&&!F["after:highlightElement"]&&(F["after:highlightElement"]=pe=>{F["after:highlightBlock"](Object.assign({block:pe.el},pe))})}function Rt(F){aa(F),oe.push(F)}function El(F){const pe=oe.indexOf(F);pe!==-1&&oe.splice(pe,1)}function Sa(F,pe){const He=F;oe.forEach(function(ye){ye[He]&&ye[He](pe)})}function Dn(F){return Ft("10.7.0","highlightBlock will be removed entirely in v12.0"),Ft("10.7.0","Please use highlightElement now."),qe(F)}Object.assign(v,{highlight:Ge,highlightAuto:nn,highlightAll:fa,highlightElement:qe,highlightBlock:Dn,configure:Jt,initHighlighting:ua,initHighlightingOnLoad:ja,registerLanguage:ya,unregisterLanguage:da,listLanguages:_l,getLanguage:an,registerAliases:yn,autoDetection:Sn,inherit:$a,addPlugin:Rt,removePlugin:El}),v.debugMode=function(){Ue=!1},v.safeMode=function(){Ue=!0},v.versionString=qt,v.regex={concat:M,lookahead:_,either:N,optional:O,anyNumberOfTimes:E};for(const F in ht)typeof ht[F]=="object"&&a(ht[F]);return Object.assign(v,ht),v},et=Wt({});return et.newInstance=()=>Wt({}),Gu=et,et.HighlightJS=et,et.default=et,Gu}var $0=H0();const Yf=Pp($0);function j0(a){const i=a.regex,r={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:i.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const u={className:"subst",begin:/\$\(/,end:/\)/,contains:[a.BACKSLASH_ESCAPE]},f=a.inherit(a.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),m={begin:/<<-?\s*(?=\w+)/,starts:{contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},p={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,r,u]};u.contains.push(p);const h={match:/\\"/},g={className:"string",begin:/'/,end:/'/},y={match:/\\'/},S={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},a.NUMBER_MODE,r]},_=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],E=a.SHEBANG({binary:`(${_.join("|")})`,relevance:10}),O={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[a.inherit(a.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},M=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],x=["true","false"],N={match:/(\/[a-z._-]+)+/},D=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],w=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],X=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],J=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:M,literal:x,built_in:[...D,...w,"set","shopt",...X,...J]},contains:[E,a.SHEBANG(),O,S,f,m,N,p,h,g,y,r]}}function G0(a){const i=a.regex,r=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",u="[a-zA-Z_]\\w*::",m="("+o+"|"+i.optional(u)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",p={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},g={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},y={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},S={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(g,{className:"string"}),{className:"string",begin:/<.*?>/},r,a.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:i.optional(u)+a.IDENT_RE,relevance:0},E=i.optional(u)+a.IDENT_RE+"\\s*\\(",x={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},N=[S,p,r,a.C_BLOCK_COMMENT_MODE,y,g],D={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:x,contains:N.concat([{begin:/\(/,end:/\)/,keywords:x,contains:N.concat(["self"]),relevance:0}]),relevance:0},w={begin:"("+m+"[\\*&\\s]+)+"+E,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:x,relevance:0},{begin:E,returnBegin:!0,contains:[a.inherit(_,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[r,a.C_BLOCK_COMMENT_MODE,g,y,p,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",r,a.C_BLOCK_COMMENT_MODE,g,y,p]}]},p,r,a.C_BLOCK_COMMENT_MODE,S]};return{name:"C",aliases:["h"],keywords:x,disableAutodetect:!0,illegal:"</",contains:[].concat(D,w,N,[S,{begin:a.IDENT_RE+"::",keywords:x},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:S,strings:g,keywords:x}}}function q0(a){const i=a.regex,r=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",u="[a-zA-Z_]\\w*::",m="(?!struct)("+o+"|"+i.optional(u)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",p={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},g={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},y={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},S={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(g,{className:"string"}),{className:"string",begin:/<.*?>/},r,a.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:i.optional(u)+a.IDENT_RE,relevance:0},E=i.optional(u)+a.IDENT_RE+"\\s*\\(",O=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],M=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],x=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],N=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],X={type:M,keyword:O,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:x},J={className:"function.dispatch",relevance:0,keywords:{_hint:N},begin:i.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,a.IDENT_RE,i.lookahead(/(<[^<>]+>|)\s*\(/))},K=[J,S,p,r,a.C_BLOCK_COMMENT_MODE,y,g],ae={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:X,contains:K.concat([{begin:/\(/,end:/\)/,keywords:X,contains:K.concat(["self"]),relevance:0}]),relevance:0},I={className:"function",begin:"("+m+"[\\*&\\s]+)+"+E,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:X,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:X,relevance:0},{begin:E,returnBegin:!0,contains:[_],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[g,y]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:X,relevance:0,contains:[r,a.C_BLOCK_COMMENT_MODE,g,y,p,{begin:/\(/,end:/\)/,keywords:X,relevance:0,contains:["self",r,a.C_BLOCK_COMMENT_MODE,g,y,p]}]},p,r,a.C_BLOCK_COMMENT_MODE,S]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:X,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ae,I,J,K,[S,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:X,contains:["self",p]},{begin:a.IDENT_RE+"::",keywords:X},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}const I0=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Y0=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],V0=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],K0=[...Y0,...V0],X0=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Z0=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Q0=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),F0=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function W0(a){const i=a.regex,r=I0(a),o={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},u="and or not only",f=/@-?\w[\w]*(-\w+)*/,m="[a-zA-Z-][a-zA-Z0-9_-]*",p=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,o,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+m,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Z0.join("|")+")"},{begin:":(:)?("+Q0.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+F0.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:i.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:f},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:u,attribute:X0.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+K0.join("|")+")\\b"}]}}function J0(a){const i=a.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:i.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:i.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function P0(a){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[a.HASH_COMMENT_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,a.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}function e_(a){const f={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:f,illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"string",variants:[a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[a.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:f,illegal:/["']/}]}]}}var xi="[0-9](_*[0-9])*",eo=`\\.(${xi})`,to="[0-9a-fA-F](_*[0-9a-fA-F])*",ap={className:"number",variants:[{begin:`(\\b(${xi})((${eo})|\\.)?|(${eo}))[eE][+-]?(${xi})[fFdD]?\\b`},{begin:`\\b(${xi})((${eo})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${eo})[fFdD]?\\b`},{begin:`\\b(${xi})[fFdD]\\b`},{begin:`\\b0[xX]((${to})\\.?|(${to})?\\.(${to}))[pP][+-]?(${xi})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${to})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function ub(a,i,r){return r===-1?"":a.replace(i,o=>ub(a,i,r-1))}function t_(a){const i=a.regex,r="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",o=r+ub("(?:<"+r+"~~~(?:\\s*,\\s*"+r+"~~~)*>)?",/~~~/g,2),h={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},g={className:"meta",begin:"@"+r,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},y={className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[a.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:h,illegal:/<\/|#/,contains:[a.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[a.BACKSLASH_ESCAPE]},a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[i.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[y,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+o+"\\s+)",a.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:h,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[g,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,ap,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},ap,g]}}const lp="[A-Za-z$_][0-9A-Za-z$_]*",n_=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],a_=["true","false","null","undefined","NaN","Infinity"],fb=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],db=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],mb=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],l_=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],i_=[].concat(mb,fb,db);function s_(a){const i=a.regex,r=(P,{after:ve})=>{const Y="</"+P[0].slice(1);return P.input.indexOf(Y,ve)!==-1},o=lp,u={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(P,ve)=>{const Y=P[0].length+P.index,A=P.input[Y];if(A==="<"||A===","){ve.ignoreMatch();return}A===">"&&(r(P,{after:Y})||ve.ignoreMatch());let k;const j=P.input.substring(Y);if(k=j.match(/^\s*=/)){ve.ignoreMatch();return}if((k=j.match(/^\s+extends\s+/))&&k.index===0){ve.ignoreMatch();return}}},p={$pattern:lp,keyword:n_,literal:a_,built_in:i_,"variable.language":l_},h="[0-9](_?[0-9])*",g=`\\.(${h})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",S={className:"number",variants:[{begin:`(\\b(${y})((${g})|\\.)?|(${g}))[eE][+-]?(${h})\\b`},{begin:`\\b(${y})\\b((${g})\\b|\\.)?|(${g})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},E={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},O={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,_],subLanguage:"css"}},M={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,_],subLanguage:"graphql"}},x={className:"string",begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE,_]},D={className:"comment",variants:[a.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE]},w=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,E,O,M,x,{match:/\$\d+/},S];_.contains=w.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(w)});const X=[].concat(D,_.contains),J=X.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(X)}]),K={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:J},ae={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,i.concat(o,"(",i.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},I={relevance:0,match:i.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...fb,...db]}},de={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},we={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[K],illegal:/%/},ie={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function se(P){return i.concat("(?!",P.join("|"),")")}const _e={match:i.concat(/\b/,se([...mb,"super","import"].map(P=>`${P}\\s*\\(`)),o,i.lookahead(/\s*\(/)),className:"title.function",relevance:0},Ee={begin:i.concat(/\./,i.lookahead(i.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},De={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},K]},L="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+a.UNDERSCORE_IDENT_RE+")\\s*=>",W={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,i.lookahead(L)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[K]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:J,CLASS_REFERENCE:I},illegal:/#(?![$_A-z])/,contains:[a.SHEBANG({label:"shebang",binary:"node",relevance:5}),de,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,E,O,M,x,D,{match:/\$\d+/},S,I,{scope:"attr",match:o+i.lookahead(":"),relevance:0},W,{begin:"("+a.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,a.REGEXP_MODE,{className:"function",begin:L,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:a.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:J}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:u.begin,end:u.end},{match:f},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:"xml",contains:[{begin:m.begin,end:m.end,skip:!0,contains:["self"]}]}]},we,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+a.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[K,a.inherit(a.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ee,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[K]},_e,ie,ae,De,{match:/\$[(.]/}]}}function r_(a){const i={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},o=["true","false","null"],u={scope:"literal",beginKeywords:o.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:o},contains:[i,r,a.QUOTE_STRING_MODE,u,a.C_NUMBER_MODE,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function o_(a){const i=a.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},u={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},f={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},m={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},p=/[A-Za-z][A-Za-z0-9+.-]*/,h={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:i.concat(/\[.+?\]\(/,p,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},g={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},y={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},S=a.inherit(g,{contains:[]}),_=a.inherit(y,{contains:[]});g.contains.push(_),y.contains.push(S);let E=[r,h];return[g,y,S,_].forEach(N=>{N.contains=N.contains.concat(E)}),E=E.concat(g,y),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:E},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:E}]}]},r,f,g,y,{className:"quote",begin:"^>\\s+",contains:E,end:"$"},u,o,h,m,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function c_(a){const i=a.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),o=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],p={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:o,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},h={className:"meta",begin:/^(>>>|\.\.\.) /},g={className:"subst",begin:/\{/,end:/\}/,keywords:p,illegal:/#/},y={begin:/\{\{/,relevance:0},S={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE,h,y,g]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,h,y,g]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[a.BACKSLASH_ESCAPE,y,g]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,y,g]},a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},_="[0-9](_?[0-9])*",E=`(\\b(${_}))?\\.(${_})|\\b(${_})\\.`,O=`\\b|${o.join("|")}`,M={className:"number",relevance:0,variants:[{begin:`(\\b(${_})|(${E}))[eE][+-]?(${_})[jJ]?(?=${O})`},{begin:`(${E})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${O})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${O})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${O})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${O})`},{begin:`\\b(${_})[jJ](?=${O})`}]},x={className:"comment",begin:i.lookahead(/# type:/),end:/$/,keywords:p,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},N={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:["self",h,M,S,a.HASH_COMMENT_MODE]}]};return g.contains=[S,M,h],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:p,illegal:/(<\/|\?)|=>/,contains:[h,M,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},S,x,a.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[N]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[M,N,S]}]}}function u_(a){const i=a.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",o=i.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),u=i.concat(o,/(::\w+)*/),m={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},p={className:"doctag",begin:"@[A-Za-z]+"},h={begin:"#<",end:">"},g=[a.COMMENT("#","$",{contains:[p]}),a.COMMENT("^=begin","^=end",{contains:[p],relevance:10}),a.COMMENT("^__END__",a.MATCH_NOTHING_RE)],y={className:"subst",begin:/#\{/,end:/\}/,keywords:m},S={className:"string",contains:[a.BACKSLASH_ESCAPE,y],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:i.concat(/<<[-~]?'?/,i.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[a.BACKSLASH_ESCAPE,y]})]}]},_="[1-9](_?[0-9])*|0",E="[0-9](_?[0-9])*",O={className:"number",relevance:0,variants:[{begin:`\\b(${_})(\\.(${E}))?([eE][+-]?(${E})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},M={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:m}]},K=[S,{variants:[{match:[/class\s+/,u,/\s+<\s+/,u]},{match:[/\b(class|module)\s+/,u]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:m},{match:[/(include|extend)\s+/,u],scope:{2:"title.class"},keywords:m},{relevance:0,match:[u,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:o,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[M]},{begin:a.IDENT_RE+"::"},{className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[S,{begin:r}],relevance:0},O,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:m},{begin:"("+a.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[a.BACKSLASH_ESCAPE,y],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(h,g),relevance:0}].concat(h,g);y.contains=K,M.contains=K;const we=[{begin:/^\s*=>/,starts:{end:"$",contains:K}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:m,contains:K}}];return g.unshift(h),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:m,illegal:/\/\*/,contains:[a.SHEBANG({binary:"ruby"})].concat(we).concat(g).concat(K)}}function f_(a){const i=a.regex,r=/(r#)?/,o=i.concat(r,a.UNDERSCORE_IDENT_RE),u=i.concat(r,a.IDENT_RE),f={className:"title.function.invoke",relevance:0,begin:i.concat(/\b/,/(?!let|for|while|if|else|match\b)/,u,i.lookahead(/\s*\(/))},m="([ui](8|16|32|64|128|size)|f(32|64))?",p=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],h=["true","false","Some","None","Ok","Err"],g=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],y=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:a.IDENT_RE+"!?",type:y,keyword:p,literal:h,built_in:g},illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.COMMENT("/\\*","\\*/",{contains:["self"]}),a.inherit(a.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+m},{begin:"\\b0o([0-7_]+)"+m},{begin:"\\b0x([A-Fa-f0-9_]+)"+m},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+m}],relevance:0},{begin:[/fn/,/\s+/,o],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,o],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,o,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:a.IDENT_RE+"::",keywords:{keyword:"Self",built_in:g,type:y}},{className:"punctuation",begin:"->"},f]}}function d_(a){const i=a.regex,r=a.COMMENT("--","$"),o={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},u={begin:/"/,end:/"/,contains:[{match:/""/}]},f=["true","false","unknown"],m=["double precision","large object","with timezone","without timezone"],p=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],h=["add","asc","collation","desc","final","first","last","view"],g=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],y=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],S=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],_=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],E=y,O=[...g,...h].filter(J=>!y.includes(J)),M={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},x={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},N={match:i.concat(/\b/,i.either(...E),/\s*\(/),relevance:0,keywords:{built_in:E}};function D(J){return i.concat(/\b/,i.either(...J.map(K=>K.replace(/\s+/,"\\s+"))),/\b/)}const w={scope:"keyword",match:D(_),relevance:0};function X(J,{exceptions:K,when:ae}={}){const I=ae;return K=K||[],J.map(de=>de.match(/\|\d+$/)||K.includes(de)?de:I(de)?`${de}|0`:de)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:X(O,{when:J=>J.length<3}),literal:f,type:p,built_in:S},contains:[{scope:"type",match:D(m)},w,N,M,o,u,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,r,x]}}function m_(a){const i=a.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},o=a.COMMENT();o.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const u={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},f={className:"literal",begin:/\bon|off|true|false|yes|no\b/},m={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},p={begin:/\[/,end:/\]/,contains:[o,f,u,m,r,"self"],relevance:0},h=/[A-Za-z0-9_-]+/,g=/"(\\"|[^"])*"/,y=/'[^']*'/,S=i.either(h,g,y),_=i.concat(S,"(\\s*\\.\\s*",S,")*",i.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[o,{className:"section",begin:/\[+/,end:/\]+/},{begin:_,className:"attr",starts:{end:/$/,contains:[o,p,f,u,m,r]}}]}}const bo="[A-Za-z$_][0-9A-Za-z$_]*",hb=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],gb=["true","false","null","undefined","NaN","Infinity"],pb=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],bb=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],yb=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Sb=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],vb=[].concat(yb,pb,bb);function h_(a){const i=a.regex,r=(P,{after:ve})=>{const Y="</"+P[0].slice(1);return P.input.indexOf(Y,ve)!==-1},o=bo,u={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(P,ve)=>{const Y=P[0].length+P.index,A=P.input[Y];if(A==="<"||A===","){ve.ignoreMatch();return}A===">"&&(r(P,{after:Y})||ve.ignoreMatch());let k;const j=P.input.substring(Y);if(k=j.match(/^\s*=/)){ve.ignoreMatch();return}if((k=j.match(/^\s+extends\s+/))&&k.index===0){ve.ignoreMatch();return}}},p={$pattern:bo,keyword:hb,literal:gb,built_in:vb,"variable.language":Sb},h="[0-9](_?[0-9])*",g=`\\.(${h})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",S={className:"number",variants:[{begin:`(\\b(${y})((${g})|\\.)?|(${g}))[eE][+-]?(${h})\\b`},{begin:`\\b(${y})\\b((${g})\\b|\\.)?|(${g})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},E={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},O={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,_],subLanguage:"css"}},M={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,_],subLanguage:"graphql"}},x={className:"string",begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE,_]},D={className:"comment",variants:[a.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE]},w=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,E,O,M,x,{match:/\$\d+/},S];_.contains=w.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(w)});const X=[].concat(D,_.contains),J=X.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(X)}]),K={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:J},ae={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,i.concat(o,"(",i.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},I={relevance:0,match:i.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...pb,...bb]}},de={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},we={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[K],illegal:/%/},ie={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function se(P){return i.concat("(?!",P.join("|"),")")}const _e={match:i.concat(/\b/,se([...yb,"super","import"].map(P=>`${P}\\s*\\(`)),o,i.lookahead(/\s*\(/)),className:"title.function",relevance:0},Ee={begin:i.concat(/\./,i.lookahead(i.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},De={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},K]},L="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+a.UNDERSCORE_IDENT_RE+")\\s*=>",W={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,i.lookahead(L)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[K]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:J,CLASS_REFERENCE:I},illegal:/#(?![$_A-z])/,contains:[a.SHEBANG({label:"shebang",binary:"node",relevance:5}),de,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,E,O,M,x,D,{match:/\$\d+/},S,I,{scope:"attr",match:o+i.lookahead(":"),relevance:0},W,{begin:"("+a.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,a.REGEXP_MODE,{className:"function",begin:L,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:a.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:J}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:u.begin,end:u.end},{match:f},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:"xml",contains:[{begin:m.begin,end:m.end,skip:!0,contains:["self"]}]}]},we,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+a.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[K,a.inherit(a.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ee,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[K]},_e,ie,ae,De,{match:/\$[(.]/}]}}function g_(a){const i=a.regex,r=h_(a),o=bo,u=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],f={begin:[/namespace/,/\s+/,a.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},m={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:u},contains:[r.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},h=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],g={$pattern:bo,keyword:hb.concat(h),literal:gb,built_in:vb.concat(u),"variable.language":Sb},y={className:"meta",begin:"@"+o},S=(M,x,N)=>{const D=M.contains.findIndex(w=>w.label===x);if(D===-1)throw new Error("can not find mode to replace");M.contains.splice(D,1,N)};Object.assign(r.keywords,g),r.exports.PARAMS_CONTAINS.push(y);const _=r.contains.find(M=>M.scope==="attr"),E=Object.assign({},_,{match:i.concat(o,i.lookahead(/\s*\?:/))});r.exports.PARAMS_CONTAINS.push([r.exports.CLASS_REFERENCE,_,E]),r.contains=r.contains.concat([y,f,m,E]),S(r,"shebang",a.SHEBANG()),S(r,"use_strict",p);const O=r.contains.find(M=>M.label==="func.def");return O.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),r}function p_(a){const i=a.regex,r=i.concat(/[\p{L}_]/u,i.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o=/[\p{L}0-9._:-]+/u,u={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},f={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},m=a.inherit(f,{begin:/\(/,end:/\)/}),p=a.inherit(a.APOS_STRING_MODE,{className:"string"}),h=a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),g={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:o,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[u]},{begin:/'/,end:/'/,contains:[u]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[f,h,p,m,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[f,m,h,p]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},u,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[h]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[g],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[g],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:i.concat(/</,i.lookahead(i.concat(r,i.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:g}]},{className:"tag",begin:i.concat(/<\//,i.lookahead(i.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function b_(a){const i="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},u={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},f={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},m={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[a.BACKSLASH_ESCAPE,u]},p=a.inherit(m,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),_={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},E={end:",",endsWithParent:!0,excludeEnd:!0,keywords:i,relevance:0},O={begin:/\{/,end:/\}/,contains:[E],illegal:"\\n",relevance:0},M={begin:"\\[",end:"\\]",contains:[E],illegal:"\\n",relevance:0},x=[o,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+a.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+a.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},a.HASH_COMMENT_MODE,{beginKeywords:i,keywords:{literal:i}},_,{className:"number",begin:a.C_NUMBER_RE+"\\b",relevance:0},O,M,f,m],N=[...x];return N.pop(),N.push(p),E.contains=N,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:x}}let ip=!1;function y_(){if(ip)return;ip=!0;const a={bash:j0,c:G0,cpp:q0,css:W0,diff:J0,dockerfile:P0,go:e_,java:t_,javascript:s_,json:r_,markdown:o_,python:c_,ruby:u_,rust:f_,sql:d_,toml:m_,typescript:g_,xml:p_,yaml:b_};for(const[i,r]of Object.entries(a))Yf.registerLanguage(i,r)}const S_={ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",py:"python",rb:"ruby",rs:"rust",sh:"bash",shell:"bash",zsh:"bash",yml:"yaml",html:"xml",htm:"xml",svg:"xml",golang:"go","c++":"cpp",ini:"toml",dockerfile:"dockerfile",md:"markdown"};function v_(a){const i=a.split(/\s+/);for(const r of i)switch(r.replace(/^hljs-/,"")){case"keyword":return"keyword";case"string":case"regexp":case"char":case"char.escape":case"subst":return"string";case"comment":case"quote":return"comment";case"number":return"number";case"title":case"built_in":return"function";case"type":case"class":case"title.class":return"type";case"literal":return"literal";case"attr":case"attribute":case"property":case"selector-tag":case"selector-class":case"name":return"attr";default:continue}return"plain"}const __={plain:void 0,keyword:"synKeyword",string:"synString",comment:"synComment",number:"synNumber",function:"synFunction",type:"synType",literal:"synLiteral",attr:"synAttr"},E_={"&":"&","<":"<",">":">",""":'"',"'":"'","'":"'","'":"'"};function T_(a){return a.replace(/&(?:amp|lt|gt|quot|apos|#x27|#39);/g,i=>E_[i]??i)}function A_(a){if(!a)return null;y_();const i=a.trim().toLowerCase(),r=S_[i]??i;return Yf.getLanguage(r)?r:null}function N_(a,i){const r=A_(i);if(!r)return[{text:a,scope:"plain"}];let o;try{o=Yf.highlight(a,{language:r,ignoreIllegals:!0}).value}catch{return[{text:a,scope:"plain"}]}return x_(o)}function x_(a){const i=[],r=[],o=/<span class="([^"]*)">|<\/span>|([^<]+)|(<)/g,u=m=>{const p=T_(m);p.length>0&&i.push({text:p,scope:r[r.length-1]??"plain"})};let f=o.exec(a);for(;f!==null;)f[1]!==void 0?r.push(v_(f[1])):f[2]!==void 0?u(f[2]):f[3]!==void 0?u(f[3]):r.pop(),f=o.exec(a);return R_(i)}function R_(a){const i=[];for(const r of a){const o=i[i.length-1];o&&o.scope===r.scope?o.text+=r.text:i.push({...r})}return i}class O_{diff(i,r,o={}){let u;typeof o=="function"?(u=o,o={}):"callback"in o&&(u=o.callback);const f=this.castInput(i,o),m=this.castInput(r,o),p=this.removeEmpty(this.tokenize(f,o)),h=this.removeEmpty(this.tokenize(m,o));return this.diffWithOptionsObj(p,h,o,u)}diffWithOptionsObj(i,r,o,u){var f;const m=D=>{if(D=this.postProcess(D,o),u){setTimeout(function(){u(D)},0);return}else return D},p=r.length,h=i.length;let g=1,y=p+h;o.maxEditLength!=null&&(y=Math.min(y,o.maxEditLength));const S=(f=o.timeout)!==null&&f!==void 0?f:1/0,_=Date.now()+S,E=[{oldPos:-1,lastComponent:void 0}];let O=this.extractCommon(E[0],r,i,0,o);if(E[0].oldPos+1>=h&&O+1>=p)return m(this.buildValues(E[0].lastComponent,r,i));let M=-1/0,x=1/0;const N=()=>{for(let D=Math.max(M,-g);D<=Math.min(x,g);D+=2){let w;const X=E[D-1],J=E[D+1];X&&(E[D-1]=void 0);let K=!1;if(J){const I=J.oldPos-D;K=J&&0<=I&&I<p}const ae=X&&X.oldPos+1<h;if(!K&&!ae){E[D]=void 0;continue}if(!ae||K&&X.oldPos<J.oldPos?w=this.addToPath(J,!0,!1,0,o):w=this.addToPath(X,!1,!0,1,o),O=this.extractCommon(w,r,i,D,o),w.oldPos+1>=h&&O+1>=p)return m(this.buildValues(w.lastComponent,r,i))||!0;E[D]=w,w.oldPos+1>=h&&(x=Math.min(x,D-1)),O+1>=p&&(M=Math.max(M,D+1))}g++};if(u)(function D(){setTimeout(function(){if(g>y||Date.now()>_)return u(void 0);N()||D()},0)})();else for(;g<=y&&Date.now()<=_;){const D=N();if(D)return D}}addToPath(i,r,o,u,f){const m=i.lastComponent;return m&&!f.oneChangePerToken&&m.added===r&&m.removed===o?{oldPos:i.oldPos+u,lastComponent:{count:m.count+1,added:r,removed:o,previousComponent:m.previousComponent}}:{oldPos:i.oldPos+u,lastComponent:{count:1,added:r,removed:o,previousComponent:m}}}extractCommon(i,r,o,u,f){const m=r.length,p=o.length;let h=i.oldPos,g=h-u,y=0;for(;g+1<m&&h+1<p&&this.equals(o[h+1],r[g+1],f);)g++,h++,y++,f.oneChangePerToken&&(i.lastComponent={count:1,previousComponent:i.lastComponent,added:!1,removed:!1});return y&&!f.oneChangePerToken&&(i.lastComponent={count:y,previousComponent:i.lastComponent,added:!1,removed:!1}),i.oldPos=h,g}equals(i,r,o){return o.comparator?o.comparator(i,r):i===r||!!o.ignoreCase&&i.toLowerCase()===r.toLowerCase()}removeEmpty(i){const r=[];for(let o=0;o<i.length;o++)i[o]&&r.push(i[o]);return r}castInput(i,r){return i}tokenize(i,r){return Array.from(i)}join(i){return i.join("")}postProcess(i,r){return i}get useLongestToken(){return!1}buildValues(i,r,o){const u=[];let f;for(;i;)u.push(i),f=i.previousComponent,delete i.previousComponent,i=f;u.reverse();const m=u.length;let p=0,h=0,g=0;for(;p<m;p++){const y=u[p];if(y.removed)y.value=this.join(o.slice(g,g+y.count)),g+=y.count;else{if(!y.added&&this.useLongestToken){let S=r.slice(h,h+y.count);S=S.map(function(_,E){const O=o[g+E];return O.length>_.length?O:_}),y.value=this.join(S)}else y.value=this.join(r.slice(h,h+y.count));h+=y.count,y.added||(g+=y.count)}}return u}}const sp="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class M_ extends O_{tokenize(i){const r=new RegExp(`(\\r?\\n)|[${sp}]+|[^\\S\\n\\r]+|[^${sp}]`,"ug");return i.match(r)||[]}}const C_=new M_;function w_(a,i,r){return C_.diff(a,i,r)}const D_=.4,z_=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/,B_=/^… \(\d+ lines elided\)$/;function L_(a,i){const r=a.split(`
|
|
79
|
+
`);let o=null;const u=[];for(const m of r){const p=z_.exec(m);if(p){o===null&&(o=Number(p[1]));continue}if(B_.test(m)){u.push({kind:"elision",text:m});continue}m.startsWith("- ")?u.push({kind:"remove",text:m.slice(2)}):m.startsWith("+ ")?u.push({kind:"add",text:m.slice(2)}):(m==="-"||m==="+")&&u.push({kind:m==="+"?"add":"remove",text:""})}return{rows:U_(u,o??1,i.anchored),startLine:o}}function U_(a,i,r){const o=[];let u=0,f=i;for(;u<a.length;){const m=a[u];if(m.kind==="elision"){o.push({kind:"elision",text:m.text,lineNo:null,words:null}),u++;continue}if(m.kind==="remove"){const p=[];for(;u<a.length&&a[u].kind==="remove";)p.push(a[u++]);const h=[];for(;u<a.length&&a[u].kind==="add";)h.push(a[u++]);const g=f;p.forEach((y,S)=>{const _=h[S];o.push({kind:"remove",text:y.text,lineNo:r?g+S:null,words:_?rp(y.text,_.text,"remove"):null})}),h.forEach((y,S)=>{const _=p[S];o.push({kind:"add",text:y.text,lineNo:r?g+S:null,words:_?rp(_.text,y.text,"add"):null})}),f=g+Math.max(p.length,h.length);continue}if(m.kind==="add"){for(;u<a.length&&a[u].kind==="add";){const p=a[u++];o.push({kind:"add",text:p.text,lineNo:r?f++:null,words:null})}continue}u++}return o}function rp(a,i,r){const o=w_(a,i),u=a.length+i.length,f=o.reduce((p,h)=>h.added||h.removed?p+h.value.length:p,0);if(u===0||f/u>D_)return null;const m=[];for(const p of o)if(r==="remove"){if(p.added)continue;m.push({text:p.value,changed:!!p.removed})}else{if(p.removed)continue;m.push({text:p.value,changed:!!p.added})}return m}const k_=16,H_={schedule:a=>setTimeout(a,k_),cancel:a=>{a!==void 0&&clearTimeout(a)}};function fn(a,i){if(a&&typeof a=="object"&&i in a){const r=a[i];if(typeof r=="string")return r;if(typeof r=="number"||typeof r=="boolean")return String(r)}return""}function $_(a,i){return!a||!i?a:a===i?"~":a.startsWith(`${i}/`)||a.startsWith(`${i}\\`)?`~${a.slice(i.length)}`:a}function ra(a,i=60){const r=a.replace(/\s+/g," ").trim();return r.length<=i?r:`${r.slice(0,i-1)}…`}function _b(a){const i=Eb(a);if(i)return i.server;switch(a){case"edit":return"Edit";case"write":return"Write";case"read":return"Read";case"bash":return"Bash";case"grep":return"Grep";case"glob":return"Glob";case"diff":return"Diff";case"web_fetch":return"Fetch";case"task":return"Task";case"lsp":return"Lsp";case"pty":return"Pty";case"memory_save":return"Memory";case"memory_delete":return"Memory";case"memory_list":return"Memory";default:return a}}function Eb(a){if(!a.startsWith("mcp__"))return null;const i=a.slice(5),r=i.indexOf("__"),o=r<0?i:i.slice(0,r);return o.length===0?null:{server:o,tool:r<0?"":i.slice(r+2)}}function j_(a,i,r){const o=r==null?void 0:r.home,u=m=>$_(m,o),f=Eb(a);if(f)return f.tool;switch(a){case"read":case"edit":case"write":case"diff":return ra(u(fn(i,"path")));case"bash":{const m=fn(i,"description");return ra(m||fn(i,"command"))}case"grep":{const m=fn(i,"pattern"),p=fn(i,"path");return ra(p?`${m} in ${u(p)}`:m)}case"glob":{const m=fn(i,"pattern"),p=fn(i,"path");return ra(p?`${m} in ${u(p)}`:m)}case"web_fetch":return ra(fn(i,"url"));case"task":{const m=fn(i,"subagent_type"),p=fn(i,"description");return ra([m,p].filter(Boolean).join(": ")||p||m)}case"lsp":{const m=fn(i,"op"),p=fn(i,"path"),h=fn(i,"query"),g=p?u(p):h;return ra([m,g].filter(Boolean).join(" "))}case"pty":{const m=fn(i,"op"),p=fn(i,"command");return ra([m,p].filter(Boolean).join(" "))}case"memory_save":case"memory_delete":return ra(fn(i,"name"));case"memory_list":return ra(fn(i,"scope"));default:return G_(i)}}function G_(a){if(!a||typeof a!="object")return"";const i=[];for(const[r,o]of Object.entries(a))if(o!=null&&typeof o!="object"&&(i.push(`${r}=${String(o)}`),i.length>=3))break;return ra(i.join(" "))}function Tb(a){const i=a.split(`
|
|
80
|
+
`),r=i.findIndex(o=>/^@@ -\d/.test(o));return r<0?null:i.slice(r).join(`
|
|
81
|
+
`)}const q_=12;class I_{constructor(i,r){mt(this,"approval");mt(this,"lines",[]);mt(this,"busy",!1);mt(this,"pending",null);mt(this,"yoloConfirmPending",!1);mt(this,"committedCount",0);mt(this,"clearGeneration",0);mt(this,"version",0);mt(this,"listeners",new Set);mt(this,"assistantOpen",!1);mt(this,"busUnsubscribers",[]);mt(this,"scheduler");mt(this,"toolResultPreviewLines");mt(this,"home");mt(this,"pendingFrame",null);mt(this,"diffStash",new Map);mt(this,"subscribe",i=>(this.listeners.add(i),()=>this.listeners.delete(i)));mt(this,"getSnapshot",()=>this.version);mt(this,"detached",!1);mt(this,"requestPermission",i=>this.detached?Promise.resolve(i.kind==="question"?{kind:"question",answers:{},declined:!0}:{allow:!1}):new Promise(r=>{this.pending={req:i,resolve:r},this.forceFlush()}));this.approval=i,this.scheduler=(r==null?void 0:r.scheduler)??H_,this.toolResultPreviewLines=(r==null?void 0:r.toolResultPreviewLines)??q_,this.home=r==null?void 0:r.home}committedLines(){return this.lines.slice(0,this.committedCount)}liveLines(){return this.lines.slice(this.committedCount)}findLiveTool(i){for(let r=this.lines.length-1;r>=this.committedCount;r--){const o=this.lines[r];if(o&&o.kind==="tool"&&o.callId===i)return o}}commitThrough(i){let r=i;for(let o=this.committedCount;o<i;o++){const u=this.lines[o];if(u&&u.kind==="tool"&&u.ok===void 0){r=o;break}}r>this.committedCount&&(this.committedCount=r)}bump(){this.version++;for(const i of this.listeners)i()}scheduleBump(){this.pendingFrame===null&&(this.pendingFrame=this.scheduler.schedule(()=>{this.pendingFrame=null,this.bump()}))}cancelPendingBump(){this.pendingFrame!==null&&(this.scheduler.cancel(this.pendingFrame),this.pendingFrame=null)}forceFlush(){this.cancelPendingBump(),this.bump()}pushCommitted(i){this.assistantOpen=!1,this.lines.push(i),this.committedCount=this.lines.length}pushUser(i){this.pushCommitted({kind:"user",text:i}),this.forceFlush()}pushInfo(i){this.pushCommitted({kind:"info",text:i}),this.forceFlush()}pushError(i){this.pushCommitted({kind:"error",text:i}),this.forceFlush()}clearLines(){this.cancelPendingBump(),this.lines=[],this.committedCount=0,this.clearGeneration++,this.assistantOpen=!1,this.diffStash.clear(),this.bump()}attach(i){for(const r of this.busUnsubscribers.splice(0))r();this.detached=!1,this.busUnsubscribers=[i.on("turn:start",()=>{this.busy=!0,this.forceFlush()}),i.on("turn:end",()=>{this.busy=!1,this.committedCount=this.lines.length,this.forceFlush()}),i.on("assistant:delta",r=>{this.assistantOpen||(this.commitThrough(this.lines.length),this.lines.push({kind:"assistant",text:""}),this.assistantOpen=!0),this.lines[this.lines.length-1].text+=r.text,this.scheduleBump()}),i.on("assistant:message",()=>{this.assistantOpen=!1,this.commitThrough(this.lines.length),this.forceFlush()}),i.on("tool:call",r=>{this.assistantOpen=!1,this.lines.push({kind:"tool",toolName:r.name,text:j_(r.name,r.args,{home:this.home}),callId:r.callId}),this.commitThrough(this.lines.length-1),this.forceFlush()}),i.on("tool:permission",r=>{const o=Tb(r.summary);o!==null&&this.diffStash.set(r.callId,{diff:o,anchored:r.name==="write"})}),i.on("tool:result",r=>{const o=this.diffStash.get(r.callId);this.diffStash.delete(r.callId);const u=this.findLiveTool(r.callId),f=Y_(r.output,this.toolResultPreviewLines);u?(u.ok=r.ok,u.result=f,o&&(u.diff=o.diff,u.anchored=o.anchored)):this.lines.push({kind:"tool",toolName:r.name,text:"",ok:r.ok,result:f,...o?{diff:o.diff,anchored:o.anchored}:{}}),this.commitThrough(this.lines.length),this.forceFlush()}),i.on("error",r=>{this.pushCommitted({kind:"error",text:`${r.code}: ${r.message}`}),this.forceFlush()})]}detach(){for(const i of this.busUnsubscribers.splice(0))i();if(this.detached=!0,this.cancelPendingBump(),this.diffStash.clear(),this.pending){const i=this.pending;this.pending=null,i.resolve(i.req.kind==="question"?{kind:"question",answers:{},declined:!0}:{allow:!1})}}resolvePermission(i){const r=this.pending;if(!r||r.req.kind==="question"){this.forceFlush();return}this.pending=null;const o=i.allow?i.remember?"approved (won't ask again)":"approved":i.feedback?"denied with feedback":"denied";this.pushCommitted({kind:"info",text:`${o}: ${r.req.summary}`}),r.resolve(i),this.forceFlush()}resolveQuestion(i){var u;const r=this.pending;if(!r||r.req.kind!=="question"){this.forceFlush();return}this.pending=null;const o=((u=r.req.questions[0])==null?void 0:u.header)??"question";this.pushCommitted({kind:"info",text:`${i.declined?"declined":"answered"}: ${o}`}),r.resolve(i),this.forceFlush()}get approvalMode(){var i;return((i=this.approval)==null?void 0:i.get())??"default"}cycleApprovalMode(){if(!this.approval)return;const i=this.approval.next();if(i==="yolo"&&!this.approval.isYoloConfirmed()){this.yoloConfirmPending=!0,this.forceFlush();return}this.approval.set(i),this.pushCommitted({kind:"info",text:`approval mode → ${i}`}),this.forceFlush()}resolveYoloConfirm(i){this.yoloConfirmPending=!1,i&&this.approval&&(this.approval.confirmYolo(),this.approval.set("yolo"),this.pushCommitted({kind:"info",text:"approval mode → yolo (all tool calls auto-approved)"})),this.forceFlush()}}const qu=8e3;function Y_(a,i){const r=a.split(`
|
|
82
|
+
`),o=r.length>0&&r[r.length-1]===""?r.length-1:r.length;let u;if(o<=i)u=a;else{const f=o-i;u=`${r.slice(0,i).join(`
|
|
83
|
+
`)}
|
|
84
|
+
… +${f} more line${f===1?"":"s"}`}if(u.length>qu){const f=u.length-qu;u=`${u.slice(0,qu)}… +${f} more characters`}return u}class V_{constructor(){mt(this,"handlers",new Map);mt(this,"anyHandlers",new Set)}on(i,r){let o=this.handlers.get(i);o||(o=new Set,this.handlers.set(i,o));const u=r;return o.add(u),()=>o.delete(u)}onAny(i){return this.anyHandlers.add(i),()=>this.anyHandlers.delete(i)}emit(i){for(const r of this.handlers.get(i.type)??[])r(i);for(const r of this.anyHandlers)r(i)}}function K_(a){switch(a.type){case"turn_start":return{type:"turn:start",turnId:a.turnId,prompt:a.prompt,...a.sessionId!==void 0?{sessionId:a.sessionId}:{}};case"assistant_delta":return{type:"assistant:delta",turnId:a.turnId,text:a.text,...a.agentId!==void 0?{agentId:a.agentId}:{}};case"tool_call":return{type:"tool:call",callId:a.callId,name:a.name,args:a.args,...a.agentId!==void 0?{agentId:a.agentId}:{}};case"tool_result":return{type:"tool:result",callId:a.callId,name:a.name,ok:a.ok,output:a.output,...a.agentId!==void 0?{agentId:a.agentId}:{}};case"error":return{type:"error",code:a.code,message:a.message};case"result":return{type:"turn:end",turnId:a.turnId??""};case"tool_chunk":case"usage":case"compaction_start":case"compaction_end":case"subagent_done":return null}}function X_(a){return{type:"tool:permission",callId:a.callId??"",name:a.tool,summary:a.summary}}const op=a=>{let i;const r=new Set,o=(g,y)=>{const S=typeof g=="function"?g(i):g;if(!Object.is(S,i)){const _=i;i=y??(typeof S!="object"||S===null)?S:Object.assign({},i,S),r.forEach(E=>E(i,_))}},u=()=>i,p={setState:o,getState:u,getInitialState:()=>h,subscribe:g=>(r.add(g),()=>r.delete(g))},h=i=a(o,u,p);return p},Z_=(a=>a?op(a):op);function Q_(){return{status:"connecting",sessionId:null,models:[],selected:null,busy:!1,pendingPermission:null,lastError:null,lastStopReason:null,lastUsage:null}}function F_(){return Z_(()=>Q_())}class W_{constructor(i,r={}){mt(this,"view");mt(this,"store",F_());mt(this,"bus",new V_);mt(this,"transport");mt(this,"seq",0);mt(this,"waiters",new Map);this.view=new I_(void 0,{...r.scheduler?{scheduler:r.scheduler}:{},...r.home!==void 0?{home:r.home}:{}}),this.view.attach(this.bus),this.transport=i({onOpen:()=>{},onMessage:o=>this.handleMessage(o),onClose:()=>this.onTerminal("closed"),onError:()=>this.onTerminal("error","connection error")})}prompt(i){const r=this.nextId();this.view.pushUser(i),this.store.setState({busy:!0,lastError:null}),this.send({type:"prompt",id:r,text:i})}abort(){this.send({type:"abort",id:this.nextId()})}setModel(i){const r=this.nextId(),o=this.expectResponse(r);return this.send({type:"set_model",id:r,...i}),o}answerPermission(i,r){const o=this.store.getState().pendingPermission;o&&(this.send({type:"permission_response",id:o.id,allow:i,...r!==void 0?{remember:r}:{}}),this.store.setState({pendingPermission:null}))}ping(){const i=this.nextId(),r=this.expectResponse(i);return this.send({type:"ping",id:i}),r}close(){this.transport.close()}handleMessage(i){let r;try{r=JSON.parse(i)}catch{return}this.dispatch(r)}dispatch(i){switch(i.type){case"ready":this.store.setState({status:"ready",sessionId:i.sessionId,models:i.models,selected:i.models[0]??null});return;case"response":this.onResponse(i);return;case"request_permission":this.store.setState({pendingPermission:{id:i.id,...i.callId!==void 0?{callId:i.callId}:{},tool:i.tool,category:i.category,summary:i.summary,args:i.args}}),this.bus.emit(X_(i));return;case"turn_start":this.store.setState({busy:!0,lastError:null}),this.emitToView(i);return;case"usage":this.store.setState({lastUsage:{inputTokens:i.inputTokens,outputTokens:i.outputTokens,costUsd:i.costUsd}});return;case"result":this.store.setState({busy:!1,pendingPermission:null,lastStopReason:i.stopReason,lastUsage:i.usage}),this.emitToView(i);return;case"error":this.store.setState({lastError:i.message,pendingPermission:null}),this.emitToView(i);return;default:this.emitToView(i);return}}onResponse(i){var r;if(i.id){const o=this.waiters.get(i.id);o&&(this.waiters.delete(i.id),o.resolve(i))}if(i.command==="prompt"&&!i.ok&&this.store.setState({busy:!1,lastError:((r=i.error)==null?void 0:r.message)??"prompt rejected"}),i.command==="set_model"&&i.ok&&i.data){const o=i.data;o.provider&&o.model&&this.store.setState({selected:{provider:o.provider,model:o.model}})}}emitToView(i){const r=K_(i);r&&this.bus.emit(r)}onTerminal(i,r){const o=new Error(r??`connection ${i}`);for(const u of this.waiters.values())u.reject(o);this.waiters.clear(),this.store.setState({status:i,busy:!1,pendingPermission:null,sessionId:null,models:[],selected:null,...r!==void 0?{lastError:r}:{}})}nextId(){return`c${++this.seq}`}send(i){this.transport.send(JSON.stringify(i))}expectResponse(i){return new Promise((r,o)=>this.waiters.set(i,{resolve:r,reject:o}))}}function J_(a,i=r=>new WebSocket(r)){return r=>{const o=i(a),u=[];let f=!1,m=!1;const p=()=>{f=!1,m=!0,u.length=0};return o.addEventListener("open",()=>{f=!0;for(const h of u.splice(0))o.send(h);r.onOpen()}),o.addEventListener("message",h=>{r.onMessage(typeof h.data=="string"?h.data:String(h.data))}),o.addEventListener("close",()=>{p(),r.onClose()}),o.addEventListener("error",h=>{p(),r.onError(h)}),{send(h){m||(f?o.send(h):u.push(h))},close(){m||(p(),o.close())}}}}const ql={hoverStyle:{name:"hover",priority:2},pressStyle:{name:"active",stateKey:"press",priority:3},focusVisibleStyle:{name:"focus-visible",priority:4,stateKey:"focusVisible"},focusStyle:{name:"focus",priority:4},focusWithinStyle:{name:"focus-within",priority:4,stateKey:"focusWithin"},disabledStyle:{name:"disabled",priority:5,stateKey:"disabled"}},Vf={hover:ql.hoverStyle.priority,press:ql.pressStyle.priority,focus:ql.focusStyle.priority,focusVisible:ql.focusVisibleStyle.priority,focusWithin:ql.focusWithinStyle.priority,disabled:ql.disabledStyle.priority},ea={...ql,enterStyle:{name:"enter",selector:".t_unmounted",priority:4},exitStyle:{name:"exit",priority:5}},ks=Object.keys(ea).length,Kf=(a,i)=>{const r={};for(const o in a)o in i||(r[o]=a[o]);for(const o in i)Ab(r,a,i,o);return r},P_=(a,i,r)=>{let o=null;if(!a&&!i)return[r,o];if(a&&!i)return[Kf(a,r),o];const u={};for(const f in a)f in r||(u[f]=a[f]);for(const f in i){if(f in r)continue;const m=i[f];m!==void 0&&(u[f]=m)}for(const f in r)Ab(u,a,r,f),i&&f in i&&(o||(o={}),o[f]=r[f]);return[u,o]};function Ab(a,i,r,o){let u=r[o];if(i&&o in i&&(o in ea||o[0]==="$")&&u&&typeof u=="object"){const f=i[o];f&&typeof f=="object"&&(u=Kf(f,u))}a[o]=u}function df(a){let i="";for(const r in a){i+=r;const o=a[r];let u=typeof o;if(!o||u!=="object"&&u!=="function")i+=u+o;else if(Iu.has(o))i+=Iu.get(o);else{let f=Math.random();Iu.set(o,f),i+=f}}return i}const Iu=new WeakMap,eE=(a,i="")=>{"use no memo";const r=Ut[Math.random(),"createContext"],o=Ut[Math.random(),"useMemo"],u=Ut[Math.random(),"useContext"],f=r(a),m=f.Provider,p=f,h=new Map,g=r(i);function y(O){let M=h.get(O);return M||(M=r(a),h.set(O,M)),M}const S=O=>i?`${i}--${O}`:O,_=({children:O,scope:M,__disableMergeDefaultValues:x,...N})=>{const D=S(M),w=o(()=>x?N:Kf(a,N),[df(N)]);let X=m;return D&&(X=y(D).Provider),Z.jsx(g.Provider,{value:D,children:Z.jsx(X,{value:w,children:O})})},E=(O="")=>{const M=u(g),x=i?O?S(O):M:O,N=x?y(x):f;return u(N)};return p.Provider=_,p.props=a,p.context=f,p.useStyledContext=E,p},oo=eE({disableSSR:void 0,inText:!1,language:null,animationDriver:null,setParentFocusState:null,insets:null}),cp=ee.createContext(null);function tE(a,i){return ee.useCallback(r=>{a(o=>{const u=typeof r=="function"?r(o):r;return mf(o,u)})},[a,i])}function mf(a,i){return!a||!i||hf(a,i)?a||i:{...a,...i}}function hf(a,i){for(const r in i)if(a[r]!==i[r])return!1;return!0}var Bi={};const Nb=!0,xb=typeof navigator<"u"&&typeof location<"u",Xf=!xb,nE=xb,oa=Xf?ee.useEffect:ee.useLayoutEffect,Rb=Bi.TEST_NATIVE_PLATFORM==="android"||Bi.TEST_NATIVE_PLATFORM==="androidtv",aE=Bi.TEST_NATIVE_PLATFORM==="ios"||Bi.TEST_NATIVE_PLATFORM==="tvos",Yu=Bi.TEST_NATIVE_PLATFORM==="androidtv"||Bi.TEST_NATIVE_PLATFORM==="tvos",up="web",Ob="t_",Mb="Missing theme.";let gf;const wo=()=>gf||(globalThis.__tamaguiConfig?globalThis.__tamaguiConfig:null),Pn=a=>{const i=wo();return i.settings[a]??i[a]};function lE(){const a=wo();return((a==null?void 0:a.settings.styleCompat)??(a==null?void 0:a.styleCompat))||"web"}const iE=a=>{gf=a,globalThis.__tamaguiConfig=a},ba=()=>{const a=wo();if(!a)throw new Error("Err0");return a},Cb=()=>wo();function sE(a){return a.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`).toLowerCase()}const Vu=new WeakMap;function wb(a){if(typeof a=="string")return a;if(Vu.has(a))return Vu.get(a);const i=Object.entries(a).map(([r,o])=>(r=sE(r),typeof o=="string"?`(${r}: ${o})`:(typeof o=="number"&&/[height|width]$/.test(r)&&(o=`${o}px`),`(${r}: ${o})`))).join(" and ");return Vu.set(a,i),i}let Zf={};const rE=a=>{Zf=a},$s={},pl=()=>Zf,Qf=new Set;function oE(a){return a.replace(/-([a-z])/g,(i,r)=>r.toUpperCase())}function cE(a){return a?oE(a)in Vf:!1}function Db(a){const i=pl(),[r,o,u,f,m]=a.split("-"),p=u&&f?`${u}-${f}`:"",h=p&&p in i&&p||u&&u in i&&u||void 0;let g=h?h===p?m:f?`${f}${m?`-${m}`:""}`:void 0:u?`${u}${f?`-${f}`:""}${m?`-${m}`:""}`:void 0;return g&&!cE(g)&&(g=void 0),{name:o,pseudo:g,media:h}}const fp="_";let pf=null,co=null;function uE(){pf=null,co=null}const fE={press:"active",focusVisible:"focus-visible",focusWithin:"focus-within"},dp=new Array(12).fill(0).map((a,i)=>new Array(i).fill(":root").join(""));function dE(a,i,r,o,u=!1,f=""){const m=i.lastIndexOf(":root")+5,p=i.lastIndexOf("{"),h=i.slice(m,p),g=Pn("addThemeClassName")!==!1&&u?"":" ",y=o.pseudo?fE[o.pseudo]||o.pseudo:void 0,S=y?`:${y}`:"",_=`:root${f}${g}`,E=`.t_${r?"group_":""}${a}${S}`;return[h,`${_}${E} ${h.replaceAll(":root","")}`]}const mE=(a,i,r,o,u,f)=>{const[m,,p,h,g]=a,y=o==="theme",S=o==="platform",_=o==="group",E=y||S||_,O="",M=p.slice(0,p.indexOf("-")+1),x=`${M}${fp}${i.replace("-","")}${O}${fp}`;let N="",D="",w,X,J=p.replace(M,x),K=g.map(I=>I.replaceAll(p,J)).join(";"),ae=!1;if(E){let I=(f||0)+(_||S?1:0);if(y||_){const de=Db(y?"theme-"+i:i),{name:we,media:ie,pseudo:se}=de;w=ie,_&&(X=we),(se==="press"||h==="active")&&(I+=2),se==="hover"&&(ae=!0);const[_e,Ee]=dE(we,K,_,de,y,dp[I]);N=K.replace(_e,Ee)}else{const de=dp[I];N=de&&K[0]==="@"?K.replace("{",`{${de}`):`${de}${K}`}}if(!E||w){if(!co){const Ee=Object.keys(r);co=Object.fromEntries(Ee.map(De=>[De,wb(r[De])])),pf=Object.fromEntries(Ee.map((De,L)=>[De,new Array(L+1).fill(":root").join("")]))}const I=w||i,ie=`${co[I]}`,se=w?D:pf[I],_e=w?`@container ${X}`:"@media";w&&(K=N),K.includes(_e)?N=K.replace("{",` and ${ie} {`).replace("and screen and","and"):N=`${_e} ${ie}{${se}${K}}`,w&&(N=`@supports (contain: ${Pn("webContainerType")||"inline-size"}) {${N}}`)}return ae&&(N=`@media (hover:hover){${N}}`),[m,void 0,J,void 0,[N]]},hE=typeof window<"u"&&window.matchMedia||gE;function gE(a){return{match:(i,r)=>!1,addListener(){},removeListener(){},matches:!1}}var pE={};const zb=/\$(platform|theme|group)-/,bE=a=>a[0]!=="$"?!1:!!(Qf.has(a)||zb.test(a)),Ku=a=>{if(a[0]!=="$")return!1;if(Qf.has(a))return!0;const i=a.match(zb);return i?i[1]:!1};let Bb,Lb;const bf=a=>Lb.indexOf(a)+100,yf=new Set;let Sf=0;const yE=a=>{const{media:i}=a,r=Pn("mediaQueryDefaultActive");if(i){Sf++,uE();for(const o in i)pl()[o]=(r==null?void 0:r[o])||!1,Qf.add(`$${o}`);Object.assign($s,i),Bb={...pl()},Lb=Object.keys(i),vE()}};function SE(){yf.forEach(a=>a()),yf.clear()}let mp=-1;function vE(){if(!Xf&&!pE.IS_STATIC&&mp!==Sf){mp=Sf,SE();for(const a in $s){let i=function(){const f=!!o().matches;f!==pl()[a]&&(rE({...pl(),[a]:f}),Ub())};const r=wb($s[a]),o=()=>hE(r),u=o();if(!u)throw new Error("⚠️ No match");u.addListener(i),yf.add(()=>{u.removeListener(i)}),i()}}}const vf=new Set;function Ub(){vf.forEach(a=>a(pl()))}const _f=new WeakMap;function _E(a,i,r){const o=_f.get(a);(!o||o.enabled!==i||r)&&_f.set(a,{...o,enabled:i,keys:r})}function EE(a){return vf.add(a),()=>{vf.delete(a)}}function TE(a,i){"use no memo";const r=a?_f.get(a):null,o=ee.useRef(null);o.current||(o.current={keys:new Set,lastState:pl()}),o.current.pendingState&&(o.current.lastState=o.current.pendingState,o.current.pendingState=void 0);const{keys:u}=o.current;u.size&&u.clear();const f=ee.useSyncExternalStore(EE,()=>{const m=(r==null?void 0:r.keys)||u,{lastState:p,pendingState:h}=o.current;if(!m.size)return p;const g=pl();for(const y of m)if(g[y]!==(h||p)[y])return a!=null&&a.mediaEmit?(a.mediaEmit(g),o.current.pendingState=g,p):(o.current.lastState=g,g);return p},AE);return new Proxy(f,{get(m,p){return!Ef&&typeof p=="string"&&u.add(p),Reflect.get(f,p)}})}const AE=()=>Bb;let Ef=!1;function NE(a,i){Ef=!0;let r;try{r=Object.fromEntries([...a].map(o=>[o,kb(o,i)]))}finally{Ef=!1}return r}const xE=(a,i,r,o)=>{const u=o?bf(a):ks,f=r.usedKeys;return!f[i]||u>f[i]?u:null};function kb(a,i){const r=$s[a];return Object.keys(r).every(u=>{const f=+r[u],m=u.startsWith("max"),p=u.endsWith("Width"),h=i[p?"width":"height"];return m?h<f:h>f})}const no=new Map;let Xu=0;const qs=(a,i=10)=>{if(no.has(a))return no.get(a);let r=a;r[0]==="v"&&r.startsWith("var(")&&(r=r.slice(6,r.length-1));let o=0,u="",f=0;const m=r.length;for(let h=0;h<m;h++){if(i!=="strict"&&f<=i){const g=r.charCodeAt(h);if(g===46){u+="--";continue}if(OE(g)){f++,u+=r[h];continue}}o=RE(o,r[h])}const p=u+(o?Math.abs(o):"");return Xu>1e4&&(no.clear(),Xu=0),no.set(a,p),Xu++,p},RE=(a,i)=>Math.imul(31,a)+i.charCodeAt(0)|0;function OE(a){return a>=65&&a<=90||a>=97&&a<=122||a===95||a===45||a>=48&&a<=57}function Hb(a,i,{checkDefaultPrevented:r=!0}={}){return!a||!i?i||a||void 0:o=>{if(a==null||a(o),!o||!(r&&typeof o=="object"&&"defaultPrevented"in o)||"defaultPrevented"in o&&!o.defaultPrevented)return i==null?void 0:i(o)}}const ao=0,Ci=2,ME=3,Ff=4,$b={backgroundAttachment:!0,backgroundBlendMode:!0,backgroundClip:!0,backgroundOrigin:!0,backgroundRepeat:!0,borderBottomStyle:!0,borderLeftStyle:!0,borderRightStyle:!0,borderTopStyle:!0,contain:!0,containerType:!0,content:!0,float:!0,maskBorderMode:!0,maskBorderRepeat:!0,maskClip:!0,maskComposite:!0,maskMode:!0,maskOrigin:!0,maskRepeat:!0,maskType:!0,objectFit:!0,overflowBlock:!0,overflowInline:!0,overflowX:!0,overflowY:!0,pointerEvents:!0,scrollbarWidth:!0,textWrap:!0,touchAction:!0,transformStyle:!0,willChange:!0},jb={whiteSpace:!0,wordWrap:!0,textOverflow:!0,WebkitBoxOrient:!0},CE={...$b,transition:!0,backdropFilter:!0,WebkitBackdropFilter:!0,background:!0,borderTop:!0,borderRight:!0,borderBottom:!0,borderLeft:!0,backgroundPosition:!0,backgroundSize:!0,borderImage:!0,caretColor:!0,clipPath:!0,mask:!0,maskBorder:!0,maskBorderOutset:!0,maskBorderSlice:!0,maskBorderSource:!0,maskBorderWidth:!0,maskImage:!0,maskPosition:!0,maskSize:!0,objectPosition:!0,textEmphasis:!0,userSelect:!0},wE={...jb,textDecorationDistance:!0,WebkitLineClamp:!0},DE={borderWidth:!0,borderStyle:!0,borderColor:!0,borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0,borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0,borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0,borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0,outlineWidth:!0,outlineStyle:!0,outlineColor:!0,outlineOffset:!0},Gb={color:!0,textDecorationColor:!0,textShadowColor:!0},Vl={radius:{borderRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderStartStartRadius:!0,borderStartEndRadius:!0,borderEndStartRadius:!0,borderEndEndRadius:!0},size:{width:!0,height:!0,minWidth:!0,minHeight:!0,maxWidth:!0,maxHeight:!0,blockSize:!0,minBlockSize:!0,maxBlockSize:!0,inlineSize:!0,minInlineSize:!0,maxInlineSize:!0},zIndex:{zIndex:!0},color:{backgroundColor:!0,borderColor:!0,borderBlockStartColor:!0,borderBlockEndColor:!0,borderBlockColor:!0,borderBottomColor:!0,borderInlineColor:!0,borderInlineStartColor:!0,borderInlineEndColor:!0,borderTopColor:!0,borderLeftColor:!0,borderRightColor:!0,borderEndColor:!0,borderStartColor:!0,shadowColor:!0,...Gb,outlineColor:!0,caretColor:!0}},qb={alignContent:!0,alignItems:!0,alignSelf:!0,backfaceVisibility:!0,borderCurve:!0,borderStyle:!0,borderBlockStyle:!0,borderBlockEndStyle:!0,borderBlockStartStyle:!0,borderInlineStyle:!0,borderInlineEndStyle:!0,borderInlineStartStyle:!0,boxSizing:!0,cursor:!0,direction:!0,display:!0,flexDirection:!0,flexWrap:!0,isolation:!0,justifyContent:!0,mixBlendMode:!0,outlineStyle:!0,overflow:!0,position:!0},Ib={fontFamily:!0,fontStyle:!0,fontVariant:!0,textTransform:!0},Yb={textAlign:!0,textDecorationLine:!0,textDecorationStyle:!0,userSelect:!0},Vb={WebkitLineClamp:!0,lineClamp:!0,gridTemplateColumns:!0,gridTemplateAreas:!0},zE={...qb,...Ib,...Yb,...Vb,...$b,...jb},Kb={...Vb,animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},Do={x:!0,y:!0,scale:!0,perspective:!0,scaleX:!0,scaleY:!0,skewX:!0,skewY:!0,matrix:!0,rotate:!0,rotateY:!0,rotateX:!0,rotateZ:!0},Xb={...qb,borderBottomEndRadius:!0,borderBottomStartRadius:!0,borderBottomWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderBlockWidth:!0,borderBlockEndWidth:!0,borderBlockStartWidth:!0,borderInlineWidth:!0,borderInlineEndWidth:!0,borderInlineStartWidth:!0,borderTopEndRadius:!0,borderTopStartRadius:!0,borderTopWidth:!0,borderWidth:!0,transform:!0,transformOrigin:!0,borderEndWidth:!0,borderStartWidth:!0,bottom:!0,end:!0,flexBasis:!0,gap:!0,columnGap:!0,rowGap:!0,left:!0,margin:!0,marginBlock:!0,marginBlockEnd:!0,marginBlockStart:!0,marginInline:!0,marginInlineStart:!0,marginInlineEnd:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,padding:!0,paddingBottom:!0,paddingInline:!0,paddingBlock:!0,paddingBlockStart:!0,paddingInlineEnd:!0,paddingInlineStart:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,right:!0,start:!0,top:!0,inset:!0,insetBlock:!0,insetBlockEnd:!0,insetBlockStart:!0,insetInline:!0,insetInlineEnd:!0,insetInlineStart:!0,shadowOffset:!0,shadowRadius:!0,...Vl.color,...Vl.radius,...Vl.size,...Do,...Kb,...Rb?{elevationAndroid:!0}:{},boxShadow:!0,border:!0,filter:!0,backgroundImage:!0,experimental_backgroundImage:!0,outline:!0,outlineColor:!0,outlineOffset:!0,outlineWidth:!0,...CE},Zb={...Ib,fontSize:!0,fontWeight:!0,letterSpacing:!0,lineHeight:!0,...Yb,...Gb,textShadow:!0,textShadowOffset:!0,textShadowRadius:!0,verticalAlign:!0,...wE},Qb={...Xb,...Zb},BE=Qb,Tf={enterStyle:!0,exitStyle:!0,hoverStyle:!0,pressStyle:!0,focusStyle:!0,disabledStyle:!0,focusWithinStyle:!0,focusVisibleStyle:!0},Wf=Xb;var LE={};function Fb(a){return`var(--${LE.TAMAGUI_CSS_VARIABLE_PREFIX||""}${a})`}const js=(a,i=!1)=>{if(!i&&On(a))return a;const{key:r,name:o,val:u}=a;return{isVar:!0,key:r,name:i?o:qs(o,40),val:u,variable:i?Fb(o):Jb(o)}};function wi(a,i=!1){return On(a)?!i&&Nb&&a.variable?a.variable:`${a.val}`:`${a||""}`}function On(a){return a&&typeof a=="object"&&"isVar"in a}function UE(a,i="size"){var o;if(a!=null&&a.dynamic)return a;if(Jf(!0),On(a))return wi(a);const r=ba().tokensParsed;return wi(((o=r[i])==null?void 0:o[a])??a)}let Wb=!1;const Jf=a=>Wb=a,kE=()=>Wb;function yo(a,i){return On(a)?(Jf(!0),a.val):a}function HE(a){return On(a)?a.variable:a}const Jb=(a,i=!0)=>{const r=qs(a,60);return i?Fb(r):r},Zu=new Map;let Os,Ms,Cs;const $E={};function jE(a,i,r,o){if(!(i!=null&&i.theme))return $E;if(Os=r,Ms=o,Cs=i,Zu.has(Cs.theme))return Zu.get(Cs.theme);ba();function u(m,p=!1){Os&&(Os.current||(Os.current=new Set),Os.current.add(m),p&&Ms&&(Ms.current||(Ms.current=new Set),Ms.current.add(m)))}const f=Object.fromEntries(Object.entries(i.theme).flatMap(([m,p])=>{const h={...p,get val(){return globalThis.tamaguiAvoidTracking||u(m,!1),p.val},get(g){if(!Cs)return;const y=UE(p),{name:S,scheme:_}=Cs;return y}};return[[m,h],[`$${m}`,h]]}));return Zu.set(i.theme,f),f}const Pb=ee.createContext(""),Af=new Map,Ls={},Qu=new WeakMap,Fu=new WeakMap,ws=new Map,Ri=new Map,Wu=new Map,GE=a=>Ri.get(a);let hp=0;const Ai=new Map;let gp=-1,Ju=null;const qE=(a,i=!1,r,o)=>{"use no memo";const{disable:u}=a,f=ee.useContext(Pb);if(!f&&!i)throw new Error(Mb);if(u)return Ri.get(f)||{id:"",name:"light",theme:ba().themes.light};const m=ee.useId(),p=ee.useCallback(S=>(Ls[f]=Ls[f]||new Set,Ls[f].add(m),Af.set(m,()=>{ws.set(m,!0),S()}),()=>{Af.delete(m),Ls[f].delete(m),Wu.delete(m),Ri.delete(m),ws.delete(m)}),[m,f]),h=VE(a),g=()=>{var N,D,w,X;let S=Wu.get(m);const _=Ri.get(f);if(S&&!ws.has(m)&&_&&S._parentName===_.name&&S._propsKey===h)return S;const E=((N=r==null?void 0:r.current)==null?void 0:N.size)??0;(((D=o==null?void 0:o.current)==null?void 0:D.size)??0)===E&&E>0;const O=a.passThrough?!1:i||a.name==="light"||a.name==="dark"||a.name===null?!0:Qu.get(r)?(w=r==null?void 0:r.current)!=null&&w.size?!0:(X=a.needsUpdate)==null?void 0:X.call(a):!0,[M,x]=IE(S,a,h,i,m,f,O,ws.get(m));return ws.delete(m),(!S||M)&&(S={...x},Wu.set(m,S)),x!==S&&(Object.assign(S,x),S.id=m),S._parentName=_==null?void 0:_.name,S._propsKey=h,Ri.set(m,x),S},y=ee.useSyncExternalStore(p,g,g);return oa(()=>{if(!Qu.get(r)){Qu.set(r,!0);return}if(!h){Fu.get(r)&&pp(m),Fu.set(r,!1);return}pp(m),Fu.set(r,!0)},[r,h]),y},IE=(a,i,r,o=!1,u,f,m,p)=>{const{debug:h}=i,g=Ri.get(f);if(i.passThrough)return[!1,a||g||{name:""}];Ju||(Ju=ba().themes);const y=!r&&(!a||!(a!=null&&a.isNew))?null:YE(g==null?void 0:g.name,i,p==="force"?!0:!!m),S=g&&(!y||y===g.name),_=!!(p==="force"||m&&(p||(a==null?void 0:a.name)!==(g==null?void 0:g.name)));if(S)return!_&&a&&a.name===g.name?[!1,a]:[_,{...g,isNew:!1}];if(!y){const N=a??g;if(!N)throw new Error(Mb);return _?[!0,{...g||a}]:[!1,N]}const E=Nf(y),O=g&&E!==g.scheme,M={id:u,name:y,theme:Ju[y],scheme:E,parentId:f,parentName:g==null?void 0:g.name,isInverse:O,isNew:!0};return p!=="force"&&a&&a.name===y?[!1,M]:p!=="force"&&a&&!m&&M.name===a.name?[!1,M]:[!0,M]};function pp(a){const i=[a],r=new Set;for(;i.length;){const o=Ls[i.shift()];if(o)for(const u of o)r.has(u)||(r.add(u),i.push(u))}r.forEach(o=>{var u;(u=Af.get(o))==null||u()})}const ey={light:"light",dark:"dark"};function Nf(a){return ey[a.split("_")[0]]}function YE(a="",i,r=!1){const{name:o,reset:u}=i,f=i.unstyled?void 0:i.componentName;if(o&&u)throw new Error("❌004");const m=`${a}|${o||""}|${f||""}|${u?1:0}|${r?1:0}`;if(gp!==hp)Ai.clear(),gp=hp;else{const _=Ai.get(m);if(_!==void 0)return _}const{themes:p}=ba();if(u){if(a==="light"||a==="dark"){const x=a==="light"?"dark":"light";return Ai.set(m,x),x}const _=a.lastIndexOf("_"),E=_<=0?a:a.slice(_),O=a.slice(0,_),M=p[E]?E:O;return Ai.set(m,M),M}const h=a.split("_"),g=h[h.length-1];g&&g[0].toLowerCase()!==g[0]&&h.pop();const y=[o&&f?`${o}_${f}`:void 0,o,f].filter(Boolean);let S=null;if(o){const _=Nf(o);if(_){for(const E of y)if(E in p){S=E;break}}if(!S&&!_&&Nf(a)){const E=[];for(let O=h.length;O>=1;O--)E.push(h.slice(0,O).join("_"));e:for(const O of E){const M=[f?`${O}_${o}_${f}`:void 0,`${O}_${o}`].filter(Boolean);for(const x of M)if(x in p){S=x;break e}}}}if(!S)if(!o&&f){const _=`${h.join("_")}_${f}`;_ in p&&(S=_)}else{const _=h.length;for(let E=0;E<=_;E++){const O=(E===0?h:h.slice(0,-E)).join("_");for(const M of y){const x=O?`${O}_${M}`:M;if(x in p){S=x;break}}if(S)break}}return!r&&S===a&&!ey[S]?(Ai.set(m,null),null):(Ai.set(m,S),S)}const VE=({name:a,reset:i,forceClassName:r,componentName:o})=>`${a||""}${i||""}${r||""}${o||""}`,KE=a=>"name"in a||"reset"in a||"forceClassName"in a,ty=(a,i=!1)=>{"use no memo";const r=ee.useRef(null),o=ee.useRef(null),u=qE(a,i,r,o);return[a.passThrough?{}:jE(a,u,r,o),u]};function XE(a,i){typeof a=="function"?a(i):a&&(a.current=i)}function Pf(...a){return i=>a.forEach(r=>XE(r,i))}const ed={hover:!1,press:!1,pressIn:!1,focus:!1,focusVisible:!1,focusWithin:!1,unmounted:!0,disabled:!1},xf={...ed,unmounted:!1},ZE={...ed,unmounted:"should-enter"};function Pu(a,i=!0){return{onMouseEnter:a.onMouseEnter,onMouseLeave:a.onMouseLeave,[i?"onClick":"onPress"]:a.onPress,onMouseDown:a.onPressIn,onMouseUp:a.onPressOut,onTouchStart:a.onPressIn,onTouchEnd:a.onPressOut,onFocus:a.onFocus,onBlur:a.onBlur}}const td=(a,i)=>{var m;let r=a==null?void 0:a.defaultProps;const o=ba(),u=i||(a==null?void 0:a.componentName)||(a.isText?"Text":"View"),f=(m=o==null?void 0:o.defaultProps)==null?void 0:m[u];return f&&(r=r?{...f,...r}:f),r};function So(a){var i;return a?typeof a.useAnimations=="function"?a:"default"in a&&typeof((i=a.default)==null?void 0:i.useAnimations)=="function"?a.default:null:null}const Rf={height:0,width:0};function QE({shadowColor:a,shadowOffset:i,shadowOpacity:r,shadowRadius:o}){const{height:u,width:f}=i||Rf;return{shadowOffset:{width:f||0,height:u||0},shadowRadius:o||0,shadowColor:a,shadowOpacity:r??1}}function zo(a){var i;(a.shadowRadius!=null||a.shadowColor||a.shadowOpacity!=null||a.shadowOffset)&&Object.assign(a,QE(a));for(const r in bp)r in a&&(a[i=bp[r]]||(a[i]="solid"))}const bp={borderWidth:"borderStyle",borderBottomWidth:"borderBottomStyle",borderTopWidth:"borderTopStyle",borderLeftWidth:"borderLeftStyle",borderRightWidth:"borderRightStyle"},ny=(a,i)=>{if(a)return typeof a!="string"?a:a==="transparent"?"rgba(0, 0, 0, 0)":typeof i=="number"&&i<1?`color-mix(in srgb, ${a} ${Math.round(i*100)}%, transparent)`:a},FE={...BE,translateX:!0,translateY:!0};function jn(a,i=""){if(Kb[i]||i&&!FE[i]||typeof a=="boolean")return a;if(a&&typeof a=="object")if(typeof a.__getValue=="function")a=a.__getValue();else return a;let r=a;return typeof a=="number"?r=`${a}px`:i&&(r=`${r}`),r}function nd(a){return a.map(i=>{const r=Object.keys(i)[0],o=i[r];return r==="matrix"||r==="matrix3d"?`${r}(${o.join(",")})`:`${r}(${jn(o,r)})`}).join(" ")}function ef(a){ad(a);const i=[];for(const r in a){if(r==="$$css")continue;const o=a[r];if(r in ea)o&&i.push(...ay(o,ea[r]));else if(bE(r))for(const u in o){const f=Of(o,u);f&&(f[0]=r,i.push(f))}else{const u=Of(a,r);u&&i.push(u)}}return i}const ay=(a,i)=>{ad(a);const r=[];for(const o in a){const u=Of(a,o,i);u&&r.push(u)}return r};let lo=null;const Of=(a,i,r)=>{let o=a[i];if(o==null)return;i==="transform"&&Array.isArray(a.transform)&&(o=nd(o));const u=jn(o,i),f=qs(typeof u=="string"?u:`${u}`),m=r?`0${r.name}-`:"";lo||(lo=Cb());let h=`_${(lo==null?void 0:lo.inverseShorthands[i])||i}-${m}${f}`;i==="pointerEvents"&&!r&&(u==="box-none"?h="_pe-boxnone":u==="box-only"&&(h="_pe-boxonly"));const g=eT(h,i,u,r);return[i,u,h,r==null?void 0:r.name,g]};function ad(a){const{shadowOffset:i,shadowRadius:r,shadowColor:o,shadowOpacity:u}=a;if(r!=null||o||i!=null||u!=null){const h=i||Rf,g=jn(h.width),y=jn(h.height),S=jn(r),_=ny(o,u);if(_){const E=`${g} ${y} ${S} ${_}`;a.boxShadow=a.boxShadow?`${a.boxShadow}, ${E}`:E}delete a.shadowOffset,delete a.shadowRadius,delete a.shadowColor,delete a.shadowOpacity}const{textShadowColor:f,textShadowOffset:m,textShadowRadius:p}=a;if(f||m||p){const{height:h,width:g}=m||Rf,y=p||0,S=jn(f,"textShadowColor");if(S&&(h!==0||g!==0||y!==0)){const _=jn(y),E=jn(g),O=jn(h);a.textShadow=`${E} ${O} ${_} ${S}`}delete a.textShadowColor,delete a.textShadowOffset,delete a.textShadowRadius}}function io(a,i=!1){let r="";for(const[o,u]of a)r+=`${JE(o)}:${u}${i?" !important":""};`;return`{${r}}`}const tf={},WE=a=>`-${a.toLowerCase()}`,JE=a=>{if(a in tf)return tf[a];const i=a.replace(/[A-Z]/g,WE);return tf[a]=i,i},PE=(()=>{const a={};for(const i in ea){const r=ea[i];a[r.name]=`${[...Array(r.priority)].map(()=>":root").join("")} `}return a})();function eT(a,i,r,o){const u=o?o.name==="disabled"?"[aria-disabled]":`:${o.name}`:"",f=o==null?void 0:o.selector,m=i in DE?`.${a}.${a}`:`.${a}`;let p=o?f?`${f} ${m}`:`${PE[o.name]} ${m}${u}`:`:root ${m}`;f===ea.enterStyle.selector&&(p=`${p}, .${a}${f}`);const h=!!o;let g=[];switch(i){case"placeholderTextColor":{const y=io([["color",r],["opacity",1]],h);g.push(`${p}::placeholder${y}`);break}case"backgroundClip":case"userSelect":{const S=`Webkit${`${i[0].toUpperCase()}${i.slice(1)}`}`,_=io([[i,r],[S,r]],h);g.push(`${p}${_}`);break}case"pointerEvents":{let y=r;r==="auto"||r==="box-only"?y="auto":(r==="none"||r==="box-none")&&(y="none");const S=io([["pointerEvents",y]],!0);g.push(`${p}${S}`);break}default:{const y=io([[i,r]],h);g.push(`${p}${y}`);break}}return(o==null?void 0:o.name)==="hover"&&(g=g.map(y=>`@media (hover) {${y}}`)),g}var bl={};const yp=new WeakMap,Mf=new Map,Cf={},Sp=()=>bl.TAMAGUI_DID_OUTPUT_CSS?[]:Object.keys(Cf).sort().map(a=>Cf[a]);let vp=null;function tT(a=!1,i){if(!bl.TAMAGUI_DID_OUTPUT_CSS){let r;const o=document.styleSheets||[],u=vp,f=new Set(o);for(const m of f)if(m){const p=Ep(m,!1,a,i);p&&(r=p)}if(vp=f,u)for(const m of u)m&&!f.has(m)&&Ep(m,!0);return r}}function nT(a){const i=(Mf.get(a)||0)+1;return Mf.set(a,i),i}const _p=bl.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES,aT=_p?+_p:8e3;function Ep(a,i=!1,r=!1,o){var E,O;let u;try{if(u=a.cssRules,!u)return}catch{return}const f=(E=uo(u[0],r))==null?void 0:E[0],m=(O=uo(u[u.length-1],r))==null?void 0:O[0],p=`${u.length}${f}${m}`,h=yp.get(a);if(!i&&h===p)return;const g=u.length;let y=0,S;const _={};for(let M=0;M<g;M++){const x=u[M];if(!(x instanceof CSSStyleRule))continue;const N=uo(x,r);if(N)y=0;else{if(y++,y>aT)return;continue}const[D,w,X]=N;if(X){const J=lT(w,o);if(J){for(const K of J.names)_[K]?(Object.apply(_[K],J.theme),J.names=J.names.filter(ae=>ae!==K)):_[K]=J.theme;S||(S=[]),S.push(J)}continue}}return yp.set(a,p),S}let Ni,Tp=null;function lT(a,i){const r=a.selectorText.split(",");if(!r.length)return;if(i!=null&&i.color&&!Ni){Ni={};for(const m in i.color){const p=i.color[m];p&&(Ni[p.name]=p.val)}}const o=(a.cssText||"").slice(a.selectorText.length+2,-1).split(";"),u={};for(const m of o){const p=m.indexOf(":");if(p===-1)continue;const h=m.indexOf("--");let g=m.slice(h===-1?0:h+2,p);bl.TAMAGUI_CSS_VARIABLE_PREFIX&&(g=g.replace(bl.TAMAGUI_CSS_VARIABLE_PREFIX,""));const y=m.slice(p+2);let S;if(y[0]==="v"&&y.startsWith("var(")){const _=y.slice(6,-1),E=Ni==null?void 0:Ni[_];E?S=E:(Tp||(Tp=getComputedStyle(document.body)),S=Tp.getPropertyValue("--"+_))}else S=y;u[g]=js({key:g,name:g,val:S},!0)}const f=new Set;for(const m of r){if(m===" .tm_xxt")continue;const p=m.lastIndexOf(".t_"),h=m.slice(p).slice(3),[g]=m[p-5],y=g==="d"?"dark":g==="i"?"light":"",S=y&&y!==h?`${y}_${h}`:h;!S||S==="light_dark"||S==="dark_light"||f.add(S)}return{names:[...f],theme:u}}const Ap=/\.tm_xxt/;function uo(a,i=!1){if(a instanceof CSSStyleRule){const r=a.selectorText;if(r[0]===":"&&r[1]==="r"&&Ap.test(r)){const o=iT(r.replace(Ap,""));return i?[o,a,!0]:[o,a]}}else if(a instanceof CSSMediaRule)return a.cssRules.length>1?void 0:uo(a.cssRules[0])}const iT=a=>{const i=a.indexOf(":");return i>-1?a.slice(7,i):a.slice(7)};let Ds=null,ly=!0;function sT(){ly=!1}function iy(a,i){return ly&&(Cf[a]=i.join(" ")),!0}function rT(a){if(!Ds&&document.head){const i=document.createElement("style");i.id="_tamagui-styles",Ds=document.head.appendChild(i).sheet}if(Ds)for(const i in a){const r=a[i],o=r[Ci];if(!sy(o))continue;const u=r[Ff];u.join(`
|
|
85
|
+
`),nT(o),iy(o,u);try{for(const f of u)Ds.insertRule(f,Ds.cssRules.length)}catch{console.error("Error inserting style rule",u)}}}const oT=bl.TAMAGUI_INSERT_SELECTOR_TRIES?+bl.TAMAGUI_INSERT_SELECTOR_TRIES:1;function sy(a){return bl.IS_STATIC==="is_static"?!0:(Mf.get(a)||0)<oT}function Np(a){return a==="platform-androidtv"||a==="platform-tvos"?3:a==="platform-tv"?2:a==="platform-android"||a==="platform-ios"?1:0}function nf(a){if(!a.startsWith("$platform"))return!0;const i=a.slice(10);return i===up||i==="native"&&up!=="web"||i==="web"||i==="tv"&&Yu||i==="androidtv"&&Rb&&Yu||i==="tvos"&&aE&&Yu}function cT(a,i){if(a.startsWith("$theme-"))return a.slice(7).startsWith(i)}const uT=[["flexGrow",0],["flexShrink",1],["flexBasis","auto"]];function fT(a,i){if(typeof a=="string")return[["flex",a]];if(typeof a=="number"){if(a===-1)return uT;switch(i){case"legacy":return[["flexGrow",a],["flexShrink",1],["flexBasis","auto"]];case"react-native":return a>0?[["flexGrow",a],["flexShrink",0],["flexBasis",0]]:a===0?[["flexGrow",0],["flexShrink",0],["flexBasis","auto"]]:[["flexGrow",0],["flexShrink",-a],["flexBasis","auto"]];case"web":return a<0?[["flex",a]]:[["flexGrow",a],["flexShrink",1],["flexBasis",0]]}}}function ry(a,i,r=lE()){if(a==="flex")return fT(i,r);switch(a){case"writingDirection":return[["direction",i]];case"backdropFilter":return[["backdropFilter",i],["WebkitBackdropFilter",i]]}if(a in Hs)return Hs[a].map(o=>[o,i])}const xp=["Top","Right","Bottom","Left"],Rp=["Right","Left"],Op=["Top","Bottom"],Mp=["X","Y"],Hs={borderColor:["TopColor","RightColor","BottomColor","LeftColor"],borderRadius:["TopLeftRadius","TopRightRadius","BottomRightRadius","BottomLeftRadius"],borderWidth:["TopWidth","RightWidth","BottomWidth","LeftWidth"],margin:xp,marginHorizontal:Rp,marginVertical:Op,padding:xp,paddingHorizontal:Rp,paddingVertical:Op,borderStyle:["TopStyle","RightStyle","BottomStyle","LeftStyle"],overflow:Mp,overscrollBehavior:Mp};var Jp;for(const a in Hs){const i=a.slice(0,((Jp=/[A-Z]/.exec(a))==null?void 0:Jp.index)??a.length);Hs[a]=Hs[a].map(r=>`${i}${r}`)}const Cp=new WeakMap,dT=a=>{const i=Cp.get(a);if((i==null?void 0:i.props)===a.props)return i.value;const{props:r,conf:o,context:u,theme:f,styleProps:m}=a,p=m.styledContext;let h=o.fontsParsed;u!=null&&u.language&&(h=wf(o.fontsParsed,u.language));const g={fonts:h,tokens:o.tokensParsed,theme:f,context:p,get fontFamily(){return yo(a.fontFamily||a.props.fontFamily)||r.fontFamily||yo(Pn("defaultFont"))},get font(){return h[this.fontFamily]||(!r.fontFamily||r.fontFamily[0]==="$"?h[Pn("defaultFont")||""]:void 0)},props:r};return Cp.set(a,{props:r,value:g}),g},af=new WeakMap;function wf(a,i){if(af.has(i))return af.get(i);const r={...a,...Object.fromEntries(Object.entries(i).flatMap(([o,u])=>{if(u==="default")return[];const f=`$${o}_${u}`;return[[`$${o}`,a[f]]]}))};return af.set(i,r),r}const mT={fontSize:"size",fontWeight:"weight"},hT=Vl.color,oy={};for(const a in Vl)for(const i in Vl[a])oy[i]=a;let cy=null;function gT(){return cy}function ld(a){cy=a}const Gs=(a,i,r,o)=>{var x,N,D,w,X,J;let u=r.resolveValues||"none";if(u==="none")return i;let f;if(a in hT){const K=i.indexOf("/");if(K>0){const ae=i.slice(K+1);if(ae.length>0){const I=Number(ae);Number.isNaN(I)||(f=Math.max(0,Math.min(1,I/100)),i=i.slice(0,K))}}}const{theme:m,conf:p=ba(),context:h,fontFamily:g,staticConfig:y}=o,S=m?m[i]||m[i.slice(1)]:void 0,_=p.tokensParsed;let E,O=!1;const M=(x=y==null?void 0:y.accept)==null?void 0:x[a];if(M){const K=S??((N=_[M])==null?void 0:N[i]);K!=null&&(u="value",E=K,O=!0)}if(S){if(u==="except-theme")return i;E=S,O=!0}else{if(i in p.specificTokens)O=!0,E=p.specificTokens[i];else{switch(a){case"fontFamily":E=((D=(h!=null&&h.language?wf(p.fontsParsed,h.language):p.fontsParsed)[i])==null?void 0:D.family)||i,ld(i),O=!0;break;case"fontSize":case"lineHeight":case"letterSpacing":case"fontWeight":{const ae=g||p.defaultFontToken;if(ae){const I=h!=null&&h.language?wf(p.fontsParsed,h.language):p.fontsParsed;E=((X=(w=I[ae]||I[p.defaultFontToken])==null?void 0:w[mT[a]||a])==null?void 0:X[i])||i,O=!0}break}}const K=oy[a];if(K!==void 0){const ae=(J=_[K])==null?void 0:J[i];ae!=null&&(E=ae,O=!0)}}if(!O){const K=_.space[i];K!=null&&(E=K,O=!0)}}if(O){let K=id(a,E,u);return f!==void 0&&f<1&&(K=ny(String(K),f)??K),K}};function id(a,i,r){if(r==="none")return i;if(On(i)){if(r==="value")return i.val;const o=i==null?void 0:i.get;return typeof o=="function"?o(r==="web"?"web":void 0):i.variable}return i}const Bo=a=>a&&!Array.isArray(a)&&typeof a=="object",gn=new WeakMap;function uy(a,i=!1){const r={},o=gn.get(a);let u;for(let f in a){const m=a[f];if(m==null)continue;const p=o==null?void 0:o[f];if(f in ea||f[0]==="$"&&Bo(m)){r[f]=uy(m,i),p!==void 0&&(u||(u={}),u[f]=p);continue}const h=i?m:jn(m,f),g=ry(f,h);if(g)for(const[y,S]of g)r[y]=S,p!==void 0&&(u||(u={}),u[y]=p);else r[f]=h,p!==void 0&&(u||(u={}),u[f]=p)}return zo(r),u&&gn.set(r,u),r}const pT=/(\$[\w.-]+)/g;function bT(a,i,r,o){return i.replace(pT,u=>{let f=Gs("size",u,r,o);return f==null&&(f=Gs("color",u,r,o)),f!=null?String(f):u})}const yT={boxShadow:!0,textShadow:!0,filter:!0,backgroundImage:!0,border:!0,outline:!0};function fy(a,i,r,o){return!i.includes("$")||!yT[a]?i:bT(a,i,r,o)}function Df(a){return typeof a=="string"&&a.includes("rem")}const ST={accessibilityElementsHidden:1,accessibilityIgnoresInvertColors:1,accessibilityLanguage:1,adjustsFontSizeToFit:1,allowFontScaling:1,android_hyphenationFrequency:1,dataDetectorType:1,dynamicTypeRamp:1,elevationAndroid:1,ellipsizeMode:1,hapticFeedback:1,hapticStyle:1,hitSlop:1,importantForAccessibility:1,lineBreakStrategyIOS:1,maxFontSizeMultiplier:1,minimumFontScale:1,needsOffscreenAlphaCompositing:1,nextFocusDown:1,nextFocusForward:1,nextFocusLeft:1,nextFocusRight:1,nextFocusUp:1,onAccessibilityAction:1,onAccessibilityEscape:1,onAccessibilityTap:1,onMagicTap:1,onTextLayout:1,pressRetentionOffset:1,selectionColor:1,shouldRasterizeIOS:1,suppressHighlighting:1,textBreakStrategy:1},Di={untilMeasured:1,transition:1,space:1,animateOnly:1,animatedBy:1,disableClassName:1,debug:1,componentName:1,disableOptimization:1,render:1,style:1,group:1,animatePresence:1};Object.assign(Di,ST);var vT={};const dy=(a,i,r,o,u)=>{if(o)return u(a,i);if(ld(null),a==="elevationAndroid")return;const{conf:f,styleProps:m,staticConfig:p}=r,{variants:h}=p;if(!m.noExpand&&h&&a in h){const y=my(a,i,m,r,"");if(y){y.forEach(([S,_,E])=>{u(S,_,E)});return}}m.disableExpandShorthands||a in f.shorthands&&(a=f.shorthands[a]);const g=i;if(i!=null)if(typeof i=="string")if(i[0]==="$")i=Gs(a,i,m,r);else{const y=fy(a,i,m,r);i=y!==i?y:Df(i)?i:i}else On(i)?i=id(a,i,m.resolveValues):Df(i)&&(i=i);if(i!=null){const y=gT();a==="fontFamily"&&y&&(r.fontFamily=y);const S=m.noExpand?null:ry(a,i,f.settings.styleCompat||"web");if(S){const _=S.length;for(let E=0;E<_;E++){const[O,M,x]=S[E];u(O,M,x??g)}}else u(a,i,g)}},my=(a,i,r,o,u)=>{const{staticConfig:f,conf:m,debug:p}=o,{variants:h}=f;if(!h)return;let g=TT(h[a],i,m,o);if(!g){if(vT.TAMAGUI_WARN_ON_MISSING_VARIANT==="1"&&typeof i!="boolean"){const S=f.componentName||"[UnnamedComponent]";console.warn(`No variant found: ${S} has variant "${a}", but no matching value "${i}"`)}return}if(typeof g=="function"){const S=g,_=dT(o);g=S(i,_)}let y;if(Bo(g)){const S=g.fontFamily||g[m.inverseShorthands.fontFamily];S&&(y=_T(S,m),o.fontFamily=y),g=hy(a,g,r,o,u)}if(g){const S=uy(g,!!r.noNormalize),_=Object.entries(S),E=gn.get(S);return y&&y[0]==="$"&&ld(yo(y)),_.map(([O,M])=>[O,M,E==null?void 0:E[O]])}};function _T(a,i){if(On(a)){const r=wp.get(a);if(r)return r;for(const o in i.fontsParsed){const u=i.fontsParsed[o].family;if(On(u)&&(wp.set(u,o),u===a))return o}}else if(typeof a=="string"&&a[0]==="$")return a}const wp=new WeakMap,hy=(a,i,r,o,u)=>{var _,E,O;const{conf:f,staticConfig:m,debug:p,theme:h}=o,{variants:g}=m,y={};let S;for(const M in i){const x=f.shorthands[M]||M,N=i[M];if(!(!r.noSkip&&x in Di)){if(S||(S={}),S[x]=N,m){const D=((_=m.context)==null?void 0:_.props)||((O=(E=m.parentStaticConfig)==null?void 0:E.context)==null?void 0:O.props);D&&x in D&&(o.overriddenContextProps||(o.overriddenContextProps={}),o.overriddenContextProps[x]=N,o.originalContextPropValues||(o.originalContextPropValues={}),o.originalContextPropValues[x]=N)}if(r.noExpand)y[x]=N;else if(g&&x in g){if(u&&u===a)y[x]=N[0]==="$"?Gs(x,N,r,o):N;else{const D=my(x,N,r,o,a);if(D){for(const[w,X,J]of D)if(X!=null)if(w in ea){y[w]??(y[w]={}),Object.assign(y[w],X);const K=gn.get(X);K&&gn.set(y[w],{...gn.get(y[w]),...K})}else y[w]=X,J!==void 0&&(S||(S={}),S[w]=J)}}continue}if(On(N)){y[x]=id(x,N,r.resolveValues);continue}if(typeof N=="string"){const D=N[0]==="$"?Gs(x,N,r,o):fy(x,N,r,o);y[x]=D===N&&Df(N)?N:D;continue}if(Bo(N)){const D=hy(x,N,r,o,a);y[x]??(y[x]={}),Object.assign(y[x],D);const w=gn.get(D);w&&gn.set(y[x],{...gn.get(y[x]),...w})}else y[x]=N}}return S&&gn.set(y,S),y},ET=["size","color","radius","space","zIndex"].map(a=>({name:a,spreadName:`...${a}`}));function TT(a,i,r,{theme:o}){if(!a)return;if(typeof a=="function")return a;const u=a[i];if(u)return u;if(i!=null){const{tokensParsed:f}=r;for(const{name:p,spreadName:h}of ET)if(h in a&&(p in f&&i in f[p]||p==="color"&&o&&typeof i=="string"&&i[0]==="$"&&i.slice(1)in o))return a[h];const m=a["...fontSize"];if(m&&r.fontSizeTokens.has(i))return m}return a[`:${typeof i}`]||a["..."]}const gy=(a,i)=>a<i?-1:a>i?1:0;var ml={};let jl;const Dp="-";function zp(a,i){const r=a.split("-"),o=r.length;if(o===2||o===3&&Vf[r[r.length-1]]){const u=r[1];if(u!=="true"&&i&&!i[u])return a.replace("$group-","$group-true-")}return a}function Bp(a,i,r){return a in i?!0:r&&a in r}const py=(a,i,r,o,u,f,m,p,h,g,y,S,_)=>{var Gn,ca,xt,ta,Cn;jl=jl||ba();const E=_||(p==null?void 0:p.animationDriver)||jl.animations;if(a.passThrough)return null;f.isAnimated&&(E!=null&&E.isReactNative)&&!f.noNormalize&&(f.noNormalize="values");const{shorthands:O}=jl,{isHOC:M,isText:x,isInput:N,variants:D,isReactNative:w,inlineProps:X,inlineWhenUnflattened:J,parentStaticConfig:K,acceptsClassName:ae}=i,I={},de=f.mediaState||Zf,we=ae&&Nb&&!f.noClass,ie={},se={};a.space;let _e=null,Ee=!1,De,L,W;a.className;let P=0;const ve=i.validStyles||(i.isText||i.isInput?Qb:Wf),Y={classNames:se,conf:jl,props:a,styleProps:f,componentState:u,staticConfig:i,style:null,theme:r,usedKeys:{},viewProps:I,context:p,debug:S,animationDriver:E};if(ml.IS_STATIC==="is_static"){const{fallbackProps:Je}=f;Je&&(Y.props=new Proxy(a,{get(fe,Ae,tt){return Reflect.has(a,Ae)?Reflect.get(a,Ae):Reflect.get(Je,Ae)}}))}const{asChild:A}=a,{accept:k}=i,{noSkip:j,disableExpandShorthands:re,noExpand:xe,styledContext:Me}=f,{webContainerType:Ve}=jl.settings,St=K==null?void 0:K.variants;for(const Je in a){let fe=Je,Ae=a[fe];if(fe==="children"){I[fe]=Ae;continue}if(k){const Re=k[fe];if((Re==="style"||Re==="textStyle")&&Ae&&typeof Ae=="object"){I[fe]=Us(Y,fe,Ae,f.noClass);continue}}if(re||fe in O&&(fe=O[fe]),fe==="className")continue;if(A){const Re=td(i);if(Re){const Et=Re[Je]??Re[fe];if(Et!==void 0&&Ae===Et)continue}}if(fe in Di&&!j&&!M){if(fe==="group"){const Re=`t_group_${Ae}`;zs(ie,["container",void 0,Re,void 0,[`.${Re} { container-name: ${Ae}; container-type: ${Ve||"inline-size"}; }`]])}if(!(fe==="transition"&&typeof Ae=="string"&&!((Gn=E==null?void 0:E.animations)!=null&&Gn[Ae])))continue}let tt=Bp(fe,ve,k);if(i.isReactNative&&fe.startsWith("data-")){fe=fe.replace("data-",""),I.dataSet||(I.dataSet={}),I.dataSet[fe]=Ae;continue}if(!xe){if(fe==="disabled"&&Ae===!0&&(I["aria-disabled"]=!0,(N||g==="button"||g==="form"||g==="input"||g==="select"||g==="textarea")&&(I.disabled=!0),!(D!=null&&D.disabled)))continue;if(fe==="testID"){w?I.testID=Ae:(I["data-testid"]=Ae,f.isAnimated&&(E!=null&&E.isReactNative)&&(I.testID=Ae));continue}if(fe==="id"){I.id=Ae;continue}}let _t=!tt&&D&&fe in D;const Oe=tt||_t;let st=fe in Tf,Ce=!Oe&&!st?Ku(fe):!1,it=!!(Ce||st);it&&Ce==="group"&&(fe=zp(fe,h));const Ft=tt||it||_t&&!xe;if(Ft&&(A==="except-style"||A==="except-style-web"))continue;const pn=!Ft&&M||M&&St&&fe in St||(X==null?void 0:X.has(fe)),na=St==null?void 0:St[fe],yl=!!(M&&(tt||it||na||fe in Di));if((pn||yl)&&(Lp(I,fe,Ae,it),!_t)||!j&&fe in Di&&!(fe==="transition"&&typeof Ae=="string"&&!((ca=E==null?void 0:E.animations)!=null&&ca[Ae])))continue;(x||N)&&Ae&&(fe==="fontFamily"||fe===O.fontFamily)&&Ae in jl.fontsParsed&&(Y.fontFamily=Ae);const rt=it||!Oe;dy(fe,Ae,Y,rt,(Re,Et,Mt)=>{var qt,wn,qn,$a;const tn=Me&&Re in Me;if(!M&&rt&&!tn&&!it){I[Re]=Et;return}if(Et!=null){if(!M&&Bp(Re,ve,k)){zi(Y,Re,Et,1,!1,Mt);return}if(st=Re in Tf,Ce=st?!1:Ku(Re),it=!!(Ce||st),_t=D&&Re in D,Ce==="group"&&(Re=zp(Re,h)),(X!=null&&X.has(Re)||ml.IS_STATIC==="is_static"&&(J!=null&&J.has(Re)))&&(I[Re]=a[Re]??Et),f.noExpand&&st||M&&(it||(qt=K==null?void 0:K.variants)!=null&&qt[fe])){Lp(I,Re,Et,it);return}if(st){if(!Et)return;const gt=Us(Y,Re,Et,f.noClass&&ml.IS_STATIC!=="is_static");if((!we||ml.IS_STATIC==="is_static")&&(_e||(_e={}),_e[Re]||(_e[Re]={}),ml.IS_STATIC==="is_static")){Object.assign(_e[Re],gt);return}const Dt=ea[Re],Wt=Re==="enterStyle",et=Re==="exitStyle";if(!Dt)return;if(we&&!et){const v=ay(gt,Dt);for(const $ of v){const Q=`${$[ao]}${Dp}${Dt.name}`;zs(ie,$),se[Q]=$[Ci]}}if(!we||et||Wt){let v=u[Dt.stateKey||Dt.name]===!1;et&&(v=!f.isExiting),Wt&&u.unmounted===!1&&(v=!0);const $=Dt.priority,Q=gn.get(gt);for(const oe in gt){const Ue=gt[oe];if(v)lf(oe,Y);else{const be=Y.usedKeys[oe]||0;$>=be&&(ml.IS_STATIC==="is_static"&&(_e||(_e={}),_e[Re]||(_e[Re]={}),_e[Re][oe]=Ue),zi(Y,oe,Ue,$,!1,Q==null?void 0:Q[oe]))}}if(!v)for(const oe in Et){const Ue=O[oe]||oe;Y.usedKeys[Ue]=Math.max($,Y.usedKeys[Ue]||0)}}return}if(Ce){if(!Et)return;const gt=Re.slice(Ce=="theme"?7:1);if(Ee||(Ee=!0),(Et.space||!we||f.willBeAnimated)&&((!Ee||typeof Ee=="boolean")&&(Ee=new Set),Ee.add(gt)),Ce==="platform"&&!nf(Re))return;const Dt=P;if(P+=1,we){const Wt=ef(Us(Y,Re,Et,!1));for(const et of Wt){const v=et[ao],$=v[0]==="$";if($&&!nf(v))continue;const Q=mE(et,gt,$s,Ce,!1,Dt),oe=$?et[2]:"",Ue=`${et[ao]}${oe}${Dp}${gt}${et[ME]||""}`;zs(ie,Q),se[Ue]=Q[Ci]}}else{let Wt=function(be,le,te){Y.style||(Y.style={}),MT(Y,gt,be,le,de[gt],oe,S,te)&&be==="fontFamily"&&(Y.fontFamily=Q.fontFamily)};const et=Ce==="theme",v=Ce==="group",$=Ce==="platform";if(!et&&!$&&!v&&!de[gt])return;const Q=Us(Y,Re,Et,!0);let oe=0;if(et){if(De=!0,!(o===gt||o.startsWith(gt)))return}else if(v){const be=Db(gt),le=be.name,te=(wn=h==null?void 0:h[le])==null?void 0:wn.state,me=be.pseudo,ot=be.media;if(!te){L||(L=new Set);return}const Ge=(qn=u.group)==null?void 0:qn[le];if(ot){W||(W=new Set),W.add(ot);const zt=Ge==null?void 0:Ge.media;let Ct=zt==null?void 0:zt[ot];if(!zt&&te.layout&&(Ct=kb(ot,te.layout)),!Ct){for(const nn in Q)lf(nn,Y);return}oe=2}if(me){L||(L=new Set),L.add(le);const zt=($a=Ge||(h==null?void 0:h[le].state))==null?void 0:$a.pseudo,Ct=zt==null?void 0:zt[me],nn=Vf[me];if(!Ct){for(const Ht in Q)lf(Ht,Y);return}oe=nn}}else $&&(oe=Np(gt));const Ue=gn.get(Q);v&&Q.transition&&(Y.pseudoTransitions||(Y.pseudoTransitions={}),Y.pseudoTransitions[`$${gt}`]=Q.transition);for(const be in Q)if(be!=="space")if(be[0]==="$"){const le=Ku(be);if(le==="platform"){if(!nf(be))continue}else if(le==="theme"){if(!cT(be,o))continue}else if(le===!0&&!de[be.slice(1)])continue;const te=Q[be],me=gn.get(te),ot=de[gt]?bf(gt):ks;let Ge;le==="platform"?Ge=ks+Np(be.slice(1)):le===!0?Ge=bf(be.slice(1)):Ge=ks;const zt=ot+oe+Ge+1;for(const Ct in te){const nn=O[Ct]||Ct,{usedKeys:Ht}=Y;Ht[nn]&&Ht[nn]>zt||(Y.style||(Y.style={}),zi(Y,nn,te[Ct],zt,!1,me==null?void 0:me[Ct]),nn==="fontFamily"&&(Y.fontFamily=te[Ct]))}}else Wt(be,Q[be],Ue==null?void 0:Ue[be])}return}if(!_t){if(tn)return;I[Re]=Et}}})}if(f.noNormalize!==!1&&(Y.style&&(zo(Y.style),!f.noExpand&&!f.noMergeStyle&&(!w||(E==null?void 0:E.inputStyle)!=="css")&&ad(Y.style)),Y.flatTransforms&&(Y.style||(Y.style={}),by(Y.style,Y.flatTransforms))),!f.noNormalize&&!i.isReactNative&&!i.isHOC&&(!f.isAnimated||(E==null?void 0:E.inputStyle)==="css")&&Array.isArray((xt=Y.style)==null?void 0:xt.transform)&&(Y.style.transform=nd(Y.style.transform)),!f.noMergeStyle&&Y.style&&we){let Je,fe=!1;if(!Y.style.$$css){const Ae=ef(Y.style);for(const tt of Ae){const[_t,Oe,st]=tt,Ce=f.isAnimated&&f.noClass&&((ta=a.animateOnly)==null?void 0:ta.includes(_t)),it=!Ce&&!f.isAnimated&&nE&&(E==null?void 0:E.outputStyle)==="css"&&((Cn=a.animateOnly)==null?void 0:Cn.includes(_t));Ce?(Je||(Je={}),Je[_t]=Y.style[_t]):it?(Je||(Je={}),Je[_t]=Oe,fe=!0):(zs(ie,tt),se[_t]=st)}(fe||ml.IS_STATIC!=="is_static")&&(Y.style=Je||{})}}if(!f.noMergeStyle&&Y.style&&!we&&f.isAnimated&&!(E!=null&&E.isReactNative)&&!Y.style.$$css){const Je={};let fe=!1;a.animateOnly;for(const Ae in Y.style)Ae in zE&&(Je[Ae]=Y.style[Ae],delete Y.style[Ae],fe=!0);if(fe){const Ae=ef(Je);for(const tt of Ae)zs(ie,tt),se[tt[ao]]=tt[Ci]}}const je=a.style;if(!f.noMergeStyle&&je)if(M)I.style=Up(je);else{const Je=Array.isArray(je),fe=Je?je.length:1;for(let Ae=0;Ae<fe;Ae++){const tt=Je?je[Ae]:je;tt&&(tt.$$css?Object.assign(Y.classNames,tt):(Y.style||(Y.style={}),Object.assign(Y.style,Up(tt))))}}const ht={hasMedia:Ee,fontFamily:Y.fontFamily,viewProps:I,style:Y.style,pseudos:_e,classNames:se,rulesToInsert:ie,dynamicThemeAccess:De,pseudoGroups:L,mediaGroups:W,overriddenContextProps:Y.overriddenContextProps,pseudoTransitions:Y.pseudoTransitions},Mn=A==="except-style"||A==="except-style-web";if(!f.noMergeStyle&&!Mn){const Je=Y.style;{let fe=x||N?Y.fontFamily:null;fe&&fe[0]==="$"&&(fe=fe.slice(1));const Ae=fe?`font_${fe}`:"",tt=a.group?`t_group_${a.group}`:"",_t=a.componentName||i.componentName,Oe=a.asChild||!_t||_t==="Text"?"":`is_${_t}`;let st=[];Oe&&st.push(Oe),x?st.push("is_Text"):st.push("is_View"),Ae&&st.push(Ae),se&&st.push(Object.values(se).join(" ")),tt&&st.push(tt),a.className&&st.push(a.className);const Ce=st.join(" "),it=w||f.isAnimated&&(E==null?void 0:E.isReactNative);if(f.isAnimated&&(E==null?void 0:E.inputStyle)==="css")I.className=Ce,Je&&(I.style=Je);else if(it){let Ft;for(const pn of Ce.split(" "))Ft||(Ft={$$css:!0}),Ft[pn]=pn;I.style=Ft?[...Array.isArray(Je)?Je:[Je],Ft]:[Je]}else Ce&&(I.className=Ce),Je&&(I.style=Je)}}return ht};function by(a,i){Object.entries(i).sort(([r],[o])=>gy(r,o)).forEach(([r,o])=>{vo(a,r,o,!0)})}function zi(a,i,r,o,u=!1,f){var S,_,E,O;const{viewProps:m,styleProps:p,staticConfig:h,usedKeys:g}=a;if((g[i]||0)>o)return;const y=((S=h.context)==null?void 0:S.props)||((E=(_=h.parentStaticConfig)==null?void 0:_.context)==null?void 0:E.props);if(y&&i in y){a.overriddenContextProps||(a.overriddenContextProps={});const M=(O=a.originalContextPropValues)==null?void 0:O[i];a.overriddenContextProps[i]=f??M??r}if(i in Do)a.flatTransforms||(a.flatTransforms={}),g[i]=o,a.flatTransforms[i]=r;else{const M=!u&&!p.noNormalize?jn(r,i):r;h.accept&&i in h.accept?m[i]=M:(a.style||(a.style={}),g[i]=o,a.style[i]=i==="transform"&&Array.isArray(M)?[...M]:M)}}const Us=(a,i,r,o)=>{var S,_,E;const{staticConfig:u,conf:f,styleProps:m}=a,p={};let h;const g=gn.get(r),y=a.props;a.props={...y,...r};try{for(let O in r){const M=r[O];if(O=f.shorthands[O]||O,O==="transition"){a.pseudoTransitions||(a.pseudoTransitions={}),a.pseudoTransitions[i]=M;const x=a.animationDriver;if((x==null?void 0:x.outputStyle)==="css"){const N=(S=x.animations)==null?void 0:S[M];N&&(p.transition=`all ${N}${i[0]==="$"?" !important":""}`)}!p.transition&&typeof M=="string"&&!((_=x==null?void 0:x.animations)!=null&&_[M])&&(p.transition=M);continue}!u.isHOC&&O in Di&&!m.noSkip||dy(O,M,a,!1,(x,N,D)=>{const w=(g==null?void 0:g[x])??D;w!==void 0&&(h||(h={}),h[x]=w),x in Tf&&(N=Us(a,x,N,o)),!o&&x in Do?vo(p,x,N):p[x]=m.noNormalize?N:jn(N,O)})}}finally{a.props=y}if(!o){const O=(E=a.style)==null?void 0:E.transform,M=a.flatTransforms,x=p.transform;if(Array.isArray(x)&&x.length){const N=x.length;if(Array.isArray(O)){const D=[];e:for(let w=0;w<O.length;w++){const X=O[w];for(const J in X){for(let K=0;K<N;K++)for(const ae in x[K]){if(J===ae)continue e;break}D.push(X);break}}for(let w=0;w<N;w++)D.push(x[w]);p.transform=D}if(M)e:for(const D in M){const w=D==="x"?"translateX":D==="y"?"translateY":D;for(let X=0;X<N;X++)for(const J in x[X]){if(w===J)continue e;break}vo(p,D,M[D])}}else M&&by(p,M)}return m.noNormalize||zo(p),h&&Object.keys(h).length&&gn.set(p,h),p},AT=Ut.useInsertionEffect||oa,NT=(a,i,r,o,u,f,m,p,h,g,y,S,_)=>{"use no memo";const E=py(a,i,r,o,u,f,m,p,h,g,y,S,_);return AT(()=>{E&&rT(E.rulesToInsert)},[E==null?void 0:E.rulesToInsert]),E};function zs(a,i){{const r=i[Ci];sy(r)&&(iy(r,i[Ff]),a[r]=i)}}const xT=ml.TAMAGUI_DEFAULT_COLOR||"rgba(0,0,0,0)",RT={...Object.fromEntries(Object.entries(Vl.color).map(([a,i])=>[a,xT])),opacity:1,scale:1,scaleX:1,scaleY:1,rotate:"0deg",rotateX:"0deg",rotateY:"0deg",rotateZ:"0deg",skewX:"0deg",skewY:"0deg",x:0,y:0,borderRadius:0},vo=(a,i,r,o=!1)=>{typeof a.transform!="string"&&(a.transform||(a.transform=[]),a.transform[o?"unshift":"push"]({[OT[i]||i]:r}))},OT={x:"translateX",y:"translateY"};function Lp(a,i,r,o=!1){if(o){const u={...a[i],...r};delete a[i],a[i]=u}else a[i]=r}function MT(a,i,r,o,u,f,m,p){const h=a.usedKeys;let g=xE(i,r,a,u);if(f){const y=ks+f;g=!h[r]||y>h[r]?y:null}if(g===null)return!1;if(r in ea){const y=ea[r],S=y.stateKey||y.name;if(a.componentState[S]===!1)return!1;const _=gn.get(o);for(const E in o)zi(a,E,o[E],g,!1,_==null?void 0:_[E])}else zi(a,r,o,g,!1,p);return!0}function Up(a){const i={};for(const r in a){const o=a[r];r in Do?vo(i,r,o):i[r]=jn(o,r)}return Array.isArray(i.transform)&&(i.transform=nd(i.transform)),zo(i),i}function lf(a,i){const r=RT[a];r!=null&&!(a in i.usedKeys)&&(!i.style||!(a in i.style))&&zi(i,a,r,1)}const CT=/^on[A-Z]/;function yy(a,i){for(const r in i){const o=a[r],u=i[r];u!==void 0&&(r==="style"?a.style=o&&u?{...o,...u}:u||o:r==="className"?a.className=o&&u?`${o} ${u}`:u||o:r==="ref"?a.ref=o&&u?Pf(o,u):u||o:CT.test(r)&&typeof o=="function"&&typeof u=="function"?a[r]=Hb(o,u):a[r]=u)}return a}function wT(a,i,r){const o=yy({...a},i);return o.children=r,o}function kp(a,i,r,o){var f,m,p;if(!r)return o;const u=a||{hover:!1,press:!1,focus:!1,groups:{}};if(i.press&&!u.press&&r.pressStyle)return r.pressStyle;if(i.hover&&!u.hover&&r.hoverStyle)return r.hoverStyle;if(i.focus&&!u.focus&&r.focusStyle)return r.focusStyle;for(const h in r)if(h.startsWith("$group-")){const g=h.match(/^\$group-(.+)-(hover|press|focus)$/);if(!g)continue;const y=g[1],S=g[2],_=(m=(f=i.group)==null?void 0:f[y])==null?void 0:m.pseudo,E=(p=u.groups)==null?void 0:p[y];if(_!=null&&_[S]&&!(E!=null&&E[S]))return r[h]}return o}function Hp(a){var r;const i={};if(a.group)for(const o in a.group){const u=(r=a.group[o])==null?void 0:r.pseudo;u&&(i[o]={hover:u.hover,press:u.press,focus:u.focus})}return{hover:a.hover,press:a.press,focus:a.focus,groups:i}}const ka={};function DT(a){Object.assign(ka,a)}const zT=a=>{var i;(i=ka.setElementProps)==null||i.call(ka,a)},BT=a=>{const{pseudoGroups:i,mediaGroups:r}=a;if(i||r){const o=new Set;if(i)for(const u of i)o.add($p(u,a));if(r)for(const u of r)o.add($p(u,a));return()=>{o.forEach(u=>u())}}},$p=(a,{setStateShallow:i,pseudoGroups:r,mediaGroups:o,groupContext:u})=>{const f=u==null?void 0:u[a];if(!f)return()=>{};const m=f.subscribe(({layout:p,pseudo:h})=>{i(g=>{var _;let y=!1;const S=((_=g.group)==null?void 0:_[a])||{pseudo:{},media:{}};if(h&&(r!=null&&r.has(a)))S.pseudo||(S.pseudo={}),mf(S.pseudo,h)!==S.pseudo&&(Object.assign(S.pseudo,h),y=!0);else if(p&&o){S.media||(S.media={});const E=NE(o,p),O=mf(S.media,E);O!==S.media&&(Object.assign(S.media,O),y=!0)}return y?{group:{...g.group,[a]:S}}:g})});return()=>{m(),i({group:{}})}},_o=ee.createContext(!1),LT=({children:a,enabled:i})=>{const r=ee.useContext(_o);return Z.jsx(_o.Provider,{value:i??r,children:a})},UT=()=>ee.useContext(_o);function kT(){return ee.useContext(_o)?!0:ee.useSyncExternalStore(HT,()=>!0,()=>!1)}const HT=()=>()=>{},Ui=ee.forwardRef(function(i,r){"use no memo";if(i.disable)return i.children;const{passThrough:o}=i,u=!!i._isRoot,[f,m]=ty(i,u);let h=i["disable-child-theme"]?ee.Children.map(i.children,y=>o||!ee.isValidElement(y)?y:ee.cloneElement(y,{"data-disable-theme":!0})):i.children;if(r)try{Ut.Children.only(h),h=ee.cloneElement(h,{ref:r})}catch{}const g=ee.useRef({hasEverThemed:!1});return Sy(m,h,i,u,g,o)});Ui.avoidForwardRef=!0;function Sy(a,i,r,o=!1,u,f=!1){const{shallow:m,forceClassName:p}=r,h=u.current;if(!(h.hasEverThemed||a.isNew||o||KE(r)))return i;i=Z.jsx(Pb.Provider,{value:a.id,children:i});const{isInverse:S,name:_}=a,E=S||p;if(h.hasEverThemed||(h.hasEverThemed=!0),(E||a.name==="dark"||a.name==="light")&&(h.hasEverThemed="wrapped"),m&&a.parentId){const O=GE(a.isNew?a.id:a.parentId);if(!O)throw new Error("‼️010");i=ee.Children.toArray(i).map(M=>ee.isValidElement(M)?f?M:ee.cloneElement(M,void 0,Z.jsx(Ui,{name:O.name,children:M.props.children})):M)}if(p===!1)return i;{const O=r.contain?jT:$T,{className:M="",color:x}=f?{}:qT(a,r,o);if(i=Z.jsx("span",{className:`${M} is_Theme`,style:f?O:{color:x,...O},children:i}),h.hasEverThemed==="wrapped"){const N=E?`${_.startsWith("light")?"t_light":_.startsWith("dark")?"t_dark":""} _dsp_contents`:"_dsp_contents";i=Z.jsx("span",{className:N,children:i})}return i}}const $T={display:"contents"},jT={display:"contents",contain:"strict"},GT={className:"",color:void 0};function qT(a,i,r=!1){if(!a.isNew&&!i.forceClassName)return GT;const o=a!=null&&a.theme&&a.isNew?wi(a.theme.color):"",u=a.name.replace(IT,""),f=u.split("_");let m=`t_${u}`;if(f.length>1){const h=[];for(let g=1;g<=f.length;g++)h.push(`t_${f.slice(0,g).join("_")}`);m=h.join(" ")}const p=`${r?"":"t_sub_theme"} ${m}`;return{color:o,className:p}}const IT=/^(dark|light)_/;function YT(a,i,r=!1){const u=Ut.forwardRef(function(m,p){"use no memo";const h=td(i,m.componentName),g=h==null?void 0:h.theme,y=h==null?void 0:h.themeReset,{theme:S,componentName:_,themeReset:E,...O}=m;let M;const x=i==null?void 0:i.context;if(x)for(const J in x.props){const K=m[J];K!==void 0&&(M=M||{},M[J]=K)}const N=Z.jsx(a,{ref:p,...O,"data-disable-theme":!0});let D=null;const w=_||(i==null?void 0:i.componentName);if(w&&(D=D||{},D.componentName=w),"debug"in m&&(D=D||{},D.debug=m.debug),("theme"in m||g)&&(D=D||{},D.name="theme"in m?m.theme:g),("themeReset"in m||y)&&(D=D||{},D.reset="themeReset"in m?E:y),r&&!D)return N;let X=Z.jsx(Ui,{"disable-child-theme":!0,...D,children:N});if(x){const J=x.Provider,K=Ut.useContext(x);X=Z.jsx(J,{...K,...M,children:X})}return X});return u.displayName=`Themed(${(a==null?void 0:a.displayName)||(a==null?void 0:a.name)||"Anonymous"})`,u}function VT(a){if(a.length)return Z.jsx(Z.Fragment,{children:a.map(i=>{const r=i[Ci];return Z.jsx("style",{href:`t_${r}`,precedence:"default",suppressHydrationWarning:!0,children:i[Ff].join(`
|
|
86
|
+
`)},r)})})}const KT=(a,i,r,o)=>{"use no memo";var W;const u=kT(),f=!UT(),m=i!=null&&i.isStub||i==null?void 0:i.useAnimations,{isHOC:p}=r,h=ee.useRef(void 0);h.current||(h.current={startedUnhydrated:f&&!u});const g=!!(!p&&"transition"in a||a.style&&XT(a.style)),y=(i==null?void 0:i.inputStyle)??"css",S=(i==null?void 0:i.outputStyle)??"css",_=h.current;!f&&g&&(_.hasAnimated=!0);const E=!!(!!(g&&!p&&m)||_.hasAnimated),O=!Xf&&E;O&&!_.hasAnimated&&(_.hasAnimated=!0);const{disableClassName:M}=a,x=!p&&O&&a.animatePresence!==!1&&((W=i==null?void 0:i.usePresence)==null?void 0:W.call(i))||null,N=x==null?void 0:x[2],D=(N==null?void 0:N.isPresent)===!1,w=(N==null?void 0:N.isPresent)===!0&&N.initial!==!1,X=!!a.enterStyle,J=g&&!u&&((i==null?void 0:i.isReactNative)||y!=="css"),I=!p&&(X||w||J||M)?X||w?ZE:ed:xf,de=ZT(a);de!=null&&(I.disabled=de);const we=ee.useState(I),ie=a.forceStyle?{...we[0],[a.forceStyle]:!0}:we[0],se=we[1];let _e=O;J&&!r.isHOC&&!u&&(_e=!1,_.willHydrate=!0),de!==ie.disabled&&(de&&Object.assign(ie,xf),ie.disabled=de,se(P=>({...ie})));const Ee=a.group,De=tE(se,a.debug);if(N&&_e&&u&&r.variants){const{enterVariant:P,exitVariant:ve,enterExitVariant:Y,custom:A}=N;Bo(A)&&Object.assign(a,A);const k=ve??Y,j=P??Y;ie.unmounted&&j&&r.variants[j]?a[j]=!0:D&&k&&(a[k]=ve!==Y)}let L=!!a.forceStyle;if(!u)L=!1;else if(u){const P=_e&&u,ve=!r.acceptsClassName&&(Pn("disableSSR")||!ie.unmounted),Y=M&&!ie.unmounted;(P&&S!=="css"||Y||ve)&&(L=!0)}return{startedUnhydrated:_.startedUnhydrated,curStateRef:_,disabled:de,groupName:Ee,hasAnimationProp:g,hasEnterStyle:X,isAnimated:_e,isExiting:D,isHydrated:u,presence:x,presenceState:N,setState:se,setStateShallow:De,noClass:L,state:ie,stateRef:h,inputStyle:y,outputStyle:S,willBeAnimated:O,willBeAnimatedClient:E}};function XT(a){return Object.keys(a).some(i=>{const r=a[i];return r&&typeof r=="object"&&"_animation"in r})}const ZT=a=>{var i;return a.disabled||a.passThrough||((i=a.accessibilityState)==null?void 0:i.disabled)||a["aria-disabled"]||a.accessibilityDisabled||!1},QT=ee.memo(ee.forwardRef(function(i,r){const{children:o,...u}=i;if(ee.isValidElement(o)){const f=FT(o,u);return ee.cloneElement(o,o.type.avoidForwardRef?f:{...f,ref:Pf(r,o.props.ref)})}return ee.Children.count(o)>1?ee.Children.only(null):null})),so={onPress:"onClick",onPressOut:"onMouseUp",onPressIn:"onMouseDown"};function FT(a,i){const r=a.props,o=typeof a.type=="string";if(o)for(const f in so)f in i&&(i[so[f]]=i[f],delete i[f]);const u=yy(i,r);if(o)for(const f in so)f in u&&(u[so[f]]=u[f],delete u[f]);return u}var WT={};const Oi=new Set,JT=new Set(["hover","press","pressIn","group","focus","focusWithin","media","group"]);if(typeof window<"u"){const a=()=>{Oi.forEach(r=>r(o=>o.press||o.pressIn?{...o,press:!1,pressIn:!1}:o)),Oi.clear()},i=()=>{Oi.forEach(r=>r(o=>o.press||o.pressIn||o.hover?{...o,press:!1,pressIn:!1,hover:!1}:o)),Oi.clear()};addEventListener("mouseup",a),addEventListener("touchend",i),addEventListener("touchcancel",i)}const Il={value:!1},zf={value:!1};typeof document<"u"&&(document.addEventListener("keydown",()=>{Il.value||(Il.value=!0)}),document.addEventListener("mousedown",()=>{Il.value&&(Il.value=!1)}),document.addEventListener("mousemove",()=>{Il.value&&(Il.value=!1),zf.value=!1}),document.addEventListener("touchstart",()=>{zf.value=!0}));function vy(a){let i=null;const{Component:r,isText:o,isHOC:u}=a,f=Ut.forwardRef((y,S)=>{"use no memo";var sn,ct,mn,Tl;i=i||ba();const{context:_,isReactNative:E}=a,O=y.debug,M=_?Ut.useContext(_):void 0;let x=null;const N=Ut.useContext(oo),D=!!(o&&N.inText);let w=y;const X=w.componentName||a.componentName,[J,K]=P_(td(a,w.componentName),M,y);w=J,x=K;const ae=Ut.useContext(cp),I=w.animatedBy&&i?i.animationDrivers?i.animationDrivers[w.animatedBy]??i.animations:w.animatedBy==="default"?i.animations:null:So(N.animationDriver)??So(i==null?void 0:i.animations)??null,de=I==null?void 0:I.useAnimations,we=KT(w,I!=null&&I.isStub?null:I,a),{disabled:ie,groupName:se,hasAnimationProp:_e,hasEnterStyle:Ee,isAnimated:De,isExiting:L,isHydrated:W,presence:P,presenceState:ve,setState:Y,noClass:A,state:k,stateRef:j,inputStyle:re,outputStyle:xe,willBeAnimated:Me,willBeAnimatedClient:Ve,startedUnhydrated:St}=we;I!=null&&I.avoidReRenders&&oa(()=>{const ce=j.current.nextState;ce&&(j.current.nextState=void 0,hf(k,ce)||we.setStateShallow(ce))});const je=ee.useMemo(()=>{var ze,Ke;if(!se||w.passThrough)return ae;const ce=new Set;return(Ke=(ze=j.current.group)==null?void 0:ze.listeners)==null||Ke.clear(),j.current.group={listeners:ce,emit(Pe){ce.forEach(Xe=>Xe(Pe))},subscribe(Pe){return ce.add(Pe),ce.size===1&&ht({hasDynGroupChildren:!0}),()=>{ce.delete(Pe),ce.size===0&&ht({hasDynGroupChildren:!1})}}},{...ae,[se]:{state:{pseudo:xf},subscribe:Pe=>{var $t;const Xe=($t=j.current.group)==null?void 0:$t.subscribe(Pe);return()=>{Xe==null||Xe()}}}}},[j,se,ae]);let ht=we.setStateShallow;const Mn=w.render,Gn=(!r||typeof r=="string")&&Mn||r,ca=o?Gn||"span":Gn||(D?"span":"div");let xt=ca;I&&De&&I.needsCustomComponent&&(xt=I[o?"Text":"View"]||xt);const ta=w["data-disable-theme"]||u,Cn={componentName:X,disable:ta,shallow:w.themeShallow,debug:O,unstyled:w.unstyled};"theme"in w&&(Cn.name=w.theme),Cn.needsUpdate=()=>!!j.current.isListeningToTheme;const[Je,fe]=ty(Cn);xt=Gn||xt;const Ae=TE(N);Jf(!1);const tt={mediaState:Ae,noClass:A,resolveValues:De&&re!=="css"||u&&k.unmounted==!1&&_e?"value":"auto",isExiting:L,isAnimated:De,willBeAnimated:Me,styledContext:M},_t=(fe==null?void 0:fe.name)||"",Oe=NT(w,a,Je,_t,k,tt,null,N,je,xt,St,O,I),st=!Oe;let Ce=a.context;if(Oe!=null&&Oe.overriddenContextProps){const ce=a.context||((sn=a.parentStaticConfig)==null?void 0:sn.context);if(ce){for(const ze in Oe.overriddenContextProps)x=x||{},x[ze]=Oe.overriddenContextProps[ze];a.context||(Ce=ce)}}const it=se&&(je==null?void 0:je[se])||null;if(!st&&it&&w.containerType!=="normal"){const ce=it==null?void 0:it.state;ce&&ce.layout===void 0&&((ct=Oe.style)!=null&&ct.width||(mn=Oe.style)!=null&&mn.height)&&(ce.layout={width:jp(Oe.style.width),height:jp(Oe.style.height)})}const Ft=w.transition&&typeof w.transition=="object"&&!Array.isArray(w.transition)&&("enter"in w.transition||"exit"in w.transition);if(!st&&(_e||se)&&(I!=null&&I.avoidReRenders)&&!Ft){let ce=function(){const Ke=j.current.nextState;if(it){const{group:Pe,hasDynGroupChildren:Xe,unmounted:$t,transition:In,...vn}=Ke;m(it,j.current.group||null,vn)}};const ze=ht;if(j.current.updateStyleListener=()=>{const Ke=j.current.useStyleListener;if(!Ke){const vn=j.current.nextState;vn&&ze(vn);return}const Pe=j.current.nextState||k,Xe=j.current.nextMedia,$t=py(w,a,Je,_t,Pe,Xe?{...tt,mediaState:Xe}:tt,null,N,je,xt,St,O,I),In=kp(j.current.prevPseudoState,Pe,$t==null?void 0:$t.pseudoTransitions,w.transition);j.current.prevPseudoState=Hp(Pe),Ke(($t==null?void 0:$t.style)||{},In)},N.mediaEmitListeners=N.mediaEmitListeners||new Set,!j.current.mediaEmitCleanup){const Ke=Pe=>{var Xe,$t;j.current.nextMedia=Pe,($t=(Xe=j.current).updateStyleListener)==null||$t.call(Xe)};N.mediaEmitListeners.add(Ke),j.current.mediaEmitCleanup=()=>{var Pe;(Pe=N.mediaEmitListeners)==null||Pe.delete(Ke)}}N.mediaEmit=N.mediaEmit||(Ke=>{for(const Pe of N.mediaEmitListeners)Pe(Ke)}),j.current.setStateShallow=Ke=>{var vn,Yt;const Pe=j.current.nextState||k,Xe=typeof Ke=="function"?Ke(Pe):Ke;if(Xe===Pe||hf(Pe,Xe))return;const $t=Object.keys(Xe).every(Xl=>JT.has(Xl)),In={...Pe,...Xe};j.current.nextState=In,$t?(ce(),(Yt=(vn=j.current).updateStyleListener)==null||Yt.call(vn)):ze(Xe)},ht=Ke=>{var Pe,Xe;(Xe=(Pe=j.current).setStateShallow)==null||Xe.call(Pe,Ke)}}Oe&&(w.group&&w.untilMeasured==="hide"&&!j.current.hasMeasured&&(Oe.style=Oe.style||{},Oe.style.opacity=0),Oe.dynamicThemeAccess!=null&&(j.current.isListeningToTheme=Oe.dynamicThemeAccess));const pn=(Oe==null?void 0:Oe.hasMedia)&&Oe.hasMedia!==!0,na=kE()||pn||A&&(Oe==null?void 0:Oe.hasMedia)===!0,yl=pn?Oe.hasMedia:null;_E(N,na,yl);const{viewProps:Sl,pseudos:rt,style:Re,classNames:Et,pseudoGroups:Mt,mediaGroups:tn}=Oe||{},qt=w,{asChild:wn,children:qn,themeShallow:$a,spaceDirection:gt,onPress:Dt,onLongPress:Wt,onPressIn:et,onPressOut:v,onHoverIn:$,onHoverOut:Q,onMouseUp:oe,onMouseDown:Ue,onMouseEnter:be,onMouseLeave:le,onFocus:te,onBlur:me,separator:ot,passThrough:Ge,forceStyle:zt,onClick:Ct,theme:nn,...Ht}=Sl||{};let qe=Ht;w.forceStyle&&(qe.forceStyle=w.forceStyle),u&&(typeof nn<"u"&&(qe.theme=nn),typeof Ge<"u"&&(qe.passThrough=Ge));let Jt;const ua=(re==="css"?Ve:Me)&&de&&!u;let ja;if(ua){const ce=I!=null&&I.avoidReRenders?Pe=>{j.current.useStyleListener=Pe}:void 0,ze=kp(j.current.prevPseudoState,k,Oe==null?void 0:Oe.pseudoTransitions,w.transition);Oe&&(Oe.effectiveTransition=ze),j.current.prevPseudoState=Hp(k);const Ke=de({props:qt,style:W?Re||{}:{...Re},styleState:Oe,useStyleEmitter:ce,presence:P,componentState:k,styleProps:tt,theme:Je,themeName:_t,pseudos:rt||null,staticConfig:a,stateRef:j});Ke&&(Ke.ref&&(ja=Ke.ref),W&&Ke&&(Jt=Ke.style,qe.style=Jt,Ke.className&&(qe.className=`${k.unmounted==="should-enter"?"t_unmounted ":""}${qe.className||""} ${Ke.className}`)))}!st&&it&&w.containerType!=="normal"&&(Ht.onLayout=Hb(Ht.onLayout,ce=>{var Ke;const ze=ce.nativeEvent.layout;it.state.layout=ze,(Ke=j.current.group)==null||Ke.emit({layout:ze}),!j.current.hasMeasured&&w.untilMeasured==="hide"&&Y(Pe=>({...Pe})),j.current.hasMeasured=!0})),qe=((Tl=ka.usePropsTransform)==null?void 0:Tl.call(ka,xt,Ht,j,j.current.willHydrate))||Ht,j.current.composedRef||(j.current.composedRef=Pf(ce=>j.current.host=ce,S,zT,ja)),qe.ref=j.current.composedRef;const vl=()=>{ht({press:!1,pressIn:!1})};oa(()=>{if(k.unmounted===!0&&Ee){ht({unmounted:"should-enter"});return}if(k.unmounted){if(re==="css"){let ce=!1;return requestAnimationFrame(()=>{ce||requestAnimationFrame(()=>{ce||ht({unmounted:!1})})}),()=>{ce=!0}}ht({unmounted:!1})}return()=>{var ce,ze;Oi.delete(Y),(ze=(ce=j.current).mediaEmitCleanup)==null||ze.call(ce)}},[k.unmounted,re]),oa(()=>{if(!ie&&!(!Mt&&!tn)&&je)return BT({groupContext:je,setStateShallow:ht,mediaGroups:tn,pseudoGroups:Mt})},[je,ie,Mt?df(Mt):0,tn?df(tn):0]);const fa=j.current.group;oa(()=>{!it||!fa||m(it,fa,k)},[it,fa,k]);const ya=!ie&&A&&(rt==null?void 0:rt.pressStyle),da=!ie&&A&&(rt==null?void 0:rt.focusStyle),_l=!ie&&A&&(rt==null?void 0:rt.focusVisibleStyle),an=!!(ya||da||_l||te||me||N.setParentFocusState),yn=!!(se&&k.hasDynGroupChildren),Sn=!!(yn||ya||Dt||v||et||Ue||oe||Wt||Ct||rt!=null&&rt.focusVisibleStyle),aa=!ie&&A&&(rt==null?void 0:rt.hoverStyle),Rt=!!(yn||aa),El=!!(yn||Rt||be||le),Sa=!ie&&!w.asChild&&!!(an||Sn||El||ya||aa||da),Dn=!!(yn||ya),F=Sa?{onPressOut:Sn?ce=>{vl(),v==null||v(ce),oe==null||oe(ce)}:void 0,...(El||Sn)&&{onMouseEnter:ce=>{const ze={};Rt&&!zf.value&&(ze.hover=!0),Dn&&k.pressIn&&(ze.press=!0),ht(ze),$==null||$(ce),be==null||be(ce)},onMouseLeave:ce=>{const ze={};Rt&&(ze.hover=!1),Dn&&(ze.press=!1,ze.pressIn=!1),ht(ze),Q==null||Q(ce),le==null||le(ce)}},onPressIn:Sn?ce=>{Dn&&ht({press:!0,pressIn:!0}),et==null||et(ce),Ue==null||Ue(ce),Oi.add(Y)}:void 0,onPress:Sn?ce=>{vl(),Ct==null||Ct(ce),(Dt||Ct)&&ce.stopPropagation(),Dt==null||Dt(ce),Wt==null||Wt(ce)}:void 0,...an&&{onFocus:ce=>{const ze={};N.setParentFocusState&&(N.setParentFocusState({focusWithin:!0}),ze.focusWithin=!0),rt!=null&&rt.focusVisibleStyle&&Il.value?ze.focusVisible=!0:ze.focus=!0,ht(ze),te==null||te(ce)},onBlur:ce=>{N.setParentFocusState&&N.setParentFocusState({focusWithin:!1}),ht({focus:!1,focusVisible:!1,focusWithin:!1}),me==null||me(ce)}}}:null;F&&!E&&Object.assign(qe,Pu(F));const pe=w,He=y;if([X,w.testID??y.testID??w.accessibilityLabel??y.accessibilityLabel??(typeof pe.href=="string"?pe.href:null)??(typeof He.href=="string"?He.href:null)].filter(Boolean).join(":"),wn){xt=QT;{const ce=Pu({onPress:Dt,onPressIn:et,onPressOut:v,onMouseEnter:be,onMouseLeave:le},wn==="web"||wn==="except-style-web");Object.assign(qe,ce)}}let ye;if(st)ye=Ut.createElement(ca,{style:{display:"contents"}},y.children);else{ka.useChildren&&(ye=ka.useChildren(xt,ye||qn,qe));const ce=typeof Mn=="string";if(Mn&&!ce){const ze=PT(Mn,ye||qn,qe,we);ze&&(qe=ze.viewProps,xt=ze.elementType)}ye||(ce&&qe.render,ye=Ut.createElement(xt,qe,ye||qn))}const Tt=I==null?void 0:I.ResetPresence,It=!!(!wn&&Oe&&!u&&Tt&&Me&&(Ee||ve)),dn=j.current.hasEverResetPresence;if(It&&!dn&&(j.current.hasEverResetPresence=!0),(It||dn)&&Tt&&(ye=Z.jsx(Tt,{disabled:!It,children:ye})),("focusWithinStyle"in y||rt!=null&&rt.focusWithinStyle)&&(ye=Z.jsx(oo.Provider,{...N,setParentFocusState:ht,children:ye})),"group"in w&&(ye=Z.jsx(cp.Provider,{value:je,children:ye})),!wn&&o&&!D&&(ye=Z.jsx(oo.Provider,{...N,inText:!0,children:ye})),ye=ta||!Oe?ye:Sy(fe,ye,Cn,!1,j),E&&!wn&&(ye=Z.jsx("span",{className:"_dsp_contents",...!st&&W&&F&&Pu(F),children:ye})),x&&Ce){const ce=Ce.Provider;for(const ze in M)ze in x||(x[ze]=M[ze]);ye=Z.jsx(ce,{__disableMergeDefaultValues:!0,...x,children:ye})}return St&&Oe&&(ye=Z.jsxs(Z.Fragment,{children:[ye,W?null:VT(Object.values(Oe.rulesToInsert))]})),ye});function m(y,S,_){if(!y||!S)return;const E={...y.state,pseudo:_};S.emit(E),y.state=E}a.componentName&&(f.displayName=a.componentName);let p=f;p=Ut.memo(p),p.staticConfig=a;function h(y){return{...a,...y,neverFlatten:!0,isHOC:!0,isStyledHOC:!1}}function g(y,S){let _=typeof y=="function"&&y.length===1?y:Ut.forwardRef(y);const E=h(S==null?void 0:S.staticConfig);return _=S!=null&&S.disableTheme?_:YT(_,E,!0),(E.memo||WT.TAMAGUI_MEMOIZE_STYLEABLE)&&(_=Ut.memo(_)),_.staticConfig=E,_.styleable=g,_}return p.styleable=g,p}const jp=a=>typeof a=="number"?a:typeof a=="string"?+a.replace("px",""):0,PT=(a,i,r,o)=>{if(typeof a=="function"&&(a=a(r,o)),a&&typeof a=="object"&&Ut.isValidElement(a)&&a){const u=a.props,f=u?wT(u,r,i):r;return{elementType:a.type,viewProps:f}}};var Bf={};const Lf=a=>{Bf.TAMAGUI_DID_OUTPUT_CSS||fo.set(yo(a),a)},Uf=(a,i=!1)=>Bf.TAMAGUI_DID_OUTPUT_CSS?"":`--${Bf.TAMAGUI_CSS_VARIABLE_PREFIX||""}${Jb(a.name,!1)}:${!i&&typeof a.val=="number"?`${a.val}px`:a.val}`,fo=new Map;let e1=0;const kf=[],t1=a=>{if(fo.has(a))return fo.get(a);const i=`t${e1++}`,r=`var(--${i})`,o={val:a,name:i,variable:r};return fo.set(a,o),kf.push(o),o};let n1=1e4;const sf=new Map,a1=a=>{if(sf.has(a))return sf.get(a);const i=`t${n1++}`,r=`var(--${i})`,o={val:a,name:i,variable:r};return sf.set(a,o),o};var Bs={};const l1=["dark","light"],i1=["light","dark"];function s1(a){if(!Bs.TAMAGUI_DID_OUTPUT_CSS){if(!Bs.TAMAGUI_DOES_SSR_CSS||Bs.TAMAGUI_DOES_SSR_CSS==="mutates-themes"||Bs.TAMAGUI_DOES_SSR_CSS==="false"){const i=[],{config:r,themeName:o,theme:u,names:f}=a,m=a.hasDarkLight??(r.themes&&("light"in r.themes||"dark"in r.themes)),p=`.${Ob}`;let h="";const g=a.useMutatedVariables?a1:t1;for(const N in u){const D=u[N],w=g(D.val).variable;h+=`--${Bs.TAMAGUI_CSS_VARIABLE_PREFIX||""}${qs(N,40)}:${w};`}const y=o==="dark",S=o==="light",_=f.map(N=>`${p}${N}`),E=new Set(y||S?_:[]);if(m)for(const D of f){const w=y||D.startsWith("dark_"),X=!w&&(S||D.startsWith("light_"));if(!(w||X)){E.add(`${p}${D}`);continue}const J=`${p}${D.replace(/^(dark|light)_/,"")}`,[K,ae]=w?l1:i1,I=Math.round(2*1.5);for(let de=0;de<I;de++){const we=de%2===1;if(we&&de<3)continue;const ie=new Array(de+1).fill(0).map((De,L)=>`${p}${L%2===0?K:ae}`);let se=ie.length>1?ie.slice(1):ie;if(we){const[De,L,...W]=se;se=[L,...W,L]}const _e=J===se[se.length-1]?"":J,Ee=se.join(" ");E.add(`${Ee} ${_e}`)}}const O=[...E].sort(gy),M=`${O.map(N=>{const D=Pn("addThemeClassName");return r1(N)&&(D==="html"||D==="body")?`${D==="body"?"body":":root"}${N}`:`:root ${N}`}).join(", ")+", .tm_xxt"} {${h}}`;if(i.push(M),Pn("shouldAddPrefersColorThemes")){const N=o.startsWith("dark"),D=N?"dark":"light",w=O.map(I=>{if(I==Hf||I===$f)return":root";if(!(N&&I.startsWith($f)||!N&&I.startsWith(Hf)))return I.replace(/^\.t_(dark|light) /,"").trim()}).filter(Boolean).join(", "),X=!o.includes("_");let J="";if(X){const I=u.background?`background:${wi(u.background)};`:"",de=u.color?`color:${wi(u.color)}`:"";J=I||de?`body{${I}${de}}
|
|
87
|
+
`:""}const K=`${w} {${h}}`,ae=`@media(prefers-color-scheme:${D}){
|
|
88
|
+
${J}${K}
|
|
89
|
+
}`;i.push(ae)}const x=Pn("selectionStyles");if(x){const N=x(u);if(N){const D=_.map(X=>`${X} ::selection`).join(", "),w=Object.entries(N).flatMap(([X,J])=>J?`${X==="backgroundColor"?"background":X}:${wi(J)}`:[]).join(";");if(w){const X=`${D}{${w}}`;i.push(X)}}}return i}}return[]}const Hf=".t_dark",$f=".t_light",r1=a=>a===Hf||a===$f||a.startsWith(".t_dark ")||a.startsWith(".t_light "),_y={};function o1(a){for(const{names:r,theme:o}of a)for(const u of r)_y[u]=o;const i={};for(const{names:r,theme:o}of a)for(const u of r){const f=c1(u,o);i[u]=f}return i}function c1(a,i){const r={},o=[],u=a.split("_").slice(0,-1).map(f=>(o.push(f),o.join("_")));for(const f of u)Object.assign(r,_y[f]);return Object.assign(r,i),r}function u1(a,i){const r=a[i];On(r)?r.name!==i&&(a[i]=js({key:r.name,name:i,val:r.val})):a[i]=js({key:i,name:i,val:r})}const Gp=new WeakMap,Eo=(a,i="",r=!1)=>{if(Gp.has(a))return a;const o={};for(let u in a){const f=a[u],m=u[0]==="$",p=m?u:`$${u}`,h=m?p.slice(1):u;if(On(f)){o[h]=f;continue}const g=qs(h,1e3),y=i&&i!=="t-color"?`${i}-${g}`:`c-${g}`;if(f&&typeof f=="object"&&"needsPx"in f&&"val"in f){const _=js({val:f.val,name:y,key:p});_.needsPx=f.needsPx,o[h]=_;continue}if(f&&typeof f=="object"){o[h]=Eo(a[h],y,!1);continue}const S=On(f)?f:js({val:f,name:y,key:p});o[h]=S}return Gp.set(o,!0),o},Gl=a=>{console.warn(`No animation driver configured. To use ${a}, you must pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations`)},f1=()=>({isReactNative:!1,inputStyle:"css",outputStyle:"css",isStub:!0,animations:{},useAnimations:()=>Gl("animations"),usePresence:()=>Gl("usePresence"),ResetPresence:()=>Gl("ResetPresence"),useAnimatedNumber:()=>Gl("useAnimatedNumber"),useAnimatedNumberStyle:()=>Gl("useAnimatedNumberStyle"),useAnimatedNumbersStyle:()=>Gl("useAnimatedNumbersStyle"),useAnimatedNumberReaction:()=>Gl("useAnimatedNumberReaction")}),d1=f1();var Is={};function m1(a,i="$true"){const r=["font-family: var(--f-family)"],o=h=>{const g=h==null?void 0:h[i];if(On(g))return HE(g)},u=o(a.letterSpacing);u&&r.push(`letter-spacing: ${u}`);const f=o(a.lineHeight);f&&r.push(`line-height: ${f}`);const m=o(a.style);m&&r.push(`font-style: ${m}`);const p=o(a.weight);return p&&r.push(`font-weight: ${p}`),r}function h1(a,i){if(!Is.TAMAGUI_DID_OUTPUT_CSS){const r=[],o=Object.keys(a).sort();for(const u of o){const f=Object.keys(a[u]).sort();for(const m of f){const p=a[u][m];{Lf(p);const h=p.needsPx===!0,g=i(u),y=!(h||g);r.push(Uf(p,y))}}}return r}return[]}function g1(a,i){if(!Is.TAMAGUI_DID_OUTPUT_CSS){const r={};if(!a)return r;const o=Object.keys(a).sort();for(const u of o){const f=a[u],[m,p]=u.includes("_")?u.split("_"):[u],h=i(f);r[u]={name:m.slice(1),declarations:h,language:p,fontParsed:f}}return r}return{}}function p1(a,i,r="$true"){if(!Is.TAMAGUI_DID_OUTPUT_CSS){let o=function(h,g=""){return`:root${g} {${f}${[...h].join(`;${f}`)}
|
|
90
|
+
}`};const u=[],f=" ";a.length&&u.push(o(a));const m=[],p=Object.keys(i).sort();for(const h of p){const{name:g,declarations:y,language:S="default"}=i[h],_=`.font_${g}`;m.push(_);const E=`:root .t_lang-${g}-${S} ${_}`,O=o(y,S==="default"?` ${_}, ${E}`:E);u.push(O)}if(m.length){const h=i[p[0]];if(h!=null&&h.fontParsed){const g=m1(h.fontParsed,r),y=[...m,".is_View"].join(", ");u.push(`${y} {${g.join("; ")}}`)}}return u}return[]}function b1(a,i){if(!Is.TAMAGUI_DID_OUTPUT_CSS){let r=[];for(const{names:o,theme:u}of a){const f=s1({config:i,themeName:o[0],names:o,theme:u});r=[...r,...f]}return r}return[]}function y1(a,i={},r){if(!Is.TAMAGUI_DID_OUTPUT_CSS){const{separator:o=`
|
|
91
|
+
`,sinceLastCall:u,exclude:f}=i;if(u&&r.value>=0){const h=Sp(),g=h.slice(r.value);return r.value=h.length,g.join(o)}r.value=0;const m=Sp().join(o);if(f==="design-system")return m;const p=f?"":a.getThemeRulesSets().join(o);return`${`._ovs-contain {overscroll-behavior:contain;}
|
|
92
|
+
.t_unmounted .is_View, .t_unmounted .is_Text { transition: none !important; }
|
|
93
|
+
.is_View { display: flex; align-items: stretch; flex-direction: column; flex-basis: auto; box-sizing: border-box; min-height: 0; min-width: 0; flex-shrink: 0; }
|
|
94
|
+
.is_Text { display: inline; box-sizing: border-box; word-wrap: break-word; white-space: pre-wrap; margin: 0; }
|
|
95
|
+
@scope (.is_Text) to (.is_View) { .is_Text { white-space: inherit; word-wrap: inherit; } }
|
|
96
|
+
._dsp_contents {display:contents;}
|
|
97
|
+
._no_backdrop::backdrop {display: none;}
|
|
98
|
+
.is_Input::selection, .is_TextArea::selection {background-color: var(--t_selectionColor);}
|
|
99
|
+
.is_Input::placeholder, .is_TextArea::placeholder {color: var(--t_placeholderColor);}
|
|
100
|
+
:root ._pe-boxonly>* {pointer-events:none;}
|
|
101
|
+
:root ._pe-boxnone>* {pointer-events:auto;}
|
|
102
|
+
._hsb-x::-webkit-scrollbar:horizontal { display: none !important; }
|
|
103
|
+
._hsb-y::-webkit-scrollbar:vertical { display: none !important; }
|
|
104
|
+
._hsb-x { scrollbar-width: none !important; }
|
|
105
|
+
._hsb-y { scrollbar-width: none !important; }
|
|
106
|
+
${kf.length?`:root{${kf.map(h=>`--${h.name}:${h.val}`).join(";")}}`:""}
|
|
107
|
+
${a.cssRuleSets.join(o)}`}
|
|
108
|
+
${p}
|
|
109
|
+
${m}`}return""}var S1={};function v1(a){var r;const i={};for(const o in a){const u=a[o];if(o==="family"||o==="face")i[o]=u;else{i[o]={};for(const f in u){let m=u[f];((r=m.val)==null?void 0:r[0])==="$"&&(m=m.val),i[o][`$${f}`]=m}}}return i}function _1(a){if(!S1.TAMAGUI_DID_OUTPUT_CSS){const i=[];for(const r in a)if(r!=="face"){if(r==="family"){const o=a[r];Lf(o),i.push(Uf(o))}else for(const o in a[r])if(typeof a[r][o]!="string"){const u=a[r][o];Lf(u),i.push(Uf(u))}}return i}return[]}var E1={};function T1(a){return new Set(["size","space","radius"]).has(a)}function A1(a){iE(a),yE(a)}function N1(a){var de,we;const i=Cb();i&&(a={...i,...a});const r={},o=Eo(a.tokens||{});if(a.tokens){const ie={};for(const se in o){r[se]={},ie[se]={};const _e=o[se];for(const Ee in _e){const De=_e[Ee],L=`$${Ee}`;r[se][L]=De,ie[se][L]=De,ie[se][Ee]=De}}}let u;if(a.themes){const ie=Object.keys(a.themes).length===0;ie&&!E1.TAMAGUI_DID_OUTPUT_CSS&&(u=tT(ie,r))}let f=null,m;if(a.fonts){const ie=Object.fromEntries(Object.entries(a.fonts).map(([se,_e])=>[se,Eo(_e,"f",!0)]));m=(()=>{const se={};for(const _e in ie){const Ee=ie[_e],De=v1(Ee);se[`$${_e}`]=De,!f&&De.size&&(f=new Set(Object.keys(De.size)))}return se})()}const p={},h=(()=>{const ie=Object.keys(o).sort();for(const De of ie){const L=Object.keys(o[De]).sort();for(const W of L){const P=o[De][W];p[`$${De}.${W}`]=P}}const se=p1(h1(o,T1),g1(m,_1)),_e=a.themes,Ee=u??x1(_e,o.color);return{themes:o1(Ee),cssRuleSets:se,getThemeRulesSets(){return b1(Ee,a)}}})(),g=a.shorthands||{},y={...R1,...g},S={value:-1},_=(ie={})=>y1(h,ie,S),E=ie=>_({...ie,sinceLastCall:!0}),O=(de=a.settings)==null?void 0:de.defaultFont,M=(()=>{let ie=O;return(ie==null?void 0:ie[0])==="$"&&(ie=ie.slice(1)),ie})(),x=((we=a.settings)==null?void 0:we.defaultPosition)||"static",N=a.defaultProps||{};x!=="static"&&(N.View={...N.View,position:x});const D=M?`$${M}`:"",w=a.animations,X=So(w),I={fonts:{},onlyAllowShorthands:!1,fontLanguages:[],media:{},...a,animations:X??w??d1,animationDrivers:X!==null&&X!==w?w:void 0,defaultProps:N,settings:{webContainerType:"inline-size",...a.settings},tokens:o,shorthands:y,userShorthands:g,inverseShorthands:y?Object.fromEntries(Object.entries(y).map(([ie,se])=>[se,ie])):{},themes:h.themes,fontsParsed:m||{},themeConfig:h,tokensParsed:r,parsed:!0,getNewCSS:E,getCSS:_,defaultFont:M,fontSizeTokens:f||new Set,specificTokens:p,defaultFontToken:D};return A1(I),I}function x1(a,i){const r=[],o=new Map,u=Object.keys(a).sort();for(const f of u){const m=f.startsWith("dark")?"dark":f.startsWith("light")?"light":"",p=a[f],h=m+JSON.stringify(p);if(o.has(h)){o.get(h).names.push(f);continue}const g={...i,...p};for(const S in g)u1(g,S);const y={names:[f],theme:g};r.push(y),o.set(h,y)}return r}const R1={bblr:"borderBottomLeftRadius",bbrr:"borderBottomRightRadius",bbs:"borderBottomStyle",bls:"borderLeftStyle",brc:"borderRightColor",brs:"borderRightStyle",brw:"borderRightWidth",bs:"borderStyle",btc:"borderTopColor",btlr:"borderTopLeftRadius",btrr:"borderTopRightRadius",bts:"borderTopStyle",btw:"borderTopWidth",bw:"borderWidth",bxs:"boxSizing",bxsh:"boxShadow",col:"color",cur:"cursor",dsp:"display",fb:"flexBasis",fd:"flexDirection",ff:"fontFamily",fs:"fontSize",fst:"fontStyle",fw:"fontWeight",fwr:"flexWrap",lh:"lineHeight",ls:"letterSpacing",o:"opacity",ov:"overflow",ox:"overflowX",oy:"overflowY",pe:"pointerEvents",pos:"position",td:"textDecorationLine",tr:"transform",tt:"textTransform",va:"verticalAlign",wb:"wordBreak",ws:"whiteSpace",ww:"wordWrap"};var O1={};function M1(a){return Eo(a,O1.TAMAGUI_TOKEN_PREFIX??"t")}const C1=vy({acceptsClassName:!0,validStyles:Wf});let rf="";function w1({children:a,theme:i,isRootRoot:r,passThrough:o,style:u}){const[f,m]=Ut.useState(!r);if(Ut.useEffect(()=>{f||m(!0)},[]),!rf){const g=ba().defaultFont;g&&(rf=`font_${g}`)}const p=Z.jsx("span",{style:u,className:`_dsp_contents ${f?"":"t_unmounted"} ${rf}`,children:a});return r?p:Z.jsx(Ui,{passThrough:o,contain:!0,forceClassName:!0,name:i,children:p})}const D1=a=>{"use no memo";const i=Pn("addThemeClassName");oa(()=>{if(i===!1)return;const o=`${Ob}${a.defaultTheme}`,u=Pn("addThemeClassName")==="html"?document.documentElement:document.body;return u.classList.add(o),()=>{u.classList.remove(o)}},[a.defaultTheme,i]);const r=i===void 0;return Z.jsx(Ui,{className:a.className,name:a.defaultTheme,forceClassName:r,_isRoot:ee.useId,children:a.children})};let qp,Ip;function z1(a){return a!==Ip&&(Ip=a,qp=a!=null&&a.themes?Object.keys(a.themes)[0]:void 0),qp}function B1({children:a,disableInjectCSS:i,config:r,className:o,defaultTheme:u,reset:f,insets:m}){const p=u||z1(r)||"light";oa(()=>{sT(),Ub()},[]);const h=Ut.useMemo(()=>m,[m==null?void 0:m.top,m==null?void 0:m.right,m==null?void 0:m.bottom,m==null?void 0:m.left]),g=Ut.useMemo(()=>So(r==null?void 0:r.animations),[r==null?void 0:r.animations]);ee.useEffect(()=>{var S;(S=g==null?void 0:g.onMount)==null||S.call(g)},[]);let y=Z.jsx(oo.Provider,{animationDriver:g,insets:h,children:Z.jsx(D1,{defaultTheme:p,reset:f,className:o,children:Z.jsx(w1,{theme:p,isRootRoot:!0,children:a})})});return Pn("disableSSR")&&(y=Z.jsx(LT,{enabled:!0,children:y})),Z.jsxs(Z.Fragment,{children:[y,r&&!i&&Z.jsx("style",{precedence:"default",href:"tamagui-css",children:r.getCSS()},"tamagui-css")]})}const Yp={maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},L1=vy({componentName:"Text",acceptsClassName:!0,isText:!0,defaultProps:void 0,inlineWhenUnflattened:new Set(["fontFamily"]),inlineProps:new Set(["maxFontSizeMultiplier"]),variants:{numberOfLines:{1:Yp,":number":a=>a>=1?{maxWidth:"100%",WebkitLineClamp:a,WebkitBoxOrient:"vertical",display:"-webkit-box",overflow:"hidden"}:null},ellipsis:{true:Yp}},validStyles:{...Wf,...Zb}});var Ey={};const To=new WeakMap,sd=new WeakMap,Ao=new Set,Li=new WeakMap,U1=()=>globalThis.__TAMAGUI_ONLAYOUT_PRETRANSFORM===!0||Ey.TAMAGUI_ONLAYOUT_PRETRANSFORM==="1",k1={},H1=ee.createContext(""),Ty=typeof IntersectionObserver<"u";let gl=null;const Yl=new WeakMap;let jf=!0;const mo=new Map;function $1(){jf&&(jf=!1,mo&&(mo.forEach(a=>a()),mo.clear()))}function Vp(){!Ty||gl||(gl=new IntersectionObserver(a=>{for(let i=0;i<a.length;i++){const r=a[i],o=r.target;Li.get(o)!==r.isIntersecting&&Li.set(o,r.isIntersecting)}},{threshold:0}))}function Kp(a,i){return a.x===i.x&&a.y===i.y&&a.width===i.width&&a.height===i.height}if(Ty){let a=function(){return r||(r=new IntersectionObserver(O=>{f=Math.round(performance.now()-u);for(let M=0;M<O.length;M++)i.set(O[M].target,O[M].boundingClientRect);o&&(o(!0),o=null)},{threshold:0}),r)};const i=new WeakMap;let r=null,o=null,u=0,f=0;async function m(O){const M=To.get(O);if(typeof M!="function")return;const x=O.parentElement;if(!x)return;let N,D;if(N=i.get(O),D=i.get(x),!N||!D)return;const w=Yl.get(O),X=Yl.get(x),J=!w||!Kp(w,N),K=!X||!Kp(X,D);if(J||K){Yl.set(O,N),Yl.set(x,D);const ae=Gf(N,D,O);jf?mo.set(O,()=>M(ae)):M(ae)}}const p=typeof requestAnimationFrame<"u"?requestAnimationFrame:void 0,h=Ey.TAMAGUI_LAYOUT_FRAME_SKIP,g=h?+h:10,y=20;let S=g,_=0;async function E(){if(_++%S!==0){p?p(E):setTimeout(E,16);return}_>=Number.MAX_SAFE_INTEGER&&(_=0);{const O=[],M=new Set;for(const x of Ao){const N=x.parentElement;if(!(N instanceof HTMLElement)){ho(x);continue}const D=sd.get(x);D&&k1[D]===!0||Li.get(x)!==!1&&(O.push(x),M.add(N))}if(O.length>0){const x=a();u=performance.now();for(let N=0;N<O.length;N++)x.observe(O[N]);for(const N of M)x.observe(N);await new Promise(N=>{o=N});for(let N=0;N<O.length;N++)x.unobserve(O[N]);for(const N of M)x.unobserve(N);f>50?S=Math.min(S+2,y):f<20&&(S=Math.max(S-1,g));for(let N=0;N<O.length;N++)m(O[N])}}p?p(E):setTimeout(E,16)}E()}const Gf=(a,i,r)=>({nativeEvent:{layout:Ay(a,i,r),target:a},timeStamp:Date.now()}),j1=a=>({width:a.offsetWidth,height:a.offsetHeight}),Ay=(a,i,r)=>{const{left:o,top:u}=a,f=o-i.left,m=u-i.top,{width:p,height:h}=U1()&&r?j1(r):{width:a.width,height:a.height};return{x:f,y:m,width:p,height:h,pageX:a.left,pageY:a.top}};function ho(a){Ao.delete(a),To.delete(a),sd.delete(a),Yl.delete(a),Li.delete(a),gl&&gl.unobserve(a)}const ro=new WeakMap;function G1(a,i){var u;const r=ee.useContext(H1),o=Xp((u=a.current)==null?void 0:u.host);o&&i&&(To.set(o,i),sd.set(o,r)),oa(()=>{var S;if(!i)return;const f=Xp((S=a.current)==null?void 0:S.host),m=ro.get(a);if(f===m||(m&&ho(m),ro.set(a,f),!f))return;Ao.add(f),Vp(),gl&&(gl.observe(f),Li.set(f,!0));const p=To.get(f);if(typeof p!="function")return;const h=f.parentElement;if(!h)return;const g=f.getBoundingClientRect(),y=h.getBoundingClientRect();Yl.set(f,g),Yl.set(h,y),p(Gf(g,y,f))}),oa(()=>{var p;if(!i)return;const f=(p=a.current)==null?void 0:p.host;if(!f)return;Ao.add(f),Vp(),gl&&(gl.observe(f),Li.set(f,!0));const m=f.parentNode;return m&&i(Gf(f.getBoundingClientRect(),m.getBoundingClientRect(),f)),()=>{ho(f);const h=ro.get(a);h&&h!==f&&ho(h),ro.delete(a)}},[a,!!i])}function Xp(a){if(!(typeof HTMLElement>"u"))return a instanceof HTMLElement?a:void 0}const Zp=a=>new Promise(i=>{if(!a||a.nodeType!==1)return i(!1);const r=new IntersectionObserver(o=>(r.disconnect(),i(o[0].boundingClientRect)),{threshold:0});r.observe(a)}),rd=async(a,i)=>{const r=i||(a==null?void 0:a.parentElement);if(r instanceof HTMLElement){const[o,u]=await Promise.all([Zp(a),Zp(r)]);if(u&&o)return Ay(o,u,a)}return null},q1=async(a,i)=>{const r=await rd(a,a.parentNode instanceof HTMLElement?a.parentNode:null);return r&&(i==null||i(r.x,r.y,r.width,r.height,r.pageX,r.pageY)),r};function I1(a){return i=>q1(a,i)}const Y1=async(a,i)=>{const r=await rd(a,null);return r&&(i==null||i(r.pageX,r.pageY,r.width,r.height)),r},V1=a=>i=>Y1(a,i),K1=async(a,i,r)=>{const o=await rd(a,i);return o&&(r==null||r(o.x,o.y,o.width,o.height,o.pageX,o.pageY)),o};function X1(a){return(i,r)=>K1(a,i,r)}function Z1(){return null}const Q1=a=>(oa(()=>{$1()},[]),Z.jsx(B1,{...a})),F1=a=>N1(a);DT({getBaseViews:Z1,setElementProps:a=>{a&&!a.measure&&(a.measure||(a.measure=I1(a)),a.measureInWindow||(a.measureInWindow=V1(a)),a.measureLayout||(a.measureLayout=X1(a)))},usePropsTransform(a,i,r,o){{const u=typeof a=="string",{onMoveShouldSetResponder:f,onMoveShouldSetResponderCapture:m,onResponderEnd:p,onResponderGrant:h,onResponderMove:g,onResponderReject:y,onResponderRelease:S,onResponderStart:_,onResponderTerminate:E,onResponderTerminationRequest:O,onScrollShouldSetResponder:M,onScrollShouldSetResponderCapture:x,onSelectionChangeShouldSetResponder:N,onSelectionChangeShouldSetResponderCapture:D,onStartShouldSetResponder:w,onStartShouldSetResponderCapture:X,collapsable:J,focusable:K,accessible:ae,accessibilityDisabled:I,onLayout:de,hrefAttrs:we,...ie}=i;if((o||u)&&G1(r,u?de:void 0),u){if(ie.href&&we){const{download:se,rel:_e,target:Ee}=we;se!=null&&(ie.download=se),_e&&(ie.rel=_e),typeof Ee=="string"&&(ie.target=Ee.charAt(0)!=="_"?`_${Ee}`:Ee)}return ie}}}});const en=C1,kt=L1,dl=Co("dark",{}),W1={0:0,1:4,2:8,3:12,4:16,5:24,6:32,true:8},J1={0:0,1:20,2:28,3:36,4:44,true:28},P1={0:0,1:3,2:6,3:9,true:3},eA={0:0,1:100,2:200,true:0},tA=M1({space:W1,size:J1,radius:P1,zIndex:eA,color:{white:"#ffffff",black:"#000000",accent:dl.accent??"rgb(215,119,87)",success:dl.success??"",error:dl.error??"",warning:dl.warning??"",permission:dl.permission??"",planMode:dl.planMode??"",autoAccept:dl.autoAccept??"",bashPink:dl.bashPink??""}}),nA=Co("dark",{}),aA=Co("light",{});function Qp(a,i){return{background:i.background,color:i.color,borderColor:i.borderColor,accent:a.accent??"",success:a.success??"",error:a.error??"",warning:a.warning??"",permission:a.permission??"",planMode:a.planMode??"",autoAccept:a.autoAccept??"",bashPink:a.bashPink??"",diffAddedBg:a.diffAddedBg??"",diffRemovedBg:a.diffRemovedBg??"",diffAddedWordBg:a.diffAddedWordBg??"",diffRemovedWordBg:a.diffRemovedWordBg??"",userMessageBg:a.userMessageBg??""}}const lA={dark:Qp(nA,{background:"#000000",color:"#ffffff",borderColor:"#555555"}),light:Qp(aA,{background:"#ffffff",color:"#000000",borderColor:"#cccccc"})},iA=F1({tokens:tA,themes:lA,shorthands:{p:"padding",px:"paddingHorizontal",py:"paddingVertical",m:"margin",f:"flex",w:"width",h:"height",bg:"backgroundColor"},media:{sm:{maxWidth:860},gtSm:{minWidth:861}},settings:{disableSSR:!0}});function No({label:a,onPress:i,color:r,disabled:o=!1,fontSize:u=13}){return Z.jsx(en,{tag:"button",onPress:o?void 0:i,cursor:o?"default":"pointer",opacity:o?.5:1,borderWidth:1,borderColor:r,borderRadius:6,paddingHorizontal:12,paddingVertical:6,backgroundColor:"transparent",hoverStyle:o?{}:{opacity:.7},children:Z.jsx(kt,{color:r,fontWeight:"600",fontSize:u,children:a})})}function sA(a){return ee.useSyncExternalStore(a.subscribe,a.getState,a.getState)}function rA(a){return ee.useSyncExternalStore(a.subscribe,a.getSnapshot,a.getSnapshot),a.lines}const Kl="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";function oA(a,i){return a.ok===void 0?i.accent:a.ok?i.success:i.error}function cA(a,i){const r=__[a];return r?i[r]:void 0}function uA(a,i){if(a==="add")return i.diffAddedBg;if(a==="remove")return i.diffRemovedBg}function fA(a,i){if(a==="add")return i.diffAddedWordBg;if(a==="remove")return i.diffRemovedWordBg}function of(a){return`${a.provider}/${a.model}`}function dA(a){var i;return a.key!=="Enter"||a.shiftKey?!1:((i=a.nativeEvent)==null?void 0:i.isComposing)!==!0}function mA(){return[{key:"allow",label:"Allow once",allow:!0,remember:!1,tone:"success"},{key:"always",label:"Allow & don't ask",allow:!0,remember:!0,tone:"accent"},{key:"deny",label:"Deny",allow:!1,remember:!1,tone:"error"}]}function hA(a,i){return i[a]}function gA(a,i){return mA().map(r=>({key:r.key,label:r.label,color:hA(r.tone,a),onPress:()=>i(r.allow,r.remember)}))}function pA(a){switch(a){case"connecting":return"connecting…";case"ready":return"ready";case"closed":return"disconnected";case"error":return"error"}}function bA(a,i){switch(a){case"ready":return i.success;case"connecting":return i.warning;case"error":return i.error;case"closed":return i.synComment}}function yA(a){return`${a.inputTokens}→${a.outputTokens} tok · $${a.costUsd.toFixed(4)}`}const xo=k0();function Ny(a){return Co(a,{})}const xy=ee.createContext(Ny("dark")),SA=xy.Provider;function Ha(){return ee.useContext(xy)}function vA({models:a,selected:i,disabled:r,onSelect:o}){const u=Ha();return a.length===0?null:Z.jsx("select",{value:i?of(i):"",disabled:r,onChange:f=>{const m=a.find(p=>of(p)===f.target.value);m&&o(m)},style:{fontFamily:Kl,fontSize:13,padding:"4px 8px",borderRadius:6,background:"transparent",color:"inherit",border:`1px solid ${u.synComment??"#555"}`},children:a.map(f=>{const m=of(f);return Z.jsx("option",{value:m,style:{color:"#000"},children:m},m)})})}function Ry({diff:a,anchored:i}){const{rows:r}=L_(a,{anchored:i});return Z.jsx(en,{borderRadius:4,overflow:"hidden",marginTop:4,children:r.map((o,u)=>Z.jsx(_A,{row:o,anchored:i},u))})}function _A({row:a,anchored:i}){const r=Ha();if(a.kind==="elision")return Z.jsx(kt,{color:r.synComment,fontSize:12,paddingHorizontal:8,style:{fontFamily:Kl},children:a.text});const o=a.kind==="add"?"+":"-";return Z.jsxs(en,{flexDirection:"row",backgroundColor:uA(a.kind,r),paddingHorizontal:8,children:[i?Z.jsxs(kt,{color:r.synComment,fontSize:12,style:{fontFamily:Kl,userSelect:"none"},children:[String(a.lineNo??"").padStart(4)," "]}):null,Z.jsxs(kt,{flex:1,fontSize:12,style:{fontFamily:Kl,whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:[o," ",a.words?a.words.map((u,f)=>Z.jsx(kt,{backgroundColor:u.changed?fA(a.kind,r):void 0,children:u.text},f)):a.text]})]})}function EA({pending:a,onAnswer:i}){const r=Ha(),o=Tb(a.summary),u=o?a.summary.slice(0,a.summary.indexOf(o)).trimEnd():a.summary;return Z.jsxs(en,{borderWidth:1,borderColor:r.permission,borderRadius:8,padding:12,gap:8,backgroundColor:"$background",children:[Z.jsxs(kt,{color:r.permission,fontWeight:"700",children:["Permission required · ",_b(a.tool)," (",a.category,")"]}),u?Z.jsx(kt,{color:"$color",style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:u}):null,o?Z.jsx(Ry,{diff:o,anchored:a.tool==="write"}):null,Z.jsx(en,{flexDirection:"row",gap:8,flexWrap:"wrap",children:gA(r,i).map(f=>Z.jsx(No,{label:f.label,color:f.color,onPress:f.onPress},f.key))})]})}function TA({busy:a,disabled:i,onSubmit:r,onAbort:o}){const u=Ha(),[f,m]=ee.useState(""),p=()=>{const h=f.trim();!h||a||i||(r(h),m(""))};return Z.jsxs(en,{flexDirection:"row",gap:8,alignItems:"flex-end",children:[Z.jsx("textarea",{value:f,rows:2,disabled:i,onChange:h=>m(h.target.value),onKeyDown:h=>{dA(h)&&(h.preventDefault(),p())},placeholder:i?"connecting…":"Message the agent — Enter to send, Shift+Enter for newline",style:{flex:1,resize:"vertical",fontFamily:Kl,fontSize:14,padding:8,borderRadius:8,background:"transparent",color:"inherit",border:`1px solid ${u.synComment??"#555"}`,outline:"none"}}),a?Z.jsx(No,{label:"Stop",color:u.error,onPress:o}):Z.jsx(No,{label:"Send",color:u.accent,onPress:p,disabled:i})]})}function AA({state:a}){const i=Ha(),r=bA(a.status,i);return Z.jsxs(en,{flexDirection:"row",gap:12,alignItems:"center",flexWrap:"wrap",children:[Z.jsxs(en,{flexDirection:"row",gap:4,alignItems:"center",children:[Z.jsx(kt,{color:r,fontSize:12,children:xo.dot}),Z.jsx(kt,{color:r,fontSize:12,children:pA(a.status)})]}),a.busy?Z.jsxs(kt,{color:i.accent,fontSize:12,children:[xo.thinking," working…"]}):null,a.lastUsage?Z.jsx(kt,{color:i.synComment,fontSize:12,children:yA(a.lastUsage)}):null,a.lastError?Z.jsxs(kt,{color:i.error,fontSize:12,children:["⚠ ",a.lastError]}):null]})}function NA({code:a,lang:i,fontSize:r=13}){const o=Ha(),u=N_(a,i);return Z.jsx(kt,{fontSize:r,style:{fontFamily:Kl,whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:u.map((f,m)=>Z.jsx(kt,{color:cA(f.scope,o),children:f.text},m))})}function xA({lines:a}){return Z.jsx(en,{gap:6,paddingVertical:8,children:a.map((i,r)=>Z.jsx(RA,{line:i},r))})}function RA({line:a}){switch(a.kind){case"user":return Z.jsx(OA,{text:a.text});case"assistant":return Z.jsx(MA,{text:a.text});case"tool":return Z.jsx(CA,{line:a});case"error":return Z.jsx(Fp,{text:a.text,role:"error"});case"info":return Z.jsx(Fp,{text:a.text,role:"info"})}}function OA({text:a}){const i=Ha();return Z.jsx(en,{alignSelf:"flex-end",maxWidth:"85%",backgroundColor:i.userMessageBg,borderRadius:10,paddingHorizontal:12,paddingVertical:8,children:Z.jsx(kt,{color:"$color",style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:a})})}function MA({text:a}){return Z.jsx(kt,{color:"$color",style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:a})}function Fp({text:a,role:i}){const r=Ha();return Z.jsx(kt,{color:i==="error"?r.error:r.synComment,style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:a})}function CA({line:a}){const i=Ha(),r=_b(a.toolName??"");return Z.jsxs(en,{gap:2,children:[Z.jsxs(en,{flexDirection:"row",gap:6,alignItems:"baseline",children:[Z.jsx(kt,{color:oA(a,i),children:xo.dot}),Z.jsx(kt,{color:"$color",fontWeight:"600",children:r}),a.text?Z.jsx(kt,{color:i.synComment,style:{fontFamily:Kl,overflowWrap:"anywhere"},fontSize:13,children:a.text}):null]}),a.diff||a.result?Z.jsxs(en,{flexDirection:"row",gap:6,paddingLeft:4,children:[Z.jsx(kt,{color:i.synComment,children:xo.branch}),Z.jsxs(en,{flex:1,gap:2,children:[a.diff?Z.jsx(Ry,{diff:a.diff,anchored:a.anchored===!0}):null,a.result?Z.jsx(NA,{code:a.result,fontSize:12}):null]})]}):null]})}function wA({client:a,defaultMode:i="dark"}){const[r,o]=ee.useState(i),u=sA(a.store),f=rA(a.view),m=Ny(r),p=u.busy||u.status!=="ready";return Z.jsx(Q1,{config:iA,defaultTheme:r,children:Z.jsx(Ui,{name:r,children:Z.jsx(SA,{value:m,children:Z.jsxs(en,{backgroundColor:"$background",flexDirection:"column",style:{height:"100vh"},children:[Z.jsxs(en,{flexDirection:"row",alignItems:"center",gap:12,paddingHorizontal:16,paddingVertical:10,borderBottomWidth:1,borderColor:"$borderColor",flexWrap:"wrap",children:[Z.jsx(kt,{color:m.accent,fontWeight:"700",children:"chances"}),Z.jsx(en,{flex:1}),Z.jsx(vA,{models:u.models,selected:u.selected,disabled:p,onSelect:h=>void a.setModel(h)}),Z.jsx(No,{label:r==="dark"?"☀ light":"☾ dark",color:m.synComment,onPress:()=>o(r==="dark"?"light":"dark")})]}),Z.jsx(en,{flex:1,paddingHorizontal:16,style:{overflowY:"auto"},children:Z.jsx(xA,{lines:f})}),Z.jsxs(en,{paddingHorizontal:16,paddingVertical:10,gap:8,borderTopWidth:1,borderColor:"$borderColor",children:[u.pendingPermission?Z.jsx(EA,{pending:u.pendingPermission,onAnswer:(h,g)=>a.answerPermission(h,g)}):null,Z.jsx(TA,{busy:u.busy,disabled:u.status!=="ready",onSubmit:h=>a.prompt(h),onAbort:()=>a.abort()}),Z.jsx(AA,{state:u})]})]})})})})}function DA(){return`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}/rpc`}function Wp(){const a=ee.useMemo(()=>new W_(J_(DA())),[]);return ee.useEffect(()=>()=>a.close(),[a]),Z.jsx(wA,{client:a})}function zA(){return Z.jsx(D0,{children:Z.jsxs(M0,{children:[Z.jsx(uf,{path:"/",element:Z.jsx(Wp,{})}),Z.jsx(uf,{path:"*",element:Z.jsx(Wp,{})})]})})}const Oy=document.getElementById("root");if(!Oy)throw new Error("missing #root");qv.createRoot(Oy).render(Z.jsx(zA,{}));
|
|
110
|
+
//# sourceMappingURL=index-DGs1rWta.js.map
|