Skip to content

Instantly share code, notes, and snippets.

@RobPruzan
Last active January 16, 2025 00:37
Show Gist options
  • Save RobPruzan/e3f86b0272b973274535f7c6578ae463 to your computer and use it in GitHub Desktop.
Save RobPruzan/e3f86b0272b973274535f7c6578ae463 to your computer and use it in GitHub Desktop.
'use client';
!function(e){"use strict";var t="bippy-0.2.0",n=()=>{},r=e=>{try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&setTimeout((()=>{throw new Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")}))}catch{}},o=e=>{const o=new Map;let i=0;const a={checkDCE:r,supportsFiber:!0,supportsFlight:!0,hasUnsupportedRendererAttached:!1,renderers:o,onCommitFiberRoot:n,onCommitFiberUnmount:n,onPostCommitFiberRoot:n,inject(t){const n=++i;return o.set(n,t),a._instrumentationIsActive||(a._instrumentationIsActive=!0,e?.()),n},_instrumentationSource:t,_instrumentationIsActive:!1};try{Object.defineProperty(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{value:a})}catch{}return a},i=()=>Object.prototype.hasOwnProperty.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),a=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return t&&e?.(),i()||(t=o(e)),t};try{"undefined"==typeof window||!window.document?.createElement&&"ReactNative"!==window.navigator?.product||"undefined"==typeof process||null==process.versions||null==process.versions.node||o()}catch{}var s,l,c,u,d,p,f,h,m,g,v,w,y=e=>{switch(e.tag){case 5:case 26:case 27:return!0;default:return"string"==typeof e.type}},b=e=>{switch(e.tag){case 0:case 1:case 15:case 14:case 11:return!0;default:return!1}},x=e=>{const t=e.memoizedProps,n=e.alternate?.memoizedProps||{},r=e.flags??e.effectTag??0;switch(e.tag){case 1:case 0:case 9:case 11:case 14:case 15:return!(1&~r);default:return!e.alternate||(n!==t||e.alternate.memoizedState!==e.memoizedState||e.alternate.ref!==e.ref)}},_=e=>{switch(e.tag){case 18:case 6:case 7:case 23:case 22:return!0;case 3:return!1;default:{const t="object"==typeof e.type&&null!==e.type?e.type.$$typeof:e.type;switch("symbol"==typeof t?t.toString():t){case 60111:case"Symbol(react.concurrent_mode)":case"Symbol(react.async_mode)":return!0;default:return!1}}}},k=(e,t,n=!1)=>{if(!e)return null;if(!0===t(e))return e;let r=n?e.return:e.child;for(;r;){const e=k(r,t,n);if(e)return e;r=n?null:r.sibling}return null},S=e=>{const t=e;return"function"==typeof t?t:"object"==typeof t&&t?S(t.type||t.render):null},z=e=>{const t=e;if("function"!=typeof t&&("object"!=typeof t||!t))return null;const n=t.displayName||t.name||null;if(n)return n;const r=S(t);return r&&(r.displayName||r.name)||null},C=()=>"reactDevtoolsAgent"in a(),M=e=>{try{if("string"==typeof e.version&&e.bundleType>0)return"development"}catch{}return"production"},$=0,E=new WeakMap,A=e=>{let t=E.get(e);return!t&&e.alternate&&(t=E.get(e.alternate)),t||(t=$++,((e,t=$++)=>{E.set(e,t)})(e,t)),t},N=(e,t,n)=>{let r=t;for(;null!=r;){E.has(r)||A(r);if(!_(r)&&x(r)&&e(r,"mount"),13===r.tag){if(null!==r.memoizedState){const t=r.child,n=t?t.sibling:null;if(n){const t=n.child;null!==t&&N(e,t,!1)}}else{let t=null;null!==r.child&&(t=r.child.child),null!==t&&N(e,t,!1)}}else null!=r.child&&N(e,r.child,!0);r=n?r.sibling:null}},F=(e,t,n,r)=>{if(E.has(t)||A(t),!n)return;E.has(n)||A(n);const o=13===t.tag;!_(t)&&x(t)&&e(t,"update");const i=o&&null!==n.memoizedState,a=o&&null!==t.memoizedState;if(i&&a){const r=t.child?.sibling??null,o=n.child?.sibling??null;null!==r&&null!==o&&F(e,r,o)}else if(i&&!a){const n=t.child;null!==n&&N(e,n,!0)}else if(!i&&a){R(e,n);const r=t.child?.sibling??null;null!==r&&N(e,r,!0)}else if(t.child!==n.child){let n=t.child;for(;n;){if(n.alternate){const t=n.alternate;F(e,n,t)}else N(e,n,!1);n=n.sibling}}},P=(e,t)=>{!(3===t.tag)&&_(t)||e(t,"unmount")},R=(e,t)=>{const n=13===t.tag&&null!==t.memoizedState;let r=t.child;if(n){const e=t.child,n=e?.sibling??null;r=n?.child??null}for(;null!==r;)null!==r.return&&(P(e,r),R(e,r)),r=r.sibling},L=0,T=new WeakMap,j=({onRender:e})=>(t,n,r)=>{((e,t)=>{const n="current"in e?e.current:e;let r=T.get(e);r||(r={prevFiber:null,id:L++},T.set(e,r));const{prevFiber:o}=r;if(n)if(null!==o){const e=o&&null!=o.memoizedState&&null!=o.memoizedState.element&&!0!==o.memoizedState.isDehydrated,r=null!=n.memoizedState&&null!=n.memoizedState.element&&!0!==n.memoizedState.isDehydrated;!e&&r?N(t,n,!1):e&&r?F(t,n,n.alternate):e&&!r&&P(t,n)}else N(t,n,!0);else P(t,n);r.prevFiber=n})(n,e)},D=()=>{o()};D();var O,V,I,H,W={},U=[],B=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,X=Array.isArray;function Y(e,t){for(var n in t)e[n]=t[n];return e}function q(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function G(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?s.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return K(e,a,r,o,null)}function K(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++c:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(i),i}function J(e){return e.children}function Z(e,t){this.props=e,this.context=t}function Q(e,t){if(null==t)return e.__?Q(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Q(e):null}function ee(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return ee(e)}}function te(e){(!e.__d&&(e.__d=!0)&&d.push(e)&&!ne.__r++||p!==l.debounceRendering)&&((p=l.debounceRendering)||f)(ne)}function ne(){var e,t,n,r,o,i,a,s;for(d.sort(h);e=d.shift();)e.__d&&(t=d.length,r=void 0,i=(o=(n=e).__v).__e,a=[],s=[],n.__P&&((r=Y({},o)).__v=o.__v+1,l.vnode&&l.vnode(r),ue(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,a,null==i?Q(o):i,!!(32&o.__u),s),r.__v=o.__v,r.__.__k[r.__i]=r,de(a,r,s),r.__e!=i&&ee(r)),d.length>t&&d.sort(h));ne.__r=0}function re(e,t,n,r,o,i,a,s,l,c,u){var d,p,f,h,m,g,v=r&&r.__k||U,w=t.length;for(l=function(e,t,n,r){var o,i,a,s,l,c=t.length,u=n.length,d=u,p=0;for(e.__k=[],o=0;o<c;o++)null!=(i=t[o])&&"boolean"!=typeof i&&"function"!=typeof i?(s=o+p,(i=e.__k[o]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?K(null,i,null,null,null):X(i)?K(J,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?K(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,a=null,-1!==(l=i.__i=ae(i,n,s,d))&&(d--,(a=n[l])&&(a.__u|=2)),null==a||null===a.__v?(-1==l&&p--,"function"!=typeof i.type&&(i.__u|=4)):l!==s&&(l==s-1?p--:l==s+1?p++:(l>s?p--:p++,i.__u|=4))):i=e.__k[o]=null;if(d)for(o=0;o<u;o++)null!=(a=n[o])&&!(2&a.__u)&&(a.__e==r&&(r=Q(a)),fe(a,a));return r}(n,t,v,l),d=0;d<w;d++)null!=(f=n.__k[d])&&(p=-1===f.__i?W:v[f.__i]||W,f.__i=d,g=ue(e,f,p,o,i,a,s,l,c,u),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&pe(p.ref,null,f),u.push(f.ref,f.__c||h,f)),null==m&&null!=h&&(m=h),4&f.__u||p.__k===f.__k?l=oe(f,l,e):"function"==typeof f.type&&void 0!==g?l=g:h&&(l=h.nextSibling),f.__u&=-7);return n.__e=m,l}function oe(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=oe(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Q(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function ie(e,t){return t=t||[],null==e||"boolean"==typeof e||(X(e)?e.some((function(e){ie(e,t)})):t.push(e)),t}function ae(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type&&!(2&l.__u))return n;if(("function"!=typeof i||i===J||o)&&r>(null==l||2&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(2&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(2&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function se(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||B.test(t)?n:n+"px"}function le(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||se(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||se(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(m,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=g,e.addEventListener(t,i?w:v,i)):e.removeEventListener(t,i?w:v,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function ce(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=g++;else if(t.t<n.u)return;return n(l.event?l.event(t):t)}}}function ue(e,t,n,r,o,i,a,c,u,d){var p,f,h,m,g,v,w,y,b,x,_,k,S,z,C,M,$,E=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),i=[c=t.__e=n.__e]),(p=l.__b)&&p(t);e:if("function"==typeof E)try{if(y=t.props,b="prototype"in E&&E.prototype.render,x=(p=E.contextType)&&r[p.__c],_=p?x?x.props.value:p.__:r,n.__c?w=(f=t.__c=n.__c).__=f.__E:(b?t.__c=f=new E(y,_):(t.__c=f=new Z(y,_),f.constructor=E,f.render=he),x&&x.sub(f),f.props=y,f.state||(f.state={}),f.context=_,f.__n=r,h=f.__d=!0,f.__h=[],f._sb=[]),b&&null==f.__s&&(f.__s=f.state),b&&null!=E.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=Y({},f.__s)),Y(f.__s,E.getDerivedStateFromProps(y,f.__s))),m=f.props,g=f.state,f.__v=t,h)b&&null==E.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),b&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(b&&null==E.getDerivedStateFromProps&&y!==m&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(y,_),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(y,f.__s,_)||t.__v===n.__v)){for(t.__v!==n.__v&&(f.props=y,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),k=0;k<f._sb.length;k++)f.__h.push(f._sb[k]);f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(y,f.__s,_),b&&null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(m,g,v)}))}if(f.context=_,f.props=y,f.__P=e,f.__e=!1,S=l.__r,z=0,b){for(f.state=f.__s,f.__d=!1,S&&S(t),p=f.render(f.props,f.state,f.context),C=0;C<f._sb.length;C++)f.__h.push(f._sb[C]);f._sb=[]}else do{f.__d=!1,S&&S(t),p=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++z<25);f.state=f.__s,null!=f.getChildContext&&(r=Y(Y({},r),f.getChildContext())),b&&!h&&null!=f.getSnapshotBeforeUpdate&&(v=f.getSnapshotBeforeUpdate(m,g)),c=re(e,X(M=null!=p&&p.type===J&&null==p.key?p.props.children:p)?M:[M],t,n,r,o,i,a,c,u,d),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),w&&(f.__E=f.__=null)}catch(e){if(t.__v=null,u||null!=i)if(e.then){for(t.__u|=u?160:128;c&&8===c.nodeType&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else for($=i.length;$--;)q(i[$]);else t.__e=n.__e,t.__k=n.__k;l.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=function(e,t,n,r,o,i,a,c,u){var d,p,f,h,m,g,v,w=n.props,y=t.props,b=t.type;if("svg"===b?o="http://www.w3.org/2000/svg":"math"===b?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(d=0;d<i.length;d++)if((m=i[d])&&"setAttribute"in m==!!b&&(b?m.localName===b:3===m.nodeType)){e=m,i[d]=null;break}if(null==e){if(null===b)return document.createTextNode(y);e=document.createElementNS(o,b,y.is&&y),c&&(l.__m&&l.__m(t,i),c=!1),i=null}if(null===b)w===y||c&&e.data===y||(e.data=y);else{if(i=i&&s.call(e.childNodes),w=n.props||W,!c&&null!=i)for(w={},d=0;d<e.attributes.length;d++)w[(m=e.attributes[d]).name]=m.value;for(d in w)if(m=w[d],"children"==d);else if("dangerouslySetInnerHTML"==d)f=m;else if(!(d in y)){if("value"==d&&"defaultValue"in y||"checked"==d&&"defaultChecked"in y)continue;le(e,d,null,m,o)}for(d in y)m=y[d],"children"==d?h=m:"dangerouslySetInnerHTML"==d?p=m:"value"==d?g=m:"checked"==d?v=m:c&&"function"!=typeof m||w[d]===m||le(e,d,m,w[d],o);if(p)c||f&&(p.__html===f.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(f&&(e.innerHTML=""),re(e,X(h)?h:[h],t,n,r,"foreignObject"===b?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Q(n,0),c,u),null!=i)for(d=i.length;d--;)q(i[d]);c||(d="value","progress"===b&&null==g?e.removeAttribute("value"):void 0!==g&&(g!==e[d]||"progress"===b&&!g||"option"===b&&g!==w[d])&&le(e,d,g,w[d],o),d="checked",void 0!==v&&v!==e[d]&&le(e,d,v,w[d],o))}return e}(n.__e,t,n,r,o,i,a,u,d);return(p=l.diffed)&&p(t),128&t.__u?void 0:c}function de(e,t,n){for(var r=0;r<n.length;r++)pe(n[r],n[++r],n[++r]);l.__c&&l.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){l.__e(e,t.__v)}}))}function pe(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){l.__e(e,n)}}function fe(e,t,n){var r,o;if(l.unmount&&l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||pe(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){l.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&fe(r[o],t,n||"function"!=typeof e.type);n||q(e.__e),e.__c=e.__=e.__e=void 0}function he(e,t,n){return this.constructor(e,n)}function me(e,t,n){var r,o,i,a;t===document&&(t=document.documentElement),l.__&&l.__(e,t),o=(r="function"==typeof n)?null:t.__k,i=[],a=[],ue(t,e=(!r&&n||t).__k=G(J,null,[e]),o||W,W,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?s.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),de(i,e,a)}s=U.slice,l={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},c=0,u=function(e){return null!=e&&null==e.constructor},Z.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Y({},this.state),"function"==typeof e&&(e=e(Y({},n),this.props)),e&&Y(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),te(this))},Z.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),te(this))},Z.prototype.render=J,d=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,h=function(e,t){return e.__v.__b-t.__v.__b},ne.__r=0,m=/(PointerCapture)$|Capture$/i,g=0,v=ce(!1),w=ce(!0);var ge=0,ve=[],we=l,ye=we.__b,be=we.__r,xe=we.diffed,_e=we.__c,ke=we.unmount,Se=we.__;function ze(e,t){we.__h&&we.__h(V,e,ge||t),ge=0;var n=V.__H||(V.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Ce(e){return ge=1,function(e,t){var n=ze(O++,2);if(n.t=e,!n.__c&&(n.__=[je(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=V,!V.u)){var r=function(e,t,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,r);var a=n.__c.props!==e;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),o&&o.call(this,e,t,r)||a};V.u=!0;var o=V.shouldComponentUpdate,i=V.componentWillUpdate;V.componentWillUpdate=function(e,t,n){if(this.__e){var a=o;o=void 0,r(e,t,n),o=a}i&&i.call(this,e,t,n)},V.shouldComponentUpdate=r}return n.__N||n.__}(je,e)}function Me(e,t){var n=ze(O++,3);!we.__s&&Te(n.__H,t)&&(n.__=e,n.i=t,V.__H.__h.push(n))}function $e(e){return ge=5,Ee((function(){return{current:e}}),[])}function Ee(e,t){var n=ze(O++,7);return Te(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ae(e,t){return ge=8,Ee((function(){return e}),t)}function Ne(){for(var e;e=ve.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Re),e.__H.__h.forEach(Le),e.__H.__h=[]}catch(t){e.__H.__h=[],we.__e(t,e.__v)}}we.__b=function(e){V=null,ye&&ye(e)},we.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Se&&Se(e,t)},we.__r=function(e){be&&be(e),O=0;var t=(V=e.__c).__H;t&&(I===V?(t.__h=[],V.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(Re),t.__h.forEach(Le),t.__h=[],O=0)),I=V},we.diffed=function(e){xe&&xe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ve.push(t)&&H===we.requestAnimationFrame||((H=we.requestAnimationFrame)||Pe)(Ne)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),I=V=null},we.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Re),e.__h=e.__h.filter((function(e){return!e.__||Le(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],we.__e(n,e.__v)}})),_e&&_e(e,t)},we.unmount=function(e){ke&&ke(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Re(e)}catch(e){t=e}})),n.__H=void 0,t&&we.__e(t,n.__v))};var Fe="function"==typeof requestAnimationFrame;function Pe(e){var t,n=function(){clearTimeout(r),Fe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Fe&&(t=requestAnimationFrame(n))}function Re(e){var t=V,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),V=t}function Le(e){var t=V;e.__c=e.__(),V=t}function Te(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function je(e,t){return"function"==typeof t?t(e):t}var De=Symbol.for("preact-signals");function Oe(){if(We>1)We--;else{for(var e,t=!1;void 0!==He;){var n=He;for(He=void 0,Ue++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Ge(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(Ue=0,We--,t)throw e}}var Ve,Ie=void 0,He=void 0,We=0,Ue=0,Be=0;function Xe(e){if(void 0!==Ie){var t=e.n;if(void 0===t||t.t!==Ie)return t={i:0,S:e,p:Ie.s,n:void 0,t:Ie,e:void 0,x:void 0,r:t},void 0!==Ie.s&&(Ie.s.n=t),Ie.s=t,e.n=t,32&Ie.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Ie.s,t.n=void 0,Ie.s.n=t,Ie.s=t),t}}function Ye(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function qe(e){return new Ye(e)}function Ge(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ke(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Je(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function Ze(e){Ye.call(this,void 0),this.x=e,this.s=void 0,this.g=Be-1,this.f=4}function Qe(e){var t=e.u;if(e.u=void 0,"function"==typeof t){We++;var n=Ie;Ie=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,et(e),t}finally{Ie=n,Oe()}}}function et(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Qe(e)}function tt(e){if(Ie!==this)throw new Error("Out-of-order effect");Je(this),Ie=e,this.f&=-2,8&this.f&&et(this),Oe()}function nt(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function rt(e){var t=new nt(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function ot(e,t){l[e]=t.bind(null,l[e]||function(){})}function it(e){Ve&&Ve(),Ve=e&&e.S()}function at(e){var t=this,n=e.data,r=function(e){return Ee((function(){return qe(e)}),[])}(n);r.value=n;var o=Ee((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e,n=t.__$u.S(),r=o.value;n(),u(r)||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r},new Ze((function(){var e=r.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return o.value}function st(e,t,n,r){var o=t in e&&void 0===e.ownerSVGElement,i=qe(n);return{o:function(e,t){i.value=e,r=t},d:rt((function(){var n=i.value.value;r[t]!==n&&(r[t]=n,o?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}function lt(e,t){return e===t||e!=e&&t!=t}Ye.prototype.brand=De,Ye.prototype.h=function(){return!0},Ye.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Ye.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Ye.prototype.subscribe=function(e){var t=this;return rt((function(){var n=t.value,r=Ie;Ie=void 0;try{e(n)}finally{Ie=r}}))},Ye.prototype.valueOf=function(){return this.value},Ye.prototype.toString=function(){return this.value+""},Ye.prototype.toJSON=function(){return this.value},Ye.prototype.peek=function(){var e=Ie;Ie=void 0;try{return this.value}finally{Ie=e}},Object.defineProperty(Ye.prototype,"value",{get:function(){var e=Xe(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ue>100)throw new Error("Cycle detected");this.v=e,this.i++,Be++,We++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{Oe()}}}}),(Ze.prototype=new Ye).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Be)return!0;if(this.g=Be,this.f|=1,this.i>0&&!Ge(this))return this.f&=-2,!0;var e=Ie;try{Ke(this),Ie=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Ie=e,Je(this),this.f&=-2,!0},Ze.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Ye.prototype.S.call(this,e)},Ze.prototype.U=function(e){if(void 0!==this.t&&(Ye.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},Ze.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Ze.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Xe(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),nt.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},nt.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Qe(this),Ke(this),We++;var e=Ie;return Ie=this,tt.bind(this,e)},nt.prototype.N=function(){2&this.f||(this.f|=2,this.o=He,He=this)},nt.prototype.d=function(){this.f|=8,1&this.f||et(this)},at.displayName="_st",Object.defineProperties(Ye.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:at},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ot("__b",(function(e,t){if("string"==typeof t.type){var n,r=t.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof Ye&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)})),ot("__r",(function(e,t){it();var n,r,o=t.__c;o&&(o.__$f&=-2,void 0===(n=o.__$u)&&(o.__$u=(rt((function(){r=this})),r.c=function(){o.__$f|=1,o.setState({})},n=r))),it(n),e(t)})),ot("__e",(function(e,t,n,r){it(),e(t,n,r)})),ot("diffed",(function(e,t){var n;if(it(),"string"==typeof t.type&&(n=t.__e)){var r=t.__np,o=t.props;if(r){var i=n.U;if(i)for(var a in i){var s=i[a];void 0===s||a in r||(s.d(),i[a]=void 0)}else n.U=i={};for(var l in r){var c=i[l],u=r[l];void 0===c?(c=st(n,l,u,o),i[l]=c):c.o(u,o)}}}e(t)})),ot("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)})),ot("__h",(function(e,t,n,r){(r<3||9===r)&&(t.__$f|=2),e(t,n,r)})),Z.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var r in t)return!0;for(var o in e)if("__source"!==o&&e[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in e))return!0;return!1};var ct=(e,t,n)=>e+(t-e)*n;function ut(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ut(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}var dt=e=>{const t=mt(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),pt(n,t)||ht(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},pt=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?pt(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},ft=/^\[(.+)\]$/,ht=e=>{if(ft.test(e)){const t=ft.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},mt=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return yt(Object.entries(e.classGroups),n).forEach((([e,n])=>{gt(n,r,e,t)})),r},gt=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return wt(e)?void gt(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{gt(o,vt(t,e),n,r)}))}else{(""===e?t:vt(t,e)).classGroupId=n}}))},vt=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},wt=e=>e.isThemeGetter,yt=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,bt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},xt=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===u){a=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return n?e=>n({className:e,parseClassName:a}):a},_t=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},kt=/\s+/;function St(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=zt(e))&&(r&&(r+=" "),r+=t);return r}var zt=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=zt(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ct(e,...t){let n,r,o,i=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:bt(e.cacheSize),parseClassName:xt(e),...dt(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(kt);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let p=Boolean(d),f=r(p?u.substring(0,d):u);if(!f){if(!p){s=t+(s.length>0?" "+s:s);continue}if(f=r(u),!f){s=t+(s.length>0?" "+s:s);continue}p=!1}const h=_t(l).join(":"),m=c?h+"!":h,g=m+f;if(i.includes(g))continue;i.push(g);const v=o(f,p);for(let e=0;e<v.length;++e){const t=v[e];i.push(m+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(St.apply(null,arguments))}}var Mt=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},$t=/^\[(?:([a-z-]+):)?(.+)\]$/i,Et=/^\d+\/\d+$/,At=new Set(["px","full","screen"]),Nt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ft=/\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$/,Pt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Rt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tt=e=>Dt(e)||At.has(e)||Et.test(e),jt=e=>Jt(e,"length",Zt),Dt=e=>Boolean(e)&&!Number.isNaN(Number(e)),Ot=e=>Jt(e,"number",Dt),Vt=e=>Boolean(e)&&Number.isInteger(Number(e)),It=e=>e.endsWith("%")&&Dt(e.slice(0,-1)),Ht=e=>$t.test(e),Wt=e=>Nt.test(e),Ut=new Set(["length","size","percentage"]),Bt=e=>Jt(e,Ut,Qt),Xt=e=>Jt(e,"position",Qt),Yt=new Set(["image","url"]),qt=e=>Jt(e,Yt,tn),Gt=e=>Jt(e,"",en),Kt=()=>!0,Jt=(e,t,n)=>{const r=$t.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Zt=e=>Ft.test(e)&&!Pt.test(e),Qt=()=>!1,en=e=>Rt.test(e),tn=e=>Lt.test(e),nn=Ct((()=>{const e=Mt("colors"),t=Mt("spacing"),n=Mt("blur"),r=Mt("brightness"),o=Mt("borderColor"),i=Mt("borderRadius"),a=Mt("borderSpacing"),s=Mt("borderWidth"),l=Mt("contrast"),c=Mt("grayscale"),u=Mt("hueRotate"),d=Mt("invert"),p=Mt("gap"),f=Mt("gradientColorStops"),h=Mt("gradientColorStopPositions"),m=Mt("inset"),g=Mt("margin"),v=Mt("opacity"),w=Mt("padding"),y=Mt("saturate"),b=Mt("scale"),x=Mt("sepia"),_=Mt("skew"),k=Mt("space"),S=Mt("translate"),z=()=>["auto",Ht,t],C=()=>[Ht,t],M=()=>["",Tt,jt],$=()=>["auto",Dt,Ht],E=()=>["","0",Ht],A=()=>[Dt,Ht];return{cacheSize:500,separator:":",theme:{colors:[Kt],spacing:[Tt,jt],blur:["none","",Wt,Ht],brightness:A(),borderColor:[e],borderRadius:["none","","full",Wt,Ht],borderSpacing:C(),borderWidth:M(),contrast:A(),grayscale:E(),hueRotate:A(),invert:E(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[It,jt],inset:z(),margin:z(),opacity:A(),padding:C(),saturate:A(),scale:A(),sepia:E(),skew:A(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",Ht]}],container:["container"],columns:[{columns:[Wt]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Ht]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Vt,Ht]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ht]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",Vt,Ht]}],"grid-cols":[{"grid-cols":[Kt]}],"col-start-end":[{col:["auto",{span:["full",Vt,Ht]},Ht]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Kt]}],"row-start-end":[{row:["auto",{span:[Vt,Ht]},Ht]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ht]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ht]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ht,t]}],"min-w":[{"min-w":[Ht,t,"min","max","fit"]}],"max-w":[{"max-w":[Ht,t,"none","full","min","max","fit","prose",{screen:[Wt]},Wt]}],h:[{h:[Ht,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ht,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ht,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ht,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Wt,jt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ot]}],"font-family":[{font:[Kt]}],"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",Ht]}],"line-clamp":[{"line-clamp":["none",Dt,Ot]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tt,Ht]}],"list-image":[{"list-image":["none",Ht]}],"list-style-type":[{list:["none","disc","decimal",Ht]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tt,jt]}],"underline-offset":[{"underline-offset":["auto",Tt,Ht]}],"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:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ht]}],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",Ht]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Xt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},qt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"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:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Tt,Ht]}],"outline-w":[{outline:[Tt,jt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Tt,jt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Wt,Gt]}],"shadow-color":[{shadow:[Kt]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Wt,Ht]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ht]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",Ht]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ht]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[Vt,Ht]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ht]}],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",Ht]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",Ht]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Tt,jt,Ot]}],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"]}}})),rn=(...e)=>nn(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ut(e))&&(r&&(r+=" "),r+=t);return r}(e));"undefined"!=typeof navigator&&navigator.userAgent.includes("Firefox");var on=e=>{if("undefined"==typeof window)return null;try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}},an=(e,t)=>{if("undefined"!=typeof window)try{window.localStorage.setItem(e,JSON.stringify(t))}catch{}};function sn(e){const t=e();function n(e,t){self.postMessage([e,!1,t])}self.addEventListener("message",(e=>{const[r,o]=e.data;try{Promise.resolve(t(o)).then((e=>function(e,t){self.postMessage([e,!0,t])}(r,e)),(e=>n(r,e)))}catch(e){n(r,e)}}))}var ln=class{constructor(e){this.callback=e,this.deferredMap=new Map,this.count=0,this.sync=!1}setupWorker(e){e.addEventListener("message",(e=>{const[t,n,r]=e.data,o=this.deferredMap.get(t);o&&(n?o.resolve(r):o.reject(r),this.deferredMap.delete(t))}))}async call(e,t){if(this.sync)return this.setup||(this.setup=this.callback()),this.setup(e);this.worker||(this.worker=function(e){const t=`(${sn.toString()})(${e.toString()})`,n=URL.createObjectURL(new Blob([t]));return new Worker(n)}(this.callback),this.setupWorker(this.worker));const n=function(){let e,t;return{promise:new Promise(((n,r)=>{e=n,t=r})),resolve(t){e(t)},reject(e){t(e)}}}(),r=this.count++;return this.deferredMap.set(r,n),this.worker.postMessage([r,e],{transfer:t?.transfer}),n.promise}destroy(){this.deferredMap.clear(),this.worker?.terminate()}},cn=class{constructor(e){this.callback=e,this.sync=!0}async call(e,t){return this.setup||(this.setup=this.callback()),this.setup(e)}destroy(){}};function un(){let e,t;var n;return(n=t||(t={}))[n.Commit=1]="Commit",n[n.Unstable=2]="Unstable",n[n.Unnecessary=4]="Unnecessary",async t=>{switch(t.type){case"set-canvas":{const n=t.payload.getContext("2d");n&&(e=n)}break;case"resize":if(e){const{dpi:n,width:r,height:o}=t.payload;e.canvas.width=r,e.canvas.height=o,e.resetTransform(),e.scale(n,n)}break;case"fade-out-outline":if(e){const{dpi:n,drawingQueue:r,mergedLabels:o}=t.payload;e.clearRect(0,0,e.canvas.width/n,e.canvas.height/n),e.save();for(let t=0,n=r.length;t<n;t++){const{rect:n,color:o,alpha:i,fillAlpha:a}=r[t],s=`${o.r},${o.g},${o.b}`;e.strokeStyle=`rgba(${s},${i})`,e.lineWidth=1,e.fillStyle=`rgba(${s},${a})`,e.beginPath(),e.rect(n.x,n.y,n.width,n.height),e.stroke(),e.fill()}e.restore();for(let t=0,n=o.length;t<n;t++){const{alpha:n,rect:r,color:i,reasons:a,labelText:s}=o[t],l=4&a?`${s}⚠️`:s;e.save(),e.font="11px Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace";const c=e.measureText(l).width,u=11,d=r.x,p=r.y-u-4;e.fillStyle=`rgba(${i.r},${i.g},${i.b},${n})`,e.fillRect(d,p,c+4,u+4),e.fillStyle=`rgba(255,255,255,${n})`,e.fillText(l,d+2,p+u)}}}}}(()=>{const e=on("useExtensionWorker");(e=>{if("undefined"!=typeof window)try{window.localStorage.removeItem(e)}catch{}})("useExtensionWorker"),e?new cn(un):new ln(un)})(),"undefined"!=typeof window&&function e(){requestAnimationFrame(e)}();var dn=24,pn=360,fn=36,hn="react-scan-widget-settings",mn=qe(!1),gn=qe(null),vn={corner:"top-left",dimensions:{isFullWidth:!1,isFullHeight:!1,width:pn,height:fn,position:{x:dn,y:dn}},lastDimensions:{isFullWidth:!1,isFullHeight:!1,width:pn,height:fn,position:{x:dn,y:dn}}},wn=qe((()=>{const e=on(hn);return e?{corner:e.corner,dimensions:{isFullWidth:!1,isFullHeight:!1,width:pn,height:fn,position:e.dimensions.position},lastDimensions:e.dimensions}:(an(hn,{corner:vn.corner,dimensions:vn.dimensions,lastDimensions:vn.lastDimensions}),vn)})()),yn=()=>{if("undefined"==typeof window)return;const{dimensions:e}=wn.value,{width:t,height:n,position:r}=e;wn.value={...wn.value,dimensions:{isFullWidth:t>=window.innerWidth-48,isFullHeight:n>=window.innerHeight-48,width:t,height:n,position:r}}};function bn(){return!1}function xn(e){function t(t){return this.shouldComponentUpdate=bn,G(e,t)}return t.displayName=`Memo(${e.displayName||e.name})`,t.prototype.isReactComponent=!0,t._forwarded=!0,t}function _n(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function kn(e,t){this.props=e,this.context=t}(kn.prototype=new Z).isPureReactComponent=!0,kn.prototype.shouldComponentUpdate=function(e,t){return _n(this.props,e)||_n(this.state,t)};var Sn=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Sn&&Sn(e)};var zn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var Cn=l.__e;l.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Cn(e,t,n,r)};var Mn=l.unmount;function $n(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return $n(e,t,n)}))),e}function En(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return En(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function An(){this.__u=0,this.o=null,this.__b=null}function Nn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Fn(){this.i=null,this.l=null}l.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Mn&&Mn(e)},(An.prototype=new Z).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=Nn(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=En(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},An.prototype.componentWillUnmount=function(){this.o=[]},An.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=$n(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&G(J,null,e.fallback);return o&&(o.__u&=-33),[G(J,null,t.__a?null:e.children),o]};var Pn=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};(Fn.prototype=new Z).__a=function(e){var t=this,n=Nn(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Pn(t,e,r)):o()};n?n(i):i()}},Fn.prototype.render=function(e){this.i=null,this.l=new Map;var t=ie(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Fn.prototype.componentDidUpdate=Fn.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){Pn(e,n,t)}))};var Rn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ln=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Tn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,jn=/[A-Z0-9]/g,Dn="undefined"!=typeof document,On=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};Z.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Z.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Vn=l.event;function In(){}function Hn(){return this.cancelBubble}function Wn(){return this.defaultPrevented}l.event=function(e){return Vn&&(e=Vn(e)),e.persist=In,e.isPropagationStopped=Hn,e.isDefaultPrevented=Wn,e.nativeEvent=e};var Un={enumerable:!1,configurable:!0,get:function(){return this.class}},Bn=l.vnode;l.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1===n.indexOf("-");for(var i in t){var a=t[i];if(!("value"===i&&"defaultValue"in t&&null==a||Dn&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var s=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?i="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||On(t.type)?"onfocus"===s?i="onfocusin":"onblur"===s?i="onfocusout":Tn.test(i)&&(i=s):s=i="oninput":o&&Ln.test(i)?i=i.replace(jn,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&r[i=s]&&(i="oninputCapture"),r[i]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=ie(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=ie(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",Un)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Rn,Bn&&Bn(e)};var Xn=l.__r;l.__r=function(e){Xn&&Xn(e),e.__c};var Yn=l.diffed;l.diffed=function(e){Yn&&Yn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var qn=0;function Gn(e,t,n,r,o,i){t||(t={});var a,s,c=t;"ref"in t&&(a=t.ref,delete t.ref);var u={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--qn,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===c[s]&&(c[s]=a[s]);return l.vnode&&l.vnode(u),u}var Kn=function(e){function t(t){if(!("ref"in t))return e(t,null);var n=t.ref;delete t.ref;var r=e(t,n);return t.ref=n,r}return t.$$typeof=zn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}((({size:e=15,name:t,fill:n="currentColor",stroke:r="currentColor",className:o,externalURL:i="",style:a},s)=>{const l=Array.isArray(e)?e[0]:e,c=Array.isArray(e)?e[1]||e[0]:e,u=`${i}#${t}`;return Gn("svg",{ref:s,width:`${l}px`,height:`${c}px`,fill:n,stroke:r,className:o,style:{...a,minWidth:`${l}px`,maxWidth:`${l}px`,minHeight:`${c}px`,maxHeight:`${c}px`},children:[Gn("title",{children:t}),Gn("use",{href:u})]})})),Jn=new WeakMap,Zn={activeFlashes:new Map,create(e){const t=e.querySelector(".react-scan-flash-overlay"),n=t instanceof HTMLElement?t:(()=>{const t=document.createElement("div");t.className="react-scan-flash-overlay",e.appendChild(t);const n=((e,t)=>{const n=t.bind(null,e);return document.addEventListener("scroll",n,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",n,{capture:!0})}})(e,(()=>{e.querySelector(".react-scan-flash-overlay")&&this.create(e)}));return this.activeFlashes.set(e,{element:e,overlay:t,scrollCleanup:n}),t})(),r=Jn.get(n);r&&(clearTimeout(r),Jn.delete(n)),requestAnimationFrame((()=>{n.style.transition="none",n.style.opacity="0.9";const t=setTimeout((()=>{n.style.transition="opacity 150ms ease-out",n.style.opacity="0";const t=setTimeout((()=>{n.parentNode&&n.parentNode.removeChild(n);const t=this.activeFlashes.get(e);t?.scrollCleanup&&t.scrollCleanup(),this.activeFlashes.delete(e),Jn.delete(n)}),150);Jn.set(n,t)}),300);Jn.set(n,t)}))},cleanup(e){const t=this.activeFlashes.get(e);if(t){const n=Jn.get(t.overlay);n&&(clearTimeout(n),Jn.delete(t.overlay)),t.overlay.parentNode&&t.overlay.parentNode.removeChild(t.overlay),t.scrollCleanup&&t.scrollCleanup(),this.activeFlashes.delete(e)}},cleanupAll(){for(const[,e]of this.activeFlashes)this.cleanup(e.element)}},Qn=new Map,er=new Map,tr=new Map,nr=/\(\s*{\s*(?<props>[^}]+)\s*}\s*\)/,rr=e=>!!e&&(e instanceof Promise||"object"==typeof e&&"then"in e),or=(e,t=2,n=new WeakSet)=>{if(rr(e))return{type:"promise",displayValue:"Promise"};if(null===e)return{type:"null",displayValue:"null"};if(void 0===e)return{type:"undefined",displayValue:"undefined"};switch(typeof e){case"object":if(n.has(e))return{type:"circular",displayValue:"[Circular Reference]"};if(!e)return{type:"null",displayValue:"null"};n.add(e);try{const r={};if(e instanceof Element)return r.type="Element",r.tagName=e.tagName.toLowerCase(),r.displayValue=e.tagName.toLowerCase(),r;if(e instanceof Map){if(r.type="Map",r.size=e.size,r.displayValue=`Map(${e.size})`,t>0){const o={};let i=0;for(const[r,a]of e.entries()){if(i>=50)break;try{o[String(r)]=or(a,t-1,n)}catch{o[String(i)]={type:"error",displayValue:"Error accessing Map entry"}}i++}r.entries=o}return r}if(e instanceof Set)return r.type="Set",r.size=e.size,r.displayValue=`Set(${e.size})`,t>0&&(r.items=Array.from(e).slice(0,50).map((e=>or(e,t-1,n)))),r;if(e instanceof Date)return r.type="Date",r.value=e.toISOString(),r.displayValue=e.toLocaleString(),r;if(e instanceof RegExp)return r.type="RegExp",r.value=e.toString(),r.displayValue=e.toString(),r;if(e instanceof Error)return r.type="Error",r.name=e.name,r.message=e.message,r.displayValue=`${e.name}: ${e.message}`,r;if(e instanceof ArrayBuffer)return r.type="ArrayBuffer",r.byteLength=e.byteLength,r.displayValue=`ArrayBuffer(${e.byteLength})`,r;if(e instanceof DataView)return r.type="DataView",r.byteLength=e.byteLength,r.displayValue=`DataView(${e.byteLength})`,r;if(ArrayBuffer.isView(e)){const t=e;return r.type=t.constructor.name,r.length=t.length,r.byteLength=t.buffer.byteLength,r.displayValue=`${t.constructor.name}(${t.length})`,r}if(Array.isArray(e))return r.type="array",r.length=e.length,r.displayValue=`Array(${e.length})`,t>0&&(r.items=e.slice(0,50).map((e=>or(e,t-1,n)))),r;const o=Object.keys(e);if(r.type="object",r.size=o.length,r.displayValue=o.length<=5?`{${o.join(", ")}}`:`{${o.slice(0,5).join(", ")}, ...${o.length-5}}`,t>0){const i={};for(const r of o.slice(0,50))try{i[r]=or(e[r],t-1,n)}catch{i[r]={type:"error",displayValue:"Error accessing property"}}r.entries=i}return r}finally{n.delete(e)}case"string":return{type:"string",value:e,displayValue:`"${e}"`};case"function":return{type:"function",displayValue:"ƒ()",name:e.name||"anonymous"};default:return{type:typeof e,value:e,displayValue:String(e)}}},ir=()=>{Qn.clear(),er.clear(),tr.clear()},ar=e=>{if(!e)return{};if(0===e.tag||11===e.tag||15===e.tag||14===e.tag){let t=e.memoizedState;const n={};let r=0;for(;t;)t.queue&&void 0!==t.memoizedState&&(n[r]=t.memoizedState),t=t.next,r++;return n}return 1===e.tag&&e.memoizedState||{}},sr=e=>{if(!e)return{fiberProps:{current:[],changes:new Set},fiberState:{current:[],changes:new Set},fiberContext:{current:[],changes:new Set}};const t={},n=new Set,r=Dr(e)?e:e.alternate??e;if(r.memoizedProps){const e=r.memoizedProps,o=(e=>{const t=(e.type?.toString?.()||"").match(nr);return t?.groups?.props?t.groups.props.split(",").map((e=>e.trim().split(":")[0].split("=")[0].trim())).filter(Boolean):[]})(r),i=new Set(Object.keys(e));for(const n of o)if(n in e){const o=e[n];if(t[n]=rr(o)?{type:"promise",displayValue:"Promise"}:o,(o&&"object"==typeof o||"function"==typeof o)&&r.alternate?.memoizedProps){const e=o===r.alternate.memoizedProps[n]?"memoized":"unmemoized";er.set(`${n}:${e}`,0)}i.delete(n)}for(const n of i){const o=e[n];if(t[n]=rr(o)?{type:"promise",displayValue:"Promise"}:o,(o&&"object"==typeof o||"function"==typeof o)&&r.alternate?.memoizedProps){const e=o===r.alternate.memoizedProps[n]?"memoized":"unmemoized";er.set(`${n}:${e}`,0)}}const a=r.memoizedProps;for(const[e,t]of Object.entries(a))if(t&&"object"==typeof t||"function"==typeof t){if(r.alternate?.memoizedProps){const o=t===r.alternate.memoizedProps[e]?"memoized":"unmemoized";n.add(`${e}:${o}`)}}else if(r.alternate?.memoizedProps&&e in r.alternate.memoizedProps&&!lt(r.alternate.memoizedProps[e],t)){n.add(e);const t=(er.get(e)||0)+1;er.set(e,t)}}const o={current:[...Object.entries(ar(r))].map((([e,t])=>({name:e.toString(),value:t}))),changes:new Set},i={current:[...lr(r).values()].map((e=>({name:e.displayName,value:e.value}))),changes:n};return{fiberProps:{changes:new Set,current:[...Object.entries(t)].map((([e,t])=>({name:e,value:t})))},fiberState:o,fiberContext:i}},lr=e=>{const t=new Map;if(!e)return t;let n=e;for(;n;){const e=n.dependencies;if(e?.firstContext){let n=e.firstContext;for(;n;){const e=n.memoizedValue,r=n.context?.displayName;if(t.has(e),t.has(e)||t.set(n.context,{value:e,displayName:r??"UnnamedContext",contextType:null}),n===n.next)break;n=n.next}}n=n.return}return t},cr=function(e){function t(e){var t=this.props.ref;return!(t==e.ref)&&t&&(t.call?t(null):t.current=null),_n(this.props,e)}function n(n){return this.shouldComponentUpdate=t,G(e,n)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}((({text:e,children:t,onCopy:n,className:r,iconSize:o=14})=>{const i=$e(),[a,s]=Ce(!1);Me((()=>{if(a)return i.current=setTimeout((()=>s(!1)),600),()=>{clearTimeout(i.current)}}),[a]);const l=Ae((t=>{t.preventDefault(),t.stopPropagation(),navigator.clipboard.writeText(e).then((()=>{s(!0),n?.(!0,e)}),(()=>{n?.(!1,e)}))}),[e,n]),c=Gn("button",{onClick:l,type:"button",className:rn("z-10","flex items-center justify-center","hover:text-dev-pink-400","transition-colors duration-200 ease-in-out","cursor-pointer",`size-[${o}px]`,r),children:Gn(Kn,{name:"icon-"+(a?"check":"copy"),size:[o],className:rn({"text-green-500":a})})});return t?t({ClipboardIcon:c,onClick:l}):c})),ur=({value:e,onSave:t,onCancel:n})=>{const r=$e(null),[o,i]=Ce("");Me((()=>{let t="";try{t=e instanceof Date?e.toISOString().slice(0,16):e instanceof Map||e instanceof Set||e instanceof RegExp||e instanceof Error||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||"object"==typeof e&&null!==e?Jr(e):eo(e)}catch{t=String(e)}const n=Kr(t);i(n),requestAnimationFrame((()=>{r.current&&(r.current.focus(),"string"==typeof e?r.current.setSelectionRange(1,n.length-1):r.current.select())}))}),[e]);const a=Ae((e=>{const t=e.target;t&&i(t.value)}),[]);return Gn("input",{ref:r,type:e instanceof Date?"datetime-local":"text",className:"react-scan-input flex-1",value:o,onChange:a,onKeyDown:r=>{if("Enter"===r.key){r.preventDefault();try{let n;if(e instanceof Date){const e=new Date(o);if(Number.isNaN(e.getTime()))throw new Error("Invalid date");n=e}else{n=Qr(o).value}t(n)}catch{n()}}else"Escape"===r.key&&(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation(),n())},onBlur:n,step:e instanceof Date?1:void 0})},dr=({name:e,value:t,section:n,level:r,parentPath:o,objectPathMap:i=new WeakMap,changedKeys:a=new Set,allowEditing:s=!0})=>{const{fiber:l}=Fr.value,c=$e(null),u=Gr((l?.type&&z(l.type))??"Unknown",n,o??"",e),[d,p]=Ce(Nr.expandedPaths.has(u)),[f,h]=Ce(!1),m=!lt(Nr.lastRendered.get(u),t);Me((()=>{if("children"===e)return;if("context"===n)return;const o=!Nr.lastRendered.has(u),i=m&&c.current&&!o;Nr.lastRendered.set(u,t),i&&c.current&&0===r&&Zn.create(c.current)}),[t,m,u,r,e,n]);const g=Ae((()=>{p((e=>{const t=!e;return t?Nr.expandedPaths.add(u):Nr.expandedPaths.delete(u),t}))}),[u]),v=Ee((()=>"object"==typeof t&&null!==t&&"displayValue"in t?String(t.displayValue):Jr(t)),[t]),w=Ee((()=>{if("object"==typeof t&&null!==t){if("value"in t)return String(Zr(t.value));if("displayValue"in t)return String(t.displayValue)}return String(Zr(t))}),[t]),y=Ee((()=>{if(!t||"object"!=typeof t)return!1;if("type"in t){const e=t;switch(e.type){case"array":case"Map":case"Set":return(e.size??e.length??0)>0;case"object":return(e.size??0)>0;case"ArrayBuffer":case"DataView":return(e.byteLength??0)>0;case"circular":case"promise":case"function":case"error":return!1;default:return"entries"in e||"items"in e}}return Yr(t)}),[t]),{overrideProps:b,overrideHookState:x}=Wr(),_=Ee((()=>s&&("props"===n?!!b&&"children"!==e:"state"===n&&!!x)),[n,b,x,s,e]);Ee((()=>{const e=!Nr.lastRendered.has(u);if(e){if("function"==typeof t)return!0;if("object"!=typeof t)return!1}const n=!e||!lt(Nr.lastRendered.get(u),t);return 0===r&&n&&!rr(t)}),[u,r,t]);const k=Ae((()=>{_&&h(!0)}),[_]),S=Ae((t=>{if(h(!1),"state"===n){const n=Fr.value.fiber;if(!n)return;const r=e.split("."),o=r[0],i=(e=>{if(0!==e.tag||!(e=>{if(!e||!e.type)return!1;const t="function"==typeof e.type,n=e.type?.prototype?.isReactComponent??!1;if(!t&&!n)return!1;if(n)return!0;let r=e.memoizedState;for(;r;){if(r.queue)return!0;const e=r.next;if(!e)break;r=e}return!1})(e))return null;let t=!e.alternate||(e.actualStartTime??0)>(e.alternate.actualStartTime??0)?e.memoizedState:e.alternate?.memoizedState??e.memoizedState;return t||null})(n);if(!i||!Array.isArray(i))return;const a=i.map((e=>e.name===o?1===r.length?{...e,value:t}:{...e,value:to(e.value,r.slice(1),t)}:e)),{overrideHookState:s}=Wr();if(!s)return;s(n,o,[],a)}}),[e,n]),C=Ee((()=>!(!t||"object"!=typeof t||rr(t))&&("type"in t&&"circular"===t.type)),[t]),M=Ae((e=>{if(!e||"object"!=typeof e)return null;if("type"in e){const t=e;if("entries"in t&&t.entries){const e=Object.entries(t.entries);return 0===e.length?null:Gn("div",{className:"react-scan-nested",children:e.map((([e,t])=>Gn(dr,{name:e,value:t,section:n,level:r+1,parentPath:u,objectPathMap:i,changedKeys:a,allowEditing:s},`${u}-entry-${e}`)))})}return"items"in t&&Array.isArray(t.items)?0===t.items.length?null:Gn("div",{className:"react-scan-nested",children:t.items.map(((e,t)=>{const o=`${u}-item-${e.type}-${t}`;return Gn(dr,{name:`${t}`,value:e,section:n,level:r+1,parentPath:u,objectPathMap:i,changedKeys:a,allowEditing:s},o)}))}):null}let t;if(e instanceof ArrayBuffer){const n=new Uint8Array(e);t=Array.from(n).map(((e,t)=>[t,e]))}else if(e instanceof DataView){const n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t=Array.from(n).map(((e,t)=>[t,e]))}else if(ArrayBuffer.isView(e))if(e instanceof BigInt64Array||e instanceof BigUint64Array)t=Array.from({length:e.length},((t,n)=>[n,e[n]]));else{const n=e;t=Array.from(n).map(((e,t)=>[t,e]))}else t=e instanceof Map?Array.from(e.entries()).map((([e,t])=>[String(e),t])):e instanceof Set?Array.from(e).map(((e,t)=>[t,e])):Array.isArray(e)?e.map(((e,t)=>[`${t}`,e])):Object.entries(e);if(0===t.length)return null;const o=!(e instanceof DataView||e instanceof ArrayBuffer||ArrayBuffer.isView(e));return Gn("div",{className:"react-scan-nested",children:t.map((([e,t])=>{const s=`${u}-${"number"==typeof e?`item-${e}`:e}`;return Gn(dr,{name:String(e),value:t,section:n,level:r+1,parentPath:u,objectPathMap:i,changedKeys:a,allowEditing:o},s)}))})}),[n,r,u,i,a,s]),$=Ee((()=>{if("children"!==e)return a.has(`${e}:unmemoized`)?Gn(Kn,{name:"icon-flame",className:"text-red-500",size:14}):null}),[a,e]);return Gn("div",C?{className:"react-scan-property",children:Gn("div",{className:"react-scan-property-content",children:Gn("div",{className:"react-scan-preview-line",children:[Gn("div",{className:"react-scan-key",children:[e,":"]}),Gn("span",{className:"text-yellow-500",children:"[Circular Reference]"})]})})}:{ref:c,className:"react-scan-property",children:Gn("div",{className:"react-scan-property-content",children:[y&&Gn("button",{type:"button",onClick:g,className:"react-scan-arrow",children:Gn(Kn,{name:"icon-chevron-right",size:12,className:rn({"rotate-90":d})})}),Gn("div",{className:rn("group","react-scan-preview-line",{"react-scan-highlight":m}),children:[$,Gn("div",{className:"react-scan-key",children:[e,":"]}),f&&qr(t,o)?Gn(ur,{value:t,onSave:S,onCancel:()=>h(!1)}):Gn("button",{type:"button",className:"truncate",onClick:k,children:v}),Gn(cr,{text:w,className:"opacity-0 transition-opacity duration-150 group-hover:opacity-100",children:({ClipboardIcon:e})=>Gn(J,{children:e})})]}),Gn("div",{className:rn("react-scan-expandable",{"react-scan-expanded":d}),children:y&&d&&Gn("div",{className:"react-scan-nested",children:M(t)})})]})})},pr=({title:e,section:t})=>{const{fiberProps:n,fiberState:r,fiberContext:o}=Fr.value,[i,a]=Ce(!0),s=Ee((()=>new WeakMap),[]),{currentData:l,changedKeys:c}=Ee((()=>{switch(t){case"props":return{currentData:n.current,changedKeys:n.changes};case"state":return{currentData:r.current,changedKeys:r.changes};case"context":return{currentData:o.current,changedKeys:o.changes};default:return{currentData:[],changedKeys:new Set}}}),[t,r.current,r.changes,n.current,n.changes,o.current,o.changes]);if(!l||(Array.isArray(l)?0===l.length:0===Object.keys(l).length))return null;const u=Array.isArray(l)?l.length:Object.keys(l).length;return Gn("div",{className:"react-scan-section",children:[Gn("button",{type:"button",onClick:()=>a(!i),className:"flex items-center w-full",children:[Gn(Kn,{name:"icon-chevron-right",size:12,className:rn({"rotate-90":i})}),Gn("span",{className:"ml-1",children:[e," ",!i&&u>0&&`(${u})`]})]}),Gn("div",{className:rn("react-scan-expandable",{"react-scan-expanded":i}),children:Array.isArray(l)?l.map((({name:e,value:n})=>Gn(dr,{name:e,value:n,section:t,level:0,objectPathMap:s,changedKeys:c},e))):Object.entries(l).map((([e,n])=>Gn(dr,{name:e,value:n,section:t,level:0,objectPathMap:s,changedKeys:c},e)))})]})},fr=({value:e,expanded:t,onToggle:n,isNegative:r})=>{const{value:o,error:i}=ao(e),a=Ee((()=>Math.random().toString(36).slice(2)),[]),[s,l]=Ce(new Set);if(i)return Gn("span",{style:{color:"#666",fontStyle:"italic"},children:i});const c=(e,t="")=>{if(null===e||"object"!=typeof e)return Gn("span",{children:io(e)});const n=Object.entries(e),o=new WeakSet;return Gn("div",{style:{paddingLeft:"12px"},children:n.map((([e,n],i)=>{const u=t?`${t}.${e}`:e,d=`${a}.${u}`,p=s.has(d),f=null!==n&&"object"==typeof n;let h=!1;return f&&(o.has(n)?h=!0:o.add(n)),Gn("div",{style:{marginTop:i>0?"4px":0},children:[Gn("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[f&&!h&&Gn("button",{onClick:()=>{l((e=>{const t=new Set(e);return t.has(d)?t.delete(d):t.add(d),t}))},style:{background:"none",border:"none",padding:0,marginTop:"2px",marginRight:"1px",display:"flex",alignItems:"center",cursor:"pointer",opacity:.5},children:Gn(Kn,{name:"icon-chevron-right",size:12,style:{transform:p?"rotate(90deg)":"none",transition:"transform 150ms",color:r?"#f87171":"#4ade80"}})}),Gn("span",{style:{color:"#666"},children:[e,":"]}),h?Gn("span",{style:{color:"#666",fontStyle:"italic"},children:"[Circular]"}):f&&p?null:Gn("span",{children:io(n)})]}),f&&p&&!h&&Gn("div",{style:{paddingLeft:"12px"},children:c(n,u)})]},e)}))})};return Gn("div",{style:{display:"flex",alignItems:"flex-start",gap:"4px"},children:[null!==o&&"object"==typeof o&&!(o instanceof Promise)&&Gn("button",{onClick:n,style:{background:"none",border:"none",padding:0,marginTop:"2px",marginRight:"1px",display:"flex",alignItems:"center",cursor:"pointer",opacity:.5},children:Gn(Kn,{name:"icon-chevron-right",size:12,style:{transform:t?"rotate(90deg)":"none",transition:"transform 150ms",color:r?"#f87171":"#4ade80"}})}),Gn("div",{style:{flex:1},children:t?c(o):Gn("span",{children:io(o)})}),Gn(cr,{text:Zr(o),className:"opacity-0 transition-opacity duration-150 group-hover:opacity-100",children:({ClipboardIcon:e})=>Gn(J,{children:e})})]})},hr=e=>{switch(e.kind){case"initialized":return e.changes.currentValue;case"partially-initialized":return e.value}},mr=(e,t)=>{for(const n of e){const e=t.get(n.name);e?t.set(e.name,{count:e.count+1,currentValue:n.value,id:e.name,lastUpdated:Date.now(),name:e.name,previousValue:n.prevValue}):t.set(n.name,{count:1,currentValue:n.value,id:n.name,lastUpdated:Date.now(),name:n.name,previousValue:n.prevValue})}},gr=e=>{const t={contextChanges:new Map,propsChanges:new Map,stateChanges:new Map};return e.forEach((e=>{((e,t)=>{for(const n of e){const e=t.contextChanges.get(n.contextType);if(e){if(lt(hr(e),n.value))continue;if("partially-initialized"===e.kind){t.contextChanges.set(n.contextType,{kind:"initialized",changes:{count:1,currentValue:n.value,id:n.contextType,lastUpdated:Date.now(),name:n.name,previousValue:e.value}});continue}t.contextChanges.set(n.contextType,{kind:"initialized",changes:{count:e.changes.count+1,currentValue:n.value,id:n.contextType,lastUpdated:Date.now(),name:n.name,previousValue:e.changes.currentValue}})}else t.contextChanges.set(n.contextType,{kind:"partially-initialized",id:n.contextType,lastUpdated:Date.now(),name:n.name,value:n.value})}})(e.contextChanges,t),mr(e.stateChanges,t.stateChanges),mr(e.propsChanges,t.propsChanges)})),t},vr=(e,t)=>{const n=new Map;return e.forEach(((e,t)=>{n.set(t,e)})),t.forEach(((e,t)=>{const r=n.get(t);r?n.set(t,{count:r.count+e.count,currentValue:e.currentValue,id:e.id,lastUpdated:e.lastUpdated,name:e.name,previousValue:e.previousValue}):n.set(t,e)})),n},wr=(e,t)=>{const n=((e,t)=>{const n=new Map;return e.contextChanges.forEach(((e,t)=>{n.set(t,e)})),t.contextChanges.forEach(((e,t)=>{const r=n.get(t);if(r){if(hr(e)!==hr(r))switch(r.kind){case"initialized":switch(e.kind){case"initialized":{const o=1;return void n.set(t,{kind:"initialized",changes:{...e.changes,count:e.changes.count+r.changes.count+o,currentValue:e.changes.currentValue,previousValue:e.changes.previousValue}})}case"partially-initialized":return void n.set(t,{kind:"initialized",changes:{count:r.changes.count+1,currentValue:e.value,id:e.id,lastUpdated:e.lastUpdated,name:e.name,previousValue:r.changes.currentValue}})}case"partially-initialized":switch(e.kind){case"initialized":return void n.set(t,{kind:"initialized",changes:{count:e.changes.count+1,currentValue:e.changes.currentValue,id:e.changes.id,lastUpdated:e.changes.lastUpdated,name:e.changes.name,previousValue:r.value}});case"partially-initialized":return void n.set(t,{kind:"initialized",changes:{count:1,currentValue:e.value,id:e.id,lastUpdated:e.lastUpdated,name:e.name,previousValue:r.value}})}}}else n.set(t,e)})),n})(e,t);return{contextChanges:n,propsChanges:vr(e.propsChanges,t.propsChanges),stateChanges:vr(e.stateChanges,t.stateChanges)}},yr=e=>Array.from(e.propsChanges.values()).reduce(((e,t)=>e+t.count),0)+Array.from(e.stateChanges.values()).reduce(((e,t)=>e+t.count),0)+Array.from(e.contextChanges.values()).filter((e=>"initialized"===e.kind)).reduce(((e,t)=>e+t.changes.count),0),br=e=>{if(null==e)return{value:e};if("function"==typeof e)return{value:e};if("object"!=typeof e)return{value:e};if(rr(e))return{value:"Promise"};try{const t=Object.getPrototypeOf(e);return t===Promise.prototype||"Promise"===t?.constructor?.name?{value:"Promise"}:{value:e}}catch(e){return{value:null,error:"Error accessing value"}}},xr=({isExpanded:e,children:t})=>{const[n,r]=Ce(!1);return Me((()=>{if(!e){const e=setTimeout((()=>{r(!1)}),200);return()=>clearTimeout(e)}r(!0)}),[e]),n?Gn("div",{className:"flex flex-col gap-2",children:t}):null},_r=xn((()=>{const e=Fr.value.fiber,[t,n]=Ce(!1),[r,o]=Ce(!1),[i,a]=Ce(0),s=(({onChangeUpdate:e})=>{const t=$e({queue:[]}),[n,r]=Ce({propsChanges:new Map,stateChanges:new Map,contextChanges:new Map}),o=Fr.value.fiber,i=o?A(o):null;return Me((()=>{const n=setInterval((()=>{0!==t.current.queue.length&&(r((n=>{const r=gr(t.current.queue),o=wr(n,r),i=yr(n),a=yr(o);return e(a-i),o})),t.current.queue=[])}),50);return()=>{clearInterval(n)}}),[o]),Me((()=>{if(!i)return;const e=e=>{t.current?.queue.push(e)};let n=pi.changesListeners.get(i);return n||(n=[],pi.changesListeners.set(i,n)),n.push(e),()=>{r({propsChanges:new Map,stateChanges:new Map,contextChanges:new Map}),t.current.queue=[],pi.changesListeners.set(i,pi.changesListeners.get(i)?.filter((t=>t!==e))??[])}}),[i]),Me((()=>()=>{r({propsChanges:new Map,stateChanges:new Map,contextChanges:new Map}),t.current.queue=[]}),[i]),n})({onChangeUpdate:e=>{a((t=>t+e))}}),l=yr(s)>0;Me((()=>{if(!r&&l){const e=setTimeout((()=>{o(!0),requestAnimationFrame((()=>{n(!0)}))}),0);return()=>clearTimeout(e)}}),[r,l]);const c=new Map(Array.from(s.contextChanges.entries()).filter((([,e])=>"initialized"===e.kind)).map((([e,t])=>[e,"partially-initialized"===t.kind?null:t.changes])));return l?Gn("div",{className:rn("react-scan-what-changed-expandable",{"react-scan-expanded":l}),children:Gn("div",{className:"flex flex-col p-0.5 bg-[#0a0a0a] overflow-hidden border-b-1 border-[#222]",style:{opacity:l?1:0,transition:"opacity 150ms ease"},children:[Gn(Sr,{isExpanded:t,hasInitialized:r,setIsExpanded:n,setUnViewedChanges:a,unViewedChanges:i}),Gn("div",{className:rn("react-scan-what-changed-expandable",{"react-scan-expanded":t}),children:Gn("div",{className:rn(["px-4 ",t&&"py-2"]),children:Gn(xr,{isExpanded:t,children:[Gn(Cr,{title:"Props",changes:s.propsChanges}),Gn(Cr,{title:"State",changes:s.stateChanges,renderName:t=>kr(t,z(S(e))??"Unknown Component")}),Gn(Cr,{title:"Context",changes:c})]})})})]})}):null})),kr=(e,t)=>{const n=parseInt(e);return Gn("span",{children:[n,(e=>{const t=e%100;if(t>=11&&t<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(n)," hook"," ",Gn("span",{style:{color:"#666"},children:["called in"," ",Gn("i",{style:{color:"#A855F7"},children:t})]})]})},Sr=({isExpanded:e,setIsExpanded:t,setUnViewedChanges:n,unViewedChanges:r,hasInitialized:o})=>Gn("button",{onClick:()=>{t((e=>(n(0),!e)))},className:"flex items-center gap-x-2 w-full p-1 cursor-pointer text-[13px] tracking-[0.01em]",children:[Gn("div",{className:"flex items-center",children:[Gn("span",{className:"flex w-4 items-center justify-center",children:Gn(Kn,{name:"icon-chevron-right",size:10,className:rn("opacity-70 transition-transform duration-200",{"rotate-90":e})})}),Gn("span",{className:"font-medium text-white",children:"What changed?"})]}),!e&&r>0&&o&&Gn("div",{className:"flex items-center justify-center min-w-[18px] h-[18px] px-1.5 bg-purple-500 text-white text-xs font-medium rounded-full transition-all duration-300",children:r})]}),zr=e=>e,Cr=({changes:e,renderName:t=zr,title:n})=>{const[r,o]=Ce(new Set),[i,a]=Ce(new Set);if(0===e.size)return null;const s=Array.from(e.entries());return Gn("div",{children:[Gn("div",{style:{fontSize:".75rem",color:"#888",marginBottom:"6px"},children:n}),Gn("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:s.map((([e,s])=>{const l=i.has(String(e)),{value:c,error:u}=br(s.previousValue),{value:d,error:p}=br(s.currentValue),f=no(c,d);return Gn("div",{children:[Gn("button",{onClick:()=>{a((t=>{const n=new Set(t);return n.has(String(e))?n.delete(String(e)):n.add(String(e)),n}))},style:{display:"flex",alignItems:"center",gap:"8px",width:"100%",background:"none",border:"none",padding:0,cursor:"pointer",color:"#fff",fontSize:".75rem"},children:Gn("div",{style:{display:"flex",alignItems:"center",gap:"6px",flex:1},children:[Gn(Kn,{name:"icon-chevron-right",size:12,style:{color:"#666",transform:l?"rotate(90deg)":"none",transition:"transform 200ms cubic-bezier(0.25, 0.1, 0.25, 1)"}}),Gn("div",{style:{whiteSpace:"pre-wrap",wordBreak:"break-word",textAlign:"left",fontWeight:500,display:"flex",alignItems:"center",columnGap:"6px"},children:[t(s.name),Gn(Ar,{count:s.count,showFlame:0===f.changes.length,showFn:"function"==typeof s.currentValue})]})]})}),Gn("div",{className:rn("react-scan-expandable",{"react-scan-expanded":l}),children:Gn("div",{className:"pl-3 text-xs font-mono border-l-1 border-[#333]",children:Gn("div",{className:"flex flex-col gap-0.5",children:u||p?Gn(Mr,{currError:p,prevError:u}):f.changes.length>0?Gn($r,{change:s,diff:f,expandedFns:r,renderName:t,setExpandedFns:o,title:n}):Gn(Er,{currValue:d,entryKey:e,expandedFns:r,prevValue:c,setExpandedFns:o})})})})]},e)}))})]})},Mr=({prevError:e,currError:t})=>Gn(J,{children:[e&&Gn("div",{style:{color:"#f87171",backgroundColor:"#2a1515",padding:"3px 6px",borderRadius:"2px",fontStyle:"italic"},children:e}),t&&Gn("div",{style:{color:"#4ade80",backgroundColor:"#1a2a1a",padding:"3px 6px",borderRadius:"2px",fontStyle:"italic",marginTop:"2px"},children:t})]}),$r=({diff:e,title:t,renderName:n,change:r,expandedFns:o,setExpandedFns:i})=>e.changes.map(((a,s)=>{const{value:l,error:c}=br(a.prevValue),{value:u,error:d}=br(a.currentValue),p="function"==typeof l||"function"==typeof u;return Gn("div",{style:{display:"flex",flexDirection:"column",marginBottom:s<e.changes.length-1?"8px":0},children:[Gn("div",{style:{color:"#666",fontSize:"10px",marginBottom:"2px"},children:"Props"===t?a.path.length>0?`${n(r.name)}.${ro(a.path)}`:"":"State"===t&&a.path.length>0?`state.${ro(a.path)}`:ro(a.path)}),Gn("div",{className:"group",style:{overflowX:"auto",display:"flex",alignItems:"flex-start",color:"#f87171",backgroundColor:"#2a1515",padding:"3px 6px",borderRadius:"2px",cursor:p?"pointer":"default"},onClick:p?()=>{const e=`${ro(a.path)}-prev`;i((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))}:void 0,children:[Gn("span",{style:{width:"12px",opacity:.5},children:"-"}),Gn("span",{style:{flex:1,whiteSpace:"pre-wrap",fontFamily:"monospace"},children:c?Gn("span",{style:{fontStyle:"italic",color:"#f87171"},children:c}):p?Gn("div",{style:{display:"flex",gap:"4px",alignItems:"flex-start",flexDirection:"column"},children:[Gn("div",{style:{display:"flex",gap:"4px",alignItems:"flex-start",width:"100%"},children:[Gn("span",{style:{flex:1},children:oo(l,o.has(`${ro(a.path)}-prev`))}),"function"==typeof l&&Gn(cr,{text:l.toString(),className:"opacity-0 transition-opacity duration-150 group-hover:opacity-100",children:({ClipboardIcon:e})=>Gn(J,{children:e})})]}),l?.toString()===u?.toString()&&Gn("div",{style:{fontSize:"10px",color:"#666",fontStyle:"italic"},children:"Function reference changed"})]}):Gn(fr,{value:l,expanded:o.has(`${ro(a.path)}-prev`),onToggle:()=>{const e=`${ro(a.path)}-prev`;i((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))},isNegative:!0})})]}),Gn("div",{className:"group",style:{display:"flex",overflowX:"auto",alignItems:"flex-start",color:"#4ade80",backgroundColor:"#1a2a1a",padding:"3px 6px",borderRadius:"2px",marginTop:"2px",cursor:p?"pointer":"default"},onClick:p?()=>{const e=`${ro(a.path)}-current`;i((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))}:void 0,children:[Gn("span",{style:{width:"12px",opacity:.5},children:"+"}),Gn("span",{style:{flex:1,whiteSpace:"pre-wrap",fontFamily:"monospace"},children:d?Gn("span",{style:{fontStyle:"italic",color:"#4ade80"},children:d}):p?Gn("div",{style:{display:"flex",gap:"4px",alignItems:"flex-start",flexDirection:"column"},children:[Gn("div",{style:{display:"flex",gap:"4px",alignItems:"flex-start",width:"100%"},children:[Gn("span",{style:{flex:1},children:oo(u,o.has(`${ro(a.path)}-current`))}),"function"==typeof u&&Gn(cr,{text:u.toString(),className:"opacity-0 transition-opacity duration-150 group-hover:opacity-100",children:({ClipboardIcon:e})=>Gn(J,{children:e})})]}),l?.toString()===u?.toString()&&Gn("div",{style:{fontSize:"10px",color:"#666",fontStyle:"italic"},children:"Function reference changed"})]}):Gn(fr,{value:u,expanded:o.has(`${ro(a.path)}-current`),onToggle:()=>{const e=`${ro(a.path)}-current`;i((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))},isNegative:!1})})]})]},s)})),Er=({prevValue:e,currValue:t,entryKey:n,expandedFns:r,setExpandedFns:o})=>Gn(J,{children:[Gn("div",{className:"group",style:{display:"flex",alignItems:"flex-start",color:"#f87171",backgroundColor:"#2a1515",padding:"3px 6px",borderRadius:"2px"},children:[Gn("span",{style:{width:"12px",opacity:.5},children:"-"}),Gn("span",{style:{flex:1,whiteSpace:"pre-wrap",fontFamily:"monospace"},children:Gn(fr,{value:e,expanded:r.has(`${n}-prev`),onToggle:()=>{const e=`${n}-prev`;o((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))},isNegative:!0})})]}),Gn("div",{className:"group",style:{display:"flex",alignItems:"flex-start",color:"#4ade80",backgroundColor:"#1a2a1a",padding:"3px 6px",borderRadius:"2px",marginTop:"2px"},children:[Gn("span",{style:{width:"12px",opacity:.5},children:"+"}),Gn("span",{style:{flex:1,whiteSpace:"pre-wrap",fontFamily:"monospace"},children:Gn(fr,{value:t,expanded:r.has(`${n}-current`),onToggle:()=>{const e=`${n}-current`;o((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))},isNegative:!1})})]}),"object"==typeof t&&null!==t&&Gn("div",{style:{color:"#666",fontSize:"10px",fontStyle:"italic",marginTop:"4px"},children:"Reference changed but objects are the same"})]}),Ar=({count:e,showFlame:t,showFn:n})=>{const r=$e(null),o=$e(e);return Me((()=>{const t=r.current;t&&o.current!==e&&(t.classList.remove("count-flash"),t.classList.add("count-flash"),o.current=e)}),[e]),Gn("div",{ref:r,className:"count-badge",style:{color:"#a855f7",fontSize:"12px",fontWeight:500,fontVariantNumeric:"tabular-nums",padding:"2px 6px",borderRadius:"4px",transformOrigin:"center",display:"flex",columnGap:"8px",alignItems:"center"},children:[t&&Gn(Kn,{name:"icon-flame",className:"text-red-500 mb-px",size:14}),n&&Gn(Kn,{name:"icon-function",className:"text-[#A855F7] mb-px",size:14}),"x",e]})},Nr={lastRendered:new Map,expandedPaths:new Set,cleanup:()=>{Nr.lastRendered.clear(),Nr.expandedPaths.clear(),Zn.cleanupAll(),ir(),Fr.value={fiber:null,fiberProps:{current:[],changes:new Set},fiberState:{current:[],changes:new Set},fiberContext:{current:[],changes:new Set}}}},Fr=qe({fiber:null,fiberProps:{current:[],changes:new Set},fiberState:{current:[],changes:new Set},fiberContext:{current:[],changes:new Set}}),Pr=class extends Z{constructor(){super(...arguments),this.state={hasError:!1,error:null},this.handleReset=()=>{this.setState({hasError:!1,error:null})}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}render(){return this.state.hasError?Gn("div",{className:"p-4 bg-red-950/50 h-screen backdrop-blur-sm",children:[Gn("div",{className:"flex items-center gap-2 mb-3 text-red-400 font-medium",children:[Gn(Kn,{name:"icon-flame",className:"text-red-500",size:16}),"Something went wrong in the inspector"]}),Gn("div",{className:"p-3 bg-black/40 rounded font-mono text-xs text-red-300 mb-4 break-words",children:this.state.error?.message||JSON.stringify(this.state.error)}),Gn("button",{onClick:this.handleReset,className:"px-4 py-2 bg-red-500 hover:bg-red-600 text-white rounded-md text-sm font-medium transition-colors duration-150 flex items-center justify-center gap-2",children:[Gn(Kn,{name:"icon-refresh-ccw",size:14}),"Reset Inspector"]})]}):this.props.children}},Rr=xn((()=>{const e=$e(null),t=mn.value;Me((()=>{let t=!1;const n=new Set,r=()=>{if(0===n.size)return void(t=!1);const o=Array.from(n)[0];n.delete(o);try{e.current=o;const t=sr(o);Fr.value={fiber:o,...t}}finally{n.size>0?queueMicrotask(r):t=!1}},o=pi.inspectState.subscribe((t=>{if("focused"!==t.kind||!t.focusedDomElement)return void n.clear();"focused"===t.kind&&(mn.value=!1);const{parentCompositeFiber:r}=Ir(t.focusedDomElement);if(!r)return;n.clear(),Nr.cleanup(),e.current=r;const{fiberProps:o,fiberState:i,fiberContext:a}=sr(r);Fr.value={fiber:r,fiberProps:{...o,changes:new Set},fiberState:{...i,changes:new Set},fiberContext:{...a,changes:new Set}}})),i=pi.lastReportTime.subscribe((()=>{const o=pi.inspectState.value;if("focused"!==o.kind)return void n.clear();const i=o.focusedDomElement,{parentCompositeFiber:a}=Ir(i);a?a.type===e.current?.type&&(n.add(a),t||(t=!0,queueMicrotask(r))):pi.inspectState.value={kind:"inspect-off"}}));return()=>{o(),i(),n.clear(),Nr.cleanup(),ir()}}),[]);const n=Fr.value.fiber,r=n?A(n):null;return Gn(Pr,{children:Gn("div",{className:rn("react-scan-inspector","opacity-0","max-h-0","overflow-hidden","transition-opacity duration-150 delay-0","pointer-events-none",{'opacity-100 delay-300 pointer-events-auto max-h-["auto"]':!t}),children:[Gn(_r,{},r),Gn(pr,{title:"Props",section:"props"}),Gn(pr,{title:"State",section:"state"}),Gn(pr,{title:"Context",section:"context"})]})})})),Lr=e=>{let t=e;for(;t;){if(t.stateNode instanceof Element)return t.stateNode;if(!t.child)break;t=t.child}for(;t;){if(t.stateNode instanceof Element)return t.stateNode;if(!t.return)break;t=t.return}return null},Tr=e=>{if(!e)return null;try{const t=(e=>{if("__REACT_DEVTOOLS_GLOBAL_HOOK__"in window){const t=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.renderers)return null;for(const[,n]of Array.from(t.renderers))try{const t=n.findFiberByHostInstance?.(e);if(t)return t}catch{}}if("_reactRootContainer"in e){const t=e._reactRootContainer;return t?._internalRoot?.current?.child??null}for(const t in e)if(t.startsWith("__reactInternalInstance$")||t.startsWith("__reactFiber"))return e[t];return null})(e);if(!t)return null;const n=jr(t);return n?n[0]:null}catch{return null}},jr=e=>{let t=e,n=null;for(;t;){if(b(t))return[t,n];y(t)&&(n=t),t=t.return}},Dr=e=>{let t=e,n=null;for(;t;)if(t.stateNode){if(pi?.fiberRoots.has(t.stateNode)){n=t;break}t=t.return}else t=t.return;if(!n)return!1;return((e,t)=>!!k(t,(t=>t===e)))(e,n.stateNode.current)},Or=async e=>{const t=Tr(e);if(!t)return null;const n=Lr(t);if(!n)return null;const r=(await(o=[n],new Promise((e=>{const t=new Map,n=new IntersectionObserver((n=>{for(const e of n){const n=e.target,r=e.intersectionRect;t.set(n,r)}setTimeout((()=>{e(t)}),20)}));for(const e of o)n.observe(e)})))).get(n);var o;return r},Vr=e=>{const t=Tr(e);if(!t)return{};if(!Lr(t))return{};const n=jr(t);if(!n)return{};const[r]=n;return{parentCompositeFiber:r}},Ir=e=>{const t=Tr(e);if(!t)return{};const n=Dr(t)?t:t.alternate??t;if(!Lr(n))return{};const r=jr(n);if(!r)return{};let[o]=r;return o=(Dr(o)?o:o.alternate)??o,{parentCompositeFiber:o}},Hr=e=>null!==e&&"object"==typeof e,Wr=()=>{let e=null,t=null;if("__REACT_DEVTOOLS_GLOBAL_HOOK__"in window){const{renderers:n}=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n)for(const[r,o]of Array.from(n))try{const n=o;if(t){const e=t;t=(t,r,o,i)=>{let a=t.memoizedState;for(let e=0;e<Number(r)&&a?.next;e++)a=a.next;if(a?.queue){const e=a.queue;if(Hr(e)&&"dispatch"in e){return void(0,e.dispatch)(i)}}e(t,r,o,i),n.overrideHookState?.(t,r,o,i)}}else n.overrideHookState&&(t=n.overrideHookState);if(e){const t=e;e=(e,r,o)=>{t(e,r,o),n.overrideProps?.(e,r,o)}}else n.overrideProps&&(e=n.overrideProps)}catch{}}return{overrideProps:e,overrideHookState:t}},Ur=new Set(["HTML","HEAD","META","TITLE","BASE","SCRIPT","SCRIPT","STYLE","LINK","NOSCRIPT","SOURCE","TRACK","EMBED","OBJECT","PARAM","TEMPLATE","PORTAL","SLOT","AREA","XML","DOCTYPE","COMMENT"]),Br=(e,t=!0)=>{if(e.stateNode&&"nodeType"in e.stateNode){const n=e.stateNode;return t&&Ur.has(n.tagName.toLowerCase())?null:n}let n=e.child;for(;n;){const e=Br(n,t);if(e)return e;n=n.sibling}return null},Xr=(e=document.body)=>{const t=[],n=(e,r=0)=>{const o=(e=>{if(!e)return null;const{parentCompositeFiber:t}=Vr(e);return t&&Br(t)===e?e:null})(e);if(o){const{parentCompositeFiber:e}=Vr(o);if(!e)return;t.push({element:o,depth:r,name:z(e.type)??"Unknown"})}for(const t of Array.from(e.children))n(t,o?r+1:r)};return n(e),t},Yr=e=>null!==e&&"object"==typeof e&&!rr(e)&&(e instanceof ArrayBuffer||(e instanceof DataView||(!!ArrayBuffer.isView(e)||(e instanceof Map||e instanceof Set?e.size>0:Array.isArray(e)?e.length>0:Object.keys(e).length>0)))),qr=(e,t)=>{if(null==e)return!0;if(rr(e))return!1;if("function"==typeof e)return!1;if(t){const e=t.split(".");let n="";for(const t of e){n=n?`${n}.${t}`:t;const e=Nr.lastRendered.get(n);if(e instanceof DataView||e instanceof ArrayBuffer||ArrayBuffer.isView(e))return!1}}switch(e.constructor){case Date:case RegExp:case Error:return!0;default:switch(typeof e){case"string":case"number":case"boolean":case"bigint":return!0;default:return!1}}},Gr=(e,t,n,r)=>n?`${e}.${n}.${r}`:"context"!==t||r.startsWith("context.")?`${e}.${t}.${r}`:`${e}.${t}.context.${r}`,Kr=e=>e.replace(/[<>]/g,"").replace(/javascript:/gi,"").replace(/data:/gi,"").replace(/on\w+=/gi,"").slice(0,5e4),Jr=e=>or(e).displayValue,Zr=e=>{try{if(null===e)return"null";if(void 0===e)return"undefined";if(rr(e))return"Promise";if("function"==typeof e){const t=e.toString();try{return t.replace(/\s+/g," ").replace(/{\s+/g,"{\n ").replace(/;\s+/g,";\n ").replace(/}\s*$/g,"\n}").replace(/\(\s+/g,"(").replace(/\s+\)/g,")").replace(/,\s+/g,", ")}catch{return t}}switch(!0){case e instanceof Date:return e.toISOString();case e instanceof RegExp:return e.toString();case e instanceof Error:return`${e.name}: ${e.message}`;case e instanceof Map:return JSON.stringify(Array.from(e.entries()),null,2);case e instanceof Set:return JSON.stringify(Array.from(e),null,2);case e instanceof DataView:return JSON.stringify(Array.from(new Uint8Array(e.buffer)),null,2);case e instanceof ArrayBuffer:return JSON.stringify(Array.from(new Uint8Array(e)),null,2);case ArrayBuffer.isView(e)&&"length"in e:return JSON.stringify(Array.from(e),null,2);case Array.isArray(e):case"object"==typeof e:return JSON.stringify(e,null,2);default:return String(e)}}catch{return String(e)}},Qr=e=>{const t=e.trim();switch(t){case"undefined":return{type:"undefined",value:void 0};case"null":return{type:"null",value:null};case"true":return{type:"boolean",value:!0};case"false":return{type:"boolean",value:!1}}return/^".*"$/.test(t)?{type:"string",value:t.slice(1,-1)}:/^-?\d+(?:\.\d+)?$/.test(t)?{type:"number",value:Number(t)}:{type:"string",value:`"${t}"`}},eo=e=>void 0===e?"undefined":null===e?"null":"string"==typeof e?`"${e}"`:String(e),to=(e,t,n)=>{try{if(0===t.length)return n;const[r,...o]=t;if(Array.isArray(e)&&e.every((e=>"name"in e&&"value"in e))){const t=e.findIndex((e=>e.name===r));if(-1===t)return e;const i=[...e];return 0===o.length?i[t]={...i[t],value:n}:i[t]={...i[t],value:to(i[t].value,o,n)},i}if(e instanceof Map){const t=new Map(e);if(0===o.length)t.set(r,n);else{const e=t.get(r);t.set(r,to(e,o,n))}return t}if(Array.isArray(e)){const t=Number.parseInt(r,10),i=[...e];return 0===o.length?i[t]=n:i[t]=to(e[t],o,n),i}return e&&"object"==typeof e?0===o.length?{...e,[r]:n}:{...e,[r]:to(e[r],o,n)}:n}catch{return e}},no=(e,t,n=[],r=new WeakSet)=>{if(e===t)return{type:"primitive",changes:[],hasDeepChanges:!1};if("function"==typeof e&&"function"==typeof t){const r=((e,t)=>{try{return"function"==typeof e&&"function"==typeof t&&e.toString()===t.toString()}catch{return!1}})(e,t);return{type:"primitive",changes:[{path:n,prevValue:e,currentValue:t,sameFunction:r}],hasDeepChanges:!r}}if(null===e||null===t||void 0===e||void 0===t||"object"!=typeof e||"object"!=typeof t)return{type:"primitive",changes:[{path:n,prevValue:e,currentValue:t}],hasDeepChanges:!0};if(r.has(e)||r.has(t))return{type:"object",changes:[{path:n,prevValue:"[Circular]",currentValue:"[Circular]"}],hasDeepChanges:!1};r.add(e),r.add(t);const o=e,i=t,a=new Set([...Object.keys(o),...Object.keys(i)]),s=[];let l=!1;for(const e of a){const t=o[e],a=i[e];if(t!==a)if("object"==typeof t&&"object"==typeof a&&null!==t&&null!==a){const o=no(t,a,[...n,e],r);s.push(...o.changes),o.hasDeepChanges&&(l=!0)}else s.push({path:[...n,e],prevValue:t,currentValue:a}),l=!0}return{type:"object",changes:s,hasDeepChanges:l}},ro=e=>0===e.length?"":e.reduce(((e,t,n)=>/^\d+$/.test(t)?`${e}[${t}]`:0===n?t:`${e}.${t}`),"");var oo=(e,t=!1)=>{try{const n=e.toString(),r=n.match(/(?:function\s*)?(?:\(([^)]*)\)|([^=>\s]+))\s*=>?/);if(!r)return"ƒ";const o=(r[1]||r[2]||"").replace(/\s+/g,"");return t?function(e){e=e.replace(/\s+/g," ").trim();const t=[];let n="";for(let r=0;r<e.length;r++){const o=e[r];"="!==o||">"!==e[r+1]?/[(){}[\];,<>:\?!]/.test(o)?(n.trim()&&t.push(n.trim()),t.push(o),n=""):/\s/.test(o)?(n.trim()&&t.push(n.trim()),n=""):n+=o:(n.trim()&&t.push(n.trim()),t.push("=>"),n="",r++)}n.trim()&&t.push(n.trim());const r=[];for(let e=0;e<t.length;e++){const n=t[e],o=t[e+1];"("===n&&")"===o||"["===n&&"]"===o||"{"===n&&"}"===o||"<"===n&&">"===o?(r.push(n+o),e++):r.push(n)}const o=new Set,i=new Set;function a(e,t,n){let o=0;for(let i=n;i<r.length;i++){const n=r[i];if(n===e)o++;else if(n===t&&(o--,0===o))return i}return-1}for(let e=0;e<r.length;e++)if("("===r[e]){const t=a("(",")",e);if(-1!==t&&"=>"===r[t+1])for(let n=e;n<=t;n++)o.add(n)}for(let e=1;e<r.length;e++){const t=r[e-1],n=r[e];if(/^[a-zA-Z0-9_$]+$/.test(t)&&"<"===n){const t=a("<",">",e);if(-1!==t)for(let n=e;n<=t;n++)i.add(n)}}let s=0;const l=[];let c="";function u(){c.trim()&&l.push(c.replace(/\s+$/,"")),c=""}function d(){u(),c=" ".repeat(s)}const p=[];function f(){return p.length?p[p.length-1]:null}function h(e,t=!1){c.trim()?t||/^[),;:\].}>]$/.test(e)?c+=e:c+=" "+e:c+=e}for(let e=0;e<r.length;e++){const t=r[e],n=r[e+1]||"";if(["(","{","[","<"].includes(t))h(t),p.push(t),"{"===t?(s++,d()):"("!==t&&"["!==t&&"<"!==t||o.has(e)&&"("===t||i.has(e)&&"<"===t||n!=={"(":")","[":"]","<":">"}[t]&&"()"!==n&&"[]"!==n&&"<>"!==n&&(s++,d());else if([")","}","]",">"].includes(t)){const n=f();")"===t&&"("===n||"]"===t&&"["===n||">"===t&&"<"===n?o.has(e)&&")"===t||i.has(e)&&">"===t||(s=Math.max(s-1,0),d()):"}"===t&&"{"===n&&(s=Math.max(s-1,0),d()),p.pop(),h(t),"}"===t&&d()}else if(/^\(\)|\[\]|\{\}|\<\>$/.test(t))h(t);else if("=>"===t)h(t);else if(";"===t)h(t,!0),d();else if(","===t){h(t,!0);const n=f();o.has(e)&&"("===n||i.has(e)&&"<"===n||["{","[","(","<"].includes(n)&&d()}else h(t)}return u(),l.join("\n").replace(/\n\s*\n+/g,"\n").trim()}(n):`ƒ (${o}) => ...`}catch{return"ƒ"}},io=e=>{if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return`"${e.length>150?e.slice(0,20)+"...":e}"`;if("number"==typeof e||"boolean"==typeof e)return String(e);if("function"==typeof e)return oo(e);if(Array.isArray(e))return`Array(${e.length})`;if(e instanceof Map)return`Map(${e.size})`;if(e instanceof Set)return`Set(${e.size})`;if(e instanceof Date)return e.toISOString();if(e instanceof RegExp)return e.toString();if(e instanceof Error)return`${e.name}: ${e.message}`;if("object"==typeof e){const t=Object.keys(e);return`{${t.length>2?`${t.slice(0,2).join(", ")}, ...`:t.join(", ")}}`}return String(e)},ao=e=>{if(null==e)return{value:e};if("function"==typeof e)return{value:e};if("object"!=typeof e)return{value:e};if(e instanceof Promise)return{value:"Promise"};try{const t=Object.getPrototypeOf(e);return t===Promise.prototype||"Promise"===t?.constructor?.name?{value:"Promise"}:{value:e}}catch(e){return{value:null,error:"Error accessing value"}}},so=0,lo=performance.now(),co=0,uo=!1,po=()=>{co++;const e=performance.now();e-lo>=1e3&&(so=co,co=0,lo=e),requestAnimationFrame(po)},fo=0,ho=new WeakMap,mo=e=>{const t=ho.get(e);return t||(fo++,ho.set(e,fo),fo)};function go(e,t){if(!e||!t)return;t.memoizedValue;const n=e.memoizedValue,r={type:4,name:e.context.displayName??"UnnamedContext",value:n,contextType:mo(e.context)};this.push(r)}var vo,wo=e=>{const t=[];return((e,t)=>{try{const n=e.dependencies,r=e.alternate?.dependencies;if(!n||!r)return!1;if("object"!=typeof n||!("firstContext"in n)||"object"!=typeof r||!("firstContext"in r))return!1;let o=n.firstContext,i=r.firstContext;for(;o&&"object"==typeof o&&"memoizedValue"in o||i&&"object"==typeof i&&"memoizedValue"in i;){if(!0===t(o,i))return!0;o=o?.next,i=i?.next}}catch{}})(e,go.bind(t)),t},yo=(e,t)=>Math.floor(e+.1*(t-e)),bo="115,97,230",xo=e=>{const t=new Map;for(const n of e){const{name:e,count:r}=n;t.set(e,(t.get(e)||0)+r)}const n=new Map;for(const[e,r]of t.entries()){const t=n.get(r);t?t.push(e):n.set(r,[e])}const r=Array.from(n.entries()).sort((([e],[t])=>t-e)),o=r.length;let i="";for(let e=0;e<o;e++){const[t,n]=r[e];let a=`${n.slice(0,4).join(", ")} ×${t}`;a.length>40&&(a=`${a.slice(0,40)}…`),e!==o-1&&(a+=", "),i+=a}return i.length>40?`${i.slice(0,40)}…`:i},_o=e=>{let t=0;for(const n of e)t+=n.width*n.height;return t},ko=(e,t)=>{for(const{id:n,name:r,count:o,x:i,y:a,width:s,height:l,didCommit:c}of t){const t={id:n,name:r,count:o,x:i,y:a,width:s,height:l,frame:0,targetX:i,targetY:a,targetWidth:s,targetHeight:l,didCommit:c},u=String(t.id),d=e.get(u);d?(d.count++,d.frame=0,d.targetX=i,d.targetY=a,d.targetWidth=s,d.targetHeight=l,d.didCommit=c):e.set(u,t)}},So=null,zo=null,Co=null,Mo=1,$o=null,Eo=new Map,Ao=new Map,No=new Set,Fo=e=>{if(!b(e))return;const t="string"==typeof e.type?e.type:z(e);if(!t)return;const n=Ao.get(e),r=(e=>{const t=[],n=[];for(y(e)?t.push(e):e.child&&n.push(e.child);n.length;){const e=n.pop();if(!e)break;y(e)?t.push(e):e.child&&n.push(e.child),e.sibling&&n.push(e.sibling)}return t})(e),o=(e=>Boolean(!!(13374&e.flags)||!!(13374&e.subtreeFlags)))(e);n?n.count++:(Ao.set(e,{name:t,count:1,elements:r.map((e=>e.stateNode)),didCommit:o?1:0}),No.add(e))},Po=e=>{const t=e[0];if(1===e.length)return t;let n,r,o,i;for(let t=0,a=e.length;t<a;t++){const a=e[t];n=null==n?a.x:Math.min(n,a.x),r=null==r?a.y:Math.min(r,a.y),o=null==o?a.x+a.width:Math.max(o,a.x+a.width),i=null==i?a.y+a.height:Math.max(i,a.y+a.height)}return null==n||null==r||null==o||null==i?e[0]:new DOMRect(n,r,o-n,i-r)},Ro=async function*(e){const t=new Set(e),n=new Set;let r=null,o=!1;const i=new IntersectionObserver((e=>{const a=[];for(const t of e){const e=t.target;n.has(e)||(n.add(e),a.push(t))}a.length>0&&r&&(r(a),r=null),n.size===t.size&&(i.disconnect(),o=!0,r&&r([]))}));for(const e of t)i.observe(e);for(;!o;){const e=await new Promise((e=>{r=e}));e.length>0&&(yield e)}},Lo="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer,To=()=>{if(!Co||!zo)return;const e=((e,t,n,r)=>{e.clearRect(0,0,t.width/n,t.height/n);const o=new Map,i=new Map;for(const e of r.values()){const{x:t,y:n,width:r,height:a,targetX:s,targetY:l,targetWidth:c,targetHeight:u,frame:d}=e;s!==t&&(e.x=yo(t,s)),l!==n&&(e.y=yo(n,l)),c!==r&&(e.width=yo(r,c)),u!==a&&(e.height=yo(a,u));const p=`${s??t},${l??n}`,f=`${p},${c??r},${u??a}`,h=o.get(p);h?h.push(e):o.set(p,[e]);const m=1-d/45;e.frame++;const g=i.get(f)||{x:t,y:n,width:r,height:a,alpha:m};m>g.alpha&&(g.alpha=m),i.set(f,g)}for(const t of i.values()){const{x:n,y:r,width:o,height:i,alpha:a}=t;e.strokeStyle=`rgba(${bo},${a})`,e.lineWidth=1,e.beginPath(),e.rect(n,r,o,i),e.stroke(),e.fillStyle=`rgba(${bo},${.1*a})`,e.fill()}e.font="11px Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace";const a=new Map;e.textRendering="optimizeSpeed";for(const t of o.values()){const n=t[0],{x:o,y:i,frame:s}=n,l=1-s/45,c=xo(t),{width:u}=e.measureText(c),d=11;if(a.set(`${o},${i},${u},${c}`,{text:c,width:u,height:d,alpha:l,x:o,y:i,outlines:t}),s>45)for(const e of t)r.delete(String(e.id))}const s=Array.from(a.entries()).sort((([e,t],[n,r])=>_o(r.outlines)-_o(t.outlines)));for(const[t,n]of s)if(a.has(t))for(const[r,o]of a.entries()){if(t===r)continue;const{x:i,y:s,width:l,height:c}=n,{x:u,y:d,width:p,height:f}=o;i+l>u&&u+p>i&&s+c>d&&d+f>s&&(n.text=xo([...n.outlines,...o.outlines]),n.width=e.measureText(n.text).width,a.delete(r))}for(const t of a.values()){const{x:n,y:r,alpha:o,width:i,height:a,text:s}=t;let l=r-a-4;l<0&&(l=0),e.fillStyle=`rgba(${bo},${o})`,e.fillRect(n,l,i+4,a+4),e.fillStyle=`rgba(255,255,255,${o})`,e.fillText(s,n+2,l+a)}return r.size>0})(Co,zo,Mo,Eo);$o=e?requestAnimationFrame(To):null},jo="undefined"!=typeof OffscreenCanvas&&"undefined"!=typeof Worker,Do=()=>Math.min(window.devicePixelRatio||1,2),Oo=()=>{const e=document.createElement("div");e.setAttribute("data-react-scan","true");const t=e.attachShadow({mode:"open"});t.innerHTML='<canvas style="position:fixed;top:0;left:0;pointer-events:none;z-index:2147483646" aria-hidden="true"></canvas>';const n=t.firstChild;if(!n)return null;Mo=Do(),zo=n;const{innerWidth:r,innerHeight:o}=window;n.style.width=`${r}px`,n.style.height=`${o}px`;const i=r*Mo,a=o*Mo;if(n.width=i,n.height=a,jo)try{So=new Worker(URL.createObjectURL(new Blob(['"use strict";(()=>{var Y="Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace";var C=(t,l)=>Math.floor(t+(l-t)*.1);var _="115,97,230";var $=t=>{let l=new Map;for(let o of t){let{name:f,count:e}=o;l.set(f,(l.get(f)||0)+e)}let u=new Map;for(let[o,f]of l.entries()){let e=u.get(f);e?e.push(o):u.set(f,[o])}let m=Array.from(u.entries()).sort(([o],[f])=>f-o),s=m.length,i="";for(let o=0;o<s;o++){let[f,e]=m[o],n=`${e.slice(0,4).join(", ")} \\xD7${f}`;n.length>40&&(n=`${n.slice(0,40)}\\u2026`),o!==s-1&&(n+=", "),i+=n}return i.length>40?`${i.slice(0,40)}\\u2026`:i},S=t=>{let l=0;for(let u of t)l+=u.width*u.height;return l};var X=(t,l)=>{let u=t.getContext("2d",{alpha:!0});return u&&u.scale(l,l),u},N=(t,l,u,m)=>{t.clearRect(0,0,l.width/u,l.height/u);let s=new Map,i=new Map;for(let e of m.values()){let{x:n,y:c,width:a,height:h,targetX:r,targetY:d,targetWidth:g,targetHeight:A,frame:x}=e;r!==n&&(e.x=C(n,r)),d!==c&&(e.y=C(c,d)),g!==a&&(e.width=C(a,g)),A!==h&&(e.height=C(h,A));let O=`${r??n},${d??c}`,y=`${O},${g??a},${A??h}`,R=s.get(O);R?R.push(e):s.set(O,[e]);let M=1-x/45;e.frame++;let E=i.get(y)||{x:n,y:c,width:a,height:h,alpha:M};M>E.alpha&&(E.alpha=M),i.set(y,E)}for(let e of i.values()){let{x:n,y:c,width:a,height:h,alpha:r}=e;t.strokeStyle=`rgba(${_},${r})`,t.lineWidth=1,t.beginPath(),t.rect(n,c,a,h),t.stroke(),t.fillStyle=`rgba(${_},${r*.1})`,t.fill()}t.font=`11px ${Y}`;let o=new Map;t.textRendering="optimizeSpeed";for(let e of s.values()){let n=e[0],{x:c,y:a,frame:h}=n,r=1-h/45,d=$(e),{width:g}=t.measureText(d),A=11;o.set(`${c},${a},${g},${d}`,{text:d,width:g,height:A,alpha:r,x:c,y:a,outlines:e});let x=a-A-4;if(x<0&&(x=0),h>45)for(let O of e)m.delete(String(O.id))}let f=Array.from(o.entries()).sort(([e,n],[c,a])=>S(a.outlines)-S(n.outlines));for(let[e,n]of f)if(o.has(e))for(let[c,a]of o.entries()){if(e===c)continue;let{x:h,y:r,width:d,height:g}=n,{x:A,y:x,width:O,height:y}=a;h+d>A&&A+O>h&&r+g>x&&x+y>r&&(n.text=$([...n.outlines,...a.outlines]),n.width=t.measureText(n.text).width,o.delete(c))}for(let e of o.values()){let{x:n,y:c,alpha:a,width:h,height:r,text:d}=e,g=c-r-4;g<0&&(g=0),t.fillStyle=`rgba(${_},${a})`,t.fillRect(n,g,h+4,r+4),t.fillStyle=`rgba(255,255,255,${a})`,t.fillText(d,n+2,g+r)}return m.size>0};var p=null,w=null,b=1,L=new Map,T=null,v=()=>{if(!w||!p)return;N(w,p,b,L)?T=requestAnimationFrame(v):T=null};self.onmessage=t=>{let{type:l}=t.data;if(l==="init"&&(p=t.data.canvas,b=t.data.dpr,p&&(p.width=t.data.width,p.height=t.data.height,w=X(p,b))),!(!p||!w)){if(l==="resize"){b=t.data.dpr,p.width=t.data.width*b,p.height=t.data.height*b,w.resetTransform(),w.scale(b,b),v();return}if(l==="draw-outlines"){let{data:u,names:m}=t.data,s=new Float32Array(u);for(let i=0;i<s.length;i+=7){let o=s[i+2],f=s[i+3],e=s[i+4],n=s[i+5],c=s[i+6],a={id:s[i],name:m[i/7],count:s[i+1],x:o,y:f,width:e,height:n,frame:0,targetX:o,targetY:f,targetWidth:e,targetHeight:n,didCommit:c},h=String(a.id),r=L.get(h);r?(r.count++,r.frame=0,r.targetX=o,r.targetY=f,r.targetWidth=e,r.targetHeight=n,r.didCommit=c):L.set(h,a)}T||(T=requestAnimationFrame(v));return}if(l==="scroll"){let{deltaX:u,deltaY:m}=t.data;for(let s of L.values()){let i=s.x-u,o=s.y-m;s.targetX=i,s.targetY=o}}}};})();\n'],{type:"application/javascript"})));const e=n.transferControlToOffscreen();So?.postMessage({type:"init",canvas:e,width:n.width,height:n.height,dpr:Mo},[e])}catch(e){console.warn("Failed to initialize OffscreenCanvas worker:",e)}So||(Co=((e,t)=>{const n=e.getContext("2d",{alpha:!0});return n&&n.scale(t,t),n})(n,Mo));let s=!1;window.addEventListener("resize",(()=>{s||(s=!0,setTimeout((()=>{const e=window.innerWidth,t=window.innerHeight;Mo=Do(),n.style.width=`${e}px`,n.style.height=`${t}px`,So?So.postMessage({type:"resize",width:e,height:t,dpr:Mo}):(n.width=e*Mo,n.height=t*Mo,Co&&(Co.resetTransform(),Co.scale(Mo,Mo)),To()),s=!1})))}));let l=window.scrollX,c=window.scrollY,u=!1;return window.addEventListener("scroll",(()=>{u||(u=!0,setTimeout((()=>{const{scrollX:e,scrollY:t}=window,n=e-l,r=t-c;l=e,c=t,So?So.postMessage({type:"scroll",deltaX:n,deltaY:r}):requestAnimationFrame((()=>{((e,t,n)=>{for(const r of e.values()){const e=r.x-t,o=r.y-n;r.targetX=e,r.targetY=o}})(Eo,n,r)})),u=!1}),32))})),setInterval((()=>{No.size&&requestAnimationFrame((()=>{(async()=>{const e=[];for(const t of No){const n=Ao.get(t);if(n)for(let t=0;t<n.elements.length;t++)n.elements[t]instanceof Element&&e.push(n.elements[t])}const t=new Map;for await(const n of Ro(e)){for(const e of n){const n=e.target,r=e.intersectionRect;e.isIntersecting&&r.width&&r.height&&t.set(n,r)}const e=[],r=[],o=[];for(const n of No){const i=Ao.get(n);if(!i)continue;const a=[];for(let e=0;e<i.elements.length;e++){const n=i.elements[e],r=t.get(n);r&&a.push(r)}a.length&&(e.push(i),r.push(Po(a)),o.push(A(n)))}if(e.length>0){const t=new Lo(7*e.length*4),n=new Float32Array(t),i=new Array(e.length);let a;for(let t=0,s=e.length;t<s;t++){const s=e[t],l=o[t],{x:c,y:u,width:d,height:p}=r[t],{count:f,name:h,didCommit:m}=s;if(So){const e=7*t;n[e]=l,n[e+1]=f,n[e+2]=c,n[e+3]=u,n[e+4]=d,n[e+5]=p,n[e+6]=m,i[t]=h}else a||=new Array(e.length),a[t]={id:l,name:h,count:f,x:c,y:u,width:d,height:p,didCommit:m}}So?So.postMessage({type:"draw-outlines",data:t,names:i}):zo&&Co&&a&&(ko(Eo,a),$o||($o=requestAnimationFrame(To)))}}for(const e of No)Ao.delete(e),No.delete(e)})()}))}),32),t.appendChild(n),e},Vo=()=>globalThis.__REACT_SCAN_STOP__,Io=!1,Ho=()=>{if(Io)return;Io=!0;const e=document.querySelector("[data-react-scan]");e&&e.remove()},Wo=!1,Uo=e=>{if(b(e)&&!1!==fi.options.value.showToolbar&&"focused"===pi.inspectState.value.kind){const t=e,{selfTime:n}=(e=>{const t=e?.actualDuration??0;let n=t,r=e?.child??null;for(;t>0&&null!=r;)n-=r.actualDuration??0,r=r.sibling;return{selfTime:n,totalTime:t}})(e),r=z(e.type),o=A(t),i=pi.reportData.get(o),a=i?.count??0,s=i?.time??0,l=[],c=pi.changesListeners.get(A(e));if(c?.length){const t=(e=>{const t=e.memoizedProps??{},n=e.alternate?.memoizedProps??{},r=[];for(const e in t){if("children"===e)continue;const o=t[e],i=n[e];lt(o,i)||r.push({name:e,value:o,prevValue:i,type:1})}return r})(e).map((e=>({type:1,name:e.name,value:e.value,prevValue:e.prevValue,unstable:!1}))),n=(e=>{if(!e)return[];const t=[];if(0===e.tag||11===e.tag||15===e.tag||14===e.tag){let n=e.memoizedState,r=e.alternate?.memoizedState,o=0;for(;n;){if(n.queue&&void 0!==n.memoizedState){const e={type:2,name:o.toString(),value:n.memoizedState,prevValue:r?.memoizedState};lt(e.prevValue,e.value)||t.push(e)}n=n.next,r=r?.next,o++}return t}if(1===e.tag){const n={type:3,name:"state",value:e.memoizedState,prevValue:e.alternate?.memoizedState};return lt(n.prevValue,n.value)||t.push(n),t.push(n),t}return t})(e),r=wo(e).map((e=>({name:e.name,type:4,value:e.value,contextType:e.contextType})));c.forEach((e=>{e({propsChanges:t,stateChanges:n,contextChanges:r})}))}const u={count:a+1,time:s+n||0,renders:[],displayName:r,type:S(e.type)||null,changes:l};pi.reportData.set(o,u),Wo=!0}},Bo=()=>{if(Ho(),Vo())return;const e=j({onRender(e,t){const n=fi.instrumentation?.isPaused.value,r="inspect-off"===pi.inspectState.value.kind||"uninitialized"===pi.inspectState.value.kind;n&&r||(n||Fo(e),Uo(e))},onError(){}}),n={isPaused:qe(!fi.options.value.enabled),fiberRoots:new Set};var r;r=((e,t={})=>{const n=e.onActive,r=i(),o=C();let s,l=!1;return e.onActive=()=>{clearTimeout(s);let r=!0;try{n?.();const e=a();for(const n of e.renderers.values()){const[e]=n.version.split(".");Number(e)<(t.minReactMajorVersion??17)&&(r=!1),"development"!==M(n)&&(l=!0,t.dangerouslyRunInProduction||(r=!1))}}catch(e){t.onError?.(e)}if(!r)return e.onCommitFiberRoot=void 0,e.onCommitFiberUnmount=void 0,e.onPostCommitFiberRoot=void 0,void(e.onActive=void 0);try{const n=e.onCommitFiberRoot;n&&(e.onCommitFiberRoot=(e,r,o)=>{try{n(e,r,o)}catch(e){t.onError?.(e)}});const r=e.onCommitFiberUnmount;r&&(e.onCommitFiberUnmount=(e,n)=>{try{r(e,n)}catch(e){t.onError?.(e)}});const o=e.onPostCommitFiberRoot;o&&(e.onPostCommitFiberRoot=(e,n)=>{try{o(e,n)}catch(e){t.onError?.(e)}})}catch(e){t.onError?.(e)}},r||o||(s=setTimeout((()=>{l||t.onError?.(),stop()}),t.installCheckTimeout??100)),e})({onActive(){if(Vo())return;const e=Oo();e&&document.documentElement.appendChild(e),globalThis.__REACT_SCAN__={ReactScanInternals:fi},clearInterval(vo),vo=setInterval((()=>{Wo&&(pi.lastReportTime.value=Date.now(),Wo=!1)}),50),console.log("%c[·] %cReact Scan","font-weight:bold;color:#7a68e8;font-size:20px;","font-weight:bold;font-size:14px;"),console.log("Try React Scan Monitoring to target performance issues in production: https://react-scan.com/monitoring")},onCommitFiberRoot(t,n){if(Vo())return Ho();pi.fiberRoots.add(n),e(t,n)}},{dangerouslyRunInProduction:!0,onError(e){console.warn("React Scan did not install correctly.\n\n{link to install doc}",e)}}),a((()=>{const e=a();r.onActive?.(),e._instrumentationSource=r.name??t;const n=e.onCommitFiberRoot;r.onCommitFiberRoot&&(e.onCommitFiberRoot=(e,t,o)=>{n&&n(e,t,o),r.onCommitFiberRoot?.(e,t,o)});const o=e.onCommitFiberUnmount;r.onCommitFiberUnmount&&(e.onCommitFiberUnmount=(e,t)=>{o&&o(e,t),r.onCommitFiberUnmount?.(e,t)});const i=e.onPostCommitFiberRoot;r.onPostCommitFiberRoot&&(e.onPostCommitFiberRoot=(e,t)=>{i&&i(e,t),r.onPostCommitFiberRoot?.(e,t)})})),fi.instrumentation=n},Xo={frameInterval:1e3/60,speeds:{fast:.51,slow:.1,off:0}},Yo="undefined"!=typeof window&&window.devicePixelRatio||1,qo=()=>{const e=$e(null),t=$e(null),n=$e(null),r=$e(null),o=$e(null),i=$e(0),a=$e(),s=$e(new Map),l=$e(!1),c=$e(0),u=(e,t,n,o)=>{if(!o)return;const i=A(o),a=pi.reportData.get(i),s={count:a?.count??0,time:a?.time??0};let l=(o?.type&&z(o.type))??"Unknown";s.count&&(l+=` • ×${s.count}`,s.time&&(l+=` (${s.time.toFixed(1)}ms)`)),e.save(),e.font="12px system-ui, -apple-system, sans-serif";const c="locked"===n?14:0,u="locked"===n?6:0,d=e.measureText(l).width+16+c+u,p=t.left,f=t.top-24-4;if(e.fillStyle="rgb(37, 37, 38, .75)",e.beginPath(),e.roundRect(p,f,d,24,3),e.fill(),"locked"===n){const t=p+8,n=f+(24-c)/2+2;((e,t,n,r)=>{e.save(),e.strokeStyle="white",e.fillStyle="white",e.lineWidth=1.5;const o=.6*r,i=.5*r,a=t+(r-o)/2,s=n;e.beginPath(),e.arc(a+o/2,s+i/2,o/2,Math.PI,0,!1),e.stroke();const l=.8*r,c=.5*r,u=t+(r-l)/2,d=n+i/2;e.fillRect(u,d,l,c),e.restore()})(e,t,n,c),r.current={x:t,y:n,width:c,height:c}}else r.current=null;e.fillStyle="white",e.textBaseline="middle";const h=p+8+("locked"===n?c+u:0);e.fillText(l,h,f+12),e.restore()},d=(e,t,r,o)=>{if(!n.current)return;const i=n.current;t.clearRect(0,0,e.width,e.height),t.strokeStyle="rgba(142, 97, 227, 0.5)",t.fillStyle="rgba(173, 97, 230, 0.10)","locked"===r?t.setLineDash([]):t.setLineDash([4]),t.lineWidth=1,t.fillRect(i.left,i.top,i.width,i.height),t.strokeRect(i.left,i.top,i.width,i.height),u(t,i,r,o)},p=(e,t,r,o,s)=>{if(t.save(),!n.current)return n.current=r,d(e,t,o,s),void t.restore();((e,t,r,o,s)=>{const l=fi.options.value.animationSpeed,u=Xo.speeds[l]??Xo.speeds.off,p=a=>{a-c.current<Xo.frameInterval?i.current=requestAnimationFrame(p):(c.current=a,n.current?(n.current={left:ct(n.current.left,r.left,u),top:ct(n.current.top,r.top,u),width:ct(n.current.width,r.width,u),height:ct(n.current.height,r.height,u)},d(e,t,o,s),Math.abs(n.current.left-r.left)>.1||Math.abs(n.current.top-r.top)>.1||Math.abs(n.current.width-r.width)>.1||Math.abs(n.current.height-r.height)>.1?i.current=requestAnimationFrame(p):(n.current=r,d(e,t,o,s),cancelAnimationFrame(i.current),t.restore())):cancelAnimationFrame(i.current))};cancelAnimationFrame(i.current),clearTimeout(a.current),i.current=requestAnimationFrame(p),a.current=setTimeout((()=>{cancelAnimationFrame(i.current),n.current=r,d(e,t,o,s),t.restore()}),1e3)})(e,t,r,o,s)},f=async(e,t,n,r)=>{if(!e||!t||!n)return;const{parentCompositeFiber:o}=Vr(e),i=await Or(e);o&&i&&(i.width<=0||i.height<=0?g():p(t,n,i,r,o))},h=t=>{if(!e.current||l.current)return;const i=a=>{e.current&&"opacity"===a.propertyName&&l.current&&(e.current.removeEventListener("transitionend",i),(e=>{const t=e.getContext("2d");t&&t.clearRect(0,0,e.width,e.height),n.current=null,r.current=null,o.current=null,e.classList.remove("fade-in"),l.current=!1})(e.current),t?.())},a=s.current.get("fade-out");a&&(a(),s.current.delete("fade-out")),e.current.addEventListener("transitionend",i),s.current.set("fade-out",(()=>{e.current?.removeEventListener("transitionend",i)})),l.current=!0,e.current.classList.remove("fade-in"),requestAnimationFrame((()=>{e.current?.classList.add("fade-out")}))},m=()=>{e.current&&(l.current=!1,e.current.classList.remove("fade-out"),requestAnimationFrame((()=>{e.current?.classList.add("fade-in")})))},g=()=>{n.current&&e.current&&!l.current&&h()},v=((e,t)=>{let n=0;return r=>{const o=Date.now();if(o-n>=t)return n=o,e(r)}})((n=>{if("inspecting"!==pi.inspectState.peek().kind||!t.current)return;t.current.style.pointerEvents="none";const r=document.elementFromPoint(n?.clientX??0,n?.clientY??0);if(t.current.style.removeProperty("pointer-events"),clearTimeout(a.current),r&&r!==e.current){const{parentCompositeFiber:e}=Vr(r);if(e){const t=Br(e);if(t)return void(e=>{e!==o.current&&(o.current=e,Ur.has(e.tagName)?h():m(),pi.inspectState.value={kind:"inspecting",hoveredDomElement:e})})(t)}}g()}),32),w=(e,t)=>{const n=r.current;if(!n)return!1;const o=t.getBoundingClientRect(),i=t.width/o.width,a=t.height/o.height,s=(e.clientX-o.left)*i,l=(e.clientY-o.top)*a,c=s/Yo,u=l/Yo;return c>=n.x&&c<=n.x+n.width&&u>=n.y&&u<=n.y+n.height},y=n=>{if(n.__reactScanSyntheticEvent)return;const r=pi.inspectState.peek(),i=e.current;return i&&t.current?w(n,i)?(n.preventDefault(),n.stopPropagation(),void(e=>{"focused"===e.kind&&(pi.inspectState.value={kind:"inspecting",hoveredDomElement:e.focusedDomElement})})(r)):void("inspecting"===r.kind&&(e=>{const t=["react-scan-inspect-element","react-scan-power"];if(e.target instanceof HTMLElement&&t.includes(e.target.id))return;const n=o.current?.tagName;if(n&&Ur.has(n))return;e.preventDefault(),e.stopPropagation();const r=o.current??document.elementFromPoint(e.clientX,e.clientY);if(!r)return;const i=e.composedPath().at(0);if(i instanceof HTMLElement&&t.includes(i.id)){const t=new MouseEvent(e.type,e);return t.__reactScanSyntheticEvent=!0,void i.dispatchEvent(t)}const{parentCompositeFiber:a}=Vr(r);if(!a)return;const s=Br(a);if(!s)return o.current=null,void(pi.inspectState.value={kind:"inspect-off"});pi.inspectState.value={kind:"focused",focusedDomElement:s}})(n)):void 0},b=t=>{if("Escape"!==t.key)return;const r=pi.inspectState.peek();if(e.current&&"react-scan-root"!==document.activeElement?.id&&("focused"===r.kind||"inspecting"===r.kind))switch(t.preventDefault(),t.stopPropagation(),r.kind){case"focused":m(),n.current=null,o.current=r.focusedDomElement,pi.inspectState.value={kind:"inspecting",hoveredDomElement:r.focusedDomElement};break;case"inspecting":h((()=>{mn.value=!1,pi.inspectState.value={kind:"inspect-off"}}))}},x=(e,t)=>{const n=e.getBoundingClientRect();e.width=n.width*Yo,e.height=n.height*Yo,t.scale(Yo,Yo),t.save()},_=()=>{const t=pi.inspectState.peek(),r=e.current;if(!r)return;const o=r?.getContext("2d");o&&(cancelAnimationFrame(i.current),clearTimeout(a.current),x(r,o),n.current=null,"focused"===t.kind&&t.focusedDomElement?f(t.focusedDomElement,r,o,"locked"):"inspecting"===t.kind&&t.hoveredDomElement&&f(t.hoveredDomElement,r,o,"inspecting"))},k=t=>{const n=pi.inspectState.peek(),r=e.current;r&&("inspecting"===n.kind||w(t,r))&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())};return Me((()=>{const r=e.current;if(!r)return;const l=r?.getContext("2d");if(!l)return;x(r,l);const c=pi.inspectState.subscribe((e=>{((e,r,a)=>{let l;switch(s.current.get(e.kind)?.(),t.current&&"inspecting"!==e.kind&&(t.current.style.pointerEvents="none"),i.current&&cancelAnimationFrame(i.current),e.kind){case"inspect-off":return void h();case"inspecting":f(e.hoveredDomElement,r,a,"inspecting");break;case"focused":if(!e.focusedDomElement)return;o.current!==e.focusedDomElement&&(o.current=e.focusedDomElement),f(e.focusedDomElement,r,a,"locked"),l=pi.lastReportTime.subscribe((()=>{if(i.current&&n.current){const{parentCompositeFiber:t}=Vr(e.focusedDomElement);t&&f(e.focusedDomElement,r,a,"locked")}})),l&&s.current.set(e.kind,l)}})(e,r,l)}));return window.addEventListener("scroll",_,{passive:!0}),window.addEventListener("resize",_,{passive:!0}),document.addEventListener("mousemove",v,{passive:!0,capture:!0}),document.addEventListener("pointerdown",k,{capture:!0}),document.addEventListener("click",y,{capture:!0}),document.addEventListener("keydown",b,{capture:!0}),()=>{(()=>{for(const e of s.current.values())e?.()})(),c(),window.removeEventListener("scroll",_),window.removeEventListener("resize",_),document.removeEventListener("mousemove",v,{capture:!0}),document.removeEventListener("click",y,{capture:!0}),document.removeEventListener("pointerdown",k,{capture:!0}),document.removeEventListener("keydown",b,{capture:!0}),i.current&&cancelAnimationFrame(i.current),clearTimeout(a.current)}}),[]),Gn(J,{children:[Gn("div",{ref:t,className:rn("fixed inset-0 w-screen h-screen","z-[214748365]"),style:{pointerEvents:"none"}}),Gn("canvas",{ref:e,className:rn("react-scan-inspector-overlay","fixed inset-0 w-screen h-screen","pointer-events-none","z-[214748367]")})]})};function Go(e){return"focused"===e.kind}var Ko,Jo=xn((()=>{const e=$e(null),t=$e(null),n=$e([]),r=$e(null),[o,i]=Ce(!1),a=((e,t,n=t)=>{const r=$e(),[o,i]=Ce(e);return Me((()=>{if(e===o)return;const a=e?t:n;return r.current=setTimeout((()=>i(e)),a),()=>clearTimeout(r.current)}),[e,t,n]),o})(o,0,1e3),s=Ae((async(e,t)=>{const o=n.current.findIndex((t=>t.element===e));if(-1===o)return null;const i=o+("next"===t?1:-1),a=n.current,s=a.length,l=500;if("next"===t)for(let e=i;e<s;e+=l){const t=Math.min(e+l,s),n=a.slice(e,t).map((e=>e.element));if(0===n.length)continue;const o=[];for await(const e of Ro(n))o.push(...e);const i=new Map(o.map((e=>[e.target,e])));for(let e=0;e<n.length;e++){const t=n[e];if(!t)continue;const{parentCompositeFiber:o}=Vr(t);if(!o)continue;const a=A(o);if(a===r.current)continue;const s=i.get(t);if(!s||!s.isIntersecting||s.intersectionRect.width<=0||s.intersectionRect.height<=0)continue;const l=t.getBoundingClientRect();if(l.top<window.innerHeight&&l.bottom>0&&l.left<window.innerWidth&&l.right>0)return r.current=a,t}}else for(let e=i;e>=0;e-=l){const t=Math.max(e-l+1,0),n=a.slice(t,e+1).map((e=>e.element)).reverse();if(0===n.length)continue;const o=[];for await(const e of Ro(n))o.push(...e);const i=new Map(o.map((e=>[e.target,e])));for(let e=0;e<n.length;e++){const t=n[e];if(!t)continue;const{parentCompositeFiber:o}=Vr(t);if(!o)continue;const a=A(o);if(a===r.current)continue;const s=i.get(t);if(!s||!s.isIntersecting||s.intersectionRect.width<=0||s.intersectionRect.height<=0)continue;const l=t.getBoundingClientRect();if(l.top<window.innerHeight&&l.bottom>0&&l.left<window.innerWidth&&l.right>0)return r.current=a,t}}return null}),[]),l=Ae((async()=>{const t=pi.inspectState.value;if(!Go(t)||!t.focusedDomElement||e.current?.disabled)return;const n=await s(t.focusedDomElement,"previous");n&&(pi.inspectState.value={kind:"focused",focusedDomElement:n})}),[s]),c=Ae((async()=>{const e=pi.inspectState.value;if(!Go(e)||!e.focusedDomElement||t.current?.disabled)return;const n=await s(e.focusedDomElement,"next");n&&(pi.inspectState.value={kind:"focused",focusedDomElement:n})}),[s]);return Me((()=>{const o=pi.inspectState.subscribe((async o=>{if("focused"===o.kind&&e.current&&t.current){n.current=Xr();const{parentCompositeFiber:a}=Vr(o.focusedDomElement);if(a){const e=A(a);r.current=e}const l=!!await s(o.focusedDomElement,"previous");e.current.disabled=!l,e.current.classList.toggle("opacity-50",!l),e.current.classList.toggle("cursor-not-allowed",!l);const c=!!await s(o.focusedDomElement,"next");t.current.disabled=!c,t.current.classList.toggle("opacity-50",!c),t.current.classList.toggle("cursor-not-allowed",!c),i(!0)}"inspecting"===o.kind&&e.current&&t.current&&(e.current.disabled=!0,e.current.classList.toggle("opacity-50",!0),e.current.classList.toggle("cursor-not-allowed",!0),t.current.disabled=!0,t.current.classList.toggle("opacity-50",!0),t.current.classList.toggle("cursor-not-allowed",!0),i(!0)),"inspect-off"===o.kind&&(n.current=[],r.current=null,i(!1)),"uninitialized"===o.kind&&(console.log("insepct off 2"),pi.inspectState.value={kind:"inspect-off"})}));return()=>{o()}}),[s]),Gn("div",{className:rn("flex items-stretch justify-between h-full","ml-auto","text-[#999]","overflow-hidden","transition-opacity duration-300",{"opacity-0 w-0":!a}),children:[Gn("button",{type:"button",ref:e,title:"Previous element",onClick:l,className:rn("button h-full","flex items-center justify-center","px-3","opacity-50","transition-all duration-300","cursor-not-allowed"),children:Gn(Kn,{name:"icon-previous"})}),Gn("button",{type:"button",ref:t,title:"Next element",onClick:c,className:rn("button h-full","flex items-center justify-center","px-3","opacity-50","transition-all duration-300","cursor-not-allowed"),children:Gn(Kn,{name:"icon-next"})})]})})),Zo=()=>{const e=$e(null),t=$e(null),n=$e(null),r=mn.value;var o;return o=()=>{cancelAnimationFrame(e.current??0),e.current=requestAnimationFrame((()=>{if("focused"!==pi.inspectState.value.kind)return;const e=pi.inspectState.value.focusedDomElement,{parentCompositeFiber:r}=Vr(e);if(!r)return;const o=z(r.type),i=pi.reportData.get(A(r)),a=i?.count||0,s=i?.time||0;if(t.current&&n.current){t.current.dataset.text=o??"Unknown";const e=s>0?s<.1-Number.EPSILON?"< 0.1ms":`${Number(s.toFixed(1))}ms`:"";n.current.dataset.text=`${a} re-renders${e?` • ${e}`:""}`}}))},Me((()=>{const e=()=>{"focused"===pi.inspectState.value.kind&&o()},t=pi.lastReportTime.subscribe(e),n=pi.inspectState.subscribe(e);return()=>{t(),n()}}),[]),Gn("div",{className:rn("absolute inset-0 flex items-center gap-x-2","translate-y-0","transition-transform duration-300",{"-translate-y-[200%]":r}),children:[Gn("span",{ref:t,className:"with-data-text"}),Gn("span",{ref:n,className:"with-data-text mr-auto cursor-pointer !overflow-visible text-xs text-[#888]",title:"Click to toggle between rerenders and total renders"})]})},Qo=()=>{const e=mn.value;return Gn("span",{"data-text":"Settings",className:rn("absolute inset-0 flex items-center","with-data-text","-translate-y-[200%]","transition-transform duration-300",{"translate-y-0":e})})},ei=()=>Gn("div",{className:"react-scan-header",children:[Gn("div",{className:"relative flex-1 h-full",children:[Gn(Qo,{}),Gn(Zo,{})]}),"focused"===pi.inspectState.value.kind?Gn(Jo,{}):null,Gn("button",{type:"button",title:"Close",className:"react-scan-close-button",onClick:()=>{mn.value?mn.value=!1:(console.log("inspect off 1"),pi.inspectState.value={kind:"inspect-off"})},children:Gn(Kn,{name:"icon-close"})})]}),ti=class{constructor(e,t){this.width=e,this.height=t,this.maxWidth=e-48,this.maxHeight=t-48}rightEdge(e){return this.width-e-dn}bottomEdge(e){return this.height-e-dn}isFullWidth(e){return e>=this.maxWidth}isFullHeight(e){return e>=this.maxHeight}},ni=()=>{const e=window.innerWidth,t=window.innerHeight;return Ko&&Ko.width===e&&Ko.height===t?Ko:Ko=new ti(e,t)},ri=(e,t,n)=>{const r=window.innerWidth,o=window.innerHeight,i=t===pn,a=i?t:Math.min(t,r-48),s=i?n:Math.min(n,o-48);let l,c;switch(e){case"top-right":l=r-a-dn,c=dn;break;case"bottom-right":l=r-a-dn,c=o-s-dn;break;case"bottom-left":l=dn,c=o-s-dn;break;default:l=dn,c=dn}return i&&(l=Math.max(dn,Math.min(l,r-a-dn)),c=Math.max(dn,Math.min(c,o-s-dn))),{x:l,y:c}},oi=(e,t,n)=>{const r=n?pn:5*fn,o=n?ni().maxWidth:ni().maxHeight,i=e+t;return Math.min(Math.max(r,i),o)},ii=({position:e})=>{const t=$e(null),n=$e(null),r=$e(null),o=$e(null);Me((()=>{const i=t.current;if(!i)return;const a=t=>{const n=t&&((e,t,n,r)=>!(!n||!r)||(n||r?n?e!==t.split("-")[0]:!!r&&e!==t.split("-")[1]:((e,t)=>{const[n,r]=t.split("-");return e!==n&&e!==r})(e,t)))(e,wn.value.corner,wn.value.dimensions.isFullWidth,wn.value.dimensions.isFullHeight);n?i.classList.remove("hidden","pointer-events-none","opacity-0"):i.classList.add("hidden","pointer-events-none","opacity-0")},s=wn.subscribe((e=>{null!==n.current&&null!==r.current&&null!==o.current&&e.dimensions.width===n.current&&e.dimensions.height===r.current&&e.corner===o.current||(a("focused"===pi.inspectState.value.kind),n.current=e.dimensions.width,r.current=e.dimensions.height,o.current=e.corner)})),l=pi.inspectState.subscribe((e=>{a("focused"===e.kind)}));return()=>{s(),l(),n.current=null,r.current=null,o.current=null}}),[]);const i=Ae((t=>{t.preventDefault(),t.stopPropagation();const n=gn.value;if(!n)return;const r=n.style,{dimensions:o}=wn.value,i=t.clientX,a=t.clientY,s=o.width,l=o.height,c=o.position;wn.value={...wn.value,dimensions:{...o,isFullWidth:!1,isFullHeight:!1,width:s,height:l,position:c}};let u=null;const d=t=>{u||(r.transition="none",u=requestAnimationFrame((()=>{const{newSize:n,newPosition:o}=((e,t,n,r,o)=>{const i=window.innerWidth-48,a=window.innerHeight-48;let s=t.width,l=t.height,c=n.x,u=n.y;if(e.includes("right")){const e=window.innerWidth-n.x-dn,o=Math.min(t.width+r,e);s=Math.min(i,Math.max(pn,o))}if(e.includes("left")){const e=n.x+t.width-dn,o=Math.min(t.width-r,e);s=Math.min(i,Math.max(pn,o)),c=n.x-(s-t.width)}if(e.includes("bottom")){const e=window.innerHeight-n.y-dn,r=Math.min(t.height+o,e);l=Math.min(a,Math.max(5*fn,r))}if(e.includes("top")){const e=n.y+t.height-dn,r=Math.min(t.height-o,e);l=Math.min(a,Math.max(5*fn,r)),u=n.y-(l-t.height)}return c=Math.max(dn,Math.min(c,window.innerWidth-dn-s)),u=Math.max(dn,Math.min(u,window.innerHeight-dn-l)),{newSize:{width:s,height:l},newPosition:{x:c,y:u}}})(e,{width:s,height:l},c,t.clientX-i,t.clientY-a);r.transform=`translate3d(${o.x}px, ${o.y}px, 0)`,r.width=`${n.width}px`,r.height=`${n.height}px`,wn.value={...wn.value,dimensions:{isFullWidth:!1,isFullHeight:!1,width:n.width,height:n.height,position:o}},u=null})))},p=()=>{u&&(cancelAnimationFrame(u),u=null),document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",p);const{dimensions:e,corner:t}=wn.value,o=ni(),i=o.isFullWidth(e.width),a=o.isFullHeight(e.height);let s=t;(i&&a||i||a)&&(s=(e=>{const t=ni(),n={"top-left":Math.hypot(e.x,e.y),"top-right":Math.hypot(t.maxWidth-e.x,e.y),"bottom-left":Math.hypot(e.x,t.maxHeight-e.y),"bottom-right":Math.hypot(t.maxWidth-e.x,t.maxHeight-e.y)};let r="top-left";for(const e in n)n[e]<n[r]&&(r=e);return r})(e.position));const l=ri(s,e.width,e.height),c=()=>{n.removeEventListener("transitionend",c)};n.addEventListener("transitionend",c),r.transform=`translate3d(${l.x}px, ${l.y}px, 0)`,wn.value={corner:s,dimensions:{isFullWidth:i,isFullHeight:a,width:e.width,height:e.height,position:l},lastDimensions:{isFullWidth:i,isFullHeight:a,width:e.width,height:e.height,position:l}},an(hn,{corner:s,dimensions:wn.value.dimensions,lastDimensions:wn.value.lastDimensions})};document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",p)}),[]),a=Ae((t=>{t.preventDefault(),t.stopPropagation();const n=gn.value;if(!n)return;const r=n.style,{dimensions:o,corner:i}=wn.value,a=ni(),s=a.isFullWidth(o.width),l=a.isFullHeight(o.height),c=s&&l,u=(s||l)&&!c;let d=o.width,p=o.height;const f=((e,t,n,r,o)=>{if(n){if("top-left"===e)return"bottom-right";if("top-right"===e)return"bottom-left";if("bottom-left"===e)return"top-right";if("bottom-right"===e)return"top-left";const[n,r]=t.split("-");if("left"===e)return`${n}-right`;if("right"===e)return`${n}-left`;if("top"===e)return`bottom-${r}`;if("bottom"===e)return`top-${r}`}if(r){if("left"===e)return`${t.split("-")[0]}-right`;if("right"===e)return`${t.split("-")[0]}-left`}if(o){if("top"===e)return`bottom-${t.split("-")[1]}`;if("bottom"===e)return`top-${t.split("-")[1]}`}return t})(e,i,c,s,l);"left"===e||"right"===e?(d=s?o.width:a.maxWidth,u&&(d=s?pn:a.maxWidth)):(p=l?o.height:a.maxHeight,u&&(p=l?5*fn:a.maxHeight)),c&&("left"===e||"right"===e?d=pn:p=5*fn);const h=ri(f,d,p),m={isFullWidth:a.isFullWidth(d),isFullHeight:a.isFullHeight(p),width:d,height:p,position:h};requestAnimationFrame((()=>{wn.value={corner:f,dimensions:m,lastDimensions:o},r.transition="all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",r.width=`${d}px`,r.height=`${p}px`,r.transform=`translate3d(${h.x}px, ${h.y}px, 0)`})),an(hn,{corner:f,dimensions:m,lastDimensions:o})}),[]);return Gn("div",{ref:t,onMouseDown:i,onDblClick:a,className:rn("absolute z-50","flex items-center justify-center","group","transition-colors select-none","peer",{"resize-left peer/left":"left"===e,"resize-right peer/right":"right"===e,"resize-top peer/top":"top"===e,"resize-bottom peer/bottom":"bottom"===e}),children:Gn("span",{className:"resize-line-wrapper",children:Gn("span",{className:"resize-line",children:Gn(Kn,{name:"icon-ellipsis",size:18,className:rn("text-white/80",{"rotate-90":"left"===e||"right"===e})})})})})},ai=()=>{const[e,t]=Ce(null);Me((()=>{const e=setInterval((()=>{t((uo||(uo=!0,po(),so=60),so))}),100);return()=>clearInterval(e)}),[]);return Gn("span",{style:{display:"flex",alignItems:"center",justifyContent:"end",gap:"4px",padding:"0 8px",height:"24px",fontSize:"12px",fontFamily:"var(--font-mono)",color:"#666",backgroundColor:"#0a0a0a",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"3px",whiteSpace:"nowrap",marginLeft:"12px",minWidth:"72px"},children:[Gn("span",{style:{color:"#666",letterSpacing:"0.5px"},children:"FPS"}),Gn("span",{style:{color:(n=e,n?n<30?"#f87171":n<50?"#fbbf24":"#fff":"#fff"),transition:"color 150ms ease",minWidth:"28px",textAlign:"right",fontWeight:500},children:e})]});var n},si=xn((()=>{const e=$e(null),t=pi.inspectState,n="inspecting"===t.value.kind,r="focused"===t.value.kind,o=Ae((()=>{switch(pi.inspectState.value.kind){case"inspecting":case"focused":pi.inspectState.value={kind:"inspect-off"};break;case"inspect-off":pi.inspectState.value={kind:"inspecting",hoveredDomElement:null}}}),[]),i=Ae((()=>{fi.instrumentation&&(fi.instrumentation.isPaused.value=!fi.instrumentation.isPaused.value)}),[]);Ae((()=>{mn.value=!mn.value}),[]),Me((()=>{const t=pi.inspectState.subscribe((e=>{"uninitialized"===e.kind&&(pi.inspectState.value={kind:"inspect-off"})})),n=mn.subscribe((t=>{e.current?.classList.toggle("text-inspect",t)}));return()=>{t(),n()}}),[]);let a=null,s="#999";return n?(a=Gn(Kn,{name:"icon-inspect"}),s="#8e61e3"):r?(a=Gn(Kn,{name:"icon-focus"}),s="#8e61e3"):(a=Gn(Kn,{name:"icon-inspect"}),s="#999"),Gn("div",{className:rn("flex max-h-9 min-h-9 flex-1 items-stretch overflow-hidden"),children:[Gn("div",{className:"h-full flex items-center min-w-fit",children:[Gn("button",{type:"button",id:"react-scan-inspect-element",title:"Inspect element",onClick:o,className:"button flex items-center justify-center px-3 h-full",style:{color:s},children:a}),Gn("button",{id:"react-scan-power",type:"button",title:fi.instrumentation?.isPaused.value?"Start":"Stop",onClick:i,className:rn("button","flex items-center justify-center px-3 h-full",{"text-white":!fi.instrumentation?.isPaused.value,"text-[#999]":fi.instrumentation?.isPaused.value}),children:Gn(Kn,{name:"icon-"+(fi.instrumentation?.isPaused.value?"eye-off":"eye")})})]}),Gn("div",{className:rn("flex items-center justify-end w-full","py-1.5 px-2","whitespace-nowrap text-sm text-white"),children:["react-scan",Gn(ai,{})]})]})})),li=()=>{const e=$e(null),t=$e(null),n=$e(0),r=$e(0),o=Ae(((t=!0)=>{if(!e.current)return;const o="focused"===pi.inspectState.value.kind,{corner:i}=wn.value;let a,s;if(o||mn.value){const e=wn.value.lastDimensions;a=oi(e.width,0,!0),s=oi(e.height,0,!1)}else{const e=wn.value.dimensions;e.width>n.current&&(wn.value={...wn.value,lastDimensions:{isFullWidth:e.isFullWidth,isFullHeight:e.isFullHeight,width:e.width,height:e.height,position:e.position}}),a=n.current,s=r.current}const l=ri(i,a,s),c=t&&!(a<pn||s<5*fn),u=e.current,d=u.style;let p=null;const f=()=>{yn(),u.removeEventListener("transitionend",f),p&&(cancelAnimationFrame(p),p=null)};u.addEventListener("transitionend",f),d.transition="all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",p=requestAnimationFrame((()=>{d.width=`${a}px`,d.height=`${s}px`,d.transform=`translate3d(${l.x}px, ${l.y}px, 0)`,p=null}));const h={isFullWidth:a>=window.innerWidth-48,isFullHeight:s>=window.innerHeight-48,width:a,height:s,position:l};wn.value={corner:i,dimensions:h,lastDimensions:o?wn.value.lastDimensions:a>n.current?h:wn.value.lastDimensions},c&&an(hn,{corner:wn.value.corner,dimensions:wn.value.dimensions,lastDimensions:wn.value.lastDimensions}),yn()}),[]),i=Ae((t=>{if(t.preventDefault(),!e.current||t.target.closest("button"))return;const n=e.current,r=n.style,{dimensions:o}=wn.value,i=t.clientX,a=t.clientY,s=o.position.x,l=o.position.y;let c=s,u=l,d=null,p=!1,f=i,h=a;const m=e=>{d||(p=!0,f=e.clientX,h=e.clientY,d=requestAnimationFrame((()=>{const e=f-i,t=h-a;c=Number(s)+e,u=Number(l)+t,r.transition="none",r.transform=`translate3d(${c}px, ${u}px, 0)`,d=null})))},g=()=>{if(!n)return;if(d&&(cancelAnimationFrame(d),d=null),document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",g),!p)return;const e=((e,t,n,r,o=100)=>{const i=void 0!==n?e-n:0,a=void 0!==r?t-r:0,s=window.innerWidth/2,l=window.innerHeight/2,c=i>o,u=a>o;if(c||i<-o){const e=t>l;return c?e?"bottom-right":"top-right":e?"bottom-left":"top-left"}if(u||a<-o){const t=e>s;return u?t?"bottom-right":"bottom-left":t?"top-right":"top-left"}return e>s?t>l?"bottom-right":"top-right":t>l?"bottom-left":"top-left"})(f,h,i,a,"focused"===pi.inspectState.value.kind?80:40);if(e===wn.value.corner){r.transition="all 0.3s cubic-bezier(0.4, 0, 0.2, 1)";const e=wn.value.dimensions.position;return void requestAnimationFrame((()=>{r.transform=`translate3d(${e.x}px, ${e.y}px, 0)`}))}const t=ri(e,o.width,o.height);if(c===s&&u===l)return;const v=()=>{r.transition="none",yn(),n.removeEventListener("transitionend",v),d&&(cancelAnimationFrame(d),d=null)};n.addEventListener("transitionend",v),r.transition="all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",requestAnimationFrame((()=>{r.transform=`translate3d(${t.x}px, ${t.y}px, 0)`})),wn.value={corner:e,dimensions:{isFullWidth:o.isFullWidth,isFullHeight:o.isFullHeight,width:o.width,height:o.height,position:t},lastDimensions:wn.value.lastDimensions},an(hn,{corner:e,dimensions:wn.value.dimensions,lastDimensions:wn.value.lastDimensions})};document.addEventListener("mousemove",m,{passive:!0}),document.addEventListener("mouseup",g)}),[]);return Me((()=>{if(!e.current)return;e.current.style.width="min-content",r.current=36,n.current=e.current.offsetWidth,e.current.style.maxWidth="calc(100vw - 48px)",e.current.style.maxHeight="calc(100vh - 48px)","focused"!==pi.inspectState.value.kind&&(wn.value={...wn.value,dimensions:{isFullWidth:!1,isFullHeight:!1,width:n.current,height:r.current,position:wn.value.dimensions.position}}),gn.value=e.current;const i=wn.subscribe((t=>{if(!e.current)return;const{x:n,y:r}=t.dimensions.position,{width:o,height:i}=t.dimensions,a=e.current;requestAnimationFrame((()=>{a.style.transform=`translate3d(${n}px, ${r}px, 0)`,a.style.width=`${o}px`,a.style.height=`${i}px`}))}));mn.subscribe((()=>{o()}));const a=pi.inspectState.subscribe((e=>{t.current&&("inspecting"===e.kind&&((e,t)=>{for(const n of t)e.classList.toggle(n)})(t.current,["opacity-0","duration-0","delay-0"]),o())})),s=()=>{o(!0)};return window.addEventListener("resize",s,{passive:!0}),()=>{window.removeEventListener("resize",s),a(),i(),an(hn,{...vn,corner:wn.value.corner})}}),[]),Gn(J,{children:[Gn(qo,{}),Gn("div",{id:"react-scan-toolbar",ref:e,onMouseDown:i,className:rn("fixed inset-0 rounded-lg shadow-lg","flex flex-col","font-mono text-[13px]","user-select-none","opacity-0","cursor-move","z-[124124124124]","animate-fade-in animation-duration-300 animation-delay-300","will-change-transform"),children:[Gn(ii,{position:"top"}),Gn(ii,{position:"bottom"}),Gn(ii,{position:"left"}),Gn(ii,{position:"right"}),Gn("div",{className:rn("flex flex-1 flex-col","overflow-hidden z-10","rounded-lg","bg-black","opacity-100","transition-[border-radius] duration-150","peer-hover/left:rounded-l-none","peer-hover/right:rounded-r-none","peer-hover/top:rounded-t-none","peer-hover/bottom:rounded-b-none"),children:[Gn("div",{ref:t,className:rn("relative","flex-1","flex flex-col","rounded-t-lg","overflow-hidden","opacity-100","transition-[opacity] duration-150"),children:[Gn(ei,{}),Gn("div",{className:rn("relative","flex-1","text-white","bg-[#0A0A0A]","transition-opacity duration-150 delay-150","overflow-y-scroll overflow-x-hidden"),children:Gn(Rr,{})})]}),Gn(si,{})]})]})]})},ci=null,ui=null,di=null,pi={wasDetailsOpen:qe(!0),isInIframe:qe("undefined"!=typeof window&&window.self!==window.top),inspectState:qe({kind:"uninitialized"}),monitor:qe(null),fiberRoots:new Set,reportData:new Map,legacyReportData:new Map,lastReportTime:qe(0),changesListeners:new Map},fi={instrumentation:null,componentAllowList:null,options:qe({enabled:!0,includeChildren:!0,playSound:!1,log:!1,showToolbar:!0,renderCountThreshold:0,report:void 0,alwaysShowLabels:!1,animationSpeed:"fast",dangerouslyForceRunInProduction:!1,smoothlyAnimateOutlines:!0,trackUnnecessaryRenders:!1}),onRender:null,scheduledOutlines:new Map,activeOutlines:new Map,Store:pi};function hi(e){return e in fi.options.value}var mi,gi=e=>{const t=[],n={};for(const r in e){if(!hi(r))continue;const o=e[r];switch(r){case"enabled":case"showToolbar":case"dangerouslyForceRunInProduction":"boolean"!=typeof o?t.push(`- ${r} must be a boolean. Got "${o}"`):n[r]=o;break;case"animationSpeed":["slow","fast","off"].includes(o)?n[r]=o:t.push(`- Invalid animation speed "${o}". Using default "fast"`);break;case"smoothlyAnimateOutlines":n.smoothlyAnimateOutlines="boolean"==typeof o&&o;break;default:t.push(`- Unknown option "${r}"`)}}return t.length>0&&console.warn(`[React Scan] Invalid options:\n${t.join("\n")}`),n},vi=e=>{const t=gi(e);if(0===Object.keys(t).length)return;"playSound"in t&&t.playSound&&(t.enabled=!0);const n={...fi.options.value,...t},{instrumentation:r}=fi;if(r&&"enabled"in t&&(r.isPaused.value=!1===t.enabled),fi.options.value=n,an("react-scan-options",n),"showToolbar"in t){di&&!n.showToolbar&&di.remove();const{shadowRoot:e}=(()=>{if(ci&&ui)return{rootContainer:ci,shadowRoot:ui};(ci=document.createElement("div")).id="react-scan-root",ui=ci.attachShadow({mode:"open"});const e=document.createDocumentFragment(),t=document.createElement("style");t.textContent='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::-moz-placeholder, textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\\[124124124124\\]{z-index:124124124124}.z-\\[214748365\\]{z-index:214748365}.z-\\[214748367\\]{z-index:214748367}.m-\\[2px\\]{margin:2px}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-px{margin-bottom:1px}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.mt-1{margin-top:.25rem}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[18px\\]{height:18px}.h-full{height:100%}.h-screen{height:100vh}.max-h-0{max-height:0}.max-h-9{max-height:2.25rem}.max-h-\\[\\"auto\\"\\]{max-height:"auto"}.max-h-\\[calc\\(100\\%_-_36px\\)\\]{max-height:calc(100% - 36px)}.min-h-9{min-height:2.25rem}.w-0{width:0}.w-4{width:1rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.min-w-\\[18px\\]{min-width:18px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.flex-1{flex:1 1 0%}.grow{flex-grow:1}.-translate-y-\\[200\\%\\]{--tw-translate-y:-200%}.-translate-y-\\[200\\%\\],.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.rotate-90{--tw-rotate:90deg}.rotate-90,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-fade-in{animation:fadeIn ease-in forwards}.cursor-ew-resize{cursor:ew-resize}.cursor-move{cursor:move}.cursor-nesw-resize{cursor:nesw-resize}.cursor-not-allowed{cursor:not-allowed}.cursor-ns-resize{cursor:ns-resize}.cursor-nwse-resize{cursor:nwse-resize}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.125rem}.gap-2{gap:.5rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem*var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.\\!overflow-visible{overflow:visible!important}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-4{border-width:4px}.border-b,.border-b-1{border-bottom-width:1px}.border-l-1{border-left-width:1px}.border-t-1{border-top-width:1px}.border-\\[\\#222\\]{--tw-border-opacity:1;border-color:rgb(34 34 34/var(--tw-border-opacity,1))}.border-\\[\\#333\\]{--tw-border-opacity:1;border-color:rgb(51 51 51/var(--tw-border-opacity,1))}.border-white\\/10{border-color:hsla(0,0%,100%,.1)}.bg-\\[\\#0A0A0A\\],.bg-\\[\\#0a0a0a\\]{--tw-bg-opacity:1;background-color:rgb(10 10 10/var(--tw-bg-opacity,1))}.bg-\\[\\#1e1e1e\\]{--tw-bg-opacity:1;background-color:rgb(30 30 30/var(--tw-bg-opacity,1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\\/40{background-color:rgba(0,0,0,.4)}.bg-purple-500{--tw-bg-opacity:1;background-color:rgb(168 85 247/var(--tw-bg-opacity,1))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-red-950\\/50{background-color:rgba(69,10,10,.5)}.bg-slate-700{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white\\/10{background-color:hsla(0,0%,100%,.1)}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pl-3{padding-left:.75rem}.font-mono{font-family:Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace}.text-\\[13px\\]{font-size:13px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tracking-\\[0\\.01em\\]{letter-spacing:.01em}.text-\\[\\#888\\]{--tw-text-opacity:1;color:rgb(136 136 136/var(--tw-text-opacity,1))}.text-\\[\\#999\\]{--tw-text-opacity:1;color:rgb(153 153 153/var(--tw-text-opacity,1))}.text-\\[\\#A855F7\\]{--tw-text-opacity:1;color:rgb(168 85 247/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-inspect{--tw-text-opacity:1;color:rgb(142 97 227/var(--tw-text-opacity,1))}.text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-white\\/80{color:hsla(0,0%,100%,.8)}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.\\!shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)!important;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.outline{outline-style:solid}.\\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[border-radius\\]{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-0{transition-delay:0s}.delay-150{transition-delay:.15s}.delay-300{transition-delay:.3s}.duration-0{transition-duration:0s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-transform{will-change:transform}.animation-duration-300{animation-duration:.3s}.animation-delay-300{animation-delay:.3s}*{outline:none!important;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;backface-visibility:hidden;&::-webkit-scrollbar{width:6px;height:6px}&::-webkit-scrollbar-track{border-radius:10px;background:transparent}&::-webkit-scrollbar-thumb{border-radius:10px;background:hsla(0,0%,100%,.3)}&::-webkit-scrollbar-thumb:hover{background:hsla(0,0%,100%,.4)}}@-moz-document url-prefix(){*{scrollbar-width:thin;scrollbar-color:hsla(0,0%,100%,.4) transparent;scrollbar-width:6px}}button:hover{background-image:none}button{outline:2px solid transparent;outline-offset:2px;border-style:none;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-timing-function:linear;cursor:pointer}svg{height:auto;width:auto;pointer-events:none}.with-data-text{overflow:hidden;&:before{content:attr(data-text);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}#react-scan-toolbar{position:fixed;left:0;top:0;display:flex;flex-direction:column;border-radius:.5rem;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);font-family:Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace;font-size:13px;--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1));-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:move;opacity:0;z-index:2147483678}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}#react-scan-toolbar{animation:fadeIn ease-in forwards;animation-duration:.3s;animation-delay:.3s;--tw-shadow:0 4px 12px rgba(0,0,0,.2);--tw-shadow-colored:0 4px 12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.button{&:hover{background:hsla(0,0%,100%,.1)}&:active{background:hsla(0,0%,100%,.15)}}.resize-line-wrapper{position:absolute;overflow:hidden}.resize-line{position:absolute;inset:0;overflow:hidden;--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;svg{position:absolute;top:50%;left:50%;--tw-translate-x:-50%;--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.resize-left,.resize-right{top:0;bottom:0;width:1.5rem;cursor:ew-resize;.resize-line-wrapper{top:0;bottom:0;width:50%}&:hover{.resize-line{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}}.resize-right{right:0;--tw-translate-x:50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));.resize-line-wrapper{right:0}.resize-line{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem;--tw-translate-x:-100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.resize-left{left:0;--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));.resize-line-wrapper{left:0}.resize-line{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem;--tw-translate-x:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.resize-bottom,.resize-top{left:0;right:0;height:1.5rem;cursor:ns-resize;.resize-line-wrapper{left:0;right:0;height:50%}&:hover{.resize-line{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}}.resize-top{top:0;--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));.resize-line-wrapper{top:0}.resize-line{border-top-left-radius:.5rem;border-top-right-radius:.5rem;--tw-translate-y:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.resize-bottom{bottom:0;--tw-translate-y:50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));.resize-line-wrapper{bottom:0}.resize-line{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem;--tw-translate-y:-100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.react-scan-header{display:flex;align-items:center;-moz-column-gap:2rem;column-gap:2rem;padding-left:.75rem;padding-right:.5rem;min-height:2.25rem;border-bottom-width:1px;border-color:hsla(0,0%,100%,.1);overflow:hidden;white-space:nowrap}.react-scan-close-button,.react-scan-replay-button{display:flex;align-items:center;padding:.25rem;min-width:-moz-fit-content;min-width:fit-content;border-radius:.25rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.react-scan-replay-button{position:relative;overflow:hidden;background-color:rgba(168,85,247,.5)!important;&:hover{background-color:rgba(168,85,247,.25)}&.disabled{opacity:.5;pointer-events:none}&:before{content:"";position:absolute;inset:0;--tw-translate-x:-100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));animation:shimmer 2s infinite;background:linear-gradient(90deg,transparent,rgba(142,97,227,.3),transparent)}}.react-scan-close-button{background-color:hsla(0,0%,100%,.1);&:hover{background-color:hsla(0,0%,100%,.15)}}@keyframes shimmer{to{transform:translateX(100%)}}.react-scan-section{display:flex;flex-direction:column;padding:.5rem;--tw-text-opacity:1;color:rgb(136 136 136/var(--tw-text-opacity,1))}.react-scan-section:before{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1));--tw-content:attr(data-section);content:var(--tw-content)}.react-scan-section{font-size:.75rem;>.react-scan-property{margin-left:-.875rem}}.react-scan-property{position:relative;display:flex;flex-direction:column;padding-left:2rem;border-left-width:1px;border-color:transparent;overflow:hidden}.react-scan-property-content{display:flex;flex:1 1 0%;flex-direction:column;min-height:1.5rem;padding-top:.25rem;padding-bottom:.25rem;max-width:100%;overflow:hidden}.react-scan-string{color:#9ecbff}.react-scan-number{color:#79c7ff}.react-scan-boolean{color:#56b6c2}.react-scan-key{width:-moz-fit-content;width:fit-content;max-width:15rem}.react-scan-input,.react-scan-key{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.react-scan-input{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}@keyframes blink{0%{opacity:1}to{opacity:0}}.react-scan-arrow{position:absolute;top:.25rem;left:1.75rem;display:flex;align-items:center;justify-content:center;cursor:pointer;height:1.5rem;width:1.5rem;--tw-translate-x:-100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));z-index:10;>svg{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}}.react-scan-expandable{display:grid;grid-template-rows:0fr;overflow:hidden;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:75ms;transition-timing-function:ease-out;>*{min-height:0}&.react-scan-expanded{grid-template-rows:1fr;transition-duration:.1s}}.react-scan-what-changed-expandable{display:grid;grid-template-rows:0fr;overflow:hidden;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s;transition-timing-function:ease-out;>*{min-height:0}&.react-scan-expanded{grid-template-rows:1fr;transition-duration:.2s}}.react-scan-nested{position:relative;overflow:hidden;&:before{content:"";position:absolute;top:0;left:0;height:100%;width:1px;background-color:hsla(220,9%,46%,.3)}}.react-scan-settings{position:absolute;inset:0;display:flex;flex-direction:column;gap:1rem;padding:.5rem 1rem;--tw-text-opacity:1;color:rgb(136 136 136/var(--tw-text-opacity,1));>div{display:flex;align-items:center;justify-content:space-between;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}}.react-scan-preview-line{position:relative;display:flex;min-height:1.5rem;align-items:center;-moz-column-gap:.5rem;column-gap:.5rem}.react-scan-flash-overlay{position:absolute;inset:0;opacity:0;z-index:999999;pointer-events:none;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;mix-blend-mode:multiply;background-color:rgba(168,85,247,.9)}.react-scan-toggle{position:relative;input{position:absolute;inset:0;z-index:20;opacity:0;cursor:pointer}input:checked{+div{--tw-bg-opacity:1;background-color:rgb(82 82 82/var(--tw-bg-opacity,1))}+div{&:before{--tw-translate-x:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));left:auto;--tw-bg-opacity:1;background-color:rgb(142 97 227/var(--tw-bg-opacity,1));--tw-border-opacity:1;border-color:rgb(82 82 82/var(--tw-border-opacity,1))}}}>div{position:relative;height:1rem;width:2rem;--tw-bg-opacity:1;background-color:rgb(64 64 64/var(--tw-bg-opacity,1));border-radius:9999px;pointer-events:none;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}>div{&:before{--tw-content:"";content:var(--tw-content);position:absolute;top:50%;left:0;--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));height:1rem;width:1rem;--tw-bg-opacity:1;background-color:rgb(115 115 115/var(--tw-bg-opacity,1));border-width:2px;--tw-border-opacity:1;border-color:rgb(64 64 64/var(--tw-border-opacity,1));border-radius:9999px;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}}}.react-scan-flash-active{opacity:.4;transition:opacity .3s ease-in-out}.react-scan-inspector-overlay{opacity:0;transition:opacity .3s ease-in-out;&.fade-out{opacity:0}&.fade-in{opacity:1}}.react-scan-what-changed{ul{list-style-type:disc;padding-left:1rem}li{white-space:nowrap}li{>div{display:flex;align-items:center;justify-content:space-between;-moz-column-gap:.5rem;column-gap:.5rem}}}@keyframes countFlash{0%{background-color:rgba(168,85,247,.3);transform:scale(1.05)}to{background-color:rgba(168,85,247,.1);transform:scale(1)}}.count-badge{background-color:rgba(168,85,247,.1);transition:all .3s ease-out}.count-flash{animation:countFlash .3s ease-out forwards}.hover\\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.hover\\:bg-white\\/5:hover{background-color:hsla(0,0%,100%,.05)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\\:opacity-100{opacity:1}.peer\\/bottom:hover~.peer-hover\\/bottom\\:rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.peer\\/left:hover~.peer-hover\\/left\\:rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.peer\\/right:hover~.peer-hover\\/right\\:rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.peer\\/top:hover~.peer-hover\\/top\\:rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}';const n=(new DOMParser).parseFromString('\n<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">\n <symbol id="icon-eye-off" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"/>\n <path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"/>\n <path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"/>\n <path d="m2 2 20 20"/>\n </symbol>\n\n <symbol id="icon-eye" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" />\n <circle cx="12" cy="12" r="3" />\n </symbol>\n\n\n <symbol id="icon-inspect" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z"/>\n <path d="M5 3a2 2 0 0 0-2 2"/>\n <path d="M19 3a2 2 0 0 1 2 2"/>\n <path d="M5 21a2 2 0 0 1-2-2"/>\n <path d="M9 3h1"/>\n <path d="M9 21h2"/>\n <path d="M14 3h1"/>\n <path d="M3 9v1"/>\n <path d="M21 9v2"/>\n <path d="M3 14v1"/>\n </symbol>\n\n <symbol id="icon-focus" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z"/>\n <path d="M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6"/>\n </symbol>\n\n <symbol id="icon-next" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M6 9h6V5l7 7-7 7v-4H6V9z"/>\n </symbol>\n\n <symbol id="icon-previous" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M18 15h-6v4l-7-7 7-7v4h6v6z"/>\n </symbol>\n\n <symbol id="icon-volume-on" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"/>\n <path d="M16 9a5 5 0 0 1 0 6"/>\n <path d="M19.364 18.364a9 9 0 0 0 0-12.728"/>\n </symbol>\n\n <symbol id="icon-volume-off" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"/>\n <line x1="22" x2="16" y1="9" y2="15"/>\n <line x1="16" x2="22" y1="9" y2="15"/>\n </symbol>\n\n <symbol id="icon-scan-eye" viewBox="0 0 24 24">\n <path d="M3 7V5a2 2 0 0 1 2-2h2"/>\n <path d="M17 3h2a2 2 0 0 1 2 2v2"/>\n <path d="M21 17v2a2 2 0 0 1-2 2h-2"/>\n <path d="M7 21H5a2 2 0 0 1-2-2v-2"/>\n <circle cx="12" cy="12" r="1"/>\n <path d="M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0"/>\n </symbol>\n\n <symbol id="icon-close" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <line x1="18" y1="6" x2="6" y2="18"/>\n <line x1="6" y1="6" x2="18" y2="18"/>\n </symbol>\n\n <symbol id="icon-replay" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M3 7V5a2 2 0 0 1 2-2h2"/>\n <path d="M17 3h2a2 2 0 0 1 2 2v2"/>\n <path d="M21 17v2a2 2 0 0 1-2 2h-2"/>\n <path d="M7 21H5a2 2 0 0 1-2-2v-2"/>\n <circle cx="12" cy="12" r="1"/>\n <path d="M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0"/>\n </symbol>\n\n <symbol id="icon-ellipsis" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <circle cx="12" cy="12" r="1"/>\n <circle cx="19" cy="12" r="1"/>\n <circle cx="5" cy="12" r="1"/>\n </symbol>\n\n <symbol id="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <rect width="14" height="14" x="8" y="8" rx="2" ry="2"/>\n <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>\n </symbol>\n\n <symbol id="icon-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M20 6 9 17l-5-5"/>\n </symbol>\n\n <symbol id="icon-alert" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/>\n <path d="M12 9v4"/>\n <path d="M12 17h.01"/>\n </symbol>\n\n <symbol id="icon-chevron-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="m9 18 6-6-6-6"/>\n </symbol>\n\n <symbol id="icon-settings" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3" />\n </symbol>\n\n <symbol id="icon-flame" viewBox="0 0 24 24">\n <path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/>\n </symbol>\n\n\n \n <symbol id="icon-function" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <rect width="18" height="18" x="3" y="3" rx="2" ry="2"/>\n <path d="M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3"/>\n <path d="M9 11.2h5.7"/>\n </symbol>\n\n <symbol id="icon-shield" viewBox="0 0 24 24">\n <path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/>\n </symbol>\n\n <symbol id="icon-bell-ring" viewBox="0 0 24 24">\n <path d="M10.268 21a2 2 0 0 0 3.464 0"/>\n <path d="M22 8c0-2.3-.8-4.3-2-6"/>\n <path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"/>\n <path d="M4 2C2.8 3.7 2 5.7 2 8"/>\n </symbol>\n</svg>\n',"image/svg+xml").documentElement;ui.appendChild(n);const r=document.createElement("div");return r.id="react-scan-toolbar-root",r.className="absolute z-2147483647",e.appendChild(t),e.appendChild(r),ui.appendChild(e),document.documentElement.appendChild(ci),{rootContainer:ci,shadowRoot:ui}})();n.showToolbar&&e&&(di=(e=>{const t=document.createElement("div");e.appendChild(t),me(Gn(li,{}),t);const n=t.remove.bind(t);return t.remove=()=>{t.hasChildNodes()&&(me(null,t),me(null,t)),n()},t})(e))}},wi=null,yi=()=>{if(null!==wi)return wi;mi??=a();for(const e of mi.renderers.values()){"production"===M(e)&&(wi=!0)}return wi},bi=()=>{if("undefined"==typeof window)return;if(yi()&&!fi.options.value.dangerouslyForceRunInProduction)return;const e=on("react-scan-options");if(e){const{enabled:t}=e,n=gi({enabled:t});Object.keys(n).length>0&&(fi.options.value={...fi.options.value,...n})}Bo();const t="undefined"!=typeof window;pi.monitor.value||t||setTimeout((()=>{(()=>{const e=a();return Boolean(e._instrumentationIsActive)||C()})()||console.error("[React Scan] Failed to load. Must import React Scan before React runs.")}),5e3)},xi=(e={})=>{vi(e);pi.isInIframe.value||!1===e.enabled&&!0!==e.showToolbar||bi()},_i=new WeakSet;D(),D(),"undefined"!=typeof window&&(xi({dangerouslyForceRunInProduction:!0,showToolbar:!0}),window.reactScan=xi)
/*! Bundled license information:
bippy/dist/index.js:
(**
* @license bippy
*
* Copyright (c) Aiden Bai, Million Software, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
*/,e.ReactScanInternals=fi,e.Store=pi,e.getIsProduction=yi,e.getOptions=()=>fi.options,e.getReport=e=>{if(e){for(const t of Array.from(pi.legacyReportData.values()))if(t.type===e)return t;return null}return pi.legacyReportData},e.ignoreScan=e=>{e&&"object"==typeof e&&_i.add(e)},e.ignoredProps=_i,e.onRender=(e,t)=>{const n=fi.onRender;fi.onRender=(r,o)=>{n?.(r,o),S(r.type)===e&&t(r,o)}},e.scan=xi,e.setOptions=vi,e.start=bi,e.useScan=(e={})=>{vi(e),bi()},e.withScan=(e,t={})=>{vi(t);const n=pi.isInIframe.value,r=fi.componentAllowList;return n||!1===t.enabled&&!0!==t.showToolbar||(r||(fi.componentAllowList=new WeakMap),r&&r.set(e,{...t}),bi()),e}}({});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment