chisel-studio 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2704 @@
1
+ function p1(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function dh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fh={exports:{}},Gi={},ph={exports:{}},le={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var ol=Symbol.for("react.element"),m1=Symbol.for("react.portal"),h1=Symbol.for("react.fragment"),g1=Symbol.for("react.strict_mode"),_1=Symbol.for("react.profiler"),y1=Symbol.for("react.provider"),v1=Symbol.for("react.context"),x1=Symbol.for("react.forward_ref"),w1=Symbol.for("react.suspense"),b1=Symbol.for("react.memo"),k1=Symbol.for("react.lazy"),qf=Symbol.iterator;function C1(e){return e===null||typeof e!="object"?null:(e=qf&&e[qf]||e["@@iterator"],typeof e=="function"?e:null)}var mh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hh=Object.assign,gh={};function Wo(e,t,n){this.props=e,this.context=t,this.refs=gh,this.updater=n||mh}Wo.prototype.isReactComponent={};Wo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Wo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _h(){}_h.prototype=Wo.prototype;function ed(e,t,n){this.props=e,this.context=t,this.refs=gh,this.updater=n||mh}var td=ed.prototype=new _h;td.constructor=ed;hh(td,Wo.prototype);td.isPureReactComponent=!0;var ep=Array.isArray,yh=Object.prototype.hasOwnProperty,nd={current:null},vh={key:!0,ref:!0,__self:!0,__source:!0};function xh(e,t,n){var r,o={},s=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)yh.call(t,r)&&!vh.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var c=Array(i),d=0;d<i;d++)c[d]=arguments[d+2];o.children=c}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:ol,type:e,key:s,ref:l,props:o,_owner:nd.current}}function S1(e,t){return{$$typeof:ol,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function rd(e){return typeof e=="object"&&e!==null&&e.$$typeof===ol}function E1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var tp=/\/+/g;function Ua(e,t){return typeof e=="object"&&e!==null&&e.key!=null?E1(""+e.key):t.toString(36)}function ql(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case ol:case m1:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Ua(l,0):r,ep(o)?(n="",e!=null&&(n=e.replace(tp,"$&/")+"/"),ql(o,t,n,"",function(d){return d})):o!=null&&(rd(o)&&(o=S1(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(tp,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",ep(e))for(var i=0;i<e.length;i++){s=e[i];var c=r+Ua(s,i);l+=ql(s,t,n,c,o)}else if(c=C1(e),typeof c=="function")for(e=c.call(e),i=0;!(s=e.next()).done;)s=s.value,c=r+Ua(s,i++),l+=ql(s,t,n,c,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function bl(e,t,n){if(e==null)return e;var r=[],o=0;return ql(e,r,"","",function(s){return t.call(n,s,o++)}),r}function N1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var st={current:null},ei={transition:null},j1={ReactCurrentDispatcher:st,ReactCurrentBatchConfig:ei,ReactCurrentOwner:nd};function wh(){throw Error("act(...) is not supported in production builds of React.")}le.Children={map:bl,forEach:function(e,t,n){bl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return bl(e,function(){t++}),t},toArray:function(e){return bl(e,function(t){return t})||[]},only:function(e){if(!rd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};le.Component=Wo;le.Fragment=h1;le.Profiler=_1;le.PureComponent=ed;le.StrictMode=g1;le.Suspense=w1;le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j1;le.act=wh;le.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=hh({},e.props),o=e.key,s=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,l=nd.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(c in t)yh.call(t,c)&&!vh.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&i!==void 0?i[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){i=Array(c);for(var d=0;d<c;d++)i[d]=arguments[d+2];r.children=i}return{$$typeof:ol,type:e.type,key:o,ref:s,props:r,_owner:l}};le.createContext=function(e){return e={$$typeof:v1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:y1,_context:e},e.Consumer=e};le.createElement=xh;le.createFactory=function(e){var t=xh.bind(null,e);return t.type=e,t};le.createRef=function(){return{current:null}};le.forwardRef=function(e){return{$$typeof:x1,render:e}};le.isValidElement=rd;le.lazy=function(e){return{$$typeof:k1,_payload:{_status:-1,_result:e},_init:N1}};le.memo=function(e,t){return{$$typeof:b1,type:e,compare:t===void 0?null:t}};le.startTransition=function(e){var t=ei.transition;ei.transition={};try{e()}finally{ei.transition=t}};le.unstable_act=wh;le.useCallback=function(e,t){return st.current.useCallback(e,t)};le.useContext=function(e){return st.current.useContext(e)};le.useDebugValue=function(){};le.useDeferredValue=function(e){return st.current.useDeferredValue(e)};le.useEffect=function(e,t){return st.current.useEffect(e,t)};le.useId=function(){return st.current.useId()};le.useImperativeHandle=function(e,t,n){return st.current.useImperativeHandle(e,t,n)};le.useInsertionEffect=function(e,t){return st.current.useInsertionEffect(e,t)};le.useLayoutEffect=function(e,t){return st.current.useLayoutEffect(e,t)};le.useMemo=function(e,t){return st.current.useMemo(e,t)};le.useReducer=function(e,t,n){return st.current.useReducer(e,t,n)};le.useRef=function(e){return st.current.useRef(e)};le.useState=function(e){return st.current.useState(e)};le.useSyncExternalStore=function(e,t,n){return st.current.useSyncExternalStore(e,t,n)};le.useTransition=function(){return st.current.useTransition()};le.version="18.3.1";ph.exports=le;var u=ph.exports;const ct=dh(u),Ki=p1({__proto__:null,default:ct},[u]);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var P1=u,R1=Symbol.for("react.element"),T1=Symbol.for("react.fragment"),L1=Object.prototype.hasOwnProperty,I1=P1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A1={key:!0,ref:!0,__self:!0,__source:!0};function bh(e,t,n){var r,o={},s=null,l=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)L1.call(t,r)&&!A1.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:R1,type:e,key:s,ref:l,props:o,_owner:I1.current}}Gi.Fragment=T1;Gi.jsx=bh;Gi.jsxs=bh;fh.exports=Gi;var a=fh.exports,Hc={},kh={exports:{}},Ct={},Ch={exports:{}},Sh={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(E,O){var B=E.length;E.push(O);e:for(;0<B;){var Q=B-1>>>1,he=E[Q];if(0<o(he,O))E[Q]=O,E[B]=he,B=Q;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var O=E[0],B=E.pop();if(B!==O){E[0]=B;e:for(var Q=0,he=E.length,Qt=he>>>1;Q<Qt;){var Gt=2*(Q+1)-1,On=E[Gt],Et=Gt+1,gt=E[Et];if(0>o(On,B))Et<he&&0>o(gt,On)?(E[Q]=gt,E[Et]=B,Q=Et):(E[Q]=On,E[Gt]=B,Q=Gt);else if(Et<he&&0>o(gt,B))E[Q]=gt,E[Et]=B,Q=Et;else break e}}return O}function o(E,O){var B=E.sortIndex-O.sortIndex;return B!==0?B:E.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,i=l.now();e.unstable_now=function(){return l.now()-i}}var c=[],d=[],f=1,p=null,m=3,_=!1,w=!1,y=!1,k=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(E){for(var O=n(d);O!==null;){if(O.callback===null)r(d);else if(O.startTime<=E)r(d),O.sortIndex=O.expirationTime,t(c,O);else break;O=n(d)}}function S(E){if(y=!1,v(E),!w)if(n(c)!==null)w=!0,K(N);else{var O=n(d);O!==null&&me(S,O.startTime-E)}}function N(E,O){w=!1,y&&(y=!1,h(L),L=-1),_=!0;var B=m;try{for(v(O),p=n(c);p!==null&&(!(p.expirationTime>O)||E&&!U());){var Q=p.callback;if(typeof Q=="function"){p.callback=null,m=p.priorityLevel;var he=Q(p.expirationTime<=O);O=e.unstable_now(),typeof he=="function"?p.callback=he:p===n(c)&&r(c),v(O)}else r(c);p=n(c)}if(p!==null)var Qt=!0;else{var Gt=n(d);Gt!==null&&me(S,Gt.startTime-O),Qt=!1}return Qt}finally{p=null,m=B,_=!1}}var T=!1,j=null,L=-1,D=5,M=-1;function U(){return!(e.unstable_now()-M<D)}function z(){if(j!==null){var E=e.unstable_now();M=E;var O=!0;try{O=j(!0,E)}finally{O?ee():(T=!1,j=null)}}else T=!1}var ee;if(typeof g=="function")ee=function(){g(z)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,fe=G.port2;G.port1.onmessage=z,ee=function(){fe.postMessage(null)}}else ee=function(){k(z,0)};function K(E){j=E,T||(T=!0,ee())}function me(E,O){L=k(function(){E(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(E){E.callback=null},e.unstable_continueExecution=function(){w||_||(w=!0,K(N))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(E){switch(m){case 1:case 2:case 3:var O=3;break;default:O=m}var B=m;m=O;try{return E()}finally{m=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,O){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var B=m;m=E;try{return O()}finally{m=B}},e.unstable_scheduleCallback=function(E,O,B){var Q=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?Q+B:Q):B=Q,E){case 1:var he=-1;break;case 2:he=250;break;case 5:he=1073741823;break;case 4:he=1e4;break;default:he=5e3}return he=B+he,E={id:f++,callback:O,priorityLevel:E,startTime:B,expirationTime:he,sortIndex:-1},B>Q?(E.sortIndex=B,t(d,E),n(c)===null&&E===n(d)&&(y?(h(L),L=-1):y=!0,me(S,B-Q))):(E.sortIndex=he,t(c,E),w||_||(w=!0,K(N))),E},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(E){var O=m;return function(){var B=m;m=O;try{return E.apply(this,arguments)}finally{m=B}}}})(Sh);Ch.exports=Sh;var O1=Ch.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var M1=u,kt=O1;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Eh=new Set,Os={};function Hr(e,t){To(e,t),To(e+"Capture",t)}function To(e,t){for(Os[e]=t,e=0;e<t.length;e++)Eh.add(t[e])}var En=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uc=Object.prototype.hasOwnProperty,$1=/^[: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]*$/,np={},rp={};function D1(e){return Uc.call(rp,e)?!0:Uc.call(np,e)?!1:$1.test(e)?rp[e]=!0:(np[e]=!0,!1)}function z1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function F1(e,t,n,r){if(t===null||typeof t>"u"||z1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lt(e,t,n,r,o,s,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=l}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qe[e]=new lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var od=/[\-:]([a-z])/g;function sd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(od,sd);Qe[t]=new lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(od,sd);Qe[t]=new lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(od,sd);Qe[t]=new lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new lt(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function ld(e,t,n,r){var o=Qe.hasOwnProperty(t)?Qe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(F1(t,n,o,r)&&(n=null),r||o===null?D1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var In=M1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,kl=Symbol.for("react.element"),io=Symbol.for("react.portal"),ao=Symbol.for("react.fragment"),id=Symbol.for("react.strict_mode"),Vc=Symbol.for("react.profiler"),Nh=Symbol.for("react.provider"),jh=Symbol.for("react.context"),ad=Symbol.for("react.forward_ref"),Yc=Symbol.for("react.suspense"),Xc=Symbol.for("react.suspense_list"),cd=Symbol.for("react.memo"),Yn=Symbol.for("react.lazy"),Ph=Symbol.for("react.offscreen"),op=Symbol.iterator;function os(e){return e===null||typeof e!="object"?null:(e=op&&e[op]||e["@@iterator"],typeof e=="function"?e:null)}var Te=Object.assign,Va;function ws(e){if(Va===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Va=t&&t[1]||""}return`
34
+ `+Va+e}var Ya=!1;function Xa(e,t){if(!e||Ya)return"";Ya=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var o=d.stack.split(`
35
+ `),s=r.stack.split(`
36
+ `),l=o.length-1,i=s.length-1;1<=l&&0<=i&&o[l]!==s[i];)i--;for(;1<=l&&0<=i;l--,i--)if(o[l]!==s[i]){if(l!==1||i!==1)do if(l--,i--,0>i||o[l]!==s[i]){var c=`
37
+ `+o[l].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=l&&0<=i);break}}}finally{Ya=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ws(e):""}function B1(e){switch(e.tag){case 5:return ws(e.type);case 16:return ws("Lazy");case 13:return ws("Suspense");case 19:return ws("SuspenseList");case 0:case 2:case 15:return e=Xa(e.type,!1),e;case 11:return e=Xa(e.type.render,!1),e;case 1:return e=Xa(e.type,!0),e;default:return""}}function Qc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ao:return"Fragment";case io:return"Portal";case Vc:return"Profiler";case id:return"StrictMode";case Yc:return"Suspense";case Xc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jh:return(e.displayName||"Context")+".Consumer";case Nh:return(e._context.displayName||"Context")+".Provider";case ad:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cd:return t=e.displayName||null,t!==null?t:Qc(e.type)||"Memo";case Yn:t=e._payload,e=e._init;try{return Qc(e(t))}catch{}}return null}function W1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qc(t);case 8:return t===id?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ir(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function H1(e){var t=Rh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cl(e){e._valueTracker||(e._valueTracker=H1(e))}function Th(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Rh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Gc(e,t){var n=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function sp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ir(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Lh(e,t){t=t.checked,t!=null&&ld(e,"checked",t,!1)}function Kc(e,t){Lh(e,t);var n=ir(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zc(e,t.type,ir(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Zc(e,t,n){(t!=="number"||hi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bs=Array.isArray;function xo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ir(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Jc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return Te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ip(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(A(92));if(bs(n)){if(1<n.length)throw Error(A(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ir(n)}}function Ih(e,t){var n=ir(t.value),r=ir(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ap(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ah(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function qc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ah(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Sl,Oh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Sl=Sl||document.createElement("div"),Sl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Sl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ms(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ss={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},U1=["Webkit","ms","Moz","O"];Object.keys(Ss).forEach(function(e){U1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ss[t]=Ss[e]})});function Mh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ss.hasOwnProperty(e)&&Ss[e]?(""+t).trim():t+"px"}function $h(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Mh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var V1=Te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function eu(e,t){if(t){if(V1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function tu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nu=null;function ud(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ru=null,wo=null,bo=null;function cp(e){if(e=il(e)){if(typeof ru!="function")throw Error(A(280));var t=e.stateNode;t&&(t=ta(t),ru(e.stateNode,e.type,t))}}function Dh(e){wo?bo?bo.push(e):bo=[e]:wo=e}function zh(){if(wo){var e=wo,t=bo;if(bo=wo=null,cp(e),t)for(e=0;e<t.length;e++)cp(t[e])}}function Fh(e,t){return e(t)}function Bh(){}var Qa=!1;function Wh(e,t,n){if(Qa)return e(t,n);Qa=!0;try{return Fh(e,t,n)}finally{Qa=!1,(wo!==null||bo!==null)&&(Bh(),zh())}}function $s(e,t){var n=e.stateNode;if(n===null)return null;var r=ta(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(A(231,t,typeof n));return n}var ou=!1;if(En)try{var ss={};Object.defineProperty(ss,"passive",{get:function(){ou=!0}}),window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{ou=!1}function Y1(e,t,n,r,o,s,l,i,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(f){this.onError(f)}}var Es=!1,gi=null,_i=!1,su=null,X1={onError:function(e){Es=!0,gi=e}};function Q1(e,t,n,r,o,s,l,i,c){Es=!1,gi=null,Y1.apply(X1,arguments)}function G1(e,t,n,r,o,s,l,i,c){if(Q1.apply(this,arguments),Es){if(Es){var d=gi;Es=!1,gi=null}else throw Error(A(198));_i||(_i=!0,su=d)}}function Ur(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Hh(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 up(e){if(Ur(e)!==e)throw Error(A(188))}function K1(e){var t=e.alternate;if(!t){if(t=Ur(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return up(o),e;if(s===r)return up(o),t;s=s.sibling}throw Error(A(188))}if(n.return!==r.return)n=o,r=s;else{for(var l=!1,i=o.child;i;){if(i===n){l=!0,n=o,r=s;break}if(i===r){l=!0,r=o,n=s;break}i=i.sibling}if(!l){for(i=s.child;i;){if(i===n){l=!0,n=s,r=o;break}if(i===r){l=!0,r=s,n=o;break}i=i.sibling}if(!l)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function Uh(e){return e=K1(e),e!==null?Vh(e):null}function Vh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Vh(e);if(t!==null)return t;e=e.sibling}return null}var Yh=kt.unstable_scheduleCallback,dp=kt.unstable_cancelCallback,Z1=kt.unstable_shouldYield,J1=kt.unstable_requestPaint,Ie=kt.unstable_now,q1=kt.unstable_getCurrentPriorityLevel,dd=kt.unstable_ImmediatePriority,Xh=kt.unstable_UserBlockingPriority,yi=kt.unstable_NormalPriority,ev=kt.unstable_LowPriority,Qh=kt.unstable_IdlePriority,Zi=null,ln=null;function tv(e){if(ln&&typeof ln.onCommitFiberRoot=="function")try{ln.onCommitFiberRoot(Zi,e,void 0,(e.current.flags&128)===128)}catch{}}var Bt=Math.clz32?Math.clz32:ov,nv=Math.log,rv=Math.LN2;function ov(e){return e>>>=0,e===0?32:31-(nv(e)/rv|0)|0}var El=64,Nl=4194304;function ks(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function vi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,l=n&268435455;if(l!==0){var i=l&~o;i!==0?r=ks(i):(s&=l,s!==0&&(r=ks(s)))}else l=n&~o,l!==0?r=ks(l):s!==0&&(r=ks(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Bt(t),o=1<<n,r|=e[n],t&=~o;return r}function sv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Bt(s),i=1<<l,c=o[l];c===-1?(!(i&n)||i&r)&&(o[l]=sv(i,t)):c<=t&&(e.expiredLanes|=i),s&=~i}}function lu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Gh(){var e=El;return El<<=1,!(El&4194240)&&(El=64),e}function Ga(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function sl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bt(t),e[t]=n}function iv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Bt(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function fd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Bt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var _e=0;function Kh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Zh,pd,Jh,qh,eg,iu=!1,jl=[],qn=null,er=null,tr=null,Ds=new Map,zs=new Map,Qn=[],av="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function fp(e,t){switch(e){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":er=null;break;case"mouseover":case"mouseout":tr=null;break;case"pointerover":case"pointerout":Ds.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zs.delete(t.pointerId)}}function ls(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=il(t),t!==null&&pd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function cv(e,t,n,r,o){switch(t){case"focusin":return qn=ls(qn,e,t,n,r,o),!0;case"dragenter":return er=ls(er,e,t,n,r,o),!0;case"mouseover":return tr=ls(tr,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Ds.set(s,ls(Ds.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,zs.set(s,ls(zs.get(s)||null,e,t,n,r,o)),!0}return!1}function tg(e){var t=Nr(e.target);if(t!==null){var n=Ur(t);if(n!==null){if(t=n.tag,t===13){if(t=Hh(n),t!==null){e.blockedOn=t,eg(e.priority,function(){Jh(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 ti(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=au(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nu=r,n.target.dispatchEvent(r),nu=null}else return t=il(n),t!==null&&pd(t),e.blockedOn=n,!1;t.shift()}return!0}function pp(e,t,n){ti(e)&&n.delete(t)}function uv(){iu=!1,qn!==null&&ti(qn)&&(qn=null),er!==null&&ti(er)&&(er=null),tr!==null&&ti(tr)&&(tr=null),Ds.forEach(pp),zs.forEach(pp)}function is(e,t){e.blockedOn===t&&(e.blockedOn=null,iu||(iu=!0,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,uv)))}function Fs(e){function t(o){return is(o,e)}if(0<jl.length){is(jl[0],e);for(var n=1;n<jl.length;n++){var r=jl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(qn!==null&&is(qn,e),er!==null&&is(er,e),tr!==null&&is(tr,e),Ds.forEach(t),zs.forEach(t),n=0;n<Qn.length;n++)r=Qn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Qn.length&&(n=Qn[0],n.blockedOn===null);)tg(n),n.blockedOn===null&&Qn.shift()}var ko=In.ReactCurrentBatchConfig,xi=!0;function dv(e,t,n,r){var o=_e,s=ko.transition;ko.transition=null;try{_e=1,md(e,t,n,r)}finally{_e=o,ko.transition=s}}function fv(e,t,n,r){var o=_e,s=ko.transition;ko.transition=null;try{_e=4,md(e,t,n,r)}finally{_e=o,ko.transition=s}}function md(e,t,n,r){if(xi){var o=au(e,t,n,r);if(o===null)sc(e,t,r,wi,n),fp(e,r);else if(cv(o,e,t,n,r))r.stopPropagation();else if(fp(e,r),t&4&&-1<av.indexOf(e)){for(;o!==null;){var s=il(o);if(s!==null&&Zh(s),s=au(e,t,n,r),s===null&&sc(e,t,r,wi,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else sc(e,t,r,null,n)}}var wi=null;function au(e,t,n,r){if(wi=null,e=ud(r),e=Nr(e),e!==null)if(t=Ur(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Hh(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 wi=e,null}function ng(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(q1()){case dd:return 1;case Xh:return 4;case yi:case ev:return 16;case Qh:return 536870912;default:return 16}default:return 16}}var Kn=null,hd=null,ni=null;function rg(){if(ni)return ni;var e,t=hd,n=t.length,r,o="value"in Kn?Kn.value:Kn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[s-r];r++);return ni=o.slice(e,1<r?1-r:void 0)}function ri(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 Pl(){return!0}function mp(){return!1}function St(e){function t(n,r,o,s,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=l,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(s):s[i]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Pl:mp,this.isPropagationStopped=mp,this}return Te(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=Pl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Pl)},persist:function(){},isPersistent:Pl}),t}var Ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gd=St(Ho),ll=Te({},Ho,{view:0,detail:0}),pv=St(ll),Ka,Za,as,Ji=Te({},ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_d,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!==as&&(as&&e.type==="mousemove"?(Ka=e.screenX-as.screenX,Za=e.screenY-as.screenY):Za=Ka=0,as=e),Ka)},movementY:function(e){return"movementY"in e?e.movementY:Za}}),hp=St(Ji),mv=Te({},Ji,{dataTransfer:0}),hv=St(mv),gv=Te({},ll,{relatedTarget:0}),Ja=St(gv),_v=Te({},Ho,{animationName:0,elapsedTime:0,pseudoElement:0}),yv=St(_v),vv=Te({},Ho,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xv=St(vv),wv=Te({},Ho,{data:0}),gp=St(wv),bv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kv={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"},Cv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cv[e])?!!t[e]:!1}function _d(){return Sv}var Ev=Te({},ll,{key:function(e){if(e.key){var t=bv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ri(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?kv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_d,charCode:function(e){return e.type==="keypress"?ri(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ri(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Nv=St(Ev),jv=Te({},Ji,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_p=St(jv),Pv=Te({},ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_d}),Rv=St(Pv),Tv=Te({},Ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lv=St(Tv),Iv=Te({},Ji,{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}),Av=St(Iv),Ov=[9,13,27,32],yd=En&&"CompositionEvent"in window,Ns=null;En&&"documentMode"in document&&(Ns=document.documentMode);var Mv=En&&"TextEvent"in window&&!Ns,og=En&&(!yd||Ns&&8<Ns&&11>=Ns),yp=" ",vp=!1;function sg(e,t){switch(e){case"keyup":return Ov.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var co=!1;function $v(e,t){switch(e){case"compositionend":return lg(t);case"keypress":return t.which!==32?null:(vp=!0,yp);case"textInput":return e=t.data,e===yp&&vp?null:e;default:return null}}function Dv(e,t){if(co)return e==="compositionend"||!yd&&sg(e,t)?(e=rg(),ni=hd=Kn=null,co=!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 og&&t.locale!=="ko"?null:t.data;default:return null}}var zv={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 xp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zv[e.type]:t==="textarea"}function ig(e,t,n,r){Dh(r),t=bi(t,"onChange"),0<t.length&&(n=new gd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var js=null,Bs=null;function Fv(e){yg(e,0)}function qi(e){var t=po(e);if(Th(t))return e}function Bv(e,t){if(e==="change")return t}var ag=!1;if(En){var qa;if(En){var ec="oninput"in document;if(!ec){var wp=document.createElement("div");wp.setAttribute("oninput","return;"),ec=typeof wp.oninput=="function"}qa=ec}else qa=!1;ag=qa&&(!document.documentMode||9<document.documentMode)}function bp(){js&&(js.detachEvent("onpropertychange",cg),Bs=js=null)}function cg(e){if(e.propertyName==="value"&&qi(Bs)){var t=[];ig(t,Bs,e,ud(e)),Wh(Fv,t)}}function Wv(e,t,n){e==="focusin"?(bp(),js=t,Bs=n,js.attachEvent("onpropertychange",cg)):e==="focusout"&&bp()}function Hv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qi(Bs)}function Uv(e,t){if(e==="click")return qi(t)}function Vv(e,t){if(e==="input"||e==="change")return qi(t)}function Yv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:Yv;function Ws(e,t){if(Ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Uc.call(t,o)||!Ut(e[o],t[o]))return!1}return!0}function kp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cp(e,t){var n=kp(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=kp(n)}}function ug(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ug(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dg(){for(var e=window,t=hi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hi(e.document)}return t}function vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Xv(e){var t=dg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ug(n.ownerDocument.documentElement,n)){if(r!==null&&vd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Cp(n,s);var l=Cp(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Qv=En&&"documentMode"in document&&11>=document.documentMode,uo=null,cu=null,Ps=null,uu=!1;function Sp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uu||uo==null||uo!==hi(r)||(r=uo,"selectionStart"in r&&vd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ps&&Ws(Ps,r)||(Ps=r,r=bi(cu,"onSelect"),0<r.length&&(t=new gd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=uo)))}function Rl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fo={animationend:Rl("Animation","AnimationEnd"),animationiteration:Rl("Animation","AnimationIteration"),animationstart:Rl("Animation","AnimationStart"),transitionend:Rl("Transition","TransitionEnd")},tc={},fg={};En&&(fg=document.createElement("div").style,"AnimationEvent"in window||(delete fo.animationend.animation,delete fo.animationiteration.animation,delete fo.animationstart.animation),"TransitionEvent"in window||delete fo.transitionend.transition);function ea(e){if(tc[e])return tc[e];if(!fo[e])return e;var t=fo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in fg)return tc[e]=t[n];return e}var pg=ea("animationend"),mg=ea("animationiteration"),hg=ea("animationstart"),gg=ea("transitionend"),_g=new Map,Ep="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function fr(e,t){_g.set(e,t),Hr(t,[e])}for(var nc=0;nc<Ep.length;nc++){var rc=Ep[nc],Gv=rc.toLowerCase(),Kv=rc[0].toUpperCase()+rc.slice(1);fr(Gv,"on"+Kv)}fr(pg,"onAnimationEnd");fr(mg,"onAnimationIteration");fr(hg,"onAnimationStart");fr("dblclick","onDoubleClick");fr("focusin","onFocus");fr("focusout","onBlur");fr(gg,"onTransitionEnd");To("onMouseEnter",["mouseout","mouseover"]);To("onMouseLeave",["mouseout","mouseover"]);To("onPointerEnter",["pointerout","pointerover"]);To("onPointerLeave",["pointerout","pointerover"]);Hr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Hr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Hr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Hr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Hr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Hr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cs="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(" "),Zv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cs));function Np(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,G1(r,t,void 0,e),e.currentTarget=null}function yg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var l=r.length-1;0<=l;l--){var i=r[l],c=i.instance,d=i.currentTarget;if(i=i.listener,c!==s&&o.isPropagationStopped())break e;Np(o,i,d),s=c}else for(l=0;l<r.length;l++){if(i=r[l],c=i.instance,d=i.currentTarget,i=i.listener,c!==s&&o.isPropagationStopped())break e;Np(o,i,d),s=c}}}if(_i)throw e=su,_i=!1,su=null,e}function ke(e,t){var n=t[hu];n===void 0&&(n=t[hu]=new Set);var r=e+"__bubble";n.has(r)||(vg(t,e,2,!1),n.add(r))}function oc(e,t,n){var r=0;t&&(r|=4),vg(n,e,r,t)}var Tl="_reactListening"+Math.random().toString(36).slice(2);function Hs(e){if(!e[Tl]){e[Tl]=!0,Eh.forEach(function(n){n!=="selectionchange"&&(Zv.has(n)||oc(n,!1,e),oc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Tl]||(t[Tl]=!0,oc("selectionchange",!1,t))}}function vg(e,t,n,r){switch(ng(t)){case 1:var o=dv;break;case 4:o=fv;break;default:o=md}n=o.bind(null,t,n,e),o=void 0,!ou||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function sc(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var c=l.tag;if((c===3||c===4)&&(c=l.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;l=l.return}for(;i!==null;){if(l=Nr(i),l===null)return;if(c=l.tag,c===5||c===6){r=s=l;continue e}i=i.parentNode}}r=r.return}Wh(function(){var d=s,f=ud(n),p=[];e:{var m=_g.get(e);if(m!==void 0){var _=gd,w=e;switch(e){case"keypress":if(ri(n)===0)break e;case"keydown":case"keyup":_=Nv;break;case"focusin":w="focus",_=Ja;break;case"focusout":w="blur",_=Ja;break;case"beforeblur":case"afterblur":_=Ja;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":_=hp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=hv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Rv;break;case pg:case mg:case hg:_=yv;break;case gg:_=Lv;break;case"scroll":_=pv;break;case"wheel":_=Av;break;case"copy":case"cut":case"paste":_=xv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=_p}var y=(t&4)!==0,k=!y&&e==="scroll",h=y?m!==null?m+"Capture":null:m;y=[];for(var g=d,v;g!==null;){v=g;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,h!==null&&(S=$s(g,h),S!=null&&y.push(Us(g,S,v)))),k)break;g=g.return}0<y.length&&(m=new _(m,w,null,n,f),p.push({event:m,listeners:y}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",m&&n!==nu&&(w=n.relatedTarget||n.fromElement)&&(Nr(w)||w[Nn]))break e;if((_||m)&&(m=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,_?(w=n.relatedTarget||n.toElement,_=d,w=w?Nr(w):null,w!==null&&(k=Ur(w),w!==k||w.tag!==5&&w.tag!==6)&&(w=null)):(_=null,w=d),_!==w)){if(y=hp,S="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=_p,S="onPointerLeave",h="onPointerEnter",g="pointer"),k=_==null?m:po(_),v=w==null?m:po(w),m=new y(S,g+"leave",_,n,f),m.target=k,m.relatedTarget=v,S=null,Nr(f)===d&&(y=new y(h,g+"enter",w,n,f),y.target=v,y.relatedTarget=k,S=y),k=S,_&&w)t:{for(y=_,h=w,g=0,v=y;v;v=qr(v))g++;for(v=0,S=h;S;S=qr(S))v++;for(;0<g-v;)y=qr(y),g--;for(;0<v-g;)h=qr(h),v--;for(;g--;){if(y===h||h!==null&&y===h.alternate)break t;y=qr(y),h=qr(h)}y=null}else y=null;_!==null&&jp(p,m,_,y,!1),w!==null&&k!==null&&jp(p,k,w,y,!0)}}e:{if(m=d?po(d):window,_=m.nodeName&&m.nodeName.toLowerCase(),_==="select"||_==="input"&&m.type==="file")var N=Bv;else if(xp(m))if(ag)N=Vv;else{N=Hv;var T=Wv}else(_=m.nodeName)&&_.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(N=Uv);if(N&&(N=N(e,d))){ig(p,N,n,f);break e}T&&T(e,m,d),e==="focusout"&&(T=m._wrapperState)&&T.controlled&&m.type==="number"&&Zc(m,"number",m.value)}switch(T=d?po(d):window,e){case"focusin":(xp(T)||T.contentEditable==="true")&&(uo=T,cu=d,Ps=null);break;case"focusout":Ps=cu=uo=null;break;case"mousedown":uu=!0;break;case"contextmenu":case"mouseup":case"dragend":uu=!1,Sp(p,n,f);break;case"selectionchange":if(Qv)break;case"keydown":case"keyup":Sp(p,n,f)}var j;if(yd)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else co?sg(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(og&&n.locale!=="ko"&&(co||L!=="onCompositionStart"?L==="onCompositionEnd"&&co&&(j=rg()):(Kn=f,hd="value"in Kn?Kn.value:Kn.textContent,co=!0)),T=bi(d,L),0<T.length&&(L=new gp(L,e,null,n,f),p.push({event:L,listeners:T}),j?L.data=j:(j=lg(n),j!==null&&(L.data=j)))),(j=Mv?$v(e,n):Dv(e,n))&&(d=bi(d,"onBeforeInput"),0<d.length&&(f=new gp("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:d}),f.data=j))}yg(p,t)})}function Us(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=$s(e,n),s!=null&&r.unshift(Us(e,s,o)),s=$s(e,t),s!=null&&r.push(Us(e,s,o))),e=e.return}return r}function qr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function jp(e,t,n,r,o){for(var s=t._reactName,l=[];n!==null&&n!==r;){var i=n,c=i.alternate,d=i.stateNode;if(c!==null&&c===r)break;i.tag===5&&d!==null&&(i=d,o?(c=$s(n,s),c!=null&&l.unshift(Us(n,c,i))):o||(c=$s(n,s),c!=null&&l.push(Us(n,c,i)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Jv=/\r\n?/g,qv=/\u0000|\uFFFD/g;function Pp(e){return(typeof e=="string"?e:""+e).replace(Jv,`
38
+ `).replace(qv,"")}function Ll(e,t,n){if(t=Pp(t),Pp(e)!==t&&n)throw Error(A(425))}function ki(){}var du=null,fu=null;function pu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mu=typeof setTimeout=="function"?setTimeout:void 0,ex=typeof clearTimeout=="function"?clearTimeout:void 0,Rp=typeof Promise=="function"?Promise:void 0,tx=typeof queueMicrotask=="function"?queueMicrotask:typeof Rp<"u"?function(e){return Rp.resolve(null).then(e).catch(nx)}:mu;function nx(e){setTimeout(function(){throw e})}function lc(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Fs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Fs(t)}function nr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Tp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Uo=Math.random().toString(36).slice(2),rn="__reactFiber$"+Uo,Vs="__reactProps$"+Uo,Nn="__reactContainer$"+Uo,hu="__reactEvents$"+Uo,rx="__reactListeners$"+Uo,ox="__reactHandles$"+Uo;function Nr(e){var t=e[rn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nn]||n[rn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Tp(e);e!==null;){if(n=e[rn])return n;e=Tp(e)}return t}e=n,n=e.parentNode}return null}function il(e){return e=e[rn]||e[Nn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function po(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function ta(e){return e[Vs]||null}var gu=[],mo=-1;function pr(e){return{current:e}}function Ce(e){0>mo||(e.current=gu[mo],gu[mo]=null,mo--)}function we(e,t){mo++,gu[mo]=e.current,e.current=t}var ar={},tt=pr(ar),pt=pr(!1),Ir=ar;function Lo(e,t){var n=e.type.contextTypes;if(!n)return ar;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mt(e){return e=e.childContextTypes,e!=null}function Ci(){Ce(pt),Ce(tt)}function Lp(e,t,n){if(tt.current!==ar)throw Error(A(168));we(tt,t),we(pt,n)}function xg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,W1(e)||"Unknown",o));return Te({},n,r)}function Si(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ar,Ir=tt.current,we(tt,e),we(pt,pt.current),!0}function Ip(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=xg(e,t,Ir),r.__reactInternalMemoizedMergedChildContext=e,Ce(pt),Ce(tt),we(tt,e)):Ce(pt),we(pt,n)}var wn=null,na=!1,ic=!1;function wg(e){wn===null?wn=[e]:wn.push(e)}function sx(e){na=!0,wg(e)}function mr(){if(!ic&&wn!==null){ic=!0;var e=0,t=_e;try{var n=wn;for(_e=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wn=null,na=!1}catch(o){throw wn!==null&&(wn=wn.slice(e+1)),Yh(dd,mr),o}finally{_e=t,ic=!1}}return null}var ho=[],go=0,Ei=null,Ni=0,Pt=[],Rt=0,Ar=null,bn=1,kn="";function Cr(e,t){ho[go++]=Ni,ho[go++]=Ei,Ei=e,Ni=t}function bg(e,t,n){Pt[Rt++]=bn,Pt[Rt++]=kn,Pt[Rt++]=Ar,Ar=e;var r=bn;e=kn;var o=32-Bt(r)-1;r&=~(1<<o),n+=1;var s=32-Bt(t)+o;if(30<s){var l=o-o%5;s=(r&(1<<l)-1).toString(32),r>>=l,o-=l,bn=1<<32-Bt(t)+o|n<<o|r,kn=s+e}else bn=1<<s|n<<o|r,kn=e}function xd(e){e.return!==null&&(Cr(e,1),bg(e,1,0))}function wd(e){for(;e===Ei;)Ei=ho[--go],ho[go]=null,Ni=ho[--go],ho[go]=null;for(;e===Ar;)Ar=Pt[--Rt],Pt[Rt]=null,kn=Pt[--Rt],Pt[Rt]=null,bn=Pt[--Rt],Pt[Rt]=null}var wt=null,xt=null,Ee=!1,Ft=null;function kg(e,t){var n=Tt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ap(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,wt=e,xt=nr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,wt=e,xt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ar!==null?{id:bn,overflow:kn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Tt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,wt=e,xt=null,!0):!1;default:return!1}}function _u(e){return(e.mode&1)!==0&&(e.flags&128)===0}function yu(e){if(Ee){var t=xt;if(t){var n=t;if(!Ap(e,t)){if(_u(e))throw Error(A(418));t=nr(n.nextSibling);var r=wt;t&&Ap(e,t)?kg(r,n):(e.flags=e.flags&-4097|2,Ee=!1,wt=e)}}else{if(_u(e))throw Error(A(418));e.flags=e.flags&-4097|2,Ee=!1,wt=e}}}function Op(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;wt=e}function Il(e){if(e!==wt)return!1;if(!Ee)return Op(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pu(e.type,e.memoizedProps)),t&&(t=xt)){if(_u(e))throw Cg(),Error(A(418));for(;t;)kg(e,t),t=nr(t.nextSibling)}if(Op(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xt=nr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xt=null}}else xt=wt?nr(e.stateNode.nextSibling):null;return!0}function Cg(){for(var e=xt;e;)e=nr(e.nextSibling)}function Io(){xt=wt=null,Ee=!1}function bd(e){Ft===null?Ft=[e]:Ft.push(e)}var lx=In.ReactCurrentBatchConfig;function cs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(A(309));var r=n.stateNode}if(!r)throw Error(A(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(l){var i=o.refs;l===null?delete i[s]:i[s]=l},t._stringRef=s,t)}if(typeof e!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,e))}return e}function Al(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Mp(e){var t=e._init;return t(e._payload)}function Sg(e){function t(h,g){if(e){var v=h.deletions;v===null?(h.deletions=[g],h.flags|=16):v.push(g)}}function n(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function r(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function o(h,g){return h=lr(h,g),h.index=0,h.sibling=null,h}function s(h,g,v){return h.index=v,e?(v=h.alternate,v!==null?(v=v.index,v<g?(h.flags|=2,g):v):(h.flags|=2,g)):(h.flags|=1048576,g)}function l(h){return e&&h.alternate===null&&(h.flags|=2),h}function i(h,g,v,S){return g===null||g.tag!==6?(g=mc(v,h.mode,S),g.return=h,g):(g=o(g,v),g.return=h,g)}function c(h,g,v,S){var N=v.type;return N===ao?f(h,g,v.props.children,S,v.key):g!==null&&(g.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Yn&&Mp(N)===g.type)?(S=o(g,v.props),S.ref=cs(h,g,v),S.return=h,S):(S=ui(v.type,v.key,v.props,null,h.mode,S),S.ref=cs(h,g,v),S.return=h,S)}function d(h,g,v,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==v.containerInfo||g.stateNode.implementation!==v.implementation?(g=hc(v,h.mode,S),g.return=h,g):(g=o(g,v.children||[]),g.return=h,g)}function f(h,g,v,S,N){return g===null||g.tag!==7?(g=Tr(v,h.mode,S,N),g.return=h,g):(g=o(g,v),g.return=h,g)}function p(h,g,v){if(typeof g=="string"&&g!==""||typeof g=="number")return g=mc(""+g,h.mode,v),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case kl:return v=ui(g.type,g.key,g.props,null,h.mode,v),v.ref=cs(h,null,g),v.return=h,v;case io:return g=hc(g,h.mode,v),g.return=h,g;case Yn:var S=g._init;return p(h,S(g._payload),v)}if(bs(g)||os(g))return g=Tr(g,h.mode,v,null),g.return=h,g;Al(h,g)}return null}function m(h,g,v,S){var N=g!==null?g.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return N!==null?null:i(h,g,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case kl:return v.key===N?c(h,g,v,S):null;case io:return v.key===N?d(h,g,v,S):null;case Yn:return N=v._init,m(h,g,N(v._payload),S)}if(bs(v)||os(v))return N!==null?null:f(h,g,v,S,null);Al(h,v)}return null}function _(h,g,v,S,N){if(typeof S=="string"&&S!==""||typeof S=="number")return h=h.get(v)||null,i(g,h,""+S,N);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case kl:return h=h.get(S.key===null?v:S.key)||null,c(g,h,S,N);case io:return h=h.get(S.key===null?v:S.key)||null,d(g,h,S,N);case Yn:var T=S._init;return _(h,g,v,T(S._payload),N)}if(bs(S)||os(S))return h=h.get(v)||null,f(g,h,S,N,null);Al(g,S)}return null}function w(h,g,v,S){for(var N=null,T=null,j=g,L=g=0,D=null;j!==null&&L<v.length;L++){j.index>L?(D=j,j=null):D=j.sibling;var M=m(h,j,v[L],S);if(M===null){j===null&&(j=D);break}e&&j&&M.alternate===null&&t(h,j),g=s(M,g,L),T===null?N=M:T.sibling=M,T=M,j=D}if(L===v.length)return n(h,j),Ee&&Cr(h,L),N;if(j===null){for(;L<v.length;L++)j=p(h,v[L],S),j!==null&&(g=s(j,g,L),T===null?N=j:T.sibling=j,T=j);return Ee&&Cr(h,L),N}for(j=r(h,j);L<v.length;L++)D=_(j,h,L,v[L],S),D!==null&&(e&&D.alternate!==null&&j.delete(D.key===null?L:D.key),g=s(D,g,L),T===null?N=D:T.sibling=D,T=D);return e&&j.forEach(function(U){return t(h,U)}),Ee&&Cr(h,L),N}function y(h,g,v,S){var N=os(v);if(typeof N!="function")throw Error(A(150));if(v=N.call(v),v==null)throw Error(A(151));for(var T=N=null,j=g,L=g=0,D=null,M=v.next();j!==null&&!M.done;L++,M=v.next()){j.index>L?(D=j,j=null):D=j.sibling;var U=m(h,j,M.value,S);if(U===null){j===null&&(j=D);break}e&&j&&U.alternate===null&&t(h,j),g=s(U,g,L),T===null?N=U:T.sibling=U,T=U,j=D}if(M.done)return n(h,j),Ee&&Cr(h,L),N;if(j===null){for(;!M.done;L++,M=v.next())M=p(h,M.value,S),M!==null&&(g=s(M,g,L),T===null?N=M:T.sibling=M,T=M);return Ee&&Cr(h,L),N}for(j=r(h,j);!M.done;L++,M=v.next())M=_(j,h,L,M.value,S),M!==null&&(e&&M.alternate!==null&&j.delete(M.key===null?L:M.key),g=s(M,g,L),T===null?N=M:T.sibling=M,T=M);return e&&j.forEach(function(z){return t(h,z)}),Ee&&Cr(h,L),N}function k(h,g,v,S){if(typeof v=="object"&&v!==null&&v.type===ao&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case kl:e:{for(var N=v.key,T=g;T!==null;){if(T.key===N){if(N=v.type,N===ao){if(T.tag===7){n(h,T.sibling),g=o(T,v.props.children),g.return=h,h=g;break e}}else if(T.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Yn&&Mp(N)===T.type){n(h,T.sibling),g=o(T,v.props),g.ref=cs(h,T,v),g.return=h,h=g;break e}n(h,T);break}else t(h,T);T=T.sibling}v.type===ao?(g=Tr(v.props.children,h.mode,S,v.key),g.return=h,h=g):(S=ui(v.type,v.key,v.props,null,h.mode,S),S.ref=cs(h,g,v),S.return=h,h=S)}return l(h);case io:e:{for(T=v.key;g!==null;){if(g.key===T)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(h,g.sibling),g=o(g,v.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=hc(v,h.mode,S),g.return=h,h=g}return l(h);case Yn:return T=v._init,k(h,g,T(v._payload),S)}if(bs(v))return w(h,g,v,S);if(os(v))return y(h,g,v,S);Al(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(h,g.sibling),g=o(g,v),g.return=h,h=g):(n(h,g),g=mc(v,h.mode,S),g.return=h,h=g),l(h)):n(h,g)}return k}var Ao=Sg(!0),Eg=Sg(!1),ji=pr(null),Pi=null,_o=null,kd=null;function Cd(){kd=_o=Pi=null}function Sd(e){var t=ji.current;Ce(ji),e._currentValue=t}function vu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Co(e,t){Pi=e,kd=_o=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ft=!0),e.firstContext=null)}function It(e){var t=e._currentValue;if(kd!==e)if(e={context:e,memoizedValue:t,next:null},_o===null){if(Pi===null)throw Error(A(308));_o=e,Pi.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var jr=null;function Ed(e){jr===null?jr=[e]:jr.push(e)}function Ng(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ed(t)):(n.next=o.next,o.next=n),t.interleaved=n,jn(e,r)}function jn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Xn=!1;function Nd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Sn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function rr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,de&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,jn(e,n)}return o=r.interleaved,o===null?(t.next=t,Ed(r)):(t.next=o.next,o.next=t),r.interleaved=t,jn(e,n)}function oi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fd(e,n)}}function $p(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ri(e,t,n,r){var o=e.updateQueue;Xn=!1;var s=o.firstBaseUpdate,l=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var c=i,d=c.next;c.next=null,l===null?s=d:l.next=d,l=c;var f=e.alternate;f!==null&&(f=f.updateQueue,i=f.lastBaseUpdate,i!==l&&(i===null?f.firstBaseUpdate=d:i.next=d,f.lastBaseUpdate=c))}if(s!==null){var p=o.baseState;l=0,f=d=c=null,i=s;do{var m=i.lane,_=i.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:_,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var w=e,y=i;switch(m=t,_=n,y.tag){case 1:if(w=y.payload,typeof w=="function"){p=w.call(_,p,m);break e}p=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=y.payload,m=typeof w=="function"?w.call(_,p,m):w,m==null)break e;p=Te({},p,m);break e;case 2:Xn=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[i]:m.push(i))}else _={eventTime:_,lane:m,tag:i.tag,payload:i.payload,callback:i.callback,next:null},f===null?(d=f=_,c=p):f=f.next=_,l|=m;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;m=i,i=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(f===null&&(c=p),o.baseState=c,o.firstBaseUpdate=d,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Mr|=l,e.lanes=l,e.memoizedState=p}}function Dp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(A(191,o));o.call(r)}}}var al={},an=pr(al),Ys=pr(al),Xs=pr(al);function Pr(e){if(e===al)throw Error(A(174));return e}function jd(e,t){switch(we(Xs,t),we(Ys,e),we(an,al),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qc(t,e)}Ce(an),we(an,t)}function Oo(){Ce(an),Ce(Ys),Ce(Xs)}function Pg(e){Pr(Xs.current);var t=Pr(an.current),n=qc(t,e.type);t!==n&&(we(Ys,e),we(an,n))}function Pd(e){Ys.current===e&&(Ce(an),Ce(Ys))}var Pe=pr(0);function Ti(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ac=[];function Rd(){for(var e=0;e<ac.length;e++)ac[e]._workInProgressVersionPrimary=null;ac.length=0}var si=In.ReactCurrentDispatcher,cc=In.ReactCurrentBatchConfig,Or=0,Re=null,ze=null,He=null,Li=!1,Rs=!1,Qs=0,ix=0;function Ze(){throw Error(A(321))}function Td(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ut(e[n],t[n]))return!1;return!0}function Ld(e,t,n,r,o,s){if(Or=s,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,si.current=e===null||e.memoizedState===null?dx:fx,e=n(r,o),Rs){s=0;do{if(Rs=!1,Qs=0,25<=s)throw Error(A(301));s+=1,He=ze=null,t.updateQueue=null,si.current=px,e=n(r,o)}while(Rs)}if(si.current=Ii,t=ze!==null&&ze.next!==null,Or=0,He=ze=Re=null,Li=!1,t)throw Error(A(300));return e}function Id(){var e=Qs!==0;return Qs=0,e}function nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return He===null?Re.memoizedState=He=e:He=He.next=e,He}function At(){if(ze===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=He===null?Re.memoizedState:He.next;if(t!==null)He=t,ze=e;else{if(e===null)throw Error(A(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},He===null?Re.memoizedState=He=e:He=He.next=e}return He}function Gs(e,t){return typeof t=="function"?t(e):t}function uc(e){var t=At(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=ze,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var l=o.next;o.next=s.next,s.next=l}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var i=l=null,c=null,d=s;do{var f=d.lane;if((Or&f)===f)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var p={lane:f,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(i=c=p,l=r):c=c.next=p,Re.lanes|=f,Mr|=f}d=d.next}while(d!==null&&d!==s);c===null?l=r:c.next=i,Ut(r,t.memoizedState)||(ft=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,Re.lanes|=s,Mr|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function dc(e){var t=At(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do s=e(s,l.action),l=l.next;while(l!==o);Ut(s,t.memoizedState)||(ft=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Rg(){}function Tg(e,t){var n=Re,r=At(),o=t(),s=!Ut(r.memoizedState,o);if(s&&(r.memoizedState=o,ft=!0),r=r.queue,Ad(Ag.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||He!==null&&He.memoizedState.tag&1){if(n.flags|=2048,Ks(9,Ig.bind(null,n,r,o,t),void 0,null),Ue===null)throw Error(A(349));Or&30||Lg(n,t,o)}return o}function Lg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Re.updateQueue,t===null?(t={lastEffect:null,stores:null},Re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ig(e,t,n,r){t.value=n,t.getSnapshot=r,Og(t)&&Mg(e)}function Ag(e,t,n){return n(function(){Og(t)&&Mg(e)})}function Og(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ut(e,n)}catch{return!0}}function Mg(e){var t=jn(e,1);t!==null&&Wt(t,e,1,-1)}function zp(e){var t=nn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gs,lastRenderedState:e},t.queue=e,e=e.dispatch=ux.bind(null,Re,e),[t.memoizedState,e]}function Ks(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Re.updateQueue,t===null?(t={lastEffect:null,stores:null},Re.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function $g(){return At().memoizedState}function li(e,t,n,r){var o=nn();Re.flags|=e,o.memoizedState=Ks(1|t,n,void 0,r===void 0?null:r)}function ra(e,t,n,r){var o=At();r=r===void 0?null:r;var s=void 0;if(ze!==null){var l=ze.memoizedState;if(s=l.destroy,r!==null&&Td(r,l.deps)){o.memoizedState=Ks(t,n,s,r);return}}Re.flags|=e,o.memoizedState=Ks(1|t,n,s,r)}function Fp(e,t){return li(8390656,8,e,t)}function Ad(e,t){return ra(2048,8,e,t)}function Dg(e,t){return ra(4,2,e,t)}function zg(e,t){return ra(4,4,e,t)}function Fg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Bg(e,t,n){return n=n!=null?n.concat([e]):null,ra(4,4,Fg.bind(null,t,e),n)}function Od(){}function Wg(e,t){var n=At();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Td(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Hg(e,t){var n=At();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Td(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ug(e,t,n){return Or&21?(Ut(n,t)||(n=Gh(),Re.lanes|=n,Mr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ft=!0),e.memoizedState=n)}function ax(e,t){var n=_e;_e=n!==0&&4>n?n:4,e(!0);var r=cc.transition;cc.transition={};try{e(!1),t()}finally{_e=n,cc.transition=r}}function Vg(){return At().memoizedState}function cx(e,t,n){var r=sr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Yg(e))Xg(t,n);else if(n=Ng(e,t,n,r),n!==null){var o=ot();Wt(n,e,r,o),Qg(n,t,r)}}function ux(e,t,n){var r=sr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yg(e))Xg(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,i=s(l,n);if(o.hasEagerState=!0,o.eagerState=i,Ut(i,l)){var c=t.interleaved;c===null?(o.next=o,Ed(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=Ng(e,t,o,r),n!==null&&(o=ot(),Wt(n,e,r,o),Qg(n,t,r))}}function Yg(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function Xg(e,t){Rs=Li=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fd(e,n)}}var Ii={readContext:It,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},dx={readContext:It,useCallback:function(e,t){return nn().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:Fp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,li(4194308,4,Fg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return li(4194308,4,e,t)},useInsertionEffect:function(e,t){return li(4,2,e,t)},useMemo:function(e,t){var n=nn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=cx.bind(null,Re,e),[r.memoizedState,e]},useRef:function(e){var t=nn();return e={current:e},t.memoizedState=e},useState:zp,useDebugValue:Od,useDeferredValue:function(e){return nn().memoizedState=e},useTransition:function(){var e=zp(!1),t=e[0];return e=ax.bind(null,e[1]),nn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Re,o=nn();if(Ee){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ue===null)throw Error(A(349));Or&30||Lg(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Fp(Ag.bind(null,r,s,e),[e]),r.flags|=2048,Ks(9,Ig.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=nn(),t=Ue.identifierPrefix;if(Ee){var n=kn,r=bn;n=(r&~(1<<32-Bt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ix++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},fx={readContext:It,useCallback:Wg,useContext:It,useEffect:Ad,useImperativeHandle:Bg,useInsertionEffect:Dg,useLayoutEffect:zg,useMemo:Hg,useReducer:uc,useRef:$g,useState:function(){return uc(Gs)},useDebugValue:Od,useDeferredValue:function(e){var t=At();return Ug(t,ze.memoizedState,e)},useTransition:function(){var e=uc(Gs)[0],t=At().memoizedState;return[e,t]},useMutableSource:Rg,useSyncExternalStore:Tg,useId:Vg,unstable_isNewReconciler:!1},px={readContext:It,useCallback:Wg,useContext:It,useEffect:Ad,useImperativeHandle:Bg,useInsertionEffect:Dg,useLayoutEffect:zg,useMemo:Hg,useReducer:dc,useRef:$g,useState:function(){return dc(Gs)},useDebugValue:Od,useDeferredValue:function(e){var t=At();return ze===null?t.memoizedState=e:Ug(t,ze.memoizedState,e)},useTransition:function(){var e=dc(Gs)[0],t=At().memoizedState;return[e,t]},useMutableSource:Rg,useSyncExternalStore:Tg,useId:Vg,unstable_isNewReconciler:!1};function Dt(e,t){if(e&&e.defaultProps){t=Te({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var oa={isMounted:function(e){return(e=e._reactInternals)?Ur(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ot(),o=sr(e),s=Sn(r,o);s.payload=t,n!=null&&(s.callback=n),t=rr(e,s,o),t!==null&&(Wt(t,e,o,r),oi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ot(),o=sr(e),s=Sn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=rr(e,s,o),t!==null&&(Wt(t,e,o,r),oi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ot(),r=sr(e),o=Sn(n,r);o.tag=2,t!=null&&(o.callback=t),t=rr(e,o,r),t!==null&&(Wt(t,e,r,n),oi(t,e,r))}};function Bp(e,t,n,r,o,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,l):t.prototype&&t.prototype.isPureReactComponent?!Ws(n,r)||!Ws(o,s):!0}function Gg(e,t,n){var r=!1,o=ar,s=t.contextType;return typeof s=="object"&&s!==null?s=It(s):(o=mt(t)?Ir:tt.current,r=t.contextTypes,s=(r=r!=null)?Lo(e,o):ar),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=oa,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Wp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&oa.enqueueReplaceState(t,t.state,null)}function wu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Nd(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=It(s):(s=mt(t)?Ir:tt.current,o.context=Lo(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(xu(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&oa.enqueueReplaceState(o,o.state,null),Ri(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Mo(e,t){try{var n="",r=t;do n+=B1(r),r=r.return;while(r);var o=n}catch(s){o=`
39
+ Error generating stack: `+s.message+`
40
+ `+s.stack}return{value:e,source:t,stack:o,digest:null}}function fc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var mx=typeof WeakMap=="function"?WeakMap:Map;function Kg(e,t,n){n=Sn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Oi||(Oi=!0,Lu=r),bu(e,t)},n}function Zg(e,t,n){n=Sn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){bu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){bu(e,t),typeof r!="function"&&(or===null?or=new Set([this]):or.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Hp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new mx;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=jx.bind(null,e,t,n),t.then(e,e))}function Up(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Vp(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Sn(-1,1),t.tag=2,rr(n,t,1))),n.lanes|=1),e)}var hx=In.ReactCurrentOwner,ft=!1;function rt(e,t,n,r){t.child=e===null?Eg(t,null,n,r):Ao(t,e.child,n,r)}function Yp(e,t,n,r,o){n=n.render;var s=t.ref;return Co(t,o),r=Ld(e,t,n,r,s,o),n=Id(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Pn(e,t,o)):(Ee&&n&&xd(t),t.flags|=1,rt(e,t,r,o),t.child)}function Xp(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Hd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Jg(e,t,s,r,o)):(e=ui(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var l=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ws,n(l,r)&&e.ref===t.ref)return Pn(e,t,o)}return t.flags|=1,e=lr(s,r),e.ref=t.ref,e.return=t,t.child=e}function Jg(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Ws(s,r)&&e.ref===t.ref)if(ft=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(ft=!0);else return t.lanes=e.lanes,Pn(e,t,o)}return ku(e,t,n,r,o)}function qg(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},we(vo,yt),yt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,we(vo,yt),yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,we(vo,yt),yt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,we(vo,yt),yt|=r;return rt(e,t,o,n),t.child}function e_(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ku(e,t,n,r,o){var s=mt(n)?Ir:tt.current;return s=Lo(t,s),Co(t,o),n=Ld(e,t,n,r,s,o),r=Id(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Pn(e,t,o)):(Ee&&r&&xd(t),t.flags|=1,rt(e,t,n,o),t.child)}function Qp(e,t,n,r,o){if(mt(n)){var s=!0;Si(t)}else s=!1;if(Co(t,o),t.stateNode===null)ii(e,t),Gg(t,n,r),wu(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,i=t.memoizedProps;l.props=i;var c=l.context,d=n.contextType;typeof d=="object"&&d!==null?d=It(d):(d=mt(n)?Ir:tt.current,d=Lo(t,d));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function";p||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==r||c!==d)&&Wp(t,l,r,d),Xn=!1;var m=t.memoizedState;l.state=m,Ri(t,r,l,o),c=t.memoizedState,i!==r||m!==c||pt.current||Xn?(typeof f=="function"&&(xu(t,n,f,r),c=t.memoizedState),(i=Xn||Bp(t,n,i,r,m,c,d))?(p||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),l.props=r,l.state=c,l.context=d,r=i):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,jg(e,t),i=t.memoizedProps,d=t.type===t.elementType?i:Dt(t.type,i),l.props=d,p=t.pendingProps,m=l.context,c=n.contextType,typeof c=="object"&&c!==null?c=It(c):(c=mt(n)?Ir:tt.current,c=Lo(t,c));var _=n.getDerivedStateFromProps;(f=typeof _=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==p||m!==c)&&Wp(t,l,r,c),Xn=!1,m=t.memoizedState,l.state=m,Ri(t,r,l,o);var w=t.memoizedState;i!==p||m!==w||pt.current||Xn?(typeof _=="function"&&(xu(t,n,_,r),w=t.memoizedState),(d=Xn||Bp(t,n,d,r,m,w,c)||!1)?(f||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,w,c),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,w,c)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),l.props=r,l.state=w,l.context=c,r=d):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Cu(e,t,n,r,s,o)}function Cu(e,t,n,r,o,s){e_(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Ip(t,n,!1),Pn(e,t,s);r=t.stateNode,hx.current=t;var i=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Ao(t,e.child,null,s),t.child=Ao(t,null,i,s)):rt(e,t,i,s),t.memoizedState=r.state,o&&Ip(t,n,!0),t.child}function t_(e){var t=e.stateNode;t.pendingContext?Lp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Lp(e,t.context,!1),jd(e,t.containerInfo)}function Gp(e,t,n,r,o){return Io(),bd(o),t.flags|=256,rt(e,t,n,r),t.child}var Su={dehydrated:null,treeContext:null,retryLane:0};function Eu(e){return{baseLanes:e,cachePool:null,transitions:null}}function n_(e,t,n){var r=t.pendingProps,o=Pe.current,s=!1,l=(t.flags&128)!==0,i;if((i=l)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),we(Pe,o&1),e===null)return yu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=l):s=ia(l,r,0,null),e=Tr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Eu(n),t.memoizedState=Su,e):Md(t,l));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return gx(e,t,l,r,i,o,n);if(s){s=r.fallback,l=t.mode,o=e.child,i=o.sibling;var c={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=lr(o,c),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?s=lr(i,s):(s=Tr(s,l,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=e.child.memoizedState,l=l===null?Eu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Su,r}return s=e.child,e=s.sibling,r=lr(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Md(e,t){return t=ia({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ol(e,t,n,r){return r!==null&&bd(r),Ao(t,e.child,null,n),e=Md(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function gx(e,t,n,r,o,s,l){if(n)return t.flags&256?(t.flags&=-257,r=fc(Error(A(422))),Ol(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=ia({mode:"visible",children:r.children},o,0,null),s=Tr(s,o,l,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Ao(t,e.child,null,l),t.child.memoizedState=Eu(l),t.memoizedState=Su,s);if(!(t.mode&1))return Ol(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,s=Error(A(419)),r=fc(s,r,void 0),Ol(e,t,l,r)}if(i=(l&e.childLanes)!==0,ft||i){if(r=Ue,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,jn(e,o),Wt(r,e,o,-1))}return Wd(),r=fc(Error(A(421))),Ol(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Px.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,xt=nr(o.nextSibling),wt=t,Ee=!0,Ft=null,e!==null&&(Pt[Rt++]=bn,Pt[Rt++]=kn,Pt[Rt++]=Ar,bn=e.id,kn=e.overflow,Ar=t),t=Md(t,r.children),t.flags|=4096,t)}function Kp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vu(e.return,t,n)}function pc(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function r_(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(rt(e,t,r.children,n),r=Pe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Kp(e,n,t);else if(e.tag===19)Kp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(we(Pe,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ti(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),pc(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ti(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}pc(t,!0,n,null,s);break;case"together":pc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ii(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Mr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=lr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=lr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _x(e,t,n){switch(t.tag){case 3:t_(t),Io();break;case 5:Pg(t);break;case 1:mt(t.type)&&Si(t);break;case 4:jd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;we(ji,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(we(Pe,Pe.current&1),t.flags|=128,null):n&t.child.childLanes?n_(e,t,n):(we(Pe,Pe.current&1),e=Pn(e,t,n),e!==null?e.sibling:null);we(Pe,Pe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return r_(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),we(Pe,Pe.current),r)break;return null;case 22:case 23:return t.lanes=0,qg(e,t,n)}return Pn(e,t,n)}var o_,Nu,s_,l_;o_=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Nu=function(){};s_=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Pr(an.current);var s=null;switch(n){case"input":o=Gc(e,o),r=Gc(e,r),s=[];break;case"select":o=Te({},o,{value:void 0}),r=Te({},r,{value:void 0}),s=[];break;case"textarea":o=Jc(e,o),r=Jc(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ki)}eu(n,r);var l;n=null;for(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var i=o[d];for(l in i)i.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Os.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var c=r[d];if(i=o?.[d],r.hasOwnProperty(d)&&c!==i&&(c!=null||i!=null))if(d==="style")if(i){for(l in i)!i.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&i[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(s||(s=[]),s.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,i=i?i.__html:void 0,c!=null&&i!==c&&(s=s||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Os.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&ke("scroll",e),s||i===c||(s=[])):(s=s||[]).push(d,c))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}};l_=function(e,t,n,r){n!==r&&(t.flags|=4)};function us(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function yx(e,t,n){var r=t.pendingProps;switch(wd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return mt(t.type)&&Ci(),Je(t),null;case 3:return r=t.stateNode,Oo(),Ce(pt),Ce(tt),Rd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Il(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ft!==null&&(Ou(Ft),Ft=null))),Nu(e,t),Je(t),null;case 5:Pd(t);var o=Pr(Xs.current);if(n=t.type,e!==null&&t.stateNode!=null)s_(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(A(166));return Je(t),null}if(e=Pr(an.current),Il(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[rn]=t,r[Vs]=s,e=(t.mode&1)!==0,n){case"dialog":ke("cancel",r),ke("close",r);break;case"iframe":case"object":case"embed":ke("load",r);break;case"video":case"audio":for(o=0;o<Cs.length;o++)ke(Cs[o],r);break;case"source":ke("error",r);break;case"img":case"image":case"link":ke("error",r),ke("load",r);break;case"details":ke("toggle",r);break;case"input":sp(r,s),ke("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ke("invalid",r);break;case"textarea":ip(r,s),ke("invalid",r)}eu(n,s),o=null;for(var l in s)if(s.hasOwnProperty(l)){var i=s[l];l==="children"?typeof i=="string"?r.textContent!==i&&(s.suppressHydrationWarning!==!0&&Ll(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(s.suppressHydrationWarning!==!0&&Ll(r.textContent,i,e),o=["children",""+i]):Os.hasOwnProperty(l)&&i!=null&&l==="onScroll"&&ke("scroll",r)}switch(n){case"input":Cl(r),lp(r,s,!0);break;case"textarea":Cl(r),ap(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ki)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ah(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[rn]=t,e[Vs]=r,o_(e,t,!1,!1),t.stateNode=e;e:{switch(l=tu(n,r),n){case"dialog":ke("cancel",e),ke("close",e),o=r;break;case"iframe":case"object":case"embed":ke("load",e),o=r;break;case"video":case"audio":for(o=0;o<Cs.length;o++)ke(Cs[o],e);o=r;break;case"source":ke("error",e),o=r;break;case"img":case"image":case"link":ke("error",e),ke("load",e),o=r;break;case"details":ke("toggle",e),o=r;break;case"input":sp(e,r),o=Gc(e,r),ke("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Te({},r,{value:void 0}),ke("invalid",e);break;case"textarea":ip(e,r),o=Jc(e,r),ke("invalid",e);break;default:o=r}eu(n,o),i=o;for(s in i)if(i.hasOwnProperty(s)){var c=i[s];s==="style"?$h(e,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Oh(e,c)):s==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Ms(e,c):typeof c=="number"&&Ms(e,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Os.hasOwnProperty(s)?c!=null&&s==="onScroll"&&ke("scroll",e):c!=null&&ld(e,s,c,l))}switch(n){case"input":Cl(e),lp(e,r,!1);break;case"textarea":Cl(e),ap(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ir(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?xo(e,!!r.multiple,s,!1):r.defaultValue!=null&&xo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ki)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Je(t),null;case 6:if(e&&t.stateNode!=null)l_(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(166));if(n=Pr(Xs.current),Pr(an.current),Il(t)){if(r=t.stateNode,n=t.memoizedProps,r[rn]=t,(s=r.nodeValue!==n)&&(e=wt,e!==null))switch(e.tag){case 3:Ll(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ll(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[rn]=t,t.stateNode=r}return Je(t),null;case 13:if(Ce(Pe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&xt!==null&&t.mode&1&&!(t.flags&128))Cg(),Io(),t.flags|=98560,s=!1;else if(s=Il(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(A(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(A(317));s[rn]=t}else Io(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Je(t),s=!1}else Ft!==null&&(Ou(Ft),Ft=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Pe.current&1?Fe===0&&(Fe=3):Wd())),t.updateQueue!==null&&(t.flags|=4),Je(t),null);case 4:return Oo(),Nu(e,t),e===null&&Hs(t.stateNode.containerInfo),Je(t),null;case 10:return Sd(t.type._context),Je(t),null;case 17:return mt(t.type)&&Ci(),Je(t),null;case 19:if(Ce(Pe),s=t.memoizedState,s===null)return Je(t),null;if(r=(t.flags&128)!==0,l=s.rendering,l===null)if(r)us(s,!1);else{if(Fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Ti(e),l!==null){for(t.flags|=128,us(s,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,l=s.alternate,l===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return we(Pe,Pe.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ie()>$o&&(t.flags|=128,r=!0,us(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ti(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),us(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!Ee)return Je(t),null}else 2*Ie()-s.renderingStartTime>$o&&n!==1073741824&&(t.flags|=128,r=!0,us(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(n=s.last,n!==null?n.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ie(),t.sibling=null,n=Pe.current,we(Pe,r?n&1|2:n&1),t):(Je(t),null);case 22:case 23:return Bd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function vx(e,t){switch(wd(t),t.tag){case 1:return mt(t.type)&&Ci(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Oo(),Ce(pt),Ce(tt),Rd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pd(t),null;case 13:if(Ce(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Io()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ce(Pe),null;case 4:return Oo(),null;case 10:return Sd(t.type._context),null;case 22:case 23:return Bd(),null;case 24:return null;default:return null}}var Ml=!1,qe=!1,xx=typeof WeakSet=="function"?WeakSet:Set,F=null;function yo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Le(e,t,r)}else n.current=null}function ju(e,t,n){try{n()}catch(r){Le(e,t,r)}}var Zp=!1;function wx(e,t){if(du=xi,e=dg(),vd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,i=-1,c=-1,d=0,f=0,p=e,m=null;t:for(;;){for(var _;p!==n||o!==0&&p.nodeType!==3||(i=l+o),p!==s||r!==0&&p.nodeType!==3||(c=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(_=p.firstChild)!==null;)m=p,p=_;for(;;){if(p===e)break t;if(m===n&&++d===o&&(i=l),m===s&&++f===r&&(c=l),(_=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=_}n=i===-1||c===-1?null:{start:i,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(fu={focusedElem:e,selectionRange:n},xi=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var y=w.memoizedProps,k=w.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Dt(t.type,y),k);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(S){Le(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return w=Zp,Zp=!1,w}function Ts(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&ju(t,n,s)}o=o.next}while(o!==r)}}function sa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Pu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function i_(e){var t=e.alternate;t!==null&&(e.alternate=null,i_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rn],delete t[Vs],delete t[hu],delete t[rx],delete t[ox])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function a_(e){return e.tag===5||e.tag===3||e.tag===4}function Jp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||a_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ru(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ki));else if(r!==4&&(e=e.child,e!==null))for(Ru(e,t,n),e=e.sibling;e!==null;)Ru(e,t,n),e=e.sibling}function Tu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Tu(e,t,n),e=e.sibling;e!==null;)Tu(e,t,n),e=e.sibling}var Ye=null,zt=!1;function zn(e,t,n){for(n=n.child;n!==null;)c_(e,t,n),n=n.sibling}function c_(e,t,n){if(ln&&typeof ln.onCommitFiberUnmount=="function")try{ln.onCommitFiberUnmount(Zi,n)}catch{}switch(n.tag){case 5:qe||yo(n,t);case 6:var r=Ye,o=zt;Ye=null,zn(e,t,n),Ye=r,zt=o,Ye!==null&&(zt?(e=Ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ye.removeChild(n.stateNode));break;case 18:Ye!==null&&(zt?(e=Ye,n=n.stateNode,e.nodeType===8?lc(e.parentNode,n):e.nodeType===1&&lc(e,n),Fs(e)):lc(Ye,n.stateNode));break;case 4:r=Ye,o=zt,Ye=n.stateNode.containerInfo,zt=!0,zn(e,t,n),Ye=r,zt=o;break;case 0:case 11:case 14:case 15:if(!qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&ju(n,t,l),o=o.next}while(o!==r)}zn(e,t,n);break;case 1:if(!qe&&(yo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Le(n,t,i)}zn(e,t,n);break;case 21:zn(e,t,n);break;case 22:n.mode&1?(qe=(r=qe)||n.memoizedState!==null,zn(e,t,n),qe=r):zn(e,t,n);break;default:zn(e,t,n)}}function qp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xx),t.forEach(function(r){var o=Rx.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function $t(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,l=t,i=l;e:for(;i!==null;){switch(i.tag){case 5:Ye=i.stateNode,zt=!1;break e;case 3:Ye=i.stateNode.containerInfo,zt=!0;break e;case 4:Ye=i.stateNode.containerInfo,zt=!0;break e}i=i.return}if(Ye===null)throw Error(A(160));c_(s,l,o),Ye=null,zt=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(d){Le(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)u_(t,e),t=t.sibling}function u_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if($t(t,e),en(e),r&4){try{Ts(3,e,e.return),sa(3,e)}catch(y){Le(e,e.return,y)}try{Ts(5,e,e.return)}catch(y){Le(e,e.return,y)}}break;case 1:$t(t,e),en(e),r&512&&n!==null&&yo(n,n.return);break;case 5:if($t(t,e),en(e),r&512&&n!==null&&yo(n,n.return),e.flags&32){var o=e.stateNode;try{Ms(o,"")}catch(y){Le(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,l=n!==null?n.memoizedProps:s,i=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{i==="input"&&s.type==="radio"&&s.name!=null&&Lh(o,s),tu(i,l);var d=tu(i,s);for(l=0;l<c.length;l+=2){var f=c[l],p=c[l+1];f==="style"?$h(o,p):f==="dangerouslySetInnerHTML"?Oh(o,p):f==="children"?Ms(o,p):ld(o,f,p,d)}switch(i){case"input":Kc(o,s);break;case"textarea":Ih(o,s);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var _=s.value;_!=null?xo(o,!!s.multiple,_,!1):m!==!!s.multiple&&(s.defaultValue!=null?xo(o,!!s.multiple,s.defaultValue,!0):xo(o,!!s.multiple,s.multiple?[]:"",!1))}o[Vs]=s}catch(y){Le(e,e.return,y)}}break;case 6:if($t(t,e),en(e),r&4){if(e.stateNode===null)throw Error(A(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(y){Le(e,e.return,y)}}break;case 3:if($t(t,e),en(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Fs(t.containerInfo)}catch(y){Le(e,e.return,y)}break;case 4:$t(t,e),en(e);break;case 13:$t(t,e),en(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(zd=Ie())),r&4&&qp(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(qe=(d=qe)||f,$t(t,e),qe=d):$t(t,e),en(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!f&&e.mode&1)for(F=e,f=e.child;f!==null;){for(p=F=f;F!==null;){switch(m=F,_=m.child,m.tag){case 0:case 11:case 14:case 15:Ts(4,m,m.return);break;case 1:yo(m,m.return);var w=m.stateNode;if(typeof w.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(y){Le(r,n,y)}}break;case 5:yo(m,m.return);break;case 22:if(m.memoizedState!==null){tm(p);continue}}_!==null?(_.return=m,F=_):tm(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{o=p.stateNode,d?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(i=p.stateNode,c=p.memoizedProps.style,l=c!=null&&c.hasOwnProperty("display")?c.display:null,i.style.display=Mh("display",l))}catch(y){Le(e,e.return,y)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=d?"":p.memoizedProps}catch(y){Le(e,e.return,y)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:$t(t,e),en(e),r&4&&qp(e);break;case 21:break;default:$t(t,e),en(e)}}function en(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(a_(n)){var r=n;break e}n=n.return}throw Error(A(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Ms(o,""),r.flags&=-33);var s=Jp(e);Tu(e,s,o);break;case 3:case 4:var l=r.stateNode.containerInfo,i=Jp(e);Ru(e,i,l);break;default:throw Error(A(161))}}catch(c){Le(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bx(e,t,n){F=e,d_(e)}function d_(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var o=F,s=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||Ml;if(!l){var i=o.alternate,c=i!==null&&i.memoizedState!==null||qe;i=Ml;var d=qe;if(Ml=l,(qe=c)&&!d)for(F=o;F!==null;)l=F,c=l.child,l.tag===22&&l.memoizedState!==null?nm(o):c!==null?(c.return=l,F=c):nm(o);for(;s!==null;)F=s,d_(s),s=s.sibling;F=o,Ml=i,qe=d}em(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,F=s):em(e)}}function em(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:qe||sa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!qe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Dt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Dp(t,s,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Dp(t,l,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var f=d.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&Fs(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}qe||t.flags&512&&Pu(t)}catch(m){Le(t,t.return,m)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function tm(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function nm(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{sa(4,t)}catch(c){Le(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Le(t,o,c)}}var s=t.return;try{Pu(t)}catch(c){Le(t,s,c)}break;case 5:var l=t.return;try{Pu(t)}catch(c){Le(t,l,c)}}}catch(c){Le(t,t.return,c)}if(t===e){F=null;break}var i=t.sibling;if(i!==null){i.return=t.return,F=i;break}F=t.return}}var kx=Math.ceil,Ai=In.ReactCurrentDispatcher,$d=In.ReactCurrentOwner,Lt=In.ReactCurrentBatchConfig,de=0,Ue=null,$e=null,Xe=0,yt=0,vo=pr(0),Fe=0,Zs=null,Mr=0,la=0,Dd=0,Ls=null,ut=null,zd=0,$o=1/0,xn=null,Oi=!1,Lu=null,or=null,$l=!1,Zn=null,Mi=0,Is=0,Iu=null,ai=-1,ci=0;function ot(){return de&6?Ie():ai!==-1?ai:ai=Ie()}function sr(e){return e.mode&1?de&2&&Xe!==0?Xe&-Xe:lx.transition!==null?(ci===0&&(ci=Gh()),ci):(e=_e,e!==0||(e=window.event,e=e===void 0?16:ng(e.type)),e):1}function Wt(e,t,n,r){if(50<Is)throw Is=0,Iu=null,Error(A(185));sl(e,n,r),(!(de&2)||e!==Ue)&&(e===Ue&&(!(de&2)&&(la|=n),Fe===4&&Gn(e,Xe)),ht(e,r),n===1&&de===0&&!(t.mode&1)&&($o=Ie()+500,na&&mr()))}function ht(e,t){var n=e.callbackNode;lv(e,t);var r=vi(e,e===Ue?Xe:0);if(r===0)n!==null&&dp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&dp(n),t===1)e.tag===0?sx(rm.bind(null,e)):wg(rm.bind(null,e)),tx(function(){!(de&6)&&mr()}),n=null;else{switch(Kh(r)){case 1:n=dd;break;case 4:n=Xh;break;case 16:n=yi;break;case 536870912:n=Qh;break;default:n=yi}n=v_(n,f_.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function f_(e,t){if(ai=-1,ci=0,de&6)throw Error(A(327));var n=e.callbackNode;if(So()&&e.callbackNode!==n)return null;var r=vi(e,e===Ue?Xe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=$i(e,r);else{t=r;var o=de;de|=2;var s=m_();(Ue!==e||Xe!==t)&&(xn=null,$o=Ie()+500,Rr(e,t));do try{Ex();break}catch(i){p_(e,i)}while(!0);Cd(),Ai.current=s,de=o,$e!==null?t=0:(Ue=null,Xe=0,t=Fe)}if(t!==0){if(t===2&&(o=lu(e),o!==0&&(r=o,t=Au(e,o))),t===1)throw n=Zs,Rr(e,0),Gn(e,r),ht(e,Ie()),n;if(t===6)Gn(e,r);else{if(o=e.current.alternate,!(r&30)&&!Cx(o)&&(t=$i(e,r),t===2&&(s=lu(e),s!==0&&(r=s,t=Au(e,s))),t===1))throw n=Zs,Rr(e,0),Gn(e,r),ht(e,Ie()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(A(345));case 2:Sr(e,ut,xn);break;case 3:if(Gn(e,r),(r&130023424)===r&&(t=zd+500-Ie(),10<t)){if(vi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ot(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=mu(Sr.bind(null,e,ut,xn),t);break}Sr(e,ut,xn);break;case 4:if(Gn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-Bt(r);s=1<<l,l=t[l],l>o&&(o=l),r&=~s}if(r=o,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kx(r/1960))-r,10<r){e.timeoutHandle=mu(Sr.bind(null,e,ut,xn),r);break}Sr(e,ut,xn);break;case 5:Sr(e,ut,xn);break;default:throw Error(A(329))}}}return ht(e,Ie()),e.callbackNode===n?f_.bind(null,e):null}function Au(e,t){var n=Ls;return e.current.memoizedState.isDehydrated&&(Rr(e,t).flags|=256),e=$i(e,t),e!==2&&(t=ut,ut=n,t!==null&&Ou(t)),e}function Ou(e){ut===null?ut=e:ut.push.apply(ut,e)}function Cx(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!Ut(s(),o))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 Gn(e,t){for(t&=~Dd,t&=~la,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Bt(t),r=1<<n;e[n]=-1,t&=~r}}function rm(e){if(de&6)throw Error(A(327));So();var t=vi(e,0);if(!(t&1))return ht(e,Ie()),null;var n=$i(e,t);if(e.tag!==0&&n===2){var r=lu(e);r!==0&&(t=r,n=Au(e,r))}if(n===1)throw n=Zs,Rr(e,0),Gn(e,t),ht(e,Ie()),n;if(n===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sr(e,ut,xn),ht(e,Ie()),null}function Fd(e,t){var n=de;de|=1;try{return e(t)}finally{de=n,de===0&&($o=Ie()+500,na&&mr())}}function $r(e){Zn!==null&&Zn.tag===0&&!(de&6)&&So();var t=de;de|=1;var n=Lt.transition,r=_e;try{if(Lt.transition=null,_e=1,e)return e()}finally{_e=r,Lt.transition=n,de=t,!(de&6)&&mr()}}function Bd(){yt=vo.current,Ce(vo)}function Rr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ex(n)),$e!==null)for(n=$e.return;n!==null;){var r=n;switch(wd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ci();break;case 3:Oo(),Ce(pt),Ce(tt),Rd();break;case 5:Pd(r);break;case 4:Oo();break;case 13:Ce(Pe);break;case 19:Ce(Pe);break;case 10:Sd(r.type._context);break;case 22:case 23:Bd()}n=n.return}if(Ue=e,$e=e=lr(e.current,null),Xe=yt=t,Fe=0,Zs=null,Dd=la=Mr=0,ut=Ls=null,jr!==null){for(t=0;t<jr.length;t++)if(n=jr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var l=s.next;s.next=o,r.next=l}n.pending=r}jr=null}return e}function p_(e,t){do{var n=$e;try{if(Cd(),si.current=Ii,Li){for(var r=Re.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Li=!1}if(Or=0,He=ze=Re=null,Rs=!1,Qs=0,$d.current=null,n===null||n.return===null){Fe=1,Zs=t,$e=null;break}e:{var s=e,l=n.return,i=n,c=t;if(t=Xe,i.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,f=i,p=f.tag;if(!(f.mode&1)&&(p===0||p===11||p===15)){var m=f.alternate;m?(f.updateQueue=m.updateQueue,f.memoizedState=m.memoizedState,f.lanes=m.lanes):(f.updateQueue=null,f.memoizedState=null)}var _=Up(l);if(_!==null){_.flags&=-257,Vp(_,l,i,s,t),_.mode&1&&Hp(s,d,t),t=_,c=d;var w=t.updateQueue;if(w===null){var y=new Set;y.add(c),t.updateQueue=y}else w.add(c);break e}else{if(!(t&1)){Hp(s,d,t),Wd();break e}c=Error(A(426))}}else if(Ee&&i.mode&1){var k=Up(l);if(k!==null){!(k.flags&65536)&&(k.flags|=256),Vp(k,l,i,s,t),bd(Mo(c,i));break e}}s=c=Mo(c,i),Fe!==4&&(Fe=2),Ls===null?Ls=[s]:Ls.push(s),s=l;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=Kg(s,c,t);$p(s,h);break e;case 1:i=c;var g=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof g.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(or===null||!or.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=Zg(s,i,t);$p(s,S);break e}}s=s.return}while(s!==null)}g_(n)}catch(N){t=N,$e===n&&n!==null&&($e=n=n.return);continue}break}while(!0)}function m_(){var e=Ai.current;return Ai.current=Ii,e===null?Ii:e}function Wd(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),Ue===null||!(Mr&268435455)&&!(la&268435455)||Gn(Ue,Xe)}function $i(e,t){var n=de;de|=2;var r=m_();(Ue!==e||Xe!==t)&&(xn=null,Rr(e,t));do try{Sx();break}catch(o){p_(e,o)}while(!0);if(Cd(),de=n,Ai.current=r,$e!==null)throw Error(A(261));return Ue=null,Xe=0,Fe}function Sx(){for(;$e!==null;)h_($e)}function Ex(){for(;$e!==null&&!Z1();)h_($e)}function h_(e){var t=y_(e.alternate,e,yt);e.memoizedProps=e.pendingProps,t===null?g_(e):$e=t,$d.current=null}function g_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=vx(n,t),n!==null){n.flags&=32767,$e=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,$e=null;return}}else if(n=yx(n,t,yt),n!==null){$e=n;return}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);Fe===0&&(Fe=5)}function Sr(e,t,n){var r=_e,o=Lt.transition;try{Lt.transition=null,_e=1,Nx(e,t,n,r)}finally{Lt.transition=o,_e=r}return null}function Nx(e,t,n,r){do So();while(Zn!==null);if(de&6)throw Error(A(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(A(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(iv(e,s),e===Ue&&($e=Ue=null,Xe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||$l||($l=!0,v_(yi,function(){return So(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Lt.transition,Lt.transition=null;var l=_e;_e=1;var i=de;de|=4,$d.current=null,wx(e,n),u_(n,e),Xv(fu),xi=!!du,fu=du=null,e.current=n,bx(n),J1(),de=i,_e=l,Lt.transition=s}else e.current=n;if($l&&($l=!1,Zn=e,Mi=o),s=e.pendingLanes,s===0&&(or=null),tv(n.stateNode),ht(e,Ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Oi)throw Oi=!1,e=Lu,Lu=null,e;return Mi&1&&e.tag!==0&&So(),s=e.pendingLanes,s&1?e===Iu?Is++:(Is=0,Iu=e):Is=0,mr(),null}function So(){if(Zn!==null){var e=Kh(Mi),t=Lt.transition,n=_e;try{if(Lt.transition=null,_e=16>e?16:e,Zn===null)var r=!1;else{if(e=Zn,Zn=null,Mi=0,de&6)throw Error(A(331));var o=de;for(de|=4,F=e.current;F!==null;){var s=F,l=s.child;if(F.flags&16){var i=s.deletions;if(i!==null){for(var c=0;c<i.length;c++){var d=i[c];for(F=d;F!==null;){var f=F;switch(f.tag){case 0:case 11:case 15:Ts(8,f,s)}var p=f.child;if(p!==null)p.return=f,F=p;else for(;F!==null;){f=F;var m=f.sibling,_=f.return;if(i_(f),f===d){F=null;break}if(m!==null){m.return=_,F=m;break}F=_}}}var w=s.alternate;if(w!==null){var y=w.child;if(y!==null){w.child=null;do{var k=y.sibling;y.sibling=null,y=k}while(y!==null)}}F=s}}if(s.subtreeFlags&2064&&l!==null)l.return=s,F=l;else e:for(;F!==null;){if(s=F,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Ts(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,F=h;break e}F=s.return}}var g=e.current;for(F=g;F!==null;){l=F;var v=l.child;if(l.subtreeFlags&2064&&v!==null)v.return=l,F=v;else e:for(l=g;F!==null;){if(i=F,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:sa(9,i)}}catch(N){Le(i,i.return,N)}if(i===l){F=null;break e}var S=i.sibling;if(S!==null){S.return=i.return,F=S;break e}F=i.return}}if(de=o,mr(),ln&&typeof ln.onPostCommitFiberRoot=="function")try{ln.onPostCommitFiberRoot(Zi,e)}catch{}r=!0}return r}finally{_e=n,Lt.transition=t}}return!1}function om(e,t,n){t=Mo(n,t),t=Kg(e,t,1),e=rr(e,t,1),t=ot(),e!==null&&(sl(e,1,t),ht(e,t))}function Le(e,t,n){if(e.tag===3)om(e,e,n);else for(;t!==null;){if(t.tag===3){om(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(or===null||!or.has(r))){e=Mo(n,e),e=Zg(t,e,1),t=rr(t,e,1),e=ot(),t!==null&&(sl(t,1,e),ht(t,e));break}}t=t.return}}function jx(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ot(),e.pingedLanes|=e.suspendedLanes&n,Ue===e&&(Xe&n)===n&&(Fe===4||Fe===3&&(Xe&130023424)===Xe&&500>Ie()-zd?Rr(e,0):Dd|=n),ht(e,t)}function __(e,t){t===0&&(e.mode&1?(t=Nl,Nl<<=1,!(Nl&130023424)&&(Nl=4194304)):t=1);var n=ot();e=jn(e,t),e!==null&&(sl(e,t,n),ht(e,n))}function Px(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),__(e,n)}function Rx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),__(e,n)}var y_;y_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)ft=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ft=!1,_x(e,t,n);ft=!!(e.flags&131072)}else ft=!1,Ee&&t.flags&1048576&&bg(t,Ni,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ii(e,t),e=t.pendingProps;var o=Lo(t,tt.current);Co(t,n),o=Ld(null,t,r,e,o,n);var s=Id();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mt(r)?(s=!0,Si(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Nd(t),o.updater=oa,t.stateNode=o,o._reactInternals=t,wu(t,r,e,n),t=Cu(null,t,r,!0,s,n)):(t.tag=0,Ee&&s&&xd(t),rt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ii(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Lx(r),e=Dt(r,e),o){case 0:t=ku(null,t,r,e,n);break e;case 1:t=Qp(null,t,r,e,n);break e;case 11:t=Yp(null,t,r,e,n);break e;case 14:t=Xp(null,t,r,Dt(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),ku(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),Qp(e,t,r,o,n);case 3:e:{if(t_(t),e===null)throw Error(A(387));r=t.pendingProps,s=t.memoizedState,o=s.element,jg(e,t),Ri(t,r,null,n);var l=t.memoizedState;if(r=l.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Mo(Error(A(423)),t),t=Gp(e,t,r,n,o);break e}else if(r!==o){o=Mo(Error(A(424)),t),t=Gp(e,t,r,n,o);break e}else for(xt=nr(t.stateNode.containerInfo.firstChild),wt=t,Ee=!0,Ft=null,n=Eg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Io(),r===o){t=Pn(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return Pg(t),e===null&&yu(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,l=o.children,pu(r,o)?l=null:s!==null&&pu(r,s)&&(t.flags|=32),e_(e,t),rt(e,t,l,n),t.child;case 6:return e===null&&yu(t),null;case 13:return n_(e,t,n);case 4:return jd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ao(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),Yp(e,t,r,o,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,l=o.value,we(ji,r._currentValue),r._currentValue=l,s!==null)if(Ut(s.value,l)){if(s.children===o.children&&!pt.current){t=Pn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var i=s.dependencies;if(i!==null){l=s.child;for(var c=i.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=Sn(-1,n&-n),c.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var f=d.pending;f===null?c.next=c:(c.next=f.next,f.next=c),d.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),vu(s.return,n,t),i.lanes|=n;break}c=c.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(A(341));l.lanes|=n,i=l.alternate,i!==null&&(i.lanes|=n),vu(l,n,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}rt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Co(t,n),o=It(o),r=r(o),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,o=Dt(r,t.pendingProps),o=Dt(r.type,o),Xp(e,t,r,o,n);case 15:return Jg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),ii(e,t),t.tag=1,mt(r)?(e=!0,Si(t)):e=!1,Co(t,n),Gg(t,r,o),wu(t,r,o,n),Cu(null,t,r,!0,e,n);case 19:return r_(e,t,n);case 22:return qg(e,t,n)}throw Error(A(156,t.tag))};function v_(e,t){return Yh(e,t)}function Tx(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,n,r){return new Tx(e,t,n,r)}function Hd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lx(e){if(typeof e=="function")return Hd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ad)return 11;if(e===cd)return 14}return 2}function lr(e,t){var n=e.alternate;return n===null?(n=Tt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ui(e,t,n,r,o,s){var l=2;if(r=e,typeof e=="function")Hd(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case ao:return Tr(n.children,o,s,t);case id:l=8,o|=8;break;case Vc:return e=Tt(12,n,t,o|2),e.elementType=Vc,e.lanes=s,e;case Yc:return e=Tt(13,n,t,o),e.elementType=Yc,e.lanes=s,e;case Xc:return e=Tt(19,n,t,o),e.elementType=Xc,e.lanes=s,e;case Ph:return ia(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nh:l=10;break e;case jh:l=9;break e;case ad:l=11;break e;case cd:l=14;break e;case Yn:l=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Tt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Tr(e,t,n,r){return e=Tt(7,e,r,t),e.lanes=n,e}function ia(e,t,n,r){return e=Tt(22,e,r,t),e.elementType=Ph,e.lanes=n,e.stateNode={isHidden:!1},e}function mc(e,t,n){return e=Tt(6,e,null,t),e.lanes=n,e}function hc(e,t,n){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ix(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ga(0),this.expirationTimes=Ga(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ga(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ud(e,t,n,r,o,s,l,i,c){return e=new Ix(e,t,n,i,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Tt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nd(s),e}function Ax(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:io,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function x_(e){if(!e)return ar;e=e._reactInternals;e:{if(Ur(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(mt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var n=e.type;if(mt(n))return xg(e,n,t)}return t}function w_(e,t,n,r,o,s,l,i,c){return e=Ud(n,r,!0,e,o,s,l,i,c),e.context=x_(null),n=e.current,r=ot(),o=sr(n),s=Sn(r,o),s.callback=t??null,rr(n,s,o),e.current.lanes=o,sl(e,o,r),ht(e,r),e}function aa(e,t,n,r){var o=t.current,s=ot(),l=sr(o);return n=x_(n),t.context===null?t.context=n:t.pendingContext=n,t=Sn(s,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=rr(o,t,l),e!==null&&(Wt(e,o,l,s),oi(e,o,l)),l}function Di(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function sm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vd(e,t){sm(e,t),(e=e.alternate)&&sm(e,t)}function Ox(){return null}var b_=typeof reportError=="function"?reportError:function(e){console.error(e)};function Yd(e){this._internalRoot=e}ca.prototype.render=Yd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));aa(e,t,null,null)};ca.prototype.unmount=Yd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$r(function(){aa(null,e,null,null)}),t[Nn]=null}};function ca(e){this._internalRoot=e}ca.prototype.unstable_scheduleHydration=function(e){if(e){var t=qh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Qn.length&&t!==0&&t<Qn[n].priority;n++);Qn.splice(n,0,e),n===0&&tg(e)}};function Xd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ua(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function lm(){}function Mx(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var d=Di(l);s.call(d)}}var l=w_(t,r,e,0,null,!1,!1,"",lm);return e._reactRootContainer=l,e[Nn]=l.current,Hs(e.nodeType===8?e.parentNode:e),$r(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var d=Di(c);i.call(d)}}var c=Ud(e,0,!1,null,null,!1,!1,"",lm);return e._reactRootContainer=c,e[Nn]=c.current,Hs(e.nodeType===8?e.parentNode:e),$r(function(){aa(t,c,n,r)}),c}function da(e,t,n,r,o){var s=n._reactRootContainer;if(s){var l=s;if(typeof o=="function"){var i=o;o=function(){var c=Di(l);i.call(c)}}aa(t,l,e,o)}else l=Mx(n,t,e,o,r);return Di(l)}Zh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ks(t.pendingLanes);n!==0&&(fd(t,n|1),ht(t,Ie()),!(de&6)&&($o=Ie()+500,mr()))}break;case 13:$r(function(){var r=jn(e,1);if(r!==null){var o=ot();Wt(r,e,1,o)}}),Vd(e,1)}};pd=function(e){if(e.tag===13){var t=jn(e,134217728);if(t!==null){var n=ot();Wt(t,e,134217728,n)}Vd(e,134217728)}};Jh=function(e){if(e.tag===13){var t=sr(e),n=jn(e,t);if(n!==null){var r=ot();Wt(n,e,t,r)}Vd(e,t)}};qh=function(){return _e};eg=function(e,t){var n=_e;try{return _e=e,t()}finally{_e=n}};ru=function(e,t,n){switch(t){case"input":if(Kc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ta(r);if(!o)throw Error(A(90));Th(r),Kc(r,o)}}}break;case"textarea":Ih(e,n);break;case"select":t=n.value,t!=null&&xo(e,!!n.multiple,t,!1)}};Fh=Fd;Bh=$r;var $x={usingClientEntryPoint:!1,Events:[il,po,ta,Dh,zh,Fd]},ds={findFiberByHostInstance:Nr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Dx={bundleType:ds.bundleType,version:ds.version,rendererPackageName:ds.rendererPackageName,rendererConfig:ds.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:In.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Uh(e),e===null?null:e.stateNode},findFiberByHostInstance:ds.findFiberByHostInstance||Ox,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dl.isDisabled&&Dl.supportsFiber)try{Zi=Dl.inject(Dx),ln=Dl}catch{}}Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$x;Ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xd(t))throw Error(A(200));return Ax(e,t,null,n)};Ct.createRoot=function(e,t){if(!Xd(e))throw Error(A(299));var n=!1,r="",o=b_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ud(e,1,!1,null,null,n,!1,r,o),e[Nn]=t.current,Hs(e.nodeType===8?e.parentNode:e),new Yd(t)};Ct.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=Uh(t),e=e===null?null:e.stateNode,e};Ct.flushSync=function(e){return $r(e)};Ct.hydrate=function(e,t,n){if(!ua(t))throw Error(A(200));return da(null,e,t,!0,n)};Ct.hydrateRoot=function(e,t,n){if(!Xd(e))throw Error(A(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",l=b_;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=w_(t,null,e,1,n??null,o,!1,s,l),e[Nn]=t.current,Hs(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ca(t)};Ct.render=function(e,t,n){if(!ua(t))throw Error(A(200));return da(null,e,t,!1,n)};Ct.unmountComponentAtNode=function(e){if(!ua(e))throw Error(A(40));return e._reactRootContainer?($r(function(){da(null,null,e,!1,function(){e._reactRootContainer=null,e[Nn]=null})}),!0):!1};Ct.unstable_batchedUpdates=Fd;Ct.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ua(n))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return da(e,t,n,!1,r)};Ct.version="18.3.1-next-f1338f8080-20240426";function k_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(k_)}catch(e){console.error(e)}}k_(),kh.exports=Ct;var Vo=kh.exports;const zx=dh(Vo);var im=Vo;Hc.createRoot=im.createRoot,Hc.hydrateRoot=im.hydrateRoot;/**
41
+ * @remix-run/router v1.23.2
42
+ *
43
+ * Copyright (c) Remix Software Inc.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE.md file in the root directory of this source tree.
47
+ *
48
+ * @license MIT
49
+ */function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Js.apply(this,arguments)}var Jn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Jn||(Jn={}));const am="popstate";function Fx(e){e===void 0&&(e={});function t(o,s){let{pathname:l="/",search:i="",hash:c=""}=Vr(o.location.hash.substr(1));return!l.startsWith("/")&&!l.startsWith(".")&&(l="/"+l),Mu("",{pathname:l,search:i,hash:c},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(o,s){let l=o.document.querySelector("base"),i="";if(l&&l.getAttribute("href")){let c=o.location.href,d=c.indexOf("#");i=d===-1?c:c.slice(0,d)}return i+"#"+(typeof s=="string"?s:C_(s))}function r(o,s){fa(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return Wx(t,n,r,e)}function Be(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Bx(){return Math.random().toString(36).substr(2,8)}function cm(e,t){return{usr:e.state,key:e.key,idx:t}}function Mu(e,t,n,r){return n===void 0&&(n=null),Js({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Vr(t):t,{state:n,key:t&&t.key||r||Bx()})}function C_(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Vr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Wx(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,l=o.history,i=Jn.Pop,c=null,d=f();d==null&&(d=0,l.replaceState(Js({},l.state,{idx:d}),""));function f(){return(l.state||{idx:null}).idx}function p(){i=Jn.Pop;let k=f(),h=k==null?null:k-d;d=k,c&&c({action:i,location:y.location,delta:h})}function m(k,h){i=Jn.Push;let g=Mu(y.location,k,h);n&&n(g,k),d=f()+1;let v=cm(g,d),S=y.createHref(g);try{l.pushState(v,"",S)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(S)}s&&c&&c({action:i,location:y.location,delta:1})}function _(k,h){i=Jn.Replace;let g=Mu(y.location,k,h);n&&n(g,k),d=f();let v=cm(g,d),S=y.createHref(g);l.replaceState(v,"",S),s&&c&&c({action:i,location:y.location,delta:0})}function w(k){let h=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof k=="string"?k:C_(k);return g=g.replace(/ $/,"%20"),Be(h,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,h)}let y={get action(){return i},get location(){return e(o,l)},listen(k){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(am,p),c=k,()=>{o.removeEventListener(am,p),c=null}},createHref(k){return t(o,k)},createURL:w,encodeLocation(k){let h=w(k);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:_,go(k){return l.go(k)}};return y}var um;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(um||(um={}));function Hx(e,t,n){return n===void 0&&(n="/"),Ux(e,t,n)}function Ux(e,t,n,r){let o=typeof t=="string"?Vr(t):t,s=N_(o.pathname||"/",n);if(s==null)return null;let l=S_(e);Vx(l);let i=null;for(let c=0;i==null&&c<l.length;++c){let d=rw(s);i=ew(l[c],d)}return i}function S_(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,l,i)=>{let c={relativePath:i===void 0?s.path||"":i,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};c.relativePath.startsWith("/")&&(Be(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Lr([r,c.relativePath]),f=n.concat(c);s.children&&s.children.length>0&&(Be(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),S_(s.children,t,f,d)),!(s.path==null&&!s.index)&&t.push({path:d,score:Jx(d,s.index),routesMeta:f})};return e.forEach((s,l)=>{var i;if(s.path===""||!((i=s.path)!=null&&i.includes("?")))o(s,l);else for(let c of E_(s.path))o(s,l,c)}),t}function E_(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let l=E_(r.join("/")),i=[];return i.push(...l.map(c=>c===""?s:[s,c].join("/"))),o&&i.push(...l),i.map(c=>e.startsWith("/")&&c===""?"/":c)}function Vx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:qx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Yx=/^:[\w-]+$/,Xx=3,Qx=2,Gx=1,Kx=10,Zx=-2,dm=e=>e==="*";function Jx(e,t){let n=e.split("/"),r=n.length;return n.some(dm)&&(r+=Zx),t&&(r+=Qx),n.filter(o=>!dm(o)).reduce((o,s)=>o+(Yx.test(s)?Xx:s===""?Gx:Kx),r)}function qx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function ew(e,t,n){let{routesMeta:r}=e,o={},s="/",l=[];for(let i=0;i<r.length;++i){let c=r[i],d=i===r.length-1,f=s==="/"?t:t.slice(s.length)||"/",p=tw({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},f),m=c.route;if(!p)return null;Object.assign(o,p.params),l.push({params:o,pathname:Lr([s,p.pathname]),pathnameBase:uw(Lr([s,p.pathnameBase])),route:m}),p.pathnameBase!=="/"&&(s=Lr([s,p.pathnameBase]))}return l}function tw(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=nw(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),i=o.slice(1);return{params:r.reduce((d,f,p)=>{let{paramName:m,isOptional:_}=f;if(m==="*"){let y=i[p]||"";l=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const w=i[p];return _&&!w?d[m]=void 0:d[m]=(w||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:l,pattern:e}}function nw(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),fa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,i,c)=>(r.push({paramName:i,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function rw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fa(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function N_(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const ow=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sw=e=>ow.test(e);function lw(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Vr(e):e,s;if(n)if(sw(n))s=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),fa(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?s=fm(n.substring(1),"/"):s=fm(n,t)}else s=t;return{pathname:s,search:dw(r),hash:fw(o)}}function fm(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function gc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function iw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function aw(e,t){let n=iw(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function cw(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Vr(e):(o=Js({},e),Be(!o.pathname||!o.pathname.includes("?"),gc("?","pathname","search",o)),Be(!o.pathname||!o.pathname.includes("#"),gc("#","pathname","hash",o)),Be(!o.search||!o.search.includes("#"),gc("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,i;if(l==null)i=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),p-=1;o.pathname=m.join("/")}i=p>=0?t[p]:"/"}let c=lw(o,i),d=l&&l!=="/"&&l.endsWith("/"),f=(s||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}const Lr=e=>e.join("/").replace(/\/\/+/g,"/"),uw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function pw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const j_=["post","put","patch","delete"];new Set(j_);const mw=["get",...j_];new Set(mw);/**
50
+ * React Router v6.30.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 qs(){return qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qs.apply(this,arguments)}const Qd=u.createContext(null),hw=u.createContext(null),pa=u.createContext(null),ma=u.createContext(null),hr=u.createContext({outlet:null,matches:[],isDataRoute:!1}),P_=u.createContext(null);function ha(){return u.useContext(ma)!=null}function Gd(){return ha()||Be(!1),u.useContext(ma).location}function R_(e){u.useContext(pa).static||u.useLayoutEffect(e)}function ga(){let{isDataRoute:e}=u.useContext(hr);return e?Rw():gw()}function gw(){ha()||Be(!1);let e=u.useContext(Qd),{basename:t,future:n,navigator:r}=u.useContext(pa),{matches:o}=u.useContext(hr),{pathname:s}=Gd(),l=JSON.stringify(aw(o,n.v7_relativeSplatPath)),i=u.useRef(!1);return R_(()=>{i.current=!0}),u.useCallback(function(d,f){if(f===void 0&&(f={}),!i.current)return;if(typeof d=="number"){r.go(d);return}let p=cw(d,JSON.parse(l),s,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Lr([t,p.pathname])),(f.replace?r.replace:r.push)(p,f.state,f)},[t,r,l,s,e])}const _w=u.createContext(null);function yw(e){let t=u.useContext(hr).outlet;return t&&u.createElement(_w.Provider,{value:e},t)}function T_(){let{matches:e}=u.useContext(hr),t=e[e.length-1];return t?t.params:{}}function vw(e,t){return xw(e,t)}function xw(e,t,n,r){ha()||Be(!1);let{navigator:o}=u.useContext(pa),{matches:s}=u.useContext(hr),l=s[s.length-1],i=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let d=Gd(),f;if(t){var p;let k=typeof t=="string"?Vr(t):t;c==="/"||(p=k.pathname)!=null&&p.startsWith(c)||Be(!1),f=k}else f=d;let m=f.pathname||"/",_=m;if(c!=="/"){let k=c.replace(/^\//,"").split("/");_="/"+m.replace(/^\//,"").split("/").slice(k.length).join("/")}let w=Hx(e,{pathname:_}),y=Sw(w&&w.map(k=>Object.assign({},k,{params:Object.assign({},i,k.params),pathname:Lr([c,o.encodeLocation?o.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?c:Lr([c,o.encodeLocation?o.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),s,n,r);return t&&y?u.createElement(ma.Provider,{value:{location:qs({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Jn.Pop}},y):y}function ww(){let e=Pw(),t=pw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:o},n):null,null)}const bw=u.createElement(ww,null);class kw extends u.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?u.createElement(hr.Provider,{value:this.props.routeContext},u.createElement(P_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Cw(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(Qd);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(hr.Provider,{value:t},r)}function Sw(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,i=(o=n)==null?void 0:o.errors;if(i!=null){let f=l.findIndex(p=>p.route.id&&i?.[p.route.id]!==void 0);f>=0||Be(!1),l=l.slice(0,Math.min(l.length,f+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<l.length;f++){let p=l[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=f),p.route.id){let{loaderData:m,errors:_}=n,w=p.route.loader&&m[p.route.id]===void 0&&(!_||_[p.route.id]===void 0);if(p.route.lazy||w){c=!0,d>=0?l=l.slice(0,d+1):l=[l[0]];break}}}return l.reduceRight((f,p,m)=>{let _,w=!1,y=null,k=null;n&&(_=i&&p.route.id?i[p.route.id]:void 0,y=p.route.errorElement||bw,c&&(d<0&&m===0?(Tw("route-fallback"),w=!0,k=null):d===m&&(w=!0,k=p.route.hydrateFallbackElement||null)));let h=t.concat(l.slice(0,m+1)),g=()=>{let v;return _?v=y:w?v=k:p.route.Component?v=u.createElement(p.route.Component,null):p.route.element?v=p.route.element:v=f,u.createElement(Cw,{match:p,routeContext:{outlet:f,matches:h,isDataRoute:n!=null},children:v})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?u.createElement(kw,{location:n.location,revalidation:n.revalidation,component:y,error:_,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):g()},null)}var L_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(L_||{}),I_=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(I_||{});function Ew(e){let t=u.useContext(Qd);return t||Be(!1),t}function Nw(e){let t=u.useContext(hw);return t||Be(!1),t}function jw(e){let t=u.useContext(hr);return t||Be(!1),t}function A_(e){let t=jw(),n=t.matches[t.matches.length-1];return n.route.id||Be(!1),n.route.id}function Pw(){var e;let t=u.useContext(P_),n=Nw(),r=A_();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Rw(){let{router:e}=Ew(L_.UseNavigateStable),t=A_(I_.UseNavigateStable),n=u.useRef(!1);return R_(()=>{n.current=!0}),u.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,qs({fromRouteId:t},s)))},[e,t])}const pm={};function Tw(e,t,n){pm[e]||(pm[e]=!0)}function Lw(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function Iw(e){return yw(e.context)}function lo(e){Be(!1)}function Aw(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Jn.Pop,navigator:s,static:l=!1,future:i}=e;ha()&&Be(!1);let c=t.replace(/^\/*/,"/"),d=u.useMemo(()=>({basename:c,navigator:s,static:l,future:qs({v7_relativeSplatPath:!1},i)}),[c,i,s,l]);typeof r=="string"&&(r=Vr(r));let{pathname:f="/",search:p="",hash:m="",state:_=null,key:w="default"}=r,y=u.useMemo(()=>{let k=N_(f,c);return k==null?null:{location:{pathname:k,search:p,hash:m,state:_,key:w},navigationType:o}},[c,f,p,m,_,w,o]);return y==null?null:u.createElement(pa.Provider,{value:d},u.createElement(ma.Provider,{children:n,value:y}))}function Ow(e){let{children:t,location:n}=e;return vw($u(t),n)}new Promise(()=>{});function $u(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,o)=>{if(!u.isValidElement(r))return;let s=[...t,o];if(r.type===u.Fragment){n.push.apply(n,$u(r.props.children,s));return}r.type!==lo&&Be(!1),!r.props.index||!r.props.children||Be(!1);let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=$u(r.props.children,s)),n.push(l)}),n}/**
59
+ * React Router DOM v6.30.3
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
+ */const Mw="6";try{window.__reactRouterVersion=Mw}catch{}const $w="startTransition",mm=Ki[$w];function Dw(e){let{basename:t,children:n,future:r,window:o}=e,s=u.useRef();s.current==null&&(s.current=Fx({window:o,v5Compat:!0}));let l=s.current,[i,c]=u.useState({action:l.action,location:l.location}),{v7_startTransition:d}=r||{},f=u.useCallback(p=>{d&&mm?mm(()=>c(p)):c(p)},[c,d]);return u.useLayoutEffect(()=>l.listen(f),[l,f]),u.useEffect(()=>Lw(r),[r]),u.createElement(Aw,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:l,future:r})}var hm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(hm||(hm={}));var gm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gm||(gm={}));function ge(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function _m(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function cl(...e){return t=>{let n=!1;const r=e.map(o=>{const s=_m(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():_m(e[o],null)}}}}function De(...e){return u.useCallback(cl(...e),e)}function zw(e,t){const n=u.createContext(t),r=s=>{const{children:l,...i}=s,c=u.useMemo(()=>i,Object.values(i));return a.jsx(n.Provider,{value:c,children:l})};r.displayName=e+"Provider";function o(s){const l=u.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Yr(e,t=[]){let n=[];function r(s,l){const i=u.createContext(l),c=n.length;n=[...n,l];const d=p=>{const{scope:m,children:_,...w}=p,y=m?.[e]?.[c]||i,k=u.useMemo(()=>w,Object.values(w));return a.jsx(y.Provider,{value:k,children:_})};d.displayName=s+"Provider";function f(p,m){const _=m?.[e]?.[c]||i,w=u.useContext(_);if(w)return w;if(l!==void 0)return l;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(l=>u.createContext(l));return function(i){const c=i?.[e]||s;return u.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,Fw(o,...t)]}function Fw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const l=r.reduce((i,{useScope:c,scopeName:d})=>{const p=c(s)[`__scope${d}`];return{...i,...p}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function Bw(e){const t=Ww(e),n=u.forwardRef((r,o)=>{const{children:s,...l}=r,i=u.Children.toArray(s),c=i.find(Uw);if(c){const d=c.props.children,f=i.map(p=>p===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:p);return a.jsx(t,{...l,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return a.jsx(t,{...l,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Ww(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const l=Yw(o),i=Vw(s,o.props);return o.type!==u.Fragment&&(i.ref=r?cl(r,l):l),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Hw=Symbol("radix.slottable");function Uw(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Hw}function Vw(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Yw(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Se=Xw.reduce((e,t)=>{const n=Bw(`Primitive.${t}`),r=u.forwardRef((o,s)=>{const{asChild:l,...i}=o,c=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Qw(e,t){e&&Vo.flushSync(()=>e.dispatchEvent(t))}function dt(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>t.current?.(...n),[])}function Gw(e,t=globalThis?.document){const n=dt(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Kw="DismissableLayer",Du="dismissableLayer.update",Zw="dismissableLayer.pointerDownOutside",Jw="dismissableLayer.focusOutside",ym,O_=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kd=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:i,...c}=e,d=u.useContext(O_),[f,p]=u.useState(null),m=f?.ownerDocument??globalThis?.document,[,_]=u.useState({}),w=De(t,j=>p(j)),y=Array.from(d.layers),[k]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),h=y.indexOf(k),g=f?y.indexOf(f):-1,v=d.layersWithOutsidePointerEventsDisabled.size>0,S=g>=h,N=tb(j=>{const L=j.target,D=[...d.branches].some(M=>M.contains(L));!S||D||(o?.(j),l?.(j),j.defaultPrevented||i?.())},m),T=nb(j=>{const L=j.target;[...d.branches].some(M=>M.contains(L))||(s?.(j),l?.(j),j.defaultPrevented||i?.())},m);return Gw(j=>{g===d.layers.size-1&&(r?.(j),!j.defaultPrevented&&i&&(j.preventDefault(),i()))},m),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(ym=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),vm(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=ym)}},[f,m,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),vm())},[f,d]),u.useEffect(()=>{const j=()=>_({});return document.addEventListener(Du,j),()=>document.removeEventListener(Du,j)},[]),a.jsx(Se.div,{...c,ref:w,style:{pointerEvents:v?S?"auto":"none":void 0,...e.style},onFocusCapture:ge(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ge(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ge(e.onPointerDownCapture,N.onPointerDownCapture)})});Kd.displayName=Kw;var qw="DismissableLayerBranch",eb=u.forwardRef((e,t)=>{const n=u.useContext(O_),r=u.useRef(null),o=De(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),a.jsx(Se.div,{...e,ref:o})});eb.displayName=qw;function tb(e,t=globalThis?.document){const n=dt(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let c=function(){M_(Zw,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function nb(e,t=globalThis?.document){const n=dt(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&M_(Jw,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vm(){const e=new CustomEvent(Du);document.dispatchEvent(e)}function M_(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Qw(o,s):o.dispatchEvent(s)}var Rn=globalThis?.document?u.useLayoutEffect:()=>{},rb=Ki[" useId ".trim().toString()]||(()=>{}),ob=0;function Eo(e){const[t,n]=u.useState(rb());return Rn(()=>{n(r=>r??String(ob++))},[e]),t?`radix-${t}`:""}const sb=["top","right","bottom","left"],cr=Math.min,vt=Math.max,zi=Math.round,zl=Math.floor,cn=e=>({x:e,y:e}),lb={left:"right",right:"left",bottom:"top",top:"bottom"};function zu(e,t,n){return vt(e,cr(t,n))}function Tn(e,t){return typeof e=="function"?e(t):e}function Ln(e){return e.split("-")[0]}function Yo(e){return e.split("-")[1]}function Zd(e){return e==="x"?"y":"x"}function Jd(e){return e==="y"?"height":"width"}function sn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function qd(e){return Zd(sn(e))}function ib(e,t,n){n===void 0&&(n=!1);const r=Yo(e),o=qd(e),s=Jd(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=Fi(l)),[l,Fi(l)]}function ab(e){const t=Fi(e);return[Fu(e),t,Fu(t)]}function Fu(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const xm=["left","right"],wm=["right","left"],cb=["top","bottom"],ub=["bottom","top"];function db(e,t,n){switch(e){case"top":case"bottom":return n?t?wm:xm:t?xm:wm;case"left":case"right":return t?cb:ub;default:return[]}}function fb(e,t,n,r){const o=Yo(e);let s=db(Ln(e),n==="start",r);return o&&(s=s.map(l=>l+"-"+o),t&&(s=s.concat(s.map(Fu)))),s}function Fi(e){const t=Ln(e);return lb[t]+e.slice(t.length)}function pb(e){return{top:0,right:0,bottom:0,left:0,...e}}function $_(e){return typeof e!="number"?pb(e):{top:e,right:e,bottom:e,left:e}}function Bi(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function bm(e,t,n){let{reference:r,floating:o}=e;const s=sn(t),l=qd(t),i=Jd(l),c=Ln(t),d=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let _;switch(c){case"top":_={x:f,y:r.y-o.height};break;case"bottom":_={x:f,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:p};break;case"left":_={x:r.x-o.width,y:p};break;default:_={x:r.x,y:r.y}}switch(Yo(t)){case"start":_[l]-=m*(n&&d?-1:1);break;case"end":_[l]+=m*(n&&d?-1:1);break}return _}async function mb(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:l,elements:i,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:_=0}=Tn(t,e),w=$_(_),k=i[m?p==="floating"?"reference":"floating":p],h=Bi(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(k)))==null||n?k:k.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:c})),g=p==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),S=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},N=Bi(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:v,strategy:c}):g);return{top:(h.top-N.top+w.top)/S.y,bottom:(N.bottom-h.bottom+w.bottom)/S.y,left:(h.left-N.left+w.left)/S.x,right:(N.right-h.right+w.right)/S.x}}const hb=50,gb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:l}=n,i=l.detectOverflow?l:{...l,detectOverflow:mb},c=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=bm(d,r,c),m=r,_=0;const w={};for(let y=0;y<s.length;y++){const k=s[y];if(!k)continue;const{name:h,fn:g}=k,{x:v,y:S,data:N,reset:T}=await g({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:w,rects:d,platform:i,elements:{reference:e,floating:t}});f=v??f,p=S??p,w[h]={...w[h],...N},T&&_<hb&&(_++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(d=T.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:f,y:p}=bm(d,m,c)),y=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:w}},_b=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:l,elements:i,middlewareData:c}=t,{element:d,padding:f=0}=Tn(e,t)||{};if(d==null)return{};const p=$_(f),m={x:n,y:r},_=qd(o),w=Jd(_),y=await l.getDimensions(d),k=_==="y",h=k?"top":"left",g=k?"bottom":"right",v=k?"clientHeight":"clientWidth",S=s.reference[w]+s.reference[_]-m[_]-s.floating[w],N=m[_]-s.reference[_],T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let j=T?T[v]:0;(!j||!await(l.isElement==null?void 0:l.isElement(T)))&&(j=i.floating[v]||s.floating[w]);const L=S/2-N/2,D=j/2-y[w]/2-1,M=cr(p[h],D),U=cr(p[g],D),z=M,ee=j-y[w]-U,G=j/2-y[w]/2+L,fe=zu(z,G,ee),K=!c.arrow&&Yo(o)!=null&&G!==fe&&s.reference[w]/2-(G<z?M:U)-y[w]/2<0,me=K?G<z?G-z:G-ee:0;return{[_]:m[_]+me,data:{[_]:fe,centerOffset:G-fe-me,...K&&{alignmentOffset:me}},reset:K}}}),yb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:l,initialPlacement:i,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:y=!0,...k}=Tn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const h=Ln(o),g=sn(i),v=Ln(i)===i,S=await(c.isRTL==null?void 0:c.isRTL(d.floating)),N=m||(v||!y?[Fi(i)]:ab(i)),T=w!=="none";!m&&T&&N.push(...fb(i,y,w,S));const j=[i,...N],L=await c.detectOverflow(t,k),D=[];let M=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&D.push(L[h]),p){const G=ib(o,l,S);D.push(L[G[0]],L[G[1]])}if(M=[...M,{placement:o,overflows:D}],!D.every(G=>G<=0)){var U,z;const G=(((U=s.flip)==null?void 0:U.index)||0)+1,fe=j[G];if(fe&&(!(p==="alignment"?g!==sn(fe):!1)||M.every(E=>sn(E.placement)===g?E.overflows[0]>0:!0)))return{data:{index:G,overflows:M},reset:{placement:fe}};let K=(z=M.filter(me=>me.overflows[0]<=0).sort((me,E)=>me.overflows[1]-E.overflows[1])[0])==null?void 0:z.placement;if(!K)switch(_){case"bestFit":{var ee;const me=(ee=M.filter(E=>{if(T){const O=sn(E.placement);return O===g||O==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(O=>O>0).reduce((O,B)=>O+B,0)]).sort((E,O)=>E[1]-O[1])[0])==null?void 0:ee[0];me&&(K=me);break}case"initialPlacement":K=i;break}if(o!==K)return{reset:{placement:K}}}return{}}}};function km(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cm(e){return sb.some(t=>e[t]>=0)}const vb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=Tn(e,t);switch(o){case"referenceHidden":{const l=await r.detectOverflow(t,{...s,elementContext:"reference"}),i=km(l,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Cm(i)}}}case"escaped":{const l=await r.detectOverflow(t,{...s,altBoundary:!0}),i=km(l,n.floating);return{data:{escapedOffsets:i,escaped:Cm(i)}}}default:return{}}}}},D_=new Set(["left","top"]);async function xb(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=Ln(n),i=Yo(n),c=sn(n)==="y",d=D_.has(l)?-1:1,f=s&&c?-1:1,p=Tn(t,e);let{mainAxis:m,crossAxis:_,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof w=="number"&&(_=i==="end"?w*-1:w),c?{x:_*f,y:m*d}:{x:m*d,y:_*f}}const wb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:l,middlewareData:i}=t,c=await xb(t,e);return l===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:l}}}}},bb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:l=!0,crossAxis:i=!1,limiter:c={fn:h=>{let{x:g,y:v}=h;return{x:g,y:v}}},...d}=Tn(e,t),f={x:n,y:r},p=await s.detectOverflow(t,d),m=sn(Ln(o)),_=Zd(m);let w=f[_],y=f[m];if(l){const h=_==="y"?"top":"left",g=_==="y"?"bottom":"right",v=w+p[h],S=w-p[g];w=zu(v,w,S)}if(i){const h=m==="y"?"top":"left",g=m==="y"?"bottom":"right",v=y+p[h],S=y-p[g];y=zu(v,y,S)}const k=c.fn({...t,[_]:w,[m]:y});return{...k,data:{x:k.x-n,y:k.y-r,enabled:{[_]:l,[m]:i}}}}}},kb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:l}=t,{offset:i=0,mainAxis:c=!0,crossAxis:d=!0}=Tn(e,t),f={x:n,y:r},p=sn(o),m=Zd(p);let _=f[m],w=f[p];const y=Tn(i,t),k=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const v=m==="y"?"height":"width",S=s.reference[m]-s.floating[v]+k.mainAxis,N=s.reference[m]+s.reference[v]-k.mainAxis;_<S?_=S:_>N&&(_=N)}if(d){var h,g;const v=m==="y"?"width":"height",S=D_.has(Ln(o)),N=s.reference[p]-s.floating[v]+(S&&((h=l.offset)==null?void 0:h[p])||0)+(S?0:k.crossAxis),T=s.reference[p]+s.reference[v]+(S?0:((g=l.offset)==null?void 0:g[p])||0)-(S?k.crossAxis:0);w<N?w=N:w>T&&(w=T)}return{[m]:_,[p]:w}}}},Cb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:l,elements:i}=t,{apply:c=()=>{},...d}=Tn(e,t),f=await l.detectOverflow(t,d),p=Ln(o),m=Yo(o),_=sn(o)==="y",{width:w,height:y}=s.floating;let k,h;p==="top"||p==="bottom"?(k=p,h=m===(await(l.isRTL==null?void 0:l.isRTL(i.floating))?"start":"end")?"left":"right"):(h=p,k=m==="end"?"top":"bottom");const g=y-f.top-f.bottom,v=w-f.left-f.right,S=cr(y-f[k],g),N=cr(w-f[h],v),T=!t.middlewareData.shift;let j=S,L=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=g),T&&!m){const M=vt(f.left,0),U=vt(f.right,0),z=vt(f.top,0),ee=vt(f.bottom,0);_?L=w-2*(M!==0||U!==0?M+U:vt(f.left,f.right)):j=y-2*(z!==0||ee!==0?z+ee:vt(f.top,f.bottom))}await c({...t,availableWidth:L,availableHeight:j});const D=await l.getDimensions(i.floating);return w!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}};function _a(){return typeof window<"u"}function Xo(e){return z_(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function un(e){var t;return(t=(z_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function z_(e){return _a()?e instanceof Node||e instanceof bt(e).Node:!1}function Vt(e){return _a()?e instanceof Element||e instanceof bt(e).Element:!1}function An(e){return _a()?e instanceof HTMLElement||e instanceof bt(e).HTMLElement:!1}function Sm(e){return!_a()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function ul(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Sb(e){return/^(table|td|th)$/.test(Xo(e))}function ya(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Eb=/transform|translate|scale|rotate|perspective|filter/,Nb=/paint|layout|strict|content/,br=e=>!!e&&e!=="none";let _c;function ef(e){const t=Vt(e)?Yt(e):e;return br(t.transform)||br(t.translate)||br(t.scale)||br(t.rotate)||br(t.perspective)||!tf()&&(br(t.backdropFilter)||br(t.filter))||Eb.test(t.willChange||"")||Nb.test(t.contain||"")}function jb(e){let t=ur(e);for(;An(t)&&!Do(t);){if(ef(t))return t;if(ya(t))return null;t=ur(t)}return null}function tf(){return _c==null&&(_c=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_c}function Do(e){return/^(html|body|#document)$/.test(Xo(e))}function Yt(e){return bt(e).getComputedStyle(e)}function va(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ur(e){if(Xo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sm(e)&&e.host||un(e);return Sm(t)?t.host:t}function F_(e){const t=ur(e);return Do(t)?e.ownerDocument?e.ownerDocument.body:e.body:An(t)&&ul(t)?t:F_(t)}function el(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=F_(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),l=bt(o);if(s){const i=Bu(l);return t.concat(l,l.visualViewport||[],ul(o)?o:[],i&&n?el(i):[])}else return t.concat(o,el(o,[],n))}function Bu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function B_(e){const t=Yt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=An(e),s=o?e.offsetWidth:n,l=o?e.offsetHeight:r,i=zi(n)!==s||zi(r)!==l;return i&&(n=s,r=l),{width:n,height:r,$:i}}function nf(e){return Vt(e)?e:e.contextElement}function No(e){const t=nf(e);if(!An(t))return cn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=B_(t);let l=(s?zi(n.width):n.width)/r,i=(s?zi(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!i||!Number.isFinite(i))&&(i=1),{x:l,y:i}}const Pb=cn(0);function W_(e){const t=bt(e);return!tf()||!t.visualViewport?Pb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Rb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bt(e)?!1:t}function Dr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=nf(e);let l=cn(1);t&&(r?Vt(r)&&(l=No(r)):l=No(e));const i=Rb(s,n,r)?W_(s):cn(0);let c=(o.left+i.x)/l.x,d=(o.top+i.y)/l.y,f=o.width/l.x,p=o.height/l.y;if(s){const m=bt(s),_=r&&Vt(r)?bt(r):r;let w=m,y=Bu(w);for(;y&&r&&_!==w;){const k=No(y),h=y.getBoundingClientRect(),g=Yt(y),v=h.left+(y.clientLeft+parseFloat(g.paddingLeft))*k.x,S=h.top+(y.clientTop+parseFloat(g.paddingTop))*k.y;c*=k.x,d*=k.y,f*=k.x,p*=k.y,c+=v,d+=S,w=bt(y),y=Bu(w)}}return Bi({width:f,height:p,x:c,y:d})}function xa(e,t){const n=va(e).scrollLeft;return t?t.left+n:Dr(un(e)).left+n}function H_(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-xa(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Tb(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",l=un(r),i=t?ya(t.floating):!1;if(r===l||i&&s)return n;let c={scrollLeft:0,scrollTop:0},d=cn(1);const f=cn(0),p=An(r);if((p||!p&&!s)&&((Xo(r)!=="body"||ul(l))&&(c=va(r)),p)){const _=Dr(r);d=No(r),f.x=_.x+r.clientLeft,f.y=_.y+r.clientTop}const m=l&&!p&&!s?H_(l,c):cn(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-c.scrollTop*d.y+f.y+m.y}}function Lb(e){return Array.from(e.getClientRects())}function Ib(e){const t=un(e),n=va(e),r=e.ownerDocument.body,o=vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+xa(e);const i=-n.scrollTop;return Yt(r).direction==="rtl"&&(l+=vt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:l,y:i}}const Em=25;function Ab(e,t){const n=bt(e),r=un(e),o=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,i=0,c=0;if(o){s=o.width,l=o.height;const f=tf();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const d=xa(r);if(d<=0){const f=r.ownerDocument,p=f.body,m=getComputedStyle(p),_=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,w=Math.abs(r.clientWidth-p.clientWidth-_);w<=Em&&(s-=w)}else d<=Em&&(s+=d);return{width:s,height:l,x:i,y:c}}function Ob(e,t){const n=Dr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=An(e)?No(e):cn(1),l=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,d=r*s.y;return{width:l,height:i,x:c,y:d}}function Nm(e,t,n){let r;if(t==="viewport")r=Ab(e,n);else if(t==="document")r=Ib(un(e));else if(Vt(t))r=Ob(t,n);else{const o=W_(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Bi(r)}function U_(e,t){const n=ur(e);return n===t||!Vt(n)||Do(n)?!1:Yt(n).position==="fixed"||U_(n,t)}function Mb(e,t){const n=t.get(e);if(n)return n;let r=el(e,[],!1).filter(i=>Vt(i)&&Xo(i)!=="body"),o=null;const s=Yt(e).position==="fixed";let l=s?ur(e):e;for(;Vt(l)&&!Do(l);){const i=Yt(l),c=ef(l);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||ul(l)&&!c&&U_(e,l))?r=r.filter(f=>f!==l):o=i,l=ur(l)}return t.set(e,r),r}function $b(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?ya(t)?[]:Mb(t,this._c):[].concat(n),r],i=Nm(t,l[0],o);let c=i.top,d=i.right,f=i.bottom,p=i.left;for(let m=1;m<l.length;m++){const _=Nm(t,l[m],o);c=vt(_.top,c),d=cr(_.right,d),f=cr(_.bottom,f),p=vt(_.left,p)}return{width:d-p,height:f-c,x:p,y:c}}function Db(e){const{width:t,height:n}=B_(e);return{width:t,height:n}}function zb(e,t,n){const r=An(t),o=un(t),s=n==="fixed",l=Dr(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=cn(0);function d(){c.x=xa(o)}if(r||!r&&!s)if((Xo(t)!=="body"||ul(o))&&(i=va(t)),r){const _=Dr(t,!0,s,t);c.x=_.x+t.clientLeft,c.y=_.y+t.clientTop}else o&&d();s&&!r&&o&&d();const f=o&&!r&&!s?H_(o,i):cn(0),p=l.left+i.scrollLeft-c.x-f.x,m=l.top+i.scrollTop-c.y-f.y;return{x:p,y:m,width:l.width,height:l.height}}function yc(e){return Yt(e).position==="static"}function jm(e,t){if(!An(e)||Yt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return un(e)===n&&(n=n.ownerDocument.body),n}function V_(e,t){const n=bt(e);if(ya(e))return n;if(!An(e)){let o=ur(e);for(;o&&!Do(o);){if(Vt(o)&&!yc(o))return o;o=ur(o)}return n}let r=jm(e,t);for(;r&&Sb(r)&&yc(r);)r=jm(r,t);return r&&Do(r)&&yc(r)&&!ef(r)?n:r||jb(e)||n}const Fb=async function(e){const t=this.getOffsetParent||V_,n=this.getDimensions,r=await n(e.floating);return{reference:zb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Bb(e){return Yt(e).direction==="rtl"}const Wb={convertOffsetParentRelativeRectToViewportRelativeRect:Tb,getDocumentElement:un,getClippingRect:$b,getOffsetParent:V_,getElementRects:Fb,getClientRects:Lb,getDimensions:Db,getScale:No,isElement:Vt,isRTL:Bb};function Y_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Hb(e,t){let n=null,r;const o=un(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function l(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const d=e.getBoundingClientRect(),{left:f,top:p,width:m,height:_}=d;if(i||t(),!m||!_)return;const w=zl(p),y=zl(o.clientWidth-(f+m)),k=zl(o.clientHeight-(p+_)),h=zl(f),v={rootMargin:-w+"px "+-y+"px "+-k+"px "+-h+"px",threshold:vt(0,cr(1,c))||1};let S=!0;function N(T){const j=T[0].intersectionRatio;if(j!==c){if(!S)return l();j?l(!1,j):r=setTimeout(()=>{l(!1,1e-7)},1e3)}j===1&&!Y_(d,e.getBoundingClientRect())&&l(),S=!1}try{n=new IntersectionObserver(N,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(N,v)}n.observe(e)}return l(!0),s}function Ub(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=nf(e),f=o||s?[...d?el(d):[],...t?el(t):[]]:[];f.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),s&&h.addEventListener("resize",n)});const p=d&&i?Hb(d,n):null;let m=-1,_=null;l&&(_=new ResizeObserver(h=>{let[g]=h;g&&g.target===d&&_&&t&&(_.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var v;(v=_)==null||v.observe(t)})),n()}),d&&!c&&_.observe(d),t&&_.observe(t));let w,y=c?Dr(e):null;c&&k();function k(){const h=Dr(e);y&&!Y_(y,h)&&n(),y=h,w=requestAnimationFrame(k)}return n(),()=>{var h;f.forEach(g=>{o&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),p?.(),(h=_)==null||h.disconnect(),_=null,c&&cancelAnimationFrame(w)}}const Vb=wb,Yb=bb,Xb=yb,Qb=Cb,Gb=vb,Pm=_b,Kb=kb,Zb=(e,t,n)=>{const r=new Map,o={platform:Wb,...n},s={...o.platform,_c:r};return gb(e,t,{...o,platform:s})};var Jb=typeof document<"u",qb=function(){},di=Jb?u.useLayoutEffect:qb;function Wi(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Wi(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Wi(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function X_(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rm(e,t){const n=X_(e);return Math.round(t*n)/n}function vc(e){const t=u.useRef(e);return di(()=>{t.current=e}),t}function e5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:l}={},transform:i=!0,whileElementsMounted:c,open:d}=e,[f,p]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,_]=u.useState(r);Wi(m,r)||_(r);const[w,y]=u.useState(null),[k,h]=u.useState(null),g=u.useCallback(E=>{E!==T.current&&(T.current=E,y(E))},[]),v=u.useCallback(E=>{E!==j.current&&(j.current=E,h(E))},[]),S=s||w,N=l||k,T=u.useRef(null),j=u.useRef(null),L=u.useRef(f),D=c!=null,M=vc(c),U=vc(o),z=vc(d),ee=u.useCallback(()=>{if(!T.current||!j.current)return;const E={placement:t,strategy:n,middleware:m};U.current&&(E.platform=U.current),Zb(T.current,j.current,E).then(O=>{const B={...O,isPositioned:z.current!==!1};G.current&&!Wi(L.current,B)&&(L.current=B,Vo.flushSync(()=>{p(B)}))})},[m,t,n,U,z]);di(()=>{d===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,p(E=>({...E,isPositioned:!1})))},[d]);const G=u.useRef(!1);di(()=>(G.current=!0,()=>{G.current=!1}),[]),di(()=>{if(S&&(T.current=S),N&&(j.current=N),S&&N){if(M.current)return M.current(S,N,ee);ee()}},[S,N,ee,M,D]);const fe=u.useMemo(()=>({reference:T,floating:j,setReference:g,setFloating:v}),[g,v]),K=u.useMemo(()=>({reference:S,floating:N}),[S,N]),me=u.useMemo(()=>{const E={position:n,left:0,top:0};if(!K.floating)return E;const O=Rm(K.floating,f.x),B=Rm(K.floating,f.y);return i?{...E,transform:"translate("+O+"px, "+B+"px)",...X_(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:B}},[n,i,K.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:ee,refs:fe,elements:K,floatingStyles:me}),[f,ee,fe,K,me])}const t5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Pm({element:r.current,padding:o}).fn(n):{}:r?Pm({element:r,padding:o}).fn(n):{}}}},n5=(e,t)=>{const n=Vb(e);return{name:n.name,fn:n.fn,options:[e,t]}},r5=(e,t)=>{const n=Yb(e);return{name:n.name,fn:n.fn,options:[e,t]}},o5=(e,t)=>({fn:Kb(e).fn,options:[e,t]}),s5=(e,t)=>{const n=Xb(e);return{name:n.name,fn:n.fn,options:[e,t]}},l5=(e,t)=>{const n=Qb(e);return{name:n.name,fn:n.fn,options:[e,t]}},i5=(e,t)=>{const n=Gb(e);return{name:n.name,fn:n.fn,options:[e,t]}},a5=(e,t)=>{const n=t5(e);return{name:n.name,fn:n.fn,options:[e,t]}};var c5="Arrow",Q_=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return a.jsx(Se.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});Q_.displayName=c5;var u5=Q_;function d5(e){const[t,n]=u.useState(void 0);return Rn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let l,i;if("borderBoxSize"in s){const c=s.borderBoxSize,d=Array.isArray(c)?c[0]:c;l=d.inlineSize,i=d.blockSize}else l=e.offsetWidth,i=e.offsetHeight;n({width:l,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var rf="Popper",[G_,K_]=Yr(rf),[f5,Z_]=G_(rf),J_=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return a.jsx(f5,{scope:t,anchor:r,onAnchorChange:o,children:n})};J_.displayName=rf;var q_="PopperAnchor",e0=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Z_(q_,n),l=u.useRef(null),i=De(t,l),c=u.useRef(null);return u.useEffect(()=>{const d=c.current;c.current=r?.current||l.current,d!==c.current&&s.onAnchorChange(c.current)}),r?null:a.jsx(Se.div,{...o,ref:i})});e0.displayName=q_;var of="PopperContent",[p5,m5]=G_(of),t0=u.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:l=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:_="optimized",onPlaced:w,...y}=e,k=Z_(of,n),[h,g]=u.useState(null),v=De(t,gt=>g(gt)),[S,N]=u.useState(null),T=d5(S),j=T?.width??0,L=T?.height??0,D=r+(s!=="center"?"-"+s:""),M=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},U=Array.isArray(d)?d:[d],z=U.length>0,ee={padding:M,boundary:U.filter(g5),altBoundary:z},{refs:G,floatingStyles:fe,placement:K,isPositioned:me,middlewareData:E}=e5({strategy:"fixed",placement:D,whileElementsMounted:(...gt)=>Ub(...gt,{animationFrame:_==="always"}),elements:{reference:k.anchor},middleware:[n5({mainAxis:o+L,alignmentAxis:l}),c&&r5({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?o5():void 0,...ee}),c&&s5({...ee}),l5({...ee,apply:({elements:gt,rects:gr,availableWidth:Go,availableHeight:Ko})=>{const{width:pn,height:fl}=gr.reference,Kt=gt.floating.style;Kt.setProperty("--radix-popper-available-width",`${Go}px`),Kt.setProperty("--radix-popper-available-height",`${Ko}px`),Kt.setProperty("--radix-popper-anchor-width",`${pn}px`),Kt.setProperty("--radix-popper-anchor-height",`${fl}px`)}}),S&&a5({element:S,padding:i}),_5({arrowWidth:j,arrowHeight:L}),m&&i5({strategy:"referenceHidden",...ee})]}),[O,B]=o0(K),Q=dt(w);Rn(()=>{me&&Q?.()},[me,Q]);const he=E.arrow?.x,Qt=E.arrow?.y,Gt=E.arrow?.centerOffset!==0,[On,Et]=u.useState();return Rn(()=>{h&&Et(window.getComputedStyle(h).zIndex)},[h]),a.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...fe,transform:me?fe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:On,"--radix-popper-transform-origin":[E.transformOrigin?.x,E.transformOrigin?.y].join(" "),...E.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(p5,{scope:n,placedSide:O,onArrowChange:N,arrowX:he,arrowY:Qt,shouldHideArrow:Gt,children:a.jsx(Se.div,{"data-side":O,"data-align":B,...y,ref:v,style:{...y.style,animation:me?void 0:"none"}})})})});t0.displayName=of;var n0="PopperArrow",h5={top:"bottom",right:"left",bottom:"top",left:"right"},r0=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=m5(n0,r),l=h5[s.placedSide];return a.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:a.jsx(u5,{...o,ref:n,style:{...o.style,display:"block"}})})});r0.displayName=n0;function g5(e){return e!==null}var _5=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,l=o.arrow?.centerOffset!==0,i=l?0:e.arrowWidth,c=l?0:e.arrowHeight,[d,f]=o0(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(o.arrow?.x??0)+i/2,_=(o.arrow?.y??0)+c/2;let w="",y="";return d==="bottom"?(w=l?p:`${m}px`,y=`${-c}px`):d==="top"?(w=l?p:`${m}px`,y=`${r.floating.height+c}px`):d==="right"?(w=`${-c}px`,y=l?p:`${_}px`):d==="left"&&(w=`${r.floating.width+c}px`,y=l?p:`${_}px`),{data:{x:w,y}}}});function o0(e){const[t,n="center"]=e.split("-");return[t,n]}var y5=J_,v5=e0,x5=t0,w5=r0,b5="Portal",s0=u.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=u.useState(!1);Rn(()=>s(!0),[]);const l=n||o&&globalThis?.document?.body;return l?zx.createPortal(a.jsx(Se.div,{...r,ref:t}),l):null});s0.displayName=b5;function k5(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var dn=e=>{const{present:t,children:n}=e,r=C5(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=De(r.ref,S5(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};dn.displayName="Presence";function C5(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),s=u.useRef("none"),l=e?"mounted":"unmounted",[i,c]=k5(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=Fl(r.current);s.current=i==="mounted"?d:"none"},[i]),Rn(()=>{const d=r.current,f=o.current;if(f!==e){const m=s.current,_=Fl(d);e?c("MOUNT"):_==="none"||d?.display==="none"?c("UNMOUNT"):c(f&&m!==_?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Rn(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=_=>{const y=Fl(r.current).includes(CSS.escape(_.animationName));if(_.target===t&&y&&(c("ANIMATION_END"),!o.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},m=_=>{_.target===t&&(s.current=Fl(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:u.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Fl(e){return e?.animationName||"none"}function S5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var E5=Symbol("radix.slottable");function N5(e){const t=({children:n})=>a.jsx(a.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=E5,t}var j5=Ki[" useInsertionEffect ".trim().toString()]||Rn;function wa({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,l]=P5({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,r])}const d=u.useCallback(f=>{if(i){const p=R5(f)?f(e):f;p!==e&&l.current?.(p)}else s(f)},[i,e,s,l]);return[c,d]}function P5({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),s=u.useRef(t);return j5(()=>{s.current=t},[t]),u.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function R5(e){return typeof e=="function"}var T5=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),L5="VisuallyHidden",l0=u.forwardRef((e,t)=>a.jsx(Se.span,{...e,ref:t,style:{...T5,...e.style}}));l0.displayName=L5;var I5=l0,[ba]=Yr("Tooltip",[K_]),ka=K_(),i0="TooltipProvider",A5=700,Wu="tooltip.open",[O5,sf]=ba(i0),a0=e=>{const{__scopeTooltip:t,delayDuration:n=A5,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,l=u.useRef(!0),i=u.useRef(!1),c=u.useRef(0);return u.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),a.jsx(O5,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(c.current),l.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:u.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:s})};a0.displayName=i0;var tl="Tooltip",[M5,Ca]=ba(tl),c0=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:l,delayDuration:i}=e,c=sf(tl,e.__scopeTooltip),d=ka(t),[f,p]=u.useState(null),m=Eo(),_=u.useRef(0),w=l??c.disableHoverableContent,y=i??c.delayDuration,k=u.useRef(!1),[h,g]=wa({prop:r,defaultProp:o??!1,onChange:j=>{j?(c.onOpen(),document.dispatchEvent(new CustomEvent(Wu))):c.onClose(),s?.(j)},caller:tl}),v=u.useMemo(()=>h?k.current?"delayed-open":"instant-open":"closed",[h]),S=u.useCallback(()=>{window.clearTimeout(_.current),_.current=0,k.current=!1,g(!0)},[g]),N=u.useCallback(()=>{window.clearTimeout(_.current),_.current=0,g(!1)},[g]),T=u.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>{k.current=!0,g(!0),_.current=0},y)},[y,g]);return u.useEffect(()=>()=>{_.current&&(window.clearTimeout(_.current),_.current=0)},[]),a.jsx(y5,{...d,children:a.jsx(M5,{scope:t,contentId:m,open:h,stateAttribute:v,trigger:f,onTriggerChange:p,onTriggerEnter:u.useCallback(()=>{c.isOpenDelayedRef.current?T():S()},[c.isOpenDelayedRef,T,S]),onTriggerLeave:u.useCallback(()=>{w?N():(window.clearTimeout(_.current),_.current=0)},[N,w]),onOpen:S,onClose:N,disableHoverableContent:w,children:n})})};c0.displayName=tl;var Hu="TooltipTrigger",u0=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ca(Hu,n),s=sf(Hu,n),l=ka(n),i=u.useRef(null),c=De(t,i,o.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),p=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),a.jsx(v5,{asChild:!0,...l,children:a.jsx(Se.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:ge(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:ge(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:ge(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ge(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:ge(e.onBlur,o.onClose),onClick:ge(e.onClick,o.onClose)})})});u0.displayName=Hu;var $5="TooltipPortal",[JE,D5]=ba($5,{forceMount:void 0}),zo="TooltipContent",d0=u.forwardRef((e,t)=>{const n=D5(zo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,l=Ca(zo,e.__scopeTooltip);return a.jsx(dn,{present:r||l.open,children:l.disableHoverableContent?a.jsx(f0,{side:o,...s,ref:t}):a.jsx(z5,{side:o,...s,ref:t})})}),z5=u.forwardRef((e,t)=>{const n=Ca(zo,e.__scopeTooltip),r=sf(zo,e.__scopeTooltip),o=u.useRef(null),s=De(t,o),[l,i]=u.useState(null),{trigger:c,onClose:d}=n,f=o.current,{onPointerInTransitChange:p}=r,m=u.useCallback(()=>{i(null),p(!1)},[p]),_=u.useCallback((w,y)=>{const k=w.currentTarget,h={x:w.clientX,y:w.clientY},g=U5(h,k.getBoundingClientRect()),v=V5(h,g),S=Y5(y.getBoundingClientRect()),N=Q5([...v,...S]);i(N),p(!0)},[p]);return u.useEffect(()=>()=>m(),[m]),u.useEffect(()=>{if(c&&f){const w=k=>_(k,f),y=k=>_(k,c);return c.addEventListener("pointerleave",w),f.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",y)}}},[c,f,_,m]),u.useEffect(()=>{if(l){const w=y=>{const k=y.target,h={x:y.clientX,y:y.clientY},g=c?.contains(k)||f?.contains(k),v=!X5(h,l);g?m():v&&(m(),d())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,f,l,d,m]),a.jsx(f0,{...e,ref:s})}),[F5,B5]=ba(tl,{isInside:!1}),W5=N5("TooltipContent"),f0=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:l,...i}=e,c=Ca(zo,n),d=ka(n),{onClose:f}=c;return u.useEffect(()=>(document.addEventListener(Wu,f),()=>document.removeEventListener(Wu,f)),[f]),u.useEffect(()=>{if(c.trigger){const p=m=>{m.target?.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),a.jsx(Kd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:a.jsxs(x5,{"data-state":c.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(W5,{children:r}),a.jsx(F5,{scope:n,isInside:!0,children:a.jsx(I5,{id:c.contentId,role:"tooltip",children:o||r})})]})})});d0.displayName=zo;var p0="TooltipArrow",H5=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ka(n);return B5(p0,n).isInside?null:a.jsx(w5,{...o,...r,ref:t})});H5.displayName=p0;function U5(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function V5(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Y5(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function X5(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const i=t[s],c=t[l],d=i.x,f=i.y,p=c.x,m=c.y;f>r!=m>r&&n<(p-d)*(r-f)/(m-f)+d&&(o=!o)}return o}function Q5(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),G5(t)}function G5(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(o.y-l.y)>=(s.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],l=n[n.length-2];if((s.x-l.x)*(o.y-l.y)>=(s.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var K5=a0,Z5=c0,J5=u0,m0=d0;function h0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=h0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function g0(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=h0(e))&&(r&&(r+=" "),r+=t);return r}const lf="-",q5=e=>{const t=t2(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const i=l.split(lf);return i[0]===""&&i.length!==1&&i.shift(),_0(i,t)||e2(l)},getConflictingClassGroupIds:(l,i)=>{const c=n[l]||[];return i&&r[l]?[...c,...r[l]]:c}}},_0=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?_0(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(lf);return t.validators.find(({validator:l})=>l(s))?.classGroupId},Tm=/^\[(.+)\]$/,e2=e=>{if(Tm.test(e)){const t=Tm.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},t2=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return r2(Object.entries(e.classGroups),n).forEach(([s,l])=>{Uu(l,r,s,t)}),r},Uu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Lm(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(n2(o)){Uu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,l])=>{Uu(l,Lm(t,s),n,r)})})},Lm=(e,t)=>{let n=e;return t.split(lf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},n2=e=>e.isThemeGetter,r2=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[t+l,i])):s);return[n,o]}):e,o2=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,l)=>{n.set(s,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return o(s,l),l},set(s,l){n.has(s)?n.set(s,l):o(s,l)}}},y0="!",s2=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,l=i=>{const c=[];let d=0,f=0,p;for(let k=0;k<i.length;k++){let h=i[k];if(d===0){if(h===o&&(r||i.slice(k,k+s)===t)){c.push(i.slice(f,k)),f=k+s;continue}if(h==="/"){p=k;continue}}h==="["?d++:h==="]"&&d--}const m=c.length===0?i:i.substring(f),_=m.startsWith(y0),w=_?m.substring(1):m,y=p&&p>f?p-f:void 0;return{modifiers:c,hasImportantModifier:_,baseClassName:w,maybePostfixModifierPosition:y}};return n?i=>n({className:i,parseClassName:l}):l},l2=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},i2=e=>({cache:o2(e.cacheSize),parseClassName:s2(e),...q5(e)}),a2=/\s+/,c2=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],l=e.trim().split(a2);let i="";for(let c=l.length-1;c>=0;c-=1){const d=l[c],{modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:_}=n(d);let w=!!_,y=r(w?m.substring(0,_):m);if(!y){if(!w){i=d+(i.length>0?" "+i:i);continue}if(y=r(m),!y){i=d+(i.length>0?" "+i:i);continue}w=!1}const k=l2(f).join(":"),h=p?k+y0:k,g=h+y;if(s.includes(g))continue;s.push(g);const v=o(y,w);for(let S=0;S<v.length;++S){const N=v[S];s.push(h+N)}i=d+(i.length>0?" "+i:i)}return i};function u2(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=v0(t))&&(r&&(r+=" "),r+=n);return r}const v0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=v0(e[r]))&&(n&&(n+=" "),n+=t);return n};function d2(e,...t){let n,r,o,s=l;function l(c){const d=t.reduce((f,p)=>p(f),e());return n=i2(d),r=n.cache.get,o=n.cache.set,s=i,i(c)}function i(c){const d=r(c);if(d)return d;const f=c2(c,n);return o(c,f),f}return function(){return s(u2.apply(null,arguments))}}const be=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},x0=/^\[(?:([a-z-]+):)?(.+)\]$/i,f2=/^\d+\/\d+$/,p2=new Set(["px","full","screen"]),m2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,h2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,g2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,y2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vn=e=>jo(e)||p2.has(e)||f2.test(e),Fn=e=>Qo(e,"length",E2),jo=e=>!!e&&!Number.isNaN(Number(e)),xc=e=>Qo(e,"number",jo),fs=e=>!!e&&Number.isInteger(Number(e)),v2=e=>e.endsWith("%")&&jo(e.slice(0,-1)),q=e=>x0.test(e),Bn=e=>m2.test(e),x2=new Set(["length","size","percentage"]),w2=e=>Qo(e,x2,w0),b2=e=>Qo(e,"position",w0),k2=new Set(["image","url"]),C2=e=>Qo(e,k2,j2),S2=e=>Qo(e,"",N2),ps=()=>!0,Qo=(e,t,n)=>{const r=x0.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},E2=e=>h2.test(e)&&!g2.test(e),w0=()=>!1,N2=e=>_2.test(e),j2=e=>y2.test(e),P2=()=>{const e=be("colors"),t=be("spacing"),n=be("blur"),r=be("brightness"),o=be("borderColor"),s=be("borderRadius"),l=be("borderSpacing"),i=be("borderWidth"),c=be("contrast"),d=be("grayscale"),f=be("hueRotate"),p=be("invert"),m=be("gap"),_=be("gradientColorStops"),w=be("gradientColorStopPositions"),y=be("inset"),k=be("margin"),h=be("opacity"),g=be("padding"),v=be("saturate"),S=be("scale"),N=be("sepia"),T=be("skew"),j=be("space"),L=be("translate"),D=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",q,t],z=()=>[q,t],ee=()=>["",vn,Fn],G=()=>["auto",jo,q],fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",q],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[jo,q];return{cacheSize:500,separator:":",theme:{colors:[ps],spacing:[vn,Fn],blur:["none","",Bn,q],brightness:Q(),borderColor:[e],borderRadius:["none","","full",Bn,q],borderSpacing:z(),borderWidth:ee(),contrast:Q(),grayscale:O(),hueRotate:Q(),invert:O(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[v2,Fn],inset:U(),margin:U(),opacity:Q(),padding:z(),saturate:Q(),scale:Q(),sepia:O(),skew:Q(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[Bn]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...fe(),q]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",fs,q]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",fs,q]}],"grid-cols":[{"grid-cols":[ps]}],"col-start-end":[{col:["auto",{span:["full",fs,q]},q]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[ps]}],"row-start-end":[{row:["auto",{span:[fs,q]},q]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[Bn]},Bn]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Bn,Fn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xc]}],"font-family":[{font:[ps]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",jo,xc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",vn,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",vn,Fn]}],"underline-offset":[{"underline-offset":["auto",vn,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fe(),b2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",w2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},C2]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[_]}],"gradient-via":[{via:[_]}],"gradient-to":[{to:[_]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:K()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[vn,q]}],"outline-w":[{outline:[vn,Fn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[vn,Fn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Bn,S2]}],"shadow-color":[{shadow:[ps]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":me()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Bn,q]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[v]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[fs,q]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[vn,Fn,xc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},R2=d2(P2);function ie(...e){return R2(g0(e))}function Ht(e){if(e==null)return"—";if(e<1e3)return`${e}ms`;if(e<6e4)return`${(e/1e3).toFixed(1)}s`;const t=Math.floor(e/6e4),n=Math.round(e%6e4/1e3);return`${t}m ${n}s`}function T2(e){if(!e)return"—";const t=Date.now()-e;return t<1e3?"just now":t<6e4?`${Math.floor(t/1e3)}s ago`:t<36e5?`${Math.floor(t/6e4)}m ago`:t<864e5?`${Math.floor(t/36e5)}h ago`:`${Math.floor(t/864e5)}d ago`}function L2(e,t=12){return e.length<=t?e:e.slice(0,t)+"…"}const I2=K5,zr=Z5,Fr=J5,dr=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(m0,{ref:r,sideOffset:t,className:ie("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...n}));dr.displayName=m0.displayName;const b0=u.createContext({theme:"system",resolvedTheme:"dark",setTheme:()=>{}}),Im="chisel-studio-theme";function k0(){return typeof window>"u"||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Am(e){return e==="system"?k0():e}function wc(e){const t=document.documentElement;t.classList.remove("light","dark"),t.classList.add(e)}function A2({children:e}){const[t,n]=u.useState(()=>typeof window>"u"?"system":localStorage.getItem(Im)||"system"),[r,o]=u.useState(()=>Am(t)),s=u.useCallback(l=>{n(l),localStorage.setItem(Im,l);const i=Am(l);o(i),wc(i)},[]);return u.useEffect(()=>{wc(r)},[]),u.useEffect(()=>{if(t!=="system")return;const l=window.matchMedia("(prefers-color-scheme: dark)"),i=()=>{const c=k0();o(c),wc(c)};return l.addEventListener("change",i),()=>l.removeEventListener("change",i)},[t]),a.jsx(b0.Provider,{value:{theme:t,resolvedTheme:r,setTheme:s},children:e})}function O2(){return u.useContext(b0)}var M2=`.styles-module__popup___IhzrD svg[fill=none] {
68
+ fill: none !important;
69
+ }
70
+ .styles-module__popup___IhzrD svg[fill=none] :not([fill]) {
71
+ fill: none !important;
72
+ }
73
+
74
+ @keyframes styles-module__popupEnter___AuQDN {
75
+ from {
76
+ opacity: 0;
77
+ transform: translateX(-50%) scale(0.95) translateY(4px);
78
+ }
79
+ to {
80
+ opacity: 1;
81
+ transform: translateX(-50%) scale(1) translateY(0);
82
+ }
83
+ }
84
+ @keyframes styles-module__popupExit___JJKQX {
85
+ from {
86
+ opacity: 1;
87
+ transform: translateX(-50%) scale(1) translateY(0);
88
+ }
89
+ to {
90
+ opacity: 0;
91
+ transform: translateX(-50%) scale(0.95) translateY(4px);
92
+ }
93
+ }
94
+ @keyframes styles-module__shake___jdbWe {
95
+ 0%, 100% {
96
+ transform: translateX(-50%) scale(1) translateY(0) translateX(0);
97
+ }
98
+ 20% {
99
+ transform: translateX(-50%) scale(1) translateY(0) translateX(-3px);
100
+ }
101
+ 40% {
102
+ transform: translateX(-50%) scale(1) translateY(0) translateX(3px);
103
+ }
104
+ 60% {
105
+ transform: translateX(-50%) scale(1) translateY(0) translateX(-2px);
106
+ }
107
+ 80% {
108
+ transform: translateX(-50%) scale(1) translateY(0) translateX(2px);
109
+ }
110
+ }
111
+ .styles-module__popup___IhzrD {
112
+ position: fixed;
113
+ transform: translateX(-50%);
114
+ width: 280px;
115
+ padding: 0.75rem 1rem 14px;
116
+ background: #1a1a1a;
117
+ border-radius: 16px;
118
+ box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
119
+ cursor: default;
120
+ z-index: 100001;
121
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
122
+ will-change: transform, opacity;
123
+ opacity: 0;
124
+ }
125
+ .styles-module__popup___IhzrD.styles-module__enter___L7U7N {
126
+ animation: styles-module__popupEnter___AuQDN 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
127
+ }
128
+ .styles-module__popup___IhzrD.styles-module__entered___COX-w {
129
+ opacity: 1;
130
+ transform: translateX(-50%) scale(1) translateY(0);
131
+ }
132
+ .styles-module__popup___IhzrD.styles-module__exit___5eGjE {
133
+ animation: styles-module__popupExit___JJKQX 0.15s ease-in forwards;
134
+ }
135
+ .styles-module__popup___IhzrD.styles-module__entered___COX-w.styles-module__shake___jdbWe {
136
+ animation: styles-module__shake___jdbWe 0.25s ease-out;
137
+ }
138
+
139
+ .styles-module__header___wWsSi {
140
+ display: flex;
141
+ align-items: center;
142
+ justify-content: space-between;
143
+ margin-bottom: 0.5625rem;
144
+ }
145
+
146
+ .styles-module__element___fTV2z {
147
+ font-size: 0.75rem;
148
+ font-weight: 400;
149
+ color: rgba(255, 255, 255, 0.5);
150
+ max-width: 100%;
151
+ overflow: hidden;
152
+ text-overflow: ellipsis;
153
+ white-space: nowrap;
154
+ flex: 1;
155
+ }
156
+
157
+ .styles-module__headerToggle___WpW0b {
158
+ display: flex;
159
+ align-items: center;
160
+ gap: 0.25rem;
161
+ background: none;
162
+ border: none;
163
+ padding: 0;
164
+ cursor: pointer;
165
+ flex: 1;
166
+ min-width: 0;
167
+ text-align: left;
168
+ }
169
+ .styles-module__headerToggle___WpW0b .styles-module__element___fTV2z {
170
+ flex: 1;
171
+ }
172
+
173
+ .styles-module__chevron___ZZJlR {
174
+ color: rgba(255, 255, 255, 0.5);
175
+ transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
176
+ flex-shrink: 0;
177
+ }
178
+ .styles-module__chevron___ZZJlR.styles-module__expanded___2Hxgv {
179
+ transform: rotate(90deg);
180
+ }
181
+
182
+ .styles-module__stylesWrapper___pnHgy {
183
+ display: grid;
184
+ grid-template-rows: 0fr;
185
+ transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
186
+ }
187
+ .styles-module__stylesWrapper___pnHgy.styles-module__expanded___2Hxgv {
188
+ grid-template-rows: 1fr;
189
+ }
190
+
191
+ .styles-module__stylesInner___YYZe2 {
192
+ overflow: hidden;
193
+ }
194
+
195
+ .styles-module__stylesBlock___VfQKn {
196
+ background: rgba(255, 255, 255, 0.05);
197
+ border-radius: 0.375rem;
198
+ padding: 0.5rem 0.625rem;
199
+ margin-bottom: 0.5rem;
200
+ font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
201
+ font-size: 0.6875rem;
202
+ line-height: 1.5;
203
+ }
204
+
205
+ .styles-module__styleLine___1YQiD {
206
+ color: rgba(255, 255, 255, 0.85);
207
+ word-break: break-word;
208
+ }
209
+
210
+ .styles-module__styleProperty___84L1i {
211
+ color: #c792ea;
212
+ }
213
+
214
+ .styles-module__styleValue___q51-h {
215
+ color: rgba(255, 255, 255, 0.85);
216
+ }
217
+
218
+ .styles-module__timestamp___Dtpsv {
219
+ font-size: 0.625rem;
220
+ font-weight: 500;
221
+ color: rgba(255, 255, 255, 0.35);
222
+ font-variant-numeric: tabular-nums;
223
+ margin-left: 0.5rem;
224
+ flex-shrink: 0;
225
+ }
226
+
227
+ .styles-module__quote___mcMmQ {
228
+ font-size: 12px;
229
+ font-style: italic;
230
+ color: rgba(255, 255, 255, 0.6);
231
+ margin-bottom: 0.5rem;
232
+ padding: 0.4rem 0.5rem;
233
+ background: rgba(255, 255, 255, 0.05);
234
+ border-radius: 0.25rem;
235
+ line-height: 1.45;
236
+ }
237
+
238
+ .styles-module__textarea___jrSae {
239
+ width: 100%;
240
+ padding: 0.5rem 0.625rem;
241
+ font-size: 0.8125rem;
242
+ font-family: inherit;
243
+ background: rgba(255, 255, 255, 0.05);
244
+ color: #fff;
245
+ border: 1px solid rgba(255, 255, 255, 0.15);
246
+ border-radius: 8px;
247
+ resize: none;
248
+ outline: none;
249
+ transition: border-color 0.15s ease;
250
+ }
251
+ .styles-module__textarea___jrSae:focus {
252
+ border-color: var(--agentation-color-blue);
253
+ }
254
+ .styles-module__textarea___jrSae.styles-module__green___99l3h:focus {
255
+ border-color: var(--agentation-color-green);
256
+ }
257
+ .styles-module__textarea___jrSae::placeholder {
258
+ color: rgba(255, 255, 255, 0.35);
259
+ }
260
+ .styles-module__textarea___jrSae::-webkit-scrollbar {
261
+ width: 6px;
262
+ }
263
+ .styles-module__textarea___jrSae::-webkit-scrollbar-track {
264
+ background: transparent;
265
+ }
266
+ .styles-module__textarea___jrSae::-webkit-scrollbar-thumb {
267
+ background: rgba(255, 255, 255, 0.2);
268
+ border-radius: 3px;
269
+ }
270
+
271
+ .styles-module__actions___D6x3f {
272
+ display: flex;
273
+ justify-content: flex-end;
274
+ gap: 0.375rem;
275
+ margin-top: 0.5rem;
276
+ }
277
+
278
+ .styles-module__cancel___hRjnL,
279
+ .styles-module__submit___K-mIR {
280
+ padding: 0.4rem 0.875rem;
281
+ font-size: 0.75rem;
282
+ font-weight: 500;
283
+ border-radius: 1rem;
284
+ border: none;
285
+ cursor: pointer;
286
+ transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
287
+ }
288
+
289
+ .styles-module__cancel___hRjnL {
290
+ background: transparent;
291
+ color: rgba(255, 255, 255, 0.5);
292
+ }
293
+ .styles-module__cancel___hRjnL:hover {
294
+ background: rgba(255, 255, 255, 0.1);
295
+ color: rgba(255, 255, 255, 0.8);
296
+ }
297
+
298
+ .styles-module__submit___K-mIR {
299
+ color: white;
300
+ }
301
+ .styles-module__submit___K-mIR:hover:not(:disabled) {
302
+ filter: brightness(0.9);
303
+ }
304
+ .styles-module__submit___K-mIR:disabled {
305
+ cursor: not-allowed;
306
+ }
307
+
308
+ .styles-module__deleteWrapper___oSjdo {
309
+ margin-right: auto;
310
+ }
311
+
312
+ .styles-module__deleteButton___4VuAE {
313
+ cursor: pointer;
314
+ display: flex;
315
+ align-items: center;
316
+ justify-content: center;
317
+ width: 28px;
318
+ height: 28px;
319
+ border-radius: 50%;
320
+ border: none;
321
+ background: transparent;
322
+ color: rgba(255, 255, 255, 0.4);
323
+ transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
324
+ }
325
+ .styles-module__deleteButton___4VuAE:hover {
326
+ background-color: color-mix(in srgb, var(--agentation-color-red) 25%, transparent);
327
+ color: var(--agentation-color-red);
328
+ }
329
+ .styles-module__deleteButton___4VuAE:active {
330
+ transform: scale(0.92);
331
+ }
332
+
333
+ .styles-module__light___6AaSQ.styles-module__popup___IhzrD {
334
+ background: #fff;
335
+ box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
336
+ }
337
+ .styles-module__light___6AaSQ .styles-module__element___fTV2z {
338
+ color: rgba(0, 0, 0, 0.6);
339
+ }
340
+ .styles-module__light___6AaSQ .styles-module__timestamp___Dtpsv {
341
+ color: rgba(0, 0, 0, 0.4);
342
+ }
343
+ .styles-module__light___6AaSQ .styles-module__chevron___ZZJlR {
344
+ color: rgba(0, 0, 0, 0.4);
345
+ }
346
+ .styles-module__light___6AaSQ .styles-module__stylesBlock___VfQKn {
347
+ background: rgba(0, 0, 0, 0.03);
348
+ }
349
+ .styles-module__light___6AaSQ .styles-module__styleLine___1YQiD {
350
+ color: rgba(0, 0, 0, 0.75);
351
+ }
352
+ .styles-module__light___6AaSQ .styles-module__styleProperty___84L1i {
353
+ color: #7c3aed;
354
+ }
355
+ .styles-module__light___6AaSQ .styles-module__styleValue___q51-h {
356
+ color: rgba(0, 0, 0, 0.75);
357
+ }
358
+ .styles-module__light___6AaSQ .styles-module__quote___mcMmQ {
359
+ color: rgba(0, 0, 0, 0.55);
360
+ background: rgba(0, 0, 0, 0.04);
361
+ }
362
+ .styles-module__light___6AaSQ .styles-module__textarea___jrSae {
363
+ background: rgba(0, 0, 0, 0.03);
364
+ color: #1a1a1a;
365
+ border-color: rgba(0, 0, 0, 0.12);
366
+ }
367
+ .styles-module__light___6AaSQ .styles-module__textarea___jrSae::placeholder {
368
+ color: rgba(0, 0, 0, 0.4);
369
+ }
370
+ .styles-module__light___6AaSQ .styles-module__textarea___jrSae::-webkit-scrollbar-thumb {
371
+ background: rgba(0, 0, 0, 0.15);
372
+ }
373
+ .styles-module__light___6AaSQ .styles-module__cancel___hRjnL {
374
+ color: rgba(0, 0, 0, 0.5);
375
+ }
376
+ .styles-module__light___6AaSQ .styles-module__cancel___hRjnL:hover {
377
+ background: rgba(0, 0, 0, 0.06);
378
+ color: rgba(0, 0, 0, 0.75);
379
+ }
380
+ .styles-module__light___6AaSQ .styles-module__deleteButton___4VuAE {
381
+ color: rgba(0, 0, 0, 0.4);
382
+ }
383
+ .styles-module__light___6AaSQ .styles-module__deleteButton___4VuAE:hover {
384
+ background-color: color-mix(in srgb, var(--agentation-color-red) 25%, transparent);
385
+ color: var(--agentation-color-red);
386
+ }`,$2={popup:"styles-module__popup___IhzrD",enter:"styles-module__enter___L7U7N",entered:"styles-module__entered___COX-w",exit:"styles-module__exit___5eGjE",shake:"styles-module__shake___jdbWe",header:"styles-module__header___wWsSi",element:"styles-module__element___fTV2z",headerToggle:"styles-module__headerToggle___WpW0b",chevron:"styles-module__chevron___ZZJlR",expanded:"styles-module__expanded___2Hxgv",stylesWrapper:"styles-module__stylesWrapper___pnHgy",stylesInner:"styles-module__stylesInner___YYZe2",stylesBlock:"styles-module__stylesBlock___VfQKn",styleLine:"styles-module__styleLine___1YQiD",styleProperty:"styles-module__styleProperty___84L1i",styleValue:"styles-module__styleValue___q51-h",timestamp:"styles-module__timestamp___Dtpsv",quote:"styles-module__quote___mcMmQ",textarea:"styles-module__textarea___jrSae",actions:"styles-module__actions___D6x3f",cancel:"styles-module__cancel___hRjnL",submit:"styles-module__submit___K-mIR",deleteWrapper:"styles-module__deleteWrapper___oSjdo",deleteButton:"styles-module__deleteButton___4VuAE",light:"styles-module__light___6AaSQ"};if(typeof document<"u"){let e=document.getElementById("feedback-tool-styles-annotation-popup-css-styles");e||(e=document.createElement("style"),e.id="feedback-tool-styles-annotation-popup-css-styles",e.textContent=M2,document.head.appendChild(e))}var xe=$2,D2=`.icon-transitions-module__iconState___uqK9J {
387
+ transition: opacity 0.2s ease, transform 0.2s ease;
388
+ transform-origin: center;
389
+ }
390
+
391
+ .icon-transitions-module__iconStateFast___HxlMm {
392
+ transition: opacity 0.15s ease, transform 0.15s ease;
393
+ transform-origin: center;
394
+ }
395
+
396
+ .icon-transitions-module__iconFade___nPwXg {
397
+ transition: opacity 0.2s ease;
398
+ }
399
+
400
+ .icon-transitions-module__iconFadeFast___Ofb2t {
401
+ transition: opacity 0.15s ease;
402
+ }
403
+
404
+ .icon-transitions-module__visible___PlHsU {
405
+ opacity: 1 !important;
406
+ }
407
+
408
+ .icon-transitions-module__visibleScaled___8Qog- {
409
+ opacity: 1 !important;
410
+ transform: scale(1);
411
+ }
412
+
413
+ .icon-transitions-module__hidden___ETykt {
414
+ opacity: 0 !important;
415
+ }
416
+
417
+ .icon-transitions-module__hiddenScaled___JXn-m {
418
+ opacity: 0 !important;
419
+ transform: scale(0.8);
420
+ }
421
+
422
+ .icon-transitions-module__sending___uaLN- {
423
+ opacity: 0.5 !important;
424
+ transform: scale(0.8);
425
+ }`,z2={iconState:"icon-transitions-module__iconState___uqK9J",iconStateFast:"icon-transitions-module__iconStateFast___HxlMm",iconFade:"icon-transitions-module__iconFade___nPwXg",iconFadeFast:"icon-transitions-module__iconFadeFast___Ofb2t",visible:"icon-transitions-module__visible___PlHsU",visibleScaled:"icon-transitions-module__visibleScaled___8Qog-",hidden:"icon-transitions-module__hidden___ETykt",hiddenScaled:"icon-transitions-module__hiddenScaled___JXn-m",sending:"icon-transitions-module__sending___uaLN-"};if(typeof document<"u"){let e=document.getElementById("feedback-tool-styles-components-icon-transitions");e||(e=document.createElement("style"),e.id="feedback-tool-styles-components-icon-transitions",e.textContent=D2,document.head.appendChild(e))}var ye=z2,F2=({size:e=16})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",children:a.jsx("path",{d:"M4 4l8 8M12 4l-8 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),B2=({size:e=16})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",children:a.jsx("path",{d:"M8 3v10M3 8h10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),W2=({size:e=24,style:t={}})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",style:t,children:[a.jsxs("g",{clipPath:"url(#clip0_list_sparkle)",children:[a.jsx("path",{d:"M11.5 12L5.5 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M18.5 6.75L5.5 6.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M9.25 17.25L5.5 17.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M16 12.75L16.5179 13.9677C16.8078 14.6494 17.3506 15.1922 18.0323 15.4821L19.25 16L18.0323 16.5179C17.3506 16.8078 16.8078 17.3506 16.5179 18.0323L16 19.25L15.4821 18.0323C15.1922 17.3506 14.6494 16.8078 13.9677 16.5179L12.75 16L13.9677 15.4821C14.6494 15.1922 15.1922 14.6494 15.4821 13.9677L16 12.75Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})]}),a.jsx("defs",{children:a.jsx("clipPath",{id:"clip0_list_sparkle",children:a.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),H2=({size:e=20,...t})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",...t,children:[a.jsx("circle",{cx:"10",cy:"10",r:"6",stroke:"currentColor",strokeWidth:"1.25"}),a.jsx("path",{d:"M8.24 8.19C8.38 7.78 8.66 7.44 9.03 7.23C9.4 7.01 9.84 6.93 10.26 7C10.68 7.07 11.06 7.29 11.34 7.62C11.61 7.95 11.76 8.36 11.76 8.79152C11.76 10 10 10.6 10 10.6V10.83",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("circle",{cx:"10",cy:"13",r:"0.625",fill:"currentColor"})]}),Om=({size:e=14})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("style",{children:`
426
+ @keyframes checkDraw {
427
+ 0% {
428
+ stroke-dashoffset: 12;
429
+ }
430
+ 100% {
431
+ stroke-dashoffset: 0;
432
+ }
433
+ }
434
+ @keyframes checkBounce {
435
+ 0% {
436
+ transform: scale(0.5);
437
+ opacity: 0;
438
+ }
439
+ 50% {
440
+ transform: scale(1.12);
441
+ opacity: 1;
442
+ }
443
+ 75% {
444
+ transform: scale(0.95);
445
+ }
446
+ 100% {
447
+ transform: scale(1);
448
+ }
449
+ }
450
+ .check-path-animated {
451
+ stroke-dasharray: 12;
452
+ stroke-dashoffset: 0;
453
+ transform-origin: center;
454
+ animation: checkDraw 0.18s ease-out, checkBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
455
+ }
456
+ `}),a.jsx("path",{className:"check-path-animated",d:"M3.9375 7L6.125 9.1875L10.5 4.8125",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),U2=({size:e=24,copied:t=!1})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsxs("g",{className:`${ye.iconState} ${t?ye.hiddenScaled:ye.visibleScaled}`,children:[a.jsx("path",{d:"M4.75 11.25C4.75 10.4216 5.42157 9.75 6.25 9.75H12.75C13.5784 9.75 14.25 10.4216 14.25 11.25V17.75C14.25 18.5784 13.5784 19.25 12.75 19.25H6.25C5.42157 19.25 4.75 18.5784 4.75 17.75V11.25Z",stroke:"currentColor",strokeWidth:"1.5"}),a.jsx("path",{d:"M17.25 14.25H17.75C18.5784 14.25 19.25 13.5784 19.25 12.75V6.25C19.25 5.42157 18.5784 4.75 17.75 4.75H11.25C10.4216 4.75 9.75 5.42157 9.75 6.25V6.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),a.jsxs("g",{className:`${ye.iconState} ${t?ye.visibleScaled:ye.hiddenScaled}`,children:[a.jsx("path",{d:"M12 20C7.58172 20 4 16.4182 4 12C4 7.58172 7.58172 4 12 4C16.4182 4 20 7.58172 20 12C20 16.4182 16.4182 20 12 20Z",stroke:"var(--agentation-color-green)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M15 10L11 14.25L9.25 12.25",stroke:"var(--agentation-color-green)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),V2=({size:e=24,state:t="idle"})=>{const n=t==="idle",r=t==="sent",o=t==="failed",s=t==="sending";return a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsx("g",{className:`${ye.iconStateFast} ${n?ye.visibleScaled:s?ye.sending:ye.hiddenScaled}`,children:a.jsx("path",{d:"M9.875 14.125L12.3506 19.6951C12.7184 20.5227 13.9091 20.4741 14.2083 19.6193L18.8139 6.46032C19.0907 5.6695 18.3305 4.90933 17.5397 5.18611L4.38072 9.79174C3.52589 10.0909 3.47731 11.2816 4.30494 11.6494L9.875 14.125ZM9.875 14.125L13.375 10.625",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),a.jsxs("g",{className:`${ye.iconStateFast} ${r?ye.visibleScaled:ye.hiddenScaled}`,children:[a.jsx("path",{d:"M12 20C7.58172 20 4 16.4182 4 12C4 7.58172 7.58172 4 12 4C16.4182 4 20 7.58172 20 12C20 16.4182 16.4182 20 12 20Z",stroke:"var(--agentation-color-green)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M15 10L11 14.25L9.25 12.25",stroke:"var(--agentation-color-green)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsxs("g",{className:`${ye.iconStateFast} ${o?ye.visibleScaled:ye.hiddenScaled}`,children:[a.jsx("path",{d:"M12 20C7.58172 20 4 16.4182 4 12C4 7.58172 7.58172 4 12 4C16.4182 4 20 7.58172 20 12C20 16.4182 16.4182 20 12 20Z",stroke:"var(--agentation-color-red)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M12 8V12",stroke:"var(--agentation-color-red)",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("circle",{cx:"12",cy:"15",r:"0.5",fill:"var(--agentation-color-red)",stroke:"var(--agentation-color-red)",strokeWidth:"1"})]})]})},Y2=({size:e=24,isOpen:t=!0})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsxs("g",{className:`${ye.iconFade} ${t?ye.visible:ye.hidden}`,children:[a.jsx("path",{d:"M3.91752 12.7539C3.65127 12.2996 3.65037 11.7515 3.9149 11.2962C4.9042 9.59346 7.72688 5.49994 12 5.49994C16.2731 5.49994 19.0958 9.59346 20.0851 11.2962C20.3496 11.7515 20.3487 12.2996 20.0825 12.7539C19.0908 14.4459 16.2694 18.4999 12 18.4999C7.73064 18.4999 4.90918 14.4459 3.91752 12.7539Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M12 14.8261C13.5608 14.8261 14.8261 13.5608 14.8261 12C14.8261 10.4392 13.5608 9.17392 12 9.17392C10.4392 9.17392 9.17391 10.4392 9.17391 12C9.17391 13.5608 10.4392 14.8261 12 14.8261Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsxs("g",{className:`${ye.iconFade} ${t?ye.hidden:ye.visible}`,children:[a.jsx("path",{d:"M18.6025 9.28503C18.9174 8.9701 19.4364 8.99481 19.7015 9.35271C20.1484 9.95606 20.4943 10.507 20.7342 10.9199C21.134 11.6086 21.1329 12.4454 20.7303 13.1328C20.2144 14.013 19.2151 15.5225 17.7723 16.8193C16.3293 18.1162 14.3852 19.2497 12.0008 19.25C11.4192 19.25 10.8638 19.1823 10.3355 19.0613C9.77966 18.934 9.63498 18.2525 10.0382 17.8493C10.2412 17.6463 10.5374 17.573 10.8188 17.6302C11.1993 17.7076 11.5935 17.75 12.0008 17.75C13.8848 17.7497 15.4867 16.8568 16.7693 15.7041C18.0522 14.5511 18.9606 13.1867 19.4363 12.375C19.5656 12.1543 19.5659 11.8943 19.4373 11.6729C19.2235 11.3049 18.921 10.8242 18.5364 10.3003C18.3085 9.98991 18.3302 9.5573 18.6025 9.28503ZM12.0008 4.75C12.5814 4.75006 13.1358 4.81803 13.6632 4.93953C14.2182 5.06741 14.362 5.74812 13.9593 6.15091C13.7558 6.35435 13.4589 6.42748 13.1771 6.36984C12.7983 6.29239 12.4061 6.25006 12.0008 6.25C10.1167 6.25 8.51415 7.15145 7.23028 8.31543C5.94678 9.47919 5.03918 10.8555 4.56426 11.6729C4.43551 11.8945 4.43582 12.1542 4.56524 12.375C4.77587 12.7343 5.07189 13.2012 5.44718 13.7105C5.67623 14.0213 5.65493 14.4552 5.38193 14.7282C5.0671 15.0431 4.54833 15.0189 4.28292 14.6614C3.84652 14.0736 3.50813 13.5369 3.27129 13.1328C2.86831 12.4451 2.86717 11.6088 3.26739 10.9199C3.78185 10.0345 4.77959 8.51239 6.22247 7.2041C7.66547 5.89584 9.61202 4.75 12.0008 4.75Z",fill:"currentColor"}),a.jsx("path",{d:"M5 19L19 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})]}),X2=({size:e=24,isPaused:t=!1})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsxs("g",{className:`${ye.iconFadeFast} ${t?ye.hidden:ye.visible}`,children:[a.jsx("path",{d:"M8 6L8 18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("path",{d:"M16 18L16 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),a.jsx("path",{className:`${ye.iconFadeFast} ${t?ye.visible:ye.hidden}`,d:"M17.75 10.701C18.75 11.2783 18.75 12.7217 17.75 13.299L8.75 18.4952C7.75 19.0725 6.5 18.3509 6.5 17.1962L6.5 6.80384C6.5 5.64914 7.75 4.92746 8.75 5.50481L17.75 10.701Z",stroke:"currentColor",strokeWidth:"1.5"})]}),Q2=({size:e=16})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsx("path",{d:"M10.6504 5.81117C10.9939 4.39628 13.0061 4.39628 13.3496 5.81117C13.5715 6.72517 14.6187 7.15891 15.4219 6.66952C16.6652 5.91193 18.0881 7.33479 17.3305 8.57815C16.8411 9.38134 17.2748 10.4285 18.1888 10.6504C19.6037 10.9939 19.6037 13.0061 18.1888 13.3496C17.2748 13.5715 16.8411 14.6187 17.3305 15.4219C18.0881 16.6652 16.6652 18.0881 15.4219 17.3305C14.6187 16.8411 13.5715 17.2748 13.3496 18.1888C13.0061 19.6037 10.9939 19.6037 10.6504 18.1888C10.4285 17.2748 9.38135 16.8411 8.57815 17.3305C7.33479 18.0881 5.91193 16.6652 6.66952 15.4219C7.15891 14.6187 6.72517 13.5715 5.81117 13.3496C4.39628 13.0061 4.39628 10.9939 5.81117 10.6504C6.72517 10.4285 7.15891 9.38134 6.66952 8.57815C5.91193 7.33479 7.33479 5.91192 8.57815 6.66952C9.38135 7.15891 10.4285 6.72517 10.6504 5.81117Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("circle",{cx:"12",cy:"12",r:"2.5",stroke:"currentColor",strokeWidth:"1.5"})]}),G2=({size:e=16})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M13.5 4C14.7426 4 15.75 5.00736 15.75 6.25V7H18.5C18.9142 7 19.25 7.33579 19.25 7.75C19.25 8.16421 18.9142 8.5 18.5 8.5H17.9678L17.6328 16.2217C17.61 16.7475 17.5912 17.1861 17.5469 17.543C17.5015 17.9087 17.4225 18.2506 17.2461 18.5723C16.9747 19.0671 16.5579 19.4671 16.0518 19.7168C15.7227 19.8791 15.3772 19.9422 15.0098 19.9717C14.6514 20.0004 14.2126 20 13.6865 20H10.3135C9.78735 20 9.34856 20.0004 8.99023 19.9717C8.62278 19.9422 8.27729 19.8791 7.94824 19.7168C7.44205 19.4671 7.02532 19.0671 6.75391 18.5723C6.57751 18.2506 6.49853 17.9087 6.45312 17.543C6.40883 17.1861 6.39005 16.7475 6.36719 16.2217L6.03223 8.5H5.5C5.08579 8.5 4.75 8.16421 4.75 7.75C4.75 7.33579 5.08579 7 5.5 7H8.25V6.25C8.25 5.00736 9.25736 4 10.5 4H13.5ZM7.86621 16.1562C7.89013 16.7063 7.90624 17.0751 7.94141 17.3584C7.97545 17.6326 8.02151 17.7644 8.06934 17.8516C8.19271 18.0763 8.38239 18.2577 8.6123 18.3711C8.70153 18.4151 8.83504 18.4545 9.11035 18.4766C9.39482 18.4994 9.76335 18.5 10.3135 18.5H13.6865C14.2367 18.5 14.6052 18.4994 14.8896 18.4766C15.165 18.4545 15.2985 18.4151 15.3877 18.3711C15.6176 18.2577 15.8073 18.0763 15.9307 17.8516C15.9785 17.7644 16.0245 17.6326 16.0586 17.3584C16.0938 17.0751 16.1099 16.7063 16.1338 16.1562L16.4668 8.5H7.5332L7.86621 16.1562ZM9.97656 10.75C10.3906 10.7371 10.7371 11.0626 10.75 11.4766L10.875 15.4766C10.8879 15.8906 10.5624 16.2371 10.1484 16.25C9.73443 16.2629 9.38794 15.9374 9.375 15.5234L9.25 11.5234C9.23706 11.1094 9.56255 10.7629 9.97656 10.75ZM14.0244 10.75C14.4384 10.7635 14.7635 11.1105 14.75 11.5244L14.6201 15.5244C14.6066 15.9384 14.2596 16.2634 13.8457 16.25C13.4317 16.2365 13.1067 15.8896 13.1201 15.4756L13.251 11.4756C13.2645 11.0617 13.6105 10.7366 14.0244 10.75ZM10.5 5.5C10.0858 5.5 9.75 5.83579 9.75 6.25V7H14.25V6.25C14.25 5.83579 13.9142 5.5 13.5 5.5H10.5Z",fill:"currentColor"})}),bc=({size:e=16})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsxs("g",{clipPath:"url(#clip0_2_53)",children:[a.jsx("path",{d:"M16.25 16.25L7.75 7.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M7.75 16.25L16.25 7.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsx("defs",{children:a.jsx("clipPath",{id:"clip0_2_53",children:a.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),K2=({size:e=24})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M16.7198 6.21973C17.0127 5.92683 17.4874 5.92683 17.7803 6.21973C18.0732 6.51262 18.0732 6.9874 17.7803 7.28027L13.0606 12L17.7803 16.7197C18.0732 17.0126 18.0732 17.4874 17.7803 17.7803C17.4875 18.0731 17.0127 18.0731 16.7198 17.7803L12.0001 13.0605L7.28033 17.7803C6.98746 18.0731 6.51268 18.0731 6.21979 17.7803C5.92689 17.4874 5.92689 17.0126 6.21979 16.7197L10.9395 12L6.21979 7.28027C5.92689 6.98738 5.92689 6.51262 6.21979 6.21973C6.51268 5.92683 6.98744 5.92683 7.28033 6.21973L12.0001 10.9395L16.7198 6.21973Z",fill:"currentColor"})}),Z2=({size:e=16})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",children:[a.jsx("path",{d:"M9.99999 12.7082C11.4958 12.7082 12.7083 11.4956 12.7083 9.99984C12.7083 8.50407 11.4958 7.2915 9.99999 7.2915C8.50422 7.2915 7.29166 8.50407 7.29166 9.99984C7.29166 11.4956 8.50422 12.7082 9.99999 12.7082Z",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M10 3.9585V5.05698",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M10 14.9429V16.0414",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M5.7269 5.72656L6.50682 6.50649",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M13.4932 13.4932L14.2731 14.2731",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M3.95834 10H5.05683",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M14.9432 10H16.0417",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M5.7269 14.2731L6.50682 13.4932",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M13.4932 6.50649L14.2731 5.72656",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})]}),J2=({size:e=16})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",children:a.jsx("path",{d:"M15.5 10.4955C15.4037 11.5379 15.0124 12.5314 14.3721 13.3596C13.7317 14.1878 12.8688 14.8165 11.8841 15.1722C10.8995 15.5278 9.83397 15.5957 8.81217 15.3679C7.79038 15.1401 6.8546 14.6259 6.11434 13.8857C5.37408 13.1454 4.85995 12.2096 4.63211 11.1878C4.40427 10.166 4.47215 9.10048 4.82781 8.11585C5.18346 7.13123 5.81218 6.26825 6.64039 5.62791C7.4686 4.98756 8.46206 4.59634 9.5045 4.5C8.89418 5.32569 8.60049 6.34302 8.67685 7.36695C8.75321 8.39087 9.19454 9.35339 9.92058 10.0794C10.6466 10.8055 11.6091 11.2468 12.6331 11.3231C13.657 11.3995 14.6743 11.1058 15.5 10.4955Z",stroke:"currentColor",strokeWidth:"1.13793",strokeLinecap:"round",strokeLinejoin:"round"})}),Mm=({size:e=16})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M11.3799 6.9572L9.05645 4.63375M11.3799 6.9572L6.74949 11.5699C6.61925 11.6996 6.45577 11.791 6.277 11.8339L4.29549 12.3092C3.93194 12.3964 3.60478 12.0683 3.69297 11.705L4.16585 9.75693C4.20893 9.57947 4.29978 9.4172 4.42854 9.28771L9.05645 4.63375M11.3799 6.9572L12.3455 5.98759C12.9839 5.34655 12.9839 4.31002 12.3455 3.66897C11.7033 3.02415 10.6594 3.02415 10.0172 3.66897L9.06126 4.62892L9.05645 4.63375",stroke:"currentColor",strokeWidth:"0.9",strokeLinecap:"round",strokeLinejoin:"round"})}),q2=({size:e=24})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M13.5 4C14.7426 4 15.75 5.00736 15.75 6.25V7H18.5C18.9142 7 19.25 7.33579 19.25 7.75C19.25 8.16421 18.9142 8.5 18.5 8.5H17.9678L17.6328 16.2217C17.61 16.7475 17.5912 17.1861 17.5469 17.543C17.5015 17.9087 17.4225 18.2506 17.2461 18.5723C16.9747 19.0671 16.5579 19.4671 16.0518 19.7168C15.7227 19.8791 15.3772 19.9422 15.0098 19.9717C14.6514 20.0004 14.2126 20 13.6865 20H10.3135C9.78735 20 9.34856 20.0004 8.99023 19.9717C8.62278 19.9422 8.27729 19.8791 7.94824 19.7168C7.44205 19.4671 7.02532 19.0671 6.75391 18.5723C6.57751 18.2506 6.49853 17.9087 6.45312 17.543C6.40883 17.1861 6.39005 16.7475 6.36719 16.2217L6.03223 8.5H5.5C5.08579 8.5 4.75 8.16421 4.75 7.75C4.75 7.33579 5.08579 7 5.5 7H8.25V6.25C8.25 5.00736 9.25736 4 10.5 4H13.5ZM7.86621 16.1562C7.89013 16.7063 7.90624 17.0751 7.94141 17.3584C7.97545 17.6326 8.02151 17.7644 8.06934 17.8516C8.19271 18.0763 8.38239 18.2577 8.6123 18.3711C8.70153 18.4151 8.83504 18.4545 9.11035 18.4766C9.39482 18.4994 9.76335 18.5 10.3135 18.5H13.6865C14.2367 18.5 14.6052 18.4994 14.8896 18.4766C15.165 18.4545 15.2985 18.4151 15.3877 18.3711C15.6176 18.2577 15.8073 18.0763 15.9307 17.8516C15.9785 17.7644 16.0245 17.6326 16.0586 17.3584C16.0938 17.0751 16.1099 16.7063 16.1338 16.1562L16.4668 8.5H7.5332L7.86621 16.1562ZM9.97656 10.75C10.3906 10.7371 10.7371 11.0626 10.75 11.4766L10.875 15.4766C10.8879 15.8906 10.5624 16.2371 10.1484 16.25C9.73443 16.2629 9.38794 15.9374 9.375 15.5234L9.25 11.5234C9.23706 11.1094 9.56255 10.7629 9.97656 10.75ZM14.0244 10.75C14.4383 10.7635 14.7635 11.1105 14.75 11.5244L14.6201 15.5244C14.6066 15.9384 14.2596 16.2634 13.8457 16.25C13.4317 16.2365 13.1067 15.8896 13.1201 15.4756L13.251 11.4756C13.2645 11.0617 13.6105 10.7366 14.0244 10.75ZM10.5 5.5C10.0858 5.5 9.75 5.83579 9.75 6.25V7H14.25V6.25C14.25 5.83579 13.9142 5.5 13.5 5.5H10.5Z",fill:"currentColor"})}),ek=({size:e=16})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M8.5 3.5L4 8L8.5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),C0=["data-feedback-toolbar","data-annotation-popup","data-annotation-marker"],kc=C0.flatMap(e=>[`:not([${e}])`,`:not([${e}] *)`]).join(""),Vu="feedback-freeze-styles",Cc="__agentation_freeze";function tk(){if(typeof window>"u")return{frozen:!1,installed:!0,origSetTimeout:setTimeout,origSetInterval:setInterval,origRAF:t=>0,pausedAnimations:[],frozenTimeoutQueue:[],frozenRAFQueue:[]};const e=window;return e[Cc]||(e[Cc]={frozen:!1,installed:!1,origSetTimeout:null,origSetInterval:null,origRAF:null,pausedAnimations:[],frozenTimeoutQueue:[],frozenRAFQueue:[]}),e[Cc]}var se=tk();typeof window<"u"&&!se.installed&&(se.origSetTimeout=window.setTimeout.bind(window),se.origSetInterval=window.setInterval.bind(window),se.origRAF=window.requestAnimationFrame.bind(window),window.setTimeout=(e,t,...n)=>typeof e=="string"?se.origSetTimeout(e,t):se.origSetTimeout((...r)=>{se.frozen?se.frozenTimeoutQueue.push(()=>e(...r)):e(...r)},t,...n),window.setInterval=(e,t,...n)=>typeof e=="string"?se.origSetInterval(e,t):se.origSetInterval((...r)=>{se.frozen||e(...r)},t,...n),window.requestAnimationFrame=e=>se.origRAF(t=>{se.frozen?se.frozenRAFQueue.push(e):e(t)}),se.installed=!0);var ue=se.origSetTimeout,nk=se.origSetInterval;function rk(e){return e?C0.some(t=>!!e.closest?.(`[${t}]`)):!1}function ok(){if(typeof document>"u"||se.frozen)return;se.frozen=!0,se.frozenTimeoutQueue=[],se.frozenRAFQueue=[];let e=document.getElementById(Vu);e||(e=document.createElement("style"),e.id=Vu),e.textContent=`
457
+ *${kc},
458
+ *${kc}::before,
459
+ *${kc}::after {
460
+ animation-play-state: paused !important;
461
+ transition: none !important;
462
+ }
463
+ `,document.head.appendChild(e),se.pausedAnimations=[];try{document.getAnimations().forEach(t=>{if(t.playState!=="running")return;const n=t.effect?.target;rk(n)||(t.pause(),se.pausedAnimations.push(t))})}catch{}document.querySelectorAll("video").forEach(t=>{t.paused||(t.dataset.wasPaused="false",t.pause())})}function $m(){if(typeof document>"u"||!se.frozen)return;se.frozen=!1;const e=se.frozenTimeoutQueue;se.frozenTimeoutQueue=[];for(const n of e)se.origSetTimeout(()=>{if(se.frozen){se.frozenTimeoutQueue.push(n);return}try{n()}catch(r){console.warn("[agentation] Error replaying queued timeout:",r)}},0);const t=se.frozenRAFQueue;se.frozenRAFQueue=[];for(const n of t)se.origRAF(r=>{if(se.frozen){se.frozenRAFQueue.push(n);return}n(r)});for(const n of se.pausedAnimations)try{n.play()}catch(r){console.warn("[agentation] Error resuming animation:",r)}se.pausedAnimations=[],document.getElementById(Vu)?.remove(),document.querySelectorAll("video").forEach(n=>{n.dataset.wasPaused==="false"&&(n.play().catch(()=>{}),delete n.dataset.wasPaused)})}function Sc(e){if(!e)return;const t=n=>n.stopImmediatePropagation();document.addEventListener("focusin",t,!0),document.addEventListener("focusout",t,!0);try{e.focus()}finally{document.removeEventListener("focusin",t,!0),document.removeEventListener("focusout",t,!0)}}var Dm=u.forwardRef(function({element:t,timestamp:n,selectedText:r,placeholder:o="What should change?",initialValue:s="",submitLabel:l="Add",onSubmit:i,onCancel:c,onDelete:d,style:f,accentColor:p="#3c82f7",isExiting:m=!1,lightMode:_=!1,computedStyles:w},y){const[k,h]=u.useState(s),[g,v]=u.useState(!1),[S,N]=u.useState("initial"),[T,j]=u.useState(!1),[L,D]=u.useState(!1),M=u.useRef(null),U=u.useRef(null),z=u.useRef(null),ee=u.useRef(null);u.useEffect(()=>{m&&S!=="exit"&&N("exit")},[m,S]),u.useEffect(()=>{ue(()=>{N("enter")},0);const O=ue(()=>{N("entered")},200),B=ue(()=>{const Q=M.current;Q&&(Sc(Q),Q.selectionStart=Q.selectionEnd=Q.value.length,Q.scrollTop=Q.scrollHeight)},50);return()=>{clearTimeout(O),clearTimeout(B),z.current&&clearTimeout(z.current),ee.current&&clearTimeout(ee.current)}},[]);const G=u.useCallback(()=>{ee.current&&clearTimeout(ee.current),v(!0),ee.current=ue(()=>{v(!1),Sc(M.current)},250)},[]);u.useImperativeHandle(y,()=>({shake:G}),[G]);const fe=u.useCallback(()=>{N("exit"),z.current=ue(()=>{c()},150)},[c]),K=u.useCallback(()=>{k.trim()&&i(k.trim())},[k,i]),me=u.useCallback(O=>{O.stopPropagation(),!O.nativeEvent.isComposing&&(O.key==="Enter"&&!O.shiftKey&&(O.preventDefault(),K()),O.key==="Escape"&&fe())},[K,fe]),E=[xe.popup,_?xe.light:"",S==="enter"?xe.enter:"",S==="entered"?xe.entered:"",S==="exit"?xe.exit:"",g?xe.shake:""].filter(Boolean).join(" ");return a.jsxs("div",{ref:U,className:E,"data-annotation-popup":!0,style:f,onClick:O=>O.stopPropagation(),children:[a.jsxs("div",{className:xe.header,children:[w&&Object.keys(w).length>0?a.jsxs("button",{className:xe.headerToggle,onClick:()=>{const O=L;D(!L),O&&ue(()=>Sc(M.current),0)},type:"button",children:[a.jsx("svg",{className:`${xe.chevron} ${L?xe.expanded:""}`,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M5.5 10.25L9 7.25L5.75 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),a.jsx("span",{className:xe.element,children:t})]}):a.jsx("span",{className:xe.element,children:t}),n&&a.jsx("span",{className:xe.timestamp,children:n})]}),w&&Object.keys(w).length>0&&a.jsx("div",{className:`${xe.stylesWrapper} ${L?xe.expanded:""}`,children:a.jsx("div",{className:xe.stylesInner,children:a.jsx("div",{className:xe.stylesBlock,children:Object.entries(w).map(([O,B])=>a.jsxs("div",{className:xe.styleLine,children:[a.jsx("span",{className:xe.styleProperty,children:O.replace(/([A-Z])/g,"-$1").toLowerCase()}),": ",a.jsx("span",{className:xe.styleValue,children:B}),";"]},O))})})}),r&&a.jsxs("div",{className:xe.quote,children:["“",r.slice(0,80),r.length>80?"...":"","”"]}),a.jsx("textarea",{ref:M,className:xe.textarea,style:{borderColor:T?p:void 0},placeholder:o,value:k,onChange:O=>h(O.target.value),onFocus:()=>j(!0),onBlur:()=>j(!1),rows:2,onKeyDown:me}),a.jsxs("div",{className:xe.actions,children:[d&&a.jsx("div",{className:xe.deleteWrapper,children:a.jsx("button",{className:xe.deleteButton,onClick:d,type:"button",children:a.jsx(q2,{size:22})})}),a.jsx("button",{className:xe.cancel,onClick:fe,children:"Cancel"}),a.jsx("button",{className:xe.submit,style:{backgroundColor:p,opacity:k.trim()?1:.4},onClick:K,disabled:!k.trim(),children:l})]})]})});function Fo(e){if(e.parentElement)return e.parentElement;const t=e.getRootNode();return t instanceof ShadowRoot?t.host:null}function at(e,t){let n=e;for(;n;){if(n.matches(t))return n;n=Fo(n)}return null}function sk(e,t=4){const n=[];let r=e,o=0;for(;r&&o<t;){const s=r.tagName.toLowerCase();if(s==="html"||s==="body")break;let l=s;if(r.id)l=`#${r.id}`;else if(r.className&&typeof r.className=="string"){const c=r.className.split(/\s+/).find(d=>d.length>2&&!d.match(/^[a-z]{1,2}$/)&&!d.match(/[A-Z0-9]{5,}/));c&&(l=`.${c.split("_")[0]}`)}const i=Fo(r);!r.parentElement&&i&&(l=`⟨shadow⟩ ${l}`),n.unshift(l),r=i,o++}return n.join(" > ")}function Hi(e){const t=sk(e);if(e.dataset.element)return{name:e.dataset.element,path:t};const n=e.tagName.toLowerCase();if(["path","circle","rect","line","g"].includes(n)){const r=at(e,"svg");if(r){const o=Fo(r);if(o instanceof HTMLElement)return{name:`graphic in ${Hi(o).name}`,path:t}}return{name:"graphic element",path:t}}if(n==="svg"){const r=Fo(e);if(r?.tagName.toLowerCase()==="button"){const o=r.textContent?.trim();return{name:o?`icon in "${o}" button`:"button icon",path:t}}return{name:"icon",path:t}}if(n==="button"){const r=e.textContent?.trim(),o=e.getAttribute("aria-label");return o?{name:`button [${o}]`,path:t}:{name:r?`button "${r.slice(0,25)}"`:"button",path:t}}if(n==="a"){const r=e.textContent?.trim(),o=e.getAttribute("href");return r?{name:`link "${r.slice(0,25)}"`,path:t}:o?{name:`link to ${o.slice(0,30)}`,path:t}:{name:"link",path:t}}if(n==="input"){const r=e.getAttribute("type")||"text",o=e.getAttribute("placeholder"),s=e.getAttribute("name");return o?{name:`input "${o}"`,path:t}:s?{name:`input [${s}]`,path:t}:{name:`${r} input`,path:t}}if(["h1","h2","h3","h4","h5","h6"].includes(n)){const r=e.textContent?.trim();return{name:r?`${n} "${r.slice(0,35)}"`:n,path:t}}if(n==="p"){const r=e.textContent?.trim();return r?{name:`paragraph: "${r.slice(0,40)}${r.length>40?"...":""}"`,path:t}:{name:"paragraph",path:t}}if(n==="span"||n==="label"){const r=e.textContent?.trim();return r&&r.length<40?{name:`"${r}"`,path:t}:{name:n,path:t}}if(n==="li"){const r=e.textContent?.trim();return r&&r.length<40?{name:`list item: "${r.slice(0,35)}"`,path:t}:{name:"list item",path:t}}if(n==="blockquote")return{name:"blockquote",path:t};if(n==="code"){const r=e.textContent?.trim();return r&&r.length<30?{name:`code: \`${r}\``,path:t}:{name:"code",path:t}}if(n==="pre")return{name:"code block",path:t};if(n==="img"){const r=e.getAttribute("alt");return{name:r?`image "${r.slice(0,30)}"`:"image",path:t}}if(n==="video")return{name:"video",path:t};if(["div","section","article","nav","header","footer","aside","main"].includes(n)){const r=e.className,o=e.getAttribute("role"),s=e.getAttribute("aria-label");if(s)return{name:`${n} [${s}]`,path:t};if(o)return{name:`${o}`,path:t};if(typeof r=="string"&&r){const l=r.split(/[\s_-]+/).map(i=>i.replace(/[A-Z0-9]{5,}.*$/,"")).filter(i=>i.length>2&&!/^[a-z]{1,2}$/.test(i)).slice(0,2);if(l.length>0)return{name:l.join(" "),path:t}}return{name:n==="div"?"container":n,path:t}}return{name:n,path:t}}function ms(e){const t=[],n=e.textContent?.trim();n&&n.length<100&&t.push(n);const r=e.previousElementSibling;if(r){const s=r.textContent?.trim();s&&s.length<50&&t.unshift(`[before: "${s.slice(0,40)}"]`)}const o=e.nextElementSibling;if(o){const s=o.textContent?.trim();s&&s.length<50&&t.push(`[after: "${s.slice(0,40)}"]`)}return t.join(" ")}function Bl(e){const t=Fo(e);if(!t)return"";const o=(e.getRootNode()instanceof ShadowRoot&&e.parentElement?Array.from(e.parentElement.children):Array.from(t.children)).filter(f=>f!==e&&f instanceof HTMLElement);if(o.length===0)return"";const s=o.slice(0,4).map(f=>{const p=f.tagName.toLowerCase(),m=f.className;let _="";if(typeof m=="string"&&m){const w=m.split(/\s+/).map(y=>y.replace(/[_][a-zA-Z0-9]{5,}.*$/,"")).find(y=>y.length>2&&!/^[a-z]{1,2}$/.test(y));w&&(_=`.${w}`)}if(p==="button"||p==="a"){const w=f.textContent?.trim().slice(0,15);if(w)return`${p}${_} "${w}"`}return`${p}${_}`});let i=t.tagName.toLowerCase();if(typeof t.className=="string"&&t.className){const f=t.className.split(/\s+/).map(p=>p.replace(/[_][a-zA-Z0-9]{5,}.*$/,"")).find(p=>p.length>2&&!/^[a-z]{1,2}$/.test(p));f&&(i=`.${f}`)}const c=t.children.length,d=c>s.length+1?` (${c} total in ${i})`:"";return s.join(", ")+d}function hs(e){const t=e.className;return typeof t!="string"||!t?"":t.split(/\s+/).filter(r=>r.length>0).map(r=>{const o=r.match(/^([a-zA-Z][a-zA-Z0-9_-]*?)(?:_[a-zA-Z0-9]{5,})?$/);return o?o[1]:r}).filter((r,o,s)=>s.indexOf(r)===o).join(", ")}var S0=new Set(["none","normal","auto","0px","rgba(0, 0, 0, 0)","transparent","static","visible"]),lk=new Set(["p","span","h1","h2","h3","h4","h5","h6","label","li","td","th","blockquote","figcaption","caption","legend","dt","dd","pre","code","em","strong","b","i","a","time","cite","q"]),ik=new Set(["input","textarea","select"]),ak=new Set(["img","video","canvas","svg"]),ck=new Set(["div","section","article","nav","header","footer","aside","main","ul","ol","form","fieldset"]);function Wl(e){if(typeof window>"u")return{};const t=window.getComputedStyle(e),n={},r=e.tagName.toLowerCase();let o;lk.has(r)?o=["color","fontSize","fontWeight","fontFamily","lineHeight"]:r==="button"||r==="a"&&e.getAttribute("role")==="button"?o=["backgroundColor","color","padding","borderRadius","fontSize"]:ik.has(r)?o=["backgroundColor","color","padding","borderRadius","fontSize"]:ak.has(r)?o=["width","height","objectFit","borderRadius"]:ck.has(r)?o=["display","padding","margin","gap","backgroundColor"]:o=["color","fontSize","margin","padding","backgroundColor"];for(const s of o){const l=s.replace(/([A-Z])/g,"-$1").toLowerCase(),i=t.getPropertyValue(l);i&&!S0.has(i)&&(n[s]=i)}return n}var uk=["color","backgroundColor","borderColor","fontSize","fontWeight","fontFamily","lineHeight","letterSpacing","textAlign","width","height","padding","margin","border","borderRadius","display","position","top","right","bottom","left","zIndex","flexDirection","justifyContent","alignItems","gap","opacity","visibility","overflow","boxShadow","transform"];function Hl(e){if(typeof window>"u")return"";const t=window.getComputedStyle(e),n=[];for(const r of uk){const o=r.replace(/([A-Z])/g,"-$1").toLowerCase(),s=t.getPropertyValue(o);s&&!S0.has(s)&&n.push(`${o}: ${s}`)}return n.join("; ")}function dk(e){if(!e)return;const t={},n=e.split(";").map(r=>r.trim()).filter(Boolean);for(const r of n){const o=r.indexOf(":");if(o>0){const s=r.slice(0,o).trim(),l=r.slice(o+1).trim();s&&l&&(t[s]=l)}}return Object.keys(t).length>0?t:void 0}function Ul(e){const t=[],n=e.getAttribute("role"),r=e.getAttribute("aria-label"),o=e.getAttribute("aria-describedby"),s=e.getAttribute("tabindex"),l=e.getAttribute("aria-hidden");return n&&t.push(`role="${n}"`),r&&t.push(`aria-label="${r}"`),o&&t.push(`aria-describedby="${o}"`),s&&t.push(`tabindex=${s}`),l==="true"&&t.push("aria-hidden"),e.matches("a, button, input, select, textarea, [tabindex]")&&t.push("focusable"),t.join(", ")}function Vl(e){const t=[];let n=e;for(;n&&n.tagName.toLowerCase()!=="html";){const r=n.tagName.toLowerCase();let o=r;if(n.id)o=`${r}#${n.id}`;else if(n.className&&typeof n.className=="string"){const l=n.className.split(/\s+/).map(i=>i.replace(/[_][a-zA-Z0-9]{5,}.*$/,"")).find(i=>i.length>2);l&&(o=`${r}.${l}`)}const s=Fo(n);!n.parentElement&&s&&(o=`⟨shadow⟩ ${o}`),t.unshift(o),n=s}return t.join(" > ")}var Yu="feedback-annotations-",E0=7;function Ui(e){return`${Yu}${e}`}function Ec(e){if(typeof window>"u")return[];try{const t=localStorage.getItem(Ui(e));if(!t)return[];const n=JSON.parse(t),r=Date.now()-E0*24*60*60*1e3;return n.filter(o=>!o.timestamp||o.timestamp>r)}catch{return[]}}function N0(e,t){if(!(typeof window>"u"))try{localStorage.setItem(Ui(e),JSON.stringify(t))}catch{}}function fk(){const e=new Map;if(typeof window>"u")return e;try{const t=Date.now()-E0*24*60*60*1e3;for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);if(r?.startsWith(Yu)){const o=r.slice(Yu.length),s=localStorage.getItem(r);if(s){const i=JSON.parse(s).filter(c=>!c.timestamp||c.timestamp>t);i.length>0&&e.set(o,i)}}}}catch{}return e}function gs(e,t,n){const r=t.map(o=>({...o,_syncedTo:n}));N0(e,r)}var j0="agentation-session-";function af(e){return`${j0}${e}`}function pk(e){if(typeof window>"u")return null;try{return localStorage.getItem(af(e))}catch{return null}}function Nc(e,t){if(!(typeof window>"u"))try{localStorage.setItem(af(e),t)}catch{}}function mk(e){if(!(typeof window>"u"))try{localStorage.removeItem(af(e))}catch{}}var P0=`${j0}toolbar-hidden`;function hk(){if(typeof window>"u")return!1;try{return sessionStorage.getItem(P0)==="1"}catch{return!1}}function gk(e){if(!(typeof window>"u"))try{e&&sessionStorage.setItem(P0,"1")}catch{}}async function jc(e,t){const n=await fetch(`${e}/sessions`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:t})});if(!n.ok)throw new Error(`Failed to create session: ${n.status}`);return n.json()}async function zm(e,t){const n=await fetch(`${e}/sessions/${t}`);if(!n.ok)throw new Error(`Failed to get session: ${n.status}`);return n.json()}async function Yl(e,t,n){const r=await fetch(`${e}/sessions/${t}/annotations`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw new Error(`Failed to sync annotation: ${r.status}`);return r.json()}async function _k(e,t,n){const r=await fetch(`${e}/annotations/${t}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw new Error(`Failed to update annotation: ${r.status}`);return r.json()}async function Fm(e,t){const n=await fetch(`${e}/annotations/${t}`,{method:"DELETE"});if(!n.ok)throw new Error(`Failed to delete annotation: ${n.status}`)}var pe={FunctionComponent:0,ClassComponent:1,IndeterminateComponent:2,HostRoot:3,HostPortal:4,HostComponent:5,HostText:6,Fragment:7,Mode:8,ContextConsumer:9,ContextProvider:10,ForwardRef:11,Profiler:12,SuspenseComponent:13,MemoComponent:14,SimpleMemoComponent:15,LazyComponent:16,IncompleteClassComponent:17,DehydratedFragment:18,SuspenseListComponent:19,ScopeComponent:21,OffscreenComponent:22,LegacyHiddenComponent:23,CacheComponent:24,TracingMarkerComponent:25,HostHoistable:26,HostSingleton:27,IncompleteFunctionComponent:28,Throw:29,ViewTransitionComponent:30,ActivityComponent:31},Bm=new Set(["Component","PureComponent","Fragment","Suspense","Profiler","StrictMode","Routes","Route","Outlet","Root","ErrorBoundaryHandler","HotReload","Hot"]),Wm=[/Boundary$/,/BoundaryHandler$/,/Provider$/,/Consumer$/,/^(Inner|Outer)/,/Router$/,/^Client(Page|Segment|Root)/,/^Segment(ViewNode|Node)$/,/^LayoutSegment/,/^Server(Root|Component|Render)/,/^RSC/,/Context$/,/^Hot(Reload)?$/,/^(Dev|React)(Overlay|Tools|Root)/,/Overlay$/,/Handler$/,/^With[A-Z]/,/Wrapper$/,/^Root$/],yk=[/Page$/,/View$/,/Screen$/,/Section$/,/Card$/,/List$/,/Item$/,/Form$/,/Modal$/,/Dialog$/,/Button$/,/Nav$/,/Header$/,/Footer$/,/Layout$/,/Panel$/,/Tab$/,/Menu$/];function vk(e){const t=e?.mode??"filtered";let n=Bm;if(e?.skipExact){const r=e.skipExact instanceof Set?e.skipExact:new Set(e.skipExact);n=new Set([...Bm,...r])}return{maxComponents:e?.maxComponents??6,maxDepth:e?.maxDepth??30,mode:t,skipExact:n,skipPatterns:e?.skipPatterns?[...Wm,...e.skipPatterns]:Wm,userPatterns:e?.userPatterns??yk,filter:e?.filter}}function xk(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").toLowerCase()}function wk(e,t=10){const n=new Set;let r=e,o=0;for(;r&&o<t;)r.className&&typeof r.className=="string"&&r.className.split(/\s+/).forEach(s=>{if(s.length>1){const l=s.replace(/[_][a-zA-Z0-9]{5,}.*$/,"").toLowerCase();l.length>1&&n.add(l)}}),r=r.parentElement,o++;return n}function bk(e,t){const n=xk(e);for(const r of t){if(r===n)return!0;const o=n.split("-").filter(l=>l.length>2),s=r.split("-").filter(l=>l.length>2);for(const l of o)for(const i of s)if(l===i||l.includes(i)||i.includes(l))return!0}return!1}function kk(e,t,n,r){if(n.filter)return n.filter(e,t);switch(n.mode){case"all":return!0;case"filtered":return!(n.skipExact.has(e)||n.skipPatterns.some(o=>o.test(e)));case"smart":return n.skipExact.has(e)||n.skipPatterns.some(o=>o.test(e))?!1:!!(r&&bk(e,r)||n.userPatterns.some(o=>o.test(e)));default:return!0}}var eo=null,Ck=new WeakMap;function Pc(e){return Object.keys(e).some(t=>t.startsWith("__reactFiber$")||t.startsWith("__reactInternalInstance$")||t.startsWith("__reactProps$"))}function Sk(){if(eo!==null)return eo;if(typeof document>"u")return!1;if(document.body&&Pc(document.body))return eo=!0,!0;const e=["#root","#app","#__next","[data-reactroot]"];for(const t of e){const n=document.querySelector(t);if(n&&Pc(n))return eo=!0,!0}if(document.body){for(const t of document.body.children)if(Pc(t))return eo=!0,!0}return eo=!1,!1}var _s={map:Ck};function Ek(e){return Object.keys(e).find(n=>n.startsWith("__reactFiber$")||n.startsWith("__reactInternalInstance$"))||null}function Nk(e){const t=Ek(e);return t?e[t]:null}function kr(e){return e?e.displayName?e.displayName:e.name?e.name:null:null}function jk(e){const{tag:t,type:n,elementType:r}=e;if(t===pe.HostComponent||t===pe.HostText||t===pe.HostHoistable||t===pe.HostSingleton||t===pe.Fragment||t===pe.Mode||t===pe.Profiler||t===pe.DehydratedFragment||t===pe.HostRoot||t===pe.HostPortal||t===pe.ScopeComponent||t===pe.OffscreenComponent||t===pe.LegacyHiddenComponent||t===pe.CacheComponent||t===pe.TracingMarkerComponent||t===pe.Throw||t===pe.ViewTransitionComponent||t===pe.ActivityComponent)return null;if(t===pe.ForwardRef){const o=r;if(o?.render){const s=kr(o.render);if(s)return s}return o?.displayName?o.displayName:kr(n)}if(t===pe.MemoComponent||t===pe.SimpleMemoComponent){const o=r;if(o?.type){const s=kr(o.type);if(s)return s}return o?.displayName?o.displayName:kr(n)}if(t===pe.ContextProvider){const o=n;return o?._context?.displayName?`${o._context.displayName}.Provider`:null}if(t===pe.ContextConsumer){const o=n;return o?.displayName?`${o.displayName}.Consumer`:null}if(t===pe.LazyComponent){const o=r;return o?._status===1&&o._result?kr(o._result):null}return t===pe.SuspenseComponent||t===pe.SuspenseListComponent?null:t===pe.IncompleteClassComponent||t===pe.IncompleteFunctionComponent||t===pe.FunctionComponent||t===pe.ClassComponent||t===pe.IndeterminateComponent?kr(n):null}function Pk(e){return e.length<=2||e.length<=3&&e===e.toLowerCase()}function Rk(e,t){const n=vk(t),r=n.mode==="all";if(r){const c=_s.map.get(e);if(c!==void 0)return c}if(!Sk()){const c={path:null,components:[]};return r&&_s.map.set(e,c),c}const o=n.mode==="smart"?wk(e):void 0,s=[];try{let c=Nk(e),d=0;for(;c&&d<n.maxDepth&&s.length<n.maxComponents;){const f=jk(c);f&&!Pk(f)&&kk(f,d,n,o)&&s.push(f),c=c.return,d++}}catch{const c={path:null,components:[]};return r&&_s.map.set(e,c),c}if(s.length===0){const c={path:null,components:[]};return r&&_s.map.set(e,c),c}const i={path:s.slice().reverse().map(c=>`<${c}>`).join(" "),components:s};return r&&_s.map.set(e,i),i}var ys={FunctionComponent:0,IndeterminateComponent:2,ForwardRef:11,MemoComponent:14,SimpleMemoComponent:15};function Tk(e){if(!e||typeof e!="object")return null;const t=Object.keys(e),n=t.find(s=>s.startsWith("__reactFiber$"));if(n)return e[n]||null;const r=t.find(s=>s.startsWith("__reactInternalInstance$"));if(r)return e[r]||null;const o=t.find(s=>{if(!s.startsWith("__react"))return!1;const l=e[s];return l&&typeof l=="object"&&"_debugSource"in l});return o&&e[o]||null}function nl(e){if(!e.type||typeof e.type=="string")return null;if(typeof e.type=="object"||typeof e.type=="function"){const t=e.type;if(t.displayName)return t.displayName;if(t.name)return t.name}return null}function Lk(e,t=50){let n=e,r=0;for(;n&&r<t;){if(n._debugSource)return{source:n._debugSource,componentName:nl(n)};if(n._debugOwner?._debugSource)return{source:n._debugOwner._debugSource,componentName:nl(n._debugOwner)};n=n.return,r++}return null}function Ik(e){let t=e,n=0;const r=50;for(;t&&n<r;){const o=t,s=["_debugSource","__source","_source","debugSource"];for(const l of s){const i=o[l];if(i&&typeof i=="object"&&"fileName"in i)return{source:i,componentName:nl(t)}}if(t.memoizedProps){const l=t.memoizedProps;if(l.__source&&typeof l.__source=="object"){const i=l.__source;if(i.fileName&&i.lineNumber)return{source:{fileName:i.fileName,lineNumber:i.lineNumber,columnNumber:i.columnNumber},componentName:nl(t)}}}t=t.return,n++}return null}var Xl=new Map;function Ak(e){const t=e.tag,n=e.type,r=e.elementType;if(typeof n=="string"||n==null||typeof n=="function"&&n.prototype?.isReactComponent)return null;if((t===ys.FunctionComponent||t===ys.IndeterminateComponent)&&typeof n=="function")return n;if(t===ys.ForwardRef&&r){const o=r.render;if(typeof o=="function")return o}if((t===ys.MemoComponent||t===ys.SimpleMemoComponent)&&r){const o=r.type;if(typeof o=="function")return o}return typeof n=="function"?n:null}function Ok(){const e=ct,t=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;if(t&&"H"in t)return{get:()=>t.H,set:r=>{t.H=r}};const n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;if(n){const r=n.ReactCurrentDispatcher;if(r&&"current"in r)return{get:()=>r.current,set:o=>{r.current=o}}}return null}function Mk(e){const t=e.split(`
464
+ `),n=[/source-location/,/\/dist\/index\./,/node_modules\//,/react-dom/,/react\.development/,/react\.production/,/chunk-[A-Z0-9]+/i,/react-stack-bottom-frame/,/react-reconciler/,/scheduler/,/<anonymous>/],r=/^\s*at\s+(?:.*?\s+\()?(.+?):(\d+):(\d+)\)?$/,o=/^[^@]*@(.+?):(\d+):(\d+)$/;for(const s of t){const l=s.trim();if(!l||n.some(c=>c.test(l)))continue;const i=r.exec(l)||o.exec(l);if(i)return{fileName:i[1],line:parseInt(i[2],10),column:parseInt(i[3],10)}}return null}function $k(e){let t=e;return t=t.replace(/[?#].*$/,""),t=t.replace(/^turbopack:\/\/\/\[project\]\//,""),t=t.replace(/^webpack-internal:\/\/\/\.\//,""),t=t.replace(/^webpack-internal:\/\/\//,""),t=t.replace(/^webpack:\/\/\/\.\//,""),t=t.replace(/^webpack:\/\/\//,""),t=t.replace(/^turbopack:\/\/\//,""),t=t.replace(/^https?:\/\/[^/]+\//,""),t=t.replace(/^file:\/\/\//,"/"),t=t.replace(/^\([^)]+\)\/\.\//,""),t=t.replace(/^\.\//,""),t}function Dk(e){const t=Ak(e);if(!t)return null;if(Xl.has(t))return Xl.get(t);const n=Ok();if(!n)return Xl.set(t,null),null;const r=n.get();let o=null;try{const s=new Proxy({},{get(){throw new Error("probe")}});n.set(s);try{t({})}catch(l){if(l instanceof Error&&l.message==="probe"&&l.stack){const i=Mk(l.stack);i&&(o={fileName:$k(i.fileName),lineNumber:i.line,columnNumber:i.column,componentName:nl(e)||void 0})}}}finally{n.set(r)}return Xl.set(t,o),o}function zk(e,t=15){let n=e,r=0;for(;n&&r<t;){const o=Dk(n);if(o)return o;n=n.return,r++}return null}function Xu(e){const t=Tk(e);if(!t)return{found:!1,reason:"no-fiber",isReactApp:!1,isProduction:!1};let n=Lk(t);if(n||(n=Ik(t)),n?.source)return{found:!0,source:{fileName:n.source.fileName,lineNumber:n.source.lineNumber,columnNumber:n.source.columnNumber,componentName:n.componentName||void 0},isReactApp:!0,isProduction:!1};const r=zk(t);return r?{found:!0,source:r,isReactApp:!0,isProduction:!1}:{found:!1,reason:"no-debug-source",isReactApp:!0,isProduction:!1}}function Fk(e,t="path"){const{fileName:n,lineNumber:r,columnNumber:o}=e;let s=`${n}:${r}`;return o!==void 0&&(s+=`:${o}`),t==="vscode"?`vscode://file${n.startsWith("/")?"":"/"}${s}`:s}function Bk(e,t=10){let n=e,r=0;for(;n&&r<t;){const o=Xu(n);if(o.found)return o;n=n.parentElement,r++}return Xu(e)}var Wk=`.styles-module__toolbar___wNsdK svg[fill=none],
465
+ .styles-module__markersLayer___-25j1 svg[fill=none],
466
+ .styles-module__fixedMarkersLayer___ffyX6 svg[fill=none] {
467
+ fill: none !important;
468
+ }
469
+ .styles-module__toolbar___wNsdK svg[fill=none] :not([fill]),
470
+ .styles-module__markersLayer___-25j1 svg[fill=none] :not([fill]),
471
+ .styles-module__fixedMarkersLayer___ffyX6 svg[fill=none] :not([fill]) {
472
+ fill: none !important;
473
+ }
474
+
475
+ .styles-module__toolbar___wNsdK :where(button, input, select, textarea, label) {
476
+ background: unset;
477
+ border: unset;
478
+ border-radius: unset;
479
+ padding: unset;
480
+ margin: unset;
481
+ color: unset;
482
+ font: unset;
483
+ letter-spacing: unset;
484
+ text-transform: unset;
485
+ text-decoration: unset;
486
+ box-shadow: unset;
487
+ outline: unset;
488
+ }
489
+
490
+ @keyframes styles-module__toolbarEnter___u8RRu {
491
+ from {
492
+ opacity: 0;
493
+ transform: scale(0.5) rotate(90deg);
494
+ }
495
+ to {
496
+ opacity: 1;
497
+ transform: scale(1) rotate(0deg);
498
+ }
499
+ }
500
+ @keyframes styles-module__toolbarHide___y8kaT {
501
+ from {
502
+ opacity: 1;
503
+ transform: scale(1);
504
+ }
505
+ to {
506
+ opacity: 0;
507
+ transform: scale(0.8);
508
+ }
509
+ }
510
+ @keyframes styles-module__badgeEnter___mVQLj {
511
+ from {
512
+ opacity: 0;
513
+ transform: scale(0);
514
+ }
515
+ to {
516
+ opacity: 1;
517
+ transform: scale(1);
518
+ }
519
+ }
520
+ @keyframes styles-module__scaleIn___c-r1K {
521
+ from {
522
+ opacity: 0;
523
+ transform: scale(0.85);
524
+ }
525
+ to {
526
+ opacity: 1;
527
+ transform: scale(1);
528
+ }
529
+ }
530
+ @keyframes styles-module__scaleOut___Wctwz {
531
+ from {
532
+ opacity: 1;
533
+ transform: scale(1);
534
+ }
535
+ to {
536
+ opacity: 0;
537
+ transform: scale(0.85);
538
+ }
539
+ }
540
+ @keyframes styles-module__slideUp___kgD36 {
541
+ from {
542
+ opacity: 0;
543
+ transform: scale(0.85) translateY(8px);
544
+ }
545
+ to {
546
+ opacity: 1;
547
+ transform: scale(1) translateY(0);
548
+ }
549
+ }
550
+ @keyframes styles-module__slideDown___zcdje {
551
+ from {
552
+ opacity: 1;
553
+ transform: scale(1) translateY(0);
554
+ }
555
+ to {
556
+ opacity: 0;
557
+ transform: scale(0.85) translateY(8px);
558
+ }
559
+ }
560
+ @keyframes styles-module__markerIn___5FaAP {
561
+ 0% {
562
+ opacity: 0;
563
+ transform: translate(-50%, -50%) scale(0.3);
564
+ }
565
+ 100% {
566
+ opacity: 1;
567
+ transform: translate(-50%, -50%) scale(1);
568
+ }
569
+ }
570
+ @keyframes styles-module__markerOut___GU5jX {
571
+ 0% {
572
+ opacity: 1;
573
+ transform: translate(-50%, -50%) scale(1);
574
+ }
575
+ 100% {
576
+ opacity: 0;
577
+ transform: translate(-50%, -50%) scale(0.3);
578
+ }
579
+ }
580
+ @keyframes styles-module__fadeIn___b9qmf {
581
+ from {
582
+ opacity: 0;
583
+ }
584
+ to {
585
+ opacity: 1;
586
+ }
587
+ }
588
+ @keyframes styles-module__fadeOut___6Ut6- {
589
+ from {
590
+ opacity: 1;
591
+ }
592
+ to {
593
+ opacity: 0;
594
+ }
595
+ }
596
+ @keyframes styles-module__tooltipIn___0N31w {
597
+ from {
598
+ opacity: 0;
599
+ transform: translateX(-50%) translateY(2px) scale(0.891);
600
+ }
601
+ to {
602
+ opacity: 1;
603
+ transform: translateX(-50%) translateY(0) scale(0.909);
604
+ }
605
+ }
606
+ @keyframes styles-module__hoverHighlightIn___6WYHY {
607
+ from {
608
+ opacity: 0;
609
+ transform: scale(0.98);
610
+ }
611
+ to {
612
+ opacity: 1;
613
+ transform: scale(1);
614
+ }
615
+ }
616
+ @keyframes styles-module__hoverTooltipIn___FYGQx {
617
+ from {
618
+ opacity: 0;
619
+ transform: scale(0.95) translateY(4px);
620
+ }
621
+ to {
622
+ opacity: 1;
623
+ transform: scale(1) translateY(0);
624
+ }
625
+ }
626
+ @keyframes styles-module__settingsPanelIn___MGfO8 {
627
+ from {
628
+ opacity: 0;
629
+ transform: translateY(10px) scale(0.95);
630
+ filter: blur(5px);
631
+ }
632
+ to {
633
+ opacity: 1;
634
+ transform: translateY(0) scale(1);
635
+ filter: blur(0px);
636
+ }
637
+ }
638
+ @keyframes styles-module__settingsPanelOut___Zfymi {
639
+ from {
640
+ opacity: 1;
641
+ transform: translateY(0) scale(1);
642
+ filter: blur(0px);
643
+ }
644
+ to {
645
+ opacity: 0;
646
+ transform: translateY(20px) scale(0.95);
647
+ filter: blur(5px);
648
+ }
649
+ }
650
+ .styles-module__disableTransitions___EopxO :is(*, *::before, *::after) {
651
+ transition: none !important;
652
+ }
653
+
654
+ .styles-module__toolbar___wNsdK {
655
+ position: fixed;
656
+ width: 297px;
657
+ z-index: 100000;
658
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
659
+ pointer-events: none;
660
+ transition: left 0s, top 0s, right 0s, bottom 0s;
661
+ }
662
+
663
+ :where(.styles-module__toolbar___wNsdK) {
664
+ bottom: 1.25rem;
665
+ right: 1.25rem;
666
+ }
667
+
668
+ .styles-module__toolbarContainer___dIhma {
669
+ user-select: none;
670
+ margin-left: auto;
671
+ align-self: flex-end;
672
+ display: flex;
673
+ align-items: center;
674
+ justify-content: center;
675
+ background: #1a1a1a;
676
+ color: #fff;
677
+ border: none;
678
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
679
+ pointer-events: auto;
680
+ cursor: grab;
681
+ transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
682
+ }
683
+ .styles-module__toolbarContainer___dIhma.styles-module__dragging___xrolZ {
684
+ transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
685
+ cursor: grabbing;
686
+ }
687
+ .styles-module__toolbarContainer___dIhma.styles-module__entrance___sgHd8 {
688
+ animation: styles-module__toolbarEnter___u8RRu 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
689
+ }
690
+ .styles-module__toolbarContainer___dIhma.styles-module__hiding___1td44 {
691
+ animation: styles-module__toolbarHide___y8kaT 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
692
+ pointer-events: none;
693
+ }
694
+ .styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn {
695
+ width: 44px;
696
+ height: 44px;
697
+ border-radius: 22px;
698
+ padding: 0;
699
+ cursor: pointer;
700
+ }
701
+ .styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn svg {
702
+ margin-top: -1px;
703
+ }
704
+ .styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:hover {
705
+ background: #2a2a2a;
706
+ }
707
+ .styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:active {
708
+ transform: scale(0.95);
709
+ }
710
+ .styles-module__toolbarContainer___dIhma.styles-module__expanded___ofKPx {
711
+ height: 44px;
712
+ border-radius: 1.5rem;
713
+ padding: 0.375rem;
714
+ width: 257px;
715
+ }
716
+ .styles-module__toolbarContainer___dIhma.styles-module__expanded___ofKPx.styles-module__serverConnected___Gfbou {
717
+ width: 297px;
718
+ }
719
+
720
+ .styles-module__toggleContent___0yfyP {
721
+ position: absolute;
722
+ display: flex;
723
+ align-items: center;
724
+ justify-content: center;
725
+ transition: opacity 0.1s cubic-bezier(0.19, 1, 0.22, 1);
726
+ }
727
+ .styles-module__toggleContent___0yfyP.styles-module__visible___KHwEW {
728
+ opacity: 1;
729
+ visibility: visible;
730
+ pointer-events: auto;
731
+ }
732
+ .styles-module__toggleContent___0yfyP.styles-module__hidden___Ae8H4 {
733
+ opacity: 0;
734
+ pointer-events: none;
735
+ }
736
+
737
+ .styles-module__controlsContent___9GJWU {
738
+ display: flex;
739
+ align-items: center;
740
+ gap: 0.375rem;
741
+ transition: filter 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
742
+ }
743
+ .styles-module__controlsContent___9GJWU.styles-module__visible___KHwEW {
744
+ opacity: 1;
745
+ filter: blur(0px);
746
+ transform: scale(1);
747
+ visibility: visible;
748
+ pointer-events: auto;
749
+ }
750
+ .styles-module__controlsContent___9GJWU.styles-module__hidden___Ae8H4 {
751
+ pointer-events: none;
752
+ opacity: 0;
753
+ filter: blur(10px);
754
+ transform: scale(0.4);
755
+ }
756
+
757
+ .styles-module__badge___2XsgF {
758
+ position: absolute;
759
+ top: -13px;
760
+ right: -13px;
761
+ user-select: none;
762
+ min-width: 18px;
763
+ height: 18px;
764
+ padding: 0 5px;
765
+ border-radius: 9px;
766
+ background-color: var(--agentation-color-accent);
767
+ color: white;
768
+ font-size: 0.625rem;
769
+ font-weight: 600;
770
+ display: flex;
771
+ align-items: center;
772
+ justify-content: center;
773
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
774
+ opacity: 1;
775
+ transition: transform 0.3s ease, opacity 0.2s ease;
776
+ transform: scale(1);
777
+ }
778
+ .styles-module__badge___2XsgF.styles-module__fadeOut___6Ut6- {
779
+ opacity: 0;
780
+ transform: scale(0);
781
+ pointer-events: none;
782
+ }
783
+ .styles-module__badge___2XsgF.styles-module__entrance___sgHd8 {
784
+ animation: styles-module__badgeEnter___mVQLj 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) 0.4s both;
785
+ }
786
+
787
+ .styles-module__controlButton___8Q0jc {
788
+ position: relative;
789
+ cursor: pointer !important;
790
+ display: flex;
791
+ align-items: center;
792
+ justify-content: center;
793
+ width: 34px;
794
+ height: 34px;
795
+ border-radius: 50%;
796
+ border: none;
797
+ background: transparent;
798
+ color: rgba(255, 255, 255, 0.85);
799
+ transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease, opacity 0.2s ease;
800
+ }
801
+ .styles-module__controlButton___8Q0jc:hover:not(:disabled):not([data-active=true]):not([data-failed=true]):not([data-auto-sync=true]):not([data-error=true]):not([data-no-hover=true]) {
802
+ background: rgba(255, 255, 255, 0.12);
803
+ color: #fff;
804
+ }
805
+ .styles-module__controlButton___8Q0jc:active:not(:disabled) {
806
+ transform: scale(0.92);
807
+ }
808
+ .styles-module__controlButton___8Q0jc:disabled {
809
+ opacity: 0.35;
810
+ cursor: not-allowed;
811
+ }
812
+ .styles-module__controlButton___8Q0jc[data-active=true] {
813
+ color: var(--agentation-color-blue);
814
+ background-color: color-mix(in srgb, var(--agentation-color-blue) 25%, transparent);
815
+ }
816
+ .styles-module__controlButton___8Q0jc[data-error=true] {
817
+ color: var(--agentation-color-red);
818
+ background-color: color-mix(in srgb, var(--agentation-color-red) 25%, transparent);
819
+ }
820
+ .styles-module__controlButton___8Q0jc[data-danger]:hover:not(:disabled):not([data-active=true]):not([data-failed=true]) {
821
+ background-color: color-mix(in srgb, var(--agentation-color-red) 25%, transparent);
822
+ color: var(--agentation-color-red);
823
+ }
824
+ .styles-module__controlButton___8Q0jc[data-no-hover=true], .styles-module__controlButton___8Q0jc.styles-module__statusShowing___te6iu {
825
+ cursor: default !important;
826
+ pointer-events: none;
827
+ background: transparent !important;
828
+ }
829
+ .styles-module__controlButton___8Q0jc[data-auto-sync=true] {
830
+ color: var(--agentation-color-green);
831
+ background: transparent;
832
+ cursor: default;
833
+ }
834
+ .styles-module__controlButton___8Q0jc[data-failed=true] {
835
+ color: var(--agentation-color-red);
836
+ background-color: color-mix(in srgb, var(--agentation-color-red) 25%, transparent);
837
+ }
838
+
839
+ .styles-module__buttonBadge___NeFWb {
840
+ position: absolute;
841
+ top: 0px;
842
+ right: 0px;
843
+ min-width: 16px;
844
+ height: 16px;
845
+ padding: 0 4px;
846
+ border-radius: 8px;
847
+ background-color: var(--agentation-color-accent);
848
+ color: white;
849
+ font-size: 0.625rem;
850
+ font-weight: 600;
851
+ display: flex;
852
+ align-items: center;
853
+ justify-content: center;
854
+ box-shadow: 0 0 0 2px #1a1a1a, 0 1px 3px rgba(0, 0, 0, 0.2);
855
+ pointer-events: none;
856
+ }
857
+ [data-agentation-theme=light] .styles-module__buttonBadge___NeFWb {
858
+ box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.2);
859
+ }
860
+
861
+ @keyframes styles-module__mcpIndicatorPulseConnected___EDodZ {
862
+ 0%, 100% {
863
+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--agentation-color-green) 50%, transparent);
864
+ }
865
+ 50% {
866
+ box-shadow: 0 0 0 5px color-mix(in srgb, var(--agentation-color-green) 0%, transparent);
867
+ }
868
+ }
869
+ @keyframes styles-module__mcpIndicatorPulseConnecting___cCYte {
870
+ 0%, 100% {
871
+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--agentation-color-yellow) 50%, transparent);
872
+ }
873
+ 50% {
874
+ box-shadow: 0 0 0 5px color-mix(in srgb, var(--agentation-color-yellow) 0%, transparent);
875
+ }
876
+ }
877
+ .styles-module__mcpIndicator___zGJeL {
878
+ position: absolute;
879
+ top: 3px;
880
+ right: 3px;
881
+ width: 6px;
882
+ height: 6px;
883
+ border-radius: 50%;
884
+ pointer-events: none;
885
+ transition: background-color 0.3s ease, opacity 0.15s ease, transform 0.15s ease;
886
+ opacity: 1;
887
+ transform: scale(1);
888
+ }
889
+ .styles-module__mcpIndicator___zGJeL.styles-module__connected___7c28g {
890
+ background-color: var(--agentation-color-green);
891
+ animation: styles-module__mcpIndicatorPulseConnected___EDodZ 2.5s ease-in-out infinite;
892
+ }
893
+ .styles-module__mcpIndicator___zGJeL.styles-module__connecting___uo-CW {
894
+ background-color: var(--agentation-color-yellow);
895
+ animation: styles-module__mcpIndicatorPulseConnecting___cCYte 1.5s ease-in-out infinite;
896
+ }
897
+ .styles-module__mcpIndicator___zGJeL.styles-module__hidden___Ae8H4 {
898
+ opacity: 0;
899
+ transform: scale(0);
900
+ animation: none;
901
+ }
902
+
903
+ @keyframes styles-module__connectionPulse___-Zycw {
904
+ 0%, 100% {
905
+ opacity: 1;
906
+ transform: scale(1);
907
+ }
908
+ 50% {
909
+ opacity: 0.6;
910
+ transform: scale(0.9);
911
+ }
912
+ }
913
+ .styles-module__connectionIndicatorWrapper___L-e-3 {
914
+ width: 8px;
915
+ height: 34px;
916
+ margin-left: 6px;
917
+ margin-right: 6px;
918
+ }
919
+
920
+ .styles-module__connectionIndicator___afk9p {
921
+ position: relative;
922
+ width: 8px;
923
+ height: 8px;
924
+ border-radius: 50%;
925
+ opacity: 0;
926
+ transition: opacity 0.3s ease, background-color 0.3s ease;
927
+ cursor: default;
928
+ }
929
+
930
+ .styles-module__connectionIndicatorVisible___C-i5B {
931
+ opacity: 1;
932
+ }
933
+
934
+ .styles-module__connectionIndicatorConnected___IY8pR {
935
+ background-color: var(--agentation-color-green);
936
+ animation: styles-module__connectionPulse___-Zycw 2.5s ease-in-out infinite;
937
+ }
938
+
939
+ .styles-module__connectionIndicatorDisconnected___kmpaZ {
940
+ background-color: var(--agentation-color-red);
941
+ animation: none;
942
+ }
943
+
944
+ .styles-module__connectionIndicatorConnecting___QmSLH {
945
+ background-color: var(--agentation-color-yellow);
946
+ animation: styles-module__connectionPulse___-Zycw 1s ease-in-out infinite;
947
+ }
948
+
949
+ .styles-module__buttonWrapper___rBcdv {
950
+ position: relative;
951
+ display: flex;
952
+ align-items: center;
953
+ justify-content: center;
954
+ }
955
+ .styles-module__buttonWrapper___rBcdv:hover .styles-module__buttonTooltip___Burd9 {
956
+ opacity: 1;
957
+ visibility: visible;
958
+ transform: translateX(-50%) scale(1);
959
+ transition-delay: 0.85s;
960
+ }
961
+ .styles-module__buttonWrapper___rBcdv:has(.styles-module__controlButton___8Q0jc:disabled):hover .styles-module__buttonTooltip___Burd9 {
962
+ opacity: 0;
963
+ visibility: hidden;
964
+ }
965
+
966
+ .styles-module__tooltipsInSession___-0lHH .styles-module__buttonWrapper___rBcdv:hover .styles-module__buttonTooltip___Burd9 {
967
+ transition-delay: 0s;
968
+ }
969
+
970
+ .styles-module__sendButtonWrapper___UUxG6 {
971
+ width: 0;
972
+ opacity: 0;
973
+ overflow: hidden;
974
+ pointer-events: none;
975
+ margin-left: -0.375rem;
976
+ transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s cubic-bezier(0.19, 1, 0.22, 1), margin 0.4s cubic-bezier(0.19, 1, 0.22, 1);
977
+ }
978
+ .styles-module__sendButtonWrapper___UUxG6 .styles-module__controlButton___8Q0jc {
979
+ transform: scale(0.8);
980
+ transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
981
+ }
982
+ .styles-module__sendButtonWrapper___UUxG6.styles-module__sendButtonVisible___WPSQU {
983
+ width: 34px;
984
+ opacity: 1;
985
+ overflow: visible;
986
+ pointer-events: auto;
987
+ margin-left: 0;
988
+ }
989
+ .styles-module__sendButtonWrapper___UUxG6.styles-module__sendButtonVisible___WPSQU .styles-module__controlButton___8Q0jc {
990
+ transform: scale(1);
991
+ }
992
+
993
+ .styles-module__buttonTooltip___Burd9 {
994
+ position: absolute;
995
+ bottom: calc(100% + 14px);
996
+ left: 50%;
997
+ transform: translateX(-50%) scale(0.95);
998
+ padding: 6px 10px;
999
+ background: #1a1a1a;
1000
+ color: rgba(255, 255, 255, 0.9);
1001
+ font-size: 12px;
1002
+ font-weight: 500;
1003
+ border-radius: 8px;
1004
+ white-space: nowrap;
1005
+ opacity: 0;
1006
+ visibility: hidden;
1007
+ pointer-events: none;
1008
+ z-index: 100001;
1009
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
1010
+ transition: opacity 0.135s ease, transform 0.135s ease, visibility 0.135s ease;
1011
+ }
1012
+ .styles-module__buttonTooltip___Burd9::after {
1013
+ content: "";
1014
+ position: absolute;
1015
+ top: calc(100% - 4px);
1016
+ left: 50%;
1017
+ transform: translateX(-50%) rotate(45deg);
1018
+ width: 8px;
1019
+ height: 8px;
1020
+ background: #1a1a1a;
1021
+ border-radius: 0 0 2px 0;
1022
+ }
1023
+
1024
+ .styles-module__shortcut___lEAQk {
1025
+ margin-left: 4px;
1026
+ opacity: 0.5;
1027
+ }
1028
+
1029
+ .styles-module__tooltipBelow___m6ats .styles-module__buttonTooltip___Burd9 {
1030
+ bottom: auto;
1031
+ top: calc(100% + 14px);
1032
+ transform: translateX(-50%) scale(0.95);
1033
+ }
1034
+ .styles-module__tooltipBelow___m6ats .styles-module__buttonTooltip___Burd9::after {
1035
+ top: -4px;
1036
+ bottom: auto;
1037
+ border-radius: 2px 0 0 0;
1038
+ }
1039
+
1040
+ .styles-module__tooltipBelow___m6ats .styles-module__buttonWrapper___rBcdv:hover .styles-module__buttonTooltip___Burd9 {
1041
+ transform: translateX(-50%) scale(1);
1042
+ }
1043
+
1044
+ .styles-module__tooltipsHidden___VtLJG .styles-module__buttonTooltip___Burd9 {
1045
+ opacity: 0 !important;
1046
+ visibility: hidden !important;
1047
+ transition: none !important;
1048
+ }
1049
+
1050
+ .styles-module__tooltipVisible___0jcCv,
1051
+ .styles-module__tooltipsHidden___VtLJG .styles-module__tooltipVisible___0jcCv {
1052
+ opacity: 1 !important;
1053
+ visibility: visible !important;
1054
+ transform: translateX(-50%) scale(1) !important;
1055
+ transition-delay: 0s !important;
1056
+ }
1057
+
1058
+ .styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9 {
1059
+ left: 50%;
1060
+ transform: translateX(-12px) scale(0.95);
1061
+ }
1062
+ .styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9::after {
1063
+ left: 16px;
1064
+ }
1065
+ .styles-module__buttonWrapperAlignLeft___myzIp:hover .styles-module__buttonTooltip___Burd9 {
1066
+ transform: translateX(-12px) scale(1);
1067
+ }
1068
+
1069
+ .styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9 {
1070
+ transform: translateX(-12px) scale(0.95);
1071
+ }
1072
+ .styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignLeft___myzIp:hover .styles-module__buttonTooltip___Burd9 {
1073
+ transform: translateX(-12px) scale(1);
1074
+ }
1075
+
1076
+ .styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9 {
1077
+ left: 50%;
1078
+ transform: translateX(calc(-100% + 12px)) scale(0.95);
1079
+ }
1080
+ .styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9::after {
1081
+ left: auto;
1082
+ right: 8px;
1083
+ }
1084
+ .styles-module__buttonWrapperAlignRight___HCQFR:hover .styles-module__buttonTooltip___Burd9 {
1085
+ transform: translateX(calc(-100% + 12px)) scale(1);
1086
+ }
1087
+
1088
+ .styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9 {
1089
+ transform: translateX(calc(-100% + 12px)) scale(0.95);
1090
+ }
1091
+ .styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignRight___HCQFR:hover .styles-module__buttonTooltip___Burd9 {
1092
+ transform: translateX(calc(-100% + 12px)) scale(1);
1093
+ }
1094
+
1095
+ .styles-module__divider___c--s1 {
1096
+ width: 1px;
1097
+ height: 12px;
1098
+ background: rgba(255, 255, 255, 0.15);
1099
+ margin: 0 0.125rem;
1100
+ }
1101
+
1102
+ .styles-module__overlay___Q1O9y {
1103
+ position: fixed;
1104
+ inset: 0;
1105
+ z-index: 99997;
1106
+ pointer-events: none;
1107
+ }
1108
+ .styles-module__overlay___Q1O9y > * {
1109
+ pointer-events: auto;
1110
+ }
1111
+
1112
+ .styles-module__hoverHighlight___ogakW {
1113
+ position: fixed;
1114
+ border: 2px solid color-mix(in srgb, var(--agentation-color-accent) 50%, transparent);
1115
+ border-radius: 4px;
1116
+ background-color: color-mix(in srgb, var(--agentation-color-accent) 4%, transparent);
1117
+ pointer-events: none !important;
1118
+ box-sizing: border-box;
1119
+ will-change: opacity;
1120
+ contain: layout style;
1121
+ }
1122
+ .styles-module__hoverHighlight___ogakW.styles-module__enter___WFIki {
1123
+ animation: styles-module__hoverHighlightIn___6WYHY 0.12s ease-out forwards;
1124
+ }
1125
+
1126
+ .styles-module__multiSelectOutline___cSJ-m {
1127
+ position: fixed;
1128
+ border: 2px dashed color-mix(in srgb, var(--agentation-color-green) 60%, transparent);
1129
+ border-radius: 4px;
1130
+ pointer-events: none !important;
1131
+ background-color: color-mix(in srgb, var(--agentation-color-green) 5%, transparent);
1132
+ box-sizing: border-box;
1133
+ will-change: opacity;
1134
+ }
1135
+ .styles-module__multiSelectOutline___cSJ-m.styles-module__enter___WFIki {
1136
+ animation: styles-module__fadeIn___b9qmf 0.15s ease-out forwards;
1137
+ }
1138
+ .styles-module__multiSelectOutline___cSJ-m.styles-module__exit___fyOJ0 {
1139
+ animation: styles-module__fadeOut___6Ut6- 0.15s ease-out forwards;
1140
+ }
1141
+
1142
+ .styles-module__singleSelectOutline___QhX-O {
1143
+ position: fixed;
1144
+ border: 2px solid color-mix(in srgb, var(--agentation-color-blue) 60%, transparent);
1145
+ border-radius: 4px;
1146
+ pointer-events: none !important;
1147
+ background-color: color-mix(in srgb, var(--agentation-color-blue) 5%, transparent);
1148
+ box-sizing: border-box;
1149
+ will-change: opacity;
1150
+ }
1151
+ .styles-module__singleSelectOutline___QhX-O.styles-module__enter___WFIki {
1152
+ animation: styles-module__fadeIn___b9qmf 0.15s ease-out forwards;
1153
+ }
1154
+ .styles-module__singleSelectOutline___QhX-O.styles-module__exit___fyOJ0 {
1155
+ animation: styles-module__fadeOut___6Ut6- 0.15s ease-out forwards;
1156
+ }
1157
+
1158
+ .styles-module__hoverTooltip___bvLk7 {
1159
+ position: fixed;
1160
+ font-size: 0.6875rem;
1161
+ font-weight: 500;
1162
+ color: #fff;
1163
+ background: rgba(0, 0, 0, 0.85);
1164
+ padding: 0.35rem 0.6rem;
1165
+ border-radius: 0.375rem;
1166
+ pointer-events: none !important;
1167
+ white-space: nowrap;
1168
+ max-width: 280px;
1169
+ overflow: hidden;
1170
+ text-overflow: ellipsis;
1171
+ }
1172
+ .styles-module__hoverTooltip___bvLk7.styles-module__enter___WFIki {
1173
+ animation: styles-module__hoverTooltipIn___FYGQx 0.1s ease-out forwards;
1174
+ }
1175
+
1176
+ .styles-module__hoverReactPath___gx1IJ {
1177
+ font-size: 0.625rem;
1178
+ color: rgba(255, 255, 255, 0.6);
1179
+ margin-bottom: 0.15rem;
1180
+ overflow: hidden;
1181
+ text-overflow: ellipsis;
1182
+ }
1183
+
1184
+ .styles-module__hoverElementName___QMLMl {
1185
+ overflow: hidden;
1186
+ text-overflow: ellipsis;
1187
+ }
1188
+
1189
+ .styles-module__markersLayer___-25j1 {
1190
+ position: absolute;
1191
+ top: 0;
1192
+ left: 0;
1193
+ right: 0;
1194
+ height: 0;
1195
+ z-index: 99998;
1196
+ pointer-events: none;
1197
+ }
1198
+ .styles-module__markersLayer___-25j1 > * {
1199
+ pointer-events: auto;
1200
+ }
1201
+
1202
+ .styles-module__fixedMarkersLayer___ffyX6 {
1203
+ position: fixed;
1204
+ top: 0;
1205
+ left: 0;
1206
+ right: 0;
1207
+ bottom: 0;
1208
+ z-index: 99998;
1209
+ pointer-events: none;
1210
+ }
1211
+ .styles-module__fixedMarkersLayer___ffyX6 > * {
1212
+ pointer-events: auto;
1213
+ }
1214
+
1215
+ .styles-module__marker___6sQrs {
1216
+ position: absolute;
1217
+ width: 22px;
1218
+ height: 22px;
1219
+ background: var(--agentation-color-blue);
1220
+ color: white;
1221
+ border-radius: 50%;
1222
+ display: flex;
1223
+ align-items: center;
1224
+ justify-content: center;
1225
+ font-size: 0.6875rem;
1226
+ font-weight: 600;
1227
+ transform: translate(-50%, -50%) scale(1);
1228
+ opacity: 1;
1229
+ cursor: pointer;
1230
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
1231
+ user-select: none;
1232
+ will-change: transform, opacity;
1233
+ contain: layout style;
1234
+ z-index: 1;
1235
+ }
1236
+ .styles-module__marker___6sQrs:hover {
1237
+ z-index: 2;
1238
+ }
1239
+ .styles-module__marker___6sQrs:not(.styles-module__enter___WFIki):not(.styles-module__exit___fyOJ0):not(.styles-module__clearing___FQ--7) {
1240
+ transition: background-color 0.15s ease, transform 0.1s ease;
1241
+ }
1242
+ .styles-module__marker___6sQrs.styles-module__enter___WFIki {
1243
+ animation: styles-module__markerIn___5FaAP 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
1244
+ }
1245
+ .styles-module__marker___6sQrs.styles-module__exit___fyOJ0 {
1246
+ animation: styles-module__markerOut___GU5jX 0.2s ease-out both;
1247
+ pointer-events: none;
1248
+ }
1249
+ .styles-module__marker___6sQrs.styles-module__clearing___FQ--7 {
1250
+ animation: styles-module__markerOut___GU5jX 0.15s ease-out both;
1251
+ pointer-events: none;
1252
+ }
1253
+ .styles-module__marker___6sQrs:not(.styles-module__enter___WFIki):not(.styles-module__exit___fyOJ0):not(.styles-module__clearing___FQ--7):hover {
1254
+ transform: translate(-50%, -50%) scale(1.1);
1255
+ }
1256
+ .styles-module__marker___6sQrs.styles-module__pending___2IHLC {
1257
+ position: fixed;
1258
+ background-color: var(--agentation-color-blue);
1259
+ }
1260
+ .styles-module__marker___6sQrs.styles-module__fixed___dBMHC {
1261
+ position: fixed;
1262
+ }
1263
+ .styles-module__marker___6sQrs.styles-module__multiSelect___YWiuz {
1264
+ background-color: var(--agentation-color-green);
1265
+ width: 26px;
1266
+ height: 26px;
1267
+ border-radius: 6px;
1268
+ font-size: 0.75rem;
1269
+ }
1270
+ .styles-module__marker___6sQrs.styles-module__multiSelect___YWiuz.styles-module__pending___2IHLC {
1271
+ background-color: var(--agentation-color-green);
1272
+ }
1273
+ .styles-module__marker___6sQrs.styles-module__hovered___ZgXIy {
1274
+ background-color: var(--agentation-color-red);
1275
+ }
1276
+
1277
+ .styles-module__renumber___nCTxD {
1278
+ display: block;
1279
+ animation: styles-module__renumberRoll___Wgbq3 0.2s ease-out;
1280
+ }
1281
+
1282
+ @keyframes styles-module__renumberRoll___Wgbq3 {
1283
+ 0% {
1284
+ transform: translateX(-40%);
1285
+ opacity: 0;
1286
+ }
1287
+ 100% {
1288
+ transform: translateX(0);
1289
+ opacity: 1;
1290
+ }
1291
+ }
1292
+ .styles-module__markerTooltip___aLJID {
1293
+ position: absolute;
1294
+ top: calc(100% + 10px);
1295
+ left: 50%;
1296
+ transform: translateX(-50%) scale(0.909);
1297
+ z-index: 100002;
1298
+ background: #1a1a1a;
1299
+ padding: 8px 0.75rem;
1300
+ border-radius: 0.75rem;
1301
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
1302
+ font-weight: 400;
1303
+ color: #fff;
1304
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
1305
+ min-width: 120px;
1306
+ max-width: 200px;
1307
+ pointer-events: none;
1308
+ cursor: default;
1309
+ }
1310
+ .styles-module__markerTooltip___aLJID.styles-module__enter___WFIki {
1311
+ animation: styles-module__tooltipIn___0N31w 0.1s ease-out forwards;
1312
+ }
1313
+
1314
+ .styles-module__markerQuote___FHmrz {
1315
+ display: block;
1316
+ font-size: 12px;
1317
+ font-style: italic;
1318
+ color: rgba(255, 255, 255, 0.6);
1319
+ margin-bottom: 0.3125rem;
1320
+ line-height: 1.4;
1321
+ white-space: nowrap;
1322
+ overflow: hidden;
1323
+ text-overflow: ellipsis;
1324
+ }
1325
+
1326
+ .styles-module__markerNote___QkrrS {
1327
+ display: block;
1328
+ font-size: 13px;
1329
+ font-weight: 400;
1330
+ line-height: 1.4;
1331
+ color: #fff;
1332
+ white-space: nowrap;
1333
+ overflow: hidden;
1334
+ text-overflow: ellipsis;
1335
+ padding-bottom: 2px;
1336
+ }
1337
+
1338
+ .styles-module__markerHint___2iF-6 {
1339
+ display: block;
1340
+ font-size: 0.625rem;
1341
+ font-weight: 400;
1342
+ color: rgba(255, 255, 255, 0.6);
1343
+ margin-top: 0.375rem;
1344
+ white-space: nowrap;
1345
+ }
1346
+
1347
+ .styles-module__settingsPanel___OxX3Y {
1348
+ position: absolute;
1349
+ right: 5px;
1350
+ bottom: calc(100% + 0.5rem);
1351
+ z-index: 1;
1352
+ overflow: hidden;
1353
+ background: #1c1c1c;
1354
+ border-radius: 1rem;
1355
+ padding: 13px 0 16px;
1356
+ min-width: 205px;
1357
+ cursor: default;
1358
+ opacity: 1;
1359
+ box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
1360
+ transition: background-color 0.25s ease, box-shadow 0.25s ease;
1361
+ }
1362
+ .styles-module__settingsPanel___OxX3Y::before, .styles-module__settingsPanel___OxX3Y::after {
1363
+ content: "";
1364
+ position: absolute;
1365
+ top: 0;
1366
+ bottom: 0;
1367
+ width: 16px;
1368
+ z-index: 2;
1369
+ pointer-events: none;
1370
+ }
1371
+ .styles-module__settingsPanel___OxX3Y::before {
1372
+ left: 0;
1373
+ background: linear-gradient(to right, #1c1c1c 0%, transparent 100%);
1374
+ }
1375
+ .styles-module__settingsPanel___OxX3Y::after {
1376
+ right: 0;
1377
+ background: linear-gradient(to left, #1c1c1c 0%, transparent 100%);
1378
+ }
1379
+ .styles-module__settingsPanel___OxX3Y .styles-module__settingsHeader___pwDY9,
1380
+ .styles-module__settingsPanel___OxX3Y .styles-module__settingsBrand___0gJeM,
1381
+ .styles-module__settingsPanel___OxX3Y .styles-module__settingsBrandSlash___uTG18,
1382
+ .styles-module__settingsPanel___OxX3Y .styles-module__settingsVersion___TUcFq,
1383
+ .styles-module__settingsPanel___OxX3Y .styles-module__settingsSection___m-YM2,
1384
+ .styles-module__settingsPanel___OxX3Y .styles-module__settingsLabel___8UjfX,
1385
+ .styles-module__settingsPanel___OxX3Y .styles-module__cycleButton___FMKfw,
1386
+ .styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY,
1387
+ .styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz,
1388
+ .styles-module__settingsPanel___OxX3Y .styles-module__toggleLabel___Xm8Aa,
1389
+ .styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax,
1390
+ .styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr,
1391
+ .styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp,
1392
+ .styles-module__settingsPanel___OxX3Y .styles-module__themeToggle___2rUjA {
1393
+ transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
1394
+ }
1395
+ .styles-module__settingsPanel___OxX3Y.styles-module__enter___WFIki {
1396
+ opacity: 1;
1397
+ transform: translateY(0) scale(1);
1398
+ filter: blur(0px);
1399
+ transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
1400
+ }
1401
+ .styles-module__settingsPanel___OxX3Y.styles-module__exit___fyOJ0 {
1402
+ opacity: 0;
1403
+ transform: translateY(8px) scale(0.95);
1404
+ filter: blur(5px);
1405
+ pointer-events: none;
1406
+ transition: opacity 0.1s ease, transform 0.1s ease, filter 0.1s ease;
1407
+ }
1408
+ [data-agentation-theme=dark] .styles-module__settingsPanel___OxX3Y {
1409
+ background: #1a1a1a;
1410
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
1411
+ }
1412
+ [data-agentation-theme=dark] .styles-module__settingsPanel___OxX3Y .styles-module__settingsLabel___8UjfX {
1413
+ color: rgba(255, 255, 255, 0.6);
1414
+ }
1415
+ [data-agentation-theme=dark] .styles-module__settingsPanel___OxX3Y .styles-module__settingsOption___UNa12 {
1416
+ color: rgba(255, 255, 255, 0.85);
1417
+ }
1418
+ [data-agentation-theme=dark] .styles-module__settingsPanel___OxX3Y .styles-module__settingsOption___UNa12:hover {
1419
+ background: rgba(255, 255, 255, 0.1);
1420
+ }
1421
+ [data-agentation-theme=dark] .styles-module__settingsPanel___OxX3Y .styles-module__settingsOption___UNa12.styles-module__selected___OwRqP {
1422
+ background: rgba(255, 255, 255, 0.15);
1423
+ color: #fff;
1424
+ }
1425
+ [data-agentation-theme=dark] .styles-module__settingsPanel___OxX3Y .styles-module__toggleLabel___Xm8Aa {
1426
+ color: rgba(255, 255, 255, 0.85);
1427
+ }
1428
+
1429
+ .styles-module__settingsPanelContainer___Xksv8 {
1430
+ overflow: visible;
1431
+ position: relative;
1432
+ display: flex;
1433
+ padding: 0 1rem;
1434
+ }
1435
+
1436
+ .styles-module__settingsPage___6YfHH {
1437
+ min-width: 100%;
1438
+ flex-shrink: 0;
1439
+ transition: transform 0.2s ease, opacity 0.2s ease;
1440
+ transition-delay: 0s;
1441
+ opacity: 1;
1442
+ }
1443
+
1444
+ .styles-module__settingsPage___6YfHH.styles-module__slideLeft___Ps01J {
1445
+ transform: translateX(-24px);
1446
+ opacity: 0;
1447
+ pointer-events: none;
1448
+ }
1449
+
1450
+ .styles-module__automationsPage___uvCq6 {
1451
+ position: absolute;
1452
+ top: 0;
1453
+ left: 24px;
1454
+ width: 100%;
1455
+ height: 100%;
1456
+ padding: 3px 1rem 0;
1457
+ box-sizing: border-box;
1458
+ display: flex;
1459
+ flex-direction: column;
1460
+ transition: transform 0.2s ease, opacity 0.2s ease;
1461
+ opacity: 0;
1462
+ pointer-events: none;
1463
+ }
1464
+
1465
+ .styles-module__automationsPage___uvCq6.styles-module__slideIn___4-qXe {
1466
+ transform: translateX(-24px);
1467
+ opacity: 1;
1468
+ pointer-events: auto;
1469
+ }
1470
+
1471
+ .styles-module__settingsNavLink___wCzJt {
1472
+ display: flex;
1473
+ align-items: center;
1474
+ justify-content: space-between;
1475
+ width: 100%;
1476
+ padding: 0;
1477
+ border: none;
1478
+ background: transparent;
1479
+ font-family: inherit;
1480
+ font-size: 0.8125rem;
1481
+ font-weight: 400;
1482
+ color: rgba(255, 255, 255, 0.5);
1483
+ cursor: pointer;
1484
+ transition: color 0.15s ease;
1485
+ }
1486
+ .styles-module__settingsNavLink___wCzJt:hover {
1487
+ color: rgba(255, 255, 255, 0.9);
1488
+ }
1489
+ [data-agentation-theme=light] .styles-module__settingsNavLink___wCzJt {
1490
+ color: rgba(0, 0, 0, 0.5);
1491
+ }
1492
+ [data-agentation-theme=light] .styles-module__settingsNavLink___wCzJt:hover {
1493
+ color: rgba(0, 0, 0, 0.8);
1494
+ }
1495
+ .styles-module__settingsNavLink___wCzJt svg {
1496
+ color: rgba(255, 255, 255, 0.4);
1497
+ transition: color 0.15s ease;
1498
+ }
1499
+ .styles-module__settingsNavLink___wCzJt:hover svg {
1500
+ color: #fff;
1501
+ }
1502
+ [data-agentation-theme=light] .styles-module__settingsNavLink___wCzJt svg {
1503
+ color: rgba(0, 0, 0, 0.25);
1504
+ }
1505
+ [data-agentation-theme=light] .styles-module__settingsNavLink___wCzJt:hover svg {
1506
+ color: rgba(0, 0, 0, 0.8);
1507
+ }
1508
+
1509
+ .styles-module__settingsNavLinkRight___ZWwhj {
1510
+ display: flex;
1511
+ align-items: center;
1512
+ gap: 6px;
1513
+ }
1514
+
1515
+ .styles-module__mcpNavIndicator___cl9pO {
1516
+ width: 8px;
1517
+ height: 8px;
1518
+ border-radius: 50%;
1519
+ flex-shrink: 0;
1520
+ }
1521
+ .styles-module__mcpNavIndicator___cl9pO.styles-module__connected___7c28g {
1522
+ background-color: var(--agentation-color-green);
1523
+ animation: styles-module__mcpPulse___uNggr 2.5s ease-in-out infinite;
1524
+ }
1525
+ .styles-module__mcpNavIndicator___cl9pO.styles-module__connecting___uo-CW {
1526
+ background-color: var(--agentation-color-yellow);
1527
+ animation: styles-module__mcpPulse___uNggr 1.5s ease-in-out infinite;
1528
+ }
1529
+
1530
+ .styles-module__settingsBackButton___bIe2j {
1531
+ display: flex;
1532
+ align-items: center;
1533
+ gap: 4px;
1534
+ padding: 6px 0 12px 0;
1535
+ margin: -6px 0 0.5rem 0;
1536
+ border: none;
1537
+ border-bottom: 1px solid rgba(255, 255, 255, 0.07);
1538
+ border-radius: 0;
1539
+ background: transparent;
1540
+ font-family: inherit;
1541
+ font-size: 0.8125rem;
1542
+ font-weight: 500;
1543
+ letter-spacing: -0.15px;
1544
+ color: #fff;
1545
+ cursor: pointer;
1546
+ transition: transform 0.12s cubic-bezier(0.32, 0.72, 0, 1);
1547
+ }
1548
+ .styles-module__settingsBackButton___bIe2j svg {
1549
+ opacity: 0.4;
1550
+ flex-shrink: 0;
1551
+ transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.32, 0.72, 0, 1);
1552
+ }
1553
+ .styles-module__settingsBackButton___bIe2j:hover {
1554
+ border-bottom-color: rgba(255, 255, 255, 0.07);
1555
+ }
1556
+ .styles-module__settingsBackButton___bIe2j:hover svg {
1557
+ opacity: 1;
1558
+ }
1559
+ [data-agentation-theme=light] .styles-module__settingsBackButton___bIe2j {
1560
+ color: rgba(0, 0, 0, 0.85);
1561
+ border-bottom-color: rgba(0, 0, 0, 0.08);
1562
+ }
1563
+ [data-agentation-theme=light] .styles-module__settingsBackButton___bIe2j:hover {
1564
+ border-bottom-color: rgba(0, 0, 0, 0.08);
1565
+ }
1566
+
1567
+ .styles-module__automationHeader___InP0r {
1568
+ display: flex;
1569
+ align-items: center;
1570
+ gap: 0.125rem;
1571
+ font-size: 0.8125rem;
1572
+ font-weight: 400;
1573
+ color: #fff;
1574
+ }
1575
+ [data-agentation-theme=light] .styles-module__automationHeader___InP0r {
1576
+ color: rgba(0, 0, 0, 0.85);
1577
+ }
1578
+
1579
+ .styles-module__automationDescription___NKlmo {
1580
+ font-size: 0.6875rem;
1581
+ font-weight: 300;
1582
+ color: rgba(255, 255, 255, 0.5);
1583
+ margin-top: 2px;
1584
+ line-height: 14px;
1585
+ }
1586
+ [data-agentation-theme=light] .styles-module__automationDescription___NKlmo {
1587
+ color: rgba(0, 0, 0, 0.5);
1588
+ }
1589
+
1590
+ .styles-module__learnMoreLink___8xv-x {
1591
+ color: rgba(255, 255, 255, 0.8);
1592
+ text-decoration: underline dotted;
1593
+ text-decoration-color: rgba(255, 255, 255, 0.2);
1594
+ text-underline-offset: 2px;
1595
+ transition: color 0.15s ease;
1596
+ }
1597
+ .styles-module__learnMoreLink___8xv-x:hover {
1598
+ color: #fff;
1599
+ }
1600
+ [data-agentation-theme=light] .styles-module__learnMoreLink___8xv-x {
1601
+ color: rgba(0, 0, 0, 0.6);
1602
+ text-decoration-color: rgba(0, 0, 0, 0.2);
1603
+ }
1604
+ [data-agentation-theme=light] .styles-module__learnMoreLink___8xv-x:hover {
1605
+ color: rgba(0, 0, 0, 0.85);
1606
+ }
1607
+
1608
+ .styles-module__autoSendRow___UblX5 {
1609
+ display: flex;
1610
+ align-items: center;
1611
+ gap: 8px;
1612
+ }
1613
+
1614
+ .styles-module__autoSendLabel___icDc2 {
1615
+ font-size: 0.6875rem;
1616
+ font-weight: 400;
1617
+ color: rgba(255, 255, 255, 0.4);
1618
+ transition: color 0.15s ease;
1619
+ }
1620
+ .styles-module__autoSendLabel___icDc2.styles-module__active___-zoN6 {
1621
+ color: #66b8ff;
1622
+ color: color(display-p3 0.4 0.72 1);
1623
+ }
1624
+ [data-agentation-theme=light] .styles-module__autoSendLabel___icDc2 {
1625
+ color: rgba(0, 0, 0, 0.4);
1626
+ }
1627
+ [data-agentation-theme=light] .styles-module__autoSendLabel___icDc2.styles-module__active___-zoN6 {
1628
+ color: var(--agentation-color-blue);
1629
+ }
1630
+
1631
+ .styles-module__webhookUrlInput___2375C {
1632
+ display: block;
1633
+ width: 100%;
1634
+ flex: 1;
1635
+ min-height: 60px;
1636
+ box-sizing: border-box;
1637
+ margin-top: 11px;
1638
+ padding: 8px 10px;
1639
+ border: 1px solid rgba(255, 255, 255, 0.1);
1640
+ border-radius: 6px;
1641
+ background: rgba(255, 255, 255, 0.03);
1642
+ font-family: inherit;
1643
+ font-size: 0.75rem;
1644
+ font-weight: 400;
1645
+ color: #fff;
1646
+ outline: none;
1647
+ resize: none;
1648
+ cursor: text !important;
1649
+ user-select: text;
1650
+ transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
1651
+ }
1652
+ .styles-module__webhookUrlInput___2375C::placeholder {
1653
+ color: rgba(255, 255, 255, 0.3);
1654
+ }
1655
+ .styles-module__webhookUrlInput___2375C:focus {
1656
+ border-color: rgba(255, 255, 255, 0.3);
1657
+ background: rgba(255, 255, 255, 0.08);
1658
+ }
1659
+ [data-agentation-theme=light] .styles-module__webhookUrlInput___2375C {
1660
+ border-color: rgba(0, 0, 0, 0.1);
1661
+ background: rgba(0, 0, 0, 0.03);
1662
+ color: rgba(0, 0, 0, 0.85);
1663
+ }
1664
+ [data-agentation-theme=light] .styles-module__webhookUrlInput___2375C::placeholder {
1665
+ color: rgba(0, 0, 0, 0.3);
1666
+ }
1667
+ [data-agentation-theme=light] .styles-module__webhookUrlInput___2375C:focus {
1668
+ border-color: rgba(0, 0, 0, 0.25);
1669
+ background: rgba(0, 0, 0, 0.05);
1670
+ }
1671
+
1672
+ .styles-module__settingsHeader___pwDY9 {
1673
+ display: flex;
1674
+ align-items: center;
1675
+ justify-content: space-between;
1676
+ min-height: 24px;
1677
+ margin-bottom: 0.5rem;
1678
+ padding-bottom: 9px;
1679
+ border-bottom: 1px solid rgba(255, 255, 255, 0.07);
1680
+ }
1681
+
1682
+ .styles-module__settingsBrand___0gJeM {
1683
+ font-size: 0.8125rem;
1684
+ font-weight: 600;
1685
+ letter-spacing: -0.0094em;
1686
+ color: #fff;
1687
+ }
1688
+
1689
+ .styles-module__settingsBrandSlash___uTG18 {
1690
+ color: var(--agentation-color-accent);
1691
+ transition: color 0.2s ease;
1692
+ }
1693
+
1694
+ .styles-module__settingsVersion___TUcFq {
1695
+ font-size: 11px;
1696
+ font-weight: 400;
1697
+ color: rgba(255, 255, 255, 0.4);
1698
+ margin-left: auto;
1699
+ letter-spacing: -0.0094em;
1700
+ }
1701
+
1702
+ .styles-module__settingsSection___m-YM2 + .styles-module__settingsSection___m-YM2 {
1703
+ margin-top: 0.5rem;
1704
+ padding-top: 0.5rem;
1705
+ border-top: 1px solid rgba(255, 255, 255, 0.07);
1706
+ }
1707
+ .styles-module__settingsSection___m-YM2.styles-module__settingsSectionExtraPadding___jdhFV {
1708
+ padding-top: calc(0.5rem + 4px);
1709
+ }
1710
+
1711
+ .styles-module__settingsSectionGrow___h-5HZ {
1712
+ flex: 1;
1713
+ display: flex;
1714
+ flex-direction: column;
1715
+ }
1716
+
1717
+ .styles-module__settingsRow___3sdhc {
1718
+ display: flex;
1719
+ align-items: center;
1720
+ justify-content: space-between;
1721
+ min-height: 24px;
1722
+ }
1723
+ .styles-module__settingsRow___3sdhc.styles-module__settingsRowMarginTop___zA0Sp {
1724
+ margin-top: 8px;
1725
+ }
1726
+
1727
+ .styles-module__dropdownContainer___BVnxe {
1728
+ position: relative;
1729
+ }
1730
+
1731
+ .styles-module__dropdownButton___16NPz {
1732
+ display: flex;
1733
+ align-items: center;
1734
+ gap: 0.5rem;
1735
+ padding: 0.25rem 0.5rem;
1736
+ border: none;
1737
+ border-radius: 0.375rem;
1738
+ background: transparent;
1739
+ font-size: 0.8125rem;
1740
+ font-weight: 600;
1741
+ color: #fff;
1742
+ cursor: pointer;
1743
+ transition: background-color 0.15s ease, color 0.15s ease;
1744
+ letter-spacing: -0.0094em;
1745
+ }
1746
+ .styles-module__dropdownButton___16NPz:hover {
1747
+ background: rgba(255, 255, 255, 0.08);
1748
+ }
1749
+ .styles-module__dropdownButton___16NPz svg {
1750
+ opacity: 0.6;
1751
+ }
1752
+
1753
+ .styles-module__cycleButton___FMKfw {
1754
+ display: flex;
1755
+ align-items: center;
1756
+ gap: 0.5rem;
1757
+ padding: 0;
1758
+ border: none;
1759
+ background: transparent;
1760
+ font-size: 0.8125rem;
1761
+ font-weight: 500;
1762
+ color: #fff;
1763
+ cursor: pointer;
1764
+ letter-spacing: -0.0094em;
1765
+ }
1766
+ [data-agentation-theme=light] .styles-module__cycleButton___FMKfw {
1767
+ color: rgba(0, 0, 0, 0.85);
1768
+ }
1769
+ .styles-module__cycleButton___FMKfw:disabled {
1770
+ opacity: 0.35;
1771
+ cursor: not-allowed;
1772
+ }
1773
+
1774
+ .styles-module__settingsRowDisabled___EgS0V .styles-module__settingsLabel___8UjfX {
1775
+ color: rgba(255, 255, 255, 0.2);
1776
+ }
1777
+ [data-agentation-theme=light] .styles-module__settingsRowDisabled___EgS0V .styles-module__settingsLabel___8UjfX {
1778
+ color: rgba(0, 0, 0, 0.2);
1779
+ }
1780
+ .styles-module__settingsRowDisabled___EgS0V .styles-module__toggleSwitch___l4Ygm {
1781
+ opacity: 0.4;
1782
+ cursor: not-allowed;
1783
+ }
1784
+
1785
+ @keyframes styles-module__cycleTextIn___Q6zJf {
1786
+ 0% {
1787
+ opacity: 0;
1788
+ transform: translateY(-6px);
1789
+ }
1790
+ 100% {
1791
+ opacity: 1;
1792
+ transform: translateY(0);
1793
+ }
1794
+ }
1795
+ .styles-module__cycleButtonText___fD1LR {
1796
+ display: inline-block;
1797
+ animation: styles-module__cycleTextIn___Q6zJf 0.2s ease-out;
1798
+ }
1799
+
1800
+ .styles-module__cycleDots___LWuoQ {
1801
+ display: flex;
1802
+ flex-direction: column;
1803
+ gap: 2px;
1804
+ }
1805
+
1806
+ .styles-module__cycleDot___nPgLY {
1807
+ width: 3px;
1808
+ height: 3px;
1809
+ border-radius: 50%;
1810
+ background: rgba(255, 255, 255, 0.3);
1811
+ transform: scale(0.667);
1812
+ transition: background-color 0.25s ease-out, transform 0.25s ease-out;
1813
+ }
1814
+ .styles-module__cycleDot___nPgLY.styles-module__active___-zoN6 {
1815
+ background: #fff;
1816
+ transform: scale(1);
1817
+ }
1818
+ [data-agentation-theme=light] .styles-module__cycleDot___nPgLY {
1819
+ background: rgba(0, 0, 0, 0.2);
1820
+ }
1821
+ [data-agentation-theme=light] .styles-module__cycleDot___nPgLY.styles-module__active___-zoN6 {
1822
+ background: rgba(0, 0, 0, 0.7);
1823
+ }
1824
+
1825
+ .styles-module__dropdownMenu___k73ER {
1826
+ position: absolute;
1827
+ right: 0;
1828
+ top: calc(100% + 0.25rem);
1829
+ background: #1a1a1a;
1830
+ border-radius: 0.5rem;
1831
+ padding: 0.25rem;
1832
+ min-width: 120px;
1833
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
1834
+ z-index: 10;
1835
+ animation: styles-module__scaleIn___c-r1K 0.15s ease-out;
1836
+ }
1837
+
1838
+ .styles-module__dropdownItem___ylsLj {
1839
+ width: 100%;
1840
+ display: flex;
1841
+ align-items: center;
1842
+ padding: 0.5rem 0.625rem;
1843
+ border: none;
1844
+ border-radius: 0.375rem;
1845
+ background: transparent;
1846
+ font-size: 0.8125rem;
1847
+ font-weight: 500;
1848
+ color: rgba(255, 255, 255, 0.85);
1849
+ cursor: pointer;
1850
+ text-align: left;
1851
+ transition: background-color 0.15s ease, color 0.15s ease;
1852
+ letter-spacing: -0.0094em;
1853
+ }
1854
+ .styles-module__dropdownItem___ylsLj:hover {
1855
+ background: rgba(255, 255, 255, 0.08);
1856
+ }
1857
+ .styles-module__dropdownItem___ylsLj.styles-module__selected___OwRqP {
1858
+ background: rgba(255, 255, 255, 0.12);
1859
+ color: #fff;
1860
+ font-weight: 600;
1861
+ }
1862
+
1863
+ .styles-module__settingsLabel___8UjfX {
1864
+ font-size: 0.8125rem;
1865
+ font-weight: 400;
1866
+ letter-spacing: -0.0094em;
1867
+ color: rgba(255, 255, 255, 0.5);
1868
+ display: flex;
1869
+ align-items: center;
1870
+ gap: 0.125rem;
1871
+ }
1872
+ [data-agentation-theme=light] .styles-module__settingsLabel___8UjfX {
1873
+ color: rgba(0, 0, 0, 0.5);
1874
+ }
1875
+
1876
+ .styles-module__settingsLabelMarker___ewdtV {
1877
+ padding-top: 3px;
1878
+ margin-bottom: 10px;
1879
+ }
1880
+
1881
+ .styles-module__settingsOptions___LyrBA {
1882
+ display: flex;
1883
+ gap: 0.25rem;
1884
+ }
1885
+
1886
+ .styles-module__settingsOption___UNa12 {
1887
+ flex: 1;
1888
+ display: flex;
1889
+ align-items: center;
1890
+ justify-content: center;
1891
+ gap: 0.25rem;
1892
+ padding: 0.375rem 0.5rem;
1893
+ border: none;
1894
+ border-radius: 0.375rem;
1895
+ background: transparent;
1896
+ font-size: 0.6875rem;
1897
+ font-weight: 500;
1898
+ color: rgba(0, 0, 0, 0.7);
1899
+ cursor: pointer;
1900
+ transition: background-color 0.15s ease, color 0.15s ease;
1901
+ }
1902
+ .styles-module__settingsOption___UNa12:hover {
1903
+ background: rgba(0, 0, 0, 0.05);
1904
+ }
1905
+ .styles-module__settingsOption___UNa12.styles-module__selected___OwRqP {
1906
+ background: color-mix(in srgb, var(--agentation-color-blue) 15%, transparent);
1907
+ color: var(--agentation-color-blue);
1908
+ }
1909
+
1910
+ .styles-module__sliderContainer___ducXj {
1911
+ display: flex;
1912
+ flex-direction: column;
1913
+ gap: 0.5rem;
1914
+ }
1915
+
1916
+ .styles-module__slider___GLdxp {
1917
+ -webkit-appearance: none;
1918
+ appearance: none;
1919
+ width: 100%;
1920
+ height: 4px;
1921
+ background: rgba(255, 255, 255, 0.15);
1922
+ border-radius: 2px;
1923
+ outline: none;
1924
+ cursor: pointer;
1925
+ }
1926
+ .styles-module__slider___GLdxp::-webkit-slider-thumb {
1927
+ -webkit-appearance: none;
1928
+ appearance: none;
1929
+ width: 14px;
1930
+ height: 14px;
1931
+ background: white;
1932
+ border-radius: 50%;
1933
+ cursor: pointer;
1934
+ transition: transform 0.15s ease, box-shadow 0.15s ease;
1935
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
1936
+ }
1937
+ .styles-module__slider___GLdxp::-moz-range-thumb {
1938
+ width: 14px;
1939
+ height: 14px;
1940
+ background: white;
1941
+ border: none;
1942
+ border-radius: 50%;
1943
+ cursor: pointer;
1944
+ transition: transform 0.15s ease, box-shadow 0.15s ease;
1945
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
1946
+ }
1947
+ .styles-module__slider___GLdxp:hover::-webkit-slider-thumb {
1948
+ transform: scale(1.15);
1949
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
1950
+ }
1951
+ .styles-module__slider___GLdxp:hover::-moz-range-thumb {
1952
+ transform: scale(1.15);
1953
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
1954
+ }
1955
+
1956
+ .styles-module__sliderLabels___FhLDB {
1957
+ display: flex;
1958
+ justify-content: space-between;
1959
+ }
1960
+
1961
+ .styles-module__sliderLabel___U8sPr {
1962
+ font-size: 0.625rem;
1963
+ font-weight: 500;
1964
+ color: rgba(255, 255, 255, 0.4);
1965
+ cursor: pointer;
1966
+ transition: color 0.15s ease;
1967
+ }
1968
+ .styles-module__sliderLabel___U8sPr:hover {
1969
+ color: rgba(255, 255, 255, 0.7);
1970
+ }
1971
+ .styles-module__sliderLabel___U8sPr.styles-module__active___-zoN6 {
1972
+ color: rgba(255, 255, 255, 0.9);
1973
+ }
1974
+
1975
+ .styles-module__colorOptions___iHCNX {
1976
+ display: flex;
1977
+ gap: 0.5rem;
1978
+ margin-top: 0.375rem;
1979
+ margin-bottom: 1px;
1980
+ }
1981
+
1982
+ .styles-module__colorOption___IodiY {
1983
+ display: block;
1984
+ width: 20px;
1985
+ height: 20px;
1986
+ border-radius: 50%;
1987
+ border: 2px solid transparent;
1988
+ background-color: var(--swatch);
1989
+ cursor: pointer;
1990
+ transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
1991
+ }
1992
+ @supports (color: color(display-p3 0 0 0)) {
1993
+ .styles-module__colorOption___IodiY {
1994
+ background-color: var(--swatch-p3);
1995
+ }
1996
+ }
1997
+ .styles-module__colorOption___IodiY:hover {
1998
+ transform: scale(1.15);
1999
+ }
2000
+ .styles-module__colorOption___IodiY.styles-module__selected___OwRqP {
2001
+ transform: scale(0.83);
2002
+ }
2003
+
2004
+ .styles-module__colorOptionRing___U2xpo {
2005
+ display: flex;
2006
+ width: 24px;
2007
+ height: 24px;
2008
+ border: 2px solid transparent;
2009
+ border-radius: 50%;
2010
+ transition: border-color 0.3s ease;
2011
+ }
2012
+ .styles-module__colorOptionRing___U2xpo.styles-module__selected___OwRqP {
2013
+ border-color: var(--swatch);
2014
+ }
2015
+ @supports (color: color(display-p3 0 0 0)) {
2016
+ .styles-module__colorOptionRing___U2xpo.styles-module__selected___OwRqP {
2017
+ border-color: var(--swatch-p3);
2018
+ }
2019
+ }
2020
+
2021
+ .styles-module__settingsToggle___fBrFn {
2022
+ display: flex;
2023
+ align-items: center;
2024
+ gap: 0.5rem;
2025
+ cursor: pointer;
2026
+ }
2027
+ .styles-module__settingsToggle___fBrFn + .styles-module__settingsToggle___fBrFn {
2028
+ margin-top: calc(0.5rem + 6px);
2029
+ }
2030
+ .styles-module__settingsToggle___fBrFn input[type=checkbox] {
2031
+ position: absolute;
2032
+ opacity: 0;
2033
+ width: 0;
2034
+ height: 0;
2035
+ }
2036
+ .styles-module__settingsToggle___fBrFn.styles-module__settingsToggleMarginBottom___MZUyF {
2037
+ margin-bottom: calc(0.5rem + 6px);
2038
+ }
2039
+
2040
+ .styles-module__customCheckbox___U39ax {
2041
+ position: relative;
2042
+ width: 14px;
2043
+ height: 14px;
2044
+ border: 1px solid rgba(255, 255, 255, 0.2);
2045
+ border-radius: 4px;
2046
+ background: rgba(255, 255, 255, 0.05);
2047
+ display: flex;
2048
+ align-items: center;
2049
+ justify-content: center;
2050
+ flex-shrink: 0;
2051
+ transition: background-color 0.25s ease, border-color 0.25s ease;
2052
+ }
2053
+ .styles-module__customCheckbox___U39ax svg {
2054
+ color: #1a1a1a;
2055
+ opacity: 1;
2056
+ transition: opacity 0.15s ease;
2057
+ }
2058
+ input[type=checkbox]:checked + .styles-module__customCheckbox___U39ax {
2059
+ border-color: rgba(255, 255, 255, 0.3);
2060
+ background: rgb(255, 255, 255);
2061
+ }
2062
+ [data-agentation-theme=light] .styles-module__customCheckbox___U39ax {
2063
+ border: 1px solid rgba(0, 0, 0, 0.15);
2064
+ background: #fff;
2065
+ }
2066
+ [data-agentation-theme=light] .styles-module__customCheckbox___U39ax.styles-module__checked___mnZLo {
2067
+ border-color: #1a1a1a;
2068
+ background: #1a1a1a;
2069
+ }
2070
+ [data-agentation-theme=light] .styles-module__customCheckbox___U39ax.styles-module__checked___mnZLo svg {
2071
+ color: #fff;
2072
+ }
2073
+
2074
+ .styles-module__toggleLabel___Xm8Aa {
2075
+ font-size: 0.8125rem;
2076
+ font-weight: 400;
2077
+ color: rgba(255, 255, 255, 0.5);
2078
+ letter-spacing: -0.0094em;
2079
+ display: flex;
2080
+ align-items: center;
2081
+ gap: 0.25rem;
2082
+ }
2083
+ [data-agentation-theme=light] .styles-module__toggleLabel___Xm8Aa {
2084
+ color: rgba(0, 0, 0, 0.5);
2085
+ }
2086
+
2087
+ .styles-module__toggleSwitch___l4Ygm {
2088
+ position: relative;
2089
+ display: inline-block;
2090
+ width: 24px;
2091
+ height: 16px;
2092
+ flex-shrink: 0;
2093
+ cursor: pointer;
2094
+ transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
2095
+ }
2096
+ .styles-module__toggleSwitch___l4Ygm input {
2097
+ opacity: 0;
2098
+ width: 0;
2099
+ height: 0;
2100
+ }
2101
+ .styles-module__toggleSwitch___l4Ygm input:checked + .styles-module__toggleSlider___wprIn {
2102
+ background-color: var(--agentation-color-blue);
2103
+ }
2104
+ .styles-module__toggleSwitch___l4Ygm input:checked + .styles-module__toggleSlider___wprIn::before {
2105
+ transform: translateX(8px);
2106
+ }
2107
+ .styles-module__toggleSwitch___l4Ygm.styles-module__disabled___332Jw {
2108
+ opacity: 0.4;
2109
+ pointer-events: none;
2110
+ }
2111
+ .styles-module__toggleSwitch___l4Ygm.styles-module__disabled___332Jw .styles-module__toggleSlider___wprIn {
2112
+ cursor: not-allowed;
2113
+ }
2114
+
2115
+ .styles-module__toggleSlider___wprIn {
2116
+ position: absolute;
2117
+ cursor: pointer;
2118
+ inset: 0;
2119
+ border-radius: 16px;
2120
+ background: #484848;
2121
+ }
2122
+ [data-agentation-theme=light] .styles-module__toggleSlider___wprIn {
2123
+ background: #dddddd;
2124
+ }
2125
+ .styles-module__toggleSlider___wprIn::before {
2126
+ content: "";
2127
+ position: absolute;
2128
+ height: 12px;
2129
+ width: 12px;
2130
+ left: 2px;
2131
+ bottom: 2px;
2132
+ background: white;
2133
+ border-radius: 50%;
2134
+ transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
2135
+ }
2136
+
2137
+ @keyframes styles-module__mcpPulse___uNggr {
2138
+ 0% {
2139
+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--agentation-color-green) 50%, transparent);
2140
+ }
2141
+ 70% {
2142
+ box-shadow: 0 0 0 6px color-mix(in srgb, var(--agentation-color-green) 0%, transparent);
2143
+ }
2144
+ 100% {
2145
+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--agentation-color-green) 0%, transparent);
2146
+ }
2147
+ }
2148
+ @keyframes styles-module__mcpPulseError___fov9B {
2149
+ 0% {
2150
+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--agentation-color-red) 50%, transparent);
2151
+ }
2152
+ 70% {
2153
+ box-shadow: 0 0 0 6px color-mix(in srgb, var(--agentation-color-red) 0%, transparent);
2154
+ }
2155
+ 100% {
2156
+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--agentation-color-red) 0%, transparent);
2157
+ }
2158
+ }
2159
+ .styles-module__mcpStatusDot___ibgkc {
2160
+ width: 8px;
2161
+ height: 8px;
2162
+ border-radius: 50%;
2163
+ flex-shrink: 0;
2164
+ }
2165
+ .styles-module__mcpStatusDot___ibgkc.styles-module__connecting___uo-CW {
2166
+ background-color: var(--agentation-color-yellow);
2167
+ animation: styles-module__mcpPulse___uNggr 1.5s infinite;
2168
+ }
2169
+ .styles-module__mcpStatusDot___ibgkc.styles-module__connected___7c28g {
2170
+ background-color: var(--agentation-color-green);
2171
+ animation: styles-module__mcpPulse___uNggr 2.5s ease-in-out infinite;
2172
+ }
2173
+ .styles-module__mcpStatusDot___ibgkc.styles-module__disconnected___cHPxR {
2174
+ background-color: var(--agentation-color-red);
2175
+ animation: styles-module__mcpPulseError___fov9B 2s infinite;
2176
+ }
2177
+
2178
+ .styles-module__dragSelection___kZLq2 {
2179
+ position: fixed;
2180
+ top: 0;
2181
+ left: 0;
2182
+ border: 2px solid color-mix(in srgb, var(--agentation-color-green) 60%, transparent);
2183
+ border-radius: 4px;
2184
+ background-color: color-mix(in srgb, var(--agentation-color-green) 8%, transparent);
2185
+ pointer-events: none;
2186
+ z-index: 99997;
2187
+ will-change: transform, width, height;
2188
+ contain: layout style;
2189
+ }
2190
+
2191
+ .styles-module__dragCount___KM90j {
2192
+ position: absolute;
2193
+ top: 50%;
2194
+ left: 50%;
2195
+ transform: translate(-50%, -50%);
2196
+ background-color: var(--agentation-color-green);
2197
+ color: white;
2198
+ font-size: 0.875rem;
2199
+ font-weight: 600;
2200
+ padding: 0.25rem 0.5rem;
2201
+ border-radius: 1rem;
2202
+ min-width: 1.5rem;
2203
+ text-align: center;
2204
+ }
2205
+
2206
+ .styles-module__highlightsContainer___-0xzG {
2207
+ position: fixed;
2208
+ top: 0;
2209
+ left: 0;
2210
+ pointer-events: none;
2211
+ z-index: 99996;
2212
+ }
2213
+
2214
+ .styles-module__selectedElementHighlight___fyVlI {
2215
+ position: fixed;
2216
+ top: 0;
2217
+ left: 0;
2218
+ border: 2px solid color-mix(in srgb, var(--agentation-color-green) 50%, transparent);
2219
+ border-radius: 4px;
2220
+ background: color-mix(in srgb, var(--agentation-color-green) 6%, transparent);
2221
+ pointer-events: none;
2222
+ will-change: transform, width, height;
2223
+ contain: layout style;
2224
+ }
2225
+
2226
+ [data-agentation-theme=light] .styles-module__toolbarContainer___dIhma {
2227
+ background: #fff;
2228
+ color: rgba(0, 0, 0, 0.85);
2229
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
2230
+ }
2231
+ [data-agentation-theme=light] .styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:hover {
2232
+ background: #f5f5f5;
2233
+ }
2234
+ [data-agentation-theme=light] .styles-module__controlButton___8Q0jc {
2235
+ color: rgba(0, 0, 0, 0.5);
2236
+ }
2237
+ [data-agentation-theme=light] .styles-module__controlButton___8Q0jc:hover:not(:disabled):not([data-active=true]):not([data-failed=true]):not([data-auto-sync=true]):not([data-error=true]):not([data-no-hover=true]) {
2238
+ background: rgba(0, 0, 0, 0.06);
2239
+ color: rgba(0, 0, 0, 0.85);
2240
+ }
2241
+ [data-agentation-theme=light] .styles-module__controlButton___8Q0jc[data-active=true] {
2242
+ color: var(--agentation-color-blue);
2243
+ background: color-mix(in srgb, var(--agentation-color-blue) 15%, transparent);
2244
+ }
2245
+ [data-agentation-theme=light] .styles-module__controlButton___8Q0jc[data-error=true] {
2246
+ color: var(--agentation-color-red);
2247
+ background: color-mix(in srgb, var(--agentation-color-red) 15%, transparent);
2248
+ }
2249
+ [data-agentation-theme=light] .styles-module__controlButton___8Q0jc[data-danger]:hover:not(:disabled):not([data-active=true]):not([data-failed=true]) {
2250
+ color: var(--agentation-color-red);
2251
+ background: color-mix(in srgb, var(--agentation-color-red) 15%, transparent);
2252
+ }
2253
+ [data-agentation-theme=light] .styles-module__controlButton___8Q0jc[data-auto-sync=true] {
2254
+ color: var(--agentation-color-green);
2255
+ background: transparent;
2256
+ }
2257
+ [data-agentation-theme=light] .styles-module__controlButton___8Q0jc[data-failed=true] {
2258
+ color: var(--agentation-color-red);
2259
+ background: color-mix(in srgb, var(--agentation-color-red) 15%, transparent);
2260
+ }
2261
+ [data-agentation-theme=light] .styles-module__buttonTooltip___Burd9 {
2262
+ background: #fff;
2263
+ color: rgba(0, 0, 0, 0.85);
2264
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
2265
+ }
2266
+ [data-agentation-theme=light] .styles-module__buttonTooltip___Burd9::after {
2267
+ background: #fff;
2268
+ }
2269
+ [data-agentation-theme=light] .styles-module__divider___c--s1 {
2270
+ background: rgba(0, 0, 0, 0.1);
2271
+ }
2272
+ [data-agentation-theme=light] .styles-module__markerTooltip___aLJID {
2273
+ background: #fff;
2274
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
2275
+ }
2276
+ [data-agentation-theme=light] .styles-module__markerTooltip___aLJID .styles-module__markerQuote___FHmrz {
2277
+ color: rgba(0, 0, 0, 0.5);
2278
+ }
2279
+ [data-agentation-theme=light] .styles-module__markerTooltip___aLJID .styles-module__markerNote___QkrrS {
2280
+ color: rgba(0, 0, 0, 0.85);
2281
+ }
2282
+ [data-agentation-theme=light] .styles-module__markerTooltip___aLJID .styles-module__markerHint___2iF-6 {
2283
+ color: rgba(0, 0, 0, 0.35);
2284
+ }
2285
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y {
2286
+ background: #fff;
2287
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
2288
+ }
2289
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y::before {
2290
+ background: linear-gradient(to right, #fff 0%, transparent 100%);
2291
+ }
2292
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y::after {
2293
+ background: linear-gradient(to left, #fff 0%, transparent 100%);
2294
+ }
2295
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__settingsHeader___pwDY9 {
2296
+ border-bottom-color: rgba(0, 0, 0, 0.08);
2297
+ }
2298
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__settingsBrand___0gJeM {
2299
+ color: rgba(0, 0, 0, 0.85);
2300
+ }
2301
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__settingsVersion___TUcFq {
2302
+ color: rgba(0, 0, 0, 0.4);
2303
+ }
2304
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__settingsSection___m-YM2 {
2305
+ border-top-color: rgba(0, 0, 0, 0.08);
2306
+ }
2307
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__settingsLabel___8UjfX {
2308
+ color: rgba(0, 0, 0, 0.5);
2309
+ }
2310
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__cycleButton___FMKfw {
2311
+ color: rgba(0, 0, 0, 0.85);
2312
+ }
2313
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY {
2314
+ background: rgba(0, 0, 0, 0.2);
2315
+ }
2316
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY.styles-module__active___-zoN6 {
2317
+ background: rgba(0, 0, 0, 0.7);
2318
+ }
2319
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz {
2320
+ color: rgba(0, 0, 0, 0.85);
2321
+ }
2322
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz:hover {
2323
+ background: rgba(0, 0, 0, 0.05);
2324
+ }
2325
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__toggleLabel___Xm8Aa {
2326
+ color: rgba(0, 0, 0, 0.5);
2327
+ }
2328
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax {
2329
+ border: 1px solid rgba(0, 0, 0, 0.15);
2330
+ background: #fff;
2331
+ }
2332
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax.styles-module__checked___mnZLo {
2333
+ border-color: #1a1a1a;
2334
+ background: #1a1a1a;
2335
+ }
2336
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax.styles-module__checked___mnZLo svg {
2337
+ color: #fff;
2338
+ }
2339
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr {
2340
+ color: rgba(0, 0, 0, 0.4);
2341
+ }
2342
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr:hover {
2343
+ color: rgba(0, 0, 0, 0.7);
2344
+ }
2345
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr.styles-module__active___-zoN6 {
2346
+ color: rgba(0, 0, 0, 0.9);
2347
+ }
2348
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp {
2349
+ background: rgba(0, 0, 0, 0.1);
2350
+ }
2351
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp::-webkit-slider-thumb {
2352
+ background: #1a1a1a;
2353
+ }
2354
+ [data-agentation-theme=light] .styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp::-moz-range-thumb {
2355
+ background: #1a1a1a;
2356
+ }
2357
+
2358
+ .styles-module__themeToggle___2rUjA {
2359
+ display: flex;
2360
+ align-items: center;
2361
+ justify-content: center;
2362
+ width: 22px;
2363
+ height: 22px;
2364
+ margin-left: 0.5rem;
2365
+ border: none;
2366
+ border-radius: 6px;
2367
+ background: transparent;
2368
+ color: rgba(255, 255, 255, 0.4);
2369
+ cursor: pointer;
2370
+ transition: background-color 0.15s ease, color 0.15s ease;
2371
+ }
2372
+ .styles-module__themeToggle___2rUjA:hover {
2373
+ background: rgba(255, 255, 255, 0.1);
2374
+ color: rgba(255, 255, 255, 0.8);
2375
+ }
2376
+ [data-agentation-theme=light] .styles-module__themeToggle___2rUjA {
2377
+ color: rgba(0, 0, 0, 0.4);
2378
+ }
2379
+ [data-agentation-theme=light] .styles-module__themeToggle___2rUjA:hover {
2380
+ background: rgba(0, 0, 0, 0.06);
2381
+ color: rgba(0, 0, 0, 0.7);
2382
+ }
2383
+
2384
+ .styles-module__themeIconWrapper___LsJIM {
2385
+ display: flex;
2386
+ align-items: center;
2387
+ justify-content: center;
2388
+ position: relative;
2389
+ width: 20px;
2390
+ height: 20px;
2391
+ }
2392
+
2393
+ .styles-module__themeIcon___lCCmo {
2394
+ display: flex;
2395
+ align-items: center;
2396
+ justify-content: center;
2397
+ animation: styles-module__themeIconIn___TU6ML 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
2398
+ }
2399
+
2400
+ @keyframes styles-module__themeIconIn___TU6ML {
2401
+ 0% {
2402
+ opacity: 0;
2403
+ transform: scale(0.8) rotate(-30deg);
2404
+ }
2405
+ 100% {
2406
+ opacity: 1;
2407
+ transform: scale(1) rotate(0deg);
2408
+ }
2409
+ }`,Hk={toolbar:"styles-module__toolbar___wNsdK",markersLayer:"styles-module__markersLayer___-25j1",fixedMarkersLayer:"styles-module__fixedMarkersLayer___ffyX6",disableTransitions:"styles-module__disableTransitions___EopxO",toolbarContainer:"styles-module__toolbarContainer___dIhma",dragging:"styles-module__dragging___xrolZ",entrance:"styles-module__entrance___sgHd8",toolbarEnter:"styles-module__toolbarEnter___u8RRu",hiding:"styles-module__hiding___1td44",toolbarHide:"styles-module__toolbarHide___y8kaT",collapsed:"styles-module__collapsed___Rydsn",expanded:"styles-module__expanded___ofKPx",serverConnected:"styles-module__serverConnected___Gfbou",toggleContent:"styles-module__toggleContent___0yfyP",visible:"styles-module__visible___KHwEW",hidden:"styles-module__hidden___Ae8H4",controlsContent:"styles-module__controlsContent___9GJWU",badge:"styles-module__badge___2XsgF",fadeOut:"styles-module__fadeOut___6Ut6-",badgeEnter:"styles-module__badgeEnter___mVQLj",controlButton:"styles-module__controlButton___8Q0jc",statusShowing:"styles-module__statusShowing___te6iu",buttonBadge:"styles-module__buttonBadge___NeFWb",mcpIndicator:"styles-module__mcpIndicator___zGJeL",connected:"styles-module__connected___7c28g",mcpIndicatorPulseConnected:"styles-module__mcpIndicatorPulseConnected___EDodZ",connecting:"styles-module__connecting___uo-CW",mcpIndicatorPulseConnecting:"styles-module__mcpIndicatorPulseConnecting___cCYte",connectionIndicatorWrapper:"styles-module__connectionIndicatorWrapper___L-e-3",connectionIndicator:"styles-module__connectionIndicator___afk9p",connectionIndicatorVisible:"styles-module__connectionIndicatorVisible___C-i5B",connectionIndicatorConnected:"styles-module__connectionIndicatorConnected___IY8pR",connectionPulse:"styles-module__connectionPulse___-Zycw",connectionIndicatorDisconnected:"styles-module__connectionIndicatorDisconnected___kmpaZ",connectionIndicatorConnecting:"styles-module__connectionIndicatorConnecting___QmSLH",buttonWrapper:"styles-module__buttonWrapper___rBcdv",buttonTooltip:"styles-module__buttonTooltip___Burd9",tooltipsInSession:"styles-module__tooltipsInSession___-0lHH",sendButtonWrapper:"styles-module__sendButtonWrapper___UUxG6",sendButtonVisible:"styles-module__sendButtonVisible___WPSQU",shortcut:"styles-module__shortcut___lEAQk",tooltipBelow:"styles-module__tooltipBelow___m6ats",tooltipsHidden:"styles-module__tooltipsHidden___VtLJG",tooltipVisible:"styles-module__tooltipVisible___0jcCv",buttonWrapperAlignLeft:"styles-module__buttonWrapperAlignLeft___myzIp",buttonWrapperAlignRight:"styles-module__buttonWrapperAlignRight___HCQFR",divider:"styles-module__divider___c--s1",overlay:"styles-module__overlay___Q1O9y",hoverHighlight:"styles-module__hoverHighlight___ogakW",enter:"styles-module__enter___WFIki",hoverHighlightIn:"styles-module__hoverHighlightIn___6WYHY",multiSelectOutline:"styles-module__multiSelectOutline___cSJ-m",fadeIn:"styles-module__fadeIn___b9qmf",exit:"styles-module__exit___fyOJ0",singleSelectOutline:"styles-module__singleSelectOutline___QhX-O",hoverTooltip:"styles-module__hoverTooltip___bvLk7",hoverTooltipIn:"styles-module__hoverTooltipIn___FYGQx",hoverReactPath:"styles-module__hoverReactPath___gx1IJ",hoverElementName:"styles-module__hoverElementName___QMLMl",marker:"styles-module__marker___6sQrs",clearing:"styles-module__clearing___FQ--7",markerIn:"styles-module__markerIn___5FaAP",markerOut:"styles-module__markerOut___GU5jX",pending:"styles-module__pending___2IHLC",fixed:"styles-module__fixed___dBMHC",multiSelect:"styles-module__multiSelect___YWiuz",hovered:"styles-module__hovered___ZgXIy",renumber:"styles-module__renumber___nCTxD",renumberRoll:"styles-module__renumberRoll___Wgbq3",markerTooltip:"styles-module__markerTooltip___aLJID",tooltipIn:"styles-module__tooltipIn___0N31w",markerQuote:"styles-module__markerQuote___FHmrz",markerNote:"styles-module__markerNote___QkrrS",markerHint:"styles-module__markerHint___2iF-6",settingsPanel:"styles-module__settingsPanel___OxX3Y",settingsHeader:"styles-module__settingsHeader___pwDY9",settingsBrand:"styles-module__settingsBrand___0gJeM",settingsBrandSlash:"styles-module__settingsBrandSlash___uTG18",settingsVersion:"styles-module__settingsVersion___TUcFq",settingsSection:"styles-module__settingsSection___m-YM2",settingsLabel:"styles-module__settingsLabel___8UjfX",cycleButton:"styles-module__cycleButton___FMKfw",cycleDot:"styles-module__cycleDot___nPgLY",dropdownButton:"styles-module__dropdownButton___16NPz",toggleLabel:"styles-module__toggleLabel___Xm8Aa",customCheckbox:"styles-module__customCheckbox___U39ax",sliderLabel:"styles-module__sliderLabel___U8sPr",slider:"styles-module__slider___GLdxp",themeToggle:"styles-module__themeToggle___2rUjA",settingsOption:"styles-module__settingsOption___UNa12",selected:"styles-module__selected___OwRqP",settingsPanelContainer:"styles-module__settingsPanelContainer___Xksv8",settingsPage:"styles-module__settingsPage___6YfHH",slideLeft:"styles-module__slideLeft___Ps01J",automationsPage:"styles-module__automationsPage___uvCq6",slideIn:"styles-module__slideIn___4-qXe",settingsNavLink:"styles-module__settingsNavLink___wCzJt",settingsNavLinkRight:"styles-module__settingsNavLinkRight___ZWwhj",mcpNavIndicator:"styles-module__mcpNavIndicator___cl9pO",mcpPulse:"styles-module__mcpPulse___uNggr",settingsBackButton:"styles-module__settingsBackButton___bIe2j",automationHeader:"styles-module__automationHeader___InP0r",automationDescription:"styles-module__automationDescription___NKlmo",learnMoreLink:"styles-module__learnMoreLink___8xv-x",autoSendRow:"styles-module__autoSendRow___UblX5",autoSendLabel:"styles-module__autoSendLabel___icDc2",active:"styles-module__active___-zoN6",webhookUrlInput:"styles-module__webhookUrlInput___2375C",settingsSectionExtraPadding:"styles-module__settingsSectionExtraPadding___jdhFV",settingsSectionGrow:"styles-module__settingsSectionGrow___h-5HZ",settingsRow:"styles-module__settingsRow___3sdhc",settingsRowMarginTop:"styles-module__settingsRowMarginTop___zA0Sp",dropdownContainer:"styles-module__dropdownContainer___BVnxe",settingsRowDisabled:"styles-module__settingsRowDisabled___EgS0V",toggleSwitch:"styles-module__toggleSwitch___l4Ygm",cycleButtonText:"styles-module__cycleButtonText___fD1LR",cycleTextIn:"styles-module__cycleTextIn___Q6zJf",cycleDots:"styles-module__cycleDots___LWuoQ",dropdownMenu:"styles-module__dropdownMenu___k73ER",scaleIn:"styles-module__scaleIn___c-r1K",dropdownItem:"styles-module__dropdownItem___ylsLj",settingsLabelMarker:"styles-module__settingsLabelMarker___ewdtV",settingsOptions:"styles-module__settingsOptions___LyrBA",sliderContainer:"styles-module__sliderContainer___ducXj",sliderLabels:"styles-module__sliderLabels___FhLDB",colorOptions:"styles-module__colorOptions___iHCNX",colorOption:"styles-module__colorOption___IodiY",colorOptionRing:"styles-module__colorOptionRing___U2xpo",settingsToggle:"styles-module__settingsToggle___fBrFn",settingsToggleMarginBottom:"styles-module__settingsToggleMarginBottom___MZUyF",checked:"styles-module__checked___mnZLo",toggleSlider:"styles-module__toggleSlider___wprIn",disabled:"styles-module__disabled___332Jw",mcpStatusDot:"styles-module__mcpStatusDot___ibgkc",disconnected:"styles-module__disconnected___cHPxR",mcpPulseError:"styles-module__mcpPulseError___fov9B",dragSelection:"styles-module__dragSelection___kZLq2",dragCount:"styles-module__dragCount___KM90j",highlightsContainer:"styles-module__highlightsContainer___-0xzG",selectedElementHighlight:"styles-module__selectedElementHighlight___fyVlI",themeIconWrapper:"styles-module__themeIconWrapper___LsJIM",themeIcon:"styles-module__themeIcon___lCCmo",themeIconIn:"styles-module__themeIconIn___TU6ML",scaleOut:"styles-module__scaleOut___Wctwz",slideUp:"styles-module__slideUp___kgD36",slideDown:"styles-module__slideDown___zcdje",settingsPanelIn:"styles-module__settingsPanelIn___MGfO8",settingsPanelOut:"styles-module__settingsPanelOut___Zfymi"};if(typeof document<"u"){let e=document.getElementById("feedback-tool-styles-page-toolbar-css-styles");e||(e=document.createElement("style"),e.id="feedback-tool-styles-page-toolbar-css-styles",e.textContent=Wk,document.head.appendChild(e))}var C=Hk,Uk=({content:e,children:t,...n})=>{const[r,o]=u.useState(!1),[s,l]=u.useState(!1),[i,c]=u.useState({top:0,right:0}),d=u.useRef(null),f=u.useRef(null),p=u.useRef(null),m=()=>{if(d.current){const y=d.current.getBoundingClientRect();c({top:y.top+y.height/2,right:window.innerWidth-y.left+8})}},_=()=>{l(!0),p.current&&(clearTimeout(p.current),p.current=null),m(),f.current=ue(()=>{o(!0)},500)},w=()=>{f.current&&(clearTimeout(f.current),f.current=null),o(!1),p.current=ue(()=>{l(!1)},150)};return u.useEffect(()=>()=>{f.current&&clearTimeout(f.current),p.current&&clearTimeout(p.current)},[]),a.jsxs(a.Fragment,{children:[a.jsx("span",{ref:d,onMouseEnter:_,onMouseLeave:w,...n,children:t}),s&&Vo.createPortal(a.jsx("div",{"data-feedback-toolbar":!0,style:{position:"fixed",top:i.top,right:i.right,transform:"translateY(-50%)",padding:"6px 10px",background:"#383838",color:"rgba(255, 255, 255, 0.7)",fontSize:"11px",fontWeight:400,lineHeight:"14px",borderRadius:"10px",width:"180px",textAlign:"left",zIndex:100020,pointerEvents:"none",boxShadow:"0px 1px 8px rgba(0, 0, 0, 0.28)",opacity:r?1:0,transition:"opacity 0.15s ease"},children:e}),document.body)]})},Vk=`.styles-module__tooltip___mcXL2 {
2410
+ display: flex;
2411
+ justify-content: center;
2412
+ align-items: center;
2413
+ cursor: help;
2414
+ }
2415
+
2416
+ .styles-module__tooltipIcon___Nq2nD {
2417
+ transform: translateY(0.5px);
2418
+ color: #fff;
2419
+ opacity: 0.2;
2420
+ transition: opacity 0.15s ease;
2421
+ will-change: transform;
2422
+ }
2423
+ .styles-module__tooltip___mcXL2:hover .styles-module__tooltipIcon___Nq2nD {
2424
+ opacity: 0.5;
2425
+ }
2426
+ [data-agentation-theme=light] .styles-module__tooltipIcon___Nq2nD {
2427
+ color: #000;
2428
+ }`,Yk={tooltip:"styles-module__tooltip___mcXL2",tooltipIcon:"styles-module__tooltipIcon___Nq2nD"};if(typeof document<"u"){let e=document.getElementById("feedback-tool-styles-help-tooltip-styles");e||(e=document.createElement("style"),e.id="feedback-tool-styles-help-tooltip-styles",e.textContent=Vk,document.head.appendChild(e))}var Hm=Yk,to=({content:e})=>a.jsx(Uk,{className:Hm.tooltip,content:e,children:a.jsx(H2,{className:Hm.tooltipIcon})});function Rc(e,t="filtered"){const{name:n,path:r}=Hi(e);if(t==="off")return{name:n,elementName:n,path:r,reactComponents:null};const o=Rk(e,{mode:t});return{name:o.path?`${o.path} ${n}`:n,elementName:n,path:r,reactComponents:o.path}}var Um=!1,Tc={outputDetail:"standard",autoClearAfterCopy:!1,annotationColorId:"blue",blockInteractions:!0,reactEnabled:!0,markerClickBehavior:"edit",webhookUrl:"",webhooksEnabled:!0},tn=e=>{if(!e||!e.trim())return!1;try{const t=new URL(e.trim());return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}},vs=[{value:"compact",label:"Compact"},{value:"standard",label:"Standard"},{value:"detailed",label:"Detailed"},{value:"forensic",label:"Forensic"}],As=[{id:"indigo",label:"Indigo",srgb:"#6155F5",p3:"color(display-p3 0.38 0.33 0.96)"},{id:"blue",label:"Blue",srgb:"#0088FF",p3:"color(display-p3 0.00 0.53 1.00)"},{id:"cyan",label:"Cyan",srgb:"#00C3D0",p3:"color(display-p3 0.00 0.76 0.82)"},{id:"green",label:"Green",srgb:"#34C759",p3:"color(display-p3 0.20 0.78 0.35)"},{id:"yellow",label:"Yellow",srgb:"#FFCC00",p3:"color(display-p3 1.00 0.80 0.00)"},{id:"orange",label:"Orange",srgb:"#FF8D28",p3:"color(display-p3 1.00 0.55 0.16)"},{id:"red",label:"Red",srgb:"#FF383C",p3:"color(display-p3 1.00 0.22 0.24)"}],Xk=()=>{if(typeof document>"u"||document.getElementById("agentation-color-tokens"))return;const e=document.createElement("style");e.id="agentation-color-tokens",e.textContent=[...As.map(t=>`
2429
+ [data-agentation-accent="${t.id}"] {
2430
+ --agentation-color-accent: ${t.srgb};
2431
+ }
2432
+
2433
+ @supports (color: color(display-p3 0 0 0)) {
2434
+ [data-agentation-accent="${t.id}"] {
2435
+ --agentation-color-accent: ${t.p3};
2436
+ }
2437
+ }
2438
+ `),`:root {
2439
+ ${As.map(t=>`--agentation-color-${t.id}: ${t.srgb};`).join(`
2440
+ `)}
2441
+ }`,`@supports (color: color(display-p3 0 0 0)) {
2442
+ :root {
2443
+ ${As.map(t=>`--agentation-color-${t.id}: ${t.p3};`).join(`
2444
+ `)}
2445
+ }
2446
+ }`].join(""),document.head.appendChild(e)};Xk();function no(e,t){let n=document.elementFromPoint(e,t);if(!n)return null;for(;n?.shadowRoot;){const r=n.shadowRoot.elementFromPoint(e,t);if(!r||r===n)break;n=r}return n}function Lc(e){let t=e;for(;t&&t!==document.body;){const r=window.getComputedStyle(t).position;if(r==="fixed"||r==="sticky")return!0;t=t.parentElement}return!1}function Wn(e){return e.status!=="resolved"&&e.status!=="dismissed"}function Ql(e){const t=Xu(e),n=t.found?t:Bk(e);if(n.found&&n.source)return Fk(n.source,"path")}function Vm(e,t,n="standard",r="filtered"){if(e.length===0)return"";const o=typeof window<"u"?`${window.innerWidth}×${window.innerHeight}`:"unknown";let s=`## Page Feedback: ${t}
2447
+ `;return n==="forensic"?(s+=`
2448
+ **Environment:**
2449
+ `,s+=`- Viewport: ${o}
2450
+ `,typeof window<"u"&&(s+=`- URL: ${window.location.href}
2451
+ `,s+=`- User Agent: ${navigator.userAgent}
2452
+ `,s+=`- Timestamp: ${new Date().toISOString()}
2453
+ `,s+=`- Device Pixel Ratio: ${window.devicePixelRatio}
2454
+ `),s+=`
2455
+ ---
2456
+ `):n!=="compact"&&(s+=`**Viewport:** ${o}
2457
+ `),s+=`
2458
+ `,e.forEach((l,i)=>{n==="compact"?(s+=`${i+1}. **${l.element}**${l.sourceFile?` (${l.sourceFile})`:""}: ${l.comment}`,l.selectedText&&(s+=` (re: "${l.selectedText.slice(0,30)}${l.selectedText.length>30?"...":""}")`),s+=`
2459
+ `):n==="forensic"?(s+=`### ${i+1}. ${l.element}
2460
+ `,l.isMultiSelect&&l.fullPath&&(s+=`*Forensic data shown for first element of selection*
2461
+ `),l.fullPath&&(s+=`**Full DOM Path:** ${l.fullPath}
2462
+ `),l.cssClasses&&(s+=`**CSS Classes:** ${l.cssClasses}
2463
+ `),l.boundingBox&&(s+=`**Position:** x:${Math.round(l.boundingBox.x)}, y:${Math.round(l.boundingBox.y)} (${Math.round(l.boundingBox.width)}×${Math.round(l.boundingBox.height)}px)
2464
+ `),s+=`**Annotation at:** ${l.x.toFixed(1)}% from left, ${Math.round(l.y)}px from top
2465
+ `,l.selectedText&&(s+=`**Selected text:** "${l.selectedText}"
2466
+ `),l.nearbyText&&!l.selectedText&&(s+=`**Context:** ${l.nearbyText.slice(0,100)}
2467
+ `),l.computedStyles&&(s+=`**Computed Styles:** ${l.computedStyles}
2468
+ `),l.accessibility&&(s+=`**Accessibility:** ${l.accessibility}
2469
+ `),l.nearbyElements&&(s+=`**Nearby Elements:** ${l.nearbyElements}
2470
+ `),l.sourceFile&&(s+=`**Source:** ${l.sourceFile}
2471
+ `),l.reactComponents&&(s+=`**React:** ${l.reactComponents}
2472
+ `),s+=`**Feedback:** ${l.comment}
2473
+
2474
+ `):(s+=`### ${i+1}. ${l.element}
2475
+ `,s+=`**Location:** ${l.elementPath}
2476
+ `,l.sourceFile&&(s+=`**Source:** ${l.sourceFile}
2477
+ `),l.reactComponents&&(s+=`**React:** ${l.reactComponents}
2478
+ `),n==="detailed"&&(l.cssClasses&&(s+=`**Classes:** ${l.cssClasses}
2479
+ `),l.boundingBox&&(s+=`**Position:** ${Math.round(l.boundingBox.x)}px, ${Math.round(l.boundingBox.y)}px (${Math.round(l.boundingBox.width)}×${Math.round(l.boundingBox.height)}px)
2480
+ `)),l.selectedText&&(s+=`**Selected text:** "${l.selectedText}"
2481
+ `),n==="detailed"&&l.nearbyText&&!l.selectedText&&(s+=`**Context:** ${l.nearbyText.slice(0,100)}
2482
+ `),s+=`**Feedback:** ${l.comment}
2483
+
2484
+ `)}),s.trim()}function Qk({demoAnnotations:e,demoDelay:t=1e3,enableDemoMode:n=!1,onAnnotationAdd:r,onAnnotationDelete:o,onAnnotationUpdate:s,onAnnotationsClear:l,onCopy:i,onSubmit:c,copyToClipboard:d=!0,endpoint:f,sessionId:p,onSessionCreated:m,webhookUrl:_,className:w}={}){const[y,k]=u.useState(!1),[h,g]=u.useState([]),[v,S]=u.useState(!0),[N,T]=u.useState(()=>hk()),[j,L]=u.useState(!1),D=u.useRef(null);u.useEffect(()=>{const x=R=>{const I=D.current;I&&I.contains(R.target)&&R.stopPropagation()},b=["mousedown","click","pointerdown"];return b.forEach(R=>document.body.addEventListener(R,x)),()=>{b.forEach(R=>document.body.removeEventListener(R,x))}},[]);const[M,U]=u.useState(!1),[z,ee]=u.useState(!1),[G,fe]=u.useState(null),[K,me]=u.useState({x:0,y:0}),[E,O]=u.useState(null),[B,Q]=u.useState(!1),[he,Qt]=u.useState("idle"),[Gt,On]=u.useState(!1),[Et,gt]=u.useState(!1),[gr,Go]=u.useState(null),[Ko,pn]=u.useState(null),[fl,Kt]=u.useState([]),[vf,xf]=u.useState(null),[pl,wf]=u.useState(null),[oe,Zo]=u.useState(null),[La,mn]=u.useState(null),[bf,_r]=u.useState([]),[yr,kf]=u.useState(0),[Cf,Sf]=u.useState(!1),[Ae,Qy]=u.useState(!1),[Mt,Ef]=u.useState(!1),[Jo,Ia]=u.useState(!1),[Gy,Nf]=u.useState(!1),[jf,Aa]=u.useState("main"),[Ky,Oa]=u.useState(!1),[Pf,Rf]=u.useState(!1),Xr=u.useRef(null),[Oe,Qr]=u.useState([]),Zt=u.useRef({cmd:!1,shift:!1}),it=()=>{Oa(!0)},Zy=()=>{Oa(!1)},Jy=()=>{Pf||(Xr.current=setTimeout(()=>Rf(!0),850))},qy=()=>{Xr.current&&(clearTimeout(Xr.current),Xr.current=null),Rf(!1),Zy()};u.useEffect(()=>()=>{Xr.current&&clearTimeout(Xr.current)},[]);const[Y,vr]=u.useState(()=>{try{const x=JSON.parse(localStorage.getItem("feedback-toolbar-settings")??"");return{...Tc,...x,annotationColorId:As.find(b=>b.id===x.annotationColorId)?x.annotationColorId:Tc.annotationColorId}}catch{return Tc}}),[Mn,Tf]=u.useState(!0),[Lf,If]=u.useState(!1),e1=()=>{D.current?.classList.add(C.disableTransitions),Tf(x=>!x),requestAnimationFrame(()=>{D.current?.classList.remove(C.disableTransitions)})},Af=!1,hn="off",[_t,Ma]=u.useState(p??null),Of=u.useRef(!1),[nt,xr]=u.useState(f?"connecting":"disconnected"),[je,$a]=u.useState(null),[gn,Mf]=u.useState(!1),[Gr,$f]=u.useState(null),[t1,n1]=u.useState(0),Da=u.useRef(!1),[Df,qo]=u.useState(new Set),[zf,ml]=u.useState(new Set),[es,hl]=u.useState(!1),[r1,Kr]=u.useState(!1),[_n,Ff]=u.useState(!1),Zr=u.useRef(null),Jt=u.useRef(null),ts=u.useRef(null),ns=u.useRef(null),gl=u.useRef(!1),Bf=u.useRef(0),_l=u.useRef(null),Wf=u.useRef(null),za=8,o1=50,Hf=u.useRef(null),Uf=u.useRef(null),rs=u.useRef(null),ve=typeof window<"u"?window.location.pathname:"/";u.useEffect(()=>{if(Jo)Nf(!0);else{Oa(!1),Aa("main");const x=ue(()=>Nf(!1),0);return()=>clearTimeout(x)}},[Jo]);const Vf=y&&v;u.useEffect(()=>{if(Vf){ee(!1),U(!0),qo(new Set);const x=ue(()=>{qo(b=>{const R=new Set(b);return h.forEach(I=>R.add(I.id)),R})},350);return()=>clearTimeout(x)}else if(M){ee(!0);const x=ue(()=>{U(!1),ee(!1)},250);return()=>clearTimeout(x)}},[Vf]),u.useEffect(()=>{Qy(!0),kf(window.scrollY);const x=Ec(ve);g(x.filter(Wn)),Um||(If(!0),Um=!0,ue(()=>If(!1),750));try{const b=localStorage.getItem("feedback-toolbar-theme");b!==null&&Tf(b==="dark")}catch{}try{const b=localStorage.getItem("feedback-toolbar-position");if(b){const R=JSON.parse(b);typeof R.x=="number"&&typeof R.y=="number"&&$a(R)}}catch{}},[ve]),u.useEffect(()=>{Ae&&localStorage.setItem("feedback-toolbar-settings",JSON.stringify(Y))},[Y,Ae]),u.useEffect(()=>{Ae&&localStorage.setItem("feedback-toolbar-theme",Mn?"dark":"light")},[Mn,Ae]);const Yf=u.useRef(!1);u.useEffect(()=>{const x=Yf.current;Yf.current=gn,x&&!gn&&je&&Ae&&localStorage.setItem("feedback-toolbar-position",JSON.stringify(je))},[gn,je,Ae]),u.useEffect(()=>{if(!f||!Ae||Of.current)return;Of.current=!0,xr("connecting"),(async()=>{try{const b=pk(ve),R=p||b;let I=!1;if(R)try{const P=await zm(f,R);Ma(P.id),xr("connected"),Nc(ve,P.id),I=!0;const $=Ec(ve),W=new Set(P.annotations.map(ne=>ne.id)),V=$.filter(ne=>!W.has(ne.id));if(V.length>0){const Z=`${typeof window<"u"?window.location.origin:""}${ve}`,te=(await Promise.allSettled(V.map(J=>Yl(f,P.id,{...J,sessionId:P.id,url:Z})))).map((J,H)=>J.status==="fulfilled"?J.value:(console.warn("[Agentation] Failed to sync annotation:",J.reason),V[H])),ae=[...P.annotations,...te];g(ae.filter(Wn)),gs(ve,ae.filter(Wn),P.id)}else g(P.annotations.filter(Wn)),gs(ve,P.annotations.filter(Wn),P.id)}catch(P){console.warn("[Agentation] Could not join session, creating new:",P),mk(ve)}if(!I){const P=typeof window<"u"?window.location.href:"/",$=await jc(f,P);Ma($.id),xr("connected"),Nc(ve,$.id),m?.($.id);const W=fk(),V=typeof window<"u"?window.location.origin:"",ne=[];for(const[Z,X]of W){const te=X.filter(H=>!H._syncedTo);if(te.length===0)continue;const ae=`${V}${Z}`,J=Z===ve;ne.push((async()=>{try{const H=J?$:await jc(f,ae),$n=(await Promise.allSettled(te.map(Ge=>Yl(f,H.id,{...Ge,sessionId:H.id,url:ae})))).map((Ge,Ke)=>Ge.status==="fulfilled"?Ge.value:(console.warn("[Agentation] Failed to sync annotation:",Ge.reason),te[Ke])).filter(Wn);if(gs(Z,$n,H.id),J){const Ge=new Set(te.map(Ke=>Ke.id));g(Ke=>{const ce=Ke.filter(re=>!Ge.has(re.id));return[...$n,...ce]})}}catch(H){console.warn(`[Agentation] Failed to sync annotations for ${Z}:`,H)}})())}await Promise.allSettled(ne)}}catch(b){xr("disconnected"),console.warn("[Agentation] Failed to initialize session, using local storage:",b)}})()},[f,p,Ae,m,ve]),u.useEffect(()=>{if(!f||!Ae)return;const x=async()=>{try{(await fetch(`${f}/health`)).ok?xr("connected"):xr("disconnected")}catch{xr("disconnected")}};x();const b=nk(x,1e4);return()=>clearInterval(b)},[f,Ae]),u.useEffect(()=>{if(!f||!Ae||!_t)return;const x=new EventSource(`${f}/sessions/${_t}/events`),b=["resolved","dismissed"],R=I=>{try{const P=JSON.parse(I.data);if(b.includes(P.payload?.status)){const $=P.payload.id;ml(W=>new Set(W).add($)),ue(()=>{g(W=>W.filter(V=>V.id!==$)),ml(W=>{const V=new Set(W);return V.delete($),V})},150)}}catch{}};return x.addEventListener("annotation.updated",R),()=>{x.removeEventListener("annotation.updated",R),x.close()}},[f,Ae,_t]),u.useEffect(()=>{if(!f||!Ae)return;const x=Wf.current==="disconnected",b=nt==="connected";Wf.current=nt,x&&b&&(async()=>{try{const I=Ec(ve);if(I.length===0)return;const $=`${typeof window<"u"?window.location.origin:""}${ve}`;let W=_t,V=[];if(W)try{V=(await zm(f,W)).annotations}catch{W=null}W||(W=(await jc(f,$)).id,Ma(W),Nc(ve,W));const ne=new Set(V.map(X=>X.id)),Z=I.filter(X=>!ne.has(X.id));if(Z.length>0){const te=(await Promise.allSettled(Z.map(H=>Yl(f,W,{...H,sessionId:W,url:$})))).map((H,Nt)=>H.status==="fulfilled"?H.value:(console.warn("[Agentation] Failed to sync annotation on reconnect:",H.reason),Z[Nt])),J=[...V,...te].filter(Wn);g(J),gs(ve,J,W)}}catch(I){console.warn("[Agentation] Failed to sync on reconnect:",I)}})()},[nt,f,Ae,_t,ve]);const s1=u.useCallback(()=>{j||(L(!0),Ia(!1),k(!1),ue(()=>{gk(!0),T(!0),L(!1)},400))},[j]);u.useEffect(()=>{if(!n||!Ae||!e||e.length===0||h.length>0)return;const x=[];return x.push(ue(()=>{k(!0)},t-200)),e.forEach((b,R)=>{const I=t+R*300;x.push(ue(()=>{const P=document.querySelector(b.selector);if(!P)return;const $=P.getBoundingClientRect(),{name:W,path:V}=Hi(P),ne={id:`demo-${Date.now()}-${R}`,x:($.left+$.width/2)/window.innerWidth*100,y:$.top+$.height/2+window.scrollY,comment:b.comment,element:W,elementPath:V,timestamp:Date.now(),selectedText:b.selectedText,boundingBox:{x:$.left,y:$.top+window.scrollY,width:$.width,height:$.height},nearbyText:ms(P),cssClasses:hs(P)};g(Z=>[...Z,ne])},I))}),()=>{x.forEach(clearTimeout)}},[n,Ae,e,t]),u.useEffect(()=>{const x=()=>{kf(window.scrollY),Sf(!0),rs.current&&clearTimeout(rs.current),rs.current=ue(()=>{Sf(!1)},150)};return window.addEventListener("scroll",x,{passive:!0}),()=>{window.removeEventListener("scroll",x),rs.current&&clearTimeout(rs.current)}},[]),u.useEffect(()=>{Ae&&h.length>0?_t?gs(ve,h,_t):N0(ve,h):Ae&&h.length===0&&localStorage.removeItem(Ui(ve))},[h,ve,Ae,_t]);const Xf=u.useCallback(()=>{Mt||(ok(),Ef(!0))},[Mt]),yl=u.useCallback(()=>{Mt&&($m(),Ef(!1))},[Mt]),Fa=u.useCallback(()=>{Mt?yl():Xf()},[Mt,Xf,yl]),Qf=u.useCallback(()=>{if(Oe.length===0)return;const x=Oe[0],b=x.element,R=Oe.length>1,I=Oe.map(P=>P.element.getBoundingClientRect());if(R){const P={left:Math.min(...I.map(H=>H.left)),top:Math.min(...I.map(H=>H.top)),right:Math.max(...I.map(H=>H.right)),bottom:Math.max(...I.map(H=>H.bottom))},$=Oe.slice(0,5).map(H=>H.name).join(", "),W=Oe.length>5?` +${Oe.length-5} more`:"",V=I.map(H=>({x:H.left,y:H.top+window.scrollY,width:H.width,height:H.height})),Z=Oe[Oe.length-1].element,X=I[I.length-1],te=X.left+X.width/2,ae=X.top+X.height/2,J=Lc(Z);O({x:te/window.innerWidth*100,y:J?ae:ae+window.scrollY,clientY:ae,element:`${Oe.length} elements: ${$}${W}`,elementPath:"multi-select",boundingBox:{x:P.left,y:P.top+window.scrollY,width:P.right-P.left,height:P.bottom-P.top},isMultiSelect:!0,isFixed:J,elementBoundingBoxes:V,multiSelectElements:Oe.map(H=>H.element),targetElement:Z,fullPath:Vl(b),accessibility:Ul(b),computedStyles:Hl(b),computedStylesObj:Wl(b),nearbyElements:Bl(b),cssClasses:hs(b),nearbyText:ms(b),sourceFile:Ql(b)})}else{const P=I[0],$=Lc(b);O({x:P.left/window.innerWidth*100,y:$?P.top:P.top+window.scrollY,clientY:P.top,element:x.name,elementPath:x.path,boundingBox:{x:P.left,y:$?P.top:P.top+window.scrollY,width:P.width,height:P.height},isFixed:$,fullPath:Vl(b),accessibility:Ul(b),computedStyles:Hl(b),computedStylesObj:Wl(b),nearbyElements:Bl(b),cssClasses:hs(b),nearbyText:ms(b),reactComponents:x.reactComponents,sourceFile:Ql(b)})}Qr([]),fe(null)},[Oe]);u.useEffect(()=>{y||(O(null),Zo(null),mn(null),_r([]),fe(null),Ia(!1),Qr([]),Zt.current={cmd:!1,shift:!1},Mt&&yl())},[y,Mt,yl]),u.useEffect(()=>()=>{$m()},[]),u.useEffect(()=>{if(!y)return;const x=document.createElement("style");return x.id="feedback-cursor-styles",x.textContent=`
2485
+ body * {
2486
+ cursor: crosshair !important;
2487
+ }
2488
+ body p, body span, body h1, body h2, body h3, body h4, body h5, body h6,
2489
+ body li, body td, body th, body label, body blockquote, body figcaption,
2490
+ body caption, body legend, body dt, body dd, body pre, body code,
2491
+ body em, body strong, body b, body i, body u, body s, body a,
2492
+ body time, body address, body cite, body q, body abbr, body dfn,
2493
+ body mark, body small, body sub, body sup, body [contenteditable],
2494
+ body p *, body span *, body h1 *, body h2 *, body h3 *, body h4 *,
2495
+ body h5 *, body h6 *, body li *, body a *, body label *, body pre *,
2496
+ body code *, body blockquote *, body [contenteditable] * {
2497
+ cursor: text !important;
2498
+ }
2499
+ [data-feedback-toolbar], [data-feedback-toolbar] * {
2500
+ cursor: auto !important;
2501
+ }
2502
+ [data-feedback-toolbar] textarea,
2503
+ [data-feedback-toolbar] input[type="text"],
2504
+ [data-feedback-toolbar] input[type="url"] {
2505
+ cursor: text !important;
2506
+ }
2507
+ [data-feedback-toolbar] button,
2508
+ [data-feedback-toolbar] button *,
2509
+ [data-feedback-toolbar] label,
2510
+ [data-feedback-toolbar] label *,
2511
+ [data-feedback-toolbar] a,
2512
+ [data-feedback-toolbar] a *,
2513
+ [data-feedback-toolbar] [role="button"],
2514
+ [data-feedback-toolbar] [role="button"] * {
2515
+ cursor: pointer !important;
2516
+ }
2517
+ [data-annotation-marker], [data-annotation-marker] * {
2518
+ cursor: pointer !important;
2519
+ }
2520
+ `,document.head.appendChild(x),()=>{const b=document.getElementById("feedback-cursor-styles");b&&b.remove()}},[y]),u.useEffect(()=>{if(!y||E)return;const x=b=>{const R=b.composedPath()[0]||b.target;if(at(R,"[data-feedback-toolbar]")){fe(null);return}const I=no(b.clientX,b.clientY);if(!I||at(I,"[data-feedback-toolbar]")){fe(null);return}const{name:P,elementName:$,path:W,reactComponents:V}=Rc(I,hn),ne=I.getBoundingClientRect();fe({element:P,elementName:$,elementPath:W,rect:ne,reactComponents:V}),me({x:b.clientX,y:b.clientY})};return document.addEventListener("mousemove",x),()=>document.removeEventListener("mousemove",x)},[y,E,hn]),u.useEffect(()=>{if(!y)return;const x=b=>{if(gl.current){gl.current=!1;return}const R=b.composedPath()[0]||b.target;if(at(R,"[data-feedback-toolbar]")||at(R,"[data-annotation-popup]")||at(R,"[data-annotation-marker]"))return;if(b.metaKey&&b.shiftKey&&!E&&!oe){b.preventDefault(),b.stopPropagation();const Ve=no(b.clientX,b.clientY);if(!Ve)return;const $n=Ve.getBoundingClientRect(),{name:Ge,path:Ke,reactComponents:ce}=Rc(Ve,hn),re=Oe.findIndex(We=>We.element===Ve);re>=0?Qr(We=>We.filter((Me,Dn)=>Dn!==re)):Qr(We=>[...We,{element:Ve,rect:$n,name:Ge,path:Ke,reactComponents:ce??void 0}]);return}const I=at(R,"button, a, input, select, textarea, [role='button'], [onclick]");if(Y.blockInteractions&&I&&(b.preventDefault(),b.stopPropagation()),E){if(I&&!Y.blockInteractions)return;b.preventDefault(),Hf.current?.shake();return}if(oe){if(I&&!Y.blockInteractions)return;b.preventDefault(),Uf.current?.shake();return}b.preventDefault();const P=no(b.clientX,b.clientY);if(!P)return;const{name:$,path:W,reactComponents:V}=Rc(P,hn),ne=P.getBoundingClientRect(),Z=b.clientX/window.innerWidth*100,X=Lc(P),te=X?b.clientY:b.clientY+window.scrollY,ae=window.getSelection();let J;ae&&ae.toString().trim().length>0&&(J=ae.toString().trim().slice(0,500));const H=Wl(P),Nt=Hl(P);O({x:Z,y:te,clientY:b.clientY,element:$,elementPath:W,selectedText:J,boundingBox:{x:ne.left,y:X?ne.top:ne.top+window.scrollY,width:ne.width,height:ne.height},nearbyText:ms(P),cssClasses:hs(P),isFixed:X,fullPath:Vl(P),accessibility:Ul(P),computedStyles:Nt,computedStylesObj:H,nearbyElements:Bl(P),reactComponents:V??void 0,sourceFile:Ql(P),targetElement:P}),fe(null)};return document.addEventListener("click",x,!0),()=>document.removeEventListener("click",x,!0)},[y,E,oe,Y.blockInteractions,hn,Oe]),u.useEffect(()=>{if(!y)return;const x=I=>{I.key==="Meta"&&(Zt.current.cmd=!0),I.key==="Shift"&&(Zt.current.shift=!0)},b=I=>{const P=Zt.current.cmd&&Zt.current.shift;I.key==="Meta"&&(Zt.current.cmd=!1),I.key==="Shift"&&(Zt.current.shift=!1);const $=Zt.current.cmd&&Zt.current.shift;P&&!$&&Oe.length>0&&Qf()},R=()=>{Zt.current={cmd:!1,shift:!1},Qr([])};return document.addEventListener("keydown",x),document.addEventListener("keyup",b),window.addEventListener("blur",R),()=>{document.removeEventListener("keydown",x),document.removeEventListener("keyup",b),window.removeEventListener("blur",R)}},[y,Oe,Qf]),u.useEffect(()=>{if(!y||E)return;const x=b=>{const R=b.composedPath()[0]||b.target;at(R,"[data-feedback-toolbar]")||at(R,"[data-annotation-marker]")||at(R,"[data-annotation-popup]")||new Set(["P","SPAN","H1","H2","H3","H4","H5","H6","LI","TD","TH","LABEL","BLOCKQUOTE","FIGCAPTION","CAPTION","LEGEND","DT","DD","PRE","CODE","EM","STRONG","B","I","U","S","A","TIME","ADDRESS","CITE","Q","ABBR","DFN","MARK","SMALL","SUB","SUP"]).has(R.tagName)||R.isContentEditable||(Zr.current={x:b.clientX,y:b.clientY})};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[y,E]),u.useEffect(()=>{if(!y||E)return;const x=b=>{if(!Zr.current)return;const R=b.clientX-Zr.current.x,I=b.clientY-Zr.current.y,P=R*R+I*I,$=za*za;if(!_n&&P>=$&&(Jt.current=Zr.current,Ff(!0)),(_n||P>=$)&&Jt.current){if(ts.current){const ce=Math.min(Jt.current.x,b.clientX),re=Math.min(Jt.current.y,b.clientY),We=Math.abs(b.clientX-Jt.current.x),Me=Math.abs(b.clientY-Jt.current.y);ts.current.style.transform=`translate(${ce}px, ${re}px)`,ts.current.style.width=`${We}px`,ts.current.style.height=`${Me}px`}const W=Date.now();if(W-Bf.current<o1)return;Bf.current=W;const V=Jt.current.x,ne=Jt.current.y,Z=Math.min(V,b.clientX),X=Math.min(ne,b.clientY),te=Math.max(V,b.clientX),ae=Math.max(ne,b.clientY),J=(Z+te)/2,H=(X+ae)/2,Nt=new Set,Ve=[[Z,X],[te,X],[Z,ae],[te,ae],[J,H],[J,X],[J,ae],[Z,H],[te,H]];for(const[ce,re]of Ve){const We=document.elementsFromPoint(ce,re);for(const Me of We)Me instanceof HTMLElement&&Nt.add(Me)}const $n=document.querySelectorAll("button, a, input, img, p, h1, h2, h3, h4, h5, h6, li, label, td, th, div, span, section, article, aside, nav");for(const ce of $n)if(ce instanceof HTMLElement){const re=ce.getBoundingClientRect(),We=re.left+re.width/2,Me=re.top+re.height/2,Dn=We>=Z&&We<=te&&Me>=X&&Me<=ae,yn=Math.min(re.right,te)-Math.max(re.left,Z),Zf=Math.min(re.bottom,ae)-Math.max(re.top,X),d1=yn>0&&Zf>0?yn*Zf:0,Jf=re.width*re.height,f1=Jf>0?d1/Jf:0;(Dn||f1>.5)&&Nt.add(ce)}const Ge=[],Ke=new Set(["BUTTON","A","INPUT","IMG","P","H1","H2","H3","H4","H5","H6","LI","LABEL","TD","TH","SECTION","ARTICLE","ASIDE","NAV"]);for(const ce of Nt){if(at(ce,"[data-feedback-toolbar]")||at(ce,"[data-annotation-marker]"))continue;const re=ce.getBoundingClientRect();if(!(re.width>window.innerWidth*.8&&re.height>window.innerHeight*.5)&&!(re.width<10||re.height<10)&&re.left<te&&re.right>Z&&re.top<ae&&re.bottom>X){const We=ce.tagName;let Me=Ke.has(We);if(!Me&&(We==="DIV"||We==="SPAN")){const Dn=ce.textContent&&ce.textContent.trim().length>0,yn=ce.onclick!==null||ce.getAttribute("role")==="button"||ce.getAttribute("role")==="link"||ce.classList.contains("clickable")||ce.hasAttribute("data-clickable");(Dn||yn)&&!ce.querySelector("p, h1, h2, h3, h4, h5, h6, button, a")&&(Me=!0)}if(Me){let Dn=!1;for(const yn of Ge)if(yn.left<=re.left&&yn.right>=re.right&&yn.top<=re.top&&yn.bottom>=re.bottom){Dn=!0;break}Dn||Ge.push(re)}}}if(ns.current){const ce=ns.current;for(;ce.children.length>Ge.length;)ce.removeChild(ce.lastChild);Ge.forEach((re,We)=>{let Me=ce.children[We];Me||(Me=document.createElement("div"),Me.className=C.selectedElementHighlight,ce.appendChild(Me)),Me.style.transform=`translate(${re.left}px, ${re.top}px)`,Me.style.width=`${re.width}px`,Me.style.height=`${re.height}px`})}}};return document.addEventListener("mousemove",x,{passive:!0}),()=>document.removeEventListener("mousemove",x)},[y,E,_n,za]),u.useEffect(()=>{if(!y)return;const x=b=>{const R=_n,I=Jt.current;if(_n&&I){gl.current=!0;const P=Math.min(I.x,b.clientX),$=Math.min(I.y,b.clientY),W=Math.max(I.x,b.clientX),V=Math.max(I.y,b.clientY),ne=[];document.querySelectorAll("button, a, input, img, p, h1, h2, h3, h4, h5, h6, li, label, td, th").forEach(J=>{if(!(J instanceof HTMLElement)||at(J,"[data-feedback-toolbar]")||at(J,"[data-annotation-marker]"))return;const H=J.getBoundingClientRect();H.width>window.innerWidth*.8&&H.height>window.innerHeight*.5||H.width<10||H.height<10||H.left<W&&H.right>P&&H.top<V&&H.bottom>$&&ne.push({element:J,rect:H})});const X=ne.filter(({element:J})=>!ne.some(({element:H})=>H!==J&&J.contains(H))),te=b.clientX/window.innerWidth*100,ae=b.clientY+window.scrollY;if(X.length>0){const J=X.reduce((Ke,{rect:ce})=>({left:Math.min(Ke.left,ce.left),top:Math.min(Ke.top,ce.top),right:Math.max(Ke.right,ce.right),bottom:Math.max(Ke.bottom,ce.bottom)}),{left:1/0,top:1/0,right:-1/0,bottom:-1/0}),H=X.slice(0,5).map(({element:Ke})=>Hi(Ke).name).join(", "),Nt=X.length>5?` +${X.length-5} more`:"",Ve=X[0].element,$n=Wl(Ve),Ge=Hl(Ve);O({x:te,y:ae,clientY:b.clientY,element:`${X.length} elements: ${H}${Nt}`,elementPath:"multi-select",boundingBox:{x:J.left,y:J.top+window.scrollY,width:J.right-J.left,height:J.bottom-J.top},isMultiSelect:!0,fullPath:Vl(Ve),accessibility:Ul(Ve),computedStyles:Ge,computedStylesObj:$n,nearbyElements:Bl(Ve),cssClasses:hs(Ve),nearbyText:ms(Ve),sourceFile:Ql(Ve)})}else{const J=Math.abs(W-P),H=Math.abs(V-$);J>20&&H>20&&O({x:te,y:ae,clientY:b.clientY,element:"Area selection",elementPath:`region at (${Math.round(P)}, ${Math.round($)})`,boundingBox:{x:P,y:$+window.scrollY,width:J,height:H},isMultiSelect:!0})}fe(null)}else R&&(gl.current=!0);Zr.current=null,Jt.current=null,Ff(!1),ns.current&&(ns.current.innerHTML="")};return document.addEventListener("mouseup",x),()=>document.removeEventListener("mouseup",x)},[y,_n]);const qt=u.useCallback(async(x,b,R)=>{const I=Y.webhookUrl||_;if(!I||!Y.webhooksEnabled&&!R)return!1;try{return(await fetch(I,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:x,timestamp:Date.now(),url:typeof window<"u"?window.location.href:void 0,...b})})).ok}catch(P){return console.warn("[Agentation] Webhook failed:",P),!1}},[_,Y.webhookUrl,Y.webhooksEnabled]),l1=u.useCallback(x=>{if(!E)return;const b={id:Date.now().toString(),x:E.x,y:E.y,comment:x,element:E.element,elementPath:E.elementPath,timestamp:Date.now(),selectedText:E.selectedText,boundingBox:E.boundingBox,nearbyText:E.nearbyText,cssClasses:E.cssClasses,isMultiSelect:E.isMultiSelect,isFixed:E.isFixed,fullPath:E.fullPath,accessibility:E.accessibility,computedStyles:E.computedStyles,nearbyElements:E.nearbyElements,reactComponents:E.reactComponents,sourceFile:E.sourceFile,elementBoundingBoxes:E.elementBoundingBoxes,...f&&_t?{sessionId:_t,url:typeof window<"u"?window.location.href:void 0,status:"pending"}:{}};g(R=>[...R,b]),_l.current=b.id,ue(()=>{_l.current=null},300),ue(()=>{qo(R=>new Set(R).add(b.id))},250),r?.(b),qt("annotation.add",{annotation:b}),hl(!0),ue(()=>{O(null),hl(!1)},150),window.getSelection()?.removeAllRanges(),f&&_t&&Yl(f,_t,b).then(R=>{R.id!==b.id&&(g(I=>I.map(P=>P.id===b.id?{...P,id:R.id}:P)),qo(I=>{const P=new Set(I);return P.delete(b.id),P.add(R.id),P}))}).catch(R=>{console.warn("[Agentation] Failed to sync annotation:",R)})},[E,r,qt,f,_t]),i1=u.useCallback(()=>{hl(!0),ue(()=>{O(null),hl(!1)},150)},[]),Ba=u.useCallback(x=>{const b=h.findIndex(I=>I.id===x),R=h[b];oe?.id===x&&(Kr(!0),ue(()=>{Zo(null),mn(null),_r([]),Kr(!1)},150)),xf(x),ml(I=>new Set(I).add(x)),R&&(o?.(R),qt("annotation.delete",{annotation:R})),f&&Fm(f,x).catch(I=>{console.warn("[Agentation] Failed to delete annotation from server:",I)}),ue(()=>{g(I=>I.filter(P=>P.id!==x)),ml(I=>{const P=new Set(I);return P.delete(x),P}),xf(null),b<h.length-1&&(wf(b),ue(()=>wf(null),200))},150)},[h,oe,o,qt,f]),vl=u.useCallback(x=>{if(Zo(x),Go(null),pn(null),Kt([]),x.elementBoundingBoxes?.length){const b=[];for(const R of x.elementBoundingBoxes){const I=R.x+R.width/2,P=R.y+R.height/2-window.scrollY,$=no(I,P);$&&b.push($)}_r(b),mn(null)}else if(x.boundingBox){const b=x.boundingBox,R=b.x+b.width/2,I=x.isFixed?b.y+b.height/2:b.y+b.height/2-window.scrollY,P=no(R,I);if(P){const $=P.getBoundingClientRect(),W=$.width/b.width,V=$.height/b.height;W<.5||V<.5?mn(null):mn(P)}else mn(null);_r([])}else mn(null),_r([])},[]),xl=u.useCallback(x=>{if(!x){Go(null),pn(null),Kt([]);return}if(Go(x.id),x.elementBoundingBoxes?.length){const b=[];for(const R of x.elementBoundingBoxes){const I=R.x+R.width/2,P=R.y+R.height/2-window.scrollY,W=document.elementsFromPoint(I,P).find(V=>!V.closest("[data-annotation-marker]")&&!V.closest("[data-agentation-root]"));W&&b.push(W)}Kt(b),pn(null)}else if(x.boundingBox){const b=x.boundingBox,R=b.x+b.width/2,I=x.isFixed?b.y+b.height/2:b.y+b.height/2-window.scrollY,P=no(R,I);if(P){const $=P.getBoundingClientRect(),W=$.width/b.width,V=$.height/b.height;W<.5||V<.5?pn(null):pn(P)}else pn(null);Kt([])}else pn(null),Kt([])},[]),a1=u.useCallback(x=>{if(!oe)return;const b={...oe,comment:x};g(R=>R.map(I=>I.id===oe.id?b:I)),s?.(b),qt("annotation.update",{annotation:b}),f&&_k(f,oe.id,{comment:x}).catch(R=>{console.warn("[Agentation] Failed to update annotation on server:",R)}),Kr(!0),ue(()=>{Zo(null),mn(null),_r([]),Kr(!1)},150)},[oe,s,qt,f]),c1=u.useCallback(()=>{Kr(!0),ue(()=>{Zo(null),mn(null),_r([]),Kr(!1)},150)},[]),wr=u.useCallback(()=>{const x=h.length;if(x===0)return;l?.(h),qt("annotations.clear",{annotations:h}),f&&Promise.all(h.map(R=>Fm(f,R.id).catch(I=>{console.warn("[Agentation] Failed to delete annotation from server:",I)}))),gt(!0),On(!0);const b=x*30+200;ue(()=>{g([]),qo(new Set),localStorage.removeItem(Ui(ve)),gt(!1)},b),ue(()=>On(!1),1500)},[ve,h,l,qt,f]),Wa=u.useCallback(async()=>{const x=typeof window<"u"?window.location.pathname+window.location.search+window.location.hash:ve,b=Vm(h,x,Y.outputDetail,hn);if(b){if(d)try{await navigator.clipboard.writeText(b)}catch{}i?.(b),Q(!0),ue(()=>Q(!1),2e3),Y.autoClearAfterCopy&&ue(()=>wr(),500)}},[h,ve,Y.outputDetail,hn,Y.autoClearAfterCopy,wr,d,i]),Ha=u.useCallback(async()=>{const x=typeof window<"u"?window.location.pathname+window.location.search+window.location.hash:ve,b=Vm(h,x,Y.outputDetail,hn);if(!b)return;c&&c(b,h),Qt("sending"),await new Promise(I=>ue(I,150));const R=await qt("submit",{output:b,annotations:h},!0);Qt(R?"sent":"failed"),ue(()=>Qt("idle"),2500),R&&Y.autoClearAfterCopy&&ue(()=>wr(),500)},[c,qt,h,ve,Y.outputDetail,hn,Y.autoClearAfterCopy,wr]);u.useEffect(()=>{if(!Gr)return;const x=10,b=I=>{const P=I.clientX-Gr.x,$=I.clientY-Gr.y,W=Math.sqrt(P*P+$*$);if(!gn&&W>x&&Mf(!0),gn||W>x){let V=Gr.toolbarX+P,ne=Gr.toolbarY+$;const Z=20,X=297,te=44,J=X-(y?nt==="connected"?297:257:44),H=Z-J,Nt=window.innerWidth-Z-X;V=Math.max(H,Math.min(Nt,V)),ne=Math.max(Z,Math.min(window.innerHeight-te-Z,ne)),$a({x:V,y:ne})}},R=()=>{gn&&(Da.current=!0),Mf(!1),$f(null)};return document.addEventListener("mousemove",b),document.addEventListener("mouseup",R),()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",R)}},[Gr,gn,y,nt]);const u1=u.useCallback(x=>{if(x.target.closest("button")||x.target.closest(`.${C.settingsPanel}`))return;const b=x.currentTarget.parentElement;if(!b)return;const R=b.getBoundingClientRect(),I=je?.x??R.left,P=je?.y??R.top,$=(Math.random()-.5)*10;n1($),$f({x:x.clientX,y:x.clientY,toolbarX:I,toolbarY:P})},[je]);if(u.useEffect(()=>{if(!je)return;const x=()=>{let P=je.x,$=je.y;const ne=20-(297-(y?nt==="connected"?297:257:44)),Z=window.innerWidth-20-297;P=Math.max(ne,Math.min(Z,P)),$=Math.max(20,Math.min(window.innerHeight-44-20,$)),(P!==je.x||$!==je.y)&&$a({x:P,y:$})};return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[je,y,nt]),u.useEffect(()=>{const x=b=>{const R=b.target,I=R.tagName==="INPUT"||R.tagName==="TEXTAREA"||R.isContentEditable;if(b.key==="Escape"){if(Oe.length>0){Qr([]);return}E||y&&(it(),k(!1))}if((b.metaKey||b.ctrlKey)&&b.shiftKey&&(b.key==="f"||b.key==="F")){b.preventDefault(),it(),k(P=>!P);return}if(!(I||b.metaKey||b.ctrlKey)&&((b.key==="p"||b.key==="P")&&(b.preventDefault(),it(),Fa()),(b.key==="h"||b.key==="H")&&h.length>0&&(b.preventDefault(),it(),S(P=>!P)),(b.key==="c"||b.key==="C")&&h.length>0&&(b.preventDefault(),it(),Wa()),(b.key==="x"||b.key==="X")&&h.length>0&&(b.preventDefault(),it(),wr()),b.key==="s"||b.key==="S")){const P=tn(Y.webhookUrl)||tn(_||"");h.length>0&&P&&he==="idle"&&(b.preventDefault(),it(),Ha())}};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[y,E,h.length,Y.webhookUrl,_,he,Ha,Fa,Wa,wr,Oe]),!Ae||N)return null;const Jr=h.length>0,wl=h.filter(x=>!zf.has(x.id)&&Wn(x)),Gf=h.filter(x=>zf.has(x.id)),Kf=x=>{const $=x.x/100*window.innerWidth,W=typeof x.y=="string"?parseFloat(x.y):x.y,V={};window.innerHeight-W-22-10<80&&(V.top="auto",V.bottom="calc(100% + 10px)");const Z=$-200/2,X=10;if(Z<X){const te=X-Z;V.left=`calc(50% + ${te}px)`}else if(Z+200>window.innerWidth-X){const te=Z+200-(window.innerWidth-X);V.left=`calc(50% - ${te}px)`}return V};return Vo.createPortal(a.jsxs("div",{ref:D,style:{display:"contents"},"data-agentation-theme":Mn?"dark":"light","data-agentation-accent":Y.annotationColorId,children:[a.jsx("div",{className:`${C.toolbar}${w?` ${w}`:""}`,"data-feedback-toolbar":!0,style:je?{left:je.x,top:je.y,right:"auto",bottom:"auto"}:void 0,children:a.jsxs("div",{className:`${C.toolbarContainer} ${y?C.expanded:C.collapsed} ${Lf?C.entrance:""} ${j?C.hiding:""} ${gn?C.dragging:""} ${!Y.webhooksEnabled&&(tn(Y.webhookUrl)||tn(_||""))?C.serverConnected:""}`,onClick:y?void 0:x=>{if(Da.current){Da.current=!1,x.preventDefault();return}k(!0)},onMouseDown:u1,role:y?void 0:"button",tabIndex:y?-1:0,title:y?void 0:"Start feedback mode",style:{...gn&&{transform:`scale(1.05) rotate(${t1}deg)`,cursor:"grabbing"}},children:[a.jsxs("div",{className:`${C.toggleContent} ${y?C.hidden:C.visible}`,children:[a.jsx(W2,{size:24}),Jr&&a.jsx("span",{className:`${C.badge} ${y?C.fadeOut:""} ${Lf?C.entrance:""}`,children:h.length})]}),a.jsxs("div",{className:`${C.controlsContent} ${y?C.visible:C.hidden} ${je&&je.y<100?C.tooltipBelow:""} ${Ky||Jo?C.tooltipsHidden:""} ${Pf?C.tooltipsInSession:""}`,onMouseEnter:Jy,onMouseLeave:qy,children:[a.jsxs("div",{className:`${C.buttonWrapper} ${je&&je.x<120?C.buttonWrapperAlignLeft:""}`,children:[a.jsx("button",{className:C.controlButton,onClick:x=>{x.stopPropagation(),it(),Fa()},"data-active":Mt,children:a.jsx(X2,{size:24,isPaused:Mt})}),a.jsxs("span",{className:C.buttonTooltip,children:[Mt?"Resume animations":"Pause animations",a.jsx("span",{className:C.shortcut,children:"P"})]})]}),a.jsxs("div",{className:C.buttonWrapper,children:[a.jsx("button",{className:C.controlButton,onClick:x=>{x.stopPropagation(),it(),S(!v)},disabled:!Jr,children:a.jsx(Y2,{size:24,isOpen:v})}),a.jsxs("span",{className:C.buttonTooltip,children:[v?"Hide markers":"Show markers",a.jsx("span",{className:C.shortcut,children:"H"})]})]}),a.jsxs("div",{className:C.buttonWrapper,children:[a.jsx("button",{className:`${C.controlButton} ${B?C.statusShowing:""}`,onClick:x=>{x.stopPropagation(),it(),Wa()},disabled:!Jr,"data-active":B,children:a.jsx(U2,{size:24,copied:B})}),a.jsxs("span",{className:C.buttonTooltip,children:["Copy feedback",a.jsx("span",{className:C.shortcut,children:"C"})]})]}),a.jsxs("div",{className:`${C.buttonWrapper} ${C.sendButtonWrapper} ${y&&!Y.webhooksEnabled&&(tn(Y.webhookUrl)||tn(_||""))?C.sendButtonVisible:""}`,children:[a.jsxs("button",{className:`${C.controlButton} ${he==="sent"||he==="failed"?C.statusShowing:""}`,onClick:x=>{x.stopPropagation(),it(),Ha()},disabled:!Jr||!tn(Y.webhookUrl)&&!tn(_||"")||he==="sending","data-no-hover":he==="sent"||he==="failed",tabIndex:tn(Y.webhookUrl)||tn(_||"")?0:-1,children:[a.jsx(V2,{size:24,state:he}),Jr&&he==="idle"&&a.jsx("span",{className:C.buttonBadge,children:h.length})]}),a.jsxs("span",{className:C.buttonTooltip,children:["Send Annotations",a.jsx("span",{className:C.shortcut,children:"S"})]})]}),a.jsxs("div",{className:C.buttonWrapper,children:[a.jsx("button",{className:C.controlButton,onClick:x=>{x.stopPropagation(),it(),wr()},disabled:!Jr,"data-danger":!0,children:a.jsx(G2,{size:24})}),a.jsxs("span",{className:C.buttonTooltip,children:["Clear all",a.jsx("span",{className:C.shortcut,children:"X"})]})]}),a.jsxs("div",{className:C.buttonWrapper,children:[a.jsx("button",{className:C.controlButton,onClick:x=>{x.stopPropagation(),it(),Ia(!Jo)},children:a.jsx(Q2,{size:24})}),f&&nt!=="disconnected"&&a.jsx("span",{className:`${C.mcpIndicator} ${C[nt]} ${Jo?C.hidden:""}`,title:nt==="connected"?"MCP Connected":"MCP Connecting..."}),a.jsx("span",{className:C.buttonTooltip,children:"Settings"})]}),a.jsx("div",{className:C.divider}),a.jsxs("div",{className:`${C.buttonWrapper} ${je&&typeof window<"u"&&je.x>window.innerWidth-120?C.buttonWrapperAlignRight:""}`,children:[a.jsx("button",{className:C.controlButton,onClick:x=>{x.stopPropagation(),it(),k(!1)},children:a.jsx(K2,{size:24})}),a.jsxs("span",{className:C.buttonTooltip,children:["Exit",a.jsx("span",{className:C.shortcut,children:"Esc"})]})]})]}),a.jsx("div",{className:`${C.settingsPanel} ${Gy?C.enter:C.exit}`,onClick:x=>x.stopPropagation(),style:je&&je.y<230?{bottom:"auto",top:"calc(100% + 0.5rem)"}:void 0,children:a.jsxs("div",{className:C.settingsPanelContainer,children:[a.jsxs("div",{className:`${C.settingsPage} ${jf==="automations"?C.slideLeft:""}`,children:[a.jsxs("div",{className:C.settingsHeader,children:[a.jsxs("span",{className:C.settingsBrand,children:[a.jsx("span",{className:C.settingsBrandSlash,children:"/"}),"agentation"]}),a.jsxs("span",{className:C.settingsVersion,children:["v","2.3.3"]}),a.jsx("button",{className:C.themeToggle,onClick:e1,title:Mn?"Switch to light mode":"Switch to dark mode",children:a.jsx("span",{className:C.themeIconWrapper,children:a.jsx("span",{className:C.themeIcon,children:Mn?a.jsx(Z2,{size:20}):a.jsx(J2,{size:20})},Mn?"sun":"moon")})})]}),a.jsxs("div",{className:C.settingsSection,children:[a.jsxs("div",{className:C.settingsRow,children:[a.jsxs("div",{className:C.settingsLabel,children:["Output Detail",a.jsx(to,{content:"Controls how much detail is included in the copied output"})]}),a.jsxs("button",{className:C.cycleButton,onClick:()=>{const b=(vs.findIndex(R=>R.value===Y.outputDetail)+1)%vs.length;vr(R=>({...R,outputDetail:vs[b].value}))},children:[a.jsx("span",{className:C.cycleButtonText,children:vs.find(x=>x.value===Y.outputDetail)?.label},Y.outputDetail),a.jsx("span",{className:C.cycleDots,children:vs.map((x,b)=>a.jsx("span",{className:`${C.cycleDot} ${Y.outputDetail===x.value?C.active:""}`},x.value))})]})]}),a.jsxs("div",{className:`${C.settingsRow} ${C.settingsRowMarginTop} ${C.settingsRowDisabled}`,children:[a.jsxs("div",{className:C.settingsLabel,children:["React Components",a.jsx(to,{content:"Disabled — production builds minify component names, making detection unreliable. Use in development mode."})]}),a.jsxs("label",{className:`${C.toggleSwitch} ${C.disabled}`,children:[a.jsx("input",{type:"checkbox",checked:Af,disabled:!Af,onChange:()=>vr(x=>({...x,reactEnabled:!x.reactEnabled}))}),a.jsx("span",{className:C.toggleSlider})]})]}),a.jsxs("div",{className:`${C.settingsRow} ${C.settingsRowMarginTop}`,children:[a.jsxs("div",{className:C.settingsLabel,children:["Hide Until Restart",a.jsx(to,{content:"Hides the toolbar until you open a new tab"})]}),a.jsxs("label",{className:C.toggleSwitch,children:[a.jsx("input",{type:"checkbox",checked:!1,onChange:x=>{x.target.checked&&s1()}}),a.jsx("span",{className:C.toggleSlider})]})]})]}),a.jsxs("div",{className:C.settingsSection,children:[a.jsx("div",{className:`${C.settingsLabel} ${C.settingsLabelMarker}`,children:"Marker Color"}),a.jsx("div",{className:C.colorOptions,children:As.map(x=>a.jsx("div",{role:"button",onClick:()=>vr(b=>({...b,annotationColorId:x.id})),style:{"--swatch":x.srgb,"--swatch-p3":x.p3},className:`${C.colorOptionRing} ${Y.annotationColorId===x.id?C.selected:""}`,children:a.jsx("div",{className:`${C.colorOption} ${Y.annotationColorId===x.id?C.selected:""}`,title:x.label})},x.id))})]}),a.jsxs("div",{className:C.settingsSection,children:[a.jsxs("label",{className:C.settingsToggle,children:[a.jsx("input",{type:"checkbox",id:"autoClearAfterCopy",checked:Y.autoClearAfterCopy,onChange:x=>vr(b=>({...b,autoClearAfterCopy:x.target.checked}))}),a.jsx("label",{className:`${C.customCheckbox} ${Y.autoClearAfterCopy?C.checked:""}`,htmlFor:"autoClearAfterCopy",children:Y.autoClearAfterCopy&&a.jsx(Om,{size:14})}),a.jsxs("span",{className:C.toggleLabel,children:["Clear on copy/send",a.jsx(to,{content:"Automatically clear annotations after copying"})]})]}),a.jsxs("label",{className:`${C.settingsToggle} ${C.settingsToggleMarginBottom}`,children:[a.jsx("input",{type:"checkbox",id:"blockInteractions",checked:Y.blockInteractions,onChange:x=>vr(b=>({...b,blockInteractions:x.target.checked}))}),a.jsx("label",{className:`${C.customCheckbox} ${Y.blockInteractions?C.checked:""}`,htmlFor:"blockInteractions",children:Y.blockInteractions&&a.jsx(Om,{size:14})}),a.jsx("span",{className:C.toggleLabel,children:"Block page interactions"})]})]}),a.jsx("div",{className:`${C.settingsSection} ${C.settingsSectionExtraPadding}`,children:a.jsxs("button",{className:C.settingsNavLink,onClick:()=>Aa("automations"),children:[a.jsx("span",{children:"Manage MCP & Webhooks"}),a.jsxs("span",{className:C.settingsNavLinkRight,children:[f&&nt!=="disconnected"&&a.jsx("span",{className:`${C.mcpNavIndicator} ${C[nt]}`}),a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M7.5 12.5L12 8L7.5 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})})]}),a.jsxs("div",{className:`${C.settingsPage} ${C.automationsPage} ${jf==="automations"?C.slideIn:""}`,children:[a.jsxs("button",{className:C.settingsBackButton,onClick:()=>Aa("main"),children:[a.jsx(ek,{size:16}),a.jsx("span",{children:"Manage MCP & Webhooks"})]}),a.jsxs("div",{className:C.settingsSection,children:[a.jsxs("div",{className:C.settingsRow,children:[a.jsxs("span",{className:C.automationHeader,children:["MCP Connection",a.jsx(to,{content:"Connect via Model Context Protocol to let AI agents like Claude Code receive annotations in real-time."})]}),f&&a.jsx("div",{className:`${C.mcpStatusDot} ${C[nt]}`,title:nt==="connected"?"Connected":nt==="connecting"?"Connecting...":"Disconnected"})]}),a.jsxs("p",{className:C.automationDescription,style:{paddingBottom:6},children:["MCP connection allows agents to receive and act on annotations."," ",a.jsx("a",{href:"https://agentation.dev/mcp",target:"_blank",rel:"noopener noreferrer",className:C.learnMoreLink,children:"Learn more"})]})]}),a.jsxs("div",{className:`${C.settingsSection} ${C.settingsSectionGrow}`,children:[a.jsxs("div",{className:C.settingsRow,children:[a.jsxs("span",{className:C.automationHeader,children:["Webhooks",a.jsx(to,{content:"Send annotation data to any URL endpoint when annotations change. Useful for custom integrations."})]}),a.jsxs("div",{className:C.autoSendRow,children:[a.jsx("span",{className:`${C.autoSendLabel} ${Y.webhooksEnabled?C.active:""}`,children:"Auto-Send"}),a.jsxs("label",{className:`${C.toggleSwitch} ${Y.webhookUrl?"":C.disabled}`,children:[a.jsx("input",{type:"checkbox",checked:Y.webhooksEnabled,disabled:!Y.webhookUrl,onChange:()=>vr(x=>({...x,webhooksEnabled:!x.webhooksEnabled}))}),a.jsx("span",{className:C.toggleSlider})]})]})]}),a.jsx("p",{className:C.automationDescription,children:"The webhook URL will receive live annotation changes and annotation data."}),a.jsx("textarea",{className:C.webhookUrlInput,placeholder:"Webhook URL",value:Y.webhookUrl,onKeyDown:x=>x.stopPropagation(),onChange:x=>vr(b=>({...b,webhookUrl:x.target.value}))})]})]})]})})]})}),a.jsxs("div",{className:C.markersLayer,"data-feedback-toolbar":!0,children:[M&&wl.filter(x=>!x.isFixed).map((x,b)=>{const R=!z&&gr===x.id,I=vf===x.id,P=(R||I)&&!oe,$=x.isMultiSelect,W=$?"var(--agentation-color-green)":"var(--agentation-color-accent)",V=h.findIndex(te=>te.id===x.id),ne=!Df.has(x.id),Z=z?C.exit:Et?C.clearing:ne?C.enter:"",X=P&&Y.markerClickBehavior==="delete";return a.jsxs("div",{className:`${C.marker} ${$?C.multiSelect:""} ${Z} ${X?C.hovered:""}`,"data-annotation-marker":!0,style:{left:`${x.x}%`,top:x.y,backgroundColor:X?void 0:W,animationDelay:z?`${(wl.length-1-b)*20}ms`:`${b*20}ms`},onMouseEnter:()=>!z&&x.id!==_l.current&&xl(x),onMouseLeave:()=>xl(null),onClick:te=>{te.stopPropagation(),z||(Y.markerClickBehavior==="delete"?Ba(x.id):vl(x))},onContextMenu:te=>{Y.markerClickBehavior==="delete"&&(te.preventDefault(),te.stopPropagation(),z||vl(x))},children:[P?X?a.jsx(bc,{size:$?18:16}):a.jsx(Mm,{size:16}):a.jsx("span",{className:pl!==null&&V>=pl?C.renumber:void 0,children:V+1}),R&&!oe&&a.jsxs("div",{className:`${C.markerTooltip} ${C.enter}`,style:Kf(x),children:[a.jsxs("span",{className:C.markerQuote,children:[x.element,x.selectedText&&` "${x.selectedText.slice(0,30)}${x.selectedText.length>30?"...":""}"`]}),a.jsx("span",{className:C.markerNote,children:x.comment})]})]},x.id)}),M&&!z&&Gf.filter(x=>!x.isFixed).map(x=>{const b=x.isMultiSelect;return a.jsx("div",{className:`${C.marker} ${C.hovered} ${b?C.multiSelect:""} ${C.exit}`,"data-annotation-marker":!0,style:{left:`${x.x}%`,top:x.y},children:a.jsx(bc,{size:b?12:10})},x.id)})]}),a.jsxs("div",{className:C.fixedMarkersLayer,"data-feedback-toolbar":!0,children:[M&&wl.filter(x=>x.isFixed).map((x,b)=>{const R=wl.filter(ae=>ae.isFixed),I=!z&&gr===x.id,P=vf===x.id,$=(I||P)&&!oe,W=x.isMultiSelect,V=W?"var(--agentation-color-green)":"var(--agentation-color-accent)",ne=h.findIndex(ae=>ae.id===x.id),Z=!Df.has(x.id),X=z?C.exit:Et?C.clearing:Z?C.enter:"",te=$&&Y.markerClickBehavior==="delete";return a.jsxs("div",{className:`${C.marker} ${C.fixed} ${W?C.multiSelect:""} ${X} ${te?C.hovered:""}`,"data-annotation-marker":!0,style:{left:`${x.x}%`,top:x.y,backgroundColor:te?void 0:V,animationDelay:z?`${(R.length-1-b)*20}ms`:`${b*20}ms`},onMouseEnter:()=>!z&&x.id!==_l.current&&xl(x),onMouseLeave:()=>xl(null),onClick:ae=>{ae.stopPropagation(),z||(Y.markerClickBehavior==="delete"?Ba(x.id):vl(x))},onContextMenu:ae=>{Y.markerClickBehavior==="delete"&&(ae.preventDefault(),ae.stopPropagation(),z||vl(x))},children:[$?te?a.jsx(bc,{size:W?18:16}):a.jsx(Mm,{size:16}):a.jsx("span",{className:pl!==null&&ne>=pl?C.renumber:void 0,children:ne+1}),I&&!oe&&a.jsxs("div",{className:`${C.markerTooltip} ${C.enter}`,style:Kf(x),children:[a.jsxs("span",{className:C.markerQuote,children:[x.element,x.selectedText&&` "${x.selectedText.slice(0,30)}${x.selectedText.length>30?"...":""}"`]}),a.jsx("span",{className:C.markerNote,children:x.comment})]})]},x.id)}),M&&!z&&Gf.filter(x=>x.isFixed).map(x=>{const b=x.isMultiSelect;return a.jsx("div",{className:`${C.marker} ${C.fixed} ${C.hovered} ${b?C.multiSelect:""} ${C.exit}`,"data-annotation-marker":!0,style:{left:`${x.x}%`,top:x.y},children:a.jsx(F2,{size:b?12:10})},x.id)})]}),y&&a.jsxs("div",{className:C.overlay,"data-feedback-toolbar":!0,style:E||oe?{zIndex:99999}:void 0,children:[G?.rect&&!E&&!Cf&&!_n&&a.jsx("div",{className:`${C.hoverHighlight} ${C.enter}`,style:{left:G.rect.left,top:G.rect.top,width:G.rect.width,height:G.rect.height,borderColor:"color-mix(in srgb, var(--agentation-color-accent) 50%, transparent)",backgroundColor:"color-mix(in srgb, var(--agentation-color-accent) 4%, transparent)"}}),Oe.filter(x=>document.contains(x.element)).map((x,b)=>{const R=x.element.getBoundingClientRect(),I=Oe.length>1;return a.jsx("div",{className:I?C.multiSelectOutline:C.singleSelectOutline,style:{position:"fixed",left:R.left,top:R.top,width:R.width,height:R.height,...I?{}:{borderColor:"color-mix(in srgb, var(--agentation-color-accent) 60%, transparent)",backgroundColor:"color-mix(in srgb, var(--agentation-color-accent) 5%, transparent)"}}},b)}),gr&&!E&&(()=>{const x=h.find(P=>P.id===gr);if(!x?.boundingBox)return null;if(x.elementBoundingBoxes?.length)return fl.length>0?fl.filter(P=>document.contains(P)).map((P,$)=>{const W=P.getBoundingClientRect();return a.jsx("div",{className:`${C.multiSelectOutline} ${C.enter}`,style:{left:W.left,top:W.top,width:W.width,height:W.height}},`hover-outline-live-${$}`)}):x.elementBoundingBoxes.map((P,$)=>a.jsx("div",{className:`${C.multiSelectOutline} ${C.enter}`,style:{left:P.x,top:P.y-yr,width:P.width,height:P.height}},`hover-outline-${$}`));const b=Ko&&document.contains(Ko)?Ko.getBoundingClientRect():null,R=b?{x:b.left,y:b.top,width:b.width,height:b.height}:{x:x.boundingBox.x,y:x.isFixed?x.boundingBox.y:x.boundingBox.y-yr,width:x.boundingBox.width,height:x.boundingBox.height},I=x.isMultiSelect;return a.jsx("div",{className:`${I?C.multiSelectOutline:C.singleSelectOutline} ${C.enter}`,style:{left:R.x,top:R.y,width:R.width,height:R.height,...I?{}:{borderColor:"color-mix(in srgb, var(--agentation-color-accent) 60%, transparent)",backgroundColor:"color-mix(in srgb, var(--agentation-color-accent) 5%, transparent)"}}})})(),G&&!E&&!Cf&&!_n&&a.jsxs("div",{className:`${C.hoverTooltip} ${C.enter}`,style:{left:Math.max(8,Math.min(K.x,window.innerWidth-100)),top:Math.max(K.y-(G.reactComponents?48:32),8)},children:[G.reactComponents&&a.jsx("div",{className:C.hoverReactPath,children:G.reactComponents}),a.jsx("div",{className:C.hoverElementName,children:G.elementName})]}),E&&a.jsxs(a.Fragment,{children:[E.multiSelectElements?.length?E.multiSelectElements.filter(x=>document.contains(x)).map((x,b)=>{const R=x.getBoundingClientRect();return a.jsx("div",{className:`${C.multiSelectOutline} ${es?C.exit:C.enter}`,style:{left:R.left,top:R.top,width:R.width,height:R.height}},`pending-multi-${b}`)}):E.targetElement&&document.contains(E.targetElement)?(()=>{const x=E.targetElement.getBoundingClientRect();return a.jsx("div",{className:`${C.singleSelectOutline} ${es?C.exit:C.enter}`,style:{left:x.left,top:x.top,width:x.width,height:x.height,borderColor:"color-mix(in srgb, var(--agentation-color-accent) 60%, transparent)",backgroundColor:"color-mix(in srgb, var(--agentation-color-accent) 5%, transparent)"}})})():E.boundingBox&&a.jsx("div",{className:`${E.isMultiSelect?C.multiSelectOutline:C.singleSelectOutline} ${es?C.exit:C.enter}`,style:{left:E.boundingBox.x,top:E.boundingBox.y-yr,width:E.boundingBox.width,height:E.boundingBox.height,...E.isMultiSelect?{}:{borderColor:"color-mix(in srgb, var(--agentation-color-accent) 60%, transparent)",backgroundColor:"color-mix(in srgb, var(--agentation-color-accent) 5%, transparent)"}}}),(()=>{const x=E.x,b=E.isFixed?E.y:E.y-yr;return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:`${C.marker} ${C.pending} ${E.isMultiSelect?C.multiSelect:""} ${es?C.exit:C.enter}`,style:{left:`${x}%`,top:b,backgroundColor:E.isMultiSelect?"var(--agentation-color-green)":"var(--agentation-color-accent)"},children:a.jsx(B2,{size:12})}),a.jsx(Dm,{ref:Hf,element:E.element,selectedText:E.selectedText,computedStyles:E.computedStylesObj,placeholder:E.element==="Area selection"?"What should change in this area?":E.isMultiSelect?"Feedback for this group of elements...":"What should change?",onSubmit:l1,onCancel:i1,isExiting:es,lightMode:!Mn,accentColor:E.isMultiSelect?"var(--agentation-color-green)":"var(--agentation-color-accent)",style:{left:Math.max(160,Math.min(window.innerWidth-160,x/100*window.innerWidth)),...b>window.innerHeight-290?{bottom:window.innerHeight-b+20}:{top:b+20}}})]})})()]}),oe&&a.jsxs(a.Fragment,{children:[oe.elementBoundingBoxes?.length?bf.length>0?bf.filter(x=>document.contains(x)).map((x,b)=>{const R=x.getBoundingClientRect();return a.jsx("div",{className:`${C.multiSelectOutline} ${C.enter}`,style:{left:R.left,top:R.top,width:R.width,height:R.height}},`edit-multi-live-${b}`)}):oe.elementBoundingBoxes.map((x,b)=>a.jsx("div",{className:`${C.multiSelectOutline} ${C.enter}`,style:{left:x.x,top:x.y-yr,width:x.width,height:x.height}},`edit-multi-${b}`)):(()=>{const x=La&&document.contains(La)?La.getBoundingClientRect():null,b=x?{x:x.left,y:x.top,width:x.width,height:x.height}:oe.boundingBox?{x:oe.boundingBox.x,y:oe.isFixed?oe.boundingBox.y:oe.boundingBox.y-yr,width:oe.boundingBox.width,height:oe.boundingBox.height}:null;return b?a.jsx("div",{className:`${oe.isMultiSelect?C.multiSelectOutline:C.singleSelectOutline} ${C.enter}`,style:{left:b.x,top:b.y,width:b.width,height:b.height,...oe.isMultiSelect?{}:{borderColor:"color-mix(in srgb, var(--agentation-color-accent) 60%, transparent)",backgroundColor:"color-mix(in srgb, var(--agentation-color-accent) 5%, transparent)"}}}):null})(),a.jsx(Dm,{ref:Uf,element:oe.element,selectedText:oe.selectedText,computedStyles:dk(oe.computedStyles),placeholder:"Edit your feedback...",initialValue:oe.comment,submitLabel:"Save",onSubmit:a1,onCancel:c1,onDelete:()=>Ba(oe.id),isExiting:r1,lightMode:!Mn,accentColor:oe.isMultiSelect?"var(--agentation-color-green)":"var(--agentation-color-accent)",style:(()=>{const x=oe.isFixed?oe.y:oe.y-yr;return{left:Math.max(160,Math.min(window.innerWidth-160,oe.x/100*window.innerWidth)),...x>window.innerHeight-290?{bottom:window.innerHeight-x+20}:{top:x+20}}})()})]}),_n&&a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:ts,className:C.dragSelection}),a.jsx("div",{ref:ns,className:C.highlightsContainer})]})]})]}),document.body)}/**
2521
+ * @license lucide-react v0.460.0 - ISC
2522
+ *
2523
+ * This source code is licensed under the ISC license.
2524
+ * See the LICENSE file in the root directory of this source tree.
2525
+ */const Gk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),R0=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
2526
+ * @license lucide-react v0.460.0 - ISC
2527
+ *
2528
+ * This source code is licensed under the ISC license.
2529
+ * See the LICENSE file in the root directory of this source tree.
2530
+ */var Kk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
2531
+ * @license lucide-react v0.460.0 - ISC
2532
+ *
2533
+ * This source code is licensed under the ISC license.
2534
+ * See the LICENSE file in the root directory of this source tree.
2535
+ */const Zk=u.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:l,...i},c)=>u.createElement("svg",{ref:c,...Kk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:R0("lucide",o),...i},[...l.map(([d,f])=>u.createElement(d,f)),...Array.isArray(s)?s:[s]]));/**
2536
+ * @license lucide-react v0.460.0 - ISC
2537
+ *
2538
+ * This source code is licensed under the ISC license.
2539
+ * See the LICENSE file in the root directory of this source tree.
2540
+ */const Ne=(e,t)=>{const n=u.forwardRef(({className:r,...o},s)=>u.createElement(Zk,{ref:s,iconNode:t,className:R0(`lucide-${Gk(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
2541
+ * @license lucide-react v0.460.0 - ISC
2542
+ *
2543
+ * This source code is licensed under the ISC license.
2544
+ * See the LICENSE file in the root directory of this source tree.
2545
+ */const cf=Ne("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
2546
+ * @license lucide-react v0.460.0 - ISC
2547
+ *
2548
+ * This source code is licensed under the ISC license.
2549
+ * See the LICENSE file in the root directory of this source tree.
2550
+ */const Sa=Ne("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
2551
+ * @license lucide-react v0.460.0 - ISC
2552
+ *
2553
+ * This source code is licensed under the ISC license.
2554
+ * See the LICENSE file in the root directory of this source tree.
2555
+ */const Jk=Ne("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
2556
+ * @license lucide-react v0.460.0 - ISC
2557
+ *
2558
+ * This source code is licensed under the ISC license.
2559
+ * See the LICENSE file in the root directory of this source tree.
2560
+ */const rl=Ne("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
2561
+ * @license lucide-react v0.460.0 - ISC
2562
+ *
2563
+ * This source code is licensed under the ISC license.
2564
+ * See the LICENSE file in the root directory of this source tree.
2565
+ */const qk=Ne("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
2566
+ * @license lucide-react v0.460.0 - ISC
2567
+ *
2568
+ * This source code is licensed under the ISC license.
2569
+ * See the LICENSE file in the root directory of this source tree.
2570
+ */const eC=Ne("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
2571
+ * @license lucide-react v0.460.0 - ISC
2572
+ *
2573
+ * This source code is licensed under the ISC license.
2574
+ * See the LICENSE file in the root directory of this source tree.
2575
+ */const tC=Ne("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
2576
+ * @license lucide-react v0.460.0 - ISC
2577
+ *
2578
+ * This source code is licensed under the ISC license.
2579
+ * See the LICENSE file in the root directory of this source tree.
2580
+ */const nC=Ne("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
2581
+ * @license lucide-react v0.460.0 - ISC
2582
+ *
2583
+ * This source code is licensed under the ISC license.
2584
+ * See the LICENSE file in the root directory of this source tree.
2585
+ */const rC=Ne("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
2586
+ * @license lucide-react v0.460.0 - ISC
2587
+ *
2588
+ * This source code is licensed under the ISC license.
2589
+ * See the LICENSE file in the root directory of this source tree.
2590
+ */const oC=Ne("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
2591
+ * @license lucide-react v0.460.0 - ISC
2592
+ *
2593
+ * This source code is licensed under the ISC license.
2594
+ * See the LICENSE file in the root directory of this source tree.
2595
+ */const sC=Ne("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
2596
+ * @license lucide-react v0.460.0 - ISC
2597
+ *
2598
+ * This source code is licensed under the ISC license.
2599
+ * See the LICENSE file in the root directory of this source tree.
2600
+ */const lC=Ne("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
2601
+ * @license lucide-react v0.460.0 - ISC
2602
+ *
2603
+ * This source code is licensed under the ISC license.
2604
+ * See the LICENSE file in the root directory of this source tree.
2605
+ */const iC=Ne("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
2606
+ * @license lucide-react v0.460.0 - ISC
2607
+ *
2608
+ * This source code is licensed under the ISC license.
2609
+ * See the LICENSE file in the root directory of this source tree.
2610
+ */const aC=Ne("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
2611
+ * @license lucide-react v0.460.0 - ISC
2612
+ *
2613
+ * This source code is licensed under the ISC license.
2614
+ * See the LICENSE file in the root directory of this source tree.
2615
+ */const cC=Ne("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
2616
+ * @license lucide-react v0.460.0 - ISC
2617
+ *
2618
+ * This source code is licensed under the ISC license.
2619
+ * See the LICENSE file in the root directory of this source tree.
2620
+ */const Ic=Ne("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
2621
+ * @license lucide-react v0.460.0 - ISC
2622
+ *
2623
+ * This source code is licensed under the ISC license.
2624
+ * See the LICENSE file in the root directory of this source tree.
2625
+ */const uC=Ne("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
2626
+ * @license lucide-react v0.460.0 - ISC
2627
+ *
2628
+ * This source code is licensed under the ISC license.
2629
+ * See the LICENSE file in the root directory of this source tree.
2630
+ */const dC=Ne("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/**
2631
+ * @license lucide-react v0.460.0 - ISC
2632
+ *
2633
+ * This source code is licensed under the ISC license.
2634
+ * See the LICENSE file in the root directory of this source tree.
2635
+ */const Br=Ne("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
2636
+ * @license lucide-react v0.460.0 - ISC
2637
+ *
2638
+ * This source code is licensed under the ISC license.
2639
+ * See the LICENSE file in the root directory of this source tree.
2640
+ */const fC=Ne("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
2641
+ * @license lucide-react v0.460.0 - ISC
2642
+ *
2643
+ * This source code is licensed under the ISC license.
2644
+ * See the LICENSE file in the root directory of this source tree.
2645
+ */const pC=Ne("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
2646
+ * @license lucide-react v0.460.0 - ISC
2647
+ *
2648
+ * This source code is licensed under the ISC license.
2649
+ * See the LICENSE file in the root directory of this source tree.
2650
+ */const mC=Ne("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
2651
+ * @license lucide-react v0.460.0 - ISC
2652
+ *
2653
+ * This source code is licensed under the ISC license.
2654
+ * See the LICENSE file in the root directory of this source tree.
2655
+ */const hC=Ne("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
2656
+ * @license lucide-react v0.460.0 - ISC
2657
+ *
2658
+ * This source code is licensed under the ISC license.
2659
+ * See the LICENSE file in the root directory of this source tree.
2660
+ */const gC=Ne("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Ym=e=>{let t;const n=new Set,r=(d,f)=>{const p=typeof d=="function"?d(t):d;if(!Object.is(p,t)){const m=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(_=>_(t,m))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>c,subscribe:d=>(n.add(d),()=>n.delete(d))},c=t=e(r,o,i);return i},_C=e=>e?Ym(e):Ym,yC=e=>e;function vC(e,t=yC){const n=ct.useSyncExternalStore(e.subscribe,ct.useCallback(()=>t(e.getState()),[e,t]),ct.useCallback(()=>t(e.getInitialState()),[e,t]));return ct.useDebugValue(n),n}const Xm=e=>{const t=_C(e),n=r=>vC(t,r);return Object.assign(n,t),n},xC=e=>e?Xm(e):Xm,Hn="/api";async function xs(e,t){const n=new URLSearchParams;if(t)for(const[l,i]of Object.entries(t))i!=null&&n.set(l,String(i));const r=n.toString(),o=r?`${e}?${r}`:e,s=await fetch(o);if(!s.ok)throw new Error(`API error: ${s.status}`);return s.json()}async function Ac(e,t){const n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:t!=null?JSON.stringify(t):void 0});if(!n.ok)throw new Error(`API error: ${n.status}`);return n.json()}const jt={config:()=>xs(`${Hn}/config`),health:()=>xs(`${Hn}/health`),workflows:()=>xs(`${Hn}/workflows`),runs:(e,t)=>xs(`${Hn}/workflows/${e}/runs`,t),run:e=>xs(`${Hn}/runs/${e}`),cancel:e=>Ac(`${Hn}/runs/${e}/cancel`),retry:e=>Ac(`${Hn}/runs/${e}/retry`),trigger:(e,t)=>Ac(`${Hn}/workflows/${e}/trigger`,t)},wC=["workflow:start","workflow:complete","workflow:fail","step:start","step:complete","step:fail","step:retry"];function bC(e){const t=new EventSource("/api/events");for(const n of wC)t.addEventListener(n,r=>{try{const o=JSON.parse(r.data);e({type:n,data:o,receivedAt:Date.now()})}catch{}});return t.onerror=()=>{},()=>t.close()}const kC=100,Cn=xC((e,t)=>({health:null,workflows:[],currentRuns:null,currentWorkflowId:null,currentRun:null,liveEvents:[],readOnly:!1,sidebarCollapsed:!1,toggleSidebar:()=>e(n=>({sidebarCollapsed:!n.sidebarCollapsed})),fetchConfig:async()=>{try{const n=await jt.config();e({readOnly:n.readOnly})}catch{}},fetchHealth:async()=>{try{const n=await jt.health();e({health:n})}catch{e({health:null})}},fetchWorkflows:async()=>{try{const n=await jt.workflows();e({workflows:n})}catch{e({workflows:[]})}},fetchRuns:async(n,r)=>{try{const o=await jt.runs(n,r);e({currentRuns:o,currentWorkflowId:n})}catch{e({currentRuns:{runs:[],nextCursor:null}})}},loadMoreRuns:async n=>{const{currentRuns:r}=t();if(r?.nextCursor)try{const o=await jt.runs(n,{cursor:r.nextCursor});e({currentRuns:{runs:[...r.runs,...o.runs],nextCursor:o.nextCursor}})}catch{}},fetchRun:async n=>{try{const r=await jt.run(n);e({currentRun:r})}catch{e({currentRun:null})}},pushEvent:n=>{e(r=>{const o=[n,...r.liveEvents].slice(0,kC);let s=r.currentRun;return s&&n.data.runId===s.id&&jt.run(s.id).then(l=>{l&&e({currentRun:l})}),{liveEvents:o}})},connectSSE:()=>bC(r=>{t().pushEvent(r)})})),CC=240,SC=48;function EC(){const e=ga(),t=Gd(),{health:n,workflows:r,sidebarCollapsed:o,toggleSidebar:s}=Cn(),{theme:l,setTheme:i}=O2(),[c,d]=u.useState(!0),f=n?.connected??!1,p=t.pathname==="/",m=t.pathname.match(/^\/workflows\/([^/]+)/)?.[1],_=()=>{const y=["light","dark","system"],k=y.indexOf(l);i(y[(k+1)%y.length])},w=l==="dark"?iC:l==="light"?pC:lC;return a.jsxs("aside",{className:"flex flex-col h-full border-r border-sidebar-border bg-sidebar-bg shrink-0 transition-all duration-200 ease-in-out overflow-hidden select-none",style:{width:o?SC:CC},children:[a.jsxs("div",{className:"flex items-center h-11 px-3 border-b border-sidebar-border shrink-0",children:[!o&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"h-5 w-5 rounded bg-primary flex items-center justify-center",children:a.jsx("span",{className:"text-[10px] font-bold text-primary-foreground",children:"C"})}),a.jsx("span",{className:"text-sm font-semibold tracking-tight",children:"Chisel Studio"})]}),o&&a.jsx("div",{className:"h-5 w-5 rounded bg-primary flex items-center justify-center mx-auto",children:a.jsx("span",{className:"text-[10px] font-bold text-primary-foreground",children:"C"})})]}),a.jsxs("nav",{className:"flex-1 overflow-y-auto overflow-x-hidden px-2 py-2 space-y-0.5",children:[a.jsxs("button",{className:ie("flex items-center gap-2 px-2 py-1.5 rounded-md w-full text-[13px] transition-colors duration-100",p?"bg-accent text-foreground font-medium":"text-muted-foreground hover:bg-sidebar-hover hover:text-foreground"),onClick:()=>e("/"),children:[a.jsx(uC,{className:"h-4 w-4 shrink-0"}),!o&&a.jsx("span",{children:"Activity"})]}),a.jsxs("div",{children:[a.jsxs("button",{className:ie("flex items-center gap-2 px-2 py-1.5 rounded-md w-full text-[13px] transition-colors duration-100","text-muted-foreground hover:bg-sidebar-hover hover:text-foreground"),onClick:()=>{o&&s(),d(!c)},children:[a.jsx(rC,{className:"h-4 w-4 shrink-0"}),!o&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"flex-1 text-left",children:"Workflows"}),a.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:r.length}),c?a.jsx(cf,{className:"h-3 w-3 text-muted-foreground"}):a.jsx(Sa,{className:"h-3 w-3 text-muted-foreground"})]})]}),c&&!o&&r.length>0&&a.jsx("div",{className:"mt-0.5 space-y-px",children:r.map(y=>{const k=encodeURIComponent(y.id),h=m===k||m===y.id;return a.jsx("button",{className:ie("flex items-center gap-2 pl-8 pr-2 py-1 rounded-md w-full text-left text-[13px] font-mono truncate transition-colors duration-100",h?"bg-accent text-foreground font-medium":"text-muted-foreground hover:text-foreground hover:bg-sidebar-hover"),onClick:()=>e(`/workflows/${k}`),children:a.jsx("span",{className:"truncate",children:y.id})},y.id)})})]})]}),a.jsxs("div",{className:"border-t border-sidebar-border px-2 py-2 space-y-1 shrink-0",children:[a.jsxs("div",{className:ie("flex items-center gap-2 rounded-md px-2 py-1.5",o&&"justify-center px-0"),children:[a.jsx("div",{className:ie("h-2 w-2 rounded-full shrink-0",f?"bg-emerald-500":"bg-red-500")}),!o&&a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("span",{className:ie("text-xs block",f?"text-muted-foreground":"text-red-500 font-medium"),children:f?"Connected":"Disconnected"}),n&&f&&a.jsxs("span",{className:"text-[11px] text-muted-foreground",children:[n.workers," worker",n.workers!==1?"s":""," · ",n.queues.length," ","queue",n.queues.length!==1?"s":""]})]})]}),a.jsxs("div",{className:"flex items-center justify-between",children:[!o&&a.jsxs("button",{className:"flex items-center gap-1.5 px-2 py-1 rounded-md text-muted-foreground hover:text-foreground hover:bg-sidebar-hover transition-colors duration-100 text-xs",onClick:_,title:`Theme: ${l}`,children:[a.jsx(w,{className:"h-3.5 w-3.5"}),a.jsx("span",{className:"capitalize",children:l})]}),a.jsx("button",{className:ie("flex items-center p-1.5 rounded-md text-muted-foreground hover:text-foreground hover:bg-sidebar-hover transition-colors duration-100",o&&"mx-auto"),onClick:s,children:o?a.jsx(cC,{className:"h-4 w-4"}):a.jsx(aC,{className:"h-4 w-4"})})]})]})]})}function NC(){const e=Cn(t=>t.readOnly);return a.jsxs("div",{className:"flex h-screen overflow-hidden bg-background text-foreground",children:[a.jsx(EC,{}),a.jsxs("main",{className:"flex-1 overflow-auto flex flex-col",children:[e&&a.jsxs("div",{className:"flex items-center gap-2 px-4 py-1.5 bg-amber-50 dark:bg-amber-500/10 border-b border-amber-200 dark:border-amber-500/20 text-amber-700 dark:text-amber-400 text-xs shrink-0",children:[a.jsx(tC,{className:"h-3.5 w-3.5"}),a.jsx("span",{children:"This studio is in read-only mode"})]}),a.jsx("div",{className:"flex-1 overflow-auto",children:a.jsx(Iw,{})})]}),a.jsx(Qk,{})]})}const Qm={queued:{dot:"bg-gray-400",text:"text-muted-foreground"},running:{dot:"bg-blue-500 animate-pulse",text:"text-blue-600 dark:text-blue-400"},completed:{dot:"bg-emerald-500",text:"text-emerald-600 dark:text-emerald-400"},failed:{dot:"bg-red-500",text:"text-red-600 dark:text-red-400"},cancelled:{dot:"bg-yellow-500",text:"text-yellow-600 dark:text-yellow-400"},retrying:{dot:"bg-orange-500 animate-pulse",text:"text-orange-600 dark:text-orange-400"},stalled:{dot:"bg-purple-500",text:"text-purple-600 dark:text-purple-400"},pending:{dot:"bg-gray-400",text:"text-muted-foreground"},skipped:{dot:"bg-gray-300 dark:bg-gray-600",text:"text-muted-foreground"}};function Po({status:e,className:t}){const n=Qm[e]||Qm.queued;return a.jsxs("span",{className:ie("inline-flex items-center gap-1.5 text-[13px] font-medium",n.text,t),children:[a.jsx("span",{className:ie("h-2 w-2 rounded-full shrink-0",n.dot)}),a.jsx("span",{className:"capitalize",children:e})]})}function Qu({data:e,collapsed:t=!0,className:n}){const[r,o]=u.useState(!t);if(e==null)return a.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:"null"});const s=typeof e=="string"?e:JSON.stringify(e,null,2);if(!(typeof e=="object"))return a.jsx("span",{className:ie("font-mono text-xs text-emerald-600 dark:text-emerald-400",n),children:s});const i=JSON.stringify(e).length>60?JSON.stringify(e).slice(0,60)+"...":JSON.stringify(e);return a.jsxs("div",{className:ie("font-mono text-xs",n),children:[a.jsxs("button",{onClick:()=>o(!r),className:"flex items-center gap-1 text-muted-foreground hover:text-foreground transition-colors duration-100",children:[r?a.jsx(cf,{className:"h-3 w-3"}):a.jsx(Sa,{className:"h-3 w-3"}),!r&&a.jsx("span",{className:"text-muted-foreground",children:i})]}),r&&a.jsx("pre",{className:"mt-1.5 rounded-md bg-accent p-2.5 text-foreground whitespace-pre-wrap break-all leading-relaxed text-xs",children:s})]})}function Gu({timestamp:e,className:t}){const[,n]=u.useState(0);if(u.useEffect(()=>{if(!e)return;const o=setInterval(()=>n(s=>s+1),1e3);return()=>clearInterval(o)},[e]),!e)return a.jsx("span",{className:t,children:"—"});const r=new Date(e).toLocaleString();return a.jsxs(zr,{children:[a.jsx(Fr,{asChild:!0,children:a.jsx("span",{className:t,children:T2(e)})}),a.jsx(dr,{children:a.jsx("p",{className:"font-mono text-xs",children:r})})]})}var jC=Symbol.for("react.lazy"),Vi=Ki[" use ".trim().toString()];function PC(e){return typeof e=="object"&&e!==null&&"then"in e}function T0(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===jC&&"_payload"in e&&PC(e._payload)}function RC(e){const t=LC(e),n=u.forwardRef((r,o)=>{let{children:s,...l}=r;T0(s)&&typeof Vi=="function"&&(s=Vi(s._payload));const i=u.Children.toArray(s),c=i.find(AC);if(c){const d=c.props.children,f=i.map(p=>p===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:p);return a.jsx(t,{...l,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return a.jsx(t,{...l,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var TC=RC("Slot");function LC(e){const t=u.forwardRef((n,r)=>{let{children:o,...s}=n;if(T0(o)&&typeof Vi=="function"&&(o=Vi(o._payload)),u.isValidElement(o)){const l=MC(o),i=OC(s,o.props);return o.type!==u.Fragment&&(i.ref=r?cl(r,l):l),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var IC=Symbol("radix.slottable");function AC(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===IC}function OC(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function MC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Gm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Km=g0,$C=(e,t)=>n=>{var r;if(t?.variants==null)return Km(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(d=>{const f=n?.[d],p=s?.[d];if(f===null)return null;const m=Gm(f)||Gm(p);return o[d][m]}),i=n&&Object.entries(n).reduce((d,f)=>{let[p,m]=f;return m===void 0||(d[p]=m),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:p,className:m,..._}=f;return Object.entries(_).every(w=>{let[y,k]=w;return Array.isArray(k)?k.includes({...s,...i}[y]):{...s,...i}[y]===k})?[...d,p,m]:d},[]);return Km(e,l,c,n?.class,n?.className)},DC=$C("inline-flex items-center justify-center whitespace-nowrap rounded-md text-[13px] font-medium ring-offset-background transition-colors duration-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-3 py-1.5",sm:"h-7 rounded-md px-2.5 text-xs",lg:"h-9 rounded-md px-5",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),et=u.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const l=r?TC:"button";return a.jsx(l,{className:ie(DC({variant:t,size:n,className:e})),ref:s,...o})});et.displayName="Button";var zC=u.createContext(void 0);function uf(e){const t=u.useContext(zC);return e||t||"ltr"}function FC(e,[t,n]){return Math.min(n,Math.max(t,e))}function BC(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var df="ScrollArea",[L0]=Yr(df),[WC,Ot]=L0(df),I0=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:s=600,...l}=e,[i,c]=u.useState(null),[d,f]=u.useState(null),[p,m]=u.useState(null),[_,w]=u.useState(null),[y,k]=u.useState(null),[h,g]=u.useState(0),[v,S]=u.useState(0),[N,T]=u.useState(!1),[j,L]=u.useState(!1),D=De(t,U=>c(U)),M=uf(o);return a.jsx(WC,{scope:n,type:r,dir:M,scrollHideDelay:s,scrollArea:i,viewport:d,onViewportChange:f,content:p,onContentChange:m,scrollbarX:_,onScrollbarXChange:w,scrollbarXEnabled:N,onScrollbarXEnabledChange:T,scrollbarY:y,onScrollbarYChange:k,scrollbarYEnabled:j,onScrollbarYEnabledChange:L,onCornerWidthChange:g,onCornerHeightChange:S,children:a.jsx(Se.div,{dir:M,...l,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})})});I0.displayName=df;var A0="ScrollAreaViewport",O0=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...s}=e,l=Ot(A0,n),i=u.useRef(null),c=De(t,i,l.onViewportChange);return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),a.jsx(Se.div,{"data-radix-scroll-area-viewport":"",...s,ref:c,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:a.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});O0.displayName=A0;var fn="ScrollAreaScrollbar",ff=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ot(fn,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:l}=o,i=e.orientation==="horizontal";return u.useEffect(()=>(i?s(!0):l(!0),()=>{i?s(!1):l(!1)}),[i,s,l]),o.type==="hover"?a.jsx(HC,{...r,ref:t,forceMount:n}):o.type==="scroll"?a.jsx(UC,{...r,ref:t,forceMount:n}):o.type==="auto"?a.jsx(M0,{...r,ref:t,forceMount:n}):o.type==="always"?a.jsx(pf,{...r,ref:t}):null});ff.displayName=fn;var HC=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ot(fn,e.__scopeScrollArea),[s,l]=u.useState(!1);return u.useEffect(()=>{const i=o.scrollArea;let c=0;if(i){const d=()=>{window.clearTimeout(c),l(!0)},f=()=>{c=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",d),i.addEventListener("pointerleave",f),()=>{window.clearTimeout(c),i.removeEventListener("pointerenter",d),i.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),a.jsx(dn,{present:n||s,children:a.jsx(M0,{"data-state":s?"visible":"hidden",...r,ref:t})})}),UC=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ot(fn,e.__scopeScrollArea),s=e.orientation==="horizontal",l=Na(()=>c("SCROLL_END"),100),[i,c]=BC("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return u.useEffect(()=>{if(i==="idle"){const d=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(d)}},[i,o.scrollHideDelay,c]),u.useEffect(()=>{const d=o.viewport,f=s?"scrollLeft":"scrollTop";if(d){let p=d[f];const m=()=>{const _=d[f];p!==_&&(c("SCROLL"),l()),p=_};return d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}},[o.viewport,s,c,l]),a.jsx(dn,{present:n||i!=="hidden",children:a.jsx(pf,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ge(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:ge(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),M0=u.forwardRef((e,t)=>{const n=Ot(fn,e.__scopeScrollArea),{forceMount:r,...o}=e,[s,l]=u.useState(!1),i=e.orientation==="horizontal",c=Na(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;l(i?d:f)}},10);return Bo(n.viewport,c),Bo(n.content,c),a.jsx(dn,{present:r||s,children:a.jsx(pf,{"data-state":s?"visible":"hidden",...o,ref:t})})}),pf=u.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Ot(fn,e.__scopeScrollArea),s=u.useRef(null),l=u.useRef(0),[i,c]=u.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=B0(i.viewport,i.content),f={...r,sizes:i,onSizesChange:c,hasThumb:d>0&&d<1,onThumbChange:m=>s.current=m,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:m=>l.current=m};function p(m,_){return KC(m,l.current,i,_)}return n==="horizontal"?a.jsx(VC,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const m=o.viewport.scrollLeft,_=Zm(m,i,o.dir);s.current.style.transform=`translate3d(${_}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=p(m,o.dir))}}):n==="vertical"?a.jsx(YC,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const m=o.viewport.scrollTop,_=Zm(m,i);s.current.style.transform=`translate3d(0, ${_}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=p(m))}}):null}),VC=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=Ot(fn,e.__scopeScrollArea),[l,i]=u.useState(),c=u.useRef(null),d=De(t,c,s.onScrollbarXChange);return u.useEffect(()=>{c.current&&i(getComputedStyle(c.current))},[c]),a.jsx(D0,{"data-orientation":"horizontal",...o,ref:d,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ea(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,p)=>{if(s.viewport){const m=s.viewport.scrollLeft+f.deltaX;e.onWheelScroll(m),H0(m,p)&&f.preventDefault()}},onResize:()=>{c.current&&s.viewport&&l&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Xi(l.paddingLeft),paddingEnd:Xi(l.paddingRight)}})}})}),YC=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=Ot(fn,e.__scopeScrollArea),[l,i]=u.useState(),c=u.useRef(null),d=De(t,c,s.onScrollbarYChange);return u.useEffect(()=>{c.current&&i(getComputedStyle(c.current))},[c]),a.jsx(D0,{"data-orientation":"vertical",...o,ref:d,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ea(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,p)=>{if(s.viewport){const m=s.viewport.scrollTop+f.deltaY;e.onWheelScroll(m),H0(m,p)&&f.preventDefault()}},onResize:()=>{c.current&&s.viewport&&l&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Xi(l.paddingTop),paddingEnd:Xi(l.paddingBottom)}})}})}),[XC,$0]=L0(fn),D0=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:s,onThumbPointerUp:l,onThumbPointerDown:i,onThumbPositionChange:c,onDragScroll:d,onWheelScroll:f,onResize:p,...m}=e,_=Ot(fn,n),[w,y]=u.useState(null),k=De(t,D=>y(D)),h=u.useRef(null),g=u.useRef(""),v=_.viewport,S=r.content-r.viewport,N=dt(f),T=dt(c),j=Na(p,10);function L(D){if(h.current){const M=D.clientX-h.current.left,U=D.clientY-h.current.top;d({x:M,y:U})}}return u.useEffect(()=>{const D=M=>{const U=M.target;w?.contains(U)&&N(M,S)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[v,w,S,N]),u.useEffect(T,[r,T]),Bo(w,j),Bo(_.content,j),a.jsx(XC,{scope:n,scrollbar:w,hasThumb:o,onThumbChange:dt(s),onThumbPointerUp:dt(l),onThumbPositionChange:T,onThumbPointerDown:dt(i),children:a.jsx(Se.div,{...m,ref:k,style:{position:"absolute",...m.style},onPointerDown:ge(e.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),h.current=w.getBoundingClientRect(),g.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",_.viewport&&(_.viewport.style.scrollBehavior="auto"),L(D))}),onPointerMove:ge(e.onPointerMove,L),onPointerUp:ge(e.onPointerUp,D=>{const M=D.target;M.hasPointerCapture(D.pointerId)&&M.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=g.current,_.viewport&&(_.viewport.style.scrollBehavior=""),h.current=null})})})}),Yi="ScrollAreaThumb",z0=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$0(Yi,e.__scopeScrollArea);return a.jsx(dn,{present:n||o.hasThumb,children:a.jsx(QC,{ref:t,...r})})}),QC=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,s=Ot(Yi,n),l=$0(Yi,n),{onThumbPositionChange:i}=l,c=De(t,p=>l.onThumbChange(p)),d=u.useRef(void 0),f=Na(()=>{d.current&&(d.current(),d.current=void 0)},100);return u.useEffect(()=>{const p=s.viewport;if(p){const m=()=>{if(f(),!d.current){const _=ZC(p,i);d.current=_,i()}};return i(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[s.viewport,f,i]),a.jsx(Se.div,{"data-state":l.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ge(e.onPointerDownCapture,p=>{const _=p.target.getBoundingClientRect(),w=p.clientX-_.left,y=p.clientY-_.top;l.onThumbPointerDown({x:w,y})}),onPointerUp:ge(e.onPointerUp,l.onThumbPointerUp)})});z0.displayName=Yi;var mf="ScrollAreaCorner",F0=u.forwardRef((e,t)=>{const n=Ot(mf,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?a.jsx(GC,{...e,ref:t}):null});F0.displayName=mf;var GC=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Ot(mf,n),[s,l]=u.useState(0),[i,c]=u.useState(0),d=!!(s&&i);return Bo(o.scrollbarX,()=>{const f=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(f),c(f)}),Bo(o.scrollbarY,()=>{const f=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(f),l(f)}),d?a.jsx(Se.div,{...r,ref:t,style:{width:s,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Xi(e){return e?parseInt(e,10):0}function B0(e,t){const n=e/t;return isNaN(n)?0:n}function Ea(e){const t=B0(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function KC(e,t,n,r="ltr"){const o=Ea(n),s=o/2,l=t||s,i=o-l,c=n.scrollbar.paddingStart+l,d=n.scrollbar.size-n.scrollbar.paddingEnd-i,f=n.content-n.viewport,p=r==="ltr"?[0,f]:[f*-1,0];return W0([c,d],p)(e)}function Zm(e,t,n="ltr"){const r=Ea(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,l=t.content-t.viewport,i=s-r,c=n==="ltr"?[0,l]:[l*-1,0],d=FC(e,c);return W0([0,l],[0,i])(d)}function W0(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function H0(e,t){return e>0&&e<t}var ZC=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},l=n.left!==s.left,i=n.top!==s.top;(l||i)&&t(),n=s,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Na(e,t){const n=dt(e),r=u.useRef(0);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),u.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Bo(e,t){const n=dt(t);Rn(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var U0=I0,JC=O0,qC=F0;const ja=u.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(U0,{ref:r,className:ie("relative overflow-hidden",e),...n,children:[a.jsx(JC,{className:"h-full w-full rounded-[inherit]",children:t}),a.jsx(V0,{}),a.jsx(qC,{})]}));ja.displayName=U0.displayName;const V0=u.forwardRef(({className:e,orientation:t="vertical",...n},r)=>a.jsx(ff,{ref:r,orientation:t,className:ie("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:a.jsx(z0,{className:"relative flex-1 rounded-full bg-border"})}));V0.displayName=ff.displayName;function Jm(e){const t=eS(e),n=u.forwardRef((r,o)=>{const{children:s,...l}=r,i=u.Children.toArray(s),c=i.find(nS);if(c){const d=c.props.children,f=i.map(p=>p===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:p);return a.jsx(t,{...l,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return a.jsx(t,{...l,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function eS(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const l=oS(o),i=rS(s,o.props);return o.type!==u.Fragment&&(i.ref=r?cl(r,l):l),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tS=Symbol("radix.slottable");function nS(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tS}function rS(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function oS(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function sS(e){const t=e+"CollectionProvider",[n,r]=Yr(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=y=>{const{scope:k,children:h}=y,g=ct.useRef(null),v=ct.useRef(new Map).current;return a.jsx(o,{scope:k,itemMap:v,collectionRef:g,children:h})};l.displayName=t;const i=e+"CollectionSlot",c=Jm(i),d=ct.forwardRef((y,k)=>{const{scope:h,children:g}=y,v=s(i,h),S=De(k,v.collectionRef);return a.jsx(c,{ref:S,children:g})});d.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=Jm(f),_=ct.forwardRef((y,k)=>{const{scope:h,children:g,...v}=y,S=ct.useRef(null),N=De(k,S),T=s(f,h);return ct.useEffect(()=>(T.itemMap.set(S,{ref:S,...v}),()=>void T.itemMap.delete(S))),a.jsx(m,{[p]:"",ref:N,children:g})});_.displayName=f;function w(y){const k=s(e+"CollectionConsumer",y);return ct.useCallback(()=>{const g=k.collectionRef.current;if(!g)return[];const v=Array.from(g.querySelectorAll(`[${p}]`));return Array.from(k.itemMap.values()).sort((T,j)=>v.indexOf(T.ref.current)-v.indexOf(j.ref.current))},[k.collectionRef,k.itemMap])}return[{Provider:l,Slot:d,ItemSlot:_},w,r]}var Oc="rovingFocusGroup.onEntryFocus",lS={bubbles:!1,cancelable:!0},dl="RovingFocusGroup",[Ku,Y0,iS]=sS(dl),[aS,X0]=Yr(dl,[iS]),[cS,uS]=aS(dl),Q0=u.forwardRef((e,t)=>a.jsx(Ku.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Ku.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(dS,{...e,ref:t})})}));Q0.displayName=dl;var dS=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,m=u.useRef(null),_=De(t,m),w=uf(s),[y,k]=wa({prop:l,defaultProp:i??null,onChange:c,caller:dl}),[h,g]=u.useState(!1),v=dt(d),S=Y0(n),N=u.useRef(!1),[T,j]=u.useState(0);return u.useEffect(()=>{const L=m.current;if(L)return L.addEventListener(Oc,v),()=>L.removeEventListener(Oc,v)},[v]),a.jsx(cS,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:y,onItemFocus:u.useCallback(L=>k(L),[k]),onItemShiftTab:u.useCallback(()=>g(!0),[]),onFocusableItemAdd:u.useCallback(()=>j(L=>L+1),[]),onFocusableItemRemove:u.useCallback(()=>j(L=>L-1),[]),children:a.jsx(Se.div,{tabIndex:h||T===0?-1:0,"data-orientation":r,...p,ref:_,style:{outline:"none",...e.style},onMouseDown:ge(e.onMouseDown,()=>{N.current=!0}),onFocus:ge(e.onFocus,L=>{const D=!N.current;if(L.target===L.currentTarget&&D&&!h){const M=new CustomEvent(Oc,lS);if(L.currentTarget.dispatchEvent(M),!M.defaultPrevented){const U=S().filter(K=>K.focusable),z=U.find(K=>K.active),ee=U.find(K=>K.id===y),fe=[z,ee,...U].filter(Boolean).map(K=>K.ref.current);Z0(fe,f)}}N.current=!1}),onBlur:ge(e.onBlur,()=>g(!1))})})}),G0="RovingFocusGroupItem",K0=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:l,...i}=e,c=Eo(),d=s||c,f=uS(G0,n),p=f.currentTabStopId===d,m=Y0(n),{onFocusableItemAdd:_,onFocusableItemRemove:w,currentTabStopId:y}=f;return u.useEffect(()=>{if(r)return _(),()=>w()},[r,_,w]),a.jsx(Ku.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:a.jsx(Se.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:ge(e.onMouseDown,k=>{r?f.onItemFocus(d):k.preventDefault()}),onFocus:ge(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:ge(e.onKeyDown,k=>{if(k.key==="Tab"&&k.shiftKey){f.onItemShiftTab();return}if(k.target!==k.currentTarget)return;const h=mS(k,f.orientation,f.dir);if(h!==void 0){if(k.metaKey||k.ctrlKey||k.altKey||k.shiftKey)return;k.preventDefault();let v=m().filter(S=>S.focusable).map(S=>S.ref.current);if(h==="last")v.reverse();else if(h==="prev"||h==="next"){h==="prev"&&v.reverse();const S=v.indexOf(k.currentTarget);v=f.loop?hS(v,S+1):v.slice(S+1)}setTimeout(()=>Z0(v))}}),children:typeof l=="function"?l({isCurrentTabStop:p,hasTabStop:y!=null}):l})})});K0.displayName=G0;var fS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pS(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function mS(e,t,n){const r=pS(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return fS[r]}function Z0(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function hS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var gS=Q0,_S=K0,Pa="Tabs",[yS]=Yr(Pa,[X0]),J0=X0(),[vS,hf]=yS(Pa),q0=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:l="horizontal",dir:i,activationMode:c="automatic",...d}=e,f=uf(i),[p,m]=wa({prop:r,onChange:o,defaultProp:s??"",caller:Pa});return a.jsx(vS,{scope:n,baseId:Eo(),value:p,onValueChange:m,orientation:l,dir:f,activationMode:c,children:a.jsx(Se.div,{dir:f,"data-orientation":l,...d,ref:t})})});q0.displayName=Pa;var ey="TabsList",ty=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=hf(ey,n),l=J0(n);return a.jsx(gS,{asChild:!0,...l,orientation:s.orientation,dir:s.dir,loop:r,children:a.jsx(Se.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});ty.displayName=ey;var ny="TabsTrigger",ry=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,l=hf(ny,n),i=J0(n),c=ly(l.baseId,r),d=iy(l.baseId,r),f=r===l.value;return a.jsx(_S,{asChild:!0,...i,focusable:!o,active:f,children:a.jsx(Se.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...s,ref:t,onMouseDown:ge(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?l.onValueChange(r):p.preventDefault()}),onKeyDown:ge(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&l.onValueChange(r)}),onFocus:ge(e.onFocus,()=>{const p=l.activationMode!=="manual";!f&&!o&&p&&l.onValueChange(r)})})})});ry.displayName=ny;var oy="TabsContent",sy=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...l}=e,i=hf(oy,n),c=ly(i.baseId,r),d=iy(i.baseId,r),f=r===i.value,p=u.useRef(f);return u.useEffect(()=>{const m=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(m)},[]),a.jsx(dn,{present:o||f,children:({present:m})=>a.jsx(Se.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":c,hidden:!m,id:d,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:m&&s})})});sy.displayName=oy;function ly(e,t){return`${e}-trigger-${t}`}function iy(e,t){return`${e}-content-${t}`}var xS=q0,ay=ty,cy=ry,uy=sy;const wS=xS,dy=u.forwardRef(({className:e,...t},n)=>a.jsx(ay,{ref:n,className:ie("inline-flex h-8 items-center gap-1 text-muted-foreground",e),...t}));dy.displayName=ay.displayName;const Zu=u.forwardRef(({className:e,...t},n)=>a.jsx(cy,{ref:n,className:ie("inline-flex items-center justify-center whitespace-nowrap rounded-md px-2.5 py-1 text-[13px] font-medium transition-colors duration-100 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-accent data-[state=active]:text-foreground",e),...t}));Zu.displayName=cy.displayName;const Ju=u.forwardRef(({className:e,...t},n)=>a.jsx(uy,{ref:n,className:ie("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Ju.displayName=uy.displayName;function bS({run:e,onCancel:t,onRetry:n,readOnly:r}){const o=e.completedAt&&e.startedAt?e.completedAt-e.startedAt:e.startedAt?Date.now()-e.startedAt:void 0;return a.jsxs("div",{className:"flex flex-col h-full",children:[a.jsxs("div",{className:"flex items-center justify-between h-11 px-4 border-b shrink-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Po,{status:e.status,className:"text-xs"}),a.jsx("span",{className:"font-mono text-[13px] font-medium",children:e.workflowId})]}),a.jsx("button",{className:"text-muted-foreground hover:text-foreground transition-colors",onClick:()=>navigator.clipboard.writeText(e.id),title:"Copy run ID",children:a.jsx(eC,{className:"h-3.5 w-3.5"})})]}),a.jsx(ja,{className:"flex-1",children:a.jsxs(wS,{defaultValue:"overview",className:"flex flex-col",children:[a.jsx("div",{className:"px-4 pt-3 shrink-0",children:a.jsxs(dy,{children:[a.jsx(Zu,{value:"overview",className:"text-[13px]",children:"Overview"}),a.jsx(Zu,{value:"detail",className:"text-[13px]",children:"Detail"})]})}),a.jsxs(Ju,{value:"overview",className:"px-4 pb-4 space-y-4 mt-3",children:[a.jsxs("section",{className:"space-y-2.5",children:[a.jsxs("div",{className:"flex items-center justify-between text-[13px]",children:[a.jsx("span",{className:"text-muted-foreground",children:"Status"}),a.jsx(Po,{status:e.status,className:"text-xs"})]}),a.jsxs("div",{className:"flex items-center justify-between text-[13px]",children:[a.jsx("span",{className:"text-muted-foreground",children:"Started"}),a.jsx(Gu,{timestamp:e.startedAt,className:"font-mono text-[13px]"})]}),e.completedAt&&a.jsxs("div",{className:"flex items-center justify-between text-[13px]",children:[a.jsx("span",{className:"text-muted-foreground",children:"Finished"}),a.jsx(Gu,{timestamp:e.completedAt,className:"font-mono text-[13px]"})]}),a.jsxs("div",{className:"flex items-center justify-between text-[13px]",children:[a.jsx("span",{className:"text-muted-foreground",children:"Duration"}),a.jsx("span",{className:"font-mono text-[13px]",children:Ht(o)})]}),a.jsxs("div",{className:"flex items-center justify-between text-[13px]",children:[a.jsx("span",{className:"text-muted-foreground",children:"Steps"}),a.jsxs("span",{className:"font-mono text-[13px]",children:[e.progress.completed,"/",e.progress.total]})]})]}),a.jsxs("section",{children:[a.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-2",children:"Payload"}),a.jsx("div",{className:"rounded-md bg-accent p-2.5",children:a.jsx(Qu,{data:e.data,collapsed:!1})})]}),e.status==="completed"&&e.result!==void 0&&a.jsxs("section",{children:[a.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-2",children:"Output"}),a.jsx("div",{className:"rounded-md bg-accent p-2.5",children:a.jsx(Qu,{data:e.result,collapsed:!1})})]}),e.status==="failed"&&e.error&&a.jsxs("section",{children:[a.jsx("h3",{className:"text-xs font-medium text-red-600 dark:text-red-400 uppercase tracking-wider mb-2",children:"Error"}),a.jsxs("div",{className:"rounded-md bg-red-50 dark:bg-red-500/5 border border-red-200 dark:border-red-500/20 p-2.5",children:[a.jsx("p",{className:"text-xs text-red-600 dark:text-red-400 font-mono",children:e.error}),e.steps.find(s=>s.status==="failed")&&a.jsxs("p",{className:"text-xs text-muted-foreground mt-1.5",children:["Failed at step:"," ",a.jsx("span",{className:"font-mono text-foreground",children:e.steps.find(s=>s.status==="failed")?.name})]})]})]}),(e.status==="running"||e.status==="failed")&&a.jsx("section",{className:"pt-1",children:a.jsxs("div",{className:"flex gap-2",children:[e.status==="running"&&t&&(r?a.jsxs(zr,{children:[a.jsx(Fr,{asChild:!0,children:a.jsx("span",{className:"flex-1",tabIndex:0,children:a.jsxs(et,{variant:"outline",size:"sm",className:"w-full gap-1.5 text-red-600 dark:text-red-400",disabled:!0,children:[a.jsx(rl,{className:"h-3.5 w-3.5"}),"Cancel"]})})}),a.jsx(dr,{children:"Studio is in read-only mode"})]}):a.jsxs(et,{variant:"outline",size:"sm",className:"flex-1 gap-1.5 text-red-600 dark:text-red-400",onClick:t,children:[a.jsx(rl,{className:"h-3.5 w-3.5"}),"Cancel"]})),e.status==="failed"&&n&&(r?a.jsxs(zr,{children:[a.jsx(Fr,{asChild:!0,children:a.jsx("span",{className:"flex-1",tabIndex:0,children:a.jsxs(et,{variant:"outline",size:"sm",className:"w-full gap-1.5 text-orange-600 dark:text-orange-400",disabled:!0,children:[a.jsx(Br,{className:"h-3.5 w-3.5"}),"Retry"]})})}),a.jsx(dr,{children:"Studio is in read-only mode"})]}):a.jsxs(et,{variant:"outline",size:"sm",className:"flex-1 gap-1.5 text-orange-600 dark:text-orange-400",onClick:n,children:[a.jsx(Br,{className:"h-3.5 w-3.5"}),"Retry"]}))]})})]}),a.jsxs(Ju,{value:"detail",className:"px-4 pb-4 space-y-4 mt-3",children:[a.jsxs("section",{children:[a.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-2",children:"Run ID"}),a.jsx("p",{className:"font-mono text-xs text-foreground bg-accent rounded-md px-2.5 py-1.5 break-all",children:e.id})]}),a.jsxs("section",{children:[a.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-2",children:"Workflow"}),a.jsx("p",{className:"font-mono text-xs text-foreground bg-accent rounded-md px-2.5 py-1.5",children:e.workflowId})]}),a.jsxs("section",{children:[a.jsxs("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-2",children:["Steps (",e.steps.length,")"]}),a.jsx("div",{className:"space-y-1",children:e.steps.map(s=>a.jsxs("div",{className:"flex items-center justify-between bg-accent rounded-md px-2.5 py-1.5",children:[a.jsx("span",{className:"font-mono text-xs truncate mr-2",children:s.name}),a.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[a.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:Ht(s.duration)}),a.jsx(Po,{status:s.status,className:"text-[11px]"})]})]},s.name))})]})]})]})})]})}function kS(e){switch(e.type){case"workflow:start":return"started";case"workflow:complete":return"completed";case"workflow:fail":return"failed";case"step:start":return`step:${e.data.stepName}`;case"step:complete":return`step:${e.data.stepName}`;case"step:fail":return`step:${e.data.stepName} failed`;case"step:retry":return`step:${e.data.stepName} retry`;default:return e.type}}function CS(e){return e.type.includes("complete")?"completed":e.type.includes("fail")?"failed":e.type.includes("start")?"running":e.type.includes("retry")?"retrying":"queued"}function SS({events:e,className:t}){const n=ga();return e.length===0?a.jsx("p",{className:ie("text-[13px] text-muted-foreground py-8",t),children:"No activity yet. Events will appear here in real-time."}):a.jsx("div",{className:ie("space-y-px",t),children:e.map((r,o)=>a.jsxs("div",{className:"flex items-center gap-3 py-2 px-2 rounded-md hover:bg-accent/50 cursor-pointer text-[13px] transition-colors duration-100 animate-slide-in",onClick:()=>{if(r.data.runId){const s=r.data.workflowId?`/workflows/${encodeURIComponent(String(r.data.workflowId))}/runs/${r.data.runId}`:`/runs/${r.data.runId}`;n(s)}},children:[a.jsx("span",{className:"font-mono text-muted-foreground text-xs shrink-0 tabular-nums whitespace-nowrap",children:new Date(r.receivedAt).toLocaleTimeString([],{hour12:!1})}),a.jsx(Po,{status:CS(r),className:"text-xs w-24 shrink-0"}),a.jsx("span",{className:"font-mono text-muted-foreground truncate",children:String(r.data.workflowId||"")}),a.jsx("span",{className:"text-foreground truncate",children:kS(r)}),r.data.duration!=null&&a.jsx("span",{className:"font-mono text-muted-foreground ml-auto whitespace-nowrap text-xs",children:Ht(r.data.duration)})]},`${r.receivedAt}-${o}`))})}function ES(){const e=Cn(o=>o.liveEvents),[t,n]=u.useState(""),r=t?e.filter(o=>`${o.type} ${o.data.workflowId??""} ${o.data.stepName??""} ${o.data.runId??""}`.toLowerCase().includes(t.toLowerCase())):e;return a.jsxs("div",{className:"h-full flex flex-col",children:[a.jsxs("div",{className:"h-11 px-5 flex items-center justify-between border-b shrink-0",children:[a.jsx("h1",{className:"text-sm font-medium",children:"Activity"}),a.jsxs("div",{className:"relative",children:[a.jsx(fC,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),a.jsx("input",{type:"text",placeholder:"Filter events...",value:t,onChange:o=>n(o.target.value),className:"h-7 w-52 rounded-md border bg-background pl-8 pr-3 text-[13px] text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"})]})]}),a.jsx("div",{className:"flex-1 min-h-0",children:a.jsx(ja,{className:"h-full",children:a.jsx("div",{className:"px-5 py-3",children:a.jsx(SS,{events:r})})})})]})}var Mc="focusScope.autoFocusOnMount",$c="focusScope.autoFocusOnUnmount",qm={bubbles:!1,cancelable:!0},NS="FocusScope",fy=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...l}=e,[i,c]=u.useState(null),d=dt(o),f=dt(s),p=u.useRef(null),m=De(t,y=>c(y)),_=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let y=function(v){if(_.paused||!i)return;const S=v.target;i.contains(S)?p.current=S:Un(p.current,{select:!0})},k=function(v){if(_.paused||!i)return;const S=v.relatedTarget;S!==null&&(i.contains(S)||Un(p.current,{select:!0}))},h=function(v){if(document.activeElement===document.body)for(const N of v)N.removedNodes.length>0&&Un(i)};document.addEventListener("focusin",y),document.addEventListener("focusout",k);const g=new MutationObserver(h);return i&&g.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",k),g.disconnect()}}},[r,i,_.paused]),u.useEffect(()=>{if(i){th.add(_);const y=document.activeElement;if(!i.contains(y)){const h=new CustomEvent(Mc,qm);i.addEventListener(Mc,d),i.dispatchEvent(h),h.defaultPrevented||(jS(IS(py(i)),{select:!0}),document.activeElement===y&&Un(i))}return()=>{i.removeEventListener(Mc,d),setTimeout(()=>{const h=new CustomEvent($c,qm);i.addEventListener($c,f),i.dispatchEvent(h),h.defaultPrevented||Un(y??document.body,{select:!0}),i.removeEventListener($c,f),th.remove(_)},0)}}},[i,d,f,_]);const w=u.useCallback(y=>{if(!n&&!r||_.paused)return;const k=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,h=document.activeElement;if(k&&h){const g=y.currentTarget,[v,S]=PS(g);v&&S?!y.shiftKey&&h===S?(y.preventDefault(),n&&Un(v,{select:!0})):y.shiftKey&&h===v&&(y.preventDefault(),n&&Un(S,{select:!0})):h===g&&y.preventDefault()}},[n,r,_.paused]);return a.jsx(Se.div,{tabIndex:-1,...l,ref:m,onKeyDown:w})});fy.displayName=NS;function jS(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Un(r,{select:t}),document.activeElement!==n)return}function PS(e){const t=py(e),n=eh(t,e),r=eh(t.reverse(),e);return[n,r]}function py(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function eh(e,t){for(const n of e)if(!RS(n,{upTo:t}))return n}function RS(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function TS(e){return e instanceof HTMLInputElement&&"select"in e}function Un(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&TS(e)&&t&&e.select()}}var th=LS();function LS(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=nh(e,t),e.unshift(t)},remove(t){e=nh(e,t),e[0]?.resume()}}}function nh(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function IS(e){return e.filter(t=>t.tagName!=="A")}var Dc=0;function AS(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rh()),document.body.insertAdjacentElement("beforeend",e[1]??rh()),Dc++,()=>{Dc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Dc--}},[])}function rh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var on=function(){return on=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},on.apply(this,arguments)};function my(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function OS(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var fi="right-scroll-bar-position",pi="width-before-scroll-bar",MS="with-scroll-bars-hidden",$S="--removed-body-scroll-bar-size";function zc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function DS(e,t){var n=u.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var zS=typeof window<"u"?u.useLayoutEffect:u.useEffect,oh=new WeakMap;function FS(e,t){var n=DS(null,function(r){return e.forEach(function(o){return zc(o,r)})});return zS(function(){var r=oh.get(n);if(r){var o=new Set(r),s=new Set(e),l=n.current;o.forEach(function(i){s.has(i)||zc(i,null)}),s.forEach(function(i){o.has(i)||zc(i,l)})}oh.set(n,e)},[e]),n}function BS(e){return e}function WS(e,t){t===void 0&&(t=BS);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(i){return i!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var i=n;n=[],i.forEach(s),l=n}var c=function(){var f=l;l=[],f.forEach(s)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){l.push(f),d()},filter:function(f){return l=l.filter(f),n}}}};return o}function HS(e){e===void 0&&(e={});var t=WS(null);return t.options=on({async:!0,ssr:!1},e),t}var hy=function(e){var t=e.sideCar,n=my(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,on({},n))};hy.isSideCarExport=!0;function US(e,t){return e.useMedium(t),hy}var gy=HS(),Fc=function(){},Ra=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Fc,onWheelCapture:Fc,onTouchMoveCapture:Fc}),o=r[0],s=r[1],l=e.forwardProps,i=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,_=e.noRelative,w=e.noIsolation,y=e.inert,k=e.allowPinchZoom,h=e.as,g=h===void 0?"div":h,v=e.gapMode,S=my(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=m,T=FS([n,t]),j=on(on({},S),o);return u.createElement(u.Fragment,null,f&&u.createElement(N,{sideCar:gy,removeScrollBar:d,shards:p,noRelative:_,noIsolation:w,inert:y,setCallbacks:s,allowPinchZoom:!!k,lockRef:n,gapMode:v}),l?u.cloneElement(u.Children.only(i),on(on({},j),{ref:T})):u.createElement(g,on({},j,{className:c,ref:T}),i))});Ra.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ra.classNames={fullWidth:pi,zeroRight:fi};var VS=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YS(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=VS();return t&&e.setAttribute("nonce",t),e}function XS(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function QS(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var GS=function(){var e=0,t=null;return{add:function(n){e==0&&(t=YS())&&(XS(t,n),QS(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},KS=function(){var e=GS();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},_y=function(){var e=KS(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ZS={left:0,top:0,right:0,gap:0},Bc=function(e){return parseInt(e||"",10)||0},JS=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Bc(n),Bc(r),Bc(o)]},qS=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ZS;var t=JS(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eE=_y(),Ro="data-scroll-locked",tE=function(e,t,n,r){var o=e.left,s=e.top,l=e.right,i=e.gap;return n===void 0&&(n="margin"),`
2661
+ .`.concat(MS,` {
2662
+ overflow: hidden `).concat(r,`;
2663
+ padding-right: `).concat(i,"px ").concat(r,`;
2664
+ }
2665
+ body[`).concat(Ro,`] {
2666
+ overflow: hidden `).concat(r,`;
2667
+ overscroll-behavior: contain;
2668
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
2669
+ padding-left: `.concat(o,`px;
2670
+ padding-top: `).concat(s,`px;
2671
+ padding-right: `).concat(l,`px;
2672
+ margin-left:0;
2673
+ margin-top:0;
2674
+ margin-right: `).concat(i,"px ").concat(r,`;
2675
+ `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
2676
+ }
2677
+
2678
+ .`).concat(fi,` {
2679
+ right: `).concat(i,"px ").concat(r,`;
2680
+ }
2681
+
2682
+ .`).concat(pi,` {
2683
+ margin-right: `).concat(i,"px ").concat(r,`;
2684
+ }
2685
+
2686
+ .`).concat(fi," .").concat(fi,` {
2687
+ right: 0 `).concat(r,`;
2688
+ }
2689
+
2690
+ .`).concat(pi," .").concat(pi,` {
2691
+ margin-right: 0 `).concat(r,`;
2692
+ }
2693
+
2694
+ body[`).concat(Ro,`] {
2695
+ `).concat($S,": ").concat(i,`px;
2696
+ }
2697
+ `)},sh=function(){var e=parseInt(document.body.getAttribute(Ro)||"0",10);return isFinite(e)?e:0},nE=function(){u.useEffect(function(){return document.body.setAttribute(Ro,(sh()+1).toString()),function(){var e=sh()-1;e<=0?document.body.removeAttribute(Ro):document.body.setAttribute(Ro,e.toString())}},[])},rE=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;nE();var s=u.useMemo(function(){return qS(o)},[o]);return u.createElement(eE,{styles:tE(s,!t,o,n?"":"!important")})},qu=!1;if(typeof window<"u")try{var Gl=Object.defineProperty({},"passive",{get:function(){return qu=!0,!0}});window.addEventListener("test",Gl,Gl),window.removeEventListener("test",Gl,Gl)}catch{qu=!1}var ro=qu?{passive:!1}:!1,oE=function(e){return e.tagName==="TEXTAREA"},yy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!oE(e)&&n[t]==="visible")},sE=function(e){return yy(e,"overflowY")},lE=function(e){return yy(e,"overflowX")},lh=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=vy(e,r);if(o){var s=xy(e,r),l=s[1],i=s[2];if(l>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},iE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},aE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},vy=function(e,t){return e==="v"?sE(t):lE(t)},xy=function(e,t){return e==="v"?iE(t):aE(t)},cE=function(e,t){return e==="h"&&t==="rtl"?-1:1},uE=function(e,t,n,r,o){var s=cE(e,window.getComputedStyle(t).direction),l=s*r,i=n.target,c=t.contains(i),d=!1,f=l>0,p=0,m=0;do{if(!i)break;var _=xy(e,i),w=_[0],y=_[1],k=_[2],h=y-k-s*w;(w||h)&&vy(e,i)&&(p+=h,m+=w);var g=i.parentNode;i=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(m)<1)&&(d=!0),d},Kl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ih=function(e){return[e.deltaX,e.deltaY]},ah=function(e){return e&&"current"in e?e.current:e},dE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fE=function(e){return`
2698
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
2699
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
2700
+ `)},pE=0,oo=[];function mE(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(pE++)[0],s=u.useState(_y)[0],l=u.useRef(e);u.useEffect(function(){l.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=OS([e.lockRef.current],(e.shards||[]).map(ah),!0).filter(Boolean);return y.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=u.useCallback(function(y,k){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!l.current.allowPinchZoom;var h=Kl(y),g=n.current,v="deltaX"in y?y.deltaX:g[0]-h[0],S="deltaY"in y?y.deltaY:g[1]-h[1],N,T=y.target,j=Math.abs(v)>Math.abs(S)?"h":"v";if("touches"in y&&j==="h"&&T.type==="range")return!1;var L=window.getSelection(),D=L&&L.anchorNode,M=D?D===T||D.contains(T):!1;if(M)return!1;var U=lh(j,T);if(!U)return!0;if(U?N=j:(N=j==="v"?"h":"v",U=lh(j,T)),!U)return!1;if(!r.current&&"changedTouches"in y&&(v||S)&&(r.current=N),!N)return!0;var z=r.current||N;return uE(z,k,y,z==="h"?v:S)},[]),c=u.useCallback(function(y){var k=y;if(!(!oo.length||oo[oo.length-1]!==s)){var h="deltaY"in k?ih(k):Kl(k),g=t.current.filter(function(N){return N.name===k.type&&(N.target===k.target||k.target===N.shadowParent)&&dE(N.delta,h)})[0];if(g&&g.should){k.cancelable&&k.preventDefault();return}if(!g){var v=(l.current.shards||[]).map(ah).filter(Boolean).filter(function(N){return N.contains(k.target)}),S=v.length>0?i(k,v[0]):!l.current.noIsolation;S&&k.cancelable&&k.preventDefault()}}},[]),d=u.useCallback(function(y,k,h,g){var v={name:y,delta:k,target:h,should:g,shadowParent:hE(h)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(S){return S!==v})},1)},[]),f=u.useCallback(function(y){n.current=Kl(y),r.current=void 0},[]),p=u.useCallback(function(y){d(y.type,ih(y),y.target,i(y,e.lockRef.current))},[]),m=u.useCallback(function(y){d(y.type,Kl(y),y.target,i(y,e.lockRef.current))},[]);u.useEffect(function(){return oo.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,ro),document.addEventListener("touchmove",c,ro),document.addEventListener("touchstart",f,ro),function(){oo=oo.filter(function(y){return y!==s}),document.removeEventListener("wheel",c,ro),document.removeEventListener("touchmove",c,ro),document.removeEventListener("touchstart",f,ro)}},[]);var _=e.removeScrollBar,w=e.inert;return u.createElement(u.Fragment,null,w?u.createElement(s,{styles:fE(o)}):null,_?u.createElement(rE,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function hE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const gE=US(gy,mE);var wy=u.forwardRef(function(e,t){return u.createElement(Ra,on({},e,{ref:t,sideCar:gE}))});wy.classNames=Ra.classNames;var _E=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},so=new WeakMap,Zl=new WeakMap,Jl={},Wc=0,by=function(e){return e&&(e.host||by(e.parentNode))},yE=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=by(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},vE=function(e,t,n,r){var o=yE(t,Array.isArray(e)?e:[e]);Jl[n]||(Jl[n]=new WeakMap);var s=Jl[n],l=[],i=new Set,c=new Set(o),d=function(p){!p||i.has(p)||(i.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(m){if(i.has(m))f(m);else try{var _=m.getAttribute(r),w=_!==null&&_!=="false",y=(so.get(m)||0)+1,k=(s.get(m)||0)+1;so.set(m,y),s.set(m,k),l.push(m),y===1&&w&&Zl.set(m,!0),k===1&&m.setAttribute(n,"true"),w||m.setAttribute(r,"true")}catch(h){console.error("aria-hidden: cannot operate on ",m,h)}})};return f(t),i.clear(),Wc++,function(){l.forEach(function(p){var m=so.get(p)-1,_=s.get(p)-1;so.set(p,m),s.set(p,_),m||(Zl.has(p)||p.removeAttribute(r),Zl.delete(p)),_||p.removeAttribute(n)}),Wc--,Wc||(so=new WeakMap,so=new WeakMap,Zl=new WeakMap,Jl={})}},xE=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=_E(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),vE(r,o,n,"aria-hidden")):function(){return null}};function wE(e){const t=bE(e),n=u.forwardRef((r,o)=>{const{children:s,...l}=r,i=u.Children.toArray(s),c=i.find(CE);if(c){const d=c.props.children,f=i.map(p=>p===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:p);return a.jsx(t,{...l,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return a.jsx(t,{...l,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function bE(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const l=EE(o),i=SE(s,o.props);return o.type!==u.Fragment&&(i.ref=r?cl(r,l):l),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kE=Symbol("radix.slottable");function CE(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kE}function SE(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function EE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ta="Dialog",[ky]=Yr(Ta),[NE,Xt]=ky(Ta),Cy=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:l=!0}=e,i=u.useRef(null),c=u.useRef(null),[d,f]=wa({prop:r,defaultProp:o??!1,onChange:s,caller:Ta});return a.jsx(NE,{scope:t,triggerRef:i,contentRef:c,contentId:Eo(),titleId:Eo(),descriptionId:Eo(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(p=>!p),[f]),modal:l,children:n})};Cy.displayName=Ta;var Sy="DialogTrigger",Ey=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xt(Sy,n),s=De(t,o.triggerRef);return a.jsx(Se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yf(o.open),...r,ref:s,onClick:ge(e.onClick,o.onOpenToggle)})});Ey.displayName=Sy;var gf="DialogPortal",[jE,Ny]=ky(gf,{forceMount:void 0}),jy=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Xt(gf,t);return a.jsx(jE,{scope:t,forceMount:n,children:u.Children.map(r,l=>a.jsx(dn,{present:n||s.open,children:a.jsx(s0,{asChild:!0,container:o,children:l})}))})};jy.displayName=gf;var Qi="DialogOverlay",Py=u.forwardRef((e,t)=>{const n=Ny(Qi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Xt(Qi,e.__scopeDialog);return s.modal?a.jsx(dn,{present:r||s.open,children:a.jsx(RE,{...o,ref:t})}):null});Py.displayName=Qi;var PE=wE("DialogOverlay.RemoveScroll"),RE=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xt(Qi,n);return a.jsx(wy,{as:PE,allowPinchZoom:!0,shards:[o.contentRef],children:a.jsx(Se.div,{"data-state":yf(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Wr="DialogContent",Ry=u.forwardRef((e,t)=>{const n=Ny(Wr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Xt(Wr,e.__scopeDialog);return a.jsx(dn,{present:r||s.open,children:s.modal?a.jsx(TE,{...o,ref:t}):a.jsx(LE,{...o,ref:t})})});Ry.displayName=Wr;var TE=u.forwardRef((e,t)=>{const n=Xt(Wr,e.__scopeDialog),r=u.useRef(null),o=De(t,n.contentRef,r);return u.useEffect(()=>{const s=r.current;if(s)return xE(s)},[]),a.jsx(Ty,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ge(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,i=l.button===0&&l.ctrlKey===!0;(l.button===2||i)&&s.preventDefault()}),onFocusOutside:ge(e.onFocusOutside,s=>s.preventDefault())})}),LE=u.forwardRef((e,t)=>{const n=Xt(Wr,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return a.jsx(Ty,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=s.target;n.triggerRef.current?.contains(l)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Ty=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...l}=e,i=Xt(Wr,n),c=u.useRef(null),d=De(t,c);return AS(),a.jsxs(a.Fragment,{children:[a.jsx(fy,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:a.jsx(Kd,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":yf(i.open),...l,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(AE,{titleId:i.titleId}),a.jsx(ME,{contentRef:c,descriptionId:i.descriptionId})]})]})}),_f="DialogTitle",Ly=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xt(_f,n);return a.jsx(Se.h2,{id:o.titleId,...r,ref:t})});Ly.displayName=_f;var Iy="DialogDescription",IE=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xt(Iy,n);return a.jsx(Se.p,{id:o.descriptionId,...r,ref:t})});IE.displayName=Iy;var Ay="DialogClose",Oy=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xt(Ay,n);return a.jsx(Se.button,{type:"button",...r,ref:t,onClick:ge(e.onClick,()=>o.onOpenChange(!1))})});Oy.displayName=Ay;function yf(e){return e?"open":"closed"}var My="DialogTitleWarning",[qE,$y]=zw(My,{contentName:Wr,titleName:_f,docsSlug:"dialog"}),AE=({titleId:e})=>{const t=$y(My),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2701
+
2702
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
2703
+
2704
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},OE="DialogDescriptionWarning",ME=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$y(OE).contentName}}.`;return u.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},$E=Cy,DE=Ey,zE=jy,Dy=Py,zy=Ry,Fy=Ly,FE=Oy;const BE=$E,WE=DE,HE=zE,By=u.forwardRef(({className:e,...t},n)=>a.jsx(Dy,{ref:n,className:ie("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));By.displayName=Dy.displayName;const Wy=u.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(HE,{children:[a.jsx(By,{}),a.jsxs(zy,{ref:r,className:ie("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 rounded-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",e),...n,children:[t,a.jsxs(FE,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[a.jsx(hC,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Wy.displayName=zy.displayName;const UE=({className:e,...t})=>a.jsx("div",{className:ie("flex flex-col space-y-1.5 text-center sm:text-left",e),...t}),Hy=u.forwardRef(({className:e,...t},n)=>a.jsx(Fy,{ref:n,className:ie("text-lg font-semibold leading-none tracking-tight",e),...t}));Hy.displayName=Fy.displayName;const Uy=u.forwardRef(({className:e,...t},n)=>a.jsx("textarea",{className:ie("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2.5 text-[13px] ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 transition-colors duration-100",e),ref:n,...t}));Uy.displayName="Textarea";function VE({workflowId:e,onTriggered:t,readOnly:n}){const[r,o]=u.useState(!1),[s,l]=u.useState("{}"),[i,c]=u.useState(null),[d,f]=u.useState(!1),p=async()=>{c(null),f(!0);try{const m=JSON.parse(s),_=await jt.trigger(e,m);o(!1),l("{}"),t?.(_.runId)}catch(m){c(m instanceof Error?m.message:"Failed to trigger")}finally{f(!1)}};return n?a.jsxs(zr,{children:[a.jsx(Fr,{asChild:!0,children:a.jsx("span",{tabIndex:0,children:a.jsxs(et,{size:"sm",className:"gap-1.5",disabled:!0,children:[a.jsx(Ic,{className:"h-3.5 w-3.5"}),"Trigger"]})})}),a.jsx(dr,{children:"Studio is in read-only mode"})]}):a.jsxs(BE,{open:r,onOpenChange:o,children:[a.jsx(WE,{asChild:!0,children:a.jsxs(et,{size:"sm",className:"gap-1.5",children:[a.jsx(Ic,{className:"h-3.5 w-3.5"}),"Trigger"]})}),a.jsxs(Wy,{children:[a.jsx(UE,{children:a.jsxs(Hy,{className:"font-mono text-sm",children:["Trigger: ",e]})}),a.jsxs("div",{className:"space-y-4 pt-2",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-2 block uppercase tracking-wider",children:"Input Data (JSON)"}),a.jsx(Uy,{value:s,onChange:m=>l(m.target.value),className:"font-mono text-[13px] min-h-[140px] bg-accent",placeholder:"{}"})]}),i&&a.jsx("p",{className:"text-[13px] text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-500/5 rounded-md px-3 py-2",children:i}),a.jsxs("div",{className:"flex justify-end gap-2",children:[a.jsx(et,{variant:"outline",onClick:()=>o(!1),disabled:d,children:"Cancel"}),a.jsxs(et,{onClick:p,disabled:d,className:"gap-1.5",children:[a.jsx(Ic,{className:"h-3.5 w-3.5"}),d?"Triggering...":"Trigger"]})]})]})]})]})}const Vy=u.forwardRef(({className:e,...t},n)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:n,className:ie("w-full caption-bottom text-[13px]",e),...t})}));Vy.displayName="Table";const Yy=u.forwardRef(({className:e,...t},n)=>a.jsx("thead",{ref:n,className:ie("sticky top-0 z-10 bg-background [&_tr]:border-b",e),...t}));Yy.displayName="TableHeader";const Xy=u.forwardRef(({className:e,...t},n)=>a.jsx("tbody",{ref:n,className:ie("[&_tr:last-child]:border-0",e),...t}));Xy.displayName="TableBody";const mi=u.forwardRef(({className:e,...t},n)=>a.jsx("tr",{ref:n,className:ie("border-b transition-colors duration-100 hover:bg-accent/50 data-[state=selected]:bg-accent",e),...t}));mi.displayName="TableRow";const Er=u.forwardRef(({className:e,...t},n)=>a.jsx("th",{ref:n,className:ie("h-9 px-3 text-left align-middle font-medium text-muted-foreground text-xs [&:has([role=checkbox])]:pr-0",e),...t}));Er.displayName="TableHead";const Vn=u.forwardRef(({className:e,...t},n)=>a.jsx("td",{ref:n,className:ie("px-3 py-2.5 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Vn.displayName="TableCell";const YE=["all","running","completed","failed","cancelled"];function XE(){const{workflowId:e}=T_(),t=ga(),{workflows:n,currentRuns:r,fetchRuns:o,loadMoreRuns:s,readOnly:l}=Cn(),[i,c]=u.useState("all"),d=e?decodeURIComponent(e):"",f=n.find(_=>_.id===d);u.useEffect(()=>{d&&o(d,{status:i==="all"?void 0:i})},[d,i,o]);const p=async(_,w)=>{_.stopPropagation(),await jt.cancel(w),o(d,{status:i==="all"?void 0:i})},m=async(_,w)=>{_.stopPropagation(),await jt.retry(w),o(d,{status:i==="all"?void 0:i})};return a.jsxs("div",{className:"h-full flex flex-col",children:[a.jsxs("div",{className:"h-11 px-5 flex items-center justify-between border-b shrink-0",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("h1",{className:"text-sm font-medium font-mono",children:d}),f&&a.jsxs("div",{className:"flex gap-3 text-xs text-muted-foreground items-center",children:[a.jsxs("div",{className:"flex items-center gap-1",title:"Concurrency",children:[a.jsx(nC,{className:"h-3 w-3"}),a.jsx("span",{children:f.concurrency})]}),a.jsxs("div",{className:"flex items-center gap-1",title:"Retries",children:[a.jsx(dC,{className:"h-3 w-3"}),a.jsx("span",{children:f.retries})]}),f.timeout&&a.jsxs("div",{className:"flex items-center gap-1",title:"Timeout",children:[a.jsx(mC,{className:"h-3 w-3"}),a.jsx("span",{children:Ht(f.timeout)})]}),f.rateLimit&&a.jsxs("div",{className:"flex items-center gap-1",title:"Rate limit",children:[a.jsx(gC,{className:"h-3 w-3"}),a.jsxs("span",{children:[f.rateLimit.max,"/",Ht(f.rateLimit.duration)]})]})]})]}),a.jsx(VE,{workflowId:d,readOnly:l,onTriggered:()=>{o(d,{status:i==="all"?void 0:i})}})]}),a.jsx("div",{className:"h-10 px-5 flex items-center gap-1 border-b shrink-0",children:YE.map(_=>a.jsx("button",{className:`px-2.5 py-1 rounded-md text-[13px] capitalize transition-colors duration-100 ${i===_?"bg-accent text-foreground font-medium":"text-muted-foreground hover:text-foreground hover:bg-accent"}`,onClick:()=>c(_),children:_},_))}),a.jsxs("div",{className:"flex-1 overflow-auto min-h-0",children:[a.jsxs(Vy,{children:[a.jsx(Yy,{children:a.jsxs(mi,{children:[a.jsx(Er,{className:"pl-5",children:"Run"}),a.jsx(Er,{children:"Status"}),a.jsx(Er,{children:"Started"}),a.jsx(Er,{children:"Duration"}),a.jsx(Er,{children:"Steps"}),a.jsx(Er,{className:"w-[80px] pr-5",children:"Actions"})]})}),a.jsxs(Xy,{children:[r?.runs.length===0&&a.jsx(mi,{children:a.jsx(Vn,{colSpan:6,className:"text-center text-muted-foreground py-16",children:"No runs found."})}),r?.runs.map(_=>a.jsxs(mi,{className:"cursor-pointer",onClick:()=>t(`/workflows/${encodeURIComponent(d)}/runs/${_.id}`),children:[a.jsx(Vn,{className:"font-mono text-[13px] pl-5",title:_.id,children:L2(_.id)}),a.jsx(Vn,{children:a.jsx(Po,{status:_.status})}),a.jsx(Vn,{className:"text-[13px]",children:a.jsx(Gu,{timestamp:_.startedAt})}),a.jsx(Vn,{className:"font-mono text-[13px] text-muted-foreground",children:_.completedAt&&_.startedAt?Ht(_.completedAt-_.startedAt):"—"}),a.jsxs(Vn,{className:"font-mono text-[13px] text-muted-foreground",children:[_.progress.completed,"/",_.progress.total]}),a.jsx(Vn,{className:"pr-5",children:a.jsxs("div",{className:"flex gap-1",children:[_.status==="running"&&(l?a.jsxs(zr,{children:[a.jsx(Fr,{asChild:!0,children:a.jsx("span",{tabIndex:0,children:a.jsx(et,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-md",disabled:!0,children:a.jsx(rl,{className:"h-3.5 w-3.5 text-red-500"})})})}),a.jsx(dr,{children:"Studio is in read-only mode"})]}):a.jsx(et,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-md",onClick:w=>p(w,_.id),children:a.jsx(rl,{className:"h-3.5 w-3.5 text-red-500"})})),_.status==="failed"&&(l?a.jsxs(zr,{children:[a.jsx(Fr,{asChild:!0,children:a.jsx("span",{tabIndex:0,children:a.jsx(et,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-md",disabled:!0,children:a.jsx(Br,{className:"h-3.5 w-3.5 text-orange-500"})})})}),a.jsx(dr,{children:"Studio is in read-only mode"})]}):a.jsx(et,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-md",onClick:w=>m(w,_.id),children:a.jsx(Br,{className:"h-3.5 w-3.5 text-orange-500"})}))]})})]},_.id))]})]}),r?.nextCursor&&a.jsx("div",{className:"flex justify-center py-4",children:a.jsx(et,{variant:"outline",size:"sm",onClick:()=>s(d),children:"Load More"})})]})]})}const ch={pending:{icon:qk,color:"text-muted-foreground",barColor:"bg-gray-200 dark:bg-gray-700"},running:{icon:oC,color:"text-blue-500",barColor:"bg-blue-500/30 dark:bg-blue-500/40"},completed:{icon:Jk,color:"text-emerald-500",barColor:"bg-emerald-500/30 dark:bg-emerald-500/40"},failed:{icon:rl,color:"text-red-500",barColor:"bg-red-500/30 dark:bg-red-500/40"},retrying:{icon:Br,color:"text-orange-500",barColor:"bg-orange-500/30 dark:bg-orange-500/40"},skipped:{icon:sC,color:"text-muted-foreground",barColor:"bg-gray-200 dark:bg-gray-700"}};function QE({steps:e,totalDuration:t,className:n,onRetryRun:r,readOnly:o}){if(e.length===0)return a.jsx("p",{className:"text-[13px] text-muted-foreground py-4",children:"No steps executed yet."});const s=t||Math.max(...e.map(l=>l.duration??0),1);return a.jsxs("div",{className:ie("space-y-1",n),children:[a.jsxs("div",{className:"flex items-center justify-between pb-2",children:[a.jsxs("span",{className:"text-[13px] text-muted-foreground font-medium",children:["Steps (",e.filter(l=>l.status==="completed").length,"/",e.length,")"]}),a.jsx("span",{className:"text-[13px] text-muted-foreground font-mono",children:Ht(t)})]}),a.jsx("div",{className:"space-y-0.5",children:e.map(l=>a.jsx(GE,{step:l,maxDuration:s,onRetryRun:r,readOnly:o},l.name))}),a.jsx(KE,{maxDuration:s})]})}function GE({step:e,maxDuration:t,onRetryRun:n,readOnly:r}){const[o,s]=u.useState(!1),l=ch[e.status]||ch.pending,i=l.icon,c=e.status==="running",d=e.duration&&t>0?Math.max(e.duration/t*100,2):e.status==="running"?45:2,f=e.result!==void 0||e.error||(e.attempts??0)>1;return a.jsxs("div",{className:"animate-slide-in",children:[a.jsxs("div",{className:ie("group flex items-center gap-2.5 px-2 py-1.5 rounded-md transition-colors duration-100",f&&"cursor-pointer",o?"bg-accent":"hover:bg-accent/50"),onClick:()=>f&&s(!o),children:[a.jsx("div",{className:ie("shrink-0",l.color),children:a.jsx(i,{className:ie("h-4 w-4",c&&"animate-spin")})}),a.jsx("div",{className:"shrink-0 w-32 min-w-[80px]",children:a.jsx("span",{className:"font-mono text-[13px] truncate block",children:e.name})}),a.jsx("div",{className:"flex-1 h-6 bg-accent rounded-md overflow-hidden relative",children:a.jsx("div",{className:ie("trace-bar h-full flex items-center justify-end px-2",l.barColor,c&&"animate-shimmer bg-gradient-to-r from-blue-500/20 via-blue-400/40 to-blue-500/20 bg-[length:200%_100%]"),style:{width:`${d}%`,"--trace-width":`${d}%`},children:e.duration!=null&&e.duration>0&&a.jsx("span",{className:"text-xs font-mono text-foreground/70 whitespace-nowrap",children:Ht(e.duration)})})}),a.jsx("div",{className:"shrink-0 w-14 text-right",children:a.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:c?"...":Ht(e.duration)})}),f&&a.jsx("div",{className:"shrink-0 text-muted-foreground",children:o?a.jsx(cf,{className:"h-3.5 w-3.5"}):a.jsx(Sa,{className:"h-3.5 w-3.5"})})]}),o&&a.jsxs("div",{className:"ml-8 mr-3 mb-1.5 pl-3 border-l-2 border-border",children:[(e.attempts??0)>1&&a.jsxs("p",{className:"text-[13px] text-muted-foreground py-0.5",children:["Attempt ",e.attempts]}),e.error&&a.jsxs("div",{className:"py-1.5",children:[a.jsx("p",{className:"text-[13px] text-red-600 dark:text-red-400 font-mono bg-red-500/5 rounded-md px-2.5 py-1.5",children:e.error}),e.status==="failed"&&n&&(r?a.jsxs(zr,{children:[a.jsx(Fr,{asChild:!0,children:a.jsx("span",{tabIndex:0,children:a.jsxs(et,{variant:"outline",size:"sm",className:"mt-2 gap-1.5 text-orange-600 dark:text-orange-400",disabled:!0,children:[a.jsx(Br,{className:"h-3 w-3"}),"Retry from this step"]})})}),a.jsx(dr,{children:"Studio is in read-only mode"})]}):a.jsxs(et,{variant:"outline",size:"sm",className:"mt-2 gap-1.5 text-orange-600 dark:text-orange-400",onClick:p=>{p.stopPropagation(),n()},children:[a.jsx(Br,{className:"h-3 w-3"}),"Retry from this step"]}))]}),e.status==="completed"&&e.result!==void 0&&a.jsx("div",{className:"py-1.5",children:a.jsx(Qu,{data:e.result,collapsed:!1})})]})]})}function KE({maxDuration:e}){const n=Array.from({length:6},(r,o)=>{const s=o/5;return{position:s*100,label:Ht(Math.round(e*s))}});return a.jsxs("div",{className:"relative h-4 mt-1",style:{marginLeft:"calc(1rem + 8.5rem)",marginRight:"4.75rem"},children:[a.jsx("div",{className:"absolute inset-x-0 top-0 h-px bg-border"}),n.map((r,o)=>a.jsxs("div",{className:"absolute top-0 flex flex-col items-center",style:{left:`${r.position}%`},children:[a.jsx("div",{className:"w-px h-1.5 bg-border"}),a.jsx("span",{className:"text-[10px] text-muted-foreground font-mono mt-0.5",children:r.label})]},o))]})}function uh(){const{runId:e,workflowId:t}=T_(),n=ga(),{currentRun:r,fetchRun:o,readOnly:s}=Cn(),l=u.useRef();u.useEffect(()=>(e&&o(e),()=>{l.current&&clearInterval(l.current)}),[e,o]),u.useEffect(()=>(l.current&&clearInterval(l.current),r&&(r.status==="queued"||r.status==="running")&&(l.current=setInterval(()=>{e&&o(e)},3e3)),()=>{l.current&&clearInterval(l.current)}),[r?.status,e,o]);const i=async()=>{e&&(await jt.cancel(e),o(e))},c=async()=>{e&&(await jt.retry(e),o(e))};if(!r)return a.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground",children:"Loading run..."});const d=r.completedAt&&r.startedAt?r.completedAt-r.startedAt:r.startedAt?Date.now()-r.startedAt:void 0,f=t?decodeURIComponent(t):r.workflowId;return a.jsxs("div",{className:"flex h-full",children:[a.jsx(ja,{className:"flex-1",children:a.jsxs("div",{className:"px-5 py-4 space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-1.5 text-[13px]",children:[a.jsx("button",{className:"text-muted-foreground hover:text-foreground transition-colors font-mono",onClick:()=>n(`/workflows/${encodeURIComponent(f)}`),children:f}),a.jsx(Sa,{className:"h-3 w-3 text-muted-foreground"}),a.jsx("span",{className:"font-mono text-foreground",children:r.id})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Po,{status:r.status}),a.jsx("span",{className:"font-mono text-[13px] text-muted-foreground",children:Ht(d)})]}),a.jsx("div",{className:"rounded-lg border p-4",children:a.jsx(QE,{steps:r.steps,totalDuration:d,onRetryRun:r.status==="failed"?c:void 0,readOnly:s})})]})}),a.jsx("div",{className:"w-[320px] shrink-0 border-l",children:a.jsx(bS,{run:r,onCancel:r.status==="running"?i:void 0,onRetry:r.status==="failed"?c:void 0,readOnly:s})})]})}function ZE(){const e=Cn(o=>o.connectSSE),t=Cn(o=>o.fetchConfig),n=Cn(o=>o.fetchHealth),r=Cn(o=>o.fetchWorkflows);return u.useEffect(()=>{const o=e();t(),n(),r();const s=setInterval(n,3e4);return()=>{o(),clearInterval(s)}},[e,t,n,r]),a.jsx(A2,{children:a.jsx(I2,{delayDuration:200,children:a.jsx(Dw,{children:a.jsx(Ow,{children:a.jsxs(lo,{element:a.jsx(NC,{}),children:[a.jsx(lo,{path:"/",element:a.jsx(ES,{})}),a.jsx(lo,{path:"/workflows/:workflowId",element:a.jsx(XE,{})}),a.jsx(lo,{path:"/workflows/:workflowId/runs/:runId",element:a.jsx(uh,{})}),a.jsx(lo,{path:"/runs/:runId",element:a.jsx(uh,{})})]})})})})})}Hc.createRoot(document.getElementById("root")).render(a.jsx(ct.StrictMode,{children:a.jsx(ZE,{})}));