chisel-studio 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -0
- package/dist/index.d.mts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +217 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +215 -0
- package/dist/index.mjs.map +1 -0
- package/dist/ui/assets/index-B2dja40T.js +2607 -0
- package/dist/ui/assets/index-UB4FWL5j.css +1 -0
- package/dist/ui/favicon.svg +4 -0
- package/dist/ui/index.html +14 -0
- package/package.json +65 -0
|
@@ -0,0 +1,2607 @@
|
|
|
1
|
+
function Uy(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 Vm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xm={exports:{}},Oi={},Qm={exports:{}},ie={};/**
|
|
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 Ys=Symbol.for("react.element"),Yy=Symbol.for("react.portal"),Vy=Symbol.for("react.fragment"),Xy=Symbol.for("react.strict_mode"),Qy=Symbol.for("react.profiler"),Gy=Symbol.for("react.provider"),Ky=Symbol.for("react.context"),Zy=Symbol.for("react.forward_ref"),Jy=Symbol.for("react.suspense"),qy=Symbol.for("react.memo"),e1=Symbol.for("react.lazy"),If=Symbol.iterator;function t1(e){return e===null||typeof e!="object"?null:(e=If&&e[If]||e["@@iterator"],typeof e=="function"?e:null)}var Gm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Km=Object.assign,Zm={};function Oo(e,t,n){this.props=e,this.context=t,this.refs=Zm,this.updater=n||Gm}Oo.prototype.isReactComponent={};Oo.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")};Oo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jm(){}Jm.prototype=Oo.prototype;function $u(e,t,n){this.props=e,this.context=t,this.refs=Zm,this.updater=n||Gm}var Du=$u.prototype=new Jm;Du.constructor=$u;Km(Du,Oo.prototype);Du.isPureReactComponent=!0;var Af=Array.isArray,qm=Object.prototype.hasOwnProperty,zu={current:null},eh={key:!0,ref:!0,__self:!0,__source:!0};function th(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)qm.call(t,r)&&!eh.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:Ys,type:e,key:s,ref:l,props:o,_owner:zu.current}}function n1(e,t){return{$$typeof:Ys,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Fu(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ys}function r1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Of=/\/+/g;function Ta(e,t){return typeof e=="object"&&e!==null&&e.key!=null?r1(""+e.key):t.toString(36)}function zl(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 Ys:case Yy:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Ta(l,0):r,Af(o)?(n="",e!=null&&(n=e.replace(Of,"$&/")+"/"),zl(o,t,n,"",function(d){return d})):o!=null&&(Fu(o)&&(o=n1(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Of,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",Af(e))for(var i=0;i<e.length;i++){s=e[i];var c=r+Ta(s,i);l+=zl(s,t,n,c,o)}else if(c=t1(e),typeof c=="function")for(e=c.call(e),i=0;!(s=e.next()).done;)s=s.value,c=r+Ta(s,i++),l+=zl(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 cl(e,t,n){if(e==null)return e;var r=[],o=0;return zl(e,r,"","",function(s){return t.call(n,s,o++)}),r}function o1(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 rt={current:null},Fl={transition:null},s1={ReactCurrentDispatcher:rt,ReactCurrentBatchConfig:Fl,ReactCurrentOwner:zu};function nh(){throw Error("act(...) is not supported in production builds of React.")}ie.Children={map:cl,forEach:function(e,t,n){cl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return cl(e,function(){t++}),t},toArray:function(e){return cl(e,function(t){return t})||[]},only:function(e){if(!Fu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ie.Component=Oo;ie.Fragment=Vy;ie.Profiler=Qy;ie.PureComponent=$u;ie.StrictMode=Xy;ie.Suspense=Jy;ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=s1;ie.act=nh;ie.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=Km({},e.props),o=e.key,s=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,l=zu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(c in t)qm.call(t,c)&&!eh.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:Ys,type:e.type,key:o,ref:s,props:r,_owner:l}};ie.createContext=function(e){return e={$$typeof:Ky,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Gy,_context:e},e.Consumer=e};ie.createElement=th;ie.createFactory=function(e){var t=th.bind(null,e);return t.type=e,t};ie.createRef=function(){return{current:null}};ie.forwardRef=function(e){return{$$typeof:Zy,render:e}};ie.isValidElement=Fu;ie.lazy=function(e){return{$$typeof:e1,_payload:{_status:-1,_result:e},_init:o1}};ie.memo=function(e,t){return{$$typeof:qy,type:e,compare:t===void 0?null:t}};ie.startTransition=function(e){var t=Fl.transition;Fl.transition={};try{e()}finally{Fl.transition=t}};ie.unstable_act=nh;ie.useCallback=function(e,t){return rt.current.useCallback(e,t)};ie.useContext=function(e){return rt.current.useContext(e)};ie.useDebugValue=function(){};ie.useDeferredValue=function(e){return rt.current.useDeferredValue(e)};ie.useEffect=function(e,t){return rt.current.useEffect(e,t)};ie.useId=function(){return rt.current.useId()};ie.useImperativeHandle=function(e,t,n){return rt.current.useImperativeHandle(e,t,n)};ie.useInsertionEffect=function(e,t){return rt.current.useInsertionEffect(e,t)};ie.useLayoutEffect=function(e,t){return rt.current.useLayoutEffect(e,t)};ie.useMemo=function(e,t){return rt.current.useMemo(e,t)};ie.useReducer=function(e,t,n){return rt.current.useReducer(e,t,n)};ie.useRef=function(e){return rt.current.useRef(e)};ie.useState=function(e){return rt.current.useState(e)};ie.useSyncExternalStore=function(e,t,n){return rt.current.useSyncExternalStore(e,t,n)};ie.useTransition=function(){return rt.current.useTransition()};ie.version="18.3.1";Qm.exports=ie;var u=Qm.exports;const vt=Vm(u),Mi=Uy({__proto__:null,default:vt},[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 l1=u,i1=Symbol.for("react.element"),a1=Symbol.for("react.fragment"),c1=Object.prototype.hasOwnProperty,u1=l1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d1={key:!0,ref:!0,__self:!0,__source:!0};function rh(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)c1.call(t,r)&&!d1.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:i1,type:e,key:s,ref:l,props:o,_owner:u1.current}}Oi.Fragment=a1;Oi.jsx=rh;Oi.jsxs=rh;Xm.exports=Oi;var a=Xm.exports,Nc={},oh={exports:{}},St={},sh={exports:{}},lh={};/**
|
|
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(I,$){var H=I.length;I.push($);e:for(;0<H;){var J=H-1>>>1,we=I[J];if(0<o(we,$))I[J]=$,I[H]=we,H=J;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var $=I[0],H=I.pop();if(H!==$){I[0]=H;e:for(var J=0,we=I.length,Kt=we>>>1;J<Kt;){var mt=2*(J+1)-1,ht=I[mt],Nt=mt+1,Ge=I[Nt];if(0>o(ht,H))Nt<we&&0>o(Ge,ht)?(I[J]=Ge,I[Nt]=H,J=Nt):(I[J]=ht,I[mt]=H,J=mt);else if(Nt<we&&0>o(Ge,H))I[J]=Ge,I[Nt]=H,J=Nt;else break e}}return $}function o(I,$){var H=I.sortIndex-$.sortIndex;return H!==0?H:I.id-$.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,g=!1,x=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,_=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(I){for(var $=n(d);$!==null;){if($.callback===null)r(d);else if($.startTime<=I)r(d),$.sortIndex=$.expirationTime,t(c,$);else break;$=n(d)}}function S(I){if(y=!1,v(I),!x)if(n(c)!==null)x=!0,Q(E);else{var $=n(d);$!==null&&pe(S,$.startTime-I)}}function E(I,$){x=!1,y&&(y=!1,h(T),T=-1),g=!0;var H=m;try{for(v($),p=n(c);p!==null&&(!(p.expirationTime>$)||I&&!X());){var J=p.callback;if(typeof J=="function"){p.callback=null,m=p.priorityLevel;var we=J(p.expirationTime<=$);$=e.unstable_now(),typeof we=="function"?p.callback=we:p===n(c)&&r(c),v($)}else r(c);p=n(c)}if(p!==null)var Kt=!0;else{var mt=n(d);mt!==null&&pe(S,mt.startTime-$),Kt=!1}return Kt}finally{p=null,m=H,g=!1}}var N=!1,j=null,T=-1,z=5,M=-1;function X(){return!(e.unstable_now()-M<z)}function L(){if(j!==null){var I=e.unstable_now();M=I;var $=!0;try{$=j(!0,I)}finally{$?Z():(N=!1,j=null)}}else N=!1}var Z;if(typeof _=="function")Z=function(){_(L)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ge=se.port2;se.port1.onmessage=L,Z=function(){ge.postMessage(null)}}else Z=function(){w(L,0)};function Q(I){j=I,N||(N=!0,Z())}function pe(I,$){T=w(function(){I(e.unstable_now())},$)}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(I){I.callback=null},e.unstable_continueExecution=function(){x||g||(x=!0,Q(E))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(I){switch(m){case 1:case 2:case 3:var $=3;break;default:$=m}var H=m;m=$;try{return I()}finally{m=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,$){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var H=m;m=I;try{return $()}finally{m=H}},e.unstable_scheduleCallback=function(I,$,H){var J=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?J+H:J):H=J,I){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=H+we,I={id:f++,callback:$,priorityLevel:I,startTime:H,expirationTime:we,sortIndex:-1},H>J?(I.sortIndex=H,t(d,I),n(c)===null&&I===n(d)&&(y?(h(T),T=-1):y=!0,pe(S,H-J))):(I.sortIndex=we,t(c,I),x||g||(x=!0,Q(E))),I},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(I){var $=m;return function(){var H=m;m=$;try{return I.apply(this,arguments)}finally{m=H}}}})(lh);sh.exports=lh;var f1=sh.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 p1=u,kt=f1;function O(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 ih=new Set,ks={};function Or(e,t){Co(e,t),Co(e+"Capture",t)}function Co(e,t){for(ks[e]=t,e=0;e<t.length;e++)ih.add(t[e])}var En=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jc=Object.prototype.hasOwnProperty,m1=/^[: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]*$/,Mf={},$f={};function h1(e){return jc.call($f,e)?!0:jc.call(Mf,e)?!1:m1.test(e)?$f[e]=!0:(Mf[e]=!0,!1)}function _1(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 g1(e,t,n,r){if(t===null||typeof t>"u"||_1(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 ot(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 ot(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 ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new ot(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 ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bu=/[\-:]([a-z])/g;function Wu(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(Bu,Wu);Qe[t]=new ot(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(Bu,Wu);Qe[t]=new ot(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(Bu,Wu);Qe[t]=new ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new ot(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hu(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")&&(g1(t,n,o,r)&&(n=null),r||o===null?h1(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=p1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ul=Symbol.for("react.element"),qr=Symbol.for("react.portal"),eo=Symbol.for("react.fragment"),Uu=Symbol.for("react.strict_mode"),Pc=Symbol.for("react.profiler"),ah=Symbol.for("react.provider"),ch=Symbol.for("react.context"),Yu=Symbol.for("react.forward_ref"),Rc=Symbol.for("react.suspense"),Tc=Symbol.for("react.suspense_list"),Vu=Symbol.for("react.memo"),Wn=Symbol.for("react.lazy"),uh=Symbol.for("react.offscreen"),Df=Symbol.iterator;function Go(e){return e===null||typeof e!="object"?null:(e=Df&&e[Df]||e["@@iterator"],typeof e=="function"?e:null)}var Re=Object.assign,La;function ds(e){if(La===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);La=t&&t[1]||""}return`
|
|
34
|
+
`+La+e}var Ia=!1;function Aa(e,t){if(!e||Ia)return"";Ia=!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{Ia=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ds(e):""}function y1(e){switch(e.tag){case 5:return ds(e.type);case 16:return ds("Lazy");case 13:return ds("Suspense");case 19:return ds("SuspenseList");case 0:case 2:case 15:return e=Aa(e.type,!1),e;case 11:return e=Aa(e.type.render,!1),e;case 1:return e=Aa(e.type,!0),e;default:return""}}function Lc(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 eo:return"Fragment";case qr:return"Portal";case Pc:return"Profiler";case Uu:return"StrictMode";case Rc:return"Suspense";case Tc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ch:return(e.displayName||"Context")+".Consumer";case ah:return(e._context.displayName||"Context")+".Provider";case Yu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vu:return t=e.displayName||null,t!==null?t:Lc(e.type)||"Memo";case Wn:t=e._payload,e=e._init;try{return Lc(e(t))}catch{}}return null}function v1(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 Lc(t);case 8:return t===Uu?"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 rr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function x1(e){var t=dh(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 dl(e){e._valueTracker||(e._valueTracker=x1(e))}function fh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ti(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 Ic(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rr(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 ph(e,t){t=t.checked,t!=null&&Hu(e,"checked",t,!1)}function Ac(e,t){ph(e,t);var n=rr(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")?Oc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Oc(e,t.type,rr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ff(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 Oc(e,t,n){(t!=="number"||ti(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var fs=Array.isArray;function fo(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=""+rr(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 Mc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return Re({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Bf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(fs(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:rr(n)}}function mh(e,t){var n=rr(t.value),r=rr(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 Wf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function hh(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 $c(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?hh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fl,_h=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(fl=fl||document.createElement("div"),fl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ss(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hs={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},w1=["Webkit","ms","Moz","O"];Object.keys(hs).forEach(function(e){w1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hs[t]=hs[e]})});function gh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hs.hasOwnProperty(e)&&hs[e]?(""+t).trim():t+"px"}function yh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=gh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var b1=Re({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 Dc(e,t){if(t){if(b1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function zc(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 Fc=null;function Xu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bc=null,po=null,mo=null;function Hf(e){if(e=Qs(e)){if(typeof Bc!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Bi(t),Bc(e.stateNode,e.type,t))}}function vh(e){po?mo?mo.push(e):mo=[e]:po=e}function xh(){if(po){var e=po,t=mo;if(mo=po=null,Hf(e),t)for(e=0;e<t.length;e++)Hf(t[e])}}function wh(e,t){return e(t)}function bh(){}var Oa=!1;function Ch(e,t,n){if(Oa)return e(t,n);Oa=!0;try{return wh(e,t,n)}finally{Oa=!1,(po!==null||mo!==null)&&(bh(),xh())}}function Es(e,t){var n=e.stateNode;if(n===null)return null;var r=Bi(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(O(231,t,typeof n));return n}var Wc=!1;if(En)try{var Ko={};Object.defineProperty(Ko,"passive",{get:function(){Wc=!0}}),window.addEventListener("test",Ko,Ko),window.removeEventListener("test",Ko,Ko)}catch{Wc=!1}function C1(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 _s=!1,ni=null,ri=!1,Hc=null,k1={onError:function(e){_s=!0,ni=e}};function S1(e,t,n,r,o,s,l,i,c){_s=!1,ni=null,C1.apply(k1,arguments)}function E1(e,t,n,r,o,s,l,i,c){if(S1.apply(this,arguments),_s){if(_s){var d=ni;_s=!1,ni=null}else throw Error(O(198));ri||(ri=!0,Hc=d)}}function Mr(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 kh(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 Uf(e){if(Mr(e)!==e)throw Error(O(188))}function N1(e){var t=e.alternate;if(!t){if(t=Mr(e),t===null)throw Error(O(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 Uf(o),e;if(s===r)return Uf(o),t;s=s.sibling}throw Error(O(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(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function Sh(e){return e=N1(e),e!==null?Eh(e):null}function Eh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Eh(e);if(t!==null)return t;e=e.sibling}return null}var Nh=kt.unstable_scheduleCallback,Yf=kt.unstable_cancelCallback,j1=kt.unstable_shouldYield,P1=kt.unstable_requestPaint,Ae=kt.unstable_now,R1=kt.unstable_getCurrentPriorityLevel,Qu=kt.unstable_ImmediatePriority,jh=kt.unstable_UserBlockingPriority,oi=kt.unstable_NormalPriority,T1=kt.unstable_LowPriority,Ph=kt.unstable_IdlePriority,$i=null,an=null;function L1(e){if(an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot($i,e,void 0,(e.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:O1,I1=Math.log,A1=Math.LN2;function O1(e){return e>>>=0,e===0?32:31-(I1(e)/A1|0)|0}var pl=64,ml=4194304;function ps(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 si(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=ps(i):(s&=l,s!==0&&(r=ps(s)))}else l=n&~o,l!==0?r=ps(l):s!==0&&(r=ps(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-Ht(t),o=1<<n,r|=e[n],t&=~o;return r}function M1(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 $1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ht(s),i=1<<l,c=o[l];c===-1?(!(i&n)||i&r)&&(o[l]=M1(i,t)):c<=t&&(e.expiredLanes|=i),s&=~i}}function Uc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rh(){var e=pl;return pl<<=1,!(pl&4194240)&&(pl=64),e}function Ma(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ht(t),e[t]=n}function D1(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-Ht(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function Gu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ht(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var _e=0;function Th(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Lh,Ku,Ih,Ah,Oh,Yc=!1,hl=[],Gn=null,Kn=null,Zn=null,Ns=new Map,js=new Map,Un=[],z1="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 Vf(e,t){switch(e){case"focusin":case"focusout":Gn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Zn=null;break;case"pointerover":case"pointerout":Ns.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":js.delete(t.pointerId)}}function Zo(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=Qs(t),t!==null&&Ku(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function F1(e,t,n,r,o){switch(t){case"focusin":return Gn=Zo(Gn,e,t,n,r,o),!0;case"dragenter":return Kn=Zo(Kn,e,t,n,r,o),!0;case"mouseover":return Zn=Zo(Zn,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Ns.set(s,Zo(Ns.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,js.set(s,Zo(js.get(s)||null,e,t,n,r,o)),!0}return!1}function Mh(e){var t=wr(e.target);if(t!==null){var n=Mr(t);if(n!==null){if(t=n.tag,t===13){if(t=kh(n),t!==null){e.blockedOn=t,Oh(e.priority,function(){Ih(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 Bl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Fc=r,n.target.dispatchEvent(r),Fc=null}else return t=Qs(n),t!==null&&Ku(t),e.blockedOn=n,!1;t.shift()}return!0}function Xf(e,t,n){Bl(e)&&n.delete(t)}function B1(){Yc=!1,Gn!==null&&Bl(Gn)&&(Gn=null),Kn!==null&&Bl(Kn)&&(Kn=null),Zn!==null&&Bl(Zn)&&(Zn=null),Ns.forEach(Xf),js.forEach(Xf)}function Jo(e,t){e.blockedOn===t&&(e.blockedOn=null,Yc||(Yc=!0,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,B1)))}function Ps(e){function t(o){return Jo(o,e)}if(0<hl.length){Jo(hl[0],e);for(var n=1;n<hl.length;n++){var r=hl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Gn!==null&&Jo(Gn,e),Kn!==null&&Jo(Kn,e),Zn!==null&&Jo(Zn,e),Ns.forEach(t),js.forEach(t),n=0;n<Un.length;n++)r=Un[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Un.length&&(n=Un[0],n.blockedOn===null);)Mh(n),n.blockedOn===null&&Un.shift()}var ho=In.ReactCurrentBatchConfig,li=!0;function W1(e,t,n,r){var o=_e,s=ho.transition;ho.transition=null;try{_e=1,Zu(e,t,n,r)}finally{_e=o,ho.transition=s}}function H1(e,t,n,r){var o=_e,s=ho.transition;ho.transition=null;try{_e=4,Zu(e,t,n,r)}finally{_e=o,ho.transition=s}}function Zu(e,t,n,r){if(li){var o=Vc(e,t,n,r);if(o===null)Va(e,t,r,ii,n),Vf(e,r);else if(F1(o,e,t,n,r))r.stopPropagation();else if(Vf(e,r),t&4&&-1<z1.indexOf(e)){for(;o!==null;){var s=Qs(o);if(s!==null&&Lh(s),s=Vc(e,t,n,r),s===null&&Va(e,t,r,ii,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Va(e,t,r,null,n)}}var ii=null;function Vc(e,t,n,r){if(ii=null,e=Xu(r),e=wr(e),e!==null)if(t=Mr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=kh(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 ii=e,null}function $h(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(R1()){case Qu:return 1;case jh:return 4;case oi:case T1:return 16;case Ph:return 536870912;default:return 16}default:return 16}}var Vn=null,Ju=null,Wl=null;function Dh(){if(Wl)return Wl;var e,t=Ju,n=t.length,r,o="value"in Vn?Vn.value:Vn.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 Wl=o.slice(e,1<r?1-r:void 0)}function Hl(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 _l(){return!0}function Qf(){return!1}function Et(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)?_l:Qf,this.isPropagationStopped=Qf,this}return Re(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=_l)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=_l)},persist:function(){},isPersistent:_l}),t}var Mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qu=Et(Mo),Xs=Re({},Mo,{view:0,detail:0}),U1=Et(Xs),$a,Da,qo,Di=Re({},Xs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ed,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!==qo&&(qo&&e.type==="mousemove"?($a=e.screenX-qo.screenX,Da=e.screenY-qo.screenY):Da=$a=0,qo=e),$a)},movementY:function(e){return"movementY"in e?e.movementY:Da}}),Gf=Et(Di),Y1=Re({},Di,{dataTransfer:0}),V1=Et(Y1),X1=Re({},Xs,{relatedTarget:0}),za=Et(X1),Q1=Re({},Mo,{animationName:0,elapsedTime:0,pseudoElement:0}),G1=Et(Q1),K1=Re({},Mo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Z1=Et(K1),J1=Re({},Mo,{data:0}),Kf=Et(J1),q1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ev={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"},tv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tv[e])?!!t[e]:!1}function ed(){return nv}var rv=Re({},Xs,{key:function(e){if(e.key){var t=q1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ev[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ed,charCode:function(e){return e.type==="keypress"?Hl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ov=Et(rv),sv=Re({},Di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zf=Et(sv),lv=Re({},Xs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ed}),iv=Et(lv),av=Re({},Mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),cv=Et(av),uv=Re({},Di,{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}),dv=Et(uv),fv=[9,13,27,32],td=En&&"CompositionEvent"in window,gs=null;En&&"documentMode"in document&&(gs=document.documentMode);var pv=En&&"TextEvent"in window&&!gs,zh=En&&(!td||gs&&8<gs&&11>=gs),Jf=" ",qf=!1;function Fh(e,t){switch(e){case"keyup":return fv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var to=!1;function mv(e,t){switch(e){case"compositionend":return Bh(t);case"keypress":return t.which!==32?null:(qf=!0,Jf);case"textInput":return e=t.data,e===Jf&&qf?null:e;default:return null}}function hv(e,t){if(to)return e==="compositionend"||!td&&Fh(e,t)?(e=Dh(),Wl=Ju=Vn=null,to=!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 zh&&t.locale!=="ko"?null:t.data;default:return null}}var _v={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 ep(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_v[e.type]:t==="textarea"}function Wh(e,t,n,r){vh(r),t=ai(t,"onChange"),0<t.length&&(n=new qu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ys=null,Rs=null;function gv(e){qh(e,0)}function zi(e){var t=oo(e);if(fh(t))return e}function yv(e,t){if(e==="change")return t}var Hh=!1;if(En){var Fa;if(En){var Ba="oninput"in document;if(!Ba){var tp=document.createElement("div");tp.setAttribute("oninput","return;"),Ba=typeof tp.oninput=="function"}Fa=Ba}else Fa=!1;Hh=Fa&&(!document.documentMode||9<document.documentMode)}function np(){ys&&(ys.detachEvent("onpropertychange",Uh),Rs=ys=null)}function Uh(e){if(e.propertyName==="value"&&zi(Rs)){var t=[];Wh(t,Rs,e,Xu(e)),Ch(gv,t)}}function vv(e,t,n){e==="focusin"?(np(),ys=t,Rs=n,ys.attachEvent("onpropertychange",Uh)):e==="focusout"&&np()}function xv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zi(Rs)}function wv(e,t){if(e==="click")return zi(t)}function bv(e,t){if(e==="input"||e==="change")return zi(t)}function Cv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vt=typeof Object.is=="function"?Object.is:Cv;function Ts(e,t){if(Vt(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(!jc.call(t,o)||!Vt(e[o],t[o]))return!1}return!0}function rp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function op(e,t){var n=rp(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=rp(n)}}function Yh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vh(){for(var e=window,t=ti();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ti(e.document)}return t}function nd(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 kv(e){var t=Vh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Yh(n.ownerDocument.documentElement,n)){if(r!==null&&nd(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=op(n,s);var l=op(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 Sv=En&&"documentMode"in document&&11>=document.documentMode,no=null,Xc=null,vs=null,Qc=!1;function sp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qc||no==null||no!==ti(r)||(r=no,"selectionStart"in r&&nd(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}),vs&&Ts(vs,r)||(vs=r,r=ai(Xc,"onSelect"),0<r.length&&(t=new qu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=no)))}function gl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ro={animationend:gl("Animation","AnimationEnd"),animationiteration:gl("Animation","AnimationIteration"),animationstart:gl("Animation","AnimationStart"),transitionend:gl("Transition","TransitionEnd")},Wa={},Xh={};En&&(Xh=document.createElement("div").style,"AnimationEvent"in window||(delete ro.animationend.animation,delete ro.animationiteration.animation,delete ro.animationstart.animation),"TransitionEvent"in window||delete ro.transitionend.transition);function Fi(e){if(Wa[e])return Wa[e];if(!ro[e])return e;var t=ro[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xh)return Wa[e]=t[n];return e}var Qh=Fi("animationend"),Gh=Fi("animationiteration"),Kh=Fi("animationstart"),Zh=Fi("transitionend"),Jh=new Map,lp="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 ir(e,t){Jh.set(e,t),Or(t,[e])}for(var Ha=0;Ha<lp.length;Ha++){var Ua=lp[Ha],Ev=Ua.toLowerCase(),Nv=Ua[0].toUpperCase()+Ua.slice(1);ir(Ev,"on"+Nv)}ir(Qh,"onAnimationEnd");ir(Gh,"onAnimationIteration");ir(Kh,"onAnimationStart");ir("dblclick","onDoubleClick");ir("focusin","onFocus");ir("focusout","onBlur");ir(Zh,"onTransitionEnd");Co("onMouseEnter",["mouseout","mouseover"]);Co("onMouseLeave",["mouseout","mouseover"]);Co("onPointerEnter",["pointerout","pointerover"]);Co("onPointerLeave",["pointerout","pointerover"]);Or("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Or("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Or("onBeforeInput",["compositionend","keypress","textInput","paste"]);Or("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Or("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Or("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ms="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(" "),jv=new Set("cancel close invalid load scroll toggle".split(" ").concat(ms));function ip(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,E1(r,t,void 0,e),e.currentTarget=null}function qh(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;ip(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;ip(o,i,d),s=c}}}if(ri)throw e=Hc,ri=!1,Hc=null,e}function Ce(e,t){var n=t[qc];n===void 0&&(n=t[qc]=new Set);var r=e+"__bubble";n.has(r)||(e_(t,e,2,!1),n.add(r))}function Ya(e,t,n){var r=0;t&&(r|=4),e_(n,e,r,t)}var yl="_reactListening"+Math.random().toString(36).slice(2);function Ls(e){if(!e[yl]){e[yl]=!0,ih.forEach(function(n){n!=="selectionchange"&&(jv.has(n)||Ya(n,!1,e),Ya(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yl]||(t[yl]=!0,Ya("selectionchange",!1,t))}}function e_(e,t,n,r){switch($h(t)){case 1:var o=W1;break;case 4:o=H1;break;default:o=Zu}n=o.bind(null,t,n,e),o=void 0,!Wc||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 Va(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=wr(i),l===null)return;if(c=l.tag,c===5||c===6){r=s=l;continue e}i=i.parentNode}}r=r.return}Ch(function(){var d=s,f=Xu(n),p=[];e:{var m=Jh.get(e);if(m!==void 0){var g=qu,x=e;switch(e){case"keypress":if(Hl(n)===0)break e;case"keydown":case"keyup":g=ov;break;case"focusin":x="focus",g=za;break;case"focusout":x="blur",g=za;break;case"beforeblur":case"afterblur":g=za;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":g=Gf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=V1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=iv;break;case Qh:case Gh:case Kh:g=G1;break;case Zh:g=cv;break;case"scroll":g=U1;break;case"wheel":g=dv;break;case"copy":case"cut":case"paste":g=Z1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Zf}var y=(t&4)!==0,w=!y&&e==="scroll",h=y?m!==null?m+"Capture":null:m;y=[];for(var _=d,v;_!==null;){v=_;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,h!==null&&(S=Es(_,h),S!=null&&y.push(Is(_,S,v)))),w)break;_=_.return}0<y.length&&(m=new g(m,x,null,n,f),p.push({event:m,listeners:y}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",m&&n!==Fc&&(x=n.relatedTarget||n.fromElement)&&(wr(x)||x[Nn]))break e;if((g||m)&&(m=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,g?(x=n.relatedTarget||n.toElement,g=d,x=x?wr(x):null,x!==null&&(w=Mr(x),x!==w||x.tag!==5&&x.tag!==6)&&(x=null)):(g=null,x=d),g!==x)){if(y=Gf,S="onMouseLeave",h="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(y=Zf,S="onPointerLeave",h="onPointerEnter",_="pointer"),w=g==null?m:oo(g),v=x==null?m:oo(x),m=new y(S,_+"leave",g,n,f),m.target=w,m.relatedTarget=v,S=null,wr(f)===d&&(y=new y(h,_+"enter",x,n,f),y.target=v,y.relatedTarget=w,S=y),w=S,g&&x)t:{for(y=g,h=x,_=0,v=y;v;v=Vr(v))_++;for(v=0,S=h;S;S=Vr(S))v++;for(;0<_-v;)y=Vr(y),_--;for(;0<v-_;)h=Vr(h),v--;for(;_--;){if(y===h||h!==null&&y===h.alternate)break t;y=Vr(y),h=Vr(h)}y=null}else y=null;g!==null&&ap(p,m,g,y,!1),x!==null&&w!==null&&ap(p,w,x,y,!0)}}e:{if(m=d?oo(d):window,g=m.nodeName&&m.nodeName.toLowerCase(),g==="select"||g==="input"&&m.type==="file")var E=yv;else if(ep(m))if(Hh)E=bv;else{E=xv;var N=vv}else(g=m.nodeName)&&g.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(E=wv);if(E&&(E=E(e,d))){Wh(p,E,n,f);break e}N&&N(e,m,d),e==="focusout"&&(N=m._wrapperState)&&N.controlled&&m.type==="number"&&Oc(m,"number",m.value)}switch(N=d?oo(d):window,e){case"focusin":(ep(N)||N.contentEditable==="true")&&(no=N,Xc=d,vs=null);break;case"focusout":vs=Xc=no=null;break;case"mousedown":Qc=!0;break;case"contextmenu":case"mouseup":case"dragend":Qc=!1,sp(p,n,f);break;case"selectionchange":if(Sv)break;case"keydown":case"keyup":sp(p,n,f)}var j;if(td)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else to?Fh(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(zh&&n.locale!=="ko"&&(to||T!=="onCompositionStart"?T==="onCompositionEnd"&&to&&(j=Dh()):(Vn=f,Ju="value"in Vn?Vn.value:Vn.textContent,to=!0)),N=ai(d,T),0<N.length&&(T=new Kf(T,e,null,n,f),p.push({event:T,listeners:N}),j?T.data=j:(j=Bh(n),j!==null&&(T.data=j)))),(j=pv?mv(e,n):hv(e,n))&&(d=ai(d,"onBeforeInput"),0<d.length&&(f=new Kf("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:d}),f.data=j))}qh(p,t)})}function Is(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ai(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Es(e,n),s!=null&&r.unshift(Is(e,s,o)),s=Es(e,t),s!=null&&r.push(Is(e,s,o))),e=e.return}return r}function Vr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ap(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=Es(n,s),c!=null&&l.unshift(Is(n,c,i))):o||(c=Es(n,s),c!=null&&l.push(Is(n,c,i)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Pv=/\r\n?/g,Rv=/\u0000|\uFFFD/g;function cp(e){return(typeof e=="string"?e:""+e).replace(Pv,`
|
|
38
|
+
`).replace(Rv,"")}function vl(e,t,n){if(t=cp(t),cp(e)!==t&&n)throw Error(O(425))}function ci(){}var Gc=null,Kc=null;function Zc(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 Jc=typeof setTimeout=="function"?setTimeout:void 0,Tv=typeof clearTimeout=="function"?clearTimeout:void 0,up=typeof Promise=="function"?Promise:void 0,Lv=typeof queueMicrotask=="function"?queueMicrotask:typeof up<"u"?function(e){return up.resolve(null).then(e).catch(Iv)}:Jc;function Iv(e){setTimeout(function(){throw e})}function Xa(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),Ps(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ps(t)}function Jn(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 dp(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 $o=Math.random().toString(36).slice(2),on="__reactFiber$"+$o,As="__reactProps$"+$o,Nn="__reactContainer$"+$o,qc="__reactEvents$"+$o,Av="__reactListeners$"+$o,Ov="__reactHandles$"+$o;function wr(e){var t=e[on];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nn]||n[on]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=dp(e);e!==null;){if(n=e[on])return n;e=dp(e)}return t}e=n,n=e.parentNode}return null}function Qs(e){return e=e[on]||e[Nn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function oo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function Bi(e){return e[As]||null}var eu=[],so=-1;function ar(e){return{current:e}}function ke(e){0>so||(e.current=eu[so],eu[so]=null,so--)}function xe(e,t){so++,eu[so]=e.current,e.current=t}var or={},qe=ar(or),dt=ar(!1),jr=or;function ko(e,t){var n=e.type.contextTypes;if(!n)return or;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 ft(e){return e=e.childContextTypes,e!=null}function ui(){ke(dt),ke(qe)}function fp(e,t,n){if(qe.current!==or)throw Error(O(168));xe(qe,t),xe(dt,n)}function t_(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(O(108,v1(e)||"Unknown",o));return Re({},n,r)}function di(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||or,jr=qe.current,xe(qe,e),xe(dt,dt.current),!0}function pp(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=t_(e,t,jr),r.__reactInternalMemoizedMergedChildContext=e,ke(dt),ke(qe),xe(qe,e)):ke(dt),xe(dt,n)}var bn=null,Wi=!1,Qa=!1;function n_(e){bn===null?bn=[e]:bn.push(e)}function Mv(e){Wi=!0,n_(e)}function cr(){if(!Qa&&bn!==null){Qa=!0;var e=0,t=_e;try{var n=bn;for(_e=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}bn=null,Wi=!1}catch(o){throw bn!==null&&(bn=bn.slice(e+1)),Nh(Qu,cr),o}finally{_e=t,Qa=!1}}return null}var lo=[],io=0,fi=null,pi=0,Rt=[],Tt=0,Pr=null,Cn=1,kn="";function yr(e,t){lo[io++]=pi,lo[io++]=fi,fi=e,pi=t}function r_(e,t,n){Rt[Tt++]=Cn,Rt[Tt++]=kn,Rt[Tt++]=Pr,Pr=e;var r=Cn;e=kn;var o=32-Ht(r)-1;r&=~(1<<o),n+=1;var s=32-Ht(t)+o;if(30<s){var l=o-o%5;s=(r&(1<<l)-1).toString(32),r>>=l,o-=l,Cn=1<<32-Ht(t)+o|n<<o|r,kn=s+e}else Cn=1<<s|n<<o|r,kn=e}function rd(e){e.return!==null&&(yr(e,1),r_(e,1,0))}function od(e){for(;e===fi;)fi=lo[--io],lo[io]=null,pi=lo[--io],lo[io]=null;for(;e===Pr;)Pr=Rt[--Tt],Rt[Tt]=null,kn=Rt[--Tt],Rt[Tt]=null,Cn=Rt[--Tt],Rt[Tt]=null}var bt=null,wt=null,Ee=!1,Bt=null;function o_(e,t){var n=Lt(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 mp(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,bt=e,wt=Jn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,bt=e,wt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Pr!==null?{id:Cn,overflow:kn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Lt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,bt=e,wt=null,!0):!1;default:return!1}}function tu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function nu(e){if(Ee){var t=wt;if(t){var n=t;if(!mp(e,t)){if(tu(e))throw Error(O(418));t=Jn(n.nextSibling);var r=bt;t&&mp(e,t)?o_(r,n):(e.flags=e.flags&-4097|2,Ee=!1,bt=e)}}else{if(tu(e))throw Error(O(418));e.flags=e.flags&-4097|2,Ee=!1,bt=e}}}function hp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;bt=e}function xl(e){if(e!==bt)return!1;if(!Ee)return hp(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Zc(e.type,e.memoizedProps)),t&&(t=wt)){if(tu(e))throw s_(),Error(O(418));for(;t;)o_(e,t),t=Jn(t.nextSibling)}if(hp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){wt=Jn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}wt=null}}else wt=bt?Jn(e.stateNode.nextSibling):null;return!0}function s_(){for(var e=wt;e;)e=Jn(e.nextSibling)}function So(){wt=bt=null,Ee=!1}function sd(e){Bt===null?Bt=[e]:Bt.push(e)}var $v=In.ReactCurrentBatchConfig;function es(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(O(309));var r=n.stateNode}if(!r)throw Error(O(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(O(284));if(!n._owner)throw Error(O(290,e))}return e}function wl(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _p(e){var t=e._init;return t(e._payload)}function l_(e){function t(h,_){if(e){var v=h.deletions;v===null?(h.deletions=[_],h.flags|=16):v.push(_)}}function n(h,_){if(!e)return null;for(;_!==null;)t(h,_),_=_.sibling;return null}function r(h,_){for(h=new Map;_!==null;)_.key!==null?h.set(_.key,_):h.set(_.index,_),_=_.sibling;return h}function o(h,_){return h=nr(h,_),h.index=0,h.sibling=null,h}function s(h,_,v){return h.index=v,e?(v=h.alternate,v!==null?(v=v.index,v<_?(h.flags|=2,_):v):(h.flags|=2,_)):(h.flags|=1048576,_)}function l(h){return e&&h.alternate===null&&(h.flags|=2),h}function i(h,_,v,S){return _===null||_.tag!==6?(_=tc(v,h.mode,S),_.return=h,_):(_=o(_,v),_.return=h,_)}function c(h,_,v,S){var E=v.type;return E===eo?f(h,_,v.props.children,S,v.key):_!==null&&(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Wn&&_p(E)===_.type)?(S=o(_,v.props),S.ref=es(h,_,v),S.return=h,S):(S=Kl(v.type,v.key,v.props,null,h.mode,S),S.ref=es(h,_,v),S.return=h,S)}function d(h,_,v,S){return _===null||_.tag!==4||_.stateNode.containerInfo!==v.containerInfo||_.stateNode.implementation!==v.implementation?(_=nc(v,h.mode,S),_.return=h,_):(_=o(_,v.children||[]),_.return=h,_)}function f(h,_,v,S,E){return _===null||_.tag!==7?(_=Sr(v,h.mode,S,E),_.return=h,_):(_=o(_,v),_.return=h,_)}function p(h,_,v){if(typeof _=="string"&&_!==""||typeof _=="number")return _=tc(""+_,h.mode,v),_.return=h,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case ul:return v=Kl(_.type,_.key,_.props,null,h.mode,v),v.ref=es(h,null,_),v.return=h,v;case qr:return _=nc(_,h.mode,v),_.return=h,_;case Wn:var S=_._init;return p(h,S(_._payload),v)}if(fs(_)||Go(_))return _=Sr(_,h.mode,v,null),_.return=h,_;wl(h,_)}return null}function m(h,_,v,S){var E=_!==null?_.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return E!==null?null:i(h,_,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ul:return v.key===E?c(h,_,v,S):null;case qr:return v.key===E?d(h,_,v,S):null;case Wn:return E=v._init,m(h,_,E(v._payload),S)}if(fs(v)||Go(v))return E!==null?null:f(h,_,v,S,null);wl(h,v)}return null}function g(h,_,v,S,E){if(typeof S=="string"&&S!==""||typeof S=="number")return h=h.get(v)||null,i(_,h,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ul:return h=h.get(S.key===null?v:S.key)||null,c(_,h,S,E);case qr:return h=h.get(S.key===null?v:S.key)||null,d(_,h,S,E);case Wn:var N=S._init;return g(h,_,v,N(S._payload),E)}if(fs(S)||Go(S))return h=h.get(v)||null,f(_,h,S,E,null);wl(_,S)}return null}function x(h,_,v,S){for(var E=null,N=null,j=_,T=_=0,z=null;j!==null&&T<v.length;T++){j.index>T?(z=j,j=null):z=j.sibling;var M=m(h,j,v[T],S);if(M===null){j===null&&(j=z);break}e&&j&&M.alternate===null&&t(h,j),_=s(M,_,T),N===null?E=M:N.sibling=M,N=M,j=z}if(T===v.length)return n(h,j),Ee&&yr(h,T),E;if(j===null){for(;T<v.length;T++)j=p(h,v[T],S),j!==null&&(_=s(j,_,T),N===null?E=j:N.sibling=j,N=j);return Ee&&yr(h,T),E}for(j=r(h,j);T<v.length;T++)z=g(j,h,T,v[T],S),z!==null&&(e&&z.alternate!==null&&j.delete(z.key===null?T:z.key),_=s(z,_,T),N===null?E=z:N.sibling=z,N=z);return e&&j.forEach(function(X){return t(h,X)}),Ee&&yr(h,T),E}function y(h,_,v,S){var E=Go(v);if(typeof E!="function")throw Error(O(150));if(v=E.call(v),v==null)throw Error(O(151));for(var N=E=null,j=_,T=_=0,z=null,M=v.next();j!==null&&!M.done;T++,M=v.next()){j.index>T?(z=j,j=null):z=j.sibling;var X=m(h,j,M.value,S);if(X===null){j===null&&(j=z);break}e&&j&&X.alternate===null&&t(h,j),_=s(X,_,T),N===null?E=X:N.sibling=X,N=X,j=z}if(M.done)return n(h,j),Ee&&yr(h,T),E;if(j===null){for(;!M.done;T++,M=v.next())M=p(h,M.value,S),M!==null&&(_=s(M,_,T),N===null?E=M:N.sibling=M,N=M);return Ee&&yr(h,T),E}for(j=r(h,j);!M.done;T++,M=v.next())M=g(j,h,T,M.value,S),M!==null&&(e&&M.alternate!==null&&j.delete(M.key===null?T:M.key),_=s(M,_,T),N===null?E=M:N.sibling=M,N=M);return e&&j.forEach(function(L){return t(h,L)}),Ee&&yr(h,T),E}function w(h,_,v,S){if(typeof v=="object"&&v!==null&&v.type===eo&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ul:e:{for(var E=v.key,N=_;N!==null;){if(N.key===E){if(E=v.type,E===eo){if(N.tag===7){n(h,N.sibling),_=o(N,v.props.children),_.return=h,h=_;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Wn&&_p(E)===N.type){n(h,N.sibling),_=o(N,v.props),_.ref=es(h,N,v),_.return=h,h=_;break e}n(h,N);break}else t(h,N);N=N.sibling}v.type===eo?(_=Sr(v.props.children,h.mode,S,v.key),_.return=h,h=_):(S=Kl(v.type,v.key,v.props,null,h.mode,S),S.ref=es(h,_,v),S.return=h,h=S)}return l(h);case qr:e:{for(N=v.key;_!==null;){if(_.key===N)if(_.tag===4&&_.stateNode.containerInfo===v.containerInfo&&_.stateNode.implementation===v.implementation){n(h,_.sibling),_=o(_,v.children||[]),_.return=h,h=_;break e}else{n(h,_);break}else t(h,_);_=_.sibling}_=nc(v,h.mode,S),_.return=h,h=_}return l(h);case Wn:return N=v._init,w(h,_,N(v._payload),S)}if(fs(v))return x(h,_,v,S);if(Go(v))return y(h,_,v,S);wl(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,_!==null&&_.tag===6?(n(h,_.sibling),_=o(_,v),_.return=h,h=_):(n(h,_),_=tc(v,h.mode,S),_.return=h,h=_),l(h)):n(h,_)}return w}var Eo=l_(!0),i_=l_(!1),mi=ar(null),hi=null,ao=null,ld=null;function id(){ld=ao=hi=null}function ad(e){var t=mi.current;ke(mi),e._currentValue=t}function ru(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 _o(e,t){hi=e,ld=ao=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ut=!0),e.firstContext=null)}function At(e){var t=e._currentValue;if(ld!==e)if(e={context:e,memoizedValue:t,next:null},ao===null){if(hi===null)throw Error(O(308));ao=e,hi.dependencies={lanes:0,firstContext:e}}else ao=ao.next=e;return t}var br=null;function cd(e){br===null?br=[e]:br.push(e)}function a_(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,cd(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 Hn=!1;function ud(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function c_(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 qn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,fe&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,cd(r)):(t.next=o.next,o.next=t),r.interleaved=t,jn(e,n)}function Ul(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,Gu(e,n)}}function gp(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 _i(e,t,n,r){var o=e.updateQueue;Hn=!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,g=i.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var x=e,y=i;switch(m=t,g=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){p=x.call(g,p,m);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,m=typeof x=="function"?x.call(g,p,m):x,m==null)break e;p=Re({},p,m);break e;case 2:Hn=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[i]:m.push(i))}else g={eventTime:g,lane:m,tag:i.tag,payload:i.payload,callback:i.callback,next:null},f===null?(d=f=g,c=p):f=f.next=g,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);Tr|=l,e.lanes=l,e.memoizedState=p}}function yp(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(O(191,o));o.call(r)}}}var Gs={},cn=ar(Gs),Os=ar(Gs),Ms=ar(Gs);function Cr(e){if(e===Gs)throw Error(O(174));return e}function dd(e,t){switch(xe(Ms,t),xe(Os,e),xe(cn,Gs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$c(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$c(t,e)}ke(cn),xe(cn,t)}function No(){ke(cn),ke(Os),ke(Ms)}function u_(e){Cr(Ms.current);var t=Cr(cn.current),n=$c(t,e.type);t!==n&&(xe(Os,e),xe(cn,n))}function fd(e){Os.current===e&&(ke(cn),ke(Os))}var je=ar(0);function gi(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 Ga=[];function pd(){for(var e=0;e<Ga.length;e++)Ga[e]._workInProgressVersionPrimary=null;Ga.length=0}var Yl=In.ReactCurrentDispatcher,Ka=In.ReactCurrentBatchConfig,Rr=0,Pe=null,Fe=null,Ue=null,yi=!1,xs=!1,$s=0,Dv=0;function Ke(){throw Error(O(321))}function md(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vt(e[n],t[n]))return!1;return!0}function hd(e,t,n,r,o,s){if(Rr=s,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yl.current=e===null||e.memoizedState===null?Wv:Hv,e=n(r,o),xs){s=0;do{if(xs=!1,$s=0,25<=s)throw Error(O(301));s+=1,Ue=Fe=null,t.updateQueue=null,Yl.current=Uv,e=n(r,o)}while(xs)}if(Yl.current=vi,t=Fe!==null&&Fe.next!==null,Rr=0,Ue=Fe=Pe=null,yi=!1,t)throw Error(O(300));return e}function _d(){var e=$s!==0;return $s=0,e}function rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?Pe.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function Ot(){if(Fe===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=Ue===null?Pe.memoizedState:Ue.next;if(t!==null)Ue=t,Fe=e;else{if(e===null)throw Error(O(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},Ue===null?Pe.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function Ds(e,t){return typeof t=="function"?t(e):t}function Za(e){var t=Ot(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=Fe,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((Rr&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,Pe.lanes|=f,Tr|=f}d=d.next}while(d!==null&&d!==s);c===null?l=r:c.next=i,Vt(r,t.memoizedState)||(ut=!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,Pe.lanes|=s,Tr|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ja(e){var t=Ot(),n=t.queue;if(n===null)throw Error(O(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);Vt(s,t.memoizedState)||(ut=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function d_(){}function f_(e,t){var n=Pe,r=Ot(),o=t(),s=!Vt(r.memoizedState,o);if(s&&(r.memoizedState=o,ut=!0),r=r.queue,gd(h_.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ue!==null&&Ue.memoizedState.tag&1){if(n.flags|=2048,zs(9,m_.bind(null,n,r,o,t),void 0,null),Ye===null)throw Error(O(349));Rr&30||p_(n,t,o)}return o}function p_(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function m_(e,t,n,r){t.value=n,t.getSnapshot=r,__(t)&&g_(e)}function h_(e,t,n){return n(function(){__(t)&&g_(e)})}function __(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vt(e,n)}catch{return!0}}function g_(e){var t=jn(e,1);t!==null&&Ut(t,e,1,-1)}function vp(e){var t=rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:e},t.queue=e,e=e.dispatch=Bv.bind(null,Pe,e),[t.memoizedState,e]}function zs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.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 y_(){return Ot().memoizedState}function Vl(e,t,n,r){var o=rn();Pe.flags|=e,o.memoizedState=zs(1|t,n,void 0,r===void 0?null:r)}function Hi(e,t,n,r){var o=Ot();r=r===void 0?null:r;var s=void 0;if(Fe!==null){var l=Fe.memoizedState;if(s=l.destroy,r!==null&&md(r,l.deps)){o.memoizedState=zs(t,n,s,r);return}}Pe.flags|=e,o.memoizedState=zs(1|t,n,s,r)}function xp(e,t){return Vl(8390656,8,e,t)}function gd(e,t){return Hi(2048,8,e,t)}function v_(e,t){return Hi(4,2,e,t)}function x_(e,t){return Hi(4,4,e,t)}function w_(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 b_(e,t,n){return n=n!=null?n.concat([e]):null,Hi(4,4,w_.bind(null,t,e),n)}function yd(){}function C_(e,t){var n=Ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&md(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function k_(e,t){var n=Ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&md(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function S_(e,t,n){return Rr&21?(Vt(n,t)||(n=Rh(),Pe.lanes|=n,Tr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ut=!0),e.memoizedState=n)}function zv(e,t){var n=_e;_e=n!==0&&4>n?n:4,e(!0);var r=Ka.transition;Ka.transition={};try{e(!1),t()}finally{_e=n,Ka.transition=r}}function E_(){return Ot().memoizedState}function Fv(e,t,n){var r=tr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},N_(e))j_(t,n);else if(n=a_(e,t,n,r),n!==null){var o=nt();Ut(n,e,r,o),P_(n,t,r)}}function Bv(e,t,n){var r=tr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(N_(e))j_(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,Vt(i,l)){var c=t.interleaved;c===null?(o.next=o,cd(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=a_(e,t,o,r),n!==null&&(o=nt(),Ut(n,e,r,o),P_(n,t,r))}}function N_(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function j_(e,t){xs=yi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function P_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gu(e,n)}}var vi={readContext:At,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useInsertionEffect:Ke,useLayoutEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useMutableSource:Ke,useSyncExternalStore:Ke,useId:Ke,unstable_isNewReconciler:!1},Wv={readContext:At,useCallback:function(e,t){return rn().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:xp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vl(4194308,4,w_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vl(4,2,e,t)},useMemo:function(e,t){var n=rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rn();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=Fv.bind(null,Pe,e),[r.memoizedState,e]},useRef:function(e){var t=rn();return e={current:e},t.memoizedState=e},useState:vp,useDebugValue:yd,useDeferredValue:function(e){return rn().memoizedState=e},useTransition:function(){var e=vp(!1),t=e[0];return e=zv.bind(null,e[1]),rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Pe,o=rn();if(Ee){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ye===null)throw Error(O(349));Rr&30||p_(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,xp(h_.bind(null,r,s,e),[e]),r.flags|=2048,zs(9,m_.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=rn(),t=Ye.identifierPrefix;if(Ee){var n=kn,r=Cn;n=(r&~(1<<32-Ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$s++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Dv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Hv={readContext:At,useCallback:C_,useContext:At,useEffect:gd,useImperativeHandle:b_,useInsertionEffect:v_,useLayoutEffect:x_,useMemo:k_,useReducer:Za,useRef:y_,useState:function(){return Za(Ds)},useDebugValue:yd,useDeferredValue:function(e){var t=Ot();return S_(t,Fe.memoizedState,e)},useTransition:function(){var e=Za(Ds)[0],t=Ot().memoizedState;return[e,t]},useMutableSource:d_,useSyncExternalStore:f_,useId:E_,unstable_isNewReconciler:!1},Uv={readContext:At,useCallback:C_,useContext:At,useEffect:gd,useImperativeHandle:b_,useInsertionEffect:v_,useLayoutEffect:x_,useMemo:k_,useReducer:Ja,useRef:y_,useState:function(){return Ja(Ds)},useDebugValue:yd,useDeferredValue:function(e){var t=Ot();return Fe===null?t.memoizedState=e:S_(t,Fe.memoizedState,e)},useTransition:function(){var e=Ja(Ds)[0],t=Ot().memoizedState;return[e,t]},useMutableSource:d_,useSyncExternalStore:f_,useId:E_,unstable_isNewReconciler:!1};function zt(e,t){if(e&&e.defaultProps){t=Re({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ou(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ui={isMounted:function(e){return(e=e._reactInternals)?Mr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=nt(),o=tr(e),s=Sn(r,o);s.payload=t,n!=null&&(s.callback=n),t=qn(e,s,o),t!==null&&(Ut(t,e,o,r),Ul(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=nt(),o=tr(e),s=Sn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=qn(e,s,o),t!==null&&(Ut(t,e,o,r),Ul(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=nt(),r=tr(e),o=Sn(n,r);o.tag=2,t!=null&&(o.callback=t),t=qn(e,o,r),t!==null&&(Ut(t,e,r,n),Ul(t,e,r))}};function wp(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?!Ts(n,r)||!Ts(o,s):!0}function R_(e,t,n){var r=!1,o=or,s=t.contextType;return typeof s=="object"&&s!==null?s=At(s):(o=ft(t)?jr:qe.current,r=t.contextTypes,s=(r=r!=null)?ko(e,o):or),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ui,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function bp(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&&Ui.enqueueReplaceState(t,t.state,null)}function su(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ud(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=At(s):(s=ft(t)?jr:qe.current,o.context=ko(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ou(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&&Ui.enqueueReplaceState(o,o.state,null),_i(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function jo(e,t){try{var n="",r=t;do n+=y1(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 qa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function lu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Yv=typeof WeakMap=="function"?WeakMap:Map;function T_(e,t,n){n=Sn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){wi||(wi=!0,_u=r),lu(e,t)},n}function L_(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(){lu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){lu(e,t),typeof r!="function"&&(er===null?er=new Set([this]):er.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Cp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Yv;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=sx.bind(null,e,t,n),t.then(e,e))}function kp(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 Sp(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,qn(n,t,1))),n.lanes|=1),e)}var Vv=In.ReactCurrentOwner,ut=!1;function tt(e,t,n,r){t.child=e===null?i_(t,null,n,r):Eo(t,e.child,n,r)}function Ep(e,t,n,r,o){n=n.render;var s=t.ref;return _o(t,o),r=hd(e,t,n,r,s,o),n=_d(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Pn(e,t,o)):(Ee&&n&&rd(t),t.flags|=1,tt(e,t,r,o),t.child)}function Np(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Ed(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,I_(e,t,s,r,o)):(e=Kl(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:Ts,n(l,r)&&e.ref===t.ref)return Pn(e,t,o)}return t.flags|=1,e=nr(s,r),e.ref=t.ref,e.return=t,t.child=e}function I_(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Ts(s,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(ut=!0);else return t.lanes=e.lanes,Pn(e,t,o)}return iu(e,t,n,r,o)}function A_(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},xe(uo,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,xe(uo,yt),yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,xe(uo,yt),yt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,xe(uo,yt),yt|=r;return tt(e,t,o,n),t.child}function O_(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function iu(e,t,n,r,o){var s=ft(n)?jr:qe.current;return s=ko(t,s),_o(t,o),n=hd(e,t,n,r,s,o),r=_d(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Pn(e,t,o)):(Ee&&r&&rd(t),t.flags|=1,tt(e,t,n,o),t.child)}function jp(e,t,n,r,o){if(ft(n)){var s=!0;di(t)}else s=!1;if(_o(t,o),t.stateNode===null)Xl(e,t),R_(t,n,r),su(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=At(d):(d=ft(n)?jr:qe.current,d=ko(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)&&bp(t,l,r,d),Hn=!1;var m=t.memoizedState;l.state=m,_i(t,r,l,o),c=t.memoizedState,i!==r||m!==c||dt.current||Hn?(typeof f=="function"&&(ou(t,n,f,r),c=t.memoizedState),(i=Hn||wp(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,c_(e,t),i=t.memoizedProps,d=t.type===t.elementType?i:zt(t.type,i),l.props=d,p=t.pendingProps,m=l.context,c=n.contextType,typeof c=="object"&&c!==null?c=At(c):(c=ft(n)?jr:qe.current,c=ko(t,c));var g=n.getDerivedStateFromProps;(f=typeof g=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==p||m!==c)&&bp(t,l,r,c),Hn=!1,m=t.memoizedState,l.state=m,_i(t,r,l,o);var x=t.memoizedState;i!==p||m!==x||dt.current||Hn?(typeof g=="function"&&(ou(t,n,g,r),x=t.memoizedState),(d=Hn||wp(t,n,d,r,m,x,c)||!1)?(f||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,x,c),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,x,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=x),l.props=r,l.state=x,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 au(e,t,n,r,s,o)}function au(e,t,n,r,o,s){O_(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&pp(t,n,!1),Pn(e,t,s);r=t.stateNode,Vv.current=t;var i=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Eo(t,e.child,null,s),t.child=Eo(t,null,i,s)):tt(e,t,i,s),t.memoizedState=r.state,o&&pp(t,n,!0),t.child}function M_(e){var t=e.stateNode;t.pendingContext?fp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&fp(e,t.context,!1),dd(e,t.containerInfo)}function Pp(e,t,n,r,o){return So(),sd(o),t.flags|=256,tt(e,t,n,r),t.child}var cu={dehydrated:null,treeContext:null,retryLane:0};function uu(e){return{baseLanes:e,cachePool:null,transitions:null}}function $_(e,t,n){var r=t.pendingProps,o=je.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),xe(je,o&1),e===null)return nu(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=Xi(l,r,0,null),e=Sr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=uu(n),t.memoizedState=cu,e):vd(t,l));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return Xv(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=nr(o,c),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?s=nr(i,s):(s=Sr(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?uu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=cu,r}return s=e.child,e=s.sibling,r=nr(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 vd(e,t){return t=Xi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bl(e,t,n,r){return r!==null&&sd(r),Eo(t,e.child,null,n),e=vd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xv(e,t,n,r,o,s,l){if(n)return t.flags&256?(t.flags&=-257,r=qa(Error(O(422))),bl(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Xi({mode:"visible",children:r.children},o,0,null),s=Sr(s,o,l,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Eo(t,e.child,null,l),t.child.memoizedState=uu(l),t.memoizedState=cu,s);if(!(t.mode&1))return bl(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,s=Error(O(419)),r=qa(s,r,void 0),bl(e,t,l,r)}if(i=(l&e.childLanes)!==0,ut||i){if(r=Ye,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),Ut(r,e,o,-1))}return Sd(),r=qa(Error(O(421))),bl(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=lx.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,wt=Jn(o.nextSibling),bt=t,Ee=!0,Bt=null,e!==null&&(Rt[Tt++]=Cn,Rt[Tt++]=kn,Rt[Tt++]=Pr,Cn=e.id,kn=e.overflow,Pr=t),t=vd(t,r.children),t.flags|=4096,t)}function Rp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ru(e.return,t,n)}function ec(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 D_(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(tt(e,t,r.children,n),r=je.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&&Rp(e,n,t);else if(e.tag===19)Rp(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(xe(je,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&&gi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ec(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&&gi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ec(t,!0,n,null,s);break;case"together":ec(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xl(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),Tr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=nr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=nr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Qv(e,t,n){switch(t.tag){case 3:M_(t),So();break;case 5:u_(t);break;case 1:ft(t.type)&&di(t);break;case 4:dd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;xe(mi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(xe(je,je.current&1),t.flags|=128,null):n&t.child.childLanes?$_(e,t,n):(xe(je,je.current&1),e=Pn(e,t,n),e!==null?e.sibling:null);xe(je,je.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return D_(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),xe(je,je.current),r)break;return null;case 22:case 23:return t.lanes=0,A_(e,t,n)}return Pn(e,t,n)}var z_,du,F_,B_;z_=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}};du=function(){};F_=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Cr(cn.current);var s=null;switch(n){case"input":o=Ic(e,o),r=Ic(e,r),s=[];break;case"select":o=Re({},o,{value:void 0}),r=Re({},r,{value:void 0}),s=[];break;case"textarea":o=Mc(e,o),r=Mc(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ci)}Dc(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"&&(ks.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"&&(ks.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&Ce("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)}};B_=function(e,t,n,r){n!==r&&(t.flags|=4)};function ts(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 Ze(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 Gv(e,t,n){var r=t.pendingProps;switch(od(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return ft(t.type)&&ui(),Ze(t),null;case 3:return r=t.stateNode,No(),ke(dt),ke(qe),pd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bt!==null&&(vu(Bt),Bt=null))),du(e,t),Ze(t),null;case 5:fd(t);var o=Cr(Ms.current);if(n=t.type,e!==null&&t.stateNode!=null)F_(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return Ze(t),null}if(e=Cr(cn.current),xl(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[on]=t,r[As]=s,e=(t.mode&1)!==0,n){case"dialog":Ce("cancel",r),Ce("close",r);break;case"iframe":case"object":case"embed":Ce("load",r);break;case"video":case"audio":for(o=0;o<ms.length;o++)Ce(ms[o],r);break;case"source":Ce("error",r);break;case"img":case"image":case"link":Ce("error",r),Ce("load",r);break;case"details":Ce("toggle",r);break;case"input":zf(r,s),Ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ce("invalid",r);break;case"textarea":Bf(r,s),Ce("invalid",r)}Dc(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&&vl(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(s.suppressHydrationWarning!==!0&&vl(r.textContent,i,e),o=["children",""+i]):ks.hasOwnProperty(l)&&i!=null&&l==="onScroll"&&Ce("scroll",r)}switch(n){case"input":dl(r),Ff(r,s,!0);break;case"textarea":dl(r),Wf(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ci)}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=hh(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[on]=t,e[As]=r,z_(e,t,!1,!1),t.stateNode=e;e:{switch(l=zc(n,r),n){case"dialog":Ce("cancel",e),Ce("close",e),o=r;break;case"iframe":case"object":case"embed":Ce("load",e),o=r;break;case"video":case"audio":for(o=0;o<ms.length;o++)Ce(ms[o],e);o=r;break;case"source":Ce("error",e),o=r;break;case"img":case"image":case"link":Ce("error",e),Ce("load",e),o=r;break;case"details":Ce("toggle",e),o=r;break;case"input":zf(e,r),o=Ic(e,r),Ce("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Re({},r,{value:void 0}),Ce("invalid",e);break;case"textarea":Bf(e,r),o=Mc(e,r),Ce("invalid",e);break;default:o=r}Dc(n,o),i=o;for(s in i)if(i.hasOwnProperty(s)){var c=i[s];s==="style"?yh(e,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&_h(e,c)):s==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Ss(e,c):typeof c=="number"&&Ss(e,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ks.hasOwnProperty(s)?c!=null&&s==="onScroll"&&Ce("scroll",e):c!=null&&Hu(e,s,c,l))}switch(n){case"input":dl(e),Ff(e,r,!1);break;case"textarea":dl(e),Wf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+rr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?fo(e,!!r.multiple,s,!1):r.defaultValue!=null&&fo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ci)}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 Ze(t),null;case 6:if(e&&t.stateNode!=null)B_(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=Cr(Ms.current),Cr(cn.current),xl(t)){if(r=t.stateNode,n=t.memoizedProps,r[on]=t,(s=r.nodeValue!==n)&&(e=bt,e!==null))switch(e.tag){case 3:vl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vl(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[on]=t,t.stateNode=r}return Ze(t),null;case 13:if(ke(je),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&wt!==null&&t.mode&1&&!(t.flags&128))s_(),So(),t.flags|=98560,s=!1;else if(s=xl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(O(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(O(317));s[on]=t}else So(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ze(t),s=!1}else Bt!==null&&(vu(Bt),Bt=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||je.current&1?Be===0&&(Be=3):Sd())),t.updateQueue!==null&&(t.flags|=4),Ze(t),null);case 4:return No(),du(e,t),e===null&&Ls(t.stateNode.containerInfo),Ze(t),null;case 10:return ad(t.type._context),Ze(t),null;case 17:return ft(t.type)&&ui(),Ze(t),null;case 19:if(ke(je),s=t.memoizedState,s===null)return Ze(t),null;if(r=(t.flags&128)!==0,l=s.rendering,l===null)if(r)ts(s,!1);else{if(Be!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=gi(e),l!==null){for(t.flags|=128,ts(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 xe(je,je.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ae()>Po&&(t.flags|=128,r=!0,ts(s,!1),t.lanes=4194304)}else{if(!r)if(e=gi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ts(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!Ee)return Ze(t),null}else 2*Ae()-s.renderingStartTime>Po&&n!==1073741824&&(t.flags|=128,r=!0,ts(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=Ae(),t.sibling=null,n=je.current,xe(je,r?n&1|2:n&1),t):(Ze(t),null);case 22:case 23:return kd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function Kv(e,t){switch(od(t),t.tag){case 1:return ft(t.type)&&ui(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return No(),ke(dt),ke(qe),pd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fd(t),null;case 13:if(ke(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));So()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(je),null;case 4:return No(),null;case 10:return ad(t.type._context),null;case 22:case 23:return kd(),null;case 24:return null;default:return null}}var Cl=!1,Je=!1,Zv=typeof WeakSet=="function"?WeakSet:Set,B=null;function co(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function fu(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var Tp=!1;function Jv(e,t){if(Gc=li,e=Vh(),nd(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 g;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),(g=p.firstChild)!==null;)m=p,p=g;for(;;){if(p===e)break t;if(m===n&&++d===o&&(i=l),m===s&&++f===r&&(c=l),(g=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=g}n=i===-1||c===-1?null:{start:i,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kc={focusedElem:e,selectionRange:n},li=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,w=x.memoizedState,h=t.stateNode,_=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:zt(t.type,y),w);h.__reactInternalSnapshotBeforeUpdate=_}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(O(163))}}catch(S){Ie(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return x=Tp,Tp=!1,x}function ws(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&&fu(t,n,s)}o=o.next}while(o!==r)}}function Yi(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 W_(e){var t=e.alternate;t!==null&&(e.alternate=null,W_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[on],delete t[As],delete t[qc],delete t[Av],delete t[Ov])),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 H_(e){return e.tag===5||e.tag===3||e.tag===4}function Lp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||H_(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 mu(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=ci));else if(r!==4&&(e=e.child,e!==null))for(mu(e,t,n),e=e.sibling;e!==null;)mu(e,t,n),e=e.sibling}function hu(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(hu(e,t,n),e=e.sibling;e!==null;)hu(e,t,n),e=e.sibling}var Ve=null,Ft=!1;function $n(e,t,n){for(n=n.child;n!==null;)U_(e,t,n),n=n.sibling}function U_(e,t,n){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount($i,n)}catch{}switch(n.tag){case 5:Je||co(n,t);case 6:var r=Ve,o=Ft;Ve=null,$n(e,t,n),Ve=r,Ft=o,Ve!==null&&(Ft?(e=Ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ve.removeChild(n.stateNode));break;case 18:Ve!==null&&(Ft?(e=Ve,n=n.stateNode,e.nodeType===8?Xa(e.parentNode,n):e.nodeType===1&&Xa(e,n),Ps(e)):Xa(Ve,n.stateNode));break;case 4:r=Ve,o=Ft,Ve=n.stateNode.containerInfo,Ft=!0,$n(e,t,n),Ve=r,Ft=o;break;case 0:case 11:case 14:case 15:if(!Je&&(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)&&fu(n,t,l),o=o.next}while(o!==r)}$n(e,t,n);break;case 1:if(!Je&&(co(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Ie(n,t,i)}$n(e,t,n);break;case 21:$n(e,t,n);break;case 22:n.mode&1?(Je=(r=Je)||n.memoizedState!==null,$n(e,t,n),Je=r):$n(e,t,n);break;default:$n(e,t,n)}}function Ip(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Zv),t.forEach(function(r){var o=ix.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dt(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:Ve=i.stateNode,Ft=!1;break e;case 3:Ve=i.stateNode.containerInfo,Ft=!0;break e;case 4:Ve=i.stateNode.containerInfo,Ft=!0;break e}i=i.return}if(Ve===null)throw Error(O(160));U_(s,l,o),Ve=null,Ft=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(d){Ie(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Y_(t,e),t=t.sibling}function Y_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dt(t,e),tn(e),r&4){try{ws(3,e,e.return),Yi(3,e)}catch(y){Ie(e,e.return,y)}try{ws(5,e,e.return)}catch(y){Ie(e,e.return,y)}}break;case 1:Dt(t,e),tn(e),r&512&&n!==null&&co(n,n.return);break;case 5:if(Dt(t,e),tn(e),r&512&&n!==null&&co(n,n.return),e.flags&32){var o=e.stateNode;try{Ss(o,"")}catch(y){Ie(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&&ph(o,s),zc(i,l);var d=zc(i,s);for(l=0;l<c.length;l+=2){var f=c[l],p=c[l+1];f==="style"?yh(o,p):f==="dangerouslySetInnerHTML"?_h(o,p):f==="children"?Ss(o,p):Hu(o,f,p,d)}switch(i){case"input":Ac(o,s);break;case"textarea":mh(o,s);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?fo(o,!!s.multiple,g,!1):m!==!!s.multiple&&(s.defaultValue!=null?fo(o,!!s.multiple,s.defaultValue,!0):fo(o,!!s.multiple,s.multiple?[]:"",!1))}o[As]=s}catch(y){Ie(e,e.return,y)}}break;case 6:if(Dt(t,e),tn(e),r&4){if(e.stateNode===null)throw Error(O(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(y){Ie(e,e.return,y)}}break;case 3:if(Dt(t,e),tn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ps(t.containerInfo)}catch(y){Ie(e,e.return,y)}break;case 4:Dt(t,e),tn(e);break;case 13:Dt(t,e),tn(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(bd=Ae())),r&4&&Ip(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Je=(d=Je)||f,Dt(t,e),Je=d):Dt(t,e),tn(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!f&&e.mode&1)for(B=e,f=e.child;f!==null;){for(p=B=f;B!==null;){switch(m=B,g=m.child,m.tag){case 0:case 11:case 14:case 15:ws(4,m,m.return);break;case 1:co(m,m.return);var x=m.stateNode;if(typeof x.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(y){Ie(r,n,y)}}break;case 5:co(m,m.return);break;case 22:if(m.memoizedState!==null){Op(p);continue}}g!==null?(g.return=m,B=g):Op(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=gh("display",l))}catch(y){Ie(e,e.return,y)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=d?"":p.memoizedProps}catch(y){Ie(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:Dt(t,e),tn(e),r&4&&Ip(e);break;case 21:break;default:Dt(t,e),tn(e)}}function tn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(H_(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Ss(o,""),r.flags&=-33);var s=Lp(e);hu(e,s,o);break;case 3:case 4:var l=r.stateNode.containerInfo,i=Lp(e);mu(e,i,l);break;default:throw Error(O(161))}}catch(c){Ie(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qv(e,t,n){B=e,V_(e)}function V_(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var o=B,s=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||Cl;if(!l){var i=o.alternate,c=i!==null&&i.memoizedState!==null||Je;i=Cl;var d=Je;if(Cl=l,(Je=c)&&!d)for(B=o;B!==null;)l=B,c=l.child,l.tag===22&&l.memoizedState!==null?Mp(o):c!==null?(c.return=l,B=c):Mp(o);for(;s!==null;)B=s,V_(s),s=s.sibling;B=o,Cl=i,Je=d}Ap(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,B=s):Ap(e)}}function Ap(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Je||Yi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Je)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:zt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&yp(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}yp(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&&Ps(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Je||t.flags&512&&pu(t)}catch(m){Ie(t,t.return,m)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function Op(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function Mp(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Yi(4,t)}catch(c){Ie(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Ie(t,o,c)}}var s=t.return;try{pu(t)}catch(c){Ie(t,s,c)}break;case 5:var l=t.return;try{pu(t)}catch(c){Ie(t,l,c)}}}catch(c){Ie(t,t.return,c)}if(t===e){B=null;break}var i=t.sibling;if(i!==null){i.return=t.return,B=i;break}B=t.return}}var ex=Math.ceil,xi=In.ReactCurrentDispatcher,xd=In.ReactCurrentOwner,It=In.ReactCurrentBatchConfig,fe=0,Ye=null,De=null,Xe=0,yt=0,uo=ar(0),Be=0,Fs=null,Tr=0,Vi=0,wd=0,bs=null,at=null,bd=0,Po=1/0,wn=null,wi=!1,_u=null,er=null,kl=!1,Xn=null,bi=0,Cs=0,gu=null,Ql=-1,Gl=0;function nt(){return fe&6?Ae():Ql!==-1?Ql:Ql=Ae()}function tr(e){return e.mode&1?fe&2&&Xe!==0?Xe&-Xe:$v.transition!==null?(Gl===0&&(Gl=Rh()),Gl):(e=_e,e!==0||(e=window.event,e=e===void 0?16:$h(e.type)),e):1}function Ut(e,t,n,r){if(50<Cs)throw Cs=0,gu=null,Error(O(185));Vs(e,n,r),(!(fe&2)||e!==Ye)&&(e===Ye&&(!(fe&2)&&(Vi|=n),Be===4&&Yn(e,Xe)),pt(e,r),n===1&&fe===0&&!(t.mode&1)&&(Po=Ae()+500,Wi&&cr()))}function pt(e,t){var n=e.callbackNode;$1(e,t);var r=si(e,e===Ye?Xe:0);if(r===0)n!==null&&Yf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Yf(n),t===1)e.tag===0?Mv($p.bind(null,e)):n_($p.bind(null,e)),Lv(function(){!(fe&6)&&cr()}),n=null;else{switch(Th(r)){case 1:n=Qu;break;case 4:n=jh;break;case 16:n=oi;break;case 536870912:n=Ph;break;default:n=oi}n=eg(n,X_.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function X_(e,t){if(Ql=-1,Gl=0,fe&6)throw Error(O(327));var n=e.callbackNode;if(go()&&e.callbackNode!==n)return null;var r=si(e,e===Ye?Xe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ci(e,r);else{t=r;var o=fe;fe|=2;var s=G_();(Ye!==e||Xe!==t)&&(wn=null,Po=Ae()+500,kr(e,t));do try{rx();break}catch(i){Q_(e,i)}while(!0);id(),xi.current=s,fe=o,De!==null?t=0:(Ye=null,Xe=0,t=Be)}if(t!==0){if(t===2&&(o=Uc(e),o!==0&&(r=o,t=yu(e,o))),t===1)throw n=Fs,kr(e,0),Yn(e,r),pt(e,Ae()),n;if(t===6)Yn(e,r);else{if(o=e.current.alternate,!(r&30)&&!tx(o)&&(t=Ci(e,r),t===2&&(s=Uc(e),s!==0&&(r=s,t=yu(e,s))),t===1))throw n=Fs,kr(e,0),Yn(e,r),pt(e,Ae()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:vr(e,at,wn);break;case 3:if(Yn(e,r),(r&130023424)===r&&(t=bd+500-Ae(),10<t)){if(si(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){nt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Jc(vr.bind(null,e,at,wn),t);break}vr(e,at,wn);break;case 4:if(Yn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-Ht(r);s=1<<l,l=t[l],l>o&&(o=l),r&=~s}if(r=o,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ex(r/1960))-r,10<r){e.timeoutHandle=Jc(vr.bind(null,e,at,wn),r);break}vr(e,at,wn);break;case 5:vr(e,at,wn);break;default:throw Error(O(329))}}}return pt(e,Ae()),e.callbackNode===n?X_.bind(null,e):null}function yu(e,t){var n=bs;return e.current.memoizedState.isDehydrated&&(kr(e,t).flags|=256),e=Ci(e,t),e!==2&&(t=at,at=n,t!==null&&vu(t)),e}function vu(e){at===null?at=e:at.push.apply(at,e)}function tx(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(!Vt(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 Yn(e,t){for(t&=~wd,t&=~Vi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function $p(e){if(fe&6)throw Error(O(327));go();var t=si(e,0);if(!(t&1))return pt(e,Ae()),null;var n=Ci(e,t);if(e.tag!==0&&n===2){var r=Uc(e);r!==0&&(t=r,n=yu(e,r))}if(n===1)throw n=Fs,kr(e,0),Yn(e,t),pt(e,Ae()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vr(e,at,wn),pt(e,Ae()),null}function Cd(e,t){var n=fe;fe|=1;try{return e(t)}finally{fe=n,fe===0&&(Po=Ae()+500,Wi&&cr())}}function Lr(e){Xn!==null&&Xn.tag===0&&!(fe&6)&&go();var t=fe;fe|=1;var n=It.transition,r=_e;try{if(It.transition=null,_e=1,e)return e()}finally{_e=r,It.transition=n,fe=t,!(fe&6)&&cr()}}function kd(){yt=uo.current,ke(uo)}function kr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Tv(n)),De!==null)for(n=De.return;n!==null;){var r=n;switch(od(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ui();break;case 3:No(),ke(dt),ke(qe),pd();break;case 5:fd(r);break;case 4:No();break;case 13:ke(je);break;case 19:ke(je);break;case 10:ad(r.type._context);break;case 22:case 23:kd()}n=n.return}if(Ye=e,De=e=nr(e.current,null),Xe=yt=t,Be=0,Fs=null,wd=Vi=Tr=0,at=bs=null,br!==null){for(t=0;t<br.length;t++)if(n=br[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}br=null}return e}function Q_(e,t){do{var n=De;try{if(id(),Yl.current=vi,yi){for(var r=Pe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}yi=!1}if(Rr=0,Ue=Fe=Pe=null,xs=!1,$s=0,xd.current=null,n===null||n.return===null){Be=1,Fs=t,De=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 g=kp(l);if(g!==null){g.flags&=-257,Sp(g,l,i,s,t),g.mode&1&&Cp(s,d,t),t=g,c=d;var x=t.updateQueue;if(x===null){var y=new Set;y.add(c),t.updateQueue=y}else x.add(c);break e}else{if(!(t&1)){Cp(s,d,t),Sd();break e}c=Error(O(426))}}else if(Ee&&i.mode&1){var w=kp(l);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Sp(w,l,i,s,t),sd(jo(c,i));break e}}s=c=jo(c,i),Be!==4&&(Be=2),bs===null?bs=[s]:bs.push(s),s=l;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=T_(s,c,t);gp(s,h);break e;case 1:i=c;var _=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof _.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(er===null||!er.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=L_(s,i,t);gp(s,S);break e}}s=s.return}while(s!==null)}Z_(n)}catch(E){t=E,De===n&&n!==null&&(De=n=n.return);continue}break}while(!0)}function G_(){var e=xi.current;return xi.current=vi,e===null?vi:e}function Sd(){(Be===0||Be===3||Be===2)&&(Be=4),Ye===null||!(Tr&268435455)&&!(Vi&268435455)||Yn(Ye,Xe)}function Ci(e,t){var n=fe;fe|=2;var r=G_();(Ye!==e||Xe!==t)&&(wn=null,kr(e,t));do try{nx();break}catch(o){Q_(e,o)}while(!0);if(id(),fe=n,xi.current=r,De!==null)throw Error(O(261));return Ye=null,Xe=0,Be}function nx(){for(;De!==null;)K_(De)}function rx(){for(;De!==null&&!j1();)K_(De)}function K_(e){var t=q_(e.alternate,e,yt);e.memoizedProps=e.pendingProps,t===null?Z_(e):De=t,xd.current=null}function Z_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Kv(n,t),n!==null){n.flags&=32767,De=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Be=6,De=null;return}}else if(n=Gv(n,t,yt),n!==null){De=n;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Be===0&&(Be=5)}function vr(e,t,n){var r=_e,o=It.transition;try{It.transition=null,_e=1,ox(e,t,n,r)}finally{It.transition=o,_e=r}return null}function ox(e,t,n,r){do go();while(Xn!==null);if(fe&6)throw Error(O(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(O(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(D1(e,s),e===Ye&&(De=Ye=null,Xe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||kl||(kl=!0,eg(oi,function(){return go(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=It.transition,It.transition=null;var l=_e;_e=1;var i=fe;fe|=4,xd.current=null,Jv(e,n),Y_(n,e),kv(Kc),li=!!Gc,Kc=Gc=null,e.current=n,qv(n),P1(),fe=i,_e=l,It.transition=s}else e.current=n;if(kl&&(kl=!1,Xn=e,bi=o),s=e.pendingLanes,s===0&&(er=null),L1(n.stateNode),pt(e,Ae()),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(wi)throw wi=!1,e=_u,_u=null,e;return bi&1&&e.tag!==0&&go(),s=e.pendingLanes,s&1?e===gu?Cs++:(Cs=0,gu=e):Cs=0,cr(),null}function go(){if(Xn!==null){var e=Th(bi),t=It.transition,n=_e;try{if(It.transition=null,_e=16>e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,bi=0,fe&6)throw Error(O(331));var o=fe;for(fe|=4,B=e.current;B!==null;){var s=B,l=s.child;if(B.flags&16){var i=s.deletions;if(i!==null){for(var c=0;c<i.length;c++){var d=i[c];for(B=d;B!==null;){var f=B;switch(f.tag){case 0:case 11:case 15:ws(8,f,s)}var p=f.child;if(p!==null)p.return=f,B=p;else for(;B!==null;){f=B;var m=f.sibling,g=f.return;if(W_(f),f===d){B=null;break}if(m!==null){m.return=g,B=m;break}B=g}}}var x=s.alternate;if(x!==null){var y=x.child;if(y!==null){x.child=null;do{var w=y.sibling;y.sibling=null,y=w}while(y!==null)}}B=s}}if(s.subtreeFlags&2064&&l!==null)l.return=s,B=l;else e:for(;B!==null;){if(s=B,s.flags&2048)switch(s.tag){case 0:case 11:case 15:ws(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,B=h;break e}B=s.return}}var _=e.current;for(B=_;B!==null;){l=B;var v=l.child;if(l.subtreeFlags&2064&&v!==null)v.return=l,B=v;else e:for(l=_;B!==null;){if(i=B,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:Yi(9,i)}}catch(E){Ie(i,i.return,E)}if(i===l){B=null;break e}var S=i.sibling;if(S!==null){S.return=i.return,B=S;break e}B=i.return}}if(fe=o,cr(),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot($i,e)}catch{}r=!0}return r}finally{_e=n,It.transition=t}}return!1}function Dp(e,t,n){t=jo(n,t),t=T_(e,t,1),e=qn(e,t,1),t=nt(),e!==null&&(Vs(e,1,t),pt(e,t))}function Ie(e,t,n){if(e.tag===3)Dp(e,e,n);else for(;t!==null;){if(t.tag===3){Dp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(er===null||!er.has(r))){e=jo(n,e),e=L_(t,e,1),t=qn(t,e,1),e=nt(),t!==null&&(Vs(t,1,e),pt(t,e));break}}t=t.return}}function sx(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=nt(),e.pingedLanes|=e.suspendedLanes&n,Ye===e&&(Xe&n)===n&&(Be===4||Be===3&&(Xe&130023424)===Xe&&500>Ae()-bd?kr(e,0):wd|=n),pt(e,t)}function J_(e,t){t===0&&(e.mode&1?(t=ml,ml<<=1,!(ml&130023424)&&(ml=4194304)):t=1);var n=nt();e=jn(e,t),e!==null&&(Vs(e,t,n),pt(e,n))}function lx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),J_(e,n)}function ix(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(O(314))}r!==null&&r.delete(t),J_(e,n)}var q_;q_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||dt.current)ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ut=!1,Qv(e,t,n);ut=!!(e.flags&131072)}else ut=!1,Ee&&t.flags&1048576&&r_(t,pi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xl(e,t),e=t.pendingProps;var o=ko(t,qe.current);_o(t,n),o=hd(null,t,r,e,o,n);var s=_d();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,ft(r)?(s=!0,di(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ud(t),o.updater=Ui,t.stateNode=o,o._reactInternals=t,su(t,r,e,n),t=au(null,t,r,!0,s,n)):(t.tag=0,Ee&&s&&rd(t),tt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=cx(r),e=zt(r,e),o){case 0:t=iu(null,t,r,e,n);break e;case 1:t=jp(null,t,r,e,n);break e;case 11:t=Ep(null,t,r,e,n);break e;case 14:t=Np(null,t,r,zt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),iu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),jp(e,t,r,o,n);case 3:e:{if(M_(t),e===null)throw Error(O(387));r=t.pendingProps,s=t.memoizedState,o=s.element,c_(e,t),_i(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=jo(Error(O(423)),t),t=Pp(e,t,r,n,o);break e}else if(r!==o){o=jo(Error(O(424)),t),t=Pp(e,t,r,n,o);break e}else for(wt=Jn(t.stateNode.containerInfo.firstChild),bt=t,Ee=!0,Bt=null,n=i_(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(So(),r===o){t=Pn(e,t,n);break e}tt(e,t,r,n)}t=t.child}return t;case 5:return u_(t),e===null&&nu(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,l=o.children,Zc(r,o)?l=null:s!==null&&Zc(r,s)&&(t.flags|=32),O_(e,t),tt(e,t,l,n),t.child;case 6:return e===null&&nu(t),null;case 13:return $_(e,t,n);case 4:return dd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Eo(t,null,r,n):tt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),Ep(e,t,r,o,n);case 7:return tt(e,t,t.pendingProps,n),t.child;case 8:return tt(e,t,t.pendingProps.children,n),t.child;case 12:return tt(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,xe(mi,r._currentValue),r._currentValue=l,s!==null)if(Vt(s.value,l)){if(s.children===o.children&&!dt.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),ru(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(O(341));l.lanes|=n,i=l.alternate,i!==null&&(i.lanes|=n),ru(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}tt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,_o(t,n),o=At(o),r=r(o),t.flags|=1,tt(e,t,r,n),t.child;case 14:return r=t.type,o=zt(r,t.pendingProps),o=zt(r.type,o),Np(e,t,r,o,n);case 15:return I_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),Xl(e,t),t.tag=1,ft(r)?(e=!0,di(t)):e=!1,_o(t,n),R_(t,r,o),su(t,r,o,n),au(null,t,r,!0,e,n);case 19:return D_(e,t,n);case 22:return A_(e,t,n)}throw Error(O(156,t.tag))};function eg(e,t){return Nh(e,t)}function ax(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 Lt(e,t,n,r){return new ax(e,t,n,r)}function Ed(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cx(e){if(typeof e=="function")return Ed(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yu)return 11;if(e===Vu)return 14}return 2}function nr(e,t){var n=e.alternate;return n===null?(n=Lt(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 Kl(e,t,n,r,o,s){var l=2;if(r=e,typeof e=="function")Ed(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case eo:return Sr(n.children,o,s,t);case Uu:l=8,o|=8;break;case Pc:return e=Lt(12,n,t,o|2),e.elementType=Pc,e.lanes=s,e;case Rc:return e=Lt(13,n,t,o),e.elementType=Rc,e.lanes=s,e;case Tc:return e=Lt(19,n,t,o),e.elementType=Tc,e.lanes=s,e;case uh:return Xi(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ah:l=10;break e;case ch:l=9;break e;case Yu:l=11;break e;case Vu:l=14;break e;case Wn:l=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=Lt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Sr(e,t,n,r){return e=Lt(7,e,r,t),e.lanes=n,e}function Xi(e,t,n,r){return e=Lt(22,e,r,t),e.elementType=uh,e.lanes=n,e.stateNode={isHidden:!1},e}function tc(e,t,n){return e=Lt(6,e,null,t),e.lanes=n,e}function nc(e,t,n){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ux(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=Ma(0),this.expirationTimes=Ma(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ma(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nd(e,t,n,r,o,s,l,i,c){return e=new ux(e,t,n,i,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Lt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ud(s),e}function dx(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:qr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function tg(e){if(!e)return or;e=e._reactInternals;e:{if(Mr(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(ft(n))return t_(e,n,t)}return t}function ng(e,t,n,r,o,s,l,i,c){return e=Nd(n,r,!0,e,o,s,l,i,c),e.context=tg(null),n=e.current,r=nt(),o=tr(n),s=Sn(r,o),s.callback=t??null,qn(n,s,o),e.current.lanes=o,Vs(e,o,r),pt(e,r),e}function Qi(e,t,n,r){var o=t.current,s=nt(),l=tr(o);return n=tg(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=qn(o,t,l),e!==null&&(Ut(e,o,l,s),Ul(e,o,l)),l}function ki(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function zp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function jd(e,t){zp(e,t),(e=e.alternate)&&zp(e,t)}function fx(){return null}var rg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Pd(e){this._internalRoot=e}Gi.prototype.render=Pd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));Qi(e,t,null,null)};Gi.prototype.unmount=Pd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lr(function(){Qi(null,e,null,null)}),t[Nn]=null}};function Gi(e){this._internalRoot=e}Gi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ah();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Un.length&&t!==0&&t<Un[n].priority;n++);Un.splice(n,0,e),n===0&&Mh(e)}};function Rd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ki(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Fp(){}function px(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var d=ki(l);s.call(d)}}var l=ng(t,r,e,0,null,!1,!1,"",Fp);return e._reactRootContainer=l,e[Nn]=l.current,Ls(e.nodeType===8?e.parentNode:e),Lr(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var d=ki(c);i.call(d)}}var c=Nd(e,0,!1,null,null,!1,!1,"",Fp);return e._reactRootContainer=c,e[Nn]=c.current,Ls(e.nodeType===8?e.parentNode:e),Lr(function(){Qi(t,c,n,r)}),c}function Zi(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=ki(l);i.call(c)}}Qi(t,l,e,o)}else l=px(n,t,e,o,r);return ki(l)}Lh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ps(t.pendingLanes);n!==0&&(Gu(t,n|1),pt(t,Ae()),!(fe&6)&&(Po=Ae()+500,cr()))}break;case 13:Lr(function(){var r=jn(e,1);if(r!==null){var o=nt();Ut(r,e,1,o)}}),jd(e,1)}};Ku=function(e){if(e.tag===13){var t=jn(e,134217728);if(t!==null){var n=nt();Ut(t,e,134217728,n)}jd(e,134217728)}};Ih=function(e){if(e.tag===13){var t=tr(e),n=jn(e,t);if(n!==null){var r=nt();Ut(n,e,t,r)}jd(e,t)}};Ah=function(){return _e};Oh=function(e,t){var n=_e;try{return _e=e,t()}finally{_e=n}};Bc=function(e,t,n){switch(t){case"input":if(Ac(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=Bi(r);if(!o)throw Error(O(90));fh(r),Ac(r,o)}}}break;case"textarea":mh(e,n);break;case"select":t=n.value,t!=null&&fo(e,!!n.multiple,t,!1)}};wh=Cd;bh=Lr;var mx={usingClientEntryPoint:!1,Events:[Qs,oo,Bi,vh,xh,Cd]},ns={findFiberByHostInstance:wr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hx={bundleType:ns.bundleType,version:ns.version,rendererPackageName:ns.rendererPackageName,rendererConfig:ns.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=Sh(e),e===null?null:e.stateNode},findFiberByHostInstance:ns.findFiberByHostInstance||fx,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 Sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sl.isDisabled&&Sl.supportsFiber)try{$i=Sl.inject(hx),an=Sl}catch{}}St.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mx;St.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rd(t))throw Error(O(200));return dx(e,t,null,n)};St.createRoot=function(e,t){if(!Rd(e))throw Error(O(299));var n=!1,r="",o=rg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Nd(e,1,!1,null,null,n,!1,r,o),e[Nn]=t.current,Ls(e.nodeType===8?e.parentNode:e),new Pd(t)};St.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(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=Sh(t),e=e===null?null:e.stateNode,e};St.flushSync=function(e){return Lr(e)};St.hydrate=function(e,t,n){if(!Ki(t))throw Error(O(200));return Zi(null,e,t,!0,n)};St.hydrateRoot=function(e,t,n){if(!Rd(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",l=rg;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=ng(t,null,e,1,n??null,o,!1,s,l),e[Nn]=t.current,Ls(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 Gi(t)};St.render=function(e,t,n){if(!Ki(t))throw Error(O(200));return Zi(null,e,t,!1,n)};St.unmountComponentAtNode=function(e){if(!Ki(e))throw Error(O(40));return e._reactRootContainer?(Lr(function(){Zi(null,null,e,!1,function(){e._reactRootContainer=null,e[Nn]=null})}),!0):!1};St.unstable_batchedUpdates=Cd;St.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ki(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return Zi(e,t,n,!1,r)};St.version="18.3.1-next-f1338f8080-20240426";function og(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(og)}catch(e){console.error(e)}}og(),oh.exports=St;var Ro=oh.exports;const _x=Vm(Ro);var Bp=Ro;Nc.createRoot=Bp.createRoot,Nc.hydrateRoot=Bp.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 Bs(){return Bs=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},Bs.apply(this,arguments)}var Qn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Qn||(Qn={}));const Wp="popstate";function gx(e){e===void 0&&(e={});function t(o,s){let{pathname:l="/",search:i="",hash:c=""}=$r(o.location.hash.substr(1));return!l.startsWith("/")&&!l.startsWith(".")&&(l="/"+l),xu("",{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:sg(s))}function r(o,s){Ji(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return vx(t,n,r,e)}function We(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ji(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function yx(){return Math.random().toString(36).substr(2,8)}function Hp(e,t){return{usr:e.state,key:e.key,idx:t}}function xu(e,t,n,r){return n===void 0&&(n=null),Bs({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$r(t):t,{state:n,key:t&&t.key||r||yx()})}function sg(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 $r(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 vx(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,l=o.history,i=Qn.Pop,c=null,d=f();d==null&&(d=0,l.replaceState(Bs({},l.state,{idx:d}),""));function f(){return(l.state||{idx:null}).idx}function p(){i=Qn.Pop;let w=f(),h=w==null?null:w-d;d=w,c&&c({action:i,location:y.location,delta:h})}function m(w,h){i=Qn.Push;let _=xu(y.location,w,h);n&&n(_,w),d=f()+1;let v=Hp(_,d),S=y.createHref(_);try{l.pushState(v,"",S)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(S)}s&&c&&c({action:i,location:y.location,delta:1})}function g(w,h){i=Qn.Replace;let _=xu(y.location,w,h);n&&n(_,w),d=f();let v=Hp(_,d),S=y.createHref(_);l.replaceState(v,"",S),s&&c&&c({action:i,location:y.location,delta:0})}function x(w){let h=o.location.origin!=="null"?o.location.origin:o.location.href,_=typeof w=="string"?w:sg(w);return _=_.replace(/ $/,"%20"),We(h,"No window.location.(origin|href) available to create URL for href: "+_),new URL(_,h)}let y={get action(){return i},get location(){return e(o,l)},listen(w){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(Wp,p),c=w,()=>{o.removeEventListener(Wp,p),c=null}},createHref(w){return t(o,w)},createURL:x,encodeLocation(w){let h=x(w);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:g,go(w){return l.go(w)}};return y}var Up;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Up||(Up={}));function xx(e,t,n){return n===void 0&&(n="/"),wx(e,t,n)}function wx(e,t,n,r){let o=typeof t=="string"?$r(t):t,s=ag(o.pathname||"/",n);if(s==null)return null;let l=lg(e);bx(l);let i=null;for(let c=0;i==null&&c<l.length;++c){let d=Ax(s);i=Tx(l[c],d)}return i}function lg(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("/")&&(We(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=Er([r,c.relativePath]),f=n.concat(c);s.children&&s.children.length>0&&(We(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),lg(s.children,t,f,d)),!(s.path==null&&!s.index)&&t.push({path:d,score:Px(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 ig(s.path))o(s,l,c)}),t}function ig(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=ig(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 bx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Rx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Cx=/^:[\w-]+$/,kx=3,Sx=2,Ex=1,Nx=10,jx=-2,Yp=e=>e==="*";function Px(e,t){let n=e.split("/"),r=n.length;return n.some(Yp)&&(r+=jx),t&&(r+=Sx),n.filter(o=>!Yp(o)).reduce((o,s)=>o+(Cx.test(s)?kx:s===""?Ex:Nx),r)}function Rx(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 Tx(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=Lx({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:Er([s,p.pathname]),pathnameBase:Bx(Er([s,p.pathnameBase])),route:m}),p.pathnameBase!=="/"&&(s=Er([s,p.pathnameBase]))}return l}function Lx(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ix(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:g}=f;if(m==="*"){let y=i[p]||"";l=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const x=i[p];return g&&!x?d[m]=void 0:d[m]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:l,pattern:e}}function Ix(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ji(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 Ax(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ji(!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 ag(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 Ox=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mx=e=>Ox.test(e);function $x(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?$r(e):e,s;if(n)if(Mx(n))s=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),Ji(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?s=Vp(n.substring(1),"/"):s=Vp(n,t)}else s=t;return{pathname:s,search:Wx(r),hash:Hx(o)}}function Vp(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 rc(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 Dx(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function zx(e,t){let n=Dx(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Fx(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=$r(e):(o=Bs({},e),We(!o.pathname||!o.pathname.includes("?"),rc("?","pathname","search",o)),We(!o.pathname||!o.pathname.includes("#"),rc("#","pathname","hash",o)),We(!o.search||!o.search.includes("#"),rc("#","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=$x(o,i),d=l&&l!=="/"&&l.endsWith("/"),f=(s||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}const Er=e=>e.join("/").replace(/\/\/+/g,"/"),Bx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Wx=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Hx=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ux(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const cg=["post","put","patch","delete"];new Set(cg);const Yx=["get",...cg];new Set(Yx);/**
|
|
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 Ws(){return Ws=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},Ws.apply(this,arguments)}const Td=u.createContext(null),Vx=u.createContext(null),qi=u.createContext(null),ea=u.createContext(null),ur=u.createContext({outlet:null,matches:[],isDataRoute:!1}),ug=u.createContext(null);function ta(){return u.useContext(ea)!=null}function Ld(){return ta()||We(!1),u.useContext(ea).location}function dg(e){u.useContext(qi).static||u.useLayoutEffect(e)}function na(){let{isDataRoute:e}=u.useContext(ur);return e?iw():Xx()}function Xx(){ta()||We(!1);let e=u.useContext(Td),{basename:t,future:n,navigator:r}=u.useContext(qi),{matches:o}=u.useContext(ur),{pathname:s}=Ld(),l=JSON.stringify(zx(o,n.v7_relativeSplatPath)),i=u.useRef(!1);return dg(()=>{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=Fx(d,JSON.parse(l),s,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Er([t,p.pathname])),(f.replace?r.replace:r.push)(p,f.state,f)},[t,r,l,s,e])}const Qx=u.createContext(null);function Gx(e){let t=u.useContext(ur).outlet;return t&&u.createElement(Qx.Provider,{value:e},t)}function fg(){let{matches:e}=u.useContext(ur),t=e[e.length-1];return t?t.params:{}}function Kx(e,t){return Zx(e,t)}function Zx(e,t,n,r){ta()||We(!1);let{navigator:o}=u.useContext(qi),{matches:s}=u.useContext(ur),l=s[s.length-1],i=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let d=Ld(),f;if(t){var p;let w=typeof t=="string"?$r(t):t;c==="/"||(p=w.pathname)!=null&&p.startsWith(c)||We(!1),f=w}else f=d;let m=f.pathname||"/",g=m;if(c!=="/"){let w=c.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=xx(e,{pathname:g}),y=nw(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},i,w.params),pathname:Er([c,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:Er([c,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&y?u.createElement(ea.Provider,{value:{location:Ws({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Qn.Pop}},y):y}function Jx(){let e=lw(),t=Ux(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 qx=u.createElement(Jx,null);class ew 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(ur.Provider,{value:this.props.routeContext},u.createElement(ug.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tw(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(Td);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(ur.Provider,{value:t},r)}function nw(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||We(!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:g}=n,x=p.route.loader&&m[p.route.id]===void 0&&(!g||g[p.route.id]===void 0);if(p.route.lazy||x){c=!0,d>=0?l=l.slice(0,d+1):l=[l[0]];break}}}return l.reduceRight((f,p,m)=>{let g,x=!1,y=null,w=null;n&&(g=i&&p.route.id?i[p.route.id]:void 0,y=p.route.errorElement||qx,c&&(d<0&&m===0?(aw("route-fallback"),x=!0,w=null):d===m&&(x=!0,w=p.route.hydrateFallbackElement||null)));let h=t.concat(l.slice(0,m+1)),_=()=>{let v;return g?v=y:x?v=w:p.route.Component?v=u.createElement(p.route.Component,null):p.route.element?v=p.route.element:v=f,u.createElement(tw,{match:p,routeContext:{outlet:f,matches:h,isDataRoute:n!=null},children:v})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?u.createElement(ew,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:_(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):_()},null)}var pg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(pg||{}),mg=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}(mg||{});function rw(e){let t=u.useContext(Td);return t||We(!1),t}function ow(e){let t=u.useContext(Vx);return t||We(!1),t}function sw(e){let t=u.useContext(ur);return t||We(!1),t}function hg(e){let t=sw(),n=t.matches[t.matches.length-1];return n.route.id||We(!1),n.route.id}function lw(){var e;let t=u.useContext(ug),n=ow(),r=hg();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function iw(){let{router:e}=rw(pg.UseNavigateStable),t=hg(mg.UseNavigateStable),n=u.useRef(!1);return dg(()=>{n.current=!0}),u.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ws({fromRouteId:t},s)))},[e,t])}const Xp={};function aw(e,t,n){Xp[e]||(Xp[e]=!0)}function cw(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function uw(e){return Gx(e.context)}function Jr(e){We(!1)}function dw(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Qn.Pop,navigator:s,static:l=!1,future:i}=e;ta()&&We(!1);let c=t.replace(/^\/*/,"/"),d=u.useMemo(()=>({basename:c,navigator:s,static:l,future:Ws({v7_relativeSplatPath:!1},i)}),[c,i,s,l]);typeof r=="string"&&(r=$r(r));let{pathname:f="/",search:p="",hash:m="",state:g=null,key:x="default"}=r,y=u.useMemo(()=>{let w=ag(f,c);return w==null?null:{location:{pathname:w,search:p,hash:m,state:g,key:x},navigationType:o}},[c,f,p,m,g,x,o]);return y==null?null:u.createElement(qi.Provider,{value:d},u.createElement(ea.Provider,{children:n,value:y}))}function fw(e){let{children:t,location:n}=e;return Kx(wu(t),n)}new Promise(()=>{});function wu(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,wu(r.props.children,s));return}r.type!==Jr&&We(!1),!r.props.index||!r.props.children||We(!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=wu(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 pw="6";try{window.__reactRouterVersion=pw}catch{}const mw="startTransition",Qp=Mi[mw];function hw(e){let{basename:t,children:n,future:r,window:o}=e,s=u.useRef();s.current==null&&(s.current=gx({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&&Qp?Qp(()=>c(p)):c(p)},[c,d]);return u.useLayoutEffect(()=>l.listen(f),[l,f]),u.useEffect(()=>cw(r),[r]),u.createElement(dw,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:l,future:r})}var Gp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Gp||(Gp={}));var Kp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Kp||(Kp={}));function he(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Zp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ks(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Zp(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():Zp(e[o],null)}}}}function ze(...e){return u.useCallback(Ks(...e),e)}function _w(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 Dr(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:g,...x}=p,y=m?.[e]?.[c]||i,w=u.useMemo(()=>x,Object.values(x));return a.jsx(y.Provider,{value:w,children:g})};d.displayName=s+"Provider";function f(p,m){const g=m?.[e]?.[c]||i,x=u.useContext(g);if(x)return x;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,gw(o,...t)]}function gw(...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 yw(e){const t=vw(e),n=u.forwardRef((r,o)=>{const{children:s,...l}=r,i=u.Children.toArray(s),c=i.find(ww);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 vw(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const l=Cw(o),i=bw(s,o.props);return o.type!==u.Fragment&&(i.ref=r?Ks(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 xw=Symbol("radix.slottable");function ww(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xw}function bw(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 Cw(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 kw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Se=kw.reduce((e,t)=>{const n=yw(`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 Sw(e,t){e&&Ro.flushSync(()=>e.dispatchEvent(t))}function ct(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>t.current?.(...n),[])}function Ew(e,t=globalThis?.document){const n=ct(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 Nw="DismissableLayer",bu="dismissableLayer.update",jw="dismissableLayer.pointerDownOutside",Pw="dismissableLayer.focusOutside",Jp,_g=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Id=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:i,...c}=e,d=u.useContext(_g),[f,p]=u.useState(null),m=f?.ownerDocument??globalThis?.document,[,g]=u.useState({}),x=ze(t,j=>p(j)),y=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),h=y.indexOf(w),_=f?y.indexOf(f):-1,v=d.layersWithOutsidePointerEventsDisabled.size>0,S=_>=h,E=Lw(j=>{const T=j.target,z=[...d.branches].some(M=>M.contains(T));!S||z||(o?.(j),l?.(j),j.defaultPrevented||i?.())},m),N=Iw(j=>{const T=j.target;[...d.branches].some(M=>M.contains(T))||(s?.(j),l?.(j),j.defaultPrevented||i?.())},m);return Ew(j=>{_===d.layers.size-1&&(r?.(j),!j.defaultPrevented&&i&&(j.preventDefault(),i()))},m),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Jp=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),qp(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Jp)}},[f,m,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),qp())},[f,d]),u.useEffect(()=>{const j=()=>g({});return document.addEventListener(bu,j),()=>document.removeEventListener(bu,j)},[]),a.jsx(Se.div,{...c,ref:x,style:{pointerEvents:v?S?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,N.onFocusCapture),onBlurCapture:he(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,E.onPointerDownCapture)})});Id.displayName=Nw;var Rw="DismissableLayerBranch",Tw=u.forwardRef((e,t)=>{const n=u.useContext(_g),r=u.useRef(null),o=ze(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})});Tw.displayName=Rw;function Lw(e,t=globalThis?.document){const n=ct(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let c=function(){gg(jw,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 Iw(e,t=globalThis?.document){const n=ct(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&gg(Pw,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 qp(){const e=new CustomEvent(bu);document.dispatchEvent(e)}function gg(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?Sw(o,s):o.dispatchEvent(s)}var Rn=globalThis?.document?u.useLayoutEffect:()=>{},Aw=Mi[" useId ".trim().toString()]||(()=>{}),Ow=0;function yo(e){const[t,n]=u.useState(Aw());return Rn(()=>{n(r=>r??String(Ow++))},[e]),e||(t?`radix-${t}`:"")}const Mw=["top","right","bottom","left"],sr=Math.min,xt=Math.max,Si=Math.round,El=Math.floor,un=e=>({x:e,y:e}),$w={left:"right",right:"left",bottom:"top",top:"bottom"};function Cu(e,t,n){return xt(e,sr(t,n))}function Tn(e,t){return typeof e=="function"?e(t):e}function Ln(e){return e.split("-")[0]}function Do(e){return e.split("-")[1]}function Ad(e){return e==="x"?"y":"x"}function Od(e){return e==="y"?"height":"width"}function ln(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Md(e){return Ad(ln(e))}function Dw(e,t,n){n===void 0&&(n=!1);const r=Do(e),o=Md(e),s=Od(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=Ei(l)),[l,Ei(l)]}function zw(e){const t=Ei(e);return[ku(e),t,ku(t)]}function ku(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const em=["left","right"],tm=["right","left"],Fw=["top","bottom"],Bw=["bottom","top"];function Ww(e,t,n){switch(e){case"top":case"bottom":return n?t?tm:em:t?em:tm;case"left":case"right":return t?Fw:Bw;default:return[]}}function Hw(e,t,n,r){const o=Do(e);let s=Ww(Ln(e),n==="start",r);return o&&(s=s.map(l=>l+"-"+o),t&&(s=s.concat(s.map(ku)))),s}function Ei(e){const t=Ln(e);return $w[t]+e.slice(t.length)}function Uw(e){return{top:0,right:0,bottom:0,left:0,...e}}function yg(e){return typeof e!="number"?Uw(e):{top:e,right:e,bottom:e,left:e}}function Ni(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 nm(e,t,n){let{reference:r,floating:o}=e;const s=ln(t),l=Md(t),i=Od(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 g;switch(c){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(Do(t)){case"start":g[l]-=m*(n&&d?-1:1);break;case"end":g[l]+=m*(n&&d?-1:1);break}return g}async function Yw(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:g=0}=Tn(t,e),x=yg(g),w=i[m?p==="floating"?"reference":"floating":p],h=Ni(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:c})),_=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},E=Ni(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:_,offsetParent:v,strategy:c}):_);return{top:(h.top-E.top+x.top)/S.y,bottom:(E.bottom-h.bottom+x.bottom)/S.y,left:(h.left-E.left+x.left)/S.x,right:(E.right-h.right+x.right)/S.x}}const Vw=50,Xw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:l}=n,i=l.detectOverflow?l:{...l,detectOverflow:Yw},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}=nm(d,r,c),m=r,g=0;const x={};for(let y=0;y<s.length;y++){const w=s[y];if(!w)continue;const{name:h,fn:_}=w,{x:v,y:S,data:E,reset:N}=await _({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:x,rects:d,platform:i,elements:{reference:e,floating:t}});f=v??f,p=S??p,x[h]={...x[h],...E},N&&g<Vw&&(g++,typeof N=="object"&&(N.placement&&(m=N.placement),N.rects&&(d=N.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):N.rects),{x:f,y:p}=nm(d,m,c)),y=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:x}},Qw=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=yg(f),m={x:n,y:r},g=Md(o),x=Od(g),y=await l.getDimensions(d),w=g==="y",h=w?"top":"left",_=w?"bottom":"right",v=w?"clientHeight":"clientWidth",S=s.reference[x]+s.reference[g]-m[g]-s.floating[x],E=m[g]-s.reference[g],N=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let j=N?N[v]:0;(!j||!await(l.isElement==null?void 0:l.isElement(N)))&&(j=i.floating[v]||s.floating[x]);const T=S/2-E/2,z=j/2-y[x]/2-1,M=sr(p[h],z),X=sr(p[_],z),L=M,Z=j-y[x]-X,se=j/2-y[x]/2+T,ge=Cu(L,se,Z),Q=!c.arrow&&Do(o)!=null&&se!==ge&&s.reference[x]/2-(se<L?M:X)-y[x]/2<0,pe=Q?se<L?se-L:se-Z:0;return{[g]:m[g]+pe,data:{[g]:ge,centerOffset:se-ge-pe,...Q&&{alignmentOffset:pe}},reset:Q}}}),Gw=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:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:y=!0,...w}=Tn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const h=Ln(o),_=ln(i),v=Ln(i)===i,S=await(c.isRTL==null?void 0:c.isRTL(d.floating)),E=m||(v||!y?[Ei(i)]:zw(i)),N=x!=="none";!m&&N&&E.push(...Hw(i,y,x,S));const j=[i,...E],T=await c.detectOverflow(t,w),z=[];let M=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&z.push(T[h]),p){const se=Dw(o,l,S);z.push(T[se[0]],T[se[1]])}if(M=[...M,{placement:o,overflows:z}],!z.every(se=>se<=0)){var X,L;const se=(((X=s.flip)==null?void 0:X.index)||0)+1,ge=j[se];if(ge&&(!(p==="alignment"?_!==ln(ge):!1)||M.every(I=>ln(I.placement)===_?I.overflows[0]>0:!0)))return{data:{index:se,overflows:M},reset:{placement:ge}};let Q=(L=M.filter(pe=>pe.overflows[0]<=0).sort((pe,I)=>pe.overflows[1]-I.overflows[1])[0])==null?void 0:L.placement;if(!Q)switch(g){case"bestFit":{var Z;const pe=(Z=M.filter(I=>{if(N){const $=ln(I.placement);return $===_||$==="y"}return!0}).map(I=>[I.placement,I.overflows.filter($=>$>0).reduce(($,H)=>$+H,0)]).sort((I,$)=>I[1]-$[1])[0])==null?void 0:Z[0];pe&&(Q=pe);break}case"initialPlacement":Q=i;break}if(o!==Q)return{reset:{placement:Q}}}return{}}}};function rm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function om(e){return Mw.some(t=>e[t]>=0)}const Kw=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=rm(l,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:om(i)}}}case"escaped":{const l=await r.detectOverflow(t,{...s,altBoundary:!0}),i=rm(l,n.floating);return{data:{escapedOffsets:i,escaped:om(i)}}}default:return{}}}}},vg=new Set(["left","top"]);async function Zw(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=Do(n),c=ln(n)==="y",d=vg.has(l)?-1:1,f=s&&c?-1:1,p=Tn(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof x=="number"&&(g=i==="end"?x*-1:x),c?{x:g*f,y:m*d}:{x:m*d,y:g*f}}const Jw=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 Zw(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}}}}},qw=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:_,y:v}=h;return{x:_,y:v}}},...d}=Tn(e,t),f={x:n,y:r},p=await s.detectOverflow(t,d),m=ln(Ln(o)),g=Ad(m);let x=f[g],y=f[m];if(l){const h=g==="y"?"top":"left",_=g==="y"?"bottom":"right",v=x+p[h],S=x-p[_];x=Cu(v,x,S)}if(i){const h=m==="y"?"top":"left",_=m==="y"?"bottom":"right",v=y+p[h],S=y-p[_];y=Cu(v,y,S)}const w=c.fn({...t,[g]:x,[m]:y});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[g]:l,[m]:i}}}}}},e5=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=ln(o),m=Ad(p);let g=f[m],x=f[p];const y=Tn(i,t),w=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]+w.mainAxis,E=s.reference[m]+s.reference[v]-w.mainAxis;g<S?g=S:g>E&&(g=E)}if(d){var h,_;const v=m==="y"?"width":"height",S=vg.has(Ln(o)),E=s.reference[p]-s.floating[v]+(S&&((h=l.offset)==null?void 0:h[p])||0)+(S?0:w.crossAxis),N=s.reference[p]+s.reference[v]+(S?0:((_=l.offset)==null?void 0:_[p])||0)-(S?w.crossAxis:0);x<E?x=E:x>N&&(x=N)}return{[m]:g,[p]:x}}}},t5=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=Do(o),g=ln(o)==="y",{width:x,height:y}=s.floating;let w,h;p==="top"||p==="bottom"?(w=p,h=m===(await(l.isRTL==null?void 0:l.isRTL(i.floating))?"start":"end")?"left":"right"):(h=p,w=m==="end"?"top":"bottom");const _=y-f.top-f.bottom,v=x-f.left-f.right,S=sr(y-f[w],_),E=sr(x-f[h],v),N=!t.middlewareData.shift;let j=S,T=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=_),N&&!m){const M=xt(f.left,0),X=xt(f.right,0),L=xt(f.top,0),Z=xt(f.bottom,0);g?T=x-2*(M!==0||X!==0?M+X:xt(f.left,f.right)):j=y-2*(L!==0||Z!==0?L+Z:xt(f.top,f.bottom))}await c({...t,availableWidth:T,availableHeight:j});const z=await l.getDimensions(i.floating);return x!==z.width||y!==z.height?{reset:{rects:!0}}:{}}}};function ra(){return typeof window<"u"}function zo(e){return xg(e)?(e.nodeName||"").toLowerCase():"#document"}function Ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fn(e){var t;return(t=(xg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xg(e){return ra()?e instanceof Node||e instanceof Ct(e).Node:!1}function Xt(e){return ra()?e instanceof Element||e instanceof Ct(e).Element:!1}function An(e){return ra()?e instanceof HTMLElement||e instanceof Ct(e).HTMLElement:!1}function sm(e){return!ra()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}function Zs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function n5(e){return/^(table|td|th)$/.test(zo(e))}function oa(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const r5=/transform|translate|scale|rotate|perspective|filter/,o5=/paint|layout|strict|content/,hr=e=>!!e&&e!=="none";let oc;function $d(e){const t=Xt(e)?Qt(e):e;return hr(t.transform)||hr(t.translate)||hr(t.scale)||hr(t.rotate)||hr(t.perspective)||!Dd()&&(hr(t.backdropFilter)||hr(t.filter))||r5.test(t.willChange||"")||o5.test(t.contain||"")}function s5(e){let t=lr(e);for(;An(t)&&!To(t);){if($d(t))return t;if(oa(t))return null;t=lr(t)}return null}function Dd(){return oc==null&&(oc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),oc}function To(e){return/^(html|body|#document)$/.test(zo(e))}function Qt(e){return Ct(e).getComputedStyle(e)}function sa(e){return Xt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function lr(e){if(zo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sm(e)&&e.host||fn(e);return sm(t)?t.host:t}function wg(e){const t=lr(e);return To(t)?e.ownerDocument?e.ownerDocument.body:e.body:An(t)&&Zs(t)?t:wg(t)}function Hs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=wg(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),l=Ct(o);if(s){const i=Su(l);return t.concat(l,l.visualViewport||[],Zs(o)?o:[],i&&n?Hs(i):[])}else return t.concat(o,Hs(o,[],n))}function Su(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bg(e){const t=Qt(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=Si(n)!==s||Si(r)!==l;return i&&(n=s,r=l),{width:n,height:r,$:i}}function zd(e){return Xt(e)?e:e.contextElement}function vo(e){const t=zd(e);if(!An(t))return un(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=bg(t);let l=(s?Si(n.width):n.width)/r,i=(s?Si(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!i||!Number.isFinite(i))&&(i=1),{x:l,y:i}}const l5=un(0);function Cg(e){const t=Ct(e);return!Dd()||!t.visualViewport?l5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function i5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ct(e)?!1:t}function Ir(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=zd(e);let l=un(1);t&&(r?Xt(r)&&(l=vo(r)):l=vo(e));const i=i5(s,n,r)?Cg(s):un(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=Ct(s),g=r&&Xt(r)?Ct(r):r;let x=m,y=Su(x);for(;y&&r&&g!==x;){const w=vo(y),h=y.getBoundingClientRect(),_=Qt(y),v=h.left+(y.clientLeft+parseFloat(_.paddingLeft))*w.x,S=h.top+(y.clientTop+parseFloat(_.paddingTop))*w.y;c*=w.x,d*=w.y,f*=w.x,p*=w.y,c+=v,d+=S,x=Ct(y),y=Su(x)}}return Ni({width:f,height:p,x:c,y:d})}function la(e,t){const n=sa(e).scrollLeft;return t?t.left+n:Ir(fn(e)).left+n}function kg(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-la(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function a5(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",l=fn(r),i=t?oa(t.floating):!1;if(r===l||i&&s)return n;let c={scrollLeft:0,scrollTop:0},d=un(1);const f=un(0),p=An(r);if((p||!p&&!s)&&((zo(r)!=="body"||Zs(l))&&(c=sa(r)),p)){const g=Ir(r);d=vo(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const m=l&&!p&&!s?kg(l,c):un(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 c5(e){return Array.from(e.getClientRects())}function u5(e){const t=fn(e),n=sa(e),r=e.ownerDocument.body,o=xt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=xt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+la(e);const i=-n.scrollTop;return Qt(r).direction==="rtl"&&(l+=xt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:l,y:i}}const lm=25;function d5(e,t){const n=Ct(e),r=fn(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=Dd();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const d=la(r);if(d<=0){const f=r.ownerDocument,p=f.body,m=getComputedStyle(p),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(r.clientWidth-p.clientWidth-g);x<=lm&&(s-=x)}else d<=lm&&(s+=d);return{width:s,height:l,x:i,y:c}}function f5(e,t){const n=Ir(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=An(e)?vo(e):un(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 im(e,t,n){let r;if(t==="viewport")r=d5(e,n);else if(t==="document")r=u5(fn(e));else if(Xt(t))r=f5(t,n);else{const o=Cg(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ni(r)}function Sg(e,t){const n=lr(e);return n===t||!Xt(n)||To(n)?!1:Qt(n).position==="fixed"||Sg(n,t)}function p5(e,t){const n=t.get(e);if(n)return n;let r=Hs(e,[],!1).filter(i=>Xt(i)&&zo(i)!=="body"),o=null;const s=Qt(e).position==="fixed";let l=s?lr(e):e;for(;Xt(l)&&!To(l);){const i=Qt(l),c=$d(l);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Zs(l)&&!c&&Sg(e,l))?r=r.filter(f=>f!==l):o=i,l=lr(l)}return t.set(e,r),r}function m5(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?oa(t)?[]:p5(t,this._c):[].concat(n),r],i=im(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 g=im(t,l[m],o);c=xt(g.top,c),d=sr(g.right,d),f=sr(g.bottom,f),p=xt(g.left,p)}return{width:d-p,height:f-c,x:p,y:c}}function h5(e){const{width:t,height:n}=bg(e);return{width:t,height:n}}function _5(e,t,n){const r=An(t),o=fn(t),s=n==="fixed",l=Ir(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=un(0);function d(){c.x=la(o)}if(r||!r&&!s)if((zo(t)!=="body"||Zs(o))&&(i=sa(t)),r){const g=Ir(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&d();s&&!r&&o&&d();const f=o&&!r&&!s?kg(o,i):un(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 sc(e){return Qt(e).position==="static"}function am(e,t){if(!An(e)||Qt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fn(e)===n&&(n=n.ownerDocument.body),n}function Eg(e,t){const n=Ct(e);if(oa(e))return n;if(!An(e)){let o=lr(e);for(;o&&!To(o);){if(Xt(o)&&!sc(o))return o;o=lr(o)}return n}let r=am(e,t);for(;r&&n5(r)&&sc(r);)r=am(r,t);return r&&To(r)&&sc(r)&&!$d(r)?n:r||s5(e)||n}const g5=async function(e){const t=this.getOffsetParent||Eg,n=this.getDimensions,r=await n(e.floating);return{reference:_5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function y5(e){return Qt(e).direction==="rtl"}const v5={convertOffsetParentRelativeRectToViewportRelativeRect:a5,getDocumentElement:fn,getClippingRect:m5,getOffsetParent:Eg,getElementRects:g5,getClientRects:c5,getDimensions:h5,getScale:vo,isElement:Xt,isRTL:y5};function Ng(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function x5(e,t){let n=null,r;const o=fn(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:g}=d;if(i||t(),!m||!g)return;const x=El(p),y=El(o.clientWidth-(f+m)),w=El(o.clientHeight-(p+g)),h=El(f),v={rootMargin:-x+"px "+-y+"px "+-w+"px "+-h+"px",threshold:xt(0,sr(1,c))||1};let S=!0;function E(N){const j=N[0].intersectionRatio;if(j!==c){if(!S)return l();j?l(!1,j):r=setTimeout(()=>{l(!1,1e-7)},1e3)}j===1&&!Ng(d,e.getBoundingClientRect())&&l(),S=!1}try{n=new IntersectionObserver(E,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,v)}n.observe(e)}return l(!0),s}function w5(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=zd(e),f=o||s?[...d?Hs(d):[],...t?Hs(t):[]]:[];f.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),s&&h.addEventListener("resize",n)});const p=d&&i?x5(d,n):null;let m=-1,g=null;l&&(g=new ResizeObserver(h=>{let[_]=h;_&&_.target===d&&g&&t&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var v;(v=g)==null||v.observe(t)})),n()}),d&&!c&&g.observe(d),t&&g.observe(t));let x,y=c?Ir(e):null;c&&w();function w(){const h=Ir(e);y&&!Ng(y,h)&&n(),y=h,x=requestAnimationFrame(w)}return n(),()=>{var h;f.forEach(_=>{o&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),p?.(),(h=g)==null||h.disconnect(),g=null,c&&cancelAnimationFrame(x)}}const b5=Jw,C5=qw,k5=Gw,S5=t5,E5=Kw,cm=Qw,N5=e5,j5=(e,t,n)=>{const r=new Map,o={platform:v5,...n},s={...o.platform,_c:r};return Xw(e,t,{...o,platform:s})};var P5=typeof document<"u",R5=function(){},Zl=P5?u.useLayoutEffect:R5;function ji(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(!ji(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)&&!ji(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function jg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function um(e,t){const n=jg(e);return Math.round(t*n)/n}function lc(e){const t=u.useRef(e);return Zl(()=>{t.current=e}),t}function T5(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,g]=u.useState(r);ji(m,r)||g(r);const[x,y]=u.useState(null),[w,h]=u.useState(null),_=u.useCallback(I=>{I!==N.current&&(N.current=I,y(I))},[]),v=u.useCallback(I=>{I!==j.current&&(j.current=I,h(I))},[]),S=s||x,E=l||w,N=u.useRef(null),j=u.useRef(null),T=u.useRef(f),z=c!=null,M=lc(c),X=lc(o),L=lc(d),Z=u.useCallback(()=>{if(!N.current||!j.current)return;const I={placement:t,strategy:n,middleware:m};X.current&&(I.platform=X.current),j5(N.current,j.current,I).then($=>{const H={...$,isPositioned:L.current!==!1};se.current&&!ji(T.current,H)&&(T.current=H,Ro.flushSync(()=>{p(H)}))})},[m,t,n,X,L]);Zl(()=>{d===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,p(I=>({...I,isPositioned:!1})))},[d]);const se=u.useRef(!1);Zl(()=>(se.current=!0,()=>{se.current=!1}),[]),Zl(()=>{if(S&&(N.current=S),E&&(j.current=E),S&&E){if(M.current)return M.current(S,E,Z);Z()}},[S,E,Z,M,z]);const ge=u.useMemo(()=>({reference:N,floating:j,setReference:_,setFloating:v}),[_,v]),Q=u.useMemo(()=>({reference:S,floating:E}),[S,E]),pe=u.useMemo(()=>{const I={position:n,left:0,top:0};if(!Q.floating)return I;const $=um(Q.floating,f.x),H=um(Q.floating,f.y);return i?{...I,transform:"translate("+$+"px, "+H+"px)",...jg(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:H}},[n,i,Q.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:Z,refs:ge,elements:Q,floatingStyles:pe}),[f,Z,ge,Q,pe])}const L5=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?cm({element:r.current,padding:o}).fn(n):{}:r?cm({element:r,padding:o}).fn(n):{}}}},I5=(e,t)=>{const n=b5(e);return{name:n.name,fn:n.fn,options:[e,t]}},A5=(e,t)=>{const n=C5(e);return{name:n.name,fn:n.fn,options:[e,t]}},O5=(e,t)=>({fn:N5(e).fn,options:[e,t]}),M5=(e,t)=>{const n=k5(e);return{name:n.name,fn:n.fn,options:[e,t]}},$5=(e,t)=>{const n=S5(e);return{name:n.name,fn:n.fn,options:[e,t]}},D5=(e,t)=>{const n=E5(e);return{name:n.name,fn:n.fn,options:[e,t]}},z5=(e,t)=>{const n=L5(e);return{name:n.name,fn:n.fn,options:[e,t]}};var F5="Arrow",Pg=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"})})});Pg.displayName=F5;var B5=Pg;function W5(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 Fd="Popper",[Rg,Tg]=Dr(Fd),[H5,Lg]=Rg(Fd),Ig=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return a.jsx(H5,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ig.displayName=Fd;var Ag="PopperAnchor",Og=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Lg(Ag,n),l=u.useRef(null),i=ze(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})});Og.displayName=Ag;var Bd="PopperContent",[U5,Y5]=Rg(Bd),Mg=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:g="optimized",onPlaced:x,...y}=e,w=Lg(Bd,n),[h,_]=u.useState(null),v=ze(t,Ge=>_(Ge)),[S,E]=u.useState(null),N=W5(S),j=N?.width??0,T=N?.height??0,z=r+(s!=="center"?"-"+s:""),M=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},X=Array.isArray(d)?d:[d],L=X.length>0,Z={padding:M,boundary:X.filter(X5),altBoundary:L},{refs:se,floatingStyles:ge,placement:Q,isPositioned:pe,middlewareData:I}=T5({strategy:"fixed",placement:z,whileElementsMounted:(...Ge)=>w5(...Ge,{animationFrame:g==="always"}),elements:{reference:w.anchor},middleware:[I5({mainAxis:o+T,alignmentAxis:l}),c&&A5({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?O5():void 0,...Z}),c&&M5({...Z}),$5({...Z,apply:({elements:Ge,rects:Bo,availableWidth:qs,availableHeight:zr})=>{const{width:el,height:re}=Bo.reference,Zt=Ge.floating.style;Zt.setProperty("--radix-popper-available-width",`${qs}px`),Zt.setProperty("--radix-popper-available-height",`${zr}px`),Zt.setProperty("--radix-popper-anchor-width",`${el}px`),Zt.setProperty("--radix-popper-anchor-height",`${re}px`)}}),S&&z5({element:S,padding:i}),Q5({arrowWidth:j,arrowHeight:T}),m&&D5({strategy:"referenceHidden",...Z})]}),[$,H]=zg(Q),J=ct(x);Rn(()=>{pe&&J?.()},[pe,J]);const we=I.arrow?.x,Kt=I.arrow?.y,mt=I.arrow?.centerOffset!==0,[ht,Nt]=u.useState();return Rn(()=>{h&&Nt(window.getComputedStyle(h).zIndex)},[h]),a.jsx("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...ge,transform:pe?ge.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ht,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(U5,{scope:n,placedSide:$,onArrowChange:E,arrowX:we,arrowY:Kt,shouldHideArrow:mt,children:a.jsx(Se.div,{"data-side":$,"data-align":H,...y,ref:v,style:{...y.style,animation:pe?void 0:"none"}})})})});Mg.displayName=Bd;var $g="PopperArrow",V5={top:"bottom",right:"left",bottom:"top",left:"right"},Dg=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Y5($g,r),l=V5[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(B5,{...o,ref:n,style:{...o.style,display:"block"}})})});Dg.displayName=$g;function X5(e){return e!==null}var Q5=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]=zg(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(o.arrow?.x??0)+i/2,g=(o.arrow?.y??0)+c/2;let x="",y="";return d==="bottom"?(x=l?p:`${m}px`,y=`${-c}px`):d==="top"?(x=l?p:`${m}px`,y=`${r.floating.height+c}px`):d==="right"?(x=`${-c}px`,y=l?p:`${g}px`):d==="left"&&(x=`${r.floating.width+c}px`,y=l?p:`${g}px`),{data:{x,y}}}});function zg(e){const[t,n="center"]=e.split("-");return[t,n]}var G5=Ig,K5=Og,Z5=Mg,J5=Dg,q5="Portal",Fg=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?_x.createPortal(a.jsx(Se.div,{...r,ref:t}),l):null});Fg.displayName=q5;function eb(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var pn=e=>{const{present:t,children:n}=e,r=tb(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=ze(r.ref,nb(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};pn.displayName="Presence";function tb(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),s=u.useRef("none"),l=e?"mounted":"unmounted",[i,c]=eb(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=Nl(r.current);s.current=i==="mounted"?d:"none"},[i]),Rn(()=>{const d=r.current,f=o.current;if(f!==e){const m=s.current,g=Nl(d);e?c("MOUNT"):g==="none"||d?.display==="none"?c("UNMOUNT"):c(f&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Rn(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=g=>{const y=Nl(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&y&&(c("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=g=>{g.target===t&&(s.current=Nl(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 Nl(e){return e?.animationName||"none"}function nb(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 rb=Symbol("radix.slottable");function ob(e){const t=({children:n})=>a.jsx(a.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=rb,t}var sb=Mi[" useInsertionEffect ".trim().toString()]||Rn;function ia({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,l]=lb({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=ib(f)?f(e):f;p!==e&&l.current?.(p)}else s(f)},[i,e,s,l]);return[c,d]}function lb({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),s=u.useRef(t);return sb(()=>{s.current=t},[t]),u.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function ib(e){return typeof e=="function"}var ab=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"}),cb="VisuallyHidden",Bg=u.forwardRef((e,t)=>a.jsx(Se.span,{...e,ref:t,style:{...ab,...e.style}}));Bg.displayName=cb;var ub=Bg,[aa]=Dr("Tooltip",[Tg]),ca=Tg(),Wg="TooltipProvider",db=700,Eu="tooltip.open",[fb,Wd]=aa(Wg),Hg=e=>{const{__scopeTooltip:t,delayDuration:n=db,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(fb,{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})};Hg.displayName=Wg;var Us="Tooltip",[pb,ua]=aa(Us),Ug=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:l,delayDuration:i}=e,c=Wd(Us,e.__scopeTooltip),d=ca(t),[f,p]=u.useState(null),m=yo(),g=u.useRef(0),x=l??c.disableHoverableContent,y=i??c.delayDuration,w=u.useRef(!1),[h,_]=ia({prop:r,defaultProp:o??!1,onChange:j=>{j?(c.onOpen(),document.dispatchEvent(new CustomEvent(Eu))):c.onClose(),s?.(j)},caller:Us}),v=u.useMemo(()=>h?w.current?"delayed-open":"instant-open":"closed",[h]),S=u.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w.current=!1,_(!0)},[_]),E=u.useCallback(()=>{window.clearTimeout(g.current),g.current=0,_(!1)},[_]),N=u.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,_(!0),g.current=0},y)},[y,_]);return u.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),a.jsx(G5,{...d,children:a.jsx(pb,{scope:t,contentId:m,open:h,stateAttribute:v,trigger:f,onTriggerChange:p,onTriggerEnter:u.useCallback(()=>{c.isOpenDelayedRef.current?N():S()},[c.isOpenDelayedRef,N,S]),onTriggerLeave:u.useCallback(()=>{x?E():(window.clearTimeout(g.current),g.current=0)},[E,x]),onOpen:S,onClose:E,disableHoverableContent:x,children:n})})};Ug.displayName=Us;var Nu="TooltipTrigger",Yg=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ua(Nu,n),s=Wd(Nu,n),l=ca(n),i=u.useRef(null),c=ze(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(K5,{asChild:!0,...l,children:a.jsx(Se.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:he(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:he(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:he(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:he(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:he(e.onBlur,o.onClose),onClick:he(e.onClick,o.onClose)})})});Yg.displayName=Nu;var mb="TooltipPortal",[f4,hb]=aa(mb,{forceMount:void 0}),Lo="TooltipContent",Vg=u.forwardRef((e,t)=>{const n=hb(Lo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,l=ua(Lo,e.__scopeTooltip);return a.jsx(pn,{present:r||l.open,children:l.disableHoverableContent?a.jsx(Xg,{side:o,...s,ref:t}):a.jsx(_b,{side:o,...s,ref:t})})}),_b=u.forwardRef((e,t)=>{const n=ua(Lo,e.__scopeTooltip),r=Wd(Lo,e.__scopeTooltip),o=u.useRef(null),s=ze(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]),g=u.useCallback((x,y)=>{const w=x.currentTarget,h={x:x.clientX,y:x.clientY},_=wb(h,w.getBoundingClientRect()),v=bb(h,_),S=Cb(y.getBoundingClientRect()),E=Sb([...v,...S]);i(E),p(!0)},[p]);return u.useEffect(()=>()=>m(),[m]),u.useEffect(()=>{if(c&&f){const x=w=>g(w,f),y=w=>g(w,c);return c.addEventListener("pointerleave",x),f.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",y)}}},[c,f,g,m]),u.useEffect(()=>{if(l){const x=y=>{const w=y.target,h={x:y.clientX,y:y.clientY},_=c?.contains(w)||f?.contains(w),v=!kb(h,l);_?m():v&&(m(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[c,f,l,d,m]),a.jsx(Xg,{...e,ref:s})}),[gb,yb]=aa(Us,{isInside:!1}),vb=ob("TooltipContent"),Xg=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:l,...i}=e,c=ua(Lo,n),d=ca(n),{onClose:f}=c;return u.useEffect(()=>(document.addEventListener(Eu,f),()=>document.removeEventListener(Eu,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(Id,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:a.jsxs(Z5,{"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(vb,{children:r}),a.jsx(gb,{scope:n,isInside:!0,children:a.jsx(ub,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Vg.displayName=Lo;var Qg="TooltipArrow",xb=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ca(n);return yb(Qg,n).isInside?null:a.jsx(J5,{...o,...r,ref:t})});xb.displayName=Qg;function wb(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 bb(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 Cb(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 kb(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 Sb(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),Eb(t)}function Eb(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 Nb=Hg,jb=Ug,Pb=Yg,Gg=Vg;function Kg(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=Kg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Zg(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Kg(e))&&(r&&(r+=" "),r+=t);return r}const Hd="-",Rb=e=>{const t=Lb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const i=l.split(Hd);return i[0]===""&&i.length!==1&&i.shift(),Jg(i,t)||Tb(l)},getConflictingClassGroupIds:(l,i)=>{const c=n[l]||[];return i&&r[l]?[...c,...r[l]]:c}}},Jg=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Jg(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Hd);return t.validators.find(({validator:l})=>l(s))?.classGroupId},dm=/^\[(.+)\]$/,Tb=e=>{if(dm.test(e)){const t=dm.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Lb=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Ab(Object.entries(e.classGroups),n).forEach(([s,l])=>{ju(l,r,s,t)}),r},ju=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:fm(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Ib(o)){ju(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,l])=>{ju(l,fm(t,s),n,r)})})},fm=(e,t)=>{let n=e;return t.split(Hd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Ib=e=>e.isThemeGetter,Ab=(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,Ob=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)}}},qg="!",Mb=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 w=0;w<i.length;w++){let h=i[w];if(d===0){if(h===o&&(r||i.slice(w,w+s)===t)){c.push(i.slice(f,w)),f=w+s;continue}if(h==="/"){p=w;continue}}h==="["?d++:h==="]"&&d--}const m=c.length===0?i:i.substring(f),g=m.startsWith(qg),x=g?m.substring(1):m,y=p&&p>f?p-f:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:y}};return n?i=>n({className:i,parseClassName:l}):l},$b=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},Db=e=>({cache:Ob(e.cacheSize),parseClassName:Mb(e),...Rb(e)}),zb=/\s+/,Fb=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],l=e.trim().split(zb);let i="";for(let c=l.length-1;c>=0;c-=1){const d=l[c],{modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}=n(d);let x=!!g,y=r(x?m.substring(0,g):m);if(!y){if(!x){i=d+(i.length>0?" "+i:i);continue}if(y=r(m),!y){i=d+(i.length>0?" "+i:i);continue}x=!1}const w=$b(f).join(":"),h=p?w+qg:w,_=h+y;if(s.includes(_))continue;s.push(_);const v=o(y,x);for(let S=0;S<v.length;++S){const E=v[S];s.push(h+E)}i=d+(i.length>0?" "+i:i)}return i};function Bb(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=e0(t))&&(r&&(r+=" "),r+=n);return r}const e0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=e0(e[r]))&&(n&&(n+=" "),n+=t);return n};function Wb(e,...t){let n,r,o,s=l;function l(c){const d=t.reduce((f,p)=>p(f),e());return n=Db(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=Fb(c,n);return o(c,f),f}return function(){return s(Bb.apply(null,arguments))}}const be=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},t0=/^\[(?:([a-z-]+):)?(.+)\]$/i,Hb=/^\d+\/\d+$/,Ub=new Set(["px","full","screen"]),Yb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vb=/\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$/,Xb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Gb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xn=e=>xo(e)||Ub.has(e)||Hb.test(e),Dn=e=>Fo(e,"length",r2),xo=e=>!!e&&!Number.isNaN(Number(e)),ic=e=>Fo(e,"number",xo),rs=e=>!!e&&Number.isInteger(Number(e)),Kb=e=>e.endsWith("%")&&xo(e.slice(0,-1)),ne=e=>t0.test(e),zn=e=>Yb.test(e),Zb=new Set(["length","size","percentage"]),Jb=e=>Fo(e,Zb,n0),qb=e=>Fo(e,"position",n0),e2=new Set(["image","url"]),t2=e=>Fo(e,e2,s2),n2=e=>Fo(e,"",o2),os=()=>!0,Fo=(e,t,n)=>{const r=t0.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},r2=e=>Vb.test(e)&&!Xb.test(e),n0=()=>!1,o2=e=>Qb.test(e),s2=e=>Gb.test(e),l2=()=>{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"),g=be("gradientColorStops"),x=be("gradientColorStopPositions"),y=be("inset"),w=be("margin"),h=be("opacity"),_=be("padding"),v=be("saturate"),S=be("scale"),E=be("sepia"),N=be("skew"),j=be("space"),T=be("translate"),z=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto",ne,t],L=()=>[ne,t],Z=()=>["",xn,Dn],se=()=>["auto",xo,ne],ge=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",ne],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[xo,ne];return{cacheSize:500,separator:":",theme:{colors:[os],spacing:[xn,Dn],blur:["none","",zn,ne],brightness:J(),borderColor:[e],borderRadius:["none","","full",zn,ne],borderSpacing:L(),borderWidth:Z(),contrast:J(),grayscale:$(),hueRotate:J(),invert:$(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[Kb,Dn],inset:X(),margin:X(),opacity:J(),padding:L(),saturate:J(),scale:J(),sepia:$(),skew:J(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",ne]}],container:["container"],columns:[{columns:[zn]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"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:[...ge(),ne]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],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",rs,ne]}],basis:[{basis:X()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ne]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",rs,ne]}],"grid-cols":[{"grid-cols":[os]}],"col-start-end":[{col:["auto",{span:["full",rs,ne]},ne]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[os]}],"row-start-end":[{row:["auto",{span:[rs,ne]},ne]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ne]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ne]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"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",ne,t]}],"min-w":[{"min-w":[ne,t,"min","max","fit"]}],"max-w":[{"max-w":[ne,t,"none","full","min","max","fit","prose",{screen:[zn]},zn]}],h:[{h:[ne,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ne,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ne,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ne,t,"auto","min","max","fit"]}],"font-size":[{text:["base",zn,Dn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ic]}],"font-family":[{font:[os]}],"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",ne]}],"line-clamp":[{"line-clamp":["none",xo,ic]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xn,ne]}],"list-image":[{"list-image":["none",ne]}],"list-style-type":[{list:["none","disc","decimal",ne]}],"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:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xn,Dn]}],"underline-offset":[{"underline-offset":["auto",xn,ne]}],"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:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne]}],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",ne]}],"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:[...ge(),qb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Jb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},t2]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],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:[...Q(),"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:Q()}],"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:["",...Q()]}],"outline-offset":[{"outline-offset":[xn,ne]}],"outline-w":[{outline:[xn,Dn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[xn,Dn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",zn,n2]}],"shadow-color":[{shadow:[os]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...pe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":pe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",zn,ne]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[v]}],sepia:[{sepia:[E]}],"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":[E]}],"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",ne]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",ne]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",ne]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[rs,ne]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ne]}],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",ne]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",ne]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[xn,Dn,ic]}],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"]}}},i2=Wb(l2);function ce(...e){return i2(Zg(e))}function Yt(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 a2(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 r0(e,t=12){return e.length<=t?e:e.slice(0,t)+"…"}const c2=Nb,u2=jb,d2=Pb,o0=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(Gg,{ref:r,sideOffset:t,className:ce("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}));o0.displayName=Gg.displayName;const s0=u.createContext({theme:"system",resolvedTheme:"dark",setTheme:()=>{}}),pm="chisel-studio-theme";function l0(){return typeof window>"u"||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function mm(e){return e==="system"?l0():e}function ac(e){const t=document.documentElement;t.classList.remove("light","dark"),t.classList.add(e)}function f2({children:e}){const[t,n]=u.useState(()=>typeof window>"u"?"system":localStorage.getItem(pm)||"system"),[r,o]=u.useState(()=>mm(t)),s=u.useCallback(l=>{n(l),localStorage.setItem(pm,l);const i=mm(l);o(i),ac(i)},[]);return u.useEffect(()=>{ac(r)},[]),u.useEffect(()=>{if(t!=="system")return;const l=window.matchMedia("(prefers-color-scheme: dark)"),i=()=>{const c=l0();o(c),ac(c)};return l.addEventListener("change",i),()=>l.removeEventListener("change",i)},[t]),a.jsx(s0.Provider,{value:{theme:t,resolvedTheme:r,setTheme:s},children:e})}function p2(){return u.useContext(s0)}var m2=`svg[fill=none] {
|
|
68
|
+
fill: none !important;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@keyframes styles-module__popupEnter___AuQDN {
|
|
72
|
+
from {
|
|
73
|
+
opacity: 0;
|
|
74
|
+
transform: translateX(-50%) scale(0.95) translateY(4px);
|
|
75
|
+
}
|
|
76
|
+
to {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
transform: translateX(-50%) scale(1) translateY(0);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
@keyframes styles-module__popupExit___JJKQX {
|
|
82
|
+
from {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
transform: translateX(-50%) scale(1) translateY(0);
|
|
85
|
+
}
|
|
86
|
+
to {
|
|
87
|
+
opacity: 0;
|
|
88
|
+
transform: translateX(-50%) scale(0.95) translateY(4px);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
@keyframes styles-module__shake___jdbWe {
|
|
92
|
+
0%, 100% {
|
|
93
|
+
transform: translateX(-50%) scale(1) translateY(0) translateX(0);
|
|
94
|
+
}
|
|
95
|
+
20% {
|
|
96
|
+
transform: translateX(-50%) scale(1) translateY(0) translateX(-3px);
|
|
97
|
+
}
|
|
98
|
+
40% {
|
|
99
|
+
transform: translateX(-50%) scale(1) translateY(0) translateX(3px);
|
|
100
|
+
}
|
|
101
|
+
60% {
|
|
102
|
+
transform: translateX(-50%) scale(1) translateY(0) translateX(-2px);
|
|
103
|
+
}
|
|
104
|
+
80% {
|
|
105
|
+
transform: translateX(-50%) scale(1) translateY(0) translateX(2px);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
.styles-module__popup___IhzrD {
|
|
109
|
+
position: fixed;
|
|
110
|
+
transform: translateX(-50%);
|
|
111
|
+
width: 280px;
|
|
112
|
+
padding: 0.75rem 1rem 14px;
|
|
113
|
+
background: #1a1a1a;
|
|
114
|
+
border-radius: 16px;
|
|
115
|
+
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
|
|
116
|
+
cursor: default;
|
|
117
|
+
z-index: 100001;
|
|
118
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
119
|
+
will-change: transform, opacity;
|
|
120
|
+
opacity: 0;
|
|
121
|
+
}
|
|
122
|
+
.styles-module__popup___IhzrD.styles-module__enter___L7U7N {
|
|
123
|
+
animation: styles-module__popupEnter___AuQDN 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
|
|
124
|
+
}
|
|
125
|
+
.styles-module__popup___IhzrD.styles-module__entered___COX-w {
|
|
126
|
+
opacity: 1;
|
|
127
|
+
transform: translateX(-50%) scale(1) translateY(0);
|
|
128
|
+
}
|
|
129
|
+
.styles-module__popup___IhzrD.styles-module__exit___5eGjE {
|
|
130
|
+
animation: styles-module__popupExit___JJKQX 0.15s ease-in forwards;
|
|
131
|
+
}
|
|
132
|
+
.styles-module__popup___IhzrD.styles-module__entered___COX-w.styles-module__shake___jdbWe {
|
|
133
|
+
animation: styles-module__shake___jdbWe 0.25s ease-out;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.styles-module__header___wWsSi {
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: space-between;
|
|
140
|
+
margin-bottom: 0.5625rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.styles-module__element___fTV2z {
|
|
144
|
+
font-size: 0.75rem;
|
|
145
|
+
font-weight: 400;
|
|
146
|
+
color: rgba(255, 255, 255, 0.5);
|
|
147
|
+
max-width: 100%;
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
text-overflow: ellipsis;
|
|
150
|
+
white-space: nowrap;
|
|
151
|
+
flex: 1;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.styles-module__headerToggle___WpW0b {
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
gap: 0.25rem;
|
|
158
|
+
background: none;
|
|
159
|
+
border: none;
|
|
160
|
+
padding: 0;
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
flex: 1;
|
|
163
|
+
min-width: 0;
|
|
164
|
+
text-align: left;
|
|
165
|
+
}
|
|
166
|
+
.styles-module__headerToggle___WpW0b .styles-module__element___fTV2z {
|
|
167
|
+
flex: 1;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.styles-module__chevron___ZZJlR {
|
|
171
|
+
color: rgba(255, 255, 255, 0.5);
|
|
172
|
+
transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
173
|
+
flex-shrink: 0;
|
|
174
|
+
}
|
|
175
|
+
.styles-module__chevron___ZZJlR.styles-module__expanded___2Hxgv {
|
|
176
|
+
transform: rotate(90deg);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.styles-module__stylesWrapper___pnHgy {
|
|
180
|
+
display: grid;
|
|
181
|
+
grid-template-rows: 0fr;
|
|
182
|
+
transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
183
|
+
}
|
|
184
|
+
.styles-module__stylesWrapper___pnHgy.styles-module__expanded___2Hxgv {
|
|
185
|
+
grid-template-rows: 1fr;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.styles-module__stylesInner___YYZe2 {
|
|
189
|
+
overflow: hidden;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.styles-module__stylesBlock___VfQKn {
|
|
193
|
+
background: rgba(255, 255, 255, 0.05);
|
|
194
|
+
border-radius: 0.375rem;
|
|
195
|
+
padding: 0.5rem 0.625rem;
|
|
196
|
+
margin-bottom: 0.5rem;
|
|
197
|
+
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
198
|
+
font-size: 0.6875rem;
|
|
199
|
+
line-height: 1.5;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.styles-module__styleLine___1YQiD {
|
|
203
|
+
color: rgba(255, 255, 255, 0.85);
|
|
204
|
+
word-break: break-word;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.styles-module__styleProperty___84L1i {
|
|
208
|
+
color: #c792ea;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.styles-module__styleValue___q51-h {
|
|
212
|
+
color: rgba(255, 255, 255, 0.85);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.styles-module__timestamp___Dtpsv {
|
|
216
|
+
font-size: 0.625rem;
|
|
217
|
+
font-weight: 500;
|
|
218
|
+
color: rgba(255, 255, 255, 0.35);
|
|
219
|
+
font-variant-numeric: tabular-nums;
|
|
220
|
+
margin-left: 0.5rem;
|
|
221
|
+
flex-shrink: 0;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.styles-module__quote___mcMmQ {
|
|
225
|
+
font-size: 12px;
|
|
226
|
+
font-style: italic;
|
|
227
|
+
color: rgba(255, 255, 255, 0.6);
|
|
228
|
+
margin-bottom: 0.5rem;
|
|
229
|
+
padding: 0.4rem 0.5rem;
|
|
230
|
+
background: rgba(255, 255, 255, 0.05);
|
|
231
|
+
border-radius: 0.25rem;
|
|
232
|
+
line-height: 1.45;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.styles-module__textarea___jrSae {
|
|
236
|
+
width: 100%;
|
|
237
|
+
padding: 0.5rem 0.625rem;
|
|
238
|
+
font-size: 0.8125rem;
|
|
239
|
+
font-family: inherit;
|
|
240
|
+
background: rgba(255, 255, 255, 0.05);
|
|
241
|
+
color: #fff;
|
|
242
|
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
243
|
+
border-radius: 8px;
|
|
244
|
+
resize: none;
|
|
245
|
+
outline: none;
|
|
246
|
+
transition: border-color 0.15s ease;
|
|
247
|
+
}
|
|
248
|
+
.styles-module__textarea___jrSae:focus {
|
|
249
|
+
border-color: #3c82f7;
|
|
250
|
+
}
|
|
251
|
+
.styles-module__textarea___jrSae.styles-module__green___99l3h:focus {
|
|
252
|
+
border-color: #34c759;
|
|
253
|
+
}
|
|
254
|
+
.styles-module__textarea___jrSae::placeholder {
|
|
255
|
+
color: rgba(255, 255, 255, 0.35);
|
|
256
|
+
}
|
|
257
|
+
.styles-module__textarea___jrSae::-webkit-scrollbar {
|
|
258
|
+
width: 6px;
|
|
259
|
+
}
|
|
260
|
+
.styles-module__textarea___jrSae::-webkit-scrollbar-track {
|
|
261
|
+
background: transparent;
|
|
262
|
+
}
|
|
263
|
+
.styles-module__textarea___jrSae::-webkit-scrollbar-thumb {
|
|
264
|
+
background: rgba(255, 255, 255, 0.2);
|
|
265
|
+
border-radius: 3px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.styles-module__actions___D6x3f {
|
|
269
|
+
display: flex;
|
|
270
|
+
justify-content: flex-end;
|
|
271
|
+
gap: 0.375rem;
|
|
272
|
+
margin-top: 0.5rem;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.styles-module__cancel___hRjnL,
|
|
276
|
+
.styles-module__submit___K-mIR {
|
|
277
|
+
padding: 0.4rem 0.875rem;
|
|
278
|
+
font-size: 0.75rem;
|
|
279
|
+
font-weight: 500;
|
|
280
|
+
border-radius: 1rem;
|
|
281
|
+
border: none;
|
|
282
|
+
cursor: pointer;
|
|
283
|
+
transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.styles-module__cancel___hRjnL {
|
|
287
|
+
background: transparent;
|
|
288
|
+
color: rgba(255, 255, 255, 0.5);
|
|
289
|
+
}
|
|
290
|
+
.styles-module__cancel___hRjnL:hover {
|
|
291
|
+
background: rgba(255, 255, 255, 0.1);
|
|
292
|
+
color: rgba(255, 255, 255, 0.8);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.styles-module__submit___K-mIR {
|
|
296
|
+
color: white;
|
|
297
|
+
}
|
|
298
|
+
.styles-module__submit___K-mIR:hover:not(:disabled) {
|
|
299
|
+
filter: brightness(0.9);
|
|
300
|
+
}
|
|
301
|
+
.styles-module__submit___K-mIR:disabled {
|
|
302
|
+
cursor: not-allowed;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.styles-module__deleteWrapper___oSjdo {
|
|
306
|
+
margin-right: auto;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.styles-module__deleteButton___4VuAE {
|
|
310
|
+
cursor: pointer;
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
justify-content: center;
|
|
314
|
+
width: 28px;
|
|
315
|
+
height: 28px;
|
|
316
|
+
border-radius: 50%;
|
|
317
|
+
border: none;
|
|
318
|
+
background: transparent;
|
|
319
|
+
color: rgba(255, 255, 255, 0.4);
|
|
320
|
+
transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
|
|
321
|
+
}
|
|
322
|
+
.styles-module__deleteButton___4VuAE:hover {
|
|
323
|
+
background: rgba(255, 59, 48, 0.25);
|
|
324
|
+
color: #ff3b30;
|
|
325
|
+
}
|
|
326
|
+
.styles-module__deleteButton___4VuAE:active {
|
|
327
|
+
transform: scale(0.92);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.styles-module__light___6AaSQ.styles-module__popup___IhzrD {
|
|
331
|
+
background: #fff;
|
|
332
|
+
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
|
|
333
|
+
}
|
|
334
|
+
.styles-module__light___6AaSQ .styles-module__element___fTV2z {
|
|
335
|
+
color: rgba(0, 0, 0, 0.6);
|
|
336
|
+
}
|
|
337
|
+
.styles-module__light___6AaSQ .styles-module__timestamp___Dtpsv {
|
|
338
|
+
color: rgba(0, 0, 0, 0.4);
|
|
339
|
+
}
|
|
340
|
+
.styles-module__light___6AaSQ .styles-module__chevron___ZZJlR {
|
|
341
|
+
color: rgba(0, 0, 0, 0.4);
|
|
342
|
+
}
|
|
343
|
+
.styles-module__light___6AaSQ .styles-module__stylesBlock___VfQKn {
|
|
344
|
+
background: rgba(0, 0, 0, 0.03);
|
|
345
|
+
}
|
|
346
|
+
.styles-module__light___6AaSQ .styles-module__styleLine___1YQiD {
|
|
347
|
+
color: rgba(0, 0, 0, 0.75);
|
|
348
|
+
}
|
|
349
|
+
.styles-module__light___6AaSQ .styles-module__styleProperty___84L1i {
|
|
350
|
+
color: #7c3aed;
|
|
351
|
+
}
|
|
352
|
+
.styles-module__light___6AaSQ .styles-module__styleValue___q51-h {
|
|
353
|
+
color: rgba(0, 0, 0, 0.75);
|
|
354
|
+
}
|
|
355
|
+
.styles-module__light___6AaSQ .styles-module__quote___mcMmQ {
|
|
356
|
+
color: rgba(0, 0, 0, 0.55);
|
|
357
|
+
background: rgba(0, 0, 0, 0.04);
|
|
358
|
+
}
|
|
359
|
+
.styles-module__light___6AaSQ .styles-module__textarea___jrSae {
|
|
360
|
+
background: rgba(0, 0, 0, 0.03);
|
|
361
|
+
color: #1a1a1a;
|
|
362
|
+
border-color: rgba(0, 0, 0, 0.12);
|
|
363
|
+
}
|
|
364
|
+
.styles-module__light___6AaSQ .styles-module__textarea___jrSae::placeholder {
|
|
365
|
+
color: rgba(0, 0, 0, 0.4);
|
|
366
|
+
}
|
|
367
|
+
.styles-module__light___6AaSQ .styles-module__textarea___jrSae::-webkit-scrollbar-thumb {
|
|
368
|
+
background: rgba(0, 0, 0, 0.15);
|
|
369
|
+
}
|
|
370
|
+
.styles-module__light___6AaSQ .styles-module__cancel___hRjnL {
|
|
371
|
+
color: rgba(0, 0, 0, 0.5);
|
|
372
|
+
}
|
|
373
|
+
.styles-module__light___6AaSQ .styles-module__cancel___hRjnL:hover {
|
|
374
|
+
background: rgba(0, 0, 0, 0.06);
|
|
375
|
+
color: rgba(0, 0, 0, 0.75);
|
|
376
|
+
}
|
|
377
|
+
.styles-module__light___6AaSQ .styles-module__deleteButton___4VuAE {
|
|
378
|
+
color: rgba(0, 0, 0, 0.4);
|
|
379
|
+
}
|
|
380
|
+
.styles-module__light___6AaSQ .styles-module__deleteButton___4VuAE:hover {
|
|
381
|
+
background: rgba(255, 59, 48, 0.15);
|
|
382
|
+
color: #ff3b30;
|
|
383
|
+
}`,h2={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 ve=h2,_2=({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"})}),g2=({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"})}),y2=({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"})})})]}),ss=({size:e=20})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",children:[a.jsx("circle",{cx:"10",cy:"10.5",r:"5.25",stroke:"currentColor",strokeWidth:"1.25"}),a.jsx("path",{d:"M8.5 8.75C8.5 7.92 9.17 7.25 10 7.25C10.83 7.25 11.5 7.92 11.5 8.75C11.5 9.58 10.83 10.25 10 10.25V11",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("circle",{cx:"10",cy:"13",r:"0.75",fill:"currentColor"})]}),hm=({size:e=14})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("style",{children:`
|
|
384
|
+
@keyframes checkDraw {
|
|
385
|
+
0% {
|
|
386
|
+
stroke-dashoffset: 12;
|
|
387
|
+
}
|
|
388
|
+
100% {
|
|
389
|
+
stroke-dashoffset: 0;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
@keyframes checkBounce {
|
|
393
|
+
0% {
|
|
394
|
+
transform: scale(0.5);
|
|
395
|
+
opacity: 0;
|
|
396
|
+
}
|
|
397
|
+
50% {
|
|
398
|
+
transform: scale(1.12);
|
|
399
|
+
opacity: 1;
|
|
400
|
+
}
|
|
401
|
+
75% {
|
|
402
|
+
transform: scale(0.95);
|
|
403
|
+
}
|
|
404
|
+
100% {
|
|
405
|
+
transform: scale(1);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
.check-path-animated {
|
|
409
|
+
stroke-dasharray: 12;
|
|
410
|
+
stroke-dashoffset: 0;
|
|
411
|
+
transform-origin: center;
|
|
412
|
+
animation: checkDraw 0.18s ease-out, checkBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
413
|
+
}
|
|
414
|
+
`}),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"})]}),v2=({size:e=24,copied:t=!1})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsx("style",{children:`
|
|
415
|
+
.copy-icon, .check-icon {
|
|
416
|
+
transition: opacity 0.2s ease, transform 0.2s ease;
|
|
417
|
+
}
|
|
418
|
+
`}),a.jsxs("g",{className:"copy-icon",style:{opacity:t?0:1,transform:t?"scale(0.8)":"scale(1)",transformOrigin:"center"},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:"check-icon",style:{opacity:t?1:0,transform:t?"scale(1)":"scale(0.8)",transformOrigin:"center"},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:"#22c55e",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M15 10L11 14.25L9.25 12.25",stroke:"#22c55e",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),x2=({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("style",{children:`
|
|
419
|
+
.send-arrow-icon, .send-check-icon, .send-error-icon {
|
|
420
|
+
transition: opacity 0.15s ease, transform 0.15s ease;
|
|
421
|
+
}
|
|
422
|
+
`}),a.jsx("g",{className:"send-arrow-icon",style:{opacity:n?1:s?.5:0,transform:n?"scale(1)":"scale(0.8)",transformOrigin:"center"},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:"send-check-icon",style:{opacity:r?1:0,transform:r?"scale(1)":"scale(0.8)",transformOrigin:"center"},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:"#22c55e",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M15 10L11 14.25L9.25 12.25",stroke:"#22c55e",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsxs("g",{className:"send-error-icon",style:{opacity:o?1:0,transform:o?"scale(1)":"scale(0.8)",transformOrigin:"center"},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:"#ef4444",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M12 8V12",stroke:"#ef4444",strokeWidth:"1.5",strokeLinecap:"round"}),a.jsx("circle",{cx:"12",cy:"15",r:"0.5",fill:"#ef4444",stroke:"#ef4444",strokeWidth:"1"})]})]})},w2=({size:e=24,isOpen:t=!0})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsx("style",{children:`
|
|
423
|
+
.eye-open, .eye-closed {
|
|
424
|
+
transition: opacity 0.2s ease;
|
|
425
|
+
}
|
|
426
|
+
`}),a.jsxs("g",{className:"eye-open",style:{opacity:t?1:0},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:"eye-closed",style:{opacity:t?0:1},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"})]})]}),b2=({size:e=24,isPaused:t=!1})=>a.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[a.jsx("style",{children:`
|
|
427
|
+
.pause-bar, .play-triangle {
|
|
428
|
+
transition: opacity 0.15s ease;
|
|
429
|
+
}
|
|
430
|
+
`}),a.jsx("path",{className:"pause-bar",d:"M8 6L8 18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",style:{opacity:t?0:1}}),a.jsx("path",{className:"pause-bar",d:"M16 18L16 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",style:{opacity:t?0:1}}),a.jsx("path",{className:"play-triangle",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",style:{opacity:t?1:0}})]}),C2=({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"})]}),k2=({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"})}),cc=({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"})})})]}),S2=({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"})}),E2=({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"})]}),N2=({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"})}),_m=({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"})}),j2=({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"})}),P2=({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"})}),i0=["data-feedback-toolbar","data-annotation-popup","data-annotation-marker"],uc=i0.flatMap(e=>[`:not([${e}])`,`:not([${e}] *)`]).join(""),Pu="feedback-freeze-styles",dc="__agentation_freeze";function R2(){if(typeof window>"u")return{frozen:!1,installed:!0,origSetTimeout:setTimeout,origSetInterval:setInterval,origRAF:t=>0,pausedAnimations:[],frozenTimeoutQueue:[],frozenRAFQueue:[]};const e=window;return e[dc]||(e[dc]={frozen:!1,installed:!1,origSetTimeout:null,origSetInterval:null,origRAF:null,pausedAnimations:[],frozenTimeoutQueue:[],frozenRAFQueue:[]}),e[dc]}var le=R2();typeof window<"u"&&!le.installed&&(le.origSetTimeout=window.setTimeout.bind(window),le.origSetInterval=window.setInterval.bind(window),le.origRAF=window.requestAnimationFrame.bind(window),window.setTimeout=(e,t,...n)=>typeof e=="string"?le.origSetTimeout(e,t):le.origSetTimeout((...r)=>{le.frozen?le.frozenTimeoutQueue.push(()=>e(...r)):e(...r)},t,...n),window.setInterval=(e,t,...n)=>typeof e=="string"?le.origSetInterval(e,t):le.origSetInterval((...r)=>{le.frozen||e(...r)},t,...n),window.requestAnimationFrame=e=>le.origRAF(t=>{le.frozen?le.frozenRAFQueue.push(e):e(t)}),le.installed=!0);var de=le.origSetTimeout,T2=le.origSetInterval;function L2(e){return e?i0.some(t=>!!e.closest?.(`[${t}]`)):!1}function I2(){if(typeof document>"u"||le.frozen)return;le.frozen=!0,le.frozenTimeoutQueue=[],le.frozenRAFQueue=[];let e=document.getElementById(Pu);e||(e=document.createElement("style"),e.id=Pu),e.textContent=`
|
|
431
|
+
*${uc},
|
|
432
|
+
*${uc}::before,
|
|
433
|
+
*${uc}::after {
|
|
434
|
+
animation-play-state: paused !important;
|
|
435
|
+
transition: none !important;
|
|
436
|
+
}
|
|
437
|
+
`,document.head.appendChild(e),le.pausedAnimations=[];try{document.getAnimations().forEach(t=>{if(t.playState!=="running")return;const n=t.effect?.target;L2(n)||(t.pause(),le.pausedAnimations.push(t))})}catch{}document.querySelectorAll("video").forEach(t=>{t.paused||(t.dataset.wasPaused="false",t.pause())})}function gm(){if(typeof document>"u"||!le.frozen)return;le.frozen=!1;const e=le.frozenTimeoutQueue;le.frozenTimeoutQueue=[];for(const n of e)le.origSetTimeout(()=>{if(le.frozen){le.frozenTimeoutQueue.push(n);return}try{n()}catch(r){console.warn("[agentation] Error replaying queued timeout:",r)}},0);const t=le.frozenRAFQueue;le.frozenRAFQueue=[];for(const n of t)le.origRAF(r=>{if(le.frozen){le.frozenRAFQueue.push(n);return}n(r)});for(const n of le.pausedAnimations)try{n.play()}catch(r){console.warn("[agentation] Error resuming animation:",r)}le.pausedAnimations=[],document.getElementById(Pu)?.remove(),document.querySelectorAll("video").forEach(n=>{n.dataset.wasPaused==="false"&&(n.play().catch(()=>{}),delete n.dataset.wasPaused)})}var ym=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:g=!1,computedStyles:x},y){const[w,h]=u.useState(s),[_,v]=u.useState(!1),[S,E]=u.useState("initial"),[N,j]=u.useState(!1),[T,z]=u.useState(!1),M=u.useRef(null),X=u.useRef(null),L=u.useRef(null),Z=u.useRef(null);u.useEffect(()=>{m&&S!=="exit"&&E("exit")},[m,S]),u.useEffect(()=>{de(()=>{E("enter")},0);const $=de(()=>{E("entered")},200),H=de(()=>{const J=M.current;J&&(J.focus(),J.selectionStart=J.selectionEnd=J.value.length,J.scrollTop=J.scrollHeight)},50);return()=>{clearTimeout($),clearTimeout(H),L.current&&clearTimeout(L.current),Z.current&&clearTimeout(Z.current)}},[]);const se=u.useCallback(()=>{Z.current&&clearTimeout(Z.current),v(!0),Z.current=de(()=>{v(!1),M.current?.focus()},250)},[]);u.useImperativeHandle(y,()=>({shake:se}),[se]);const ge=u.useCallback(()=>{E("exit"),L.current=de(()=>{c()},150)},[c]),Q=u.useCallback(()=>{w.trim()&&i(w.trim())},[w,i]),pe=u.useCallback($=>{$.nativeEvent.isComposing||($.key==="Enter"&&!$.shiftKey&&($.preventDefault(),Q()),$.key==="Escape"&&ge())},[Q,ge]),I=[ve.popup,g?ve.light:"",S==="enter"?ve.enter:"",S==="entered"?ve.entered:"",S==="exit"?ve.exit:"",_?ve.shake:""].filter(Boolean).join(" ");return a.jsxs("div",{ref:X,className:I,"data-annotation-popup":!0,style:f,onClick:$=>$.stopPropagation(),children:[a.jsxs("div",{className:ve.header,children:[x&&Object.keys(x).length>0?a.jsxs("button",{className:ve.headerToggle,onClick:()=>{const $=T;z(!T),$&&de(()=>M.current?.focus(),0)},type:"button",children:[a.jsx("svg",{className:`${ve.chevron} ${T?ve.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:ve.element,children:t})]}):a.jsx("span",{className:ve.element,children:t}),n&&a.jsx("span",{className:ve.timestamp,children:n})]}),x&&Object.keys(x).length>0&&a.jsx("div",{className:`${ve.stylesWrapper} ${T?ve.expanded:""}`,children:a.jsx("div",{className:ve.stylesInner,children:a.jsx("div",{className:ve.stylesBlock,children:Object.entries(x).map(([$,H])=>a.jsxs("div",{className:ve.styleLine,children:[a.jsx("span",{className:ve.styleProperty,children:$.replace(/([A-Z])/g,"-$1").toLowerCase()}),": ",a.jsx("span",{className:ve.styleValue,children:H}),";"]},$))})})}),r&&a.jsxs("div",{className:ve.quote,children:["“",r.slice(0,80),r.length>80?"...":"","”"]}),a.jsx("textarea",{ref:M,className:ve.textarea,style:{borderColor:N?p:void 0},placeholder:o,value:w,onChange:$=>h($.target.value),onFocus:()=>j(!0),onBlur:()=>j(!1),rows:2,onKeyDown:pe}),a.jsxs("div",{className:ve.actions,children:[d&&a.jsx("div",{className:ve.deleteWrapper,children:a.jsx("button",{className:ve.deleteButton,onClick:d,type:"button",children:a.jsx(j2,{size:22})})}),a.jsx("button",{className:ve.cancel,onClick:ge,children:"Cancel"}),a.jsx("button",{className:ve.submit,style:{backgroundColor:p,opacity:w.trim()?1:.4},onClick:Q,disabled:!w.trim(),children:l})]})]})});function Io(e){if(e.parentElement)return e.parentElement;const t=e.getRootNode();return t instanceof ShadowRoot?t.host:null}function it(e,t){let n=e;for(;n;){if(n.matches(t))return n;n=Io(n)}return null}function A2(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=Io(r);!r.parentElement&&i&&(l=`⟨shadow⟩ ${l}`),n.unshift(l),r=i,o++}return n.join(" > ")}function Pi(e){const t=A2(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=it(e,"svg");if(r){const o=Io(r);if(o instanceof HTMLElement)return{name:`graphic in ${Pi(o).name}`,path:t}}return{name:"graphic element",path:t}}if(n==="svg"){const r=Io(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 ls(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 jl(e){const t=Io(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 g="";if(typeof m=="string"&&m){const x=m.split(/\s+/).map(y=>y.replace(/[_][a-zA-Z0-9]{5,}.*$/,"")).find(y=>y.length>2&&!/^[a-z]{1,2}$/.test(y));x&&(g=`.${x}`)}if(p==="button"||p==="a"){const x=f.textContent?.trim().slice(0,15);if(x)return`${p}${g} "${x}"`}return`${p}${g}`});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 is(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 a0=new Set(["none","normal","auto","0px","rgba(0, 0, 0, 0)","transparent","static","visible"]),O2=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"]),M2=new Set(["input","textarea","select"]),$2=new Set(["img","video","canvas","svg"]),D2=new Set(["div","section","article","nav","header","footer","aside","main","ul","ol","form","fieldset"]);function Pl(e){if(typeof window>"u")return{};const t=window.getComputedStyle(e),n={},r=e.tagName.toLowerCase();let o;O2.has(r)?o=["color","fontSize","fontWeight","fontFamily","lineHeight"]:r==="button"||r==="a"&&e.getAttribute("role")==="button"?o=["backgroundColor","color","padding","borderRadius","fontSize"]:M2.has(r)?o=["backgroundColor","color","padding","borderRadius","fontSize"]:$2.has(r)?o=["width","height","objectFit","borderRadius"]:D2.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&&!a0.has(i)&&(n[s]=i)}return n}var z2=["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 Rl(e){if(typeof window>"u")return"";const t=window.getComputedStyle(e),n=[];for(const r of z2){const o=r.replace(/([A-Z])/g,"-$1").toLowerCase(),s=t.getPropertyValue(o);s&&!a0.has(s)&&n.push(`${o}: ${s}`)}return n.join("; ")}function F2(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 Tl(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 Ll(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=Io(n);!n.parentElement&&s&&(o=`⟨shadow⟩ ${o}`),t.unshift(o),n=s}return t.join(" > ")}var Ru="feedback-annotations-",c0=7;function Ri(e){return`${Ru}${e}`}function fc(e){if(typeof window>"u")return[];try{const t=localStorage.getItem(Ri(e));if(!t)return[];const n=JSON.parse(t),r=Date.now()-c0*24*60*60*1e3;return n.filter(o=>!o.timestamp||o.timestamp>r)}catch{return[]}}function u0(e,t){if(!(typeof window>"u"))try{localStorage.setItem(Ri(e),JSON.stringify(t))}catch{}}function B2(){const e=new Map;if(typeof window>"u")return e;try{const t=Date.now()-c0*24*60*60*1e3;for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);if(r?.startsWith(Ru)){const o=r.slice(Ru.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 as(e,t,n){const r=t.map(o=>({...o,_syncedTo:n}));u0(e,r)}var W2="agentation-session-";function Ud(e){return`${W2}${e}`}function H2(e){if(typeof window>"u")return null;try{return localStorage.getItem(Ud(e))}catch{return null}}function pc(e,t){if(!(typeof window>"u"))try{localStorage.setItem(Ud(e),t)}catch{}}function U2(e){if(!(typeof window>"u"))try{localStorage.removeItem(Ud(e))}catch{}}async function mc(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 vm(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 Il(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 Y2(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 xm(e,t){const n=await fetch(`${e}/annotations/${t}`,{method:"DELETE"});if(!n.ok)throw new Error(`Failed to delete annotation: ${n.status}`)}var me={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},wm=new Set(["Component","PureComponent","Fragment","Suspense","Profiler","StrictMode","Routes","Route","Outlet","Root","ErrorBoundaryHandler","HotReload","Hot"]),bm=[/Boundary$/,/BoundaryHandler$/,/Provider$/,/Consumer$/,/^(Inner|Outer)/,/Router$/,/^Client(Page|Segment|Root)/,/^Server(Root|Component|Render)/,/^RSC/,/Context$/,/^Hot(Reload)?$/,/^(Dev|React)(Overlay|Tools|Root)/,/Overlay$/,/Handler$/,/^With[A-Z]/,/Wrapper$/,/^Root$/],V2=[/Page$/,/View$/,/Screen$/,/Section$/,/Card$/,/List$/,/Item$/,/Form$/,/Modal$/,/Dialog$/,/Button$/,/Nav$/,/Header$/,/Footer$/,/Layout$/,/Panel$/,/Tab$/,/Menu$/];function X2(e){const t=e?.mode??"filtered";let n=wm;if(e?.skipExact){const r=e.skipExact instanceof Set?e.skipExact:new Set(e.skipExact);n=new Set([...wm,...r])}return{maxComponents:e?.maxComponents??6,maxDepth:e?.maxDepth??30,mode:t,skipExact:n,skipPatterns:e?.skipPatterns?[...bm,...e.skipPatterns]:bm,userPatterns:e?.userPatterns??V2,filter:e?.filter}}function Q2(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").toLowerCase()}function G2(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 K2(e,t){const n=Q2(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 Z2(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&&K2(e,r)||n.userPatterns.some(o=>o.test(e)));default:return!0}}var Xr=null,J2=new WeakMap;function hc(e){return Object.keys(e).some(t=>t.startsWith("__reactFiber$")||t.startsWith("__reactInternalInstance$")||t.startsWith("__reactProps$"))}function q2(){if(Xr!==null)return Xr;if(typeof document>"u")return!1;if(document.body&&hc(document.body))return Xr=!0,!0;const e=["#root","#app","#__next","[data-reactroot]"];for(const t of e){const n=document.querySelector(t);if(n&&hc(n))return Xr=!0,!0}if(document.body){for(const t of document.body.children)if(hc(t))return Xr=!0,!0}return Xr=!1,!1}var cs={map:J2};function eC(e){return Object.keys(e).find(n=>n.startsWith("__reactFiber$")||n.startsWith("__reactInternalInstance$"))||null}function tC(e){const t=eC(e);return t?e[t]:null}function _r(e){return e?e.displayName?e.displayName:e.name?e.name:null:null}function nC(e){const{tag:t,type:n,elementType:r}=e;if(t===me.HostComponent||t===me.HostText||t===me.HostHoistable||t===me.HostSingleton||t===me.Fragment||t===me.Mode||t===me.Profiler||t===me.DehydratedFragment||t===me.HostRoot||t===me.HostPortal||t===me.ScopeComponent||t===me.OffscreenComponent||t===me.LegacyHiddenComponent||t===me.CacheComponent||t===me.TracingMarkerComponent||t===me.Throw||t===me.ViewTransitionComponent||t===me.ActivityComponent)return null;if(t===me.ForwardRef){const o=r;if(o?.render){const s=_r(o.render);if(s)return s}return o?.displayName?o.displayName:_r(n)}if(t===me.MemoComponent||t===me.SimpleMemoComponent){const o=r;if(o?.type){const s=_r(o.type);if(s)return s}return o?.displayName?o.displayName:_r(n)}if(t===me.ContextProvider){const o=n;return o?._context?.displayName?`${o._context.displayName}.Provider`:null}if(t===me.ContextConsumer){const o=n;return o?.displayName?`${o.displayName}.Consumer`:null}if(t===me.LazyComponent){const o=r;return o?._status===1&&o._result?_r(o._result):null}return t===me.SuspenseComponent||t===me.SuspenseListComponent?null:t===me.IncompleteClassComponent||t===me.IncompleteFunctionComponent||t===me.FunctionComponent||t===me.ClassComponent||t===me.IndeterminateComponent?_r(n):null}function rC(e){return e.length<=2||e.length<=3&&e===e.toLowerCase()}function oC(e,t){const n=X2(t),r=n.mode==="all";if(r){const c=cs.map.get(e);if(c!==void 0)return c}if(!q2()){const c={path:null,components:[]};return r&&cs.map.set(e,c),c}const o=n.mode==="smart"?G2(e):void 0,s=[];try{let c=tC(e),d=0;for(;c&&d<n.maxDepth&&s.length<n.maxComponents;){const f=nC(c);f&&!rC(f)&&Z2(f,d,n,o)&&s.push(f),c=c.return,d++}}catch{const c={path:null,components:[]};return r&&cs.map.set(e,c),c}if(s.length===0){const c={path:null,components:[]};return r&&cs.map.set(e,c),c}const i={path:s.slice().reverse().map(c=>`<${c}>`).join(" "),components:s};return r&&cs.map.set(e,i),i}var sC=`svg[fill=none] {
|
|
438
|
+
fill: none !important;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
@keyframes styles-module__toolbarEnter___u8RRu {
|
|
442
|
+
from {
|
|
443
|
+
opacity: 0;
|
|
444
|
+
transform: scale(0.5) rotate(90deg);
|
|
445
|
+
}
|
|
446
|
+
to {
|
|
447
|
+
opacity: 1;
|
|
448
|
+
transform: scale(1) rotate(0deg);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
@keyframes styles-module__badgeEnter___mVQLj {
|
|
452
|
+
from {
|
|
453
|
+
opacity: 0;
|
|
454
|
+
transform: scale(0);
|
|
455
|
+
}
|
|
456
|
+
to {
|
|
457
|
+
opacity: 1;
|
|
458
|
+
transform: scale(1);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
@keyframes styles-module__scaleIn___c-r1K {
|
|
462
|
+
from {
|
|
463
|
+
opacity: 0;
|
|
464
|
+
transform: scale(0.85);
|
|
465
|
+
}
|
|
466
|
+
to {
|
|
467
|
+
opacity: 1;
|
|
468
|
+
transform: scale(1);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
@keyframes styles-module__scaleOut___Wctwz {
|
|
472
|
+
from {
|
|
473
|
+
opacity: 1;
|
|
474
|
+
transform: scale(1);
|
|
475
|
+
}
|
|
476
|
+
to {
|
|
477
|
+
opacity: 0;
|
|
478
|
+
transform: scale(0.85);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
@keyframes styles-module__slideUp___kgD36 {
|
|
482
|
+
from {
|
|
483
|
+
opacity: 0;
|
|
484
|
+
transform: scale(0.85) translateY(8px);
|
|
485
|
+
}
|
|
486
|
+
to {
|
|
487
|
+
opacity: 1;
|
|
488
|
+
transform: scale(1) translateY(0);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
@keyframes styles-module__slideDown___zcdje {
|
|
492
|
+
from {
|
|
493
|
+
opacity: 1;
|
|
494
|
+
transform: scale(1) translateY(0);
|
|
495
|
+
}
|
|
496
|
+
to {
|
|
497
|
+
opacity: 0;
|
|
498
|
+
transform: scale(0.85) translateY(8px);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
@keyframes styles-module__markerIn___5FaAP {
|
|
502
|
+
0% {
|
|
503
|
+
opacity: 0;
|
|
504
|
+
transform: translate(-50%, -50%) scale(0.3);
|
|
505
|
+
}
|
|
506
|
+
100% {
|
|
507
|
+
opacity: 1;
|
|
508
|
+
transform: translate(-50%, -50%) scale(1);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
@keyframes styles-module__markerOut___GU5jX {
|
|
512
|
+
0% {
|
|
513
|
+
opacity: 1;
|
|
514
|
+
transform: translate(-50%, -50%) scale(1);
|
|
515
|
+
}
|
|
516
|
+
100% {
|
|
517
|
+
opacity: 0;
|
|
518
|
+
transform: translate(-50%, -50%) scale(0.3);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
@keyframes styles-module__fadeIn___b9qmf {
|
|
522
|
+
from {
|
|
523
|
+
opacity: 0;
|
|
524
|
+
}
|
|
525
|
+
to {
|
|
526
|
+
opacity: 1;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
@keyframes styles-module__fadeOut___6Ut6- {
|
|
530
|
+
from {
|
|
531
|
+
opacity: 1;
|
|
532
|
+
}
|
|
533
|
+
to {
|
|
534
|
+
opacity: 0;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
@keyframes styles-module__tooltipIn___0N31w {
|
|
538
|
+
from {
|
|
539
|
+
opacity: 0;
|
|
540
|
+
transform: translateX(-50%) translateY(2px) scale(0.891);
|
|
541
|
+
}
|
|
542
|
+
to {
|
|
543
|
+
opacity: 1;
|
|
544
|
+
transform: translateX(-50%) translateY(0) scale(0.909);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
@keyframes styles-module__hoverHighlightIn___6WYHY {
|
|
548
|
+
from {
|
|
549
|
+
opacity: 0;
|
|
550
|
+
transform: scale(0.98);
|
|
551
|
+
}
|
|
552
|
+
to {
|
|
553
|
+
opacity: 1;
|
|
554
|
+
transform: scale(1);
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
@keyframes styles-module__hoverTooltipIn___FYGQx {
|
|
558
|
+
from {
|
|
559
|
+
opacity: 0;
|
|
560
|
+
transform: scale(0.95) translateY(4px);
|
|
561
|
+
}
|
|
562
|
+
to {
|
|
563
|
+
opacity: 1;
|
|
564
|
+
transform: scale(1) translateY(0);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
@keyframes styles-module__settingsPanelIn___MGfO8 {
|
|
568
|
+
from {
|
|
569
|
+
opacity: 0;
|
|
570
|
+
transform: translateY(10px) scale(0.95);
|
|
571
|
+
filter: blur(5px);
|
|
572
|
+
}
|
|
573
|
+
to {
|
|
574
|
+
opacity: 1;
|
|
575
|
+
transform: translateY(0) scale(1);
|
|
576
|
+
filter: blur(0px);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
@keyframes styles-module__settingsPanelOut___Zfymi {
|
|
580
|
+
from {
|
|
581
|
+
opacity: 1;
|
|
582
|
+
transform: translateY(0) scale(1);
|
|
583
|
+
filter: blur(0px);
|
|
584
|
+
}
|
|
585
|
+
to {
|
|
586
|
+
opacity: 0;
|
|
587
|
+
transform: translateY(20px) scale(0.95);
|
|
588
|
+
filter: blur(5px);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
.styles-module__toolbar___wNsdK {
|
|
592
|
+
position: fixed;
|
|
593
|
+
bottom: 1.25rem;
|
|
594
|
+
right: 1.25rem;
|
|
595
|
+
width: 297px;
|
|
596
|
+
z-index: 100000;
|
|
597
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
598
|
+
pointer-events: none;
|
|
599
|
+
transition: left 0s, top 0s, right 0s, bottom 0s;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.styles-module__toolbarContainer___dIhma {
|
|
603
|
+
user-select: none;
|
|
604
|
+
margin-left: auto;
|
|
605
|
+
align-self: flex-end;
|
|
606
|
+
display: flex;
|
|
607
|
+
align-items: center;
|
|
608
|
+
justify-content: center;
|
|
609
|
+
background: #1a1a1a;
|
|
610
|
+
color: #fff;
|
|
611
|
+
border: none;
|
|
612
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
|
|
613
|
+
pointer-events: auto;
|
|
614
|
+
cursor: grab;
|
|
615
|
+
transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
|
|
616
|
+
}
|
|
617
|
+
.styles-module__toolbarContainer___dIhma.styles-module__dragging___xrolZ {
|
|
618
|
+
transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
|
|
619
|
+
cursor: grabbing;
|
|
620
|
+
}
|
|
621
|
+
.styles-module__toolbarContainer___dIhma.styles-module__entrance___sgHd8 {
|
|
622
|
+
animation: styles-module__toolbarEnter___u8RRu 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
|
|
623
|
+
}
|
|
624
|
+
.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn {
|
|
625
|
+
width: 44px;
|
|
626
|
+
height: 44px;
|
|
627
|
+
border-radius: 22px;
|
|
628
|
+
padding: 0;
|
|
629
|
+
cursor: pointer;
|
|
630
|
+
}
|
|
631
|
+
.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn svg {
|
|
632
|
+
margin-top: -1px;
|
|
633
|
+
}
|
|
634
|
+
.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:hover {
|
|
635
|
+
background: #2a2a2a;
|
|
636
|
+
}
|
|
637
|
+
.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:active {
|
|
638
|
+
transform: scale(0.95);
|
|
639
|
+
}
|
|
640
|
+
.styles-module__toolbarContainer___dIhma.styles-module__expanded___ofKPx {
|
|
641
|
+
height: 44px;
|
|
642
|
+
border-radius: 1.5rem;
|
|
643
|
+
padding: 0.375rem;
|
|
644
|
+
width: 257px;
|
|
645
|
+
}
|
|
646
|
+
.styles-module__toolbarContainer___dIhma.styles-module__expanded___ofKPx.styles-module__serverConnected___Gfbou {
|
|
647
|
+
width: 297px;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.styles-module__toggleContent___0yfyP {
|
|
651
|
+
position: absolute;
|
|
652
|
+
display: flex;
|
|
653
|
+
align-items: center;
|
|
654
|
+
justify-content: center;
|
|
655
|
+
transition: opacity 0.1s cubic-bezier(0.19, 1, 0.22, 1);
|
|
656
|
+
}
|
|
657
|
+
.styles-module__toggleContent___0yfyP.styles-module__visible___KHwEW {
|
|
658
|
+
opacity: 1;
|
|
659
|
+
visibility: visible;
|
|
660
|
+
pointer-events: auto;
|
|
661
|
+
}
|
|
662
|
+
.styles-module__toggleContent___0yfyP.styles-module__hidden___Ae8H4 {
|
|
663
|
+
opacity: 0;
|
|
664
|
+
pointer-events: none;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.styles-module__controlsContent___9GJWU {
|
|
668
|
+
display: flex;
|
|
669
|
+
align-items: center;
|
|
670
|
+
gap: 0.375rem;
|
|
671
|
+
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);
|
|
672
|
+
}
|
|
673
|
+
.styles-module__controlsContent___9GJWU.styles-module__visible___KHwEW {
|
|
674
|
+
opacity: 1;
|
|
675
|
+
filter: blur(0px);
|
|
676
|
+
transform: scale(1);
|
|
677
|
+
visibility: visible;
|
|
678
|
+
pointer-events: auto;
|
|
679
|
+
}
|
|
680
|
+
.styles-module__controlsContent___9GJWU.styles-module__hidden___Ae8H4 {
|
|
681
|
+
pointer-events: none;
|
|
682
|
+
opacity: 0;
|
|
683
|
+
filter: blur(10px);
|
|
684
|
+
transform: scale(0.4);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.styles-module__badge___2XsgF {
|
|
688
|
+
position: absolute;
|
|
689
|
+
top: -13px;
|
|
690
|
+
right: -13px;
|
|
691
|
+
user-select: none;
|
|
692
|
+
min-width: 18px;
|
|
693
|
+
height: 18px;
|
|
694
|
+
padding: 0 5px;
|
|
695
|
+
border-radius: 9px;
|
|
696
|
+
background: #3c82f7;
|
|
697
|
+
color: white;
|
|
698
|
+
font-size: 0.625rem;
|
|
699
|
+
font-weight: 600;
|
|
700
|
+
display: flex;
|
|
701
|
+
align-items: center;
|
|
702
|
+
justify-content: center;
|
|
703
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
|
|
704
|
+
opacity: 1;
|
|
705
|
+
transition: transform 0.3s ease, opacity 0.2s ease;
|
|
706
|
+
transform: scale(1);
|
|
707
|
+
}
|
|
708
|
+
.styles-module__badge___2XsgF.styles-module__fadeOut___6Ut6- {
|
|
709
|
+
opacity: 0;
|
|
710
|
+
transform: scale(0);
|
|
711
|
+
pointer-events: none;
|
|
712
|
+
}
|
|
713
|
+
.styles-module__badge___2XsgF.styles-module__entrance___sgHd8 {
|
|
714
|
+
animation: styles-module__badgeEnter___mVQLj 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) 0.4s both;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.styles-module__controlButton___8Q0jc {
|
|
718
|
+
position: relative;
|
|
719
|
+
cursor: pointer !important;
|
|
720
|
+
display: flex;
|
|
721
|
+
align-items: center;
|
|
722
|
+
justify-content: center;
|
|
723
|
+
width: 34px;
|
|
724
|
+
height: 34px;
|
|
725
|
+
border-radius: 50%;
|
|
726
|
+
border: none;
|
|
727
|
+
background: transparent;
|
|
728
|
+
color: rgba(255, 255, 255, 0.85);
|
|
729
|
+
transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease, opacity 0.2s ease;
|
|
730
|
+
}
|
|
731
|
+
.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]) {
|
|
732
|
+
background: rgba(255, 255, 255, 0.12);
|
|
733
|
+
color: #fff;
|
|
734
|
+
}
|
|
735
|
+
.styles-module__controlButton___8Q0jc:active:not(:disabled) {
|
|
736
|
+
transform: scale(0.92);
|
|
737
|
+
}
|
|
738
|
+
.styles-module__controlButton___8Q0jc:disabled {
|
|
739
|
+
opacity: 0.35;
|
|
740
|
+
cursor: not-allowed;
|
|
741
|
+
}
|
|
742
|
+
.styles-module__controlButton___8Q0jc[data-active=true] {
|
|
743
|
+
color: #3c82f7;
|
|
744
|
+
background: rgba(60, 130, 247, 0.25);
|
|
745
|
+
}
|
|
746
|
+
.styles-module__controlButton___8Q0jc[data-error=true] {
|
|
747
|
+
color: #ff3b30;
|
|
748
|
+
background: rgba(255, 59, 48, 0.25);
|
|
749
|
+
}
|
|
750
|
+
.styles-module__controlButton___8Q0jc[data-danger]:hover:not(:disabled):not([data-active=true]):not([data-failed=true]) {
|
|
751
|
+
background: rgba(255, 59, 48, 0.25);
|
|
752
|
+
color: #ff3b30;
|
|
753
|
+
}
|
|
754
|
+
.styles-module__controlButton___8Q0jc[data-no-hover=true], .styles-module__controlButton___8Q0jc.styles-module__statusShowing___te6iu {
|
|
755
|
+
cursor: default !important;
|
|
756
|
+
pointer-events: none;
|
|
757
|
+
background: transparent !important;
|
|
758
|
+
}
|
|
759
|
+
.styles-module__controlButton___8Q0jc[data-auto-sync=true] {
|
|
760
|
+
color: #34c759;
|
|
761
|
+
background: transparent;
|
|
762
|
+
cursor: default;
|
|
763
|
+
}
|
|
764
|
+
.styles-module__controlButton___8Q0jc[data-failed=true] {
|
|
765
|
+
color: #ff3b30;
|
|
766
|
+
background: rgba(255, 59, 48, 0.25);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.styles-module__buttonBadge___NeFWb {
|
|
770
|
+
position: absolute;
|
|
771
|
+
top: 0px;
|
|
772
|
+
right: 0px;
|
|
773
|
+
min-width: 16px;
|
|
774
|
+
height: 16px;
|
|
775
|
+
padding: 0 4px;
|
|
776
|
+
border-radius: 8px;
|
|
777
|
+
background: #3c82f7;
|
|
778
|
+
color: white;
|
|
779
|
+
font-size: 0.625rem;
|
|
780
|
+
font-weight: 600;
|
|
781
|
+
display: flex;
|
|
782
|
+
align-items: center;
|
|
783
|
+
justify-content: center;
|
|
784
|
+
box-shadow: 0 0 0 2px #1a1a1a, 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
785
|
+
pointer-events: none;
|
|
786
|
+
}
|
|
787
|
+
.styles-module__buttonBadge___NeFWb.styles-module__light___r6n4Y {
|
|
788
|
+
box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
@keyframes styles-module__mcpIndicatorPulseConnected___EDodZ {
|
|
792
|
+
0%, 100% {
|
|
793
|
+
box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);
|
|
794
|
+
}
|
|
795
|
+
50% {
|
|
796
|
+
box-shadow: 0 0 0 5px rgba(52, 199, 89, 0);
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
@keyframes styles-module__mcpIndicatorPulseConnecting___cCYte {
|
|
800
|
+
0%, 100% {
|
|
801
|
+
box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.5);
|
|
802
|
+
}
|
|
803
|
+
50% {
|
|
804
|
+
box-shadow: 0 0 0 5px rgba(245, 166, 35, 0);
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
.styles-module__mcpIndicator___zGJeL {
|
|
808
|
+
position: absolute;
|
|
809
|
+
top: 3px;
|
|
810
|
+
right: 3px;
|
|
811
|
+
width: 6px;
|
|
812
|
+
height: 6px;
|
|
813
|
+
border-radius: 50%;
|
|
814
|
+
pointer-events: none;
|
|
815
|
+
transition: background 0.3s ease, opacity 0.15s ease, transform 0.15s ease;
|
|
816
|
+
opacity: 1;
|
|
817
|
+
transform: scale(1);
|
|
818
|
+
}
|
|
819
|
+
.styles-module__mcpIndicator___zGJeL.styles-module__connected___7c28g {
|
|
820
|
+
background: #34c759;
|
|
821
|
+
animation: styles-module__mcpIndicatorPulseConnected___EDodZ 2.5s ease-in-out infinite;
|
|
822
|
+
}
|
|
823
|
+
.styles-module__mcpIndicator___zGJeL.styles-module__connecting___uo-CW {
|
|
824
|
+
background: #f5a623;
|
|
825
|
+
animation: styles-module__mcpIndicatorPulseConnecting___cCYte 1.5s ease-in-out infinite;
|
|
826
|
+
}
|
|
827
|
+
.styles-module__mcpIndicator___zGJeL.styles-module__hidden___Ae8H4 {
|
|
828
|
+
opacity: 0;
|
|
829
|
+
transform: scale(0);
|
|
830
|
+
animation: none;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
@keyframes styles-module__connectionPulse___-Zycw {
|
|
834
|
+
0%, 100% {
|
|
835
|
+
opacity: 1;
|
|
836
|
+
transform: scale(1);
|
|
837
|
+
}
|
|
838
|
+
50% {
|
|
839
|
+
opacity: 0.6;
|
|
840
|
+
transform: scale(0.9);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
.styles-module__connectionIndicatorWrapper___L-e-3 {
|
|
844
|
+
width: 8px;
|
|
845
|
+
height: 34px;
|
|
846
|
+
margin-left: 6px;
|
|
847
|
+
margin-right: 6px;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
.styles-module__connectionIndicator___afk9p {
|
|
851
|
+
position: relative;
|
|
852
|
+
width: 8px;
|
|
853
|
+
height: 8px;
|
|
854
|
+
border-radius: 50%;
|
|
855
|
+
opacity: 0;
|
|
856
|
+
transition: opacity 0.3s ease, background 0.3s ease;
|
|
857
|
+
cursor: default;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.styles-module__connectionIndicatorVisible___C-i5B {
|
|
861
|
+
opacity: 1;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
.styles-module__connectionIndicatorConnected___IY8pR {
|
|
865
|
+
background: #34c759;
|
|
866
|
+
animation: styles-module__connectionPulse___-Zycw 2.5s ease-in-out infinite;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.styles-module__connectionIndicatorDisconnected___kmpaZ {
|
|
870
|
+
background: #ff3b30;
|
|
871
|
+
animation: none;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.styles-module__connectionIndicatorConnecting___QmSLH {
|
|
875
|
+
background: #f59e0b;
|
|
876
|
+
animation: styles-module__connectionPulse___-Zycw 1s ease-in-out infinite;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
.styles-module__buttonWrapper___rBcdv {
|
|
880
|
+
position: relative;
|
|
881
|
+
display: flex;
|
|
882
|
+
align-items: center;
|
|
883
|
+
justify-content: center;
|
|
884
|
+
}
|
|
885
|
+
.styles-module__buttonWrapper___rBcdv:hover .styles-module__buttonTooltip___Burd9 {
|
|
886
|
+
opacity: 1;
|
|
887
|
+
visibility: visible;
|
|
888
|
+
transform: translateX(-50%) scale(1);
|
|
889
|
+
transition-delay: 0.85s;
|
|
890
|
+
}
|
|
891
|
+
.styles-module__buttonWrapper___rBcdv:has(.styles-module__controlButton___8Q0jc:disabled):hover .styles-module__buttonTooltip___Burd9 {
|
|
892
|
+
opacity: 0;
|
|
893
|
+
visibility: hidden;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
.styles-module__sendButtonWrapper___UUxG6 {
|
|
897
|
+
width: 0;
|
|
898
|
+
opacity: 0;
|
|
899
|
+
overflow: hidden;
|
|
900
|
+
pointer-events: none;
|
|
901
|
+
margin-left: -0.375rem;
|
|
902
|
+
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);
|
|
903
|
+
}
|
|
904
|
+
.styles-module__sendButtonWrapper___UUxG6 .styles-module__controlButton___8Q0jc {
|
|
905
|
+
transform: scale(0.8);
|
|
906
|
+
transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
|
|
907
|
+
}
|
|
908
|
+
.styles-module__sendButtonWrapper___UUxG6.styles-module__sendButtonVisible___WPSQU {
|
|
909
|
+
width: 34px;
|
|
910
|
+
opacity: 1;
|
|
911
|
+
overflow: visible;
|
|
912
|
+
pointer-events: auto;
|
|
913
|
+
margin-left: 0;
|
|
914
|
+
}
|
|
915
|
+
.styles-module__sendButtonWrapper___UUxG6.styles-module__sendButtonVisible___WPSQU .styles-module__controlButton___8Q0jc {
|
|
916
|
+
transform: scale(1);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.styles-module__buttonTooltip___Burd9 {
|
|
920
|
+
position: absolute;
|
|
921
|
+
bottom: calc(100% + 14px);
|
|
922
|
+
left: 50%;
|
|
923
|
+
transform: translateX(-50%) scale(0.95);
|
|
924
|
+
padding: 6px 10px;
|
|
925
|
+
background: #1a1a1a;
|
|
926
|
+
color: rgba(255, 255, 255, 0.9);
|
|
927
|
+
font-size: 12px;
|
|
928
|
+
font-weight: 500;
|
|
929
|
+
border-radius: 8px;
|
|
930
|
+
white-space: nowrap;
|
|
931
|
+
opacity: 0;
|
|
932
|
+
visibility: hidden;
|
|
933
|
+
pointer-events: none;
|
|
934
|
+
z-index: 100001;
|
|
935
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
936
|
+
transition: opacity 0.135s ease, transform 0.135s ease, visibility 0.135s ease;
|
|
937
|
+
}
|
|
938
|
+
.styles-module__buttonTooltip___Burd9::after {
|
|
939
|
+
content: "";
|
|
940
|
+
position: absolute;
|
|
941
|
+
top: calc(100% - 4px);
|
|
942
|
+
left: 50%;
|
|
943
|
+
transform: translateX(-50%) rotate(45deg);
|
|
944
|
+
width: 8px;
|
|
945
|
+
height: 8px;
|
|
946
|
+
background: #1a1a1a;
|
|
947
|
+
border-radius: 0 0 2px 0;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
.styles-module__shortcut___lEAQk {
|
|
951
|
+
margin-left: 4px;
|
|
952
|
+
opacity: 0.5;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
.styles-module__tooltipBelow___m6ats .styles-module__buttonTooltip___Burd9 {
|
|
956
|
+
bottom: auto;
|
|
957
|
+
top: calc(100% + 14px);
|
|
958
|
+
transform: translateX(-50%) scale(0.95);
|
|
959
|
+
}
|
|
960
|
+
.styles-module__tooltipBelow___m6ats .styles-module__buttonTooltip___Burd9::after {
|
|
961
|
+
top: -4px;
|
|
962
|
+
bottom: auto;
|
|
963
|
+
border-radius: 2px 0 0 0;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapper___rBcdv:hover .styles-module__buttonTooltip___Burd9 {
|
|
967
|
+
transform: translateX(-50%) scale(1);
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.styles-module__tooltipsHidden___VtLJG .styles-module__buttonTooltip___Burd9 {
|
|
971
|
+
opacity: 0 !important;
|
|
972
|
+
visibility: hidden !important;
|
|
973
|
+
transition: none !important;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.styles-module__tooltipVisible___0jcCv,
|
|
977
|
+
.styles-module__tooltipsHidden___VtLJG .styles-module__tooltipVisible___0jcCv {
|
|
978
|
+
opacity: 1 !important;
|
|
979
|
+
visibility: visible !important;
|
|
980
|
+
transform: translateX(-50%) scale(1) !important;
|
|
981
|
+
transition-delay: 0s !important;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9 {
|
|
985
|
+
left: 50%;
|
|
986
|
+
transform: translateX(-12px) scale(0.95);
|
|
987
|
+
}
|
|
988
|
+
.styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9::after {
|
|
989
|
+
left: 16px;
|
|
990
|
+
}
|
|
991
|
+
.styles-module__buttonWrapperAlignLeft___myzIp:hover .styles-module__buttonTooltip___Burd9 {
|
|
992
|
+
transform: translateX(-12px) scale(1);
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9 {
|
|
996
|
+
transform: translateX(-12px) scale(0.95);
|
|
997
|
+
}
|
|
998
|
+
.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignLeft___myzIp:hover .styles-module__buttonTooltip___Burd9 {
|
|
999
|
+
transform: translateX(-12px) scale(1);
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
.styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9 {
|
|
1003
|
+
left: 50%;
|
|
1004
|
+
transform: translateX(calc(-100% + 12px)) scale(0.95);
|
|
1005
|
+
}
|
|
1006
|
+
.styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9::after {
|
|
1007
|
+
left: auto;
|
|
1008
|
+
right: 8px;
|
|
1009
|
+
}
|
|
1010
|
+
.styles-module__buttonWrapperAlignRight___HCQFR:hover .styles-module__buttonTooltip___Burd9 {
|
|
1011
|
+
transform: translateX(calc(-100% + 12px)) scale(1);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9 {
|
|
1015
|
+
transform: translateX(calc(-100% + 12px)) scale(0.95);
|
|
1016
|
+
}
|
|
1017
|
+
.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignRight___HCQFR:hover .styles-module__buttonTooltip___Burd9 {
|
|
1018
|
+
transform: translateX(calc(-100% + 12px)) scale(1);
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.styles-module__divider___c--s1 {
|
|
1022
|
+
width: 1px;
|
|
1023
|
+
height: 12px;
|
|
1024
|
+
background: rgba(255, 255, 255, 0.15);
|
|
1025
|
+
margin: 0 0.125rem;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
.styles-module__overlay___Q1O9y {
|
|
1029
|
+
position: fixed;
|
|
1030
|
+
inset: 0;
|
|
1031
|
+
z-index: 99997;
|
|
1032
|
+
pointer-events: none;
|
|
1033
|
+
}
|
|
1034
|
+
.styles-module__overlay___Q1O9y > * {
|
|
1035
|
+
pointer-events: auto;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
.styles-module__hoverHighlight___ogakW {
|
|
1039
|
+
position: fixed;
|
|
1040
|
+
border: 2px solid rgba(60, 130, 247, 0.5);
|
|
1041
|
+
border-radius: 4px;
|
|
1042
|
+
pointer-events: none !important;
|
|
1043
|
+
background: rgba(60, 130, 247, 0.04);
|
|
1044
|
+
box-sizing: border-box;
|
|
1045
|
+
will-change: opacity;
|
|
1046
|
+
contain: layout style;
|
|
1047
|
+
}
|
|
1048
|
+
.styles-module__hoverHighlight___ogakW.styles-module__enter___WFIki {
|
|
1049
|
+
animation: styles-module__hoverHighlightIn___6WYHY 0.12s ease-out forwards;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.styles-module__multiSelectOutline___cSJ-m {
|
|
1053
|
+
position: fixed;
|
|
1054
|
+
border: 2px dashed rgba(52, 199, 89, 0.6);
|
|
1055
|
+
border-radius: 4px;
|
|
1056
|
+
pointer-events: none !important;
|
|
1057
|
+
background: rgba(52, 199, 89, 0.05);
|
|
1058
|
+
box-sizing: border-box;
|
|
1059
|
+
will-change: opacity;
|
|
1060
|
+
}
|
|
1061
|
+
.styles-module__multiSelectOutline___cSJ-m.styles-module__enter___WFIki {
|
|
1062
|
+
animation: styles-module__fadeIn___b9qmf 0.15s ease-out forwards;
|
|
1063
|
+
}
|
|
1064
|
+
.styles-module__multiSelectOutline___cSJ-m.styles-module__exit___fyOJ0 {
|
|
1065
|
+
animation: styles-module__fadeOut___6Ut6- 0.15s ease-out forwards;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
.styles-module__singleSelectOutline___QhX-O {
|
|
1069
|
+
position: fixed;
|
|
1070
|
+
border: 2px solid rgba(60, 130, 247, 0.6);
|
|
1071
|
+
border-radius: 4px;
|
|
1072
|
+
pointer-events: none !important;
|
|
1073
|
+
background: rgba(60, 130, 247, 0.05);
|
|
1074
|
+
box-sizing: border-box;
|
|
1075
|
+
will-change: opacity;
|
|
1076
|
+
}
|
|
1077
|
+
.styles-module__singleSelectOutline___QhX-O.styles-module__enter___WFIki {
|
|
1078
|
+
animation: styles-module__fadeIn___b9qmf 0.15s ease-out forwards;
|
|
1079
|
+
}
|
|
1080
|
+
.styles-module__singleSelectOutline___QhX-O.styles-module__exit___fyOJ0 {
|
|
1081
|
+
animation: styles-module__fadeOut___6Ut6- 0.15s ease-out forwards;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
.styles-module__hoverTooltip___bvLk7 {
|
|
1085
|
+
position: fixed;
|
|
1086
|
+
font-size: 0.6875rem;
|
|
1087
|
+
font-weight: 500;
|
|
1088
|
+
color: #fff;
|
|
1089
|
+
background: rgba(0, 0, 0, 0.85);
|
|
1090
|
+
padding: 0.35rem 0.6rem;
|
|
1091
|
+
border-radius: 0.375rem;
|
|
1092
|
+
pointer-events: none !important;
|
|
1093
|
+
white-space: nowrap;
|
|
1094
|
+
max-width: 280px;
|
|
1095
|
+
overflow: hidden;
|
|
1096
|
+
text-overflow: ellipsis;
|
|
1097
|
+
}
|
|
1098
|
+
.styles-module__hoverTooltip___bvLk7.styles-module__enter___WFIki {
|
|
1099
|
+
animation: styles-module__hoverTooltipIn___FYGQx 0.1s ease-out forwards;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
.styles-module__hoverReactPath___gx1IJ {
|
|
1103
|
+
font-size: 0.625rem;
|
|
1104
|
+
color: rgba(255, 255, 255, 0.6);
|
|
1105
|
+
margin-bottom: 0.15rem;
|
|
1106
|
+
overflow: hidden;
|
|
1107
|
+
text-overflow: ellipsis;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
.styles-module__hoverElementName___QMLMl {
|
|
1111
|
+
overflow: hidden;
|
|
1112
|
+
text-overflow: ellipsis;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
.styles-module__markersLayer___-25j1 {
|
|
1116
|
+
position: absolute;
|
|
1117
|
+
top: 0;
|
|
1118
|
+
left: 0;
|
|
1119
|
+
right: 0;
|
|
1120
|
+
height: 0;
|
|
1121
|
+
z-index: 99998;
|
|
1122
|
+
pointer-events: none;
|
|
1123
|
+
}
|
|
1124
|
+
.styles-module__markersLayer___-25j1 > * {
|
|
1125
|
+
pointer-events: auto;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
.styles-module__fixedMarkersLayer___ffyX6 {
|
|
1129
|
+
position: fixed;
|
|
1130
|
+
top: 0;
|
|
1131
|
+
left: 0;
|
|
1132
|
+
right: 0;
|
|
1133
|
+
bottom: 0;
|
|
1134
|
+
z-index: 99998;
|
|
1135
|
+
pointer-events: none;
|
|
1136
|
+
}
|
|
1137
|
+
.styles-module__fixedMarkersLayer___ffyX6 > * {
|
|
1138
|
+
pointer-events: auto;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
.styles-module__marker___6sQrs {
|
|
1142
|
+
position: absolute;
|
|
1143
|
+
width: 22px;
|
|
1144
|
+
height: 22px;
|
|
1145
|
+
background: #3c82f7;
|
|
1146
|
+
color: white;
|
|
1147
|
+
border-radius: 50%;
|
|
1148
|
+
display: flex;
|
|
1149
|
+
align-items: center;
|
|
1150
|
+
justify-content: center;
|
|
1151
|
+
font-size: 0.6875rem;
|
|
1152
|
+
font-weight: 600;
|
|
1153
|
+
transform: translate(-50%, -50%) scale(1);
|
|
1154
|
+
opacity: 1;
|
|
1155
|
+
cursor: pointer;
|
|
1156
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
|
|
1157
|
+
user-select: none;
|
|
1158
|
+
will-change: transform, opacity;
|
|
1159
|
+
contain: layout style;
|
|
1160
|
+
z-index: 1;
|
|
1161
|
+
}
|
|
1162
|
+
.styles-module__marker___6sQrs:hover {
|
|
1163
|
+
z-index: 2;
|
|
1164
|
+
}
|
|
1165
|
+
.styles-module__marker___6sQrs:not(.styles-module__enter___WFIki):not(.styles-module__exit___fyOJ0):not(.styles-module__clearing___FQ--7) {
|
|
1166
|
+
transition: background-color 0.15s ease, transform 0.1s ease;
|
|
1167
|
+
}
|
|
1168
|
+
.styles-module__marker___6sQrs.styles-module__enter___WFIki {
|
|
1169
|
+
animation: styles-module__markerIn___5FaAP 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
1170
|
+
}
|
|
1171
|
+
.styles-module__marker___6sQrs.styles-module__exit___fyOJ0 {
|
|
1172
|
+
animation: styles-module__markerOut___GU5jX 0.2s ease-out both;
|
|
1173
|
+
pointer-events: none;
|
|
1174
|
+
}
|
|
1175
|
+
.styles-module__marker___6sQrs.styles-module__clearing___FQ--7 {
|
|
1176
|
+
animation: styles-module__markerOut___GU5jX 0.15s ease-out both;
|
|
1177
|
+
pointer-events: none;
|
|
1178
|
+
}
|
|
1179
|
+
.styles-module__marker___6sQrs:not(.styles-module__enter___WFIki):not(.styles-module__exit___fyOJ0):not(.styles-module__clearing___FQ--7):hover {
|
|
1180
|
+
transform: translate(-50%, -50%) scale(1.1);
|
|
1181
|
+
}
|
|
1182
|
+
.styles-module__marker___6sQrs.styles-module__pending___2IHLC {
|
|
1183
|
+
position: fixed;
|
|
1184
|
+
background: #3c82f7;
|
|
1185
|
+
}
|
|
1186
|
+
.styles-module__marker___6sQrs.styles-module__fixed___dBMHC {
|
|
1187
|
+
position: fixed;
|
|
1188
|
+
}
|
|
1189
|
+
.styles-module__marker___6sQrs.styles-module__multiSelect___YWiuz {
|
|
1190
|
+
background: #34c759;
|
|
1191
|
+
width: 26px;
|
|
1192
|
+
height: 26px;
|
|
1193
|
+
border-radius: 6px;
|
|
1194
|
+
font-size: 0.75rem;
|
|
1195
|
+
}
|
|
1196
|
+
.styles-module__marker___6sQrs.styles-module__multiSelect___YWiuz.styles-module__pending___2IHLC {
|
|
1197
|
+
background: #34c759;
|
|
1198
|
+
}
|
|
1199
|
+
.styles-module__marker___6sQrs.styles-module__hovered___ZgXIy {
|
|
1200
|
+
background: #ff3b30;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
.styles-module__renumber___nCTxD {
|
|
1204
|
+
display: block;
|
|
1205
|
+
animation: styles-module__renumberRoll___Wgbq3 0.2s ease-out;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
@keyframes styles-module__renumberRoll___Wgbq3 {
|
|
1209
|
+
0% {
|
|
1210
|
+
transform: translateX(-40%);
|
|
1211
|
+
opacity: 0;
|
|
1212
|
+
}
|
|
1213
|
+
100% {
|
|
1214
|
+
transform: translateX(0);
|
|
1215
|
+
opacity: 1;
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
.styles-module__markerTooltip___aLJID {
|
|
1219
|
+
position: absolute;
|
|
1220
|
+
top: calc(100% + 10px);
|
|
1221
|
+
left: 50%;
|
|
1222
|
+
transform: translateX(-50%) scale(0.909);
|
|
1223
|
+
z-index: 100002;
|
|
1224
|
+
background: #1a1a1a;
|
|
1225
|
+
padding: 8px 0.75rem;
|
|
1226
|
+
border-radius: 0.75rem;
|
|
1227
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1228
|
+
font-weight: 400;
|
|
1229
|
+
color: #fff;
|
|
1230
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
|
|
1231
|
+
min-width: 120px;
|
|
1232
|
+
max-width: 200px;
|
|
1233
|
+
pointer-events: none;
|
|
1234
|
+
cursor: default;
|
|
1235
|
+
}
|
|
1236
|
+
.styles-module__markerTooltip___aLJID.styles-module__enter___WFIki {
|
|
1237
|
+
animation: styles-module__tooltipIn___0N31w 0.1s ease-out forwards;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
.styles-module__markerQuote___FHmrz {
|
|
1241
|
+
display: block;
|
|
1242
|
+
font-size: 12px;
|
|
1243
|
+
font-style: italic;
|
|
1244
|
+
color: rgba(255, 255, 255, 0.6);
|
|
1245
|
+
margin-bottom: 0.3125rem;
|
|
1246
|
+
line-height: 1.4;
|
|
1247
|
+
white-space: nowrap;
|
|
1248
|
+
overflow: hidden;
|
|
1249
|
+
text-overflow: ellipsis;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
.styles-module__markerNote___QkrrS {
|
|
1253
|
+
display: block;
|
|
1254
|
+
font-size: 13px;
|
|
1255
|
+
font-weight: 400;
|
|
1256
|
+
line-height: 1.4;
|
|
1257
|
+
color: #fff;
|
|
1258
|
+
white-space: nowrap;
|
|
1259
|
+
overflow: hidden;
|
|
1260
|
+
text-overflow: ellipsis;
|
|
1261
|
+
padding-bottom: 2px;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
.styles-module__markerHint___2iF-6 {
|
|
1265
|
+
display: block;
|
|
1266
|
+
font-size: 0.625rem;
|
|
1267
|
+
font-weight: 400;
|
|
1268
|
+
color: rgba(255, 255, 255, 0.6);
|
|
1269
|
+
margin-top: 0.375rem;
|
|
1270
|
+
white-space: nowrap;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
.styles-module__settingsPanel___OxX3Y {
|
|
1274
|
+
position: absolute;
|
|
1275
|
+
right: 5px;
|
|
1276
|
+
bottom: calc(100% + 0.5rem);
|
|
1277
|
+
z-index: 1;
|
|
1278
|
+
overflow: hidden;
|
|
1279
|
+
background: #1c1c1c;
|
|
1280
|
+
border-radius: 1rem;
|
|
1281
|
+
padding: 13px 0 16px;
|
|
1282
|
+
min-width: 205px;
|
|
1283
|
+
cursor: default;
|
|
1284
|
+
opacity: 1;
|
|
1285
|
+
box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
|
|
1286
|
+
transition: background 0.25s ease, box-shadow 0.25s ease;
|
|
1287
|
+
}
|
|
1288
|
+
.styles-module__settingsPanel___OxX3Y::before, .styles-module__settingsPanel___OxX3Y::after {
|
|
1289
|
+
content: "";
|
|
1290
|
+
position: absolute;
|
|
1291
|
+
top: 0;
|
|
1292
|
+
bottom: 0;
|
|
1293
|
+
width: 16px;
|
|
1294
|
+
z-index: 2;
|
|
1295
|
+
pointer-events: none;
|
|
1296
|
+
}
|
|
1297
|
+
.styles-module__settingsPanel___OxX3Y::before {
|
|
1298
|
+
left: 0;
|
|
1299
|
+
background: linear-gradient(to right, #1c1c1c 0%, transparent 100%);
|
|
1300
|
+
}
|
|
1301
|
+
.styles-module__settingsPanel___OxX3Y::after {
|
|
1302
|
+
right: 0;
|
|
1303
|
+
background: linear-gradient(to left, #1c1c1c 0%, transparent 100%);
|
|
1304
|
+
}
|
|
1305
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__settingsHeader___pwDY9,
|
|
1306
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__settingsBrand___0gJeM,
|
|
1307
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__settingsBrandSlash___uTG18,
|
|
1308
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__settingsVersion___TUcFq,
|
|
1309
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__settingsSection___m-YM2,
|
|
1310
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__settingsLabel___8UjfX,
|
|
1311
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__cycleButton___FMKfw,
|
|
1312
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY,
|
|
1313
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz,
|
|
1314
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__toggleLabel___Xm8Aa,
|
|
1315
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax,
|
|
1316
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr,
|
|
1317
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp,
|
|
1318
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__helpIcon___xQg56,
|
|
1319
|
+
.styles-module__settingsPanel___OxX3Y .styles-module__themeToggle___2rUjA {
|
|
1320
|
+
transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
|
|
1321
|
+
}
|
|
1322
|
+
.styles-module__settingsPanel___OxX3Y.styles-module__enter___WFIki {
|
|
1323
|
+
opacity: 1;
|
|
1324
|
+
transform: translateY(0) scale(1);
|
|
1325
|
+
filter: blur(0px);
|
|
1326
|
+
transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
|
|
1327
|
+
}
|
|
1328
|
+
.styles-module__settingsPanel___OxX3Y.styles-module__exit___fyOJ0 {
|
|
1329
|
+
opacity: 0;
|
|
1330
|
+
transform: translateY(8px) scale(0.95);
|
|
1331
|
+
filter: blur(5px);
|
|
1332
|
+
pointer-events: none;
|
|
1333
|
+
transition: opacity 0.1s ease, transform 0.1s ease, filter 0.1s ease;
|
|
1334
|
+
}
|
|
1335
|
+
.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf {
|
|
1336
|
+
background: #1a1a1a;
|
|
1337
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
|
|
1338
|
+
}
|
|
1339
|
+
.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__settingsLabel___8UjfX {
|
|
1340
|
+
color: rgba(255, 255, 255, 0.6);
|
|
1341
|
+
}
|
|
1342
|
+
.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__settingsOption___UNa12 {
|
|
1343
|
+
color: rgba(255, 255, 255, 0.85);
|
|
1344
|
+
}
|
|
1345
|
+
.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__settingsOption___UNa12:hover {
|
|
1346
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1347
|
+
}
|
|
1348
|
+
.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__settingsOption___UNa12.styles-module__selected___OwRqP {
|
|
1349
|
+
background: rgba(255, 255, 255, 0.15);
|
|
1350
|
+
color: #fff;
|
|
1351
|
+
}
|
|
1352
|
+
.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__toggleLabel___Xm8Aa {
|
|
1353
|
+
color: rgba(255, 255, 255, 0.85);
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
.styles-module__settingsPanelContainer___Xksv8 {
|
|
1357
|
+
overflow: visible;
|
|
1358
|
+
position: relative;
|
|
1359
|
+
display: flex;
|
|
1360
|
+
padding: 0 1rem;
|
|
1361
|
+
}
|
|
1362
|
+
.styles-module__settingsPanelContainer___Xksv8.styles-module__transitioning___qxzCk {
|
|
1363
|
+
overflow-x: clip;
|
|
1364
|
+
overflow-y: visible;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
.styles-module__settingsPage___6YfHH {
|
|
1368
|
+
min-width: 100%;
|
|
1369
|
+
flex-shrink: 0;
|
|
1370
|
+
transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease-out;
|
|
1371
|
+
opacity: 1;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
.styles-module__settingsPage___6YfHH.styles-module__slideLeft___Ps01J {
|
|
1375
|
+
transform: translateX(-100%);
|
|
1376
|
+
opacity: 0;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
.styles-module__automationsPage___uvCq6 {
|
|
1380
|
+
position: absolute;
|
|
1381
|
+
top: 0;
|
|
1382
|
+
left: 100%;
|
|
1383
|
+
width: 100%;
|
|
1384
|
+
height: 100%;
|
|
1385
|
+
padding: 3px 1rem 0;
|
|
1386
|
+
box-sizing: border-box;
|
|
1387
|
+
display: flex;
|
|
1388
|
+
flex-direction: column;
|
|
1389
|
+
transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease-out 0.1s;
|
|
1390
|
+
opacity: 0;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
.styles-module__automationsPage___uvCq6.styles-module__slideIn___4-qXe {
|
|
1394
|
+
transform: translateX(-100%);
|
|
1395
|
+
opacity: 1;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
.styles-module__settingsNavLink___wCzJt {
|
|
1399
|
+
display: flex;
|
|
1400
|
+
align-items: center;
|
|
1401
|
+
justify-content: space-between;
|
|
1402
|
+
width: 100%;
|
|
1403
|
+
padding: 0;
|
|
1404
|
+
border: none;
|
|
1405
|
+
background: transparent;
|
|
1406
|
+
font-family: inherit;
|
|
1407
|
+
font-size: 0.8125rem;
|
|
1408
|
+
font-weight: 400;
|
|
1409
|
+
color: rgba(255, 255, 255, 0.5);
|
|
1410
|
+
cursor: pointer;
|
|
1411
|
+
transition: color 0.15s ease;
|
|
1412
|
+
}
|
|
1413
|
+
.styles-module__settingsNavLink___wCzJt:hover {
|
|
1414
|
+
color: rgba(255, 255, 255, 0.9);
|
|
1415
|
+
}
|
|
1416
|
+
.styles-module__settingsNavLink___wCzJt.styles-module__light___r6n4Y {
|
|
1417
|
+
color: rgba(0, 0, 0, 0.5);
|
|
1418
|
+
}
|
|
1419
|
+
.styles-module__settingsNavLink___wCzJt.styles-module__light___r6n4Y:hover {
|
|
1420
|
+
color: rgba(0, 0, 0, 0.8);
|
|
1421
|
+
}
|
|
1422
|
+
.styles-module__settingsNavLink___wCzJt svg {
|
|
1423
|
+
color: rgba(255, 255, 255, 0.4);
|
|
1424
|
+
transition: color 0.15s ease;
|
|
1425
|
+
}
|
|
1426
|
+
.styles-module__settingsNavLink___wCzJt:hover svg {
|
|
1427
|
+
color: #fff;
|
|
1428
|
+
}
|
|
1429
|
+
.styles-module__settingsNavLink___wCzJt.styles-module__light___r6n4Y svg {
|
|
1430
|
+
color: rgba(0, 0, 0, 0.25);
|
|
1431
|
+
}
|
|
1432
|
+
.styles-module__settingsNavLink___wCzJt.styles-module__light___r6n4Y:hover svg {
|
|
1433
|
+
color: rgba(0, 0, 0, 0.8);
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
.styles-module__settingsNavLinkRight___ZWwhj {
|
|
1437
|
+
display: flex;
|
|
1438
|
+
align-items: center;
|
|
1439
|
+
gap: 6px;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
.styles-module__mcpNavIndicator___cl9pO {
|
|
1443
|
+
width: 8px;
|
|
1444
|
+
height: 8px;
|
|
1445
|
+
border-radius: 50%;
|
|
1446
|
+
flex-shrink: 0;
|
|
1447
|
+
}
|
|
1448
|
+
.styles-module__mcpNavIndicator___cl9pO.styles-module__connected___7c28g {
|
|
1449
|
+
background: #34c759;
|
|
1450
|
+
animation: styles-module__mcpPulse___uNggr 2.5s ease-in-out infinite;
|
|
1451
|
+
}
|
|
1452
|
+
.styles-module__mcpNavIndicator___cl9pO.styles-module__connecting___uo-CW {
|
|
1453
|
+
background: #f5a623;
|
|
1454
|
+
animation: styles-module__mcpPulse___uNggr 1.5s ease-in-out infinite;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
.styles-module__settingsBackButton___bIe2j {
|
|
1458
|
+
display: flex;
|
|
1459
|
+
align-items: center;
|
|
1460
|
+
gap: 4px;
|
|
1461
|
+
padding: 6px 0 12px 0;
|
|
1462
|
+
margin: -6px 0 0.5rem 0;
|
|
1463
|
+
border: none;
|
|
1464
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
|
1465
|
+
border-radius: 0;
|
|
1466
|
+
background: transparent;
|
|
1467
|
+
font-family: inherit;
|
|
1468
|
+
font-size: 0.8125rem;
|
|
1469
|
+
font-weight: 500;
|
|
1470
|
+
letter-spacing: -0.15px;
|
|
1471
|
+
color: #fff;
|
|
1472
|
+
cursor: pointer;
|
|
1473
|
+
transition: transform 0.12s cubic-bezier(0.32, 0.72, 0, 1);
|
|
1474
|
+
}
|
|
1475
|
+
.styles-module__settingsBackButton___bIe2j svg {
|
|
1476
|
+
opacity: 0.4;
|
|
1477
|
+
flex-shrink: 0;
|
|
1478
|
+
transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.32, 0.72, 0, 1);
|
|
1479
|
+
}
|
|
1480
|
+
.styles-module__settingsBackButton___bIe2j:hover svg {
|
|
1481
|
+
opacity: 1;
|
|
1482
|
+
}
|
|
1483
|
+
.styles-module__settingsBackButton___bIe2j.styles-module__light___r6n4Y {
|
|
1484
|
+
color: rgba(0, 0, 0, 0.85);
|
|
1485
|
+
border-bottom-color: rgba(0, 0, 0, 0.08);
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
.styles-module__automationHeader___InP0r {
|
|
1489
|
+
display: flex;
|
|
1490
|
+
align-items: center;
|
|
1491
|
+
gap: 0.125rem;
|
|
1492
|
+
font-size: 0.8125rem;
|
|
1493
|
+
font-weight: 400;
|
|
1494
|
+
color: #fff;
|
|
1495
|
+
}
|
|
1496
|
+
.styles-module__automationHeader___InP0r .styles-module__helpIcon___xQg56 svg {
|
|
1497
|
+
transform: none;
|
|
1498
|
+
}
|
|
1499
|
+
.styles-module__automationHeader___InP0r.styles-module__light___r6n4Y {
|
|
1500
|
+
color: rgba(0, 0, 0, 0.85);
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
.styles-module__automationDescription___NKlmo {
|
|
1504
|
+
font-size: 0.6875rem;
|
|
1505
|
+
font-weight: 300;
|
|
1506
|
+
color: rgba(255, 255, 255, 0.5);
|
|
1507
|
+
margin-top: 2px;
|
|
1508
|
+
line-height: 14px;
|
|
1509
|
+
}
|
|
1510
|
+
.styles-module__automationDescription___NKlmo.styles-module__light___r6n4Y {
|
|
1511
|
+
color: rgba(0, 0, 0, 0.5);
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
.styles-module__learnMoreLink___8xv-x {
|
|
1515
|
+
color: rgba(255, 255, 255, 0.8);
|
|
1516
|
+
text-decoration: underline dotted;
|
|
1517
|
+
text-decoration-color: rgba(255, 255, 255, 0.2);
|
|
1518
|
+
text-underline-offset: 2px;
|
|
1519
|
+
transition: color 0.15s ease;
|
|
1520
|
+
}
|
|
1521
|
+
.styles-module__learnMoreLink___8xv-x:hover {
|
|
1522
|
+
color: #fff;
|
|
1523
|
+
}
|
|
1524
|
+
.styles-module__learnMoreLink___8xv-x.styles-module__light___r6n4Y {
|
|
1525
|
+
color: rgba(0, 0, 0, 0.6);
|
|
1526
|
+
text-decoration-color: rgba(0, 0, 0, 0.2);
|
|
1527
|
+
}
|
|
1528
|
+
.styles-module__learnMoreLink___8xv-x.styles-module__light___r6n4Y:hover {
|
|
1529
|
+
color: rgba(0, 0, 0, 0.85);
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
.styles-module__autoSendRow___UblX5 {
|
|
1533
|
+
display: flex;
|
|
1534
|
+
align-items: center;
|
|
1535
|
+
gap: 8px;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
.styles-module__autoSendLabel___icDc2 {
|
|
1539
|
+
font-size: 0.6875rem;
|
|
1540
|
+
font-weight: 400;
|
|
1541
|
+
color: rgba(255, 255, 255, 0.4);
|
|
1542
|
+
transition: color 0.15s ease;
|
|
1543
|
+
}
|
|
1544
|
+
.styles-module__autoSendLabel___icDc2.styles-module__active___-zoN6 {
|
|
1545
|
+
color: #66b8ff;
|
|
1546
|
+
}
|
|
1547
|
+
.styles-module__autoSendLabel___icDc2.styles-module__light___r6n4Y {
|
|
1548
|
+
color: rgba(0, 0, 0, 0.4);
|
|
1549
|
+
}
|
|
1550
|
+
.styles-module__autoSendLabel___icDc2.styles-module__light___r6n4Y.styles-module__active___-zoN6 {
|
|
1551
|
+
color: #3c82f7;
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
.styles-module__webhookUrlInput___2375C {
|
|
1555
|
+
display: block;
|
|
1556
|
+
width: 100%;
|
|
1557
|
+
flex: 1;
|
|
1558
|
+
min-height: 60px;
|
|
1559
|
+
box-sizing: border-box;
|
|
1560
|
+
margin-top: 11px;
|
|
1561
|
+
padding: 8px 10px;
|
|
1562
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
1563
|
+
border-radius: 6px;
|
|
1564
|
+
background: rgba(255, 255, 255, 0.03);
|
|
1565
|
+
font-family: inherit;
|
|
1566
|
+
font-size: 0.75rem;
|
|
1567
|
+
font-weight: 400;
|
|
1568
|
+
color: #fff;
|
|
1569
|
+
outline: none;
|
|
1570
|
+
resize: none;
|
|
1571
|
+
cursor: text !important;
|
|
1572
|
+
user-select: text;
|
|
1573
|
+
transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
|
|
1574
|
+
}
|
|
1575
|
+
.styles-module__webhookUrlInput___2375C::placeholder {
|
|
1576
|
+
color: rgba(255, 255, 255, 0.3);
|
|
1577
|
+
}
|
|
1578
|
+
.styles-module__webhookUrlInput___2375C:focus {
|
|
1579
|
+
border-color: rgba(255, 255, 255, 0.3);
|
|
1580
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1581
|
+
}
|
|
1582
|
+
.styles-module__webhookUrlInput___2375C.styles-module__light___r6n4Y {
|
|
1583
|
+
border-color: rgba(0, 0, 0, 0.1);
|
|
1584
|
+
background: rgba(0, 0, 0, 0.03);
|
|
1585
|
+
color: rgba(0, 0, 0, 0.85);
|
|
1586
|
+
}
|
|
1587
|
+
.styles-module__webhookUrlInput___2375C.styles-module__light___r6n4Y::placeholder {
|
|
1588
|
+
color: rgba(0, 0, 0, 0.3);
|
|
1589
|
+
}
|
|
1590
|
+
.styles-module__webhookUrlInput___2375C.styles-module__light___r6n4Y:focus {
|
|
1591
|
+
border-color: rgba(0, 0, 0, 0.25);
|
|
1592
|
+
background: rgba(0, 0, 0, 0.05);
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
.styles-module__settingsHeader___pwDY9 {
|
|
1596
|
+
display: flex;
|
|
1597
|
+
align-items: center;
|
|
1598
|
+
justify-content: space-between;
|
|
1599
|
+
min-height: 24px;
|
|
1600
|
+
margin-bottom: 0.5rem;
|
|
1601
|
+
padding-bottom: 9px;
|
|
1602
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
.styles-module__settingsBrand___0gJeM {
|
|
1606
|
+
font-size: 0.8125rem;
|
|
1607
|
+
font-weight: 600;
|
|
1608
|
+
letter-spacing: -0.0094em;
|
|
1609
|
+
color: #fff;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
.styles-module__settingsBrandSlash___uTG18 {
|
|
1613
|
+
color: rgba(255, 255, 255, 0.5);
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
.styles-module__settingsVersion___TUcFq {
|
|
1617
|
+
font-size: 11px;
|
|
1618
|
+
font-weight: 400;
|
|
1619
|
+
color: rgba(255, 255, 255, 0.4);
|
|
1620
|
+
margin-left: auto;
|
|
1621
|
+
letter-spacing: -0.0094em;
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
.styles-module__settingsSection___m-YM2 + .styles-module__settingsSection___m-YM2 {
|
|
1625
|
+
margin-top: 0.5rem;
|
|
1626
|
+
padding-top: 0.5rem;
|
|
1627
|
+
border-top: 1px solid rgba(255, 255, 255, 0.07);
|
|
1628
|
+
}
|
|
1629
|
+
.styles-module__settingsSection___m-YM2.styles-module__settingsSectionExtraPadding___jdhFV {
|
|
1630
|
+
padding-top: calc(0.5rem + 4px);
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
.styles-module__settingsSectionGrow___h-5HZ {
|
|
1634
|
+
flex: 1;
|
|
1635
|
+
display: flex;
|
|
1636
|
+
flex-direction: column;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
.styles-module__settingsRow___3sdhc {
|
|
1640
|
+
display: flex;
|
|
1641
|
+
align-items: center;
|
|
1642
|
+
justify-content: space-between;
|
|
1643
|
+
min-height: 24px;
|
|
1644
|
+
}
|
|
1645
|
+
.styles-module__settingsRow___3sdhc.styles-module__settingsRowMarginTop___zA0Sp {
|
|
1646
|
+
margin-top: 8px;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
.styles-module__dropdownContainer___BVnxe {
|
|
1650
|
+
position: relative;
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
.styles-module__dropdownButton___16NPz {
|
|
1654
|
+
display: flex;
|
|
1655
|
+
align-items: center;
|
|
1656
|
+
gap: 0.5rem;
|
|
1657
|
+
padding: 0.25rem 0.5rem;
|
|
1658
|
+
border: none;
|
|
1659
|
+
border-radius: 0.375rem;
|
|
1660
|
+
background: transparent;
|
|
1661
|
+
font-size: 0.8125rem;
|
|
1662
|
+
font-weight: 600;
|
|
1663
|
+
color: #fff;
|
|
1664
|
+
cursor: pointer;
|
|
1665
|
+
transition: background-color 0.15s ease, color 0.15s ease;
|
|
1666
|
+
letter-spacing: -0.0094em;
|
|
1667
|
+
}
|
|
1668
|
+
.styles-module__dropdownButton___16NPz:hover {
|
|
1669
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1670
|
+
}
|
|
1671
|
+
.styles-module__dropdownButton___16NPz svg {
|
|
1672
|
+
opacity: 0.6;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
.styles-module__cycleButton___FMKfw {
|
|
1676
|
+
display: flex;
|
|
1677
|
+
align-items: center;
|
|
1678
|
+
gap: 0.5rem;
|
|
1679
|
+
padding: 0;
|
|
1680
|
+
border: none;
|
|
1681
|
+
background: transparent;
|
|
1682
|
+
font-size: 0.8125rem;
|
|
1683
|
+
font-weight: 500;
|
|
1684
|
+
color: #fff;
|
|
1685
|
+
cursor: pointer;
|
|
1686
|
+
letter-spacing: -0.0094em;
|
|
1687
|
+
}
|
|
1688
|
+
.styles-module__cycleButton___FMKfw.styles-module__light___r6n4Y {
|
|
1689
|
+
color: rgba(0, 0, 0, 0.85);
|
|
1690
|
+
}
|
|
1691
|
+
.styles-module__cycleButton___FMKfw:disabled {
|
|
1692
|
+
opacity: 0.35;
|
|
1693
|
+
cursor: not-allowed;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
.styles-module__settingsRowDisabled___EgS0V .styles-module__settingsLabel___8UjfX {
|
|
1697
|
+
color: rgba(255, 255, 255, 0.2);
|
|
1698
|
+
}
|
|
1699
|
+
.styles-module__settingsRowDisabled___EgS0V .styles-module__settingsLabel___8UjfX.styles-module__light___r6n4Y {
|
|
1700
|
+
color: rgba(0, 0, 0, 0.2);
|
|
1701
|
+
}
|
|
1702
|
+
.styles-module__settingsRowDisabled___EgS0V .styles-module__toggleSwitch___l4Ygm {
|
|
1703
|
+
opacity: 0.4;
|
|
1704
|
+
cursor: not-allowed;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
@keyframes styles-module__cycleTextIn___Q6zJf {
|
|
1708
|
+
0% {
|
|
1709
|
+
opacity: 0;
|
|
1710
|
+
transform: translateY(-6px);
|
|
1711
|
+
}
|
|
1712
|
+
100% {
|
|
1713
|
+
opacity: 1;
|
|
1714
|
+
transform: translateY(0);
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
.styles-module__cycleButtonText___fD1LR {
|
|
1718
|
+
display: inline-block;
|
|
1719
|
+
animation: styles-module__cycleTextIn___Q6zJf 0.2s ease-out;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
.styles-module__cycleDots___LWuoQ {
|
|
1723
|
+
display: flex;
|
|
1724
|
+
flex-direction: column;
|
|
1725
|
+
gap: 2px;
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
.styles-module__cycleDot___nPgLY {
|
|
1729
|
+
width: 3px;
|
|
1730
|
+
height: 3px;
|
|
1731
|
+
border-radius: 50%;
|
|
1732
|
+
background: rgba(255, 255, 255, 0.3);
|
|
1733
|
+
transform: scale(0.667);
|
|
1734
|
+
transition: background-color 0.25s ease-out, transform 0.25s ease-out;
|
|
1735
|
+
}
|
|
1736
|
+
.styles-module__cycleDot___nPgLY.styles-module__active___-zoN6 {
|
|
1737
|
+
background: #fff;
|
|
1738
|
+
transform: scale(1);
|
|
1739
|
+
}
|
|
1740
|
+
.styles-module__cycleDot___nPgLY.styles-module__light___r6n4Y {
|
|
1741
|
+
background: rgba(0, 0, 0, 0.2);
|
|
1742
|
+
}
|
|
1743
|
+
.styles-module__cycleDot___nPgLY.styles-module__light___r6n4Y.styles-module__active___-zoN6 {
|
|
1744
|
+
background: rgba(0, 0, 0, 0.7);
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
.styles-module__dropdownMenu___k73ER {
|
|
1748
|
+
position: absolute;
|
|
1749
|
+
right: 0;
|
|
1750
|
+
top: calc(100% + 0.25rem);
|
|
1751
|
+
background: #1a1a1a;
|
|
1752
|
+
border-radius: 0.5rem;
|
|
1753
|
+
padding: 0.25rem;
|
|
1754
|
+
min-width: 120px;
|
|
1755
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
|
|
1756
|
+
z-index: 10;
|
|
1757
|
+
animation: styles-module__scaleIn___c-r1K 0.15s ease-out;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
.styles-module__dropdownItem___ylsLj {
|
|
1761
|
+
width: 100%;
|
|
1762
|
+
display: flex;
|
|
1763
|
+
align-items: center;
|
|
1764
|
+
padding: 0.5rem 0.625rem;
|
|
1765
|
+
border: none;
|
|
1766
|
+
border-radius: 0.375rem;
|
|
1767
|
+
background: transparent;
|
|
1768
|
+
font-size: 0.8125rem;
|
|
1769
|
+
font-weight: 500;
|
|
1770
|
+
color: rgba(255, 255, 255, 0.85);
|
|
1771
|
+
cursor: pointer;
|
|
1772
|
+
text-align: left;
|
|
1773
|
+
transition: background-color 0.15s ease, color 0.15s ease;
|
|
1774
|
+
letter-spacing: -0.0094em;
|
|
1775
|
+
}
|
|
1776
|
+
.styles-module__dropdownItem___ylsLj:hover {
|
|
1777
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1778
|
+
}
|
|
1779
|
+
.styles-module__dropdownItem___ylsLj.styles-module__selected___OwRqP {
|
|
1780
|
+
background: rgba(255, 255, 255, 0.12);
|
|
1781
|
+
color: #fff;
|
|
1782
|
+
font-weight: 600;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
.styles-module__settingsLabel___8UjfX {
|
|
1786
|
+
font-size: 0.8125rem;
|
|
1787
|
+
font-weight: 400;
|
|
1788
|
+
letter-spacing: -0.0094em;
|
|
1789
|
+
color: rgba(255, 255, 255, 0.5);
|
|
1790
|
+
display: flex;
|
|
1791
|
+
align-items: center;
|
|
1792
|
+
gap: 0.125rem;
|
|
1793
|
+
}
|
|
1794
|
+
.styles-module__settingsLabel___8UjfX.styles-module__light___r6n4Y {
|
|
1795
|
+
color: rgba(0, 0, 0, 0.5);
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
.styles-module__settingsLabelMarker___ewdtV {
|
|
1799
|
+
padding-top: 3px;
|
|
1800
|
+
margin-bottom: 10px;
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
.styles-module__settingsOptions___LyrBA {
|
|
1804
|
+
display: flex;
|
|
1805
|
+
gap: 0.25rem;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
.styles-module__settingsOption___UNa12 {
|
|
1809
|
+
flex: 1;
|
|
1810
|
+
display: flex;
|
|
1811
|
+
align-items: center;
|
|
1812
|
+
justify-content: center;
|
|
1813
|
+
gap: 0.25rem;
|
|
1814
|
+
padding: 0.375rem 0.5rem;
|
|
1815
|
+
border: none;
|
|
1816
|
+
border-radius: 0.375rem;
|
|
1817
|
+
background: transparent;
|
|
1818
|
+
font-size: 0.6875rem;
|
|
1819
|
+
font-weight: 500;
|
|
1820
|
+
color: rgba(0, 0, 0, 0.7);
|
|
1821
|
+
cursor: pointer;
|
|
1822
|
+
transition: background-color 0.15s ease, color 0.15s ease;
|
|
1823
|
+
}
|
|
1824
|
+
.styles-module__settingsOption___UNa12:hover {
|
|
1825
|
+
background: rgba(0, 0, 0, 0.05);
|
|
1826
|
+
}
|
|
1827
|
+
.styles-module__settingsOption___UNa12.styles-module__selected___OwRqP {
|
|
1828
|
+
background: rgba(60, 130, 247, 0.15);
|
|
1829
|
+
color: #3c82f7;
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
.styles-module__sliderContainer___ducXj {
|
|
1833
|
+
display: flex;
|
|
1834
|
+
flex-direction: column;
|
|
1835
|
+
gap: 0.5rem;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
.styles-module__slider___GLdxp {
|
|
1839
|
+
-webkit-appearance: none;
|
|
1840
|
+
appearance: none;
|
|
1841
|
+
width: 100%;
|
|
1842
|
+
height: 4px;
|
|
1843
|
+
background: rgba(255, 255, 255, 0.15);
|
|
1844
|
+
border-radius: 2px;
|
|
1845
|
+
outline: none;
|
|
1846
|
+
cursor: pointer;
|
|
1847
|
+
}
|
|
1848
|
+
.styles-module__slider___GLdxp::-webkit-slider-thumb {
|
|
1849
|
+
-webkit-appearance: none;
|
|
1850
|
+
appearance: none;
|
|
1851
|
+
width: 14px;
|
|
1852
|
+
height: 14px;
|
|
1853
|
+
background: white;
|
|
1854
|
+
border-radius: 50%;
|
|
1855
|
+
cursor: pointer;
|
|
1856
|
+
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
1857
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
1858
|
+
}
|
|
1859
|
+
.styles-module__slider___GLdxp::-moz-range-thumb {
|
|
1860
|
+
width: 14px;
|
|
1861
|
+
height: 14px;
|
|
1862
|
+
background: white;
|
|
1863
|
+
border: none;
|
|
1864
|
+
border-radius: 50%;
|
|
1865
|
+
cursor: pointer;
|
|
1866
|
+
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
1867
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
1868
|
+
}
|
|
1869
|
+
.styles-module__slider___GLdxp:hover::-webkit-slider-thumb {
|
|
1870
|
+
transform: scale(1.15);
|
|
1871
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
|
|
1872
|
+
}
|
|
1873
|
+
.styles-module__slider___GLdxp:hover::-moz-range-thumb {
|
|
1874
|
+
transform: scale(1.15);
|
|
1875
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
.styles-module__sliderLabels___FhLDB {
|
|
1879
|
+
display: flex;
|
|
1880
|
+
justify-content: space-between;
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
.styles-module__sliderLabel___U8sPr {
|
|
1884
|
+
font-size: 0.625rem;
|
|
1885
|
+
font-weight: 500;
|
|
1886
|
+
color: rgba(255, 255, 255, 0.4);
|
|
1887
|
+
cursor: pointer;
|
|
1888
|
+
transition: color 0.15s ease;
|
|
1889
|
+
}
|
|
1890
|
+
.styles-module__sliderLabel___U8sPr:hover {
|
|
1891
|
+
color: rgba(255, 255, 255, 0.7);
|
|
1892
|
+
}
|
|
1893
|
+
.styles-module__sliderLabel___U8sPr.styles-module__active___-zoN6 {
|
|
1894
|
+
color: rgba(255, 255, 255, 0.9);
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
.styles-module__colorOptions___iHCNX {
|
|
1898
|
+
display: flex;
|
|
1899
|
+
gap: 0.5rem;
|
|
1900
|
+
margin-top: 0.375rem;
|
|
1901
|
+
margin-bottom: 1px;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
.styles-module__colorOption___IodiY {
|
|
1905
|
+
display: block;
|
|
1906
|
+
width: 20px;
|
|
1907
|
+
height: 20px;
|
|
1908
|
+
border-radius: 50%;
|
|
1909
|
+
border: 2px solid transparent;
|
|
1910
|
+
cursor: pointer;
|
|
1911
|
+
transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
|
|
1912
|
+
}
|
|
1913
|
+
.styles-module__colorOption___IodiY:hover {
|
|
1914
|
+
transform: scale(1.15);
|
|
1915
|
+
}
|
|
1916
|
+
.styles-module__colorOption___IodiY.styles-module__selected___OwRqP {
|
|
1917
|
+
transform: scale(0.83);
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
.styles-module__colorOptionRing___U2xpo {
|
|
1921
|
+
display: flex;
|
|
1922
|
+
width: 24px;
|
|
1923
|
+
height: 24px;
|
|
1924
|
+
border: 2px solid transparent;
|
|
1925
|
+
border-radius: 50%;
|
|
1926
|
+
transition: border-color 0.3s ease;
|
|
1927
|
+
}
|
|
1928
|
+
.styles-module__settingsToggle___fBrFn {
|
|
1929
|
+
display: flex;
|
|
1930
|
+
align-items: center;
|
|
1931
|
+
gap: 0.5rem;
|
|
1932
|
+
cursor: pointer;
|
|
1933
|
+
}
|
|
1934
|
+
.styles-module__settingsToggle___fBrFn + .styles-module__settingsToggle___fBrFn {
|
|
1935
|
+
margin-top: calc(0.5rem + 6px);
|
|
1936
|
+
}
|
|
1937
|
+
.styles-module__settingsToggle___fBrFn input[type=checkbox] {
|
|
1938
|
+
position: absolute;
|
|
1939
|
+
opacity: 0;
|
|
1940
|
+
width: 0;
|
|
1941
|
+
height: 0;
|
|
1942
|
+
}
|
|
1943
|
+
.styles-module__settingsToggle___fBrFn.styles-module__settingsToggleMarginBottom___MZUyF {
|
|
1944
|
+
margin-bottom: calc(0.5rem + 6px);
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
.styles-module__customCheckbox___U39ax {
|
|
1948
|
+
position: relative;
|
|
1949
|
+
width: 14px;
|
|
1950
|
+
height: 14px;
|
|
1951
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
1952
|
+
border-radius: 4px;
|
|
1953
|
+
background: rgba(255, 255, 255, 0.05);
|
|
1954
|
+
display: flex;
|
|
1955
|
+
align-items: center;
|
|
1956
|
+
justify-content: center;
|
|
1957
|
+
flex-shrink: 0;
|
|
1958
|
+
transition: background 0.25s ease, border-color 0.25s ease;
|
|
1959
|
+
}
|
|
1960
|
+
.styles-module__customCheckbox___U39ax svg {
|
|
1961
|
+
color: #1a1a1a;
|
|
1962
|
+
opacity: 1;
|
|
1963
|
+
transition: opacity 0.15s ease;
|
|
1964
|
+
}
|
|
1965
|
+
input[type=checkbox]:checked + .styles-module__customCheckbox___U39ax {
|
|
1966
|
+
border-color: rgba(255, 255, 255, 0.3);
|
|
1967
|
+
background: rgb(255, 255, 255);
|
|
1968
|
+
}
|
|
1969
|
+
.styles-module__customCheckbox___U39ax.styles-module__light___r6n4Y {
|
|
1970
|
+
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
1971
|
+
background: #fff;
|
|
1972
|
+
}
|
|
1973
|
+
.styles-module__customCheckbox___U39ax.styles-module__light___r6n4Y.styles-module__checked___mnZLo {
|
|
1974
|
+
border-color: #1a1a1a;
|
|
1975
|
+
background: #1a1a1a;
|
|
1976
|
+
}
|
|
1977
|
+
.styles-module__customCheckbox___U39ax.styles-module__light___r6n4Y.styles-module__checked___mnZLo svg {
|
|
1978
|
+
color: #fff;
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
.styles-module__toggleLabel___Xm8Aa {
|
|
1982
|
+
font-size: 0.8125rem;
|
|
1983
|
+
font-weight: 400;
|
|
1984
|
+
color: rgba(255, 255, 255, 0.5);
|
|
1985
|
+
letter-spacing: -0.0094em;
|
|
1986
|
+
display: flex;
|
|
1987
|
+
align-items: center;
|
|
1988
|
+
gap: 0.25rem;
|
|
1989
|
+
}
|
|
1990
|
+
.styles-module__toggleLabel___Xm8Aa.styles-module__light___r6n4Y {
|
|
1991
|
+
color: rgba(0, 0, 0, 0.5);
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
.styles-module__toggleSwitch___l4Ygm {
|
|
1995
|
+
position: relative;
|
|
1996
|
+
display: inline-block;
|
|
1997
|
+
width: 24px;
|
|
1998
|
+
height: 16px;
|
|
1999
|
+
flex-shrink: 0;
|
|
2000
|
+
cursor: pointer;
|
|
2001
|
+
transition: opacity 0.15s ease;
|
|
2002
|
+
}
|
|
2003
|
+
.styles-module__toggleSwitch___l4Ygm input {
|
|
2004
|
+
opacity: 0;
|
|
2005
|
+
width: 0;
|
|
2006
|
+
height: 0;
|
|
2007
|
+
}
|
|
2008
|
+
.styles-module__toggleSwitch___l4Ygm input:checked + .styles-module__toggleSlider___wprIn {
|
|
2009
|
+
background: #3c82f7;
|
|
2010
|
+
}
|
|
2011
|
+
.styles-module__toggleSwitch___l4Ygm input:checked + .styles-module__toggleSlider___wprIn::before {
|
|
2012
|
+
transform: translateX(8px);
|
|
2013
|
+
}
|
|
2014
|
+
.styles-module__toggleSwitch___l4Ygm.styles-module__disabled___332Jw {
|
|
2015
|
+
opacity: 0.4;
|
|
2016
|
+
pointer-events: none;
|
|
2017
|
+
}
|
|
2018
|
+
.styles-module__toggleSwitch___l4Ygm.styles-module__disabled___332Jw .styles-module__toggleSlider___wprIn {
|
|
2019
|
+
cursor: not-allowed;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
.styles-module__toggleSlider___wprIn {
|
|
2023
|
+
position: absolute;
|
|
2024
|
+
cursor: pointer;
|
|
2025
|
+
inset: 0;
|
|
2026
|
+
border-radius: 16px;
|
|
2027
|
+
background: #484848;
|
|
2028
|
+
}
|
|
2029
|
+
.styles-module__light___r6n4Y .styles-module__toggleSlider___wprIn {
|
|
2030
|
+
background: #dddddd;
|
|
2031
|
+
}
|
|
2032
|
+
.styles-module__toggleSlider___wprIn::before {
|
|
2033
|
+
content: "";
|
|
2034
|
+
position: absolute;
|
|
2035
|
+
height: 12px;
|
|
2036
|
+
width: 12px;
|
|
2037
|
+
left: 2px;
|
|
2038
|
+
bottom: 2px;
|
|
2039
|
+
background: white;
|
|
2040
|
+
border-radius: 50%;
|
|
2041
|
+
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
2042
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
@keyframes styles-module__mcpPulse___uNggr {
|
|
2046
|
+
0% {
|
|
2047
|
+
box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);
|
|
2048
|
+
}
|
|
2049
|
+
70% {
|
|
2050
|
+
box-shadow: 0 0 0 6px rgba(52, 199, 89, 0);
|
|
2051
|
+
}
|
|
2052
|
+
100% {
|
|
2053
|
+
box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
@keyframes styles-module__mcpPulseError___fov9B {
|
|
2057
|
+
0% {
|
|
2058
|
+
box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5);
|
|
2059
|
+
}
|
|
2060
|
+
70% {
|
|
2061
|
+
box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
|
|
2062
|
+
}
|
|
2063
|
+
100% {
|
|
2064
|
+
box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
.styles-module__mcpStatusDot___ibgkc {
|
|
2068
|
+
width: 8px;
|
|
2069
|
+
height: 8px;
|
|
2070
|
+
border-radius: 50%;
|
|
2071
|
+
flex-shrink: 0;
|
|
2072
|
+
}
|
|
2073
|
+
.styles-module__mcpStatusDot___ibgkc.styles-module__connecting___uo-CW {
|
|
2074
|
+
background: #f5a623;
|
|
2075
|
+
animation: styles-module__mcpPulse___uNggr 1.5s infinite;
|
|
2076
|
+
}
|
|
2077
|
+
.styles-module__mcpStatusDot___ibgkc.styles-module__connected___7c28g {
|
|
2078
|
+
background: #34c759;
|
|
2079
|
+
animation: styles-module__mcpPulse___uNggr 2.5s ease-in-out infinite;
|
|
2080
|
+
}
|
|
2081
|
+
.styles-module__mcpStatusDot___ibgkc.styles-module__disconnected___cHPxR {
|
|
2082
|
+
background: #ff3b30;
|
|
2083
|
+
animation: styles-module__mcpPulseError___fov9B 2s infinite;
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
.styles-module__helpIcon___xQg56 {
|
|
2087
|
+
position: relative;
|
|
2088
|
+
display: inline-flex;
|
|
2089
|
+
align-items: center;
|
|
2090
|
+
justify-content: center;
|
|
2091
|
+
cursor: help;
|
|
2092
|
+
margin-left: 0;
|
|
2093
|
+
}
|
|
2094
|
+
.styles-module__helpIcon___xQg56 svg {
|
|
2095
|
+
display: block;
|
|
2096
|
+
transform: translateY(1px);
|
|
2097
|
+
color: rgba(255, 255, 255, 0.2);
|
|
2098
|
+
transition: color 0.15s ease;
|
|
2099
|
+
}
|
|
2100
|
+
.styles-module__helpIcon___xQg56:hover svg {
|
|
2101
|
+
color: rgba(255, 255, 255, 0.5);
|
|
2102
|
+
}
|
|
2103
|
+
.styles-module__helpIcon___xQg56.styles-module__helpIconNudgeDown___0cqpM svg {
|
|
2104
|
+
transform: translateY(1px);
|
|
2105
|
+
}
|
|
2106
|
+
.styles-module__helpIcon___xQg56.styles-module__helpIconNoNudge___abogC svg {
|
|
2107
|
+
transform: translateY(0.5px);
|
|
2108
|
+
}
|
|
2109
|
+
.styles-module__helpIcon___xQg56.styles-module__helpIconNudge1-5___DM2TQ svg {
|
|
2110
|
+
transform: translateY(1.5px);
|
|
2111
|
+
}
|
|
2112
|
+
.styles-module__helpIcon___xQg56.styles-module__helpIconNudge2___TfWgC svg {
|
|
2113
|
+
transform: translateY(2px);
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
.styles-module__dragSelection___kZLq2 {
|
|
2117
|
+
position: fixed;
|
|
2118
|
+
top: 0;
|
|
2119
|
+
left: 0;
|
|
2120
|
+
border: 2px solid rgba(52, 199, 89, 0.6);
|
|
2121
|
+
border-radius: 4px;
|
|
2122
|
+
background: rgba(52, 199, 89, 0.08);
|
|
2123
|
+
pointer-events: none;
|
|
2124
|
+
z-index: 99997;
|
|
2125
|
+
will-change: transform, width, height;
|
|
2126
|
+
contain: layout style;
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
.styles-module__dragCount___KM90j {
|
|
2130
|
+
position: absolute;
|
|
2131
|
+
top: 50%;
|
|
2132
|
+
left: 50%;
|
|
2133
|
+
transform: translate(-50%, -50%);
|
|
2134
|
+
background: #34c759;
|
|
2135
|
+
color: white;
|
|
2136
|
+
font-size: 0.875rem;
|
|
2137
|
+
font-weight: 600;
|
|
2138
|
+
padding: 0.25rem 0.5rem;
|
|
2139
|
+
border-radius: 1rem;
|
|
2140
|
+
min-width: 1.5rem;
|
|
2141
|
+
text-align: center;
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
.styles-module__highlightsContainer___-0xzG {
|
|
2145
|
+
position: fixed;
|
|
2146
|
+
top: 0;
|
|
2147
|
+
left: 0;
|
|
2148
|
+
pointer-events: none;
|
|
2149
|
+
z-index: 99996;
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
.styles-module__selectedElementHighlight___fyVlI {
|
|
2153
|
+
position: fixed;
|
|
2154
|
+
top: 0;
|
|
2155
|
+
left: 0;
|
|
2156
|
+
border: 2px solid rgba(52, 199, 89, 0.5);
|
|
2157
|
+
border-radius: 4px;
|
|
2158
|
+
background: rgba(52, 199, 89, 0.06);
|
|
2159
|
+
pointer-events: none;
|
|
2160
|
+
will-change: transform, width, height;
|
|
2161
|
+
contain: layout style;
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2164
|
+
.styles-module__light___r6n4Y.styles-module__toolbarContainer___dIhma {
|
|
2165
|
+
background: #fff;
|
|
2166
|
+
color: rgba(0, 0, 0, 0.85);
|
|
2167
|
+
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);
|
|
2168
|
+
}
|
|
2169
|
+
.styles-module__light___r6n4Y.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:hover {
|
|
2170
|
+
background: #f5f5f5;
|
|
2171
|
+
}
|
|
2172
|
+
.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc {
|
|
2173
|
+
color: rgba(0, 0, 0, 0.5);
|
|
2174
|
+
}
|
|
2175
|
+
.styles-module__light___r6n4Y.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]) {
|
|
2176
|
+
background: rgba(0, 0, 0, 0.06);
|
|
2177
|
+
color: rgba(0, 0, 0, 0.85);
|
|
2178
|
+
}
|
|
2179
|
+
.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-active=true] {
|
|
2180
|
+
color: #3c82f7;
|
|
2181
|
+
background: rgba(60, 130, 247, 0.15);
|
|
2182
|
+
}
|
|
2183
|
+
.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-error=true] {
|
|
2184
|
+
color: #ff3b30;
|
|
2185
|
+
background: rgba(255, 59, 48, 0.15);
|
|
2186
|
+
}
|
|
2187
|
+
.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-danger]:hover:not(:disabled):not([data-active=true]):not([data-failed=true]) {
|
|
2188
|
+
background: rgba(255, 59, 48, 0.15);
|
|
2189
|
+
color: #ff3b30;
|
|
2190
|
+
}
|
|
2191
|
+
.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-auto-sync=true] {
|
|
2192
|
+
color: #34c759;
|
|
2193
|
+
background: transparent;
|
|
2194
|
+
}
|
|
2195
|
+
.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-failed=true] {
|
|
2196
|
+
color: #ff3b30;
|
|
2197
|
+
background: rgba(255, 59, 48, 0.15);
|
|
2198
|
+
}
|
|
2199
|
+
.styles-module__light___r6n4Y.styles-module__buttonTooltip___Burd9 {
|
|
2200
|
+
background: #fff;
|
|
2201
|
+
color: rgba(0, 0, 0, 0.85);
|
|
2202
|
+
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);
|
|
2203
|
+
}
|
|
2204
|
+
.styles-module__light___r6n4Y.styles-module__buttonTooltip___Burd9::after {
|
|
2205
|
+
background: #fff;
|
|
2206
|
+
}
|
|
2207
|
+
.styles-module__light___r6n4Y.styles-module__divider___c--s1 {
|
|
2208
|
+
background: rgba(0, 0, 0, 0.1);
|
|
2209
|
+
}
|
|
2210
|
+
.styles-module__light___r6n4Y.styles-module__markerTooltip___aLJID {
|
|
2211
|
+
background: #fff;
|
|
2212
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
|
|
2213
|
+
}
|
|
2214
|
+
.styles-module__light___r6n4Y.styles-module__markerTooltip___aLJID .styles-module__markerQuote___FHmrz {
|
|
2215
|
+
color: rgba(0, 0, 0, 0.5);
|
|
2216
|
+
}
|
|
2217
|
+
.styles-module__light___r6n4Y.styles-module__markerTooltip___aLJID .styles-module__markerNote___QkrrS {
|
|
2218
|
+
color: rgba(0, 0, 0, 0.85);
|
|
2219
|
+
}
|
|
2220
|
+
.styles-module__light___r6n4Y.styles-module__markerTooltip___aLJID .styles-module__markerHint___2iF-6 {
|
|
2221
|
+
color: rgba(0, 0, 0, 0.35);
|
|
2222
|
+
}
|
|
2223
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y {
|
|
2224
|
+
background: #fff;
|
|
2225
|
+
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);
|
|
2226
|
+
}
|
|
2227
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y::before {
|
|
2228
|
+
background: linear-gradient(to right, #fff 0%, transparent 100%);
|
|
2229
|
+
}
|
|
2230
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y::after {
|
|
2231
|
+
background: linear-gradient(to left, #fff 0%, transparent 100%);
|
|
2232
|
+
}
|
|
2233
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsHeader___pwDY9 {
|
|
2234
|
+
border-bottom-color: rgba(0, 0, 0, 0.08);
|
|
2235
|
+
}
|
|
2236
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsBrand___0gJeM {
|
|
2237
|
+
color: rgba(0, 0, 0, 0.85);
|
|
2238
|
+
}
|
|
2239
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsBrandSlash___uTG18 {
|
|
2240
|
+
color: rgba(0, 0, 0, 0.4);
|
|
2241
|
+
}
|
|
2242
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsVersion___TUcFq {
|
|
2243
|
+
color: rgba(0, 0, 0, 0.4);
|
|
2244
|
+
}
|
|
2245
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsSection___m-YM2 {
|
|
2246
|
+
border-top-color: rgba(0, 0, 0, 0.08);
|
|
2247
|
+
}
|
|
2248
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsLabel___8UjfX {
|
|
2249
|
+
color: rgba(0, 0, 0, 0.5);
|
|
2250
|
+
}
|
|
2251
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__cycleButton___FMKfw {
|
|
2252
|
+
color: rgba(0, 0, 0, 0.85);
|
|
2253
|
+
}
|
|
2254
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY {
|
|
2255
|
+
background: rgba(0, 0, 0, 0.2);
|
|
2256
|
+
}
|
|
2257
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY.styles-module__active___-zoN6 {
|
|
2258
|
+
background: rgba(0, 0, 0, 0.7);
|
|
2259
|
+
}
|
|
2260
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz {
|
|
2261
|
+
color: rgba(0, 0, 0, 0.85);
|
|
2262
|
+
}
|
|
2263
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz:hover {
|
|
2264
|
+
background: rgba(0, 0, 0, 0.05);
|
|
2265
|
+
}
|
|
2266
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__toggleLabel___Xm8Aa {
|
|
2267
|
+
color: rgba(0, 0, 0, 0.5);
|
|
2268
|
+
}
|
|
2269
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax {
|
|
2270
|
+
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
2271
|
+
background: #fff;
|
|
2272
|
+
}
|
|
2273
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax.styles-module__checked___mnZLo {
|
|
2274
|
+
border-color: #1a1a1a;
|
|
2275
|
+
background: #1a1a1a;
|
|
2276
|
+
}
|
|
2277
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax.styles-module__checked___mnZLo svg {
|
|
2278
|
+
color: #fff;
|
|
2279
|
+
}
|
|
2280
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr {
|
|
2281
|
+
color: rgba(0, 0, 0, 0.4);
|
|
2282
|
+
}
|
|
2283
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr:hover {
|
|
2284
|
+
color: rgba(0, 0, 0, 0.7);
|
|
2285
|
+
}
|
|
2286
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr.styles-module__active___-zoN6 {
|
|
2287
|
+
color: rgba(0, 0, 0, 0.9);
|
|
2288
|
+
}
|
|
2289
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp {
|
|
2290
|
+
background: rgba(0, 0, 0, 0.1);
|
|
2291
|
+
}
|
|
2292
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp::-webkit-slider-thumb {
|
|
2293
|
+
background: #1a1a1a;
|
|
2294
|
+
}
|
|
2295
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp::-moz-range-thumb {
|
|
2296
|
+
background: #1a1a1a;
|
|
2297
|
+
}
|
|
2298
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__helpIcon___xQg56 svg {
|
|
2299
|
+
color: rgba(0, 0, 0, 0.2);
|
|
2300
|
+
}
|
|
2301
|
+
.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__helpIcon___xQg56:hover svg {
|
|
2302
|
+
color: rgba(0, 0, 0, 0.5);
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
.styles-module__themeToggle___2rUjA {
|
|
2306
|
+
display: flex;
|
|
2307
|
+
align-items: center;
|
|
2308
|
+
justify-content: center;
|
|
2309
|
+
width: 22px;
|
|
2310
|
+
height: 22px;
|
|
2311
|
+
margin-left: 0.5rem;
|
|
2312
|
+
border: none;
|
|
2313
|
+
border-radius: 6px;
|
|
2314
|
+
background: transparent;
|
|
2315
|
+
color: rgba(255, 255, 255, 0.4);
|
|
2316
|
+
cursor: pointer;
|
|
2317
|
+
transition: background-color 0.15s ease, color 0.15s ease;
|
|
2318
|
+
}
|
|
2319
|
+
.styles-module__themeToggle___2rUjA:hover {
|
|
2320
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2321
|
+
color: rgba(255, 255, 255, 0.8);
|
|
2322
|
+
}
|
|
2323
|
+
.styles-module__light___r6n4Y .styles-module__themeToggle___2rUjA {
|
|
2324
|
+
color: rgba(0, 0, 0, 0.4);
|
|
2325
|
+
}
|
|
2326
|
+
.styles-module__light___r6n4Y .styles-module__themeToggle___2rUjA:hover {
|
|
2327
|
+
background: rgba(0, 0, 0, 0.06);
|
|
2328
|
+
color: rgba(0, 0, 0, 0.7);
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
.styles-module__themeIconWrapper___LsJIM {
|
|
2332
|
+
display: flex;
|
|
2333
|
+
align-items: center;
|
|
2334
|
+
justify-content: center;
|
|
2335
|
+
position: relative;
|
|
2336
|
+
width: 20px;
|
|
2337
|
+
height: 20px;
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
.styles-module__themeIcon___lCCmo {
|
|
2341
|
+
display: flex;
|
|
2342
|
+
align-items: center;
|
|
2343
|
+
justify-content: center;
|
|
2344
|
+
animation: styles-module__themeIconIn___TU6ML 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
@keyframes styles-module__themeIconIn___TU6ML {
|
|
2348
|
+
0% {
|
|
2349
|
+
opacity: 0;
|
|
2350
|
+
transform: scale(0.8) rotate(-30deg);
|
|
2351
|
+
}
|
|
2352
|
+
100% {
|
|
2353
|
+
opacity: 1;
|
|
2354
|
+
transform: scale(1) rotate(0deg);
|
|
2355
|
+
}
|
|
2356
|
+
}`,lC={toolbar:"styles-module__toolbar___wNsdK",toolbarContainer:"styles-module__toolbarContainer___dIhma",dragging:"styles-module__dragging___xrolZ",entrance:"styles-module__entrance___sgHd8",toolbarEnter:"styles-module__toolbarEnter___u8RRu",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",light:"styles-module__light___r6n4Y",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",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",markersLayer:"styles-module__markersLayer___-25j1",fixedMarkersLayer:"styles-module__fixedMarkersLayer___ffyX6",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",helpIcon:"styles-module__helpIcon___xQg56",themeToggle:"styles-module__themeToggle___2rUjA",dark:"styles-module__dark___ILIQf",settingsOption:"styles-module__settingsOption___UNa12",selected:"styles-module__selected___OwRqP",settingsPanelContainer:"styles-module__settingsPanelContainer___Xksv8",transitioning:"styles-module__transitioning___qxzCk",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",helpIconNudgeDown:"styles-module__helpIconNudgeDown___0cqpM",helpIconNoNudge:"styles-module__helpIconNoNudge___abogC","helpIconNudge1-5":"styles-module__helpIconNudge1-5___DM2TQ",helpIconNudge2:"styles-module__helpIconNudge2___TfWgC",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=sC,document.head.appendChild(e))}var C=lC;function _c(e,t="filtered"){const{name:n,path:r}=Pi(e);if(t==="off")return{name:n,elementName:n,path:r,reactComponents:null};const o=oC(e,{mode:t});return{name:o.path?`${o.path} ${n}`:n,elementName:n,path:r,reactComponents:o.path}}var Cm=!1,km={outputDetail:"standard",autoClearAfterCopy:!1,annotationColor:"#3c82f7",blockInteractions:!0,reactEnabled:!0,markerClickBehavior:"edit",webhookUrl:"",webhooksEnabled:!0},nn=e=>{if(!e||!e.trim())return!1;try{const t=new URL(e.trim());return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}},iC={compact:"off",standard:"filtered",detailed:"smart",forensic:"all"},us=[{value:"compact",label:"Compact"},{value:"standard",label:"Standard"},{value:"detailed",label:"Detailed"},{value:"forensic",label:"Forensic"}],aC=[{value:"#AF52DE",label:"Purple"},{value:"#3c82f7",label:"Blue"},{value:"#5AC8FA",label:"Cyan"},{value:"#34C759",label:"Green"},{value:"#FFD60A",label:"Yellow"},{value:"#FF9500",label:"Orange"},{value:"#FF3B30",label:"Red"}];function Qr(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 gc(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 Sm(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}
|
|
2357
|
+
`;return n==="forensic"?(s+=`
|
|
2358
|
+
**Environment:**
|
|
2359
|
+
`,s+=`- Viewport: ${o}
|
|
2360
|
+
`,typeof window<"u"&&(s+=`- URL: ${window.location.href}
|
|
2361
|
+
`,s+=`- User Agent: ${navigator.userAgent}
|
|
2362
|
+
`,s+=`- Timestamp: ${new Date().toISOString()}
|
|
2363
|
+
`,s+=`- Device Pixel Ratio: ${window.devicePixelRatio}
|
|
2364
|
+
`),s+=`
|
|
2365
|
+
---
|
|
2366
|
+
`):n!=="compact"&&(s+=`**Viewport:** ${o}
|
|
2367
|
+
`),s+=`
|
|
2368
|
+
`,e.forEach((l,i)=>{n==="compact"?(s+=`${i+1}. **${l.element}**: ${l.comment}`,l.selectedText&&(s+=` (re: "${l.selectedText.slice(0,30)}${l.selectedText.length>30?"...":""}")`),s+=`
|
|
2369
|
+
`):n==="forensic"?(s+=`### ${i+1}. ${l.element}
|
|
2370
|
+
`,l.isMultiSelect&&l.fullPath&&(s+=`*Forensic data shown for first element of selection*
|
|
2371
|
+
`),l.fullPath&&(s+=`**Full DOM Path:** ${l.fullPath}
|
|
2372
|
+
`),l.cssClasses&&(s+=`**CSS Classes:** ${l.cssClasses}
|
|
2373
|
+
`),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)
|
|
2374
|
+
`),s+=`**Annotation at:** ${l.x.toFixed(1)}% from left, ${Math.round(l.y)}px from top
|
|
2375
|
+
`,l.selectedText&&(s+=`**Selected text:** "${l.selectedText}"
|
|
2376
|
+
`),l.nearbyText&&!l.selectedText&&(s+=`**Context:** ${l.nearbyText.slice(0,100)}
|
|
2377
|
+
`),l.computedStyles&&(s+=`**Computed Styles:** ${l.computedStyles}
|
|
2378
|
+
`),l.accessibility&&(s+=`**Accessibility:** ${l.accessibility}
|
|
2379
|
+
`),l.nearbyElements&&(s+=`**Nearby Elements:** ${l.nearbyElements}
|
|
2380
|
+
`),l.reactComponents&&(s+=`**React:** ${l.reactComponents}
|
|
2381
|
+
`),s+=`**Feedback:** ${l.comment}
|
|
2382
|
+
|
|
2383
|
+
`):(s+=`### ${i+1}. ${l.element}
|
|
2384
|
+
`,s+=`**Location:** ${l.elementPath}
|
|
2385
|
+
`,l.reactComponents&&(s+=`**React:** ${l.reactComponents}
|
|
2386
|
+
`),n==="detailed"&&(l.cssClasses&&(s+=`**Classes:** ${l.cssClasses}
|
|
2387
|
+
`),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)
|
|
2388
|
+
`)),l.selectedText&&(s+=`**Selected text:** "${l.selectedText}"
|
|
2389
|
+
`),n==="detailed"&&l.nearbyText&&!l.selectedText&&(s+=`**Context:** ${l.nearbyText.slice(0,100)}
|
|
2390
|
+
`),s+=`**Feedback:** ${l.comment}
|
|
2391
|
+
|
|
2392
|
+
`)}),s.trim()}function cC({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:g}={}){const[x,y]=u.useState(!1),[w,h]=u.useState([]),[_,v]=u.useState(!0),[S,E]=u.useState(!1),[N,j]=u.useState(!1),[T,z]=u.useState(null),[M,X]=u.useState({x:0,y:0}),[L,Z]=u.useState(null),[se,ge]=u.useState(!1),[Q,pe]=u.useState("idle"),[I,$]=u.useState(!1),[H,J]=u.useState(!1),[we,Kt]=u.useState(null),[mt,ht]=u.useState(null),[Nt,Ge]=u.useState([]),[Bo,qs]=u.useState(null),[zr,el]=u.useState(null),[re,Zt]=u.useState(null),[va,hn]=u.useState(null),[nf,dr]=u.useState([]),[fr,rf]=u.useState(0),[of,sf]=u.useState(!1),[Oe,Py]=u.useState(!1),[$t,lf]=u.useState(!1),[Wo,af]=u.useState(!1),[Ry,cf]=u.useState(!1),[xa,wa]=u.useState("main"),[uf,df]=u.useState(!1),[Ty,ba]=u.useState(!1),[Me,Fr]=u.useState([]),Jt=u.useRef({cmd:!1,shift:!1}),st=()=>{ba(!0)},Ly=()=>{ba(!1)},Ho=({content:b,children:k})=>{const[R,A]=u.useState(!1),[P,D]=u.useState(!1),[W,Y]=u.useState(!1),[te,q]=u.useState({top:0,right:0}),V=u.useRef(null),G=u.useRef(null),ee=u.useRef(null),K=()=>{if(V.current){const Le=V.current.getBoundingClientRect();q({top:Le.top+Le.height/2,right:window.innerWidth-Le.left+8})}},U=()=>{A(!0),Y(!0),ee.current&&(clearTimeout(ee.current),ee.current=null),K(),G.current=de(()=>{D(!0)},500)},jt=()=>{A(!1),G.current&&(clearTimeout(G.current),G.current=null),D(!1),ee.current=de(()=>{Y(!1)},150)};return u.useEffect(()=>()=>{G.current&&clearTimeout(G.current),ee.current&&clearTimeout(ee.current)},[]),a.jsxs(a.Fragment,{children:[a.jsx("span",{ref:V,onMouseEnter:U,onMouseLeave:jt,children:k}),W&&Ro.createPortal(a.jsx("div",{"data-feedback-toolbar":!0,style:{position:"fixed",top:te.top,right:te.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:P&&!uf?1:0,transition:"opacity 0.15s ease"},children:b}),document.body)]})},[F,On]=u.useState(km),[oe,ff]=u.useState(!0),[pf,mf]=u.useState(!1),Br=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"||window.location.hostname==="0.0.0.0"||window.location.hostname.endsWith(".local")),_n=Br&&F.reactEnabled?iC[F.outputDetail]:"off",[_t,Ca]=u.useState(p??null),hf=u.useRef(!1),[et,pr]=u.useState(f?"connecting":"disconnected"),[Ne,ka]=u.useState(null),[gn,_f]=u.useState(!1),[Wr,gf]=u.useState(null),[Iy,Ay]=u.useState(0),Sa=u.useRef(!1),[yf,Uo]=u.useState(new Set),[vf,tl]=u.useState(new Set),[Yo,nl]=u.useState(!1),[Oy,Hr]=u.useState(!1),[yn,xf]=u.useState(!1),Ur=u.useRef(null),qt=u.useRef(null),Vo=u.useRef(null),Xo=u.useRef(null),rl=u.useRef(!1),wf=u.useRef(0),ol=u.useRef(null),bf=u.useRef(null),Ea=8,My=50,Cf=u.useRef(null),kf=u.useRef(null),Qo=u.useRef(null),ye=typeof window<"u"?window.location.pathname:"/";u.useEffect(()=>{if(Wo)cf(!0);else{ba(!1),wa("main");const b=de(()=>cf(!1),0);return()=>clearTimeout(b)}},[Wo]),u.useEffect(()=>{df(!0);const b=de(()=>df(!1),350);return()=>clearTimeout(b)},[xa]);const Sf=x&&_;u.useEffect(()=>{if(Sf){j(!1),E(!0),Uo(new Set);const b=de(()=>{Uo(k=>{const R=new Set(k);return w.forEach(A=>R.add(A.id)),R})},350);return()=>clearTimeout(b)}else if(S){j(!0);const b=de(()=>{E(!1),j(!1)},250);return()=>clearTimeout(b)}},[Sf]),u.useEffect(()=>{Py(!0),rf(window.scrollY);const b=fc(ye);h(b),Cm||(mf(!0),Cm=!0,de(()=>mf(!1),750));try{const k=localStorage.getItem("feedback-toolbar-settings");k&&On({...km,...JSON.parse(k)})}catch{}try{const k=localStorage.getItem("feedback-toolbar-theme");k!==null&&ff(k==="dark")}catch{}try{const k=localStorage.getItem("feedback-toolbar-position");if(k){const R=JSON.parse(k);typeof R.x=="number"&&typeof R.y=="number"&&ka(R)}}catch{}},[ye]),u.useEffect(()=>{Oe&&localStorage.setItem("feedback-toolbar-settings",JSON.stringify(F))},[F,Oe]),u.useEffect(()=>{Oe&&localStorage.setItem("feedback-toolbar-theme",oe?"dark":"light")},[oe,Oe]);const Ef=u.useRef(!1);u.useEffect(()=>{const b=Ef.current;Ef.current=gn,b&&!gn&&Ne&&Oe&&localStorage.setItem("feedback-toolbar-position",JSON.stringify(Ne))},[gn,Ne,Oe]),u.useEffect(()=>{if(!f||!Oe||hf.current)return;hf.current=!0,pr("connecting"),(async()=>{try{const k=H2(ye),R=p||k;let A=!1;if(R)try{const P=await vm(f,R);Ca(P.id),pr("connected"),pc(ye,P.id),A=!0;const D=fc(ye),W=new Set(P.annotations.map(te=>te.id)),Y=D.filter(te=>!W.has(te.id));if(Y.length>0){const q=`${typeof window<"u"?window.location.origin:""}${ye}`,G=(await Promise.allSettled(Y.map(K=>Il(f,P.id,{...K,sessionId:P.id,url:q})))).map((K,U)=>K.status==="fulfilled"?K.value:(console.warn("[Agentation] Failed to sync annotation:",K.reason),Y[U])),ee=[...P.annotations,...G];h(ee),as(ye,ee,P.id)}else h(P.annotations),as(ye,P.annotations,P.id)}catch(P){console.warn("[Agentation] Could not join session, creating new:",P),U2(ye)}if(!A){const P=typeof window<"u"?window.location.href:"/",D=await mc(f,P);Ca(D.id),pr("connected"),pc(ye,D.id),m?.(D.id);const W=B2(),Y=typeof window<"u"?window.location.origin:"",te=[];for(const[q,V]of W){const G=V.filter(U=>!U._syncedTo);if(G.length===0)continue;const ee=`${Y}${q}`,K=q===ye;te.push((async()=>{try{const U=K?D:await mc(f,ee),Le=(await Promise.allSettled(G.map(gt=>Il(f,U.id,{...gt,sessionId:U.id,url:ee})))).map((gt,lt)=>gt.status==="fulfilled"?gt.value:(console.warn("[Agentation] Failed to sync annotation:",gt.reason),G[lt]));if(as(q,Le,U.id),K){const gt=new Set(G.map(lt=>lt.id));h(lt=>{const Pt=lt.filter(ue=>!gt.has(ue.id));return[...Le,...Pt]})}}catch(U){console.warn(`[Agentation] Failed to sync annotations for ${q}:`,U)}})())}await Promise.allSettled(te)}}catch(k){pr("disconnected"),console.warn("[Agentation] Failed to initialize session, using local storage:",k)}})()},[f,p,Oe,m,ye]),u.useEffect(()=>{if(!f||!Oe)return;const b=async()=>{try{(await fetch(`${f}/health`)).ok?pr("connected"):pr("disconnected")}catch{pr("disconnected")}};b();const k=T2(b,1e4);return()=>clearInterval(k)},[f,Oe]),u.useEffect(()=>{if(!f||!Oe||!_t)return;const b=new EventSource(`${f}/sessions/${_t}/events`),k=["resolved","dismissed"],R=A=>{try{const P=JSON.parse(A.data);if(k.includes(P.payload?.status)){const D=P.payload.id;tl(W=>new Set(W).add(D)),de(()=>{h(W=>W.filter(Y=>Y.id!==D)),tl(W=>{const Y=new Set(W);return Y.delete(D),Y})},150)}}catch{}};return b.addEventListener("annotation.updated",R),()=>{b.removeEventListener("annotation.updated",R),b.close()}},[f,Oe,_t]),u.useEffect(()=>{if(!f||!Oe)return;const b=bf.current==="disconnected",k=et==="connected";bf.current=et,b&&k&&(async()=>{try{const A=fc(ye);if(A.length===0)return;const D=`${typeof window<"u"?window.location.origin:""}${ye}`;let W=_t,Y=[];if(W)try{Y=(await vm(f,W)).annotations}catch{W=null}W||(W=(await mc(f,D)).id,Ca(W),pc(ye,W));const te=new Set(Y.map(V=>V.id)),q=A.filter(V=>!te.has(V.id));if(q.length>0){const G=(await Promise.allSettled(q.map(K=>Il(f,W,{...K,sessionId:W,url:D})))).map((K,U)=>K.status==="fulfilled"?K.value:(console.warn("[Agentation] Failed to sync annotation on reconnect:",K.reason),q[U])),ee=[...Y,...G];h(ee),as(ye,ee,W)}}catch(A){console.warn("[Agentation] Failed to sync on reconnect:",A)}})()},[et,f,Oe,_t,ye]),u.useEffect(()=>{if(!n||!Oe||!e||e.length===0||w.length>0)return;const b=[];return b.push(de(()=>{y(!0)},t-200)),e.forEach((k,R)=>{const A=t+R*300;b.push(de(()=>{const P=document.querySelector(k.selector);if(!P)return;const D=P.getBoundingClientRect(),{name:W,path:Y}=Pi(P),te={id:`demo-${Date.now()}-${R}`,x:(D.left+D.width/2)/window.innerWidth*100,y:D.top+D.height/2+window.scrollY,comment:k.comment,element:W,elementPath:Y,timestamp:Date.now(),selectedText:k.selectedText,boundingBox:{x:D.left,y:D.top+window.scrollY,width:D.width,height:D.height},nearbyText:ls(P),cssClasses:is(P)};h(q=>[...q,te])},A))}),()=>{b.forEach(clearTimeout)}},[n,Oe,e,t]),u.useEffect(()=>{const b=()=>{rf(window.scrollY),sf(!0),Qo.current&&clearTimeout(Qo.current),Qo.current=de(()=>{sf(!1)},150)};return window.addEventListener("scroll",b,{passive:!0}),()=>{window.removeEventListener("scroll",b),Qo.current&&clearTimeout(Qo.current)}},[]),u.useEffect(()=>{Oe&&w.length>0?_t?as(ye,w,_t):u0(ye,w):Oe&&w.length===0&&localStorage.removeItem(Ri(ye))},[w,ye,Oe,_t]);const Nf=u.useCallback(()=>{$t||(I2(),lf(!0))},[$t]),sl=u.useCallback(()=>{$t&&(gm(),lf(!1))},[$t]),Na=u.useCallback(()=>{$t?sl():Nf()},[$t,Nf,sl]),jf=u.useCallback(()=>{if(Me.length===0)return;const b=Me[0],k=b.element,R=Me.length>1,A=Me.map(P=>P.element.getBoundingClientRect());if(R){const P={left:Math.min(...A.map(U=>U.left)),top:Math.min(...A.map(U=>U.top)),right:Math.max(...A.map(U=>U.right)),bottom:Math.max(...A.map(U=>U.bottom))},D=Me.slice(0,5).map(U=>U.name).join(", "),W=Me.length>5?` +${Me.length-5} more`:"",Y=A.map(U=>({x:U.left,y:U.top+window.scrollY,width:U.width,height:U.height})),q=Me[Me.length-1].element,V=A[A.length-1],G=V.left+V.width/2,ee=V.top+V.height/2,K=gc(q);Z({x:G/window.innerWidth*100,y:K?ee:ee+window.scrollY,clientY:ee,element:`${Me.length} elements: ${D}${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:K,elementBoundingBoxes:Y,multiSelectElements:Me.map(U=>U.element),targetElement:q,fullPath:Ll(k),accessibility:Tl(k),computedStyles:Rl(k),computedStylesObj:Pl(k),nearbyElements:jl(k),cssClasses:is(k),nearbyText:ls(k)})}else{const P=A[0],D=gc(k);Z({x:P.left/window.innerWidth*100,y:D?P.top:P.top+window.scrollY,clientY:P.top,element:b.name,elementPath:b.path,boundingBox:{x:P.left,y:D?P.top:P.top+window.scrollY,width:P.width,height:P.height},isFixed:D,fullPath:Ll(k),accessibility:Tl(k),computedStyles:Rl(k),computedStylesObj:Pl(k),nearbyElements:jl(k),cssClasses:is(k),nearbyText:ls(k),reactComponents:b.reactComponents})}Fr([]),z(null)},[Me]);u.useEffect(()=>{x||(Z(null),Zt(null),hn(null),dr([]),z(null),af(!1),Fr([]),Jt.current={cmd:!1,shift:!1},$t&&sl())},[x,$t,sl]),u.useEffect(()=>()=>{gm()},[]),u.useEffect(()=>{if(!x)return;const b=document.createElement("style");return b.id="feedback-cursor-styles",b.textContent=`
|
|
2393
|
+
body * {
|
|
2394
|
+
cursor: crosshair !important;
|
|
2395
|
+
}
|
|
2396
|
+
body p, body span, body h1, body h2, body h3, body h4, body h5, body h6,
|
|
2397
|
+
body li, body td, body th, body label, body blockquote, body figcaption,
|
|
2398
|
+
body caption, body legend, body dt, body dd, body pre, body code,
|
|
2399
|
+
body em, body strong, body b, body i, body u, body s, body a,
|
|
2400
|
+
body time, body address, body cite, body q, body abbr, body dfn,
|
|
2401
|
+
body mark, body small, body sub, body sup, body [contenteditable],
|
|
2402
|
+
body p *, body span *, body h1 *, body h2 *, body h3 *, body h4 *,
|
|
2403
|
+
body h5 *, body h6 *, body li *, body a *, body label *, body pre *,
|
|
2404
|
+
body code *, body blockquote *, body [contenteditable] * {
|
|
2405
|
+
cursor: text !important;
|
|
2406
|
+
}
|
|
2407
|
+
[data-feedback-toolbar], [data-feedback-toolbar] * {
|
|
2408
|
+
cursor: default !important;
|
|
2409
|
+
}
|
|
2410
|
+
[data-feedback-toolbar] textarea,
|
|
2411
|
+
[data-feedback-toolbar] input[type="text"],
|
|
2412
|
+
[data-feedback-toolbar] input[type="url"] {
|
|
2413
|
+
cursor: text !important;
|
|
2414
|
+
}
|
|
2415
|
+
[data-feedback-toolbar] button,
|
|
2416
|
+
[data-feedback-toolbar] button *,
|
|
2417
|
+
[data-feedback-toolbar] label,
|
|
2418
|
+
[data-feedback-toolbar] label *,
|
|
2419
|
+
[data-feedback-toolbar] a,
|
|
2420
|
+
[data-feedback-toolbar] a *,
|
|
2421
|
+
[data-feedback-toolbar] [role="button"],
|
|
2422
|
+
[data-feedback-toolbar] [role="button"] * {
|
|
2423
|
+
cursor: pointer !important;
|
|
2424
|
+
}
|
|
2425
|
+
[data-annotation-marker], [data-annotation-marker] * {
|
|
2426
|
+
cursor: pointer !important;
|
|
2427
|
+
}
|
|
2428
|
+
`,document.head.appendChild(b),()=>{const k=document.getElementById("feedback-cursor-styles");k&&k.remove()}},[x]),u.useEffect(()=>{if(!x||L)return;const b=k=>{const R=k.composedPath()[0]||k.target;if(it(R,"[data-feedback-toolbar]")){z(null);return}const A=Qr(k.clientX,k.clientY);if(!A||it(A,"[data-feedback-toolbar]")){z(null);return}const{name:P,elementName:D,path:W,reactComponents:Y}=_c(A,_n),te=A.getBoundingClientRect();z({element:P,elementName:D,elementPath:W,rect:te,reactComponents:Y}),X({x:k.clientX,y:k.clientY})};return document.addEventListener("mousemove",b),()=>document.removeEventListener("mousemove",b)},[x,L,_n]),u.useEffect(()=>{if(!x)return;const b=k=>{if(rl.current){rl.current=!1;return}const R=k.composedPath()[0]||k.target;if(it(R,"[data-feedback-toolbar]")||it(R,"[data-annotation-popup]")||it(R,"[data-annotation-marker]"))return;if(k.metaKey&&k.shiftKey&&!L&&!re){k.preventDefault(),k.stopPropagation();const Le=Qr(k.clientX,k.clientY);if(!Le)return;const gt=Le.getBoundingClientRect(),{name:lt,path:Pt,reactComponents:ue}=_c(Le,_n),ae=Me.findIndex(He=>He.element===Le);ae>=0?Fr(He=>He.filter(($e,Mn)=>Mn!==ae)):Fr(He=>[...He,{element:Le,rect:gt,name:lt,path:Pt,reactComponents:ue??void 0}]);return}const A=it(R,"button, a, input, select, textarea, [role='button'], [onclick]");if(F.blockInteractions&&A&&(k.preventDefault(),k.stopPropagation()),L){if(A&&!F.blockInteractions)return;k.preventDefault(),Cf.current?.shake();return}if(re){if(A&&!F.blockInteractions)return;k.preventDefault(),kf.current?.shake();return}k.preventDefault();const P=Qr(k.clientX,k.clientY);if(!P)return;const{name:D,path:W,reactComponents:Y}=_c(P,_n),te=P.getBoundingClientRect(),q=k.clientX/window.innerWidth*100,V=gc(P),G=V?k.clientY:k.clientY+window.scrollY,ee=window.getSelection();let K;ee&&ee.toString().trim().length>0&&(K=ee.toString().trim().slice(0,500));const U=Pl(P),jt=Rl(P);Z({x:q,y:G,clientY:k.clientY,element:D,elementPath:W,selectedText:K,boundingBox:{x:te.left,y:V?te.top:te.top+window.scrollY,width:te.width,height:te.height},nearbyText:ls(P),cssClasses:is(P),isFixed:V,fullPath:Ll(P),accessibility:Tl(P),computedStyles:jt,computedStylesObj:U,nearbyElements:jl(P),reactComponents:Y??void 0,targetElement:P}),z(null)};return document.addEventListener("click",b,!0),()=>document.removeEventListener("click",b,!0)},[x,L,re,F.blockInteractions,_n,Me]),u.useEffect(()=>{if(!x)return;const b=A=>{A.key==="Meta"&&(Jt.current.cmd=!0),A.key==="Shift"&&(Jt.current.shift=!0)},k=A=>{const P=Jt.current.cmd&&Jt.current.shift;A.key==="Meta"&&(Jt.current.cmd=!1),A.key==="Shift"&&(Jt.current.shift=!1);const D=Jt.current.cmd&&Jt.current.shift;P&&!D&&Me.length>0&&jf()},R=()=>{Jt.current={cmd:!1,shift:!1},Fr([])};return document.addEventListener("keydown",b),document.addEventListener("keyup",k),window.addEventListener("blur",R),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",k),window.removeEventListener("blur",R)}},[x,Me,jf]),u.useEffect(()=>{if(!x||L)return;const b=k=>{const R=k.composedPath()[0]||k.target;it(R,"[data-feedback-toolbar]")||it(R,"[data-annotation-marker]")||it(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||(Ur.current={x:k.clientX,y:k.clientY})};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[x,L]),u.useEffect(()=>{if(!x||L)return;const b=k=>{if(!Ur.current)return;const R=k.clientX-Ur.current.x,A=k.clientY-Ur.current.y,P=R*R+A*A,D=Ea*Ea;if(!yn&&P>=D&&(qt.current=Ur.current,xf(!0)),(yn||P>=D)&&qt.current){if(Vo.current){const ue=Math.min(qt.current.x,k.clientX),ae=Math.min(qt.current.y,k.clientY),He=Math.abs(k.clientX-qt.current.x),$e=Math.abs(k.clientY-qt.current.y);Vo.current.style.transform=`translate(${ue}px, ${ae}px)`,Vo.current.style.width=`${He}px`,Vo.current.style.height=`${$e}px`}const W=Date.now();if(W-wf.current<My)return;wf.current=W;const Y=qt.current.x,te=qt.current.y,q=Math.min(Y,k.clientX),V=Math.min(te,k.clientY),G=Math.max(Y,k.clientX),ee=Math.max(te,k.clientY),K=(q+G)/2,U=(V+ee)/2,jt=new Set,Le=[[q,V],[G,V],[q,ee],[G,ee],[K,U],[K,V],[K,ee],[q,U],[G,U]];for(const[ue,ae]of Le){const He=document.elementsFromPoint(ue,ae);for(const $e of He)$e instanceof HTMLElement&&jt.add($e)}const gt=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 ue of gt)if(ue instanceof HTMLElement){const ae=ue.getBoundingClientRect(),He=ae.left+ae.width/2,$e=ae.top+ae.height/2,Mn=He>=q&&He<=G&&$e>=V&&$e<=ee,vn=Math.min(ae.right,G)-Math.max(ae.left,q),Tf=Math.min(ae.bottom,ee)-Math.max(ae.top,V),Wy=vn>0&&Tf>0?vn*Tf:0,Lf=ae.width*ae.height,Hy=Lf>0?Wy/Lf:0;(Mn||Hy>.5)&&jt.add(ue)}const lt=[],Pt=new Set(["BUTTON","A","INPUT","IMG","P","H1","H2","H3","H4","H5","H6","LI","LABEL","TD","TH","SECTION","ARTICLE","ASIDE","NAV"]);for(const ue of jt){if(it(ue,"[data-feedback-toolbar]")||it(ue,"[data-annotation-marker]"))continue;const ae=ue.getBoundingClientRect();if(!(ae.width>window.innerWidth*.8&&ae.height>window.innerHeight*.5)&&!(ae.width<10||ae.height<10)&&ae.left<G&&ae.right>q&&ae.top<ee&&ae.bottom>V){const He=ue.tagName;let $e=Pt.has(He);if(!$e&&(He==="DIV"||He==="SPAN")){const Mn=ue.textContent&&ue.textContent.trim().length>0,vn=ue.onclick!==null||ue.getAttribute("role")==="button"||ue.getAttribute("role")==="link"||ue.classList.contains("clickable")||ue.hasAttribute("data-clickable");(Mn||vn)&&!ue.querySelector("p, h1, h2, h3, h4, h5, h6, button, a")&&($e=!0)}if($e){let Mn=!1;for(const vn of lt)if(vn.left<=ae.left&&vn.right>=ae.right&&vn.top<=ae.top&&vn.bottom>=ae.bottom){Mn=!0;break}Mn||lt.push(ae)}}}if(Xo.current){const ue=Xo.current;for(;ue.children.length>lt.length;)ue.removeChild(ue.lastChild);lt.forEach((ae,He)=>{let $e=ue.children[He];$e||($e=document.createElement("div"),$e.className=C.selectedElementHighlight,ue.appendChild($e)),$e.style.transform=`translate(${ae.left}px, ${ae.top}px)`,$e.style.width=`${ae.width}px`,$e.style.height=`${ae.height}px`})}}};return document.addEventListener("mousemove",b,{passive:!0}),()=>document.removeEventListener("mousemove",b)},[x,L,yn,Ea]),u.useEffect(()=>{if(!x)return;const b=k=>{const R=yn,A=qt.current;if(yn&&A){rl.current=!0;const P=Math.min(A.x,k.clientX),D=Math.min(A.y,k.clientY),W=Math.max(A.x,k.clientX),Y=Math.max(A.y,k.clientY),te=[];document.querySelectorAll("button, a, input, img, p, h1, h2, h3, h4, h5, h6, li, label, td, th").forEach(K=>{if(!(K instanceof HTMLElement)||it(K,"[data-feedback-toolbar]")||it(K,"[data-annotation-marker]"))return;const U=K.getBoundingClientRect();U.width>window.innerWidth*.8&&U.height>window.innerHeight*.5||U.width<10||U.height<10||U.left<W&&U.right>P&&U.top<Y&&U.bottom>D&&te.push({element:K,rect:U})});const V=te.filter(({element:K})=>!te.some(({element:U})=>U!==K&&K.contains(U))),G=k.clientX/window.innerWidth*100,ee=k.clientY+window.scrollY;if(V.length>0){const K=V.reduce((Pt,{rect:ue})=>({left:Math.min(Pt.left,ue.left),top:Math.min(Pt.top,ue.top),right:Math.max(Pt.right,ue.right),bottom:Math.max(Pt.bottom,ue.bottom)}),{left:1/0,top:1/0,right:-1/0,bottom:-1/0}),U=V.slice(0,5).map(({element:Pt})=>Pi(Pt).name).join(", "),jt=V.length>5?` +${V.length-5} more`:"",Le=V[0].element,gt=Pl(Le),lt=Rl(Le);Z({x:G,y:ee,clientY:k.clientY,element:`${V.length} elements: ${U}${jt}`,elementPath:"multi-select",boundingBox:{x:K.left,y:K.top+window.scrollY,width:K.right-K.left,height:K.bottom-K.top},isMultiSelect:!0,fullPath:Ll(Le),accessibility:Tl(Le),computedStyles:lt,computedStylesObj:gt,nearbyElements:jl(Le),cssClasses:is(Le),nearbyText:ls(Le)})}else{const K=Math.abs(W-P),U=Math.abs(Y-D);K>20&&U>20&&Z({x:G,y:ee,clientY:k.clientY,element:"Area selection",elementPath:`region at (${Math.round(P)}, ${Math.round(D)})`,boundingBox:{x:P,y:D+window.scrollY,width:K,height:U},isMultiSelect:!0})}z(null)}else R&&(rl.current=!0);Ur.current=null,qt.current=null,xf(!1),Xo.current&&(Xo.current.innerHTML="")};return document.addEventListener("mouseup",b),()=>document.removeEventListener("mouseup",b)},[x,yn]);const en=u.useCallback(async(b,k,R)=>{const A=F.webhookUrl||g;if(!A||!F.webhooksEnabled&&!R)return!1;try{return(await fetch(A,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:b,timestamp:Date.now(),url:typeof window<"u"?window.location.href:void 0,...k})})).ok}catch(P){return console.warn("[Agentation] Webhook failed:",P),!1}},[g,F.webhookUrl,F.webhooksEnabled]),$y=u.useCallback(b=>{if(!L)return;const k={id:Date.now().toString(),x:L.x,y:L.y,comment:b,element:L.element,elementPath:L.elementPath,timestamp:Date.now(),selectedText:L.selectedText,boundingBox:L.boundingBox,nearbyText:L.nearbyText,cssClasses:L.cssClasses,isMultiSelect:L.isMultiSelect,isFixed:L.isFixed,fullPath:L.fullPath,accessibility:L.accessibility,computedStyles:L.computedStyles,nearbyElements:L.nearbyElements,reactComponents:L.reactComponents,elementBoundingBoxes:L.elementBoundingBoxes,...f&&_t?{sessionId:_t,url:typeof window<"u"?window.location.href:void 0,status:"pending"}:{}};h(R=>[...R,k]),ol.current=k.id,de(()=>{ol.current=null},300),de(()=>{Uo(R=>new Set(R).add(k.id))},250),r?.(k),en("annotation.add",{annotation:k}),nl(!0),de(()=>{Z(null),nl(!1)},150),window.getSelection()?.removeAllRanges(),f&&_t&&Il(f,_t,k).then(R=>{R.id!==k.id&&(h(A=>A.map(P=>P.id===k.id?{...P,id:R.id}:P)),Uo(A=>{const P=new Set(A);return P.delete(k.id),P.add(R.id),P}))}).catch(R=>{console.warn("[Agentation] Failed to sync annotation:",R)})},[L,r,en,f,_t]),Dy=u.useCallback(()=>{nl(!0),de(()=>{Z(null),nl(!1)},150)},[]),ja=u.useCallback(b=>{const k=w.findIndex(A=>A.id===b),R=w[k];re?.id===b&&(Hr(!0),de(()=>{Zt(null),hn(null),dr([]),Hr(!1)},150)),qs(b),tl(A=>new Set(A).add(b)),R&&(o?.(R),en("annotation.delete",{annotation:R})),f&&xm(f,b).catch(A=>{console.warn("[Agentation] Failed to delete annotation from server:",A)}),de(()=>{h(A=>A.filter(P=>P.id!==b)),tl(A=>{const P=new Set(A);return P.delete(b),P}),qs(null),k<w.length-1&&(el(k),de(()=>el(null),200))},150)},[w,re,o,en,f]),ll=u.useCallback(b=>{if(Zt(b),Kt(null),ht(null),Ge([]),b.elementBoundingBoxes?.length){const k=[];for(const R of b.elementBoundingBoxes){const A=R.x+R.width/2,P=R.y+R.height/2-window.scrollY,D=Qr(A,P);D&&k.push(D)}dr(k),hn(null)}else if(b.boundingBox){const k=b.boundingBox,R=k.x+k.width/2,A=b.isFixed?k.y+k.height/2:k.y+k.height/2-window.scrollY,P=Qr(R,A);if(P){const D=P.getBoundingClientRect(),W=D.width/k.width,Y=D.height/k.height;W<.5||Y<.5?hn(null):hn(P)}else hn(null);dr([])}else hn(null),dr([])},[]),il=u.useCallback(b=>{if(!b){Kt(null),ht(null),Ge([]);return}if(Kt(b.id),b.elementBoundingBoxes?.length){const k=[];for(const R of b.elementBoundingBoxes){const A=R.x+R.width/2,P=R.y+R.height/2-window.scrollY,W=document.elementsFromPoint(A,P).find(Y=>!Y.closest("[data-annotation-marker]")&&!Y.closest("[data-agentation-root]"));W&&k.push(W)}Ge(k),ht(null)}else if(b.boundingBox){const k=b.boundingBox,R=k.x+k.width/2,A=b.isFixed?k.y+k.height/2:k.y+k.height/2-window.scrollY,P=Qr(R,A);if(P){const D=P.getBoundingClientRect(),W=D.width/k.width,Y=D.height/k.height;W<.5||Y<.5?ht(null):ht(P)}else ht(null);Ge([])}else ht(null),Ge([])},[]),zy=u.useCallback(b=>{if(!re)return;const k={...re,comment:b};h(R=>R.map(A=>A.id===re.id?k:A)),s?.(k),en("annotation.update",{annotation:k}),f&&Y2(f,re.id,{comment:b}).catch(R=>{console.warn("[Agentation] Failed to update annotation on server:",R)}),Hr(!0),de(()=>{Zt(null),hn(null),dr([]),Hr(!1)},150)},[re,s,en,f]),Fy=u.useCallback(()=>{Hr(!0),de(()=>{Zt(null),hn(null),dr([]),Hr(!1)},150)},[]),mr=u.useCallback(()=>{const b=w.length;if(b===0)return;l?.(w),en("annotations.clear",{annotations:w}),f&&Promise.all(w.map(R=>xm(f,R.id).catch(A=>{console.warn("[Agentation] Failed to delete annotation from server:",A)}))),J(!0),$(!0);const k=b*30+200;de(()=>{h([]),Uo(new Set),localStorage.removeItem(Ri(ye)),J(!1)},k),de(()=>$(!1),1500)},[ye,w,l,en,f]),Pa=u.useCallback(async()=>{const b=typeof window<"u"?window.location.pathname+window.location.search+window.location.hash:ye,k=Sm(w,b,F.outputDetail,_n);if(k){if(d)try{await navigator.clipboard.writeText(k)}catch{}i?.(k),ge(!0),de(()=>ge(!1),2e3),F.autoClearAfterCopy&&de(()=>mr(),500)}},[w,ye,F.outputDetail,_n,F.autoClearAfterCopy,mr,d,i]),Ra=u.useCallback(async()=>{const b=typeof window<"u"?window.location.pathname+window.location.search+window.location.hash:ye,k=Sm(w,b,F.outputDetail,_n);if(!k)return;c&&c(k,w),pe("sending"),await new Promise(A=>de(A,150));const R=await en("submit",{output:k,annotations:w},!0);pe(R?"sent":"failed"),de(()=>pe("idle"),2500),R&&F.autoClearAfterCopy&&de(()=>mr(),500)},[c,en,w,ye,F.outputDetail,_n,F.autoClearAfterCopy,mr]);u.useEffect(()=>{if(!Wr)return;const b=10,k=A=>{const P=A.clientX-Wr.x,D=A.clientY-Wr.y,W=Math.sqrt(P*P+D*D);if(!gn&&W>b&&_f(!0),gn||W>b){let Y=Wr.toolbarX+P,te=Wr.toolbarY+D;const q=20,V=297,G=44,K=V-(x?et==="connected"?297:257:44),U=q-K,jt=window.innerWidth-q-V;Y=Math.max(U,Math.min(jt,Y)),te=Math.max(q,Math.min(window.innerHeight-G-q,te)),ka({x:Y,y:te})}},R=()=>{gn&&(Sa.current=!0),_f(!1),gf(null)};return document.addEventListener("mousemove",k),document.addEventListener("mouseup",R),()=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",R)}},[Wr,gn,x,et]);const By=u.useCallback(b=>{if(b.target.closest("button")||b.target.closest(`.${C.settingsPanel}`))return;const k=b.currentTarget.parentElement;if(!k)return;const R=k.getBoundingClientRect(),A=Ne?.x??R.left,P=Ne?.y??R.top,D=(Math.random()-.5)*10;Ay(D),gf({x:b.clientX,y:b.clientY,toolbarX:A,toolbarY:P})},[Ne]);if(u.useEffect(()=>{if(!Ne)return;const b=()=>{let P=Ne.x,D=Ne.y;const te=20-(297-(x?et==="connected"?297:257:44)),q=window.innerWidth-20-297;P=Math.max(te,Math.min(q,P)),D=Math.max(20,Math.min(window.innerHeight-44-20,D)),(P!==Ne.x||D!==Ne.y)&&ka({x:P,y:D})};return b(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[Ne,x,et]),u.useEffect(()=>{const b=k=>{const R=k.target,A=R.tagName==="INPUT"||R.tagName==="TEXTAREA"||R.isContentEditable;if(k.key==="Escape"){if(Me.length>0){Fr([]);return}L||x&&(st(),y(!1))}if((k.metaKey||k.ctrlKey)&&k.shiftKey&&(k.key==="f"||k.key==="F")){k.preventDefault(),st(),y(P=>!P);return}if(!(A||k.metaKey||k.ctrlKey)&&((k.key==="p"||k.key==="P")&&(k.preventDefault(),st(),Na()),(k.key==="h"||k.key==="H")&&w.length>0&&(k.preventDefault(),st(),v(P=>!P)),(k.key==="c"||k.key==="C")&&w.length>0&&(k.preventDefault(),st(),Pa()),(k.key==="x"||k.key==="X")&&w.length>0&&(k.preventDefault(),st(),mr()),k.key==="s"||k.key==="S")){const P=nn(F.webhookUrl)||nn(g||"");w.length>0&&P&&Q==="idle"&&(k.preventDefault(),st(),Ra())}};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[x,L,w.length,F.webhookUrl,g,Q,Ra,Na,Pa,mr,Me]),!Oe)return null;const Yr=w.length>0,al=w.filter(b=>!vf.has(b.id)),Pf=w.filter(b=>vf.has(b.id)),Rf=b=>{const D=b.x/100*window.innerWidth,W=typeof b.y=="string"?parseFloat(b.y):b.y,Y={};window.innerHeight-W-22-10<80&&(Y.top="auto",Y.bottom="calc(100% + 10px)");const q=D-200/2,V=10;if(q<V){const G=V-q;Y.left=`calc(50% + ${G}px)`}else if(q+200>window.innerWidth-V){const G=q+200-(window.innerWidth-V);Y.left=`calc(50% - ${G}px)`}return Y};return Ro.createPortal(a.jsxs(a.Fragment,{children:[a.jsx("div",{className:C.toolbar,"data-feedback-toolbar":!0,style:Ne?{left:Ne.x,top:Ne.y,right:"auto",bottom:"auto"}:void 0,children:a.jsxs("div",{className:`${C.toolbarContainer} ${oe?"":C.light} ${x?C.expanded:C.collapsed} ${pf?C.entrance:""} ${gn?C.dragging:""} ${!F.webhooksEnabled&&(nn(F.webhookUrl)||nn(g||""))?C.serverConnected:""}`,onClick:x?void 0:b=>{if(Sa.current){Sa.current=!1,b.preventDefault();return}y(!0)},onMouseDown:By,role:x?void 0:"button",tabIndex:x?-1:0,title:x?void 0:"Start feedback mode",style:{...gn&&{transform:`scale(1.05) rotate(${Iy}deg)`,cursor:"grabbing"}},children:[a.jsxs("div",{className:`${C.toggleContent} ${x?C.hidden:C.visible}`,children:[a.jsx(y2,{size:24}),Yr&&a.jsx("span",{className:`${C.badge} ${x?C.fadeOut:""} ${pf?C.entrance:""}`,style:{backgroundColor:F.annotationColor},children:w.length})]}),a.jsxs("div",{className:`${C.controlsContent} ${x?C.visible:C.hidden} ${Ne&&Ne.y<100?C.tooltipBelow:""} ${Ty||Wo?C.tooltipsHidden:""}`,onMouseLeave:Ly,children:[a.jsxs("div",{className:`${C.buttonWrapper} ${Ne&&Ne.x<120?C.buttonWrapperAlignLeft:""}`,children:[a.jsx("button",{className:`${C.controlButton} ${oe?"":C.light}`,onClick:b=>{b.stopPropagation(),st(),Na()},"data-active":$t,children:a.jsx(b2,{size:24,isPaused:$t})}),a.jsxs("span",{className:C.buttonTooltip,children:[$t?"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} ${oe?"":C.light}`,onClick:b=>{b.stopPropagation(),st(),v(!_)},disabled:!Yr,children:a.jsx(w2,{size:24,isOpen:_})}),a.jsxs("span",{className:C.buttonTooltip,children:[_?"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} ${oe?"":C.light} ${se?C.statusShowing:""}`,onClick:b=>{b.stopPropagation(),st(),Pa()},disabled:!Yr,"data-active":se,children:a.jsx(v2,{size:24,copied:se})}),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} ${!F.webhooksEnabled&&(nn(F.webhookUrl)||nn(g||""))?C.sendButtonVisible:""}`,children:[a.jsxs("button",{className:`${C.controlButton} ${oe?"":C.light} ${Q==="sent"||Q==="failed"?C.statusShowing:""}`,onClick:b=>{b.stopPropagation(),st(),Ra()},disabled:!Yr||!nn(F.webhookUrl)&&!nn(g||"")||Q==="sending","data-no-hover":Q==="sent"||Q==="failed",tabIndex:nn(F.webhookUrl)||nn(g||"")?0:-1,children:[a.jsx(x2,{size:24,state:Q}),Yr&&Q==="idle"&&a.jsx("span",{className:`${C.buttonBadge} ${oe?"":C.light}`,style:{backgroundColor:F.annotationColor},children:w.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} ${oe?"":C.light}`,onClick:b=>{b.stopPropagation(),st(),mr()},disabled:!Yr,"data-danger":!0,children:a.jsx(k2,{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} ${oe?"":C.light}`,onClick:b=>{b.stopPropagation(),st(),af(!Wo)},children:a.jsx(C2,{size:24})}),f&&et!=="disconnected"&&a.jsx("span",{className:`${C.mcpIndicator} ${oe?"":C.light} ${C[et]} ${Wo?C.hidden:""}`,title:et==="connected"?"MCP Connected":"MCP Connecting..."}),a.jsx("span",{className:C.buttonTooltip,children:"Settings"})]}),a.jsx("div",{className:`${C.divider} ${oe?"":C.light}`}),a.jsxs("div",{className:`${C.buttonWrapper} ${Ne&&typeof window<"u"&&Ne.x>window.innerWidth-120?C.buttonWrapperAlignRight:""}`,children:[a.jsx("button",{className:`${C.controlButton} ${oe?"":C.light}`,onClick:b=>{b.stopPropagation(),st(),y(!1)},children:a.jsx(S2,{size:24})}),a.jsxs("span",{className:C.buttonTooltip,children:["Exit",a.jsx("span",{className:C.shortcut,children:"Esc"})]})]})]}),a.jsx("div",{className:`${C.settingsPanel} ${oe?C.dark:C.light} ${Ry?C.enter:C.exit}`,onClick:b=>b.stopPropagation(),style:Ne&&Ne.y<230?{bottom:"auto",top:"calc(100% + 0.5rem)"}:void 0,children:a.jsxs("div",{className:`${C.settingsPanelContainer} ${uf?C.transitioning:""}`,children:[a.jsxs("div",{className:`${C.settingsPage} ${xa==="automations"?C.slideLeft:""}`,children:[a.jsxs("div",{className:C.settingsHeader,children:[a.jsxs("span",{className:C.settingsBrand,children:[a.jsx("span",{className:C.settingsBrandSlash,style:{color:F.annotationColor,transition:"color 0.2s ease"},children:"/"}),"agentation"]}),a.jsxs("span",{className:C.settingsVersion,children:["v","2.2.1"]}),a.jsx("button",{className:C.themeToggle,onClick:()=>ff(!oe),title:oe?"Switch to light mode":"Switch to dark mode",children:a.jsx("span",{className:C.themeIconWrapper,children:a.jsx("span",{className:C.themeIcon,children:oe?a.jsx(E2,{size:20}):a.jsx(N2,{size:20})},oe?"sun":"moon")})})]}),a.jsxs("div",{className:C.settingsSection,children:[a.jsxs("div",{className:C.settingsRow,children:[a.jsxs("div",{className:`${C.settingsLabel} ${oe?"":C.light}`,children:["Output Detail",a.jsx(Ho,{content:"Controls how much detail is included in the copied output",children:a.jsx("span",{className:C.helpIcon,children:a.jsx(ss,{size:20})})})]}),a.jsxs("button",{className:`${C.cycleButton} ${oe?"":C.light}`,onClick:()=>{const k=(us.findIndex(R=>R.value===F.outputDetail)+1)%us.length;On(R=>({...R,outputDetail:us[k].value}))},children:[a.jsx("span",{className:C.cycleButtonText,children:us.find(b=>b.value===F.outputDetail)?.label},F.outputDetail),a.jsx("span",{className:C.cycleDots,children:us.map((b,k)=>a.jsx("span",{className:`${C.cycleDot} ${oe?"":C.light} ${F.outputDetail===b.value?C.active:""}`},b.value))})]})]}),a.jsxs("div",{className:`${C.settingsRow} ${C.settingsRowMarginTop} ${Br?"":C.settingsRowDisabled}`,children:[a.jsxs("div",{className:`${C.settingsLabel} ${oe?"":C.light}`,children:["React Components",a.jsx(Ho,{content:Br?"Include React component names in annotations":"Disabled — production builds minify component names, making detection unreliable. Use on localhost in development mode.",children:a.jsx("span",{className:C.helpIcon,children:a.jsx(ss,{size:20})})})]}),a.jsxs("label",{className:`${C.toggleSwitch} ${Br?"":C.disabled}`,children:[a.jsx("input",{type:"checkbox",checked:Br&&F.reactEnabled,disabled:!Br,onChange:()=>On(b=>({...b,reactEnabled:!b.reactEnabled}))}),a.jsx("span",{className:C.toggleSlider})]})]})]}),a.jsxs("div",{className:C.settingsSection,children:[a.jsx("div",{className:`${C.settingsLabel} ${C.settingsLabelMarker} ${oe?"":C.light}`,children:"Marker Colour"}),a.jsx("div",{className:C.colorOptions,children:aC.map(b=>a.jsx("div",{role:"button",onClick:()=>On(k=>({...k,annotationColor:b.value})),style:{borderColor:F.annotationColor===b.value?b.value:"transparent"},className:`${C.colorOptionRing} ${F.annotationColor===b.value?C.selected:""}`,children:a.jsx("div",{className:`${C.colorOption} ${F.annotationColor===b.value?C.selected:""}`,style:{backgroundColor:b.value},title:b.label})},b.value))})]}),a.jsxs("div",{className:C.settingsSection,children:[a.jsxs("label",{className:C.settingsToggle,children:[a.jsx("input",{type:"checkbox",id:"autoClearAfterCopy",checked:F.autoClearAfterCopy,onChange:b=>On(k=>({...k,autoClearAfterCopy:b.target.checked}))}),a.jsx("label",{className:`${C.customCheckbox} ${F.autoClearAfterCopy?C.checked:""}`,htmlFor:"autoClearAfterCopy",children:F.autoClearAfterCopy&&a.jsx(hm,{size:14})}),a.jsxs("span",{className:`${C.toggleLabel} ${oe?"":C.light}`,children:["Clear on copy/send",a.jsx(Ho,{content:"Automatically clear annotations after copying",children:a.jsx("span",{className:`${C.helpIcon} ${C.helpIconNudge2}`,children:a.jsx(ss,{size:20})})})]})]}),a.jsxs("label",{className:`${C.settingsToggle} ${C.settingsToggleMarginBottom}`,children:[a.jsx("input",{type:"checkbox",id:"blockInteractions",checked:F.blockInteractions,onChange:b=>On(k=>({...k,blockInteractions:b.target.checked}))}),a.jsx("label",{className:`${C.customCheckbox} ${F.blockInteractions?C.checked:""}`,htmlFor:"blockInteractions",children:F.blockInteractions&&a.jsx(hm,{size:14})}),a.jsx("span",{className:`${C.toggleLabel} ${oe?"":C.light}`,children:"Block page interactions"})]})]}),a.jsx("div",{className:`${C.settingsSection} ${C.settingsSectionExtraPadding}`,children:a.jsxs("button",{className:`${C.settingsNavLink} ${oe?"":C.light}`,onClick:()=>wa("automations"),children:[a.jsx("span",{children:"Manage MCP & Webhooks"}),a.jsxs("span",{className:C.settingsNavLinkRight,children:[f&&et!=="disconnected"&&a.jsx("span",{className:`${C.mcpNavIndicator} ${C[et]}`}),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} ${xa==="automations"?C.slideIn:""}`,children:[a.jsxs("button",{className:`${C.settingsBackButton} ${oe?"":C.light}`,onClick:()=>wa("main"),children:[a.jsx(P2,{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} ${oe?"":C.light}`,children:["MCP Connection",a.jsx(Ho,{content:"Connect via Model Context Protocol to let AI agents like Claude Code receive annotations in real-time.",children:a.jsx("span",{className:`${C.helpIcon} ${C.helpIconNudgeDown}`,children:a.jsx(ss,{size:20})})})]}),f&&a.jsx("div",{className:`${C.mcpStatusDot} ${C[et]}`,title:et==="connected"?"Connected":et==="connecting"?"Connecting...":"Disconnected"})]}),a.jsxs("p",{className:`${C.automationDescription} ${oe?"":C.light}`,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} ${oe?"":C.light}`,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} ${oe?"":C.light}`,children:["Webhooks",a.jsx(Ho,{content:"Send annotation data to any URL endpoint when annotations change. Useful for custom integrations.",children:a.jsx("span",{className:`${C.helpIcon} ${C.helpIconNoNudge}`,children:a.jsx(ss,{size:20})})})]}),a.jsxs("div",{className:C.autoSendRow,children:[a.jsx("span",{className:`${C.autoSendLabel} ${oe?"":C.light} ${F.webhooksEnabled?C.active:""}`,children:"Auto-Send"}),a.jsxs("label",{className:`${C.toggleSwitch} ${F.webhookUrl?"":C.disabled}`,children:[a.jsx("input",{type:"checkbox",checked:F.webhooksEnabled,disabled:!F.webhookUrl,onChange:()=>On(b=>({...b,webhooksEnabled:!b.webhooksEnabled}))}),a.jsx("span",{className:C.toggleSlider})]})]})]}),a.jsx("p",{className:`${C.automationDescription} ${oe?"":C.light}`,children:"The webhook URL will receive live annotation changes and annotation data."}),a.jsx("textarea",{className:`${C.webhookUrlInput} ${oe?"":C.light}`,placeholder:"Webhook URL",value:F.webhookUrl,style:{"--marker-color":F.annotationColor},onChange:b=>On(k=>({...k,webhookUrl:b.target.value}))})]})]})]})})]})}),a.jsxs("div",{className:C.markersLayer,"data-feedback-toolbar":!0,children:[S&&al.filter(b=>!b.isFixed).map((b,k)=>{const R=!N&&we===b.id,A=Bo===b.id,P=(R||A)&&!re,D=b.isMultiSelect,W=D?"#34C759":F.annotationColor,Y=w.findIndex(G=>G.id===b.id),te=!yf.has(b.id),q=N?C.exit:H?C.clearing:te?C.enter:"",V=P&&F.markerClickBehavior==="delete";return a.jsxs("div",{className:`${C.marker} ${D?C.multiSelect:""} ${q} ${V?C.hovered:""}`,"data-annotation-marker":!0,style:{left:`${b.x}%`,top:b.y,backgroundColor:V?void 0:W,animationDelay:N?`${(al.length-1-k)*20}ms`:`${k*20}ms`},onMouseEnter:()=>!N&&b.id!==ol.current&&il(b),onMouseLeave:()=>il(null),onClick:G=>{G.stopPropagation(),N||(F.markerClickBehavior==="delete"?ja(b.id):ll(b))},onContextMenu:G=>{F.markerClickBehavior==="delete"&&(G.preventDefault(),G.stopPropagation(),N||ll(b))},children:[P?V?a.jsx(cc,{size:D?18:16}):a.jsx(_m,{size:16}):a.jsx("span",{className:zr!==null&&Y>=zr?C.renumber:void 0,children:Y+1}),R&&!re&&a.jsxs("div",{className:`${C.markerTooltip} ${oe?"":C.light} ${C.enter}`,style:Rf(b),children:[a.jsxs("span",{className:C.markerQuote,children:[b.element,b.selectedText&&` "${b.selectedText.slice(0,30)}${b.selectedText.length>30?"...":""}"`]}),a.jsx("span",{className:C.markerNote,children:b.comment})]})]},b.id)}),S&&!N&&Pf.filter(b=>!b.isFixed).map(b=>{const k=b.isMultiSelect;return a.jsx("div",{className:`${C.marker} ${C.hovered} ${k?C.multiSelect:""} ${C.exit}`,"data-annotation-marker":!0,style:{left:`${b.x}%`,top:b.y},children:a.jsx(cc,{size:k?12:10})},b.id)})]}),a.jsxs("div",{className:C.fixedMarkersLayer,"data-feedback-toolbar":!0,children:[S&&al.filter(b=>b.isFixed).map((b,k)=>{const R=al.filter(ee=>ee.isFixed),A=!N&&we===b.id,P=Bo===b.id,D=(A||P)&&!re,W=b.isMultiSelect,Y=W?"#34C759":F.annotationColor,te=w.findIndex(ee=>ee.id===b.id),q=!yf.has(b.id),V=N?C.exit:H?C.clearing:q?C.enter:"",G=D&&F.markerClickBehavior==="delete";return a.jsxs("div",{className:`${C.marker} ${C.fixed} ${W?C.multiSelect:""} ${V} ${G?C.hovered:""}`,"data-annotation-marker":!0,style:{left:`${b.x}%`,top:b.y,backgroundColor:G?void 0:Y,animationDelay:N?`${(R.length-1-k)*20}ms`:`${k*20}ms`},onMouseEnter:()=>!N&&b.id!==ol.current&&il(b),onMouseLeave:()=>il(null),onClick:ee=>{ee.stopPropagation(),N||(F.markerClickBehavior==="delete"?ja(b.id):ll(b))},onContextMenu:ee=>{F.markerClickBehavior==="delete"&&(ee.preventDefault(),ee.stopPropagation(),N||ll(b))},children:[D?G?a.jsx(cc,{size:W?18:16}):a.jsx(_m,{size:16}):a.jsx("span",{className:zr!==null&&te>=zr?C.renumber:void 0,children:te+1}),A&&!re&&a.jsxs("div",{className:`${C.markerTooltip} ${oe?"":C.light} ${C.enter}`,style:Rf(b),children:[a.jsxs("span",{className:C.markerQuote,children:[b.element,b.selectedText&&` "${b.selectedText.slice(0,30)}${b.selectedText.length>30?"...":""}"`]}),a.jsx("span",{className:C.markerNote,children:b.comment})]})]},b.id)}),S&&!N&&Pf.filter(b=>b.isFixed).map(b=>{const k=b.isMultiSelect;return a.jsx("div",{className:`${C.marker} ${C.fixed} ${C.hovered} ${k?C.multiSelect:""} ${C.exit}`,"data-annotation-marker":!0,style:{left:`${b.x}%`,top:b.y},children:a.jsx(_2,{size:k?12:10})},b.id)})]}),x&&a.jsxs("div",{className:C.overlay,"data-feedback-toolbar":!0,style:L||re?{zIndex:99999}:void 0,children:[T?.rect&&!L&&!of&&!yn&&a.jsx("div",{className:`${C.hoverHighlight} ${C.enter}`,style:{left:T.rect.left,top:T.rect.top,width:T.rect.width,height:T.rect.height,borderColor:`${F.annotationColor}80`,backgroundColor:`${F.annotationColor}0A`}}),Me.filter(b=>document.contains(b.element)).map((b,k)=>{const R=b.element.getBoundingClientRect(),A=Me.length>1;return a.jsx("div",{className:A?C.multiSelectOutline:C.singleSelectOutline,style:{position:"fixed",left:R.left,top:R.top,width:R.width,height:R.height,...A?{}:{borderColor:`${F.annotationColor}99`,backgroundColor:`${F.annotationColor}0D`}}},k)}),we&&!L&&(()=>{const b=w.find(P=>P.id===we);if(!b?.boundingBox)return null;if(b.elementBoundingBoxes?.length)return Nt.length>0?Nt.filter(P=>document.contains(P)).map((P,D)=>{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-${D}`)}):b.elementBoundingBoxes.map((P,D)=>a.jsx("div",{className:`${C.multiSelectOutline} ${C.enter}`,style:{left:P.x,top:P.y-fr,width:P.width,height:P.height}},`hover-outline-${D}`));const k=mt&&document.contains(mt)?mt.getBoundingClientRect():null,R=k?{x:k.left,y:k.top,width:k.width,height:k.height}:{x:b.boundingBox.x,y:b.isFixed?b.boundingBox.y:b.boundingBox.y-fr,width:b.boundingBox.width,height:b.boundingBox.height},A=b.isMultiSelect;return a.jsx("div",{className:`${A?C.multiSelectOutline:C.singleSelectOutline} ${C.enter}`,style:{left:R.x,top:R.y,width:R.width,height:R.height,...A?{}:{borderColor:`${F.annotationColor}99`,backgroundColor:`${F.annotationColor}0D`}}})})(),T&&!L&&!of&&!yn&&a.jsxs("div",{className:`${C.hoverTooltip} ${C.enter}`,style:{left:Math.max(8,Math.min(M.x,window.innerWidth-100)),top:Math.max(M.y-(T.reactComponents?48:32),8)},children:[T.reactComponents&&a.jsx("div",{className:C.hoverReactPath,children:T.reactComponents}),a.jsx("div",{className:C.hoverElementName,children:T.elementName})]}),L&&a.jsxs(a.Fragment,{children:[L.multiSelectElements?.length?L.multiSelectElements.filter(b=>document.contains(b)).map((b,k)=>{const R=b.getBoundingClientRect();return a.jsx("div",{className:`${C.multiSelectOutline} ${Yo?C.exit:C.enter}`,style:{left:R.left,top:R.top,width:R.width,height:R.height}},`pending-multi-${k}`)}):L.targetElement&&document.contains(L.targetElement)?(()=>{const b=L.targetElement.getBoundingClientRect();return a.jsx("div",{className:`${C.singleSelectOutline} ${Yo?C.exit:C.enter}`,style:{left:b.left,top:b.top,width:b.width,height:b.height,borderColor:`${F.annotationColor}99`,backgroundColor:`${F.annotationColor}0D`}})})():L.boundingBox&&a.jsx("div",{className:`${L.isMultiSelect?C.multiSelectOutline:C.singleSelectOutline} ${Yo?C.exit:C.enter}`,style:{left:L.boundingBox.x,top:L.boundingBox.y-fr,width:L.boundingBox.width,height:L.boundingBox.height,...L.isMultiSelect?{}:{borderColor:`${F.annotationColor}99`,backgroundColor:`${F.annotationColor}0D`}}}),(()=>{const b=L.x,k=L.isFixed?L.y:L.y-fr;return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:`${C.marker} ${C.pending} ${L.isMultiSelect?C.multiSelect:""} ${Yo?C.exit:C.enter}`,style:{left:`${b}%`,top:k,backgroundColor:L.isMultiSelect?"#34C759":F.annotationColor},children:a.jsx(g2,{size:12})}),a.jsx(ym,{ref:Cf,element:L.element,selectedText:L.selectedText,computedStyles:L.computedStylesObj,placeholder:L.element==="Area selection"?"What should change in this area?":L.isMultiSelect?"Feedback for this group of elements...":"What should change?",onSubmit:$y,onCancel:Dy,isExiting:Yo,lightMode:!oe,accentColor:L.isMultiSelect?"#34C759":F.annotationColor,style:{left:Math.max(160,Math.min(window.innerWidth-160,b/100*window.innerWidth)),...k>window.innerHeight-290?{bottom:window.innerHeight-k+20}:{top:k+20}}})]})})()]}),re&&a.jsxs(a.Fragment,{children:[re.elementBoundingBoxes?.length?nf.length>0?nf.filter(b=>document.contains(b)).map((b,k)=>{const R=b.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-${k}`)}):re.elementBoundingBoxes.map((b,k)=>a.jsx("div",{className:`${C.multiSelectOutline} ${C.enter}`,style:{left:b.x,top:b.y-fr,width:b.width,height:b.height}},`edit-multi-${k}`)):(()=>{const b=va&&document.contains(va)?va.getBoundingClientRect():null,k=b?{x:b.left,y:b.top,width:b.width,height:b.height}:re.boundingBox?{x:re.boundingBox.x,y:re.isFixed?re.boundingBox.y:re.boundingBox.y-fr,width:re.boundingBox.width,height:re.boundingBox.height}:null;return k?a.jsx("div",{className:`${re.isMultiSelect?C.multiSelectOutline:C.singleSelectOutline} ${C.enter}`,style:{left:k.x,top:k.y,width:k.width,height:k.height,...re.isMultiSelect?{}:{borderColor:`${F.annotationColor}99`,backgroundColor:`${F.annotationColor}0D`}}}):null})(),a.jsx(ym,{ref:kf,element:re.element,selectedText:re.selectedText,computedStyles:F2(re.computedStyles),placeholder:"Edit your feedback...",initialValue:re.comment,submitLabel:"Save",onSubmit:zy,onCancel:Fy,onDelete:()=>ja(re.id),isExiting:Oy,lightMode:!oe,accentColor:re.isMultiSelect?"#34C759":F.annotationColor,style:(()=>{const b=re.isFixed?re.y:re.y-fr;return{left:Math.max(160,Math.min(window.innerWidth-160,re.x/100*window.innerWidth)),...b>window.innerHeight-290?{bottom:window.innerHeight-b+20}:{top:b+20}}})()})]}),yn&&a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:Vo,className:C.dragSelection}),a.jsx("div",{ref:Xo,className:C.highlightsContainer})]})]})]}),document.body)}const Em=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(g=>g(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},uC=e=>e?Em(e):Em,dC=e=>e;function fC(e,t=dC){const n=vt.useSyncExternalStore(e.subscribe,vt.useCallback(()=>t(e.getState()),[e,t]),vt.useCallback(()=>t(e.getInitialState()),[e,t]));return vt.useDebugValue(n),n}const Nm=e=>{const t=uC(e),n=r=>fC(t,r);return Object.assign(n,t),n},pC=e=>e?Nm(e):Nm,gr="/api";async function Al(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 yc(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 Wt={health:()=>Al(`${gr}/health`),workflows:()=>Al(`${gr}/workflows`),runs:(e,t)=>Al(`${gr}/workflows/${e}/runs`,t),run:e=>Al(`${gr}/runs/${e}`),cancel:e=>yc(`${gr}/runs/${e}/cancel`),retry:e=>yc(`${gr}/runs/${e}/retry`),trigger:(e,t)=>yc(`${gr}/workflows/${e}/trigger`,t)},mC=["workflow:start","workflow:complete","workflow:fail","step:start","step:complete","step:fail","step:retry"];function hC(e){const t=new EventSource("/api/events");for(const n of mC)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 _C=100,Nr=pC((e,t)=>({health:null,workflows:[],currentRuns:null,currentWorkflowId:null,currentRun:null,liveEvents:[],sidebarCollapsed:!1,toggleSidebar:()=>e(n=>({sidebarCollapsed:!n.sidebarCollapsed})),fetchHealth:async()=>{try{const n=await Wt.health();e({health:n})}catch{e({health:null})}},fetchWorkflows:async()=>{try{const n=await Wt.workflows();e({workflows:n})}catch{e({workflows:[]})}},fetchRuns:async(n,r)=>{try{const o=await Wt.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 Wt.runs(n,{cursor:r.nextCursor});e({currentRuns:{runs:[...r.runs,...o.runs],nextCursor:o.nextCursor}})}catch{}},fetchRun:async n=>{try{const r=await Wt.run(n);e({currentRun:r})}catch{e({currentRun:null})}},pushEvent:n=>{e(r=>{const o=[n,...r.liveEvents].slice(0,_C);let s=r.currentRun;return s&&n.data.runId===s.id&&Wt.run(s.id).then(l=>{l&&e({currentRun:l})}),{liveEvents:o}})},connectSSE:()=>hC(r=>{t().pushEvent(r)})}));/**
|
|
2429
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2430
|
+
*
|
|
2431
|
+
* This source code is licensed under the ISC license.
|
|
2432
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2433
|
+
*/const gC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),d0=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
2434
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2435
|
+
*
|
|
2436
|
+
* This source code is licensed under the ISC license.
|
|
2437
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2438
|
+
*/var yC={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"};/**
|
|
2439
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2440
|
+
*
|
|
2441
|
+
* This source code is licensed under the ISC license.
|
|
2442
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2443
|
+
*/const vC=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,...yC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:d0("lucide",o),...i},[...l.map(([d,f])=>u.createElement(d,f)),...Array.isArray(s)?s:[s]]));/**
|
|
2444
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2445
|
+
*
|
|
2446
|
+
* This source code is licensed under the ISC license.
|
|
2447
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2448
|
+
*/const Te=(e,t)=>{const n=u.forwardRef(({className:r,...o},s)=>u.createElement(vC,{ref:s,iconNode:t,className:d0(`lucide-${gC(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
2449
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2450
|
+
*
|
|
2451
|
+
* This source code is licensed under the ISC license.
|
|
2452
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2453
|
+
*/const Yd=Te("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
2454
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2455
|
+
*
|
|
2456
|
+
* This source code is licensed under the ISC license.
|
|
2457
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2458
|
+
*/const da=Te("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
2459
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2460
|
+
*
|
|
2461
|
+
* This source code is licensed under the ISC license.
|
|
2462
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2463
|
+
*/const xC=Te("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
2464
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2465
|
+
*
|
|
2466
|
+
* This source code is licensed under the ISC license.
|
|
2467
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2468
|
+
*/const Vd=Te("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"}]]);/**
|
|
2469
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2470
|
+
*
|
|
2471
|
+
* This source code is licensed under the ISC license.
|
|
2472
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2473
|
+
*/const wC=Te("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
2474
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2475
|
+
*
|
|
2476
|
+
* This source code is licensed under the ISC license.
|
|
2477
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2478
|
+
*/const bC=Te("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"}]]);/**
|
|
2479
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2480
|
+
*
|
|
2481
|
+
* This source code is licensed under the ISC license.
|
|
2482
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2483
|
+
*/const CC=Te("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
|
2484
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2485
|
+
*
|
|
2486
|
+
* This source code is licensed under the ISC license.
|
|
2487
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2488
|
+
*/const kC=Te("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"}]]);/**
|
|
2489
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2490
|
+
*
|
|
2491
|
+
* This source code is licensed under the ISC license.
|
|
2492
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2493
|
+
*/const SC=Te("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
2494
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2495
|
+
*
|
|
2496
|
+
* This source code is licensed under the ISC license.
|
|
2497
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2498
|
+
*/const EC=Te("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
2499
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2500
|
+
*
|
|
2501
|
+
* This source code is licensed under the ISC license.
|
|
2502
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2503
|
+
*/const NC=Te("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"}]]);/**
|
|
2504
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2505
|
+
*
|
|
2506
|
+
* This source code is licensed under the ISC license.
|
|
2507
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2508
|
+
*/const jC=Te("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
2509
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2510
|
+
*
|
|
2511
|
+
* This source code is licensed under the ISC license.
|
|
2512
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2513
|
+
*/const PC=Te("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"}]]);/**
|
|
2514
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2515
|
+
*
|
|
2516
|
+
* This source code is licensed under the ISC license.
|
|
2517
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2518
|
+
*/const RC=Te("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
2519
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2520
|
+
*
|
|
2521
|
+
* This source code is licensed under the ISC license.
|
|
2522
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2523
|
+
*/const jm=Te("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
2524
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2525
|
+
*
|
|
2526
|
+
* This source code is licensed under the ISC license.
|
|
2527
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2528
|
+
*/const TC=Te("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"}]]);/**
|
|
2529
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2530
|
+
*
|
|
2531
|
+
* This source code is licensed under the ISC license.
|
|
2532
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2533
|
+
*/const LC=Te("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"}]]);/**
|
|
2534
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2535
|
+
*
|
|
2536
|
+
* This source code is licensed under the ISC license.
|
|
2537
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2538
|
+
*/const fa=Te("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"}]]);/**
|
|
2539
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2540
|
+
*
|
|
2541
|
+
* This source code is licensed under the ISC license.
|
|
2542
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2543
|
+
*/const IC=Te("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
2544
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2545
|
+
*
|
|
2546
|
+
* This source code is licensed under the ISC license.
|
|
2547
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2548
|
+
*/const AC=Te("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"}]]);/**
|
|
2549
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2550
|
+
*
|
|
2551
|
+
* This source code is licensed under the ISC license.
|
|
2552
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2553
|
+
*/const OC=Te("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"}]]);/**
|
|
2554
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2555
|
+
*
|
|
2556
|
+
* This source code is licensed under the ISC license.
|
|
2557
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2558
|
+
*/const MC=Te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
2559
|
+
* @license lucide-react v0.460.0 - ISC
|
|
2560
|
+
*
|
|
2561
|
+
* This source code is licensed under the ISC license.
|
|
2562
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2563
|
+
*/const $C=Te("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"}]]),DC=240,zC=48;function FC(){const e=na(),t=Ld(),{health:n,workflows:r,sidebarCollapsed:o,toggleSidebar:s}=Nr(),{theme:l,setTheme:i}=p2(),[c,d]=u.useState(!0),f=n?.connected??!1,p=t.pathname==="/",m=t.pathname.match(/^\/workflows\/([^/]+)/)?.[1],g=()=>{const y=["light","dark","system"],w=y.indexOf(l);i(y[(w+1)%y.length])},x=l==="dark"?jC:l==="light"?AC:NC;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?zC:DC},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:ce("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(TC,{className:"h-4 w-4 shrink-0"}),!o&&a.jsx("span",{children:"Activity"})]}),a.jsxs("div",{children:[a.jsxs("button",{className:ce("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(kC,{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(Yd,{className:"h-3 w-3 text-muted-foreground"}):a.jsx(da,{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 w=encodeURIComponent(y.id),h=m===w||m===y.id;return a.jsx("button",{className:ce("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/${w}`),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:ce("flex items-center gap-2 rounded-md px-2 py-1.5",o&&"justify-center px-0"),children:[a.jsx("div",{className:ce("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:ce("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:g,title:`Theme: ${l}`,children:[a.jsx(x,{className:"h-3.5 w-3.5"}),a.jsx("span",{className:"capitalize",children:l})]}),a.jsx("button",{className:ce("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(RC,{className:"h-4 w-4"}):a.jsx(PC,{className:"h-4 w-4"})})]})]})]})}function BC(){return a.jsxs("div",{className:"flex h-screen overflow-hidden bg-background text-foreground",children:[a.jsx(FC,{}),a.jsx("main",{className:"flex-1 overflow-auto",children:a.jsx(uw,{})}),a.jsx(cC,{})]})}const Pm={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 wo({status:e,className:t}){const n=Pm[e]||Pm.queued;return a.jsxs("span",{className:ce("inline-flex items-center gap-1.5 text-[13px] font-medium",n.text,t),children:[a.jsx("span",{className:ce("h-2 w-2 rounded-full shrink-0",n.dot)}),a.jsx("span",{className:"capitalize",children:e})]})}function Tu({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:ce("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:ce("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(Yd,{className:"h-3 w-3"}):a.jsx(da,{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 Lu({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(u2,{children:[a.jsx(d2,{asChild:!0,children:a.jsx("span",{className:t,children:a2(e)})}),a.jsx(o0,{children:a.jsx("p",{className:"font-mono text-xs",children:r})})]})}var WC=Symbol.for("react.lazy"),Ti=Mi[" use ".trim().toString()];function HC(e){return typeof e=="object"&&e!==null&&"then"in e}function f0(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===WC&&"_payload"in e&&HC(e._payload)}function UC(e){const t=VC(e),n=u.forwardRef((r,o)=>{let{children:s,...l}=r;f0(s)&&typeof Ti=="function"&&(s=Ti(s._payload));const i=u.Children.toArray(s),c=i.find(QC);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 YC=UC("Slot");function VC(e){const t=u.forwardRef((n,r)=>{let{children:o,...s}=n;if(f0(o)&&typeof Ti=="function"&&(o=Ti(o._payload)),u.isValidElement(o)){const l=KC(o),i=GC(s,o.props);return o.type!==u.Fragment&&(i.ref=r?Ks(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 XC=Symbol("radix.slottable");function QC(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===XC}function GC(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 KC(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 Rm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Tm=Zg,ZC=(e,t)=>n=>{var r;if(t?.variants==null)return Tm(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=Rm(f)||Rm(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,...g}=f;return Object.entries(g).every(x=>{let[y,w]=x;return Array.isArray(w)?w.includes({...s,...i}[y]):{...s,...i}[y]===w})?[...d,p,m]:d},[]);return Tm(e,l,c,n?.class,n?.className)},JC=ZC("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"}}),dn=u.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const l=r?YC:"button";return a.jsx(l,{className:ce(JC({variant:t,size:n,className:e})),ref:s,...o})});dn.displayName="Button";var qC=u.createContext(void 0);function Xd(e){const t=u.useContext(qC);return e||t||"ltr"}function ek(e,[t,n]){return Math.min(n,Math.max(t,e))}function tk(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Qd="ScrollArea",[p0]=Dr(Qd),[nk,Mt]=p0(Qd),m0=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),[g,x]=u.useState(null),[y,w]=u.useState(null),[h,_]=u.useState(0),[v,S]=u.useState(0),[E,N]=u.useState(!1),[j,T]=u.useState(!1),z=ze(t,X=>c(X)),M=Xd(o);return a.jsx(nk,{scope:n,type:r,dir:M,scrollHideDelay:s,scrollArea:i,viewport:d,onViewportChange:f,content:p,onContentChange:m,scrollbarX:g,onScrollbarXChange:x,scrollbarXEnabled:E,onScrollbarXEnabledChange:N,scrollbarY:y,onScrollbarYChange:w,scrollbarYEnabled:j,onScrollbarYEnabledChange:T,onCornerWidthChange:_,onCornerHeightChange:S,children:a.jsx(Se.div,{dir:M,...l,ref:z,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})})});m0.displayName=Qd;var h0="ScrollAreaViewport",_0=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...s}=e,l=Mt(h0,n),i=u.useRef(null),c=ze(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})})]})});_0.displayName=h0;var mn="ScrollAreaScrollbar",Gd=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Mt(mn,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(rk,{...r,ref:t,forceMount:n}):o.type==="scroll"?a.jsx(ok,{...r,ref:t,forceMount:n}):o.type==="auto"?a.jsx(g0,{...r,ref:t,forceMount:n}):o.type==="always"?a.jsx(Kd,{...r,ref:t}):null});Gd.displayName=mn;var rk=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Mt(mn,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(pn,{present:n||s,children:a.jsx(g0,{"data-state":s?"visible":"hidden",...r,ref:t})})}),ok=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Mt(mn,e.__scopeScrollArea),s=e.orientation==="horizontal",l=ma(()=>c("SCROLL_END"),100),[i,c]=tk("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 g=d[f];p!==g&&(c("SCROLL"),l()),p=g};return d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}},[o.viewport,s,c,l]),a.jsx(pn,{present:n||i!=="hidden",children:a.jsx(Kd,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:he(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:he(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),g0=u.forwardRef((e,t)=>{const n=Mt(mn,e.__scopeScrollArea),{forceMount:r,...o}=e,[s,l]=u.useState(!1),i=e.orientation==="horizontal",c=ma(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;l(i?d:f)}},10);return Ao(n.viewport,c),Ao(n.content,c),a.jsx(pn,{present:r||s,children:a.jsx(Kd,{"data-state":s?"visible":"hidden",...o,ref:t})})}),Kd=u.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Mt(mn,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,g){return uk(m,l.current,i,g)}return n==="horizontal"?a.jsx(sk,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const m=o.viewport.scrollLeft,g=Lm(m,i,o.dir);s.current.style.transform=`translate3d(${g}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(lk,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const m=o.viewport.scrollTop,g=Lm(m,i);s.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=p(m))}}):null}),sk=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=Mt(mn,e.__scopeScrollArea),[l,i]=u.useState(),c=u.useRef(null),d=ze(t,c,s.onScrollbarXChange);return u.useEffect(()=>{c.current&&i(getComputedStyle(c.current))},[c]),a.jsx(v0,{"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":pa(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),k0(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:Ii(l.paddingLeft),paddingEnd:Ii(l.paddingRight)}})}})}),lk=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=Mt(mn,e.__scopeScrollArea),[l,i]=u.useState(),c=u.useRef(null),d=ze(t,c,s.onScrollbarYChange);return u.useEffect(()=>{c.current&&i(getComputedStyle(c.current))},[c]),a.jsx(v0,{"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":pa(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),k0(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:Ii(l.paddingTop),paddingEnd:Ii(l.paddingBottom)}})}})}),[ik,y0]=p0(mn),v0=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,g=Mt(mn,n),[x,y]=u.useState(null),w=ze(t,z=>y(z)),h=u.useRef(null),_=u.useRef(""),v=g.viewport,S=r.content-r.viewport,E=ct(f),N=ct(c),j=ma(p,10);function T(z){if(h.current){const M=z.clientX-h.current.left,X=z.clientY-h.current.top;d({x:M,y:X})}}return u.useEffect(()=>{const z=M=>{const X=M.target;x?.contains(X)&&E(M,S)};return document.addEventListener("wheel",z,{passive:!1}),()=>document.removeEventListener("wheel",z,{passive:!1})},[v,x,S,E]),u.useEffect(N,[r,N]),Ao(x,j),Ao(g.content,j),a.jsx(ik,{scope:n,scrollbar:x,hasThumb:o,onThumbChange:ct(s),onThumbPointerUp:ct(l),onThumbPositionChange:N,onThumbPointerDown:ct(i),children:a.jsx(Se.div,{...m,ref:w,style:{position:"absolute",...m.style},onPointerDown:he(e.onPointerDown,z=>{z.button===0&&(z.target.setPointerCapture(z.pointerId),h.current=x.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),T(z))}),onPointerMove:he(e.onPointerMove,T),onPointerUp:he(e.onPointerUp,z=>{const M=z.target;M.hasPointerCapture(z.pointerId)&&M.releasePointerCapture(z.pointerId),document.body.style.webkitUserSelect=_.current,g.viewport&&(g.viewport.style.scrollBehavior=""),h.current=null})})})}),Li="ScrollAreaThumb",x0=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=y0(Li,e.__scopeScrollArea);return a.jsx(pn,{present:n||o.hasThumb,children:a.jsx(ak,{ref:t,...r})})}),ak=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,s=Mt(Li,n),l=y0(Li,n),{onThumbPositionChange:i}=l,c=ze(t,p=>l.onThumbChange(p)),d=u.useRef(void 0),f=ma(()=>{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 g=dk(p,i);d.current=g,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:he(e.onPointerDownCapture,p=>{const g=p.target.getBoundingClientRect(),x=p.clientX-g.left,y=p.clientY-g.top;l.onThumbPointerDown({x,y})}),onPointerUp:he(e.onPointerUp,l.onThumbPointerUp)})});x0.displayName=Li;var Zd="ScrollAreaCorner",w0=u.forwardRef((e,t)=>{const n=Mt(Zd,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?a.jsx(ck,{...e,ref:t}):null});w0.displayName=Zd;var ck=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Mt(Zd,n),[s,l]=u.useState(0),[i,c]=u.useState(0),d=!!(s&&i);return Ao(o.scrollbarX,()=>{const f=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(f),c(f)}),Ao(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 Ii(e){return e?parseInt(e,10):0}function b0(e,t){const n=e/t;return isNaN(n)?0:n}function pa(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 uk(e,t,n,r="ltr"){const o=pa(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 C0([c,d],p)(e)}function Lm(e,t,n="ltr"){const r=pa(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=ek(e,c);return C0([0,l],[0,i])(d)}function C0(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 k0(e,t){return e>0&&e<t}var dk=(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 ma(e,t){const n=ct(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 Ao(e,t){const n=ct(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 S0=m0,fk=_0,pk=w0;const ha=u.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(S0,{ref:r,className:ce("relative overflow-hidden",e),...n,children:[a.jsx(fk,{className:"h-full w-full rounded-[inherit]",children:t}),a.jsx(E0,{}),a.jsx(pk,{})]}));ha.displayName=S0.displayName;const E0=u.forwardRef(({className:e,orientation:t="vertical",...n},r)=>a.jsx(Gd,{ref:r,orientation:t,className:ce("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(x0,{className:"relative flex-1 rounded-full bg-border"})}));E0.displayName=Gd.displayName;function Im(e){const t=mk(e),n=u.forwardRef((r,o)=>{const{children:s,...l}=r,i=u.Children.toArray(s),c=i.find(_k);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 mk(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const l=yk(o),i=gk(s,o.props);return o.type!==u.Fragment&&(i.ref=r?Ks(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 hk=Symbol("radix.slottable");function _k(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hk}function gk(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 yk(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 vk(e){const t=e+"CollectionProvider",[n,r]=Dr(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=y=>{const{scope:w,children:h}=y,_=vt.useRef(null),v=vt.useRef(new Map).current;return a.jsx(o,{scope:w,itemMap:v,collectionRef:_,children:h})};l.displayName=t;const i=e+"CollectionSlot",c=Im(i),d=vt.forwardRef((y,w)=>{const{scope:h,children:_}=y,v=s(i,h),S=ze(w,v.collectionRef);return a.jsx(c,{ref:S,children:_})});d.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=Im(f),g=vt.forwardRef((y,w)=>{const{scope:h,children:_,...v}=y,S=vt.useRef(null),E=ze(w,S),N=s(f,h);return vt.useEffect(()=>(N.itemMap.set(S,{ref:S,...v}),()=>void N.itemMap.delete(S))),a.jsx(m,{[p]:"",ref:E,children:_})});g.displayName=f;function x(y){const w=s(e+"CollectionConsumer",y);return vt.useCallback(()=>{const _=w.collectionRef.current;if(!_)return[];const v=Array.from(_.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort((N,j)=>v.indexOf(N.ref.current)-v.indexOf(j.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:l,Slot:d,ItemSlot:g},x,r]}var vc="rovingFocusGroup.onEntryFocus",xk={bubbles:!1,cancelable:!0},Js="RovingFocusGroup",[Iu,N0,wk]=vk(Js),[bk,j0]=Dr(Js,[wk]),[Ck,kk]=bk(Js),P0=u.forwardRef((e,t)=>a.jsx(Iu.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Iu.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Sk,{...e,ref:t})})}));P0.displayName=Js;var Sk=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),g=ze(t,m),x=Xd(s),[y,w]=ia({prop:l,defaultProp:i??null,onChange:c,caller:Js}),[h,_]=u.useState(!1),v=ct(d),S=N0(n),E=u.useRef(!1),[N,j]=u.useState(0);return u.useEffect(()=>{const T=m.current;if(T)return T.addEventListener(vc,v),()=>T.removeEventListener(vc,v)},[v]),a.jsx(Ck,{scope:n,orientation:r,dir:x,loop:o,currentTabStopId:y,onItemFocus:u.useCallback(T=>w(T),[w]),onItemShiftTab:u.useCallback(()=>_(!0),[]),onFocusableItemAdd:u.useCallback(()=>j(T=>T+1),[]),onFocusableItemRemove:u.useCallback(()=>j(T=>T-1),[]),children:a.jsx(Se.div,{tabIndex:h||N===0?-1:0,"data-orientation":r,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{E.current=!0}),onFocus:he(e.onFocus,T=>{const z=!E.current;if(T.target===T.currentTarget&&z&&!h){const M=new CustomEvent(vc,xk);if(T.currentTarget.dispatchEvent(M),!M.defaultPrevented){const X=S().filter(Q=>Q.focusable),L=X.find(Q=>Q.active),Z=X.find(Q=>Q.id===y),ge=[L,Z,...X].filter(Boolean).map(Q=>Q.ref.current);L0(ge,f)}}E.current=!1}),onBlur:he(e.onBlur,()=>_(!1))})})}),R0="RovingFocusGroupItem",T0=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:l,...i}=e,c=yo(),d=s||c,f=kk(R0,n),p=f.currentTabStopId===d,m=N0(n),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:y}=f;return u.useEffect(()=>{if(r)return g(),()=>x()},[r,g,x]),a.jsx(Iu.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:he(e.onMouseDown,w=>{r?f.onItemFocus(d):w.preventDefault()}),onFocus:he(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:he(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){f.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const h=jk(w,f.orientation,f.dir);if(h!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.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(w.currentTarget);v=f.loop?Pk(v,S+1):v.slice(S+1)}setTimeout(()=>L0(v))}}),children:typeof l=="function"?l({isCurrentTabStop:p,hasTabStop:y!=null}):l})})});T0.displayName=R0;var Ek={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Nk(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function jk(e,t,n){const r=Nk(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Ek[r]}function L0(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Pk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Rk=P0,Tk=T0,_a="Tabs",[Lk]=Dr(_a,[j0]),I0=j0(),[Ik,Jd]=Lk(_a),A0=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:l="horizontal",dir:i,activationMode:c="automatic",...d}=e,f=Xd(i),[p,m]=ia({prop:r,onChange:o,defaultProp:s??"",caller:_a});return a.jsx(Ik,{scope:n,baseId:yo(),value:p,onValueChange:m,orientation:l,dir:f,activationMode:c,children:a.jsx(Se.div,{dir:f,"data-orientation":l,...d,ref:t})})});A0.displayName=_a;var O0="TabsList",M0=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=Jd(O0,n),l=I0(n);return a.jsx(Rk,{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})})});M0.displayName=O0;var $0="TabsTrigger",D0=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,l=Jd($0,n),i=I0(n),c=B0(l.baseId,r),d=W0(l.baseId,r),f=r===l.value;return a.jsx(Tk,{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:he(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?l.onValueChange(r):p.preventDefault()}),onKeyDown:he(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&l.onValueChange(r)}),onFocus:he(e.onFocus,()=>{const p=l.activationMode!=="manual";!f&&!o&&p&&l.onValueChange(r)})})})});D0.displayName=$0;var z0="TabsContent",F0=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...l}=e,i=Jd(z0,n),c=B0(i.baseId,r),d=W0(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(pn,{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})})});F0.displayName=z0;function B0(e,t){return`${e}-trigger-${t}`}function W0(e,t){return`${e}-content-${t}`}var Ak=A0,H0=M0,U0=D0,Y0=F0;const Ok=Ak,V0=u.forwardRef(({className:e,...t},n)=>a.jsx(H0,{ref:n,className:ce("inline-flex h-8 items-center gap-1 text-muted-foreground",e),...t}));V0.displayName=H0.displayName;const Au=u.forwardRef(({className:e,...t},n)=>a.jsx(U0,{ref:n,className:ce("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}));Au.displayName=U0.displayName;const Ou=u.forwardRef(({className:e,...t},n)=>a.jsx(Y0,{ref:n,className:ce("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Ou.displayName=Y0.displayName;function Mk({run:e,onCancel:t,onRetry:n}){const r=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(wo,{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(bC,{className:"h-3.5 w-3.5"})})]}),a.jsx(ha,{className:"flex-1",children:a.jsxs(Ok,{defaultValue:"overview",className:"flex flex-col",children:[a.jsx("div",{className:"px-4 pt-3 shrink-0",children:a.jsxs(V0,{children:[a.jsx(Au,{value:"overview",className:"text-[13px]",children:"Overview"}),a.jsx(Au,{value:"detail",className:"text-[13px]",children:"Detail"})]})}),a.jsxs(Ou,{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(wo,{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(Lu,{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(Lu,{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:Yt(r)})]}),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(Tu,{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(Tu,{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(o=>o.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(o=>o.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&&a.jsxs(dn,{variant:"outline",size:"sm",className:"flex-1 gap-1.5 text-red-600 dark:text-red-400",onClick:t,children:[a.jsx(Vd,{className:"h-3.5 w-3.5"}),"Cancel"]}),e.status==="failed"&&n&&a.jsxs(dn,{variant:"outline",size:"sm",className:"flex-1 gap-1.5 text-orange-600 dark:text-orange-400",onClick:n,children:[a.jsx(fa,{className:"h-3.5 w-3.5"}),"Retry"]})]})})]}),a.jsxs(Ou,{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(o=>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:o.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:Yt(o.duration)}),a.jsx(wo,{status:o.status,className:"text-[11px]"})]})]},o.name))})]})]})]})})]})}function $k(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 Dk(e){return e.type.includes("complete")?"completed":e.type.includes("fail")?"failed":e.type.includes("start")?"running":e.type.includes("retry")?"retrying":"queued"}function zk({events:e,className:t}){const n=na();return e.length===0?a.jsx("p",{className:ce("text-[13px] text-muted-foreground py-8",t),children:"No activity yet. Events will appear here in real-time."}):a.jsx("div",{className:ce("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(wo,{status:Dk(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:$k(r)}),r.data.duration!=null&&a.jsx("span",{className:"font-mono text-muted-foreground ml-auto whitespace-nowrap text-xs",children:Yt(r.data.duration)})]},`${r.receivedAt}-${o}`))})}function Fk(){const e=Nr(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(IC,{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(ha,{className:"h-full",children:a.jsx("div",{className:"px-5 py-3",children:a.jsx(zk,{events:r})})})})]})}var xc="focusScope.autoFocusOnMount",wc="focusScope.autoFocusOnUnmount",Am={bubbles:!1,cancelable:!0},Bk="FocusScope",X0=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...l}=e,[i,c]=u.useState(null),d=ct(o),f=ct(s),p=u.useRef(null),m=ze(t,y=>c(y)),g=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let y=function(v){if(g.paused||!i)return;const S=v.target;i.contains(S)?p.current=S:Fn(p.current,{select:!0})},w=function(v){if(g.paused||!i)return;const S=v.relatedTarget;S!==null&&(i.contains(S)||Fn(p.current,{select:!0}))},h=function(v){if(document.activeElement===document.body)for(const E of v)E.removedNodes.length>0&&Fn(i)};document.addEventListener("focusin",y),document.addEventListener("focusout",w);const _=new MutationObserver(h);return i&&_.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),_.disconnect()}}},[r,i,g.paused]),u.useEffect(()=>{if(i){Mm.add(g);const y=document.activeElement;if(!i.contains(y)){const h=new CustomEvent(xc,Am);i.addEventListener(xc,d),i.dispatchEvent(h),h.defaultPrevented||(Wk(Xk(Q0(i)),{select:!0}),document.activeElement===y&&Fn(i))}return()=>{i.removeEventListener(xc,d),setTimeout(()=>{const h=new CustomEvent(wc,Am);i.addEventListener(wc,f),i.dispatchEvent(h),h.defaultPrevented||Fn(y??document.body,{select:!0}),i.removeEventListener(wc,f),Mm.remove(g)},0)}}},[i,d,f,g]);const x=u.useCallback(y=>{if(!n&&!r||g.paused)return;const w=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,h=document.activeElement;if(w&&h){const _=y.currentTarget,[v,S]=Hk(_);v&&S?!y.shiftKey&&h===S?(y.preventDefault(),n&&Fn(v,{select:!0})):y.shiftKey&&h===v&&(y.preventDefault(),n&&Fn(S,{select:!0})):h===_&&y.preventDefault()}},[n,r,g.paused]);return a.jsx(Se.div,{tabIndex:-1,...l,ref:m,onKeyDown:x})});X0.displayName=Bk;function Wk(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Fn(r,{select:t}),document.activeElement!==n)return}function Hk(e){const t=Q0(e),n=Om(t,e),r=Om(t.reverse(),e);return[n,r]}function Q0(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 Om(e,t){for(const n of e)if(!Uk(n,{upTo:t}))return n}function Uk(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 Yk(e){return e instanceof HTMLInputElement&&"select"in e}function Fn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Yk(e)&&t&&e.select()}}var Mm=Vk();function Vk(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=$m(e,t),e.unshift(t)},remove(t){e=$m(e,t),e[0]?.resume()}}}function $m(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Xk(e){return e.filter(t=>t.tagName!=="A")}var bc=0;function Qk(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Dm()),document.body.insertAdjacentElement("beforeend",e[1]??Dm()),bc++,()=>{bc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),bc--}},[])}function Dm(){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 sn=function(){return sn=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},sn.apply(this,arguments)};function G0(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 Gk(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 Jl="right-scroll-bar-position",ql="width-before-scroll-bar",Kk="with-scroll-bars-hidden",Zk="--removed-body-scroll-bar-size";function Cc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Jk(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 qk=typeof window<"u"?u.useLayoutEffect:u.useEffect,zm=new WeakMap;function eS(e,t){var n=Jk(null,function(r){return e.forEach(function(o){return Cc(o,r)})});return qk(function(){var r=zm.get(n);if(r){var o=new Set(r),s=new Set(e),l=n.current;o.forEach(function(i){s.has(i)||Cc(i,null)}),s.forEach(function(i){o.has(i)||Cc(i,l)})}zm.set(n,e)},[e]),n}function tS(e){return e}function nS(e,t){t===void 0&&(t=tS);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 rS(e){e===void 0&&(e={});var t=nS(null);return t.options=sn({async:!0,ssr:!1},e),t}var K0=function(e){var t=e.sideCar,n=G0(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,sn({},n))};K0.isSideCarExport=!0;function oS(e,t){return e.useMedium(t),K0}var Z0=rS(),kc=function(){},ga=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:kc,onWheelCapture:kc,onTouchMoveCapture:kc}),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,g=e.noRelative,x=e.noIsolation,y=e.inert,w=e.allowPinchZoom,h=e.as,_=h===void 0?"div":h,v=e.gapMode,S=G0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,N=eS([n,t]),j=sn(sn({},S),o);return u.createElement(u.Fragment,null,f&&u.createElement(E,{sideCar:Z0,removeScrollBar:d,shards:p,noRelative:g,noIsolation:x,inert:y,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:v}),l?u.cloneElement(u.Children.only(i),sn(sn({},j),{ref:N})):u.createElement(_,sn({},j,{className:c,ref:N}),i))});ga.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ga.classNames={fullWidth:ql,zeroRight:Jl};var sS=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lS(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sS();return t&&e.setAttribute("nonce",t),e}function iS(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function aS(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cS=function(){var e=0,t=null;return{add:function(n){e==0&&(t=lS())&&(iS(t,n),aS(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uS=function(){var e=cS();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},J0=function(){var e=uS(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},dS={left:0,top:0,right:0,gap:0},Sc=function(e){return parseInt(e||"",10)||0},fS=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[Sc(n),Sc(r),Sc(o)]},pS=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dS;var t=fS(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])}},mS=J0(),bo="data-scroll-locked",hS=function(e,t,n,r){var o=e.left,s=e.top,l=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
2564
|
+
.`.concat(Kk,` {
|
|
2565
|
+
overflow: hidden `).concat(r,`;
|
|
2566
|
+
padding-right: `).concat(i,"px ").concat(r,`;
|
|
2567
|
+
}
|
|
2568
|
+
body[`).concat(bo,`] {
|
|
2569
|
+
overflow: hidden `).concat(r,`;
|
|
2570
|
+
overscroll-behavior: contain;
|
|
2571
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
2572
|
+
padding-left: `.concat(o,`px;
|
|
2573
|
+
padding-top: `).concat(s,`px;
|
|
2574
|
+
padding-right: `).concat(l,`px;
|
|
2575
|
+
margin-left:0;
|
|
2576
|
+
margin-top:0;
|
|
2577
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
2578
|
+
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
.`).concat(Jl,` {
|
|
2582
|
+
right: `).concat(i,"px ").concat(r,`;
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
.`).concat(ql,` {
|
|
2586
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
.`).concat(Jl," .").concat(Jl,` {
|
|
2590
|
+
right: 0 `).concat(r,`;
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
.`).concat(ql," .").concat(ql,` {
|
|
2594
|
+
margin-right: 0 `).concat(r,`;
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
body[`).concat(bo,`] {
|
|
2598
|
+
`).concat(Zk,": ").concat(i,`px;
|
|
2599
|
+
}
|
|
2600
|
+
`)},Fm=function(){var e=parseInt(document.body.getAttribute(bo)||"0",10);return isFinite(e)?e:0},_S=function(){u.useEffect(function(){return document.body.setAttribute(bo,(Fm()+1).toString()),function(){var e=Fm()-1;e<=0?document.body.removeAttribute(bo):document.body.setAttribute(bo,e.toString())}},[])},gS=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;_S();var s=u.useMemo(function(){return pS(o)},[o]);return u.createElement(mS,{styles:hS(s,!t,o,n?"":"!important")})},Mu=!1;if(typeof window<"u")try{var Ol=Object.defineProperty({},"passive",{get:function(){return Mu=!0,!0}});window.addEventListener("test",Ol,Ol),window.removeEventListener("test",Ol,Ol)}catch{Mu=!1}var Gr=Mu?{passive:!1}:!1,yS=function(e){return e.tagName==="TEXTAREA"},q0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!yS(e)&&n[t]==="visible")},vS=function(e){return q0(e,"overflowY")},xS=function(e){return q0(e,"overflowX")},Bm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ey(e,r);if(o){var s=ty(e,r),l=s[1],i=s[2];if(l>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},wS=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},bS=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ey=function(e,t){return e==="v"?vS(t):xS(t)},ty=function(e,t){return e==="v"?wS(t):bS(t)},CS=function(e,t){return e==="h"&&t==="rtl"?-1:1},kS=function(e,t,n,r,o){var s=CS(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 g=ty(e,i),x=g[0],y=g[1],w=g[2],h=y-w-s*x;(x||h)&&ey(e,i)&&(p+=h,m+=x);var _=i.parentNode;i=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}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},Ml=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Wm=function(e){return[e.deltaX,e.deltaY]},Hm=function(e){return e&&"current"in e?e.current:e},SS=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ES=function(e){return`
|
|
2601
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
2602
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
2603
|
+
`)},NS=0,Kr=[];function jS(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(NS++)[0],s=u.useState(J0)[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=Gk([e.lockRef.current],(e.shards||[]).map(Hm),!0).filter(Boolean);return y.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=u.useCallback(function(y,w){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!l.current.allowPinchZoom;var h=Ml(y),_=n.current,v="deltaX"in y?y.deltaX:_[0]-h[0],S="deltaY"in y?y.deltaY:_[1]-h[1],E,N=y.target,j=Math.abs(v)>Math.abs(S)?"h":"v";if("touches"in y&&j==="h"&&N.type==="range")return!1;var T=window.getSelection(),z=T&&T.anchorNode,M=z?z===N||z.contains(N):!1;if(M)return!1;var X=Bm(j,N);if(!X)return!0;if(X?E=j:(E=j==="v"?"h":"v",X=Bm(j,N)),!X)return!1;if(!r.current&&"changedTouches"in y&&(v||S)&&(r.current=E),!E)return!0;var L=r.current||E;return kS(L,w,y,L==="h"?v:S)},[]),c=u.useCallback(function(y){var w=y;if(!(!Kr.length||Kr[Kr.length-1]!==s)){var h="deltaY"in w?Wm(w):Ml(w),_=t.current.filter(function(E){return E.name===w.type&&(E.target===w.target||w.target===E.shadowParent)&&SS(E.delta,h)})[0];if(_&&_.should){w.cancelable&&w.preventDefault();return}if(!_){var v=(l.current.shards||[]).map(Hm).filter(Boolean).filter(function(E){return E.contains(w.target)}),S=v.length>0?i(w,v[0]):!l.current.noIsolation;S&&w.cancelable&&w.preventDefault()}}},[]),d=u.useCallback(function(y,w,h,_){var v={name:y,delta:w,target:h,should:_,shadowParent:PS(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=Ml(y),r.current=void 0},[]),p=u.useCallback(function(y){d(y.type,Wm(y),y.target,i(y,e.lockRef.current))},[]),m=u.useCallback(function(y){d(y.type,Ml(y),y.target,i(y,e.lockRef.current))},[]);u.useEffect(function(){return Kr.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Gr),document.addEventListener("touchmove",c,Gr),document.addEventListener("touchstart",f,Gr),function(){Kr=Kr.filter(function(y){return y!==s}),document.removeEventListener("wheel",c,Gr),document.removeEventListener("touchmove",c,Gr),document.removeEventListener("touchstart",f,Gr)}},[]);var g=e.removeScrollBar,x=e.inert;return u.createElement(u.Fragment,null,x?u.createElement(s,{styles:ES(o)}):null,g?u.createElement(gS,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function PS(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const RS=oS(Z0,jS);var ny=u.forwardRef(function(e,t){return u.createElement(ga,sn({},e,{ref:t,sideCar:RS}))});ny.classNames=ga.classNames;var TS=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zr=new WeakMap,$l=new WeakMap,Dl={},Ec=0,ry=function(e){return e&&(e.host||ry(e.parentNode))},LS=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ry(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})},IS=function(e,t,n,r){var o=LS(t,Array.isArray(e)?e:[e]);Dl[n]||(Dl[n]=new WeakMap);var s=Dl[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 g=m.getAttribute(r),x=g!==null&&g!=="false",y=(Zr.get(m)||0)+1,w=(s.get(m)||0)+1;Zr.set(m,y),s.set(m,w),l.push(m),y===1&&x&&$l.set(m,!0),w===1&&m.setAttribute(n,"true"),x||m.setAttribute(r,"true")}catch(h){console.error("aria-hidden: cannot operate on ",m,h)}})};return f(t),i.clear(),Ec++,function(){l.forEach(function(p){var m=Zr.get(p)-1,g=s.get(p)-1;Zr.set(p,m),s.set(p,g),m||($l.has(p)||p.removeAttribute(r),$l.delete(p)),g||p.removeAttribute(n)}),Ec--,Ec||(Zr=new WeakMap,Zr=new WeakMap,$l=new WeakMap,Dl={})}},AS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=TS(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),IS(r,o,n,"aria-hidden")):function(){return null}};function OS(e){const t=MS(e),n=u.forwardRef((r,o)=>{const{children:s,...l}=r,i=u.Children.toArray(s),c=i.find(DS);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 MS(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const l=FS(o),i=zS(s,o.props);return o.type!==u.Fragment&&(i.ref=r?Ks(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 $S=Symbol("radix.slottable");function DS(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$S}function zS(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 FS(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 ya="Dialog",[oy]=Dr(ya),[BS,Gt]=oy(ya),sy=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]=ia({prop:r,defaultProp:o??!1,onChange:s,caller:ya});return a.jsx(BS,{scope:t,triggerRef:i,contentRef:c,contentId:yo(),titleId:yo(),descriptionId:yo(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(p=>!p),[f]),modal:l,children:n})};sy.displayName=ya;var ly="DialogTrigger",iy=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(ly,n),s=ze(t,o.triggerRef);return a.jsx(Se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":tf(o.open),...r,ref:s,onClick:he(e.onClick,o.onOpenToggle)})});iy.displayName=ly;var qd="DialogPortal",[WS,ay]=oy(qd,{forceMount:void 0}),cy=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Gt(qd,t);return a.jsx(WS,{scope:t,forceMount:n,children:u.Children.map(r,l=>a.jsx(pn,{present:n||s.open,children:a.jsx(Fg,{asChild:!0,container:o,children:l})}))})};cy.displayName=qd;var Ai="DialogOverlay",uy=u.forwardRef((e,t)=>{const n=ay(Ai,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Gt(Ai,e.__scopeDialog);return s.modal?a.jsx(pn,{present:r||s.open,children:a.jsx(US,{...o,ref:t})}):null});uy.displayName=Ai;var HS=OS("DialogOverlay.RemoveScroll"),US=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(Ai,n);return a.jsx(ny,{as:HS,allowPinchZoom:!0,shards:[o.contentRef],children:a.jsx(Se.div,{"data-state":tf(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ar="DialogContent",dy=u.forwardRef((e,t)=>{const n=ay(Ar,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Gt(Ar,e.__scopeDialog);return a.jsx(pn,{present:r||s.open,children:s.modal?a.jsx(YS,{...o,ref:t}):a.jsx(VS,{...o,ref:t})})});dy.displayName=Ar;var YS=u.forwardRef((e,t)=>{const n=Gt(Ar,e.__scopeDialog),r=u.useRef(null),o=ze(t,n.contentRef,r);return u.useEffect(()=>{const s=r.current;if(s)return AS(s)},[]),a.jsx(fy,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,i=l.button===0&&l.ctrlKey===!0;(l.button===2||i)&&s.preventDefault()}),onFocusOutside:he(e.onFocusOutside,s=>s.preventDefault())})}),VS=u.forwardRef((e,t)=>{const n=Gt(Ar,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return a.jsx(fy,{...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()}})}),fy=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...l}=e,i=Gt(Ar,n),c=u.useRef(null),d=ze(t,c);return Qk(),a.jsxs(a.Fragment,{children:[a.jsx(X0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:a.jsx(Id,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":tf(i.open),...l,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(QS,{titleId:i.titleId}),a.jsx(KS,{contentRef:c,descriptionId:i.descriptionId})]})]})}),ef="DialogTitle",py=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(ef,n);return a.jsx(Se.h2,{id:o.titleId,...r,ref:t})});py.displayName=ef;var my="DialogDescription",XS=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(my,n);return a.jsx(Se.p,{id:o.descriptionId,...r,ref:t})});XS.displayName=my;var hy="DialogClose",_y=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Gt(hy,n);return a.jsx(Se.button,{type:"button",...r,ref:t,onClick:he(e.onClick,()=>o.onOpenChange(!1))})});_y.displayName=hy;function tf(e){return e?"open":"closed"}var gy="DialogTitleWarning",[p4,yy]=_w(gy,{contentName:Ar,titleName:ef,docsSlug:"dialog"}),QS=({titleId:e})=>{const t=yy(gy),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2604
|
+
|
|
2605
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
2606
|
+
|
|
2607
|
+
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},GS="DialogDescriptionWarning",KS=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${yy(GS).contentName}}.`;return u.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ZS=sy,JS=iy,qS=cy,vy=uy,xy=dy,wy=py,e4=_y;const t4=ZS,n4=JS,r4=qS,by=u.forwardRef(({className:e,...t},n)=>a.jsx(vy,{ref:n,className:ce("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=vy.displayName;const Cy=u.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(r4,{children:[a.jsx(by,{}),a.jsxs(xy,{ref:r,className:ce("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(e4,{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(MC,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Cy.displayName=xy.displayName;const o4=({className:e,...t})=>a.jsx("div",{className:ce("flex flex-col space-y-1.5 text-center sm:text-left",e),...t}),ky=u.forwardRef(({className:e,...t},n)=>a.jsx(wy,{ref:n,className:ce("text-lg font-semibold leading-none tracking-tight",e),...t}));ky.displayName=wy.displayName;const Sy=u.forwardRef(({className:e,...t},n)=>a.jsx("textarea",{className:ce("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}));Sy.displayName="Textarea";function s4({workflowId:e,onTriggered:t}){const[n,r]=u.useState(!1),[o,s]=u.useState("{}"),[l,i]=u.useState(null),[c,d]=u.useState(!1),f=async()=>{i(null),d(!0);try{const p=JSON.parse(o),m=await Wt.trigger(e,p);r(!1),s("{}"),t?.(m.runId)}catch(p){i(p instanceof Error?p.message:"Failed to trigger")}finally{d(!1)}};return a.jsxs(t4,{open:n,onOpenChange:r,children:[a.jsx(n4,{asChild:!0,children:a.jsxs(dn,{size:"sm",className:"gap-1.5",children:[a.jsx(jm,{className:"h-3.5 w-3.5"}),"Trigger"]})}),a.jsxs(Cy,{children:[a.jsx(o4,{children:a.jsxs(ky,{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(Sy,{value:o,onChange:p=>s(p.target.value),className:"font-mono text-[13px] min-h-[140px] bg-accent",placeholder:"{}"})]}),l&&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:l}),a.jsxs("div",{className:"flex justify-end gap-2",children:[a.jsx(dn,{variant:"outline",onClick:()=>r(!1),disabled:c,children:"Cancel"}),a.jsxs(dn,{onClick:f,disabled:c,className:"gap-1.5",children:[a.jsx(jm,{className:"h-3.5 w-3.5"}),c?"Triggering...":"Trigger"]})]})]})]})]})}const Ey=u.forwardRef(({className:e,...t},n)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:n,className:ce("w-full caption-bottom text-[13px]",e),...t})}));Ey.displayName="Table";const Ny=u.forwardRef(({className:e,...t},n)=>a.jsx("thead",{ref:n,className:ce("sticky top-0 z-10 bg-background [&_tr]:border-b",e),...t}));Ny.displayName="TableHeader";const jy=u.forwardRef(({className:e,...t},n)=>a.jsx("tbody",{ref:n,className:ce("[&_tr:last-child]:border-0",e),...t}));jy.displayName="TableBody";const ei=u.forwardRef(({className:e,...t},n)=>a.jsx("tr",{ref:n,className:ce("border-b transition-colors duration-100 hover:bg-accent/50 data-[state=selected]:bg-accent",e),...t}));ei.displayName="TableRow";const xr=u.forwardRef(({className:e,...t},n)=>a.jsx("th",{ref:n,className:ce("h-9 px-3 text-left align-middle font-medium text-muted-foreground text-xs [&:has([role=checkbox])]:pr-0",e),...t}));xr.displayName="TableHead";const Bn=u.forwardRef(({className:e,...t},n)=>a.jsx("td",{ref:n,className:ce("px-3 py-2.5 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Bn.displayName="TableCell";const l4=["all","running","completed","failed","cancelled"];function i4(){const{workflowId:e}=fg(),t=na(),{workflows:n,currentRuns:r,fetchRuns:o,loadMoreRuns:s}=Nr(),[l,i]=u.useState("all"),c=e?decodeURIComponent(e):"",d=n.find(m=>m.id===c);u.useEffect(()=>{c&&o(c,{status:l==="all"?void 0:l})},[c,l,o]);const f=async(m,g)=>{m.stopPropagation(),await Wt.cancel(g),o(c,{status:l==="all"?void 0:l})},p=async(m,g)=>{m.stopPropagation(),await Wt.retry(g),o(c,{status:l==="all"?void 0:l})};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:c}),d&&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(CC,{className:"h-3 w-3"}),a.jsx("span",{children:d.concurrency})]}),a.jsxs("div",{className:"flex items-center gap-1",title:"Retries",children:[a.jsx(LC,{className:"h-3 w-3"}),a.jsx("span",{children:d.retries})]}),d.timeout&&a.jsxs("div",{className:"flex items-center gap-1",title:"Timeout",children:[a.jsx(OC,{className:"h-3 w-3"}),a.jsx("span",{children:Yt(d.timeout)})]}),d.rateLimit&&a.jsxs("div",{className:"flex items-center gap-1",title:"Rate limit",children:[a.jsx($C,{className:"h-3 w-3"}),a.jsxs("span",{children:[d.rateLimit.max,"/",Yt(d.rateLimit.duration)]})]})]})]}),a.jsx(s4,{workflowId:c,onTriggered:()=>{o(c,{status:l==="all"?void 0:l})}})]}),a.jsx("div",{className:"h-10 px-5 flex items-center gap-1 border-b shrink-0",children:l4.map(m=>a.jsx("button",{className:`px-2.5 py-1 rounded-md text-[13px] capitalize transition-colors duration-100 ${l===m?"bg-accent text-foreground font-medium":"text-muted-foreground hover:text-foreground hover:bg-accent"}`,onClick:()=>i(m),children:m},m))}),a.jsxs("div",{className:"flex-1 overflow-auto min-h-0",children:[a.jsxs(Ey,{children:[a.jsx(Ny,{children:a.jsxs(ei,{children:[a.jsx(xr,{className:"pl-5",children:"Run"}),a.jsx(xr,{children:"Status"}),a.jsx(xr,{children:"Started"}),a.jsx(xr,{children:"Duration"}),a.jsx(xr,{children:"Steps"}),a.jsx(xr,{className:"w-[80px] pr-5",children:"Actions"})]})}),a.jsxs(jy,{children:[r?.runs.length===0&&a.jsx(ei,{children:a.jsx(Bn,{colSpan:6,className:"text-center text-muted-foreground py-16",children:"No runs found."})}),r?.runs.map(m=>a.jsxs(ei,{className:"cursor-pointer",onClick:()=>t(`/workflows/${encodeURIComponent(c)}/runs/${m.id}`),children:[a.jsx(Bn,{className:"font-mono text-[13px] pl-5",children:r0(m.id)}),a.jsx(Bn,{children:a.jsx(wo,{status:m.status})}),a.jsx(Bn,{className:"text-[13px]",children:a.jsx(Lu,{timestamp:m.startedAt})}),a.jsx(Bn,{className:"font-mono text-[13px] text-muted-foreground",children:m.completedAt&&m.startedAt?Yt(m.completedAt-m.startedAt):"—"}),a.jsxs(Bn,{className:"font-mono text-[13px] text-muted-foreground",children:[m.progress.completed,"/",m.progress.total]}),a.jsx(Bn,{className:"pr-5",children:a.jsxs("div",{className:"flex gap-1",children:[m.status==="running"&&a.jsx(dn,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-md",onClick:g=>f(g,m.id),children:a.jsx(Vd,{className:"h-3.5 w-3.5 text-red-500"})}),m.status==="failed"&&a.jsx(dn,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-md",onClick:g=>p(g,m.id),children:a.jsx(fa,{className:"h-3.5 w-3.5 text-orange-500"})})]})})]},m.id))]})]}),r?.nextCursor&&a.jsx("div",{className:"flex justify-center py-4",children:a.jsx(dn,{variant:"outline",size:"sm",onClick:()=>s(c),children:"Load More"})})]})]})}const Um={pending:{icon:wC,color:"text-muted-foreground",barColor:"bg-gray-200 dark:bg-gray-700"},running:{icon:SC,color:"text-blue-500",barColor:"bg-blue-500/30 dark:bg-blue-500/40"},completed:{icon:xC,color:"text-emerald-500",barColor:"bg-emerald-500/30 dark:bg-emerald-500/40"},failed:{icon:Vd,color:"text-red-500",barColor:"bg-red-500/30 dark:bg-red-500/40"},retrying:{icon:fa,color:"text-orange-500",barColor:"bg-orange-500/30 dark:bg-orange-500/40"},skipped:{icon:EC,color:"text-muted-foreground",barColor:"bg-gray-200 dark:bg-gray-700"}};function a4({steps:e,totalDuration:t,className:n,onRetryRun:r}){if(e.length===0)return a.jsx("p",{className:"text-[13px] text-muted-foreground py-4",children:"No steps executed yet."});const o=t||Math.max(...e.map(s=>s.duration??0),1);return a.jsxs("div",{className:ce("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(s=>s.status==="completed").length,"/",e.length,")"]}),a.jsx("span",{className:"text-[13px] text-muted-foreground font-mono",children:Yt(t)})]}),a.jsx("div",{className:"space-y-0.5",children:e.map(s=>a.jsx(c4,{step:s,maxDuration:o,onRetryRun:r},s.name))}),a.jsx(u4,{maxDuration:o})]})}function c4({step:e,maxDuration:t,onRetryRun:n}){const[r,o]=u.useState(!1),s=Um[e.status]||Um.pending,l=s.icon,i=e.status==="running",c=e.duration&&t>0?Math.max(e.duration/t*100,2):e.status==="running"?45:2,d=e.result!==void 0||e.error||(e.attempts??0)>1;return a.jsxs("div",{className:"animate-slide-in",children:[a.jsxs("div",{className:ce("group flex items-center gap-2.5 px-2 py-1.5 rounded-md transition-colors duration-100",d&&"cursor-pointer",r?"bg-accent":"hover:bg-accent/50"),onClick:()=>d&&o(!r),children:[a.jsx("div",{className:ce("shrink-0",s.color),children:a.jsx(l,{className:ce("h-4 w-4",i&&"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:ce("trace-bar h-full flex items-center justify-end px-2",s.barColor,i&&"animate-shimmer bg-gradient-to-r from-blue-500/20 via-blue-400/40 to-blue-500/20 bg-[length:200%_100%]"),style:{width:`${c}%`,"--trace-width":`${c}%`},children:e.duration!=null&&e.duration>0&&a.jsx("span",{className:"text-xs font-mono text-foreground/70 whitespace-nowrap",children:Yt(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:i?"...":Yt(e.duration)})}),d&&a.jsx("div",{className:"shrink-0 text-muted-foreground",children:r?a.jsx(Yd,{className:"h-3.5 w-3.5"}):a.jsx(da,{className:"h-3.5 w-3.5"})})]}),r&&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&&a.jsxs(dn,{variant:"outline",size:"sm",className:"mt-2 gap-1.5 text-orange-600 dark:text-orange-400",onClick:f=>{f.stopPropagation(),n()},children:[a.jsx(fa,{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(Tu,{data:e.result,collapsed:!1})})]})]})}function u4({maxDuration:e}){const n=Array.from({length:6},(r,o)=>{const s=o/5;return{position:s*100,label:Yt(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 Ym(){const{runId:e,workflowId:t}=fg(),n=na(),{currentRun:r,fetchRun:o}=Nr(),s=u.useRef();u.useEffect(()=>(e&&o(e),()=>{s.current&&clearInterval(s.current)}),[e,o]),u.useEffect(()=>(s.current&&clearInterval(s.current),r&&(r.status==="queued"||r.status==="running")&&(s.current=setInterval(()=>{e&&o(e)},3e3)),()=>{s.current&&clearInterval(s.current)}),[r?.status,e,o]);const l=async()=>{e&&(await Wt.cancel(e),o(e))},i=async()=>{e&&(await Wt.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 c=r.completedAt&&r.startedAt?r.completedAt-r.startedAt:r.startedAt?Date.now()-r.startedAt:void 0,d=t?decodeURIComponent(t):r.workflowId;return a.jsxs("div",{className:"flex h-full",children:[a.jsx(ha,{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(d)}`),children:d}),a.jsx(da,{className:"h-3 w-3 text-muted-foreground"}),a.jsx("span",{className:"font-mono text-foreground",children:r0(r.id)})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(wo,{status:r.status}),a.jsx("span",{className:"font-mono text-[13px] text-muted-foreground",children:Yt(c)})]}),a.jsx("div",{className:"rounded-lg border p-4",children:a.jsx(a4,{steps:r.steps,totalDuration:c,onRetryRun:r.status==="failed"?i:void 0})})]})}),a.jsx("div",{className:"w-[320px] shrink-0 border-l",children:a.jsx(Mk,{run:r,onCancel:r.status==="running"?l:void 0,onRetry:r.status==="failed"?i:void 0})})]})}function d4(){const e=Nr(r=>r.connectSSE),t=Nr(r=>r.fetchHealth),n=Nr(r=>r.fetchWorkflows);return u.useEffect(()=>{const r=e();t(),n();const o=setInterval(t,3e4);return()=>{r(),clearInterval(o)}},[e,t,n]),a.jsx(f2,{children:a.jsx(c2,{delayDuration:200,children:a.jsx(hw,{children:a.jsx(fw,{children:a.jsxs(Jr,{element:a.jsx(BC,{}),children:[a.jsx(Jr,{path:"/",element:a.jsx(Fk,{})}),a.jsx(Jr,{path:"/workflows/:workflowId",element:a.jsx(i4,{})}),a.jsx(Jr,{path:"/workflows/:workflowId/runs/:runId",element:a.jsx(Ym,{})}),a.jsx(Jr,{path:"/runs/:runId",element:a.jsx(Ym,{})})]})})})})})}Nc.createRoot(document.getElementById("root")).render(a.jsx(vt.StrictMode,{children:a.jsx(d4,{})}));
|