@quantajs/react 2.0.0-beta.1 → 2.0.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,52 +1,28 @@
1
- /*! MIT License
2
-
3
- Copyright (c) 2025 QuantaJS
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
- */
23
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react"),W=require("@quantajs/core");function Z(c,l){return j.useSyncExternalStore(c.subscribe,()=>l?l(c):c,()=>l?l(c):c)}const ee=j.createContext(null);function je(){const c=j.useContext(ee);if(!c)throw new Error("useQuantaContext must be used within a QuantaProvider");return c}function pr(c){const{store:l}=je();return c?Z(l,c):Z(l)}function br(c,l,k,E){const R=j.useRef();return R.current||(R.current=W.createStore(c,{state:l,getters:k,actions:E})),R.current}var q={exports:{}},I={};/**
24
- * @license React
25
- * react-jsx-runtime.production.min.js
26
- *
27
- * Copyright (c) Facebook, Inc. and its affiliates.
28
- *
29
- * This source code is licensed under the MIT license found in the
30
- * LICENSE file in the root directory of this source tree.
31
- */var Ce;function gr(){if(Ce)return I;Ce=1;var c=j,l=Symbol.for("react.element"),k=Symbol.for("react.fragment"),E=Object.prototype.hasOwnProperty,R=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Y={key:!0,ref:!0,__self:!0,__source:!0};function D(m,d,P){var g,h={},S=null,L=null;P!==void 0&&(S=""+P),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(L=d.ref);for(g in d)E.call(d,g)&&!Y.hasOwnProperty(g)&&(h[g]=d[g]);if(m&&m.defaultProps)for(g in d=m.defaultProps,d)h[g]===void 0&&(h[g]=d[g]);return{$$typeof:l,type:m,key:S,ref:L,props:h,_owner:R.current}}return I.Fragment=k,I.jsx=D,I.jsxs=D,I}var $={};/**
32
- * @license React
33
- * react-jsx-runtime.development.js
34
- *
35
- * Copyright (c) Facebook, Inc. and its affiliates.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE file in the root directory of this source tree.
39
- */var we;function yr(){return we||(we=1,process.env.NODE_ENV!=="production"&&function(){var c=j,l=Symbol.for("react.element"),k=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),m=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),re=Symbol.iterator,ke="@@iterator";function De(e){if(e===null||typeof e!="object")return null;var r=re&&e[re]||e[ke];return typeof r=="function"?r:null}var C=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Fe("error",e,t)}}function Fe(e,r,t){{var n=C.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ae=!1,Ie=!1,$e=!1,We=!1,Ye=!1,te;te=Symbol.for("react.module.reference");function Le(e){return!!(typeof e=="string"||typeof e=="function"||e===E||e===Y||Ye||e===R||e===P||e===g||We||e===L||Ae||Ie||$e||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===h||e.$$typeof===D||e.$$typeof===m||e.$$typeof===d||e.$$typeof===te||e.getModuleId!==void 0))}function Me(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ne(e){return e.displayName||"Context"}function _(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case k:return"Portal";case Y:return"Profiler";case R:return"StrictMode";case P:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m:var r=e;return ne(r)+".Consumer";case D:var t=e;return ne(t._context)+".Provider";case d:return Me(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:_(e.type)||"Memo";case S:{var i=e,u=i._payload,o=i._init;try{return _(o(u))}catch{return null}}}return null}var T=Object.assign,F=0,ae,oe,ie,ue,se,fe,ce;function le(){}le.__reactDisabledLog=!0;function Ve(){{if(F===0){ae=console.log,oe=console.info,ie=console.warn,ue=console.error,se=console.group,fe=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function Ue(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},e,{value:ae}),info:T({},e,{value:oe}),warn:T({},e,{value:ie}),error:T({},e,{value:ue}),group:T({},e,{value:se}),groupCollapsed:T({},e,{value:fe}),groupEnd:T({},e,{value:ce})})}F<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=C.ReactCurrentDispatcher,Q;function M(e,r,t){{if(Q===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Q=n&&n[1]||""}return`
40
- `+Q+e}}var B=!1,V;{var Ne=typeof WeakMap=="function"?WeakMap:Map;V=new Ne}function de(e,r){if(!e||B)return"";{var t=V.get(e);if(t!==void 0)return t}var n;B=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=J.current,J.current=null,Ve();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(b){n=b}Reflect.construct(e,[],o)}else{try{o.call()}catch(b){n=b}e.call(o.prototype)}}else{try{throw Error()}catch(b){n=b}e()}}catch(b){if(b&&n&&typeof b.stack=="string"){for(var a=b.stack.split(`
41
- `),p=n.stack.split(`
42
- `),s=a.length-1,f=p.length-1;s>=1&&f>=0&&a[s]!==p[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==p[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==p[f]){var y=`
43
- `+a[s].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,y),y}while(s>=1&&f>=0);break}}}finally{B=!1,J.current=u,Ue(),Error.prepareStackTrace=i}var x=e?e.displayName||e.name:"",O=x?M(x):"";return typeof e=="function"&&V.set(e,O),O}function qe(e,r,t){return de(e,!1)}function Je(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return de(e,Je(e));if(typeof e=="string")return M(e);switch(e){case P:return M("Suspense");case g:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return qe(e.render);case h:return U(e.type,r,t);case S:{var n=e,i=n._payload,u=n._init;try{return U(u(i),r,t)}catch{}}}return""}var A=Object.prototype.hasOwnProperty,ve={},pe=C.ReactDebugCurrentFrame;function N(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);pe.setExtraStackFrame(t)}else pe.setExtraStackFrame(null)}function Qe(e,r,t,n,i){{var u=Function.call.bind(A);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var p=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(N(i),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,o,typeof a),N(null)),a instanceof Error&&!(a.message in ve)&&(ve[a.message]=!0,N(i),v("Failed %s type: %s",t,a.message),N(null))}}}var Be=Array.isArray;function K(e){return Be(e)}function Ke(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ge(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function ge(e){if(Ge(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),be(e)}var ye=C.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},he,Ee;function Xe(e){if(A.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function He(e){if(A.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ze(e,r){typeof e.ref=="string"&&ye.current}function er(e,r){{var t=function(){he||(he=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function rr(e,r){{var t=function(){Ee||(Ee=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var tr=function(e,r,t,n,i,u,o){var a={$$typeof:l,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function nr(e,r,t,n,i){{var u,o={},a=null,p=null;t!==void 0&&(ge(t),a=""+t),He(r)&&(ge(r.key),a=""+r.key),Xe(r)&&(p=r.ref,Ze(r,i));for(u in r)A.call(r,u)&&!ze.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(a||p){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&er(o,f),p&&rr(o,f)}return tr(e,a,p,i,n,ye.current,o)}}var G=C.ReactCurrentOwner,Re=C.ReactDebugCurrentFrame;function w(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var z;z=!1;function X(e){return typeof e=="object"&&e!==null&&e.$$typeof===l}function _e(){{if(G.current){var e=_(G.current.type);if(e)return`
1
+ /*! MIT License
2
+
3
+ Copyright (c) 2025 QuantaJS
44
4
 
45
- Check the render method of \``+e+"`."}return""}}function ar(e){return""}var me={};function or(e){{var r=_e();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
46
11
 
47
- Check the top-level render call using <`+t+">.")}return r}}function Se(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=or(r);if(me[t])return;me[t]=!0;var n="";e&&e._owner&&e._owner!==G.current&&(n=" It was passed a child from "+_(e._owner.type)+"."),w(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),w(null)}}function Te(e,r){{if(typeof e!="object")return;if(K(e))for(var t=0;t<e.length;t++){var n=e[t];X(n)&&Se(n,r)}else if(X(e))e._store&&(e._store.validated=!0);else if(e){var i=De(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)X(o.value)&&Se(o.value,r)}}}function ir(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===d||r.$$typeof===h))t=r.propTypes;else return;if(t){var n=_(r);Qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!z){z=!0;var i=_(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ur(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){w(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),w(null);break}}e.ref!==null&&(w(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),w(null))}}var Oe={};function Pe(e,r,t,n,i,u){{var o=Le(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var p=ar();p?a+=p:a+=_e();var s;e===null?s="null":K(e)?s="array":e!==void 0&&e.$$typeof===l?(s="<"+(_(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=nr(e,r,t,i,u);if(f==null)return f;if(o){var y=r.children;if(y!==void 0)if(n)if(K(y)){for(var x=0;x<y.length;x++)Te(y[x],e);Object.freeze&&Object.freeze(y)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Te(y,e)}if(A.call(r,"key")){var O=_(e),b=Object.keys(r).filter(function(vr){return vr!=="key"}),H=b.length>0?"{key: someKey, "+b.join(": ..., ")+": ...}":"{key: someKey}";if(!Oe[O+H]){var dr=b.length>0?"{"+b.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+ */
23
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),E=require("@quantajs/core"),Et=Symbol("unset");function ht(e,t){if(!e.subscribe){const a=new Error("QuantaJS store missing `subscribe`—ensure core v0.1.0-beta.2+.");throw E.logger.error(`useQuantaStore: ${a.message}`),a}if(!t){const a=C.useRef(0),p=C.useCallback(_=>{const c=()=>{a.current++,_()};return e.subscribe(c)},[e]),h=C.useCallback(()=>a.current,[]);return C.useSyncExternalStore(p,h,h),e}const r=C.useRef(Et),i=C.useCallback(()=>{const a=t(e);return r.current=a,a},[e,t]),o=C.useCallback(a=>{const p=()=>{try{const h=t(e);Object.is(r.current,h)||(r.current=h,a())}catch(h){E.logger.warn(`useQuantaStore: Selector update failed: ${String(h)}`)}};return e.subscribe(p)},[e,t]),l=C.useCallback(()=>(r.current===Et&&i(),r.current),[i]),s=C.useCallback(()=>i(),[i]);return C.useSyncExternalStore(o,l,s)}const xt=C.createContext(null);function Yt(){const e=C.useContext(xt);if(e===null){const t="useQuantaContext must be used within a QuantaProvider. Wrap your component tree with <QuantaProvider stores={...}>.";throw E.logger.error(`QuantaContext: ${t}`),new Error(t)}return e}function pe(e,t){try{const{stores:r}=Yt(),i=r[e];if(!i){const o=`Store with name "${e}" does not exist in the context.`;throw E.logger.error(`useStore: ${o}`),new Error(o)}return t?ht(i,t):ht(i)}catch(r){throw E.logger.error(`useStore: Failed to access store "${e}": ${r instanceof Error?r.message:String(r)}`),r}}function ue(e,t,r,i){const o=C.useRef(void 0);if(!o.current)try{o.current=E.createStore(e,{state:t,getters:r,actions:i})}catch(l){throw E.logger.error(`useCreateStore: Failed to create store "${e}": ${l instanceof Error?l.message:String(l)}`),l}return C.useEffect(()=>()=>{o.current?.$destroy?.()},[]),o.current}var V={exports:{}},U={};var Tt;function _e(){if(Tt)return U;Tt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,o,l){var s=null;if(l!==void 0&&(s=""+l),o.key!==void 0&&(s=""+o.key),"key"in o){l={};for(var a in o)a!=="key"&&(l[a]=o[a])}else l=o;return o=l.ref,{$$typeof:e,type:i,key:s,ref:o!==void 0?o:null,props:l}}return U.Fragment=t,U.jsx=r,U.jsxs=r,U}var L={};var At;function xe(){return At||(At=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===de?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case m:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case W:return"Suspense";case F:return"SuspenseList";case M:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case A:return"Portal";case N:return d.displayName||"Context";case P:return(d._context.displayName||"Context")+".Consumer";case $:var x=d.render;return d=d.displayName,d||(d=x.displayName||x.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case H:return x=d.displayName||null,x!==null?x:e(d.type)||"Memo";case T:x=d._payload,d=d._init;try{return e(d(x))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var x=!1}catch{x=!0}if(x){x=console;var w=x.error,S=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return w.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",S),t(d)}}function i(d){if(d===m)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===T)return"<...>";try{var x=e(d);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function o(){var d=nt.A;return d===null?null:d.getOwner()}function l(){return Error("react-stack-top-frame")}function s(d){if(mt.call(d,"key")){var x=Object.getOwnPropertyDescriptor(d,"key").get;if(x&&x.isReactWarning)return!1}return d.key!==void 0}function a(d,x){function w(){qt||(qt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}w.isReactWarning=!0,Object.defineProperty(d,"key",{get:w,configurable:!0})}function p(){var d=e(this.type);return kt[d]||(kt[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function h(d,x,w,S,Y,at){var j=w.ref;return d={$$typeof:b,type:d,key:x,props:w,_owner:S},(j!==void 0?j:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:p}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:at}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function _(d,x,w,S,Y,at){var j=x.children;if(j!==void 0)if(S)if(he(j)){for(S=0;S<j.length;S++)c(j[S]);Object.freeze&&Object.freeze(j)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(j);if(mt.call(x,"key")){j=e(d);var I=Object.keys(x).filter(function(fe){return fe!=="key"});S=0<I.length?"{key: someKey, "+I.join(": ..., ")+": ...}":"{key: someKey}",Ct[j+S]||(I=0<I.length?"{"+I.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
48
24
  let props = %s;
49
25
  <%s {...props} />
50
26
  React keys must be passed directly to JSX without using spread:
51
27
  let props = %s;
52
- <%s key={someKey} {...props} />`,H,O,dr,O),Oe[O+H]=!0}}return e===E?ur(f):ir(f),f}}function sr(e,r,t){return Pe(e,r,t,!0)}function fr(e,r,t){return Pe(e,r,t,!1)}var cr=fr,lr=sr;$.Fragment=E,$.jsx=cr,$.jsxs=lr}()),$}var xe;function hr(){return xe||(xe=1,process.env.NODE_ENV==="production"?q.exports=gr():q.exports=yr()),q.exports}var Er=hr();function Rr({store:c,children:l}){return Er.jsx(ee.Provider,{value:{store:c},children:l})}Object.defineProperty(exports,"computed",{enumerable:!0,get:()=>W.computed});Object.defineProperty(exports,"createStore",{enumerable:!0,get:()=>W.createStore});Object.defineProperty(exports,"reactive",{enumerable:!0,get:()=>W.reactive});Object.defineProperty(exports,"watch",{enumerable:!0,get:()=>W.watch});exports.QuantaContext=ee;exports.QuantaProvider=Rr;exports.useCreateStore=br;exports.useQuantaContext=je;exports.useQuantaStore=Z;exports.useStore=pr;
28
+ <%s key={someKey} {...props} />`,S,j,I,j),Ct[j+S]=!0)}if(j=null,w!==void 0&&(r(w),j=""+w),s(x)&&(r(x.key),j=""+x.key),"key"in x){w={};for(var st in x)st!=="key"&&(w[st]=x[st])}else w=x;return j&&a(w,typeof d=="function"?d.displayName||d.name||"Unknown":d),h(d,j,w,o(),Y,at)}function c(d){u(d)?d._store&&(d._store.validated=1):typeof d=="object"&&d!==null&&d.$$typeof===T&&(d._payload.status==="fulfilled"?u(d._payload.value)&&d._payload.value._store&&(d._payload.value._store.validated=1):d._store&&(d._store.validated=1))}function u(d){return typeof d=="object"&&d!==null&&d.$$typeof===b}var f=C,b=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),N=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),de=Symbol.for("react.client.reference"),nt=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,mt=Object.prototype.hasOwnProperty,he=Array.isArray,ct=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(d){return d()}};var qt,kt={},St=f.react_stack_bottom_frame.bind(f,l)(),jt=ct(i(l)),Ct={};L.Fragment=m,L.jsx=function(d,x,w){var S=1e4>nt.recentlyCreatedOwnerStacks++;return _(d,x,w,!1,S?Error("react-stack-top-frame"):St,S?ct(i(d)):jt)},L.jsxs=function(d,x,w){var S=1e4>nt.recentlyCreatedOwnerStacks++;return _(d,x,w,!0,S?Error("react-stack-top-frame"):St,S?ct(i(d)):jt)}})()),L}var Rt;function ye(){return Rt||(Rt=1,process.env.NODE_ENV==="production"?V.exports=_e():V.exports=xe()),V.exports}var ge=ye();function ve({stores:e,children:t}){try{if(!e||typeof e!="object"){const r="QuantaProvider: Invalid stores prop provided";throw E.logger.error(r),new Error(r)}for(const[r,i]of Object.entries(e))if(!i||typeof i!="object"){const o=`QuantaProvider: Invalid store "${r}" provided`;throw E.logger.error(o),new Error(o)}return ge.jsx(xt.Provider,{value:{stores:e},children:t})}catch(r){throw E.logger.error(`QuantaProvider: Failed to render provider: ${r instanceof Error?r.message:String(r)}`),r}}var it,v,Vt,D,Pt,Jt,Gt,Xt,yt,ft,pt,K={},tt=[],be=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,lt=Array.isArray;function O(e,t){for(var r in t)e[r]=t[r];return e}function gt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Zt(e,t,r){var i,o,l,s={};for(l in t)l=="key"?i=t[l]:l=="ref"?o=t[l]:s[l]=t[l];if(arguments.length>2&&(s.children=arguments.length>3?it.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(l in e.defaultProps)s[l]===void 0&&(s[l]=e.defaultProps[l]);return G(e,s,i,o,null)}function G(e,t,r,i,o){var l={type:e,props:t,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Vt,__i:-1,__u:0};return o==null&&v.vnode!=null&&v.vnode(l),l}function ot(e){return e.children}function X(e,t){this.props=e,this.context=t}function B(e,t){if(t==null)return e.__?B(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?B(e):null}function we(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,i=[],o=[],l=O({},t);l.__v=t.__v+1,v.vnode&&v.vnode(l),vt(e.__P,l,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,i,r??B(t),!!(32&t.__u),o),l.__v=t.__v,l.__.__k[l.__i]=l,re(i,l,o),t.__e=t.__=null,l.__e!=r&&Kt(l)}}function Kt(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Kt(e)}function Nt(e){(!e.__d&&(e.__d=!0)&&D.push(e)&&!et.__r++||Pt!=v.debounceRendering)&&((Pt=v.debounceRendering)||Jt)(et)}function et(){for(var e,t=1;D.length;)D.length>t&&D.sort(Gt),e=D.shift(),t=D.length,we(e);et.__r=0}function te(e,t,r,i,o,l,s,a,p,h,_){var c,u,f,b,A,m,g,y=i&&i.__k||tt,P=t.length;for(p=me(r,t,y,p,P),c=0;c<P;c++)(f=r.__k[c])!=null&&(u=f.__i!=-1&&y[f.__i]||K,f.__i=c,m=vt(e,f,u,o,l,s,a,p,h,_),b=f.__e,f.ref&&u.ref!=f.ref&&(u.ref&&bt(u.ref,null,f),_.push(f.ref,f.__c||b,f)),A==null&&b!=null&&(A=b),(g=!!(4&f.__u))||u.__k===f.__k?p=ee(f,p,e,g):typeof f.type=="function"&&m!==void 0?p=m:b&&(p=b.nextSibling),f.__u&=-7);return r.__e=A,p}function me(e,t,r,i,o){var l,s,a,p,h,_=r.length,c=_,u=0;for(e.__k=new Array(o),l=0;l<o;l++)(s=t[l])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[l]=G(null,s,null,null,null):lt(s)?s=e.__k[l]=G(ot,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[l]=G(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[l]=s,p=l+u,s.__=e,s.__b=e.__b+1,a=null,(h=s.__i=qe(s,r,p,c))!=-1&&(c--,(a=r[h])&&(a.__u|=2)),a==null||a.__v==null?(h==-1&&(o>_?u--:o<_&&u++),typeof s.type!="function"&&(s.__u|=4)):h!=p&&(h==p-1?u--:h==p+1?u++:(h>p?u--:u++,s.__u|=4))):e.__k[l]=null;if(c)for(l=0;l<_;l++)(a=r[l])!=null&&(2&a.__u)==0&&(a.__e==i&&(i=B(a)),le(a,a));return i}function ee(e,t,r,i){var o,l;if(typeof e.type=="function"){for(o=e.__k,l=0;o&&l<o.length;l++)o[l]&&(o[l].__=e,t=ee(o[l],t,r,i));return t}e.__e!=t&&(i&&(t&&e.type&&!t.parentNode&&(t=B(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function qe(e,t,r,i){var o,l,s,a=e.key,p=e.type,h=t[r],_=h!=null&&(2&h.__u)==0;if(h===null&&a==null||_&&a==h.key&&p==h.type)return r;if(i>(_?1:0)){for(o=r-1,l=r+1;o>=0||l<t.length;)if((h=t[s=o>=0?o--:l++])!=null&&(2&h.__u)==0&&a==h.key&&p==h.type)return s}return-1}function Ot(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||be.test(t)?r:r+"px"}function J(e,t,r,i,o){var l,s;t:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(t in i)r&&t in r||Ot(e.style,t,"");if(r)for(t in r)i&&r[t]==i[t]||Ot(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")l=t!=(t=t.replace(Xt,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+l]=r,r?i?r.u=i.u:(r.u=yt,e.addEventListener(t,l?pt:ft,l)):e.removeEventListener(t,l?pt:ft,l);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break t}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function zt(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=yt++;else if(t.t<r.u)return;return r(v.event?v.event(t):t)}}}function vt(e,t,r,i,o,l,s,a,p,h){var _,c,u,f,b,A,m,g,y,P,N,$,W,F,H,T=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(p=!!(32&r.__u),l=[a=t.__e=r.__e]),(_=v.__b)&&_(t);t:if(typeof T=="function")try{if(g=t.props,y="prototype"in T&&T.prototype.render,P=(_=T.contextType)&&i[_.__c],N=_?P?P.props.value:_.__:i,r.__c?m=(c=t.__c=r.__c).__=c.__E:(y?t.__c=c=new T(g,N):(t.__c=c=new X(g,N),c.constructor=T,c.render=Se),P&&P.sub(c),c.state||(c.state={}),c.__n=i,u=c.__d=!0,c.__h=[],c._sb=[]),y&&c.__s==null&&(c.__s=c.state),y&&T.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=O({},c.__s)),O(c.__s,T.getDerivedStateFromProps(g,c.__s))),f=c.props,b=c.state,c.__v=t,u)y&&T.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),y&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(y&&T.getDerivedStateFromProps==null&&g!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(g,N),t.__v==r.__v||!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(g,c.__s,N)===!1){t.__v!=r.__v&&(c.props=g,c.state=c.__s,c.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(M){M&&(M.__=t)}),tt.push.apply(c.__h,c._sb),c._sb=[],c.__h.length&&s.push(c);break t}c.componentWillUpdate!=null&&c.componentWillUpdate(g,c.__s,N),y&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,b,A)})}if(c.context=N,c.props=g,c.__P=e,c.__e=!1,$=v.__r,W=0,y)c.state=c.__s,c.__d=!1,$&&$(t),_=c.render(c.props,c.state,c.context),tt.push.apply(c.__h,c._sb),c._sb=[];else do c.__d=!1,$&&$(t),_=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++W<25);c.state=c.__s,c.getChildContext!=null&&(i=O(O({},i),c.getChildContext())),y&&!u&&c.getSnapshotBeforeUpdate!=null&&(A=c.getSnapshotBeforeUpdate(f,b)),F=_!=null&&_.type===ot&&_.key==null?ie(_.props.children):_,a=te(e,lt(F)?F:[F],t,r,i,o,l,s,a,p,h),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),m&&(c.__E=c.__=null)}catch(M){if(t.__v=null,p||l!=null)if(M.then){for(t.__u|=p?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;l[l.indexOf(a)]=null,t.__e=a}else{for(H=l.length;H--;)gt(l[H]);ut(t)}else t.__e=r.__e,t.__k=r.__k,M.then||ut(t);v.__e(M,t,r)}else l==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):a=t.__e=ke(r.__e,t,r,i,o,l,s,p,h);return(_=v.diffed)&&_(t),128&t.__u?void 0:a}function ut(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(ut))}function re(e,t,r){for(var i=0;i<r.length;i++)bt(r[i],r[++i],r[++i]);v.__c&&v.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(l){l.call(o)})}catch(l){v.__e(l,o.__v)}})}function ie(e){return typeof e!="object"||e==null||e.__b>0?e:lt(e)?e.map(ie):O({},e)}function ke(e,t,r,i,o,l,s,a,p){var h,_,c,u,f,b,A,m=r.props||K,g=t.props,y=t.type;if(y=="svg"?o="http://www.w3.org/2000/svg":y=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),l!=null){for(h=0;h<l.length;h++)if((f=l[h])&&"setAttribute"in f==!!y&&(y?f.localName==y:f.nodeType==3)){e=f,l[h]=null;break}}if(e==null){if(y==null)return document.createTextNode(g);e=document.createElementNS(o,y,g.is&&g),a&&(v.__m&&v.__m(t,l),a=!1),l=null}if(y==null)m===g||a&&e.data==g||(e.data=g);else{if(l=l&&it.call(e.childNodes),!a&&l!=null)for(m={},h=0;h<e.attributes.length;h++)m[(f=e.attributes[h]).name]=f.value;for(h in m)f=m[h],h=="dangerouslySetInnerHTML"?c=f:h=="children"||h in g||h=="value"&&"defaultValue"in g||h=="checked"&&"defaultChecked"in g||J(e,h,null,f,o);for(h in g)f=g[h],h=="children"?u=f:h=="dangerouslySetInnerHTML"?_=f:h=="value"?b=f:h=="checked"?A=f:a&&typeof f!="function"||m[h]===f||J(e,h,f,m[h],o);if(_)a||c&&(_.__html==c.__html||_.__html==e.innerHTML)||(e.innerHTML=_.__html),t.__k=[];else if(c&&(e.innerHTML=""),te(t.type=="template"?e.content:e,lt(u)?u:[u],t,r,i,y=="foreignObject"?"http://www.w3.org/1999/xhtml":o,l,s,l?l[0]:r.__k&&B(r,0),a,p),l!=null)for(h=l.length;h--;)gt(l[h]);a||(h="value",y=="progress"&&b==null?e.removeAttribute("value"):b!=null&&(b!==e[h]||y=="progress"&&!b||y=="option"&&b!=m[h])&&J(e,h,b,m[h],o),h="checked",A!=null&&A!=e[h]&&J(e,h,A,m[h],o))}return e}function bt(e,t,r){try{if(typeof e=="function"){var i=typeof e.__u=="function";i&&e.__u(),i&&t==null||(e.__u=e(t))}else e.current=t}catch(o){v.__e(o,r)}}function le(e,t,r){var i,o;if(v.unmount&&v.unmount(e),(i=e.ref)&&(i.current&&i.current!=e.__e||bt(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(l){v.__e(l,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&le(i[o],t,r||typeof e.type!="function");r||gt(e.__e),e.__c=e.__=e.__e=void 0}function Se(e,t,r){return this.constructor(e,r)}function Mt(e,t,r){var i,o,l,s;t==document&&(t=document.documentElement),v.__&&v.__(e,t),o=(i=!1)?null:t.__k,l=[],s=[],vt(t,e=t.__k=Zt(ot,null,[e]),o||K,K,t.namespaceURI,o?null:t.firstChild?it.call(t.childNodes):null,l,o?o.__e:t.firstChild,i,s),re(l,e,s)}it=tt.slice,v={__e:function(e,t,r,i){for(var o,l,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((l=o.constructor)&&l.getDerivedStateFromError!=null&&(o.setState(l.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,i||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},Vt=0,X.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=O({},this.state),typeof e=="function"&&(e=e(O({},r),this.props)),e&&O(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Nt(this))},X.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Nt(this))},X.prototype.render=ot,D=[],Jt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Gt=function(e,t){return e.__v.__b-t.__v.__b},et.__r=0,Xt=/(PointerCapture)$|Capture$/i,yt=0,ft=zt(!1),pt=zt(!0);var je=0;function n(e,t,r,i,o,l){t||(t={});var s,a,p=t;if("ref"in p)for(a in p={},t)a=="ref"?s=t[a]:p[a]=t[a];var h={type:e,props:p,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--je,__i:-1,__u:0,__source:o,__self:l};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)p[a]===void 0&&(p[a]=s[a]);return v.vnode&&v.vnode(h),h}var Q,q,dt,$t,rt=0,oe=[],k=v,Dt=k.__b,Ft=k.__r,It=k.diffed,Bt=k.__c,Ht=k.unmount,Ut=k.__;function wt(e,t){k.__h&&k.__h(q,e,rt||t),rt=0;var r=q.__H||(q.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function z(e){return rt=1,Ce(ce,e)}function Ce(e,t,r){var i=wt(Q++,2);if(i.t=e,!i.__c&&(i.__=[ce(void 0,t),function(a){var p=i.__N?i.__N[0]:i.__[0],h=i.t(p,a);p!==h&&(i.__N=[h,i.__[1]],i.__c.setState({}))}],i.__c=q,!q.__f)){var o=function(a,p,h){if(!i.__c.__H)return!0;var _=i.__c.__H.__.filter(function(u){return u.__c});if(_.every(function(u){return!u.__N}))return!l||l.call(this,a,p,h);var c=i.__c.props!==a;return _.some(function(u){if(u.__N){var f=u.__[0];u.__=u.__N,u.__N=void 0,f!==u.__[0]&&(c=!0)}}),l&&l.call(this,a,p,h)||c};q.__f=!0;var l=q.shouldComponentUpdate,s=q.componentWillUpdate;q.componentWillUpdate=function(a,p,h){if(this.__e){var _=l;l=void 0,o(a,p,h),l=_}s&&s.call(this,a,p,h)},q.shouldComponentUpdate=o}return i.__N||i.__}function Ee(e,t){var r=wt(Q++,3);!k.__s&&ne(r.__H,t)&&(r.__=e,r.u=t,q.__H.__h.push(r))}function Te(e){return rt=5,Ae(function(){return{current:e}},[])}function Ae(e,t){var r=wt(Q++,7);return ne(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Re(){for(var e;e=oe.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Z),t.__h.some(_t),t.__h=[]}catch(r){t.__h=[],k.__e(r,e.__v)}}}k.__b=function(e){q=null,Dt&&Dt(e)},k.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ut&&Ut(e,t)},k.__r=function(e){Ft&&Ft(e),Q=0;var t=(q=e.__c).__H;t&&(dt===q?(t.__h=[],q.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.some(Z),t.__h.some(_t),t.__h=[],Q=0)),dt=q},k.diffed=function(e){It&&It(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(oe.push(t)!==1&&$t===k.requestAnimationFrame||(($t=k.requestAnimationFrame)||Pe)(Re)),t.__H.__.some(function(r){r.u&&(r.__H=r.u),r.u=void 0})),dt=q=null},k.__c=function(e,t){t.some(function(r){try{r.__h.some(Z),r.__h=r.__h.filter(function(i){return!i.__||_t(i)})}catch(i){t.some(function(o){o.__h&&(o.__h=[])}),t=[],k.__e(i,r.__v)}}),Bt&&Bt(e,t)},k.unmount=function(e){Ht&&Ht(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(i){try{Z(i)}catch(o){t=o}}),r.__H=void 0,t&&k.__e(t,r.__v))};var Lt=typeof requestAnimationFrame=="function";function Pe(e){var t,r=function(){clearTimeout(i),Lt&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(r,35);Lt&&(t=requestAnimationFrame(r))}function Z(e){var t=q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),q=t}function _t(e){var t=q;e.__c=e.__(),q=t}function ne(e,t){return!e||e.length!==t.length||t.some(function(r,i){return r!==e[i]})}function ce(e,t){return typeof t=="function"?t(e):t}const Qt="data:image/svg+xml,%3csvg%20width='1820'%20height='1820'%20viewBox='0%200%201820%201820'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='1820'%20height='1820'%20rx='20'%20fill='%23121212'/%3e%3crect%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='496'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='744'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='868'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.8'%20x='1240'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='1736'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='248'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='744'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='1116'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1240'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1364'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='248'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='992'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1116'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='124'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='992'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1116'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20opacity='0.7'%20x='1364'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1488'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1736'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='1116'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20opacity='0.99'%20x='1364'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1488'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1612'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1736'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='248'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='1116'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1364'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='1488'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='124'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='1116'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1240'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20opacity='0.5'%20x='1364'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='1736'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='992'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1116'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1240'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1364'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1488'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1612'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1736'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.1'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='124'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='992'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1116'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1240'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='372'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='992'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1116'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1240'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1364'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1488'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='1612'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='248'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.98'%20x='744'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='992'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1240'%20y='1364'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1364'%20y='1364'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1488'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='744'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='1240'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='1612'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='248'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='744'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1240'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='1488'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='124'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='744'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='868'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.8'%20x='1240'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.32'%20x='1612'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3c/svg%3e";function Ne(){const[e,t]=z({}),[r,i]=z([]),[o,l]=z(null),s=Te(o);return s.current=o,Ee(()=>{let a,p=0;const h=10,_=u=>{u.type==="STORE_INIT"?t(f=>{const b={...f,[u.payload.name]:u.payload.store};return s.current||l(u.payload.name),b}):u.type==="STATE_CHANGE"?t(f=>{const b=u.payload.storeName;return f[b]?{...f}:f}):u.type==="ACTION_CALL"&&i(f=>[{id:Math.random().toString(36).substr(2,9),storeName:u.payload.storeName,actionName:u.payload.actionName,args:u.payload.args,timestamp:Date.now()},...f.slice(0,99)])},c=()=>{const u=window.__QUANTA_DEVTOOLS__;u?a=u.subscribe(_):p<h&&(p++,setTimeout(c,500))};return c(),()=>{a&&a()}},[]),{stores:e,actions:r,selectedStore:o,setSelectedStore:l}}const Oe=(e,t,r)=>{const{size:i=16,color:o="currentColor",className:l=""}=t;return n("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:o,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:l,dangerouslySetInnerHTML:{__html:e+""}})},ze={x:'<line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/>',play:'<polygon points="6 3 20 12 6 21 6 3"/>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5V19c0 1.66 4 3 9 3s9-1.34 9-3V5"/><path d="M3 12c0 1.66 4 3 9 3s9-1.34 9-3"/>',"chevron-right":'<polyline points="9 18 15 12 9 6"/>',"chevron-up":'<polyline points="18 15 12 9 6 15"/>',"chevron-down":'<polyline points="6 9 12 15 18 9"/>',"rotate-ccw":'<polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/>',trash:'<polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/>',search:'<circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/>',"circle-x":'<circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/>',check:'<polyline points="20 6 9 17 4 12"/>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>',zap:'<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>',activity:'<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>',clock:'<circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/>',filter:'<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"/>',clear:'<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"/><line x1="18" y1="9" x2="12" y2="15"/><line x1="12" y1="9" x2="18" y2="15"/>'};function R(e){const{name:t,...r}=e,i=ze[t];return i?Oe(i,r):null}function ae(e){const t=new WeakSet;function r(i,o){if(o>10)return"[...]";if(i===null)return null;if(i===void 0)return;const l=typeof i;if(l==="string"||l==="number"||l==="boolean")return i;if(l==="function")return"[Function]";if(typeof Window<"u"&&i instanceof Window)return"[Window]";if(typeof Node<"u"&&i instanceof Node)return"[Element]";if(i instanceof Date)return i.toISOString();if(i instanceof RegExp)return i.toString();if(Array.isArray(i)){if(t.has(i))return"[Circular]";t.add(i);const s=i.map(a=>r(a,o+1));return t.delete(i),s}if(l==="object"){if(t.has(i))return"[Circular]";t.add(i);const s={};for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&(s[a]=r(i[a],o+1));return t.delete(i),s}return String(i)}try{return JSON.stringify(r(e,0))}catch{return"[Error]"}}const se=({value:e,depth:t=0})=>{if(e===null)return n("span",{class:"qdt-json-null",children:"null"});if(e===void 0)return n("span",{class:"qdt-json-null",children:"undefined"});const r=typeof e;return r==="string"?n("span",{class:"qdt-json-string",children:['"',e,'"']}):r==="number"?n("span",{class:"qdt-json-number",children:String(e)}):r==="boolean"?n("span",{class:"qdt-json-boolean",children:e?"true":"false"}):r==="function"?n("span",{class:"qdt-json-fn",children:["ƒ ",e.name||"anonymous","()"]}):r==="object"?n(Me,{data:e,depth:t}):n("span",{class:"qdt-json-string",children:String(e)})},Me=({data:e,depth:t=0})=>{const[r,i]=z(t<2),o=Array.isArray(e),l=Object.entries(e),s=o?["[","]"]:["{","}"];return l.length===0?n("span",{class:"qdt-json-bracket",children:[s[0],s[1]]}):n("span",{children:[n("span",{class:"qdt-json-toggle","data-open":r,onClick:()=>i(!r),children:n(R,{name:"chevron-right",size:10})}),n("span",{class:"qdt-json-bracket",children:s[0]}),!r&&n("span",{class:"qdt-json-summary",children:[" ",l.length," ",o?"items":"keys"," "]}),!r&&n("span",{class:"qdt-json-bracket",children:s[1]}),r&&n("div",{class:"qdt-json-children",children:l.map(([a,p])=>n("div",{class:"qdt-json-row",children:[n("span",{class:"qdt-json-key",children:o?a:`"${a}"`}),n("span",{class:"qdt-json-colon",children:": "}),n(se,{value:p,depth:t+1})]},a))}),r&&n("span",{class:"qdt-json-bracket",children:s[1]})]})};function $e({stores:e,selectedStore:t}){if(!t||!e[t])return n("div",{class:"qdt-empty",children:[n(R,{name:"database",size:28}),n("span",{children:"Select a store to inspect"})]});const r=e[t];return n("div",{children:[n("div",{class:"qdt-card",children:[n("div",{class:"qdt-card-title",children:["Store Management — ",t]}),n("div",{class:"qdt-row",children:[n("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"11px"},children:[n("span",{style:{color:"var(--text-muted)"},children:"Persistence:"}),r.$persist?n("span",{class:"qdt-badge qdt-badge-on",children:[n("span",{class:"qdt-badge-dot"}),"Enabled"]}):n("span",{class:"qdt-badge qdt-badge-off",children:[n("span",{class:"qdt-badge-dot"}),"Disabled"]})]}),r.$persist&&n("button",{class:"qdt-btn qdt-btn-danger",onClick:async()=>{if(confirm("Clear persisted data for this store?"))try{await r.$persist.clear(),alert("Storage cleared.")}catch(i){console.error(i),alert("Failed to clear storage.")}},title:"Clear persisted data",children:[n(R,{name:"trash",size:12}),"Clear Storage"]})]}),n("div",{class:"qdt-row",children:[n("span",{style:{fontSize:"11px",color:"var(--text-muted)"},children:"Reset in-memory state to initial values."}),n("button",{class:"qdt-btn",onClick:()=>{confirm("Reset state? This will revert all changes.")&&r.$reset()},children:[n(R,{name:"rotate-ccw",size:12}),"Reset State"]})]})]}),n("div",{class:"qdt-card",children:[n("div",{class:"qdt-card-title",children:"State"}),n("div",{class:"qdt-json",children:n(se,{value:r.state,depth:0})})]}),n("div",{class:"qdt-card",children:[n("div",{class:"qdt-card-title",children:"Getters"}),r.getters&&Object.keys(r.getters).length>0?n("div",{class:"qdt-json",children:Object.entries(r.getters).map(([i,o])=>n("div",{class:"qdt-json-row",children:[n("span",{class:"qdt-json-key",children:i}),n("span",{class:"qdt-json-colon",children:": "}),n("span",{class:"qdt-json-number",children:ae(o.value)})]},i))}):n("div",{style:{fontSize:"11px",color:"var(--text-muted)",fontStyle:"italic"},children:"No getters defined"})]}),r.actions&&Object.keys(r.actions).length>0&&n("div",{class:"qdt-card",children:[n("div",{class:"qdt-card-title",children:"Actions"}),Object.keys(r.actions).map(i=>n("div",{class:"qdt-action-item",children:[n("span",{class:"qdt-action-fn",children:[i,"()"]}),n("button",{class:"qdt-btn-ghost",onClick:()=>{try{r.actions[i]()}catch(o){console.error(o),alert(`Action failed: ${o}`)}},title:"Trigger Action",children:n(R,{name:"play",size:12})})]},i))]})]})}const Wt=100;function De({args:e}){const[t,r]=z(!1),[i,o]=z(!1),l=ae(e),s=l.length>Wt,a=s?l.slice(0,Wt)+"…":l;return n("td",{class:"qdt-actions-payload",children:n("div",{style:{display:"flex",alignItems:"flex-start",gap:"6px"},children:[n("div",{style:{flex:1,minWidth:0},children:t?n("div",{class:"qdt-actions-payload-expanded",children:l}):n("div",{class:"qdt-actions-payload-text",title:a,children:a})}),n("div",{style:{display:"flex",alignItems:"center",gap:"2px",flexShrink:0},children:[s&&n("button",{class:"qdt-btn-ghost",onClick:()=>r(!t),title:t?"Collapse":"Expand",style:{opacity:1},children:n(R,{name:t?"chevron-up":"chevron-down",size:14})}),n("button",{class:"qdt-btn-ghost",onClick:async()=>{try{await navigator.clipboard.writeText(l),o(!0),setTimeout(()=>o(!1),2e3)}catch(p){console.error("Failed to copy:",p)}},title:i?"Copied!":"Copy payload",style:{opacity:1,color:i?"var(--json-string)":void 0},children:n(R,{name:i?"check":"copy",size:14})})]})]})})}function Fe({actions:e}){return e.length===0?n("div",{class:"qdt-empty",children:[n(R,{name:"activity",size:28}),n("span",{children:"No actions recorded yet"})]}):n("div",{style:{height:"100%",overflowY:"auto"},children:n("table",{class:"qdt-actions-table",children:[n("thead",{children:n("tr",{children:[n("th",{children:"Time"}),n("th",{children:"Store"}),n("th",{children:"Action"}),n("th",{children:"Payload"})]})}),n("tbody",{children:e.map(t=>n("tr",{children:[n("td",{class:"qdt-actions-time",children:new Date(t.timestamp).toLocaleTimeString()}),n("td",{class:"qdt-actions-store",children:t.storeName}),n("td",{class:"qdt-actions-name",children:t.actionName}),n(De,{args:t.args})]},t.id))})]})})}const Ie="2.0.0-beta.10",Be={version:Ie};function He(){const[e,t]=z(!1),[r,i]=z(""),[o,l]=z("inspector"),{stores:s,actions:a,selectedStore:p,setSelectedStore:h}=Ne(),_=Object.keys(s).filter(f=>f.toLowerCase().includes(r.toLowerCase())),c=a.length,u=Be.version;return e?n("div",{class:"qdt-panel",children:[n("header",{class:"qdt-header",children:[n("div",{class:"qdt-header-left",children:[n("img",{src:Qt,alt:"",class:"qdt-header-logo"}),n("div",{children:[n("div",{class:"qdt-header-title",children:"QuantaJS DevTools"}),n("div",{class:"qdt-header-subtitle",children:"Inspect stores & replay actions"})]})]}),n("div",{class:"qdt-header-right",children:[n("div",{class:"qdt-tabs",children:[n("button",{class:"qdt-tab","data-active":o==="inspector",onClick:()=>l("inspector"),children:"Inspector"}),n("button",{class:"qdt-tab","data-active":o==="actions",onClick:()=>l("actions"),children:["Actions",c>0&&n("span",{class:"qdt-tab-badge",children:c})]})]}),n("button",{class:"qdt-close",onClick:()=>t(!1),title:"Close",children:n(R,{name:"circle-x",size:18})})]})]}),n("div",{class:"qdt-body",children:[n("aside",{class:"qdt-sidebar",children:[n("div",{class:"qdt-search",children:[n(R,{name:"search",size:14}),n("input",{type:"search",placeholder:"Filter stores...",value:r,onInput:f=>i(f.target.value)})]}),n("div",{class:"qdt-store-list",children:Object.keys(s).length===0?n("div",{class:"qdt-empty",style:{height:"auto",padding:"20px 10px"},children:[n(R,{name:"database",size:20}),n("span",{children:"No stores detected"})]}):_.length===0?n("div",{class:"qdt-empty",style:{height:"auto",padding:"20px 10px"},children:n("span",{children:['No match for "',r,'"']})}):_.map(f=>n("button",{class:"qdt-store-item","data-active":p===f,onClick:()=>h(f),title:f,children:[n(R,{name:"database",size:14}),n("span",{class:"qdt-store-name",children:f})]},f))}),n("div",{class:"qdt-sidebar-footer",children:[n("span",{children:[_.length,r?`/${Object.keys(s).length}`:""," ",_.length===1?"store":"stores"]}),n("span",{children:["v",u]})]})]}),n("main",{class:"qdt-main",children:o==="inspector"?n($e,{stores:s,selectedStore:p}):n(Fe,{actions:a})})]})]}):n("button",{class:"qdt-fab",onClick:()=>t(!0),title:"Open QuantaJS DevTools",children:[n("img",{src:Qt,alt:"",class:"qdt-fab-logo"}),n("span",{class:"qdt-fab-label",children:"QuantaJS"})]})}const Ue=':host{all:initial;display:block;color-scheme:dark}.qdt{--bg-base: #0b1120;--bg-surface: #111827;--bg-elevated: #1a2332;--bg-hover: rgba(56, 178, 172, .06);--bg-active: rgba(56, 178, 172, .12);--border: rgba(148, 163, 184, .1);--border-accent: rgba(56, 178, 172, .3);--text-primary: #e2e8f0;--text-secondary: #94a3b8;--text-muted: #64748b;--text-accent: #38b2ac;--text-accent-bright: #5eead4;--json-string: #a5d6a7;--json-number: #80deea;--json-boolean: #ffd54f;--json-null: #ef9a9a;--json-key: #ce93d8;--json-fn: #90a4ae;--accent: #38b2ac;--accent-glow: rgba(56, 178, 172, .4);--danger: #f87171;--danger-hover: rgba(248, 113, 113, .15);--radius-sm: 6px;--radius-md: 10px;--radius-lg: 14px;--radius-full: 9999px;--shadow-panel: 0 25px 50px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(148, 163, 184, .08);--shadow-fab: 0 8px 32px rgba(56, 178, 172, .25), 0 0 0 1px rgba(56, 178, 172, .2);--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono: "JetBrains Mono", "Fira Code", "SF Mono", ui-monospace, monospace;--transition: .2s cubic-bezier(.4, 0, .2, 1);--transition-slow: .35s cubic-bezier(.4, 0, .2, 1);font-family:var(--font-sans);font-size:13px;line-height:1.5;color:var(--text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.qdt *,.qdt *:before,.qdt *:after{margin:0;padding:0;box-sizing:border-box}.qdt button{cursor:pointer;font:inherit;background:none;border:none;color:inherit}.qdt input{font:inherit;color:inherit}.qdt img{display:block;max-width:100%}.qdt ::-webkit-scrollbar{width:5px;height:5px}.qdt ::-webkit-scrollbar-track{background:transparent}.qdt ::-webkit-scrollbar-thumb{background:#38b2ac4d;border-radius:4px}.qdt ::-webkit-scrollbar-thumb:hover{background:#38b2ac80}.qdt-fab{position:fixed;bottom:20px;right:20px;z-index:99999;display:flex;align-items:center;gap:8px;height:44px;padding:0 4px;background:var(--bg-base);border:1px solid var(--border-accent);border-radius:var(--radius-full);box-shadow:var(--shadow-fab);overflow:hidden;width:44px;transition:width var(--transition-slow),box-shadow var(--transition);cursor:pointer}.qdt-fab:hover{width:190px;box-shadow:0 8px 40px #38b2ac59,0 0 0 1px #38b2ac59}.qdt-fab-logo{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0}.qdt-fab-label{white-space:nowrap;font-size:13px;font-weight:600;color:var(--text-accent);letter-spacing:-.01em}.qdt-fab:before{content:"";position:absolute;inset:-3px;border-radius:inherit;border:2px solid var(--accent);opacity:0;animation:qdt-pulse 2.5s ease-out infinite;pointer-events:none}@keyframes qdt-pulse{0%{opacity:.6;transform:scale(1)}to{opacity:0;transform:scale(1.15)}}.qdt-panel{position:fixed;bottom:20px;right:20px;width:min(92vw,960px);height:min(80vh,580px);z-index:99999;display:flex;flex-direction:column;background:var(--bg-base);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-panel);overflow:hidden;animation:qdt-panel-in var(--transition-slow) both}@keyframes qdt-panel-in{0%{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.qdt-header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,rgba(56,178,172,.04) 0%,transparent 100%)}.qdt-header-left{display:flex;align-items:center;gap:10px}.qdt-header-logo{width:32px;height:32px;border-radius:50%}.qdt-header-title{font-size:13px;font-weight:700;color:var(--text-accent);letter-spacing:-.02em}.qdt-header-subtitle{font-size:11px;color:var(--text-muted);margin-top:1px}.qdt-header-right{display:flex;align-items:center;gap:6px}.qdt-tabs{display:flex;gap:2px;background:var(--bg-surface);border-radius:var(--radius-sm);padding:2px}.qdt-tab{padding:5px 12px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);border-radius:4px;transition:all var(--transition)}.qdt-tab:hover{color:var(--text-secondary)}.qdt-tab[data-active=true]{color:var(--text-accent);background:var(--bg-active)}.qdt-tab-badge{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;margin-left:4px;font-size:10px;font-weight:700;background:var(--accent);color:var(--bg-base);border-radius:var(--radius-full)}.qdt-close{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-sm);color:var(--text-muted);transition:all var(--transition)}.qdt-close:hover{color:var(--danger);background:var(--danger-hover)}.qdt-body{display:flex;flex:1;overflow:hidden}.qdt-sidebar{width:200px;flex-shrink:0;display:flex;flex-direction:column;border-right:1px solid var(--border);background:#11182766}.qdt-search{display:flex;align-items:center;gap:6px;padding:8px 10px;border-bottom:1px solid var(--border)}.qdt-search svg{flex-shrink:0;color:var(--text-muted)}.qdt-search input{flex:1;background:none;border:none;outline:none;font-size:12px;color:var(--text-primary)}.qdt-search input::placeholder{color:var(--text-muted)}.qdt-store-list{flex:1;overflow-y:auto;padding:4px}.qdt-store-item{display:flex;align-items:center;gap:8px;width:100%;padding:7px 10px;border-radius:var(--radius-sm);font-size:12px;color:var(--text-secondary);transition:all var(--transition);text-align:left}.qdt-store-item:hover{background:var(--bg-hover);color:var(--text-primary)}.qdt-store-item[data-active=true]{background:var(--bg-active);color:var(--text-accent)}.qdt-store-item svg{flex-shrink:0;opacity:.5}.qdt-store-item[data-active=true] svg{opacity:1;color:var(--text-accent)}.qdt-store-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.qdt-sidebar-footer{padding:8px 12px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--text-muted);border-top:1px solid var(--border)}.qdt-main{flex:1;overflow-y:auto;background:var(--bg-base)}.qdt-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:8px;color:var(--text-muted);font-size:13px}.qdt-empty svg{opacity:.15}.qdt-card{margin:12px;padding:14px;background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-md)}.qdt-card+.qdt-card{margin-top:0}.qdt-card-title{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid var(--border)}.qdt-btn{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;font-size:11px;font-weight:600;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg-elevated);color:var(--text-secondary);transition:all var(--transition)}.qdt-btn:hover{background:var(--bg-hover);color:var(--text-primary);border-color:var(--border-accent)}.qdt-btn-danger:hover{color:var(--danger);background:var(--danger-hover);border-color:#f871714d}.qdt-btn-ghost{background:none;border:none;padding:4px;color:var(--text-muted)}.qdt-btn-ghost:hover{color:var(--text-accent)}.qdt-badge{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;font-size:10px;font-weight:600;border-radius:var(--radius-full);border:1px solid}.qdt-badge-on{color:#34d399;background:#34d3991a;border-color:#34d39933}.qdt-badge-off{color:var(--text-muted);background:var(--bg-elevated);border-color:var(--border)}.qdt-badge-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.qdt-badge-on .qdt-badge-dot{box-shadow:0 0 6px #34d39999}.qdt-json{font-family:var(--font-mono);font-size:11.5px;line-height:1.65}.qdt-json-row{display:flex;align-items:baseline;gap:4px;padding:1px 0;border-radius:3px}.qdt-json-row:hover{background:#94a3b80a}.qdt-json-toggle{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;flex-shrink:0;cursor:pointer;color:var(--text-muted);transition:transform var(--transition)}.qdt-json-toggle[data-open=true]{transform:rotate(90deg)}.qdt-json-key{color:var(--json-key)}.qdt-json-colon{color:var(--text-muted)}.qdt-json-string{color:var(--json-string)}.qdt-json-number{color:var(--json-number)}.qdt-json-boolean{color:var(--json-boolean)}.qdt-json-null{color:var(--json-null);font-style:italic}.qdt-json-fn{color:var(--json-fn);font-style:italic}.qdt-json-bracket{color:var(--text-muted)}.qdt-json-children{padding-left:16px;border-left:1px solid var(--border);margin-left:6px}.qdt-json-summary{color:var(--text-muted);font-style:italic;font-size:10px}.qdt-actions-table{width:100%;text-align:left;border-collapse:collapse}.qdt-actions-table thead{position:sticky;top:0;z-index:2;background:var(--bg-surface)}.qdt-actions-table th{padding:8px 14px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);border-bottom:1px solid var(--border)}.qdt-actions-table td{padding:8px 14px;font-size:12px;border-bottom:1px solid rgba(148,163,184,.05);vertical-align:top}.qdt-actions-table tr{transition:background var(--transition)}.qdt-actions-table tbody tr:hover{background:var(--bg-hover)}.qdt-actions-time{font-family:var(--font-mono);font-size:11px;color:var(--text-muted);white-space:nowrap}.qdt-actions-store{font-weight:600;color:var(--text-primary)}.qdt-actions-name{font-family:var(--font-mono);color:var(--text-accent)}.qdt-actions-payload{font-family:var(--font-mono);font-size:11px;color:var(--text-secondary);max-width:260px}.qdt-actions-payload-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qdt-actions-payload-expanded{white-space:pre-wrap;word-break:break-all;background:var(--bg-elevated);padding:6px 8px;border-radius:var(--radius-sm);border:1px solid var(--border);max-height:180px;overflow-y:auto}.qdt-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.qdt-row+.qdt-row{margin-top:8px;padding-top:8px;border-top:1px solid var(--border)}.qdt-action-item{display:flex;align-items:center;justify-content:space-between;padding:3px 0}.qdt-action-item .qdt-btn-ghost{opacity:0;transition:opacity var(--transition)}.qdt-action-item:hover .qdt-btn-ghost{opacity:1}.qdt-action-fn{font-family:var(--font-mono);font-size:12px;color:var(--text-accent-bright)}';function Le(){return!!(typeof process<"u"&&process.env&&process.env.NODE_ENV==="development")}function Qe(e={}){const{target:t="body",visible:r}=e;if(!(r!==void 0?r:Le()))return()=>{};console.log("[Quanta DevTools] Mounting...");let i;if(typeof t=="string"?i=document.querySelector(t):i=t,!i)return console.error("[Quanta DevTools] Target element not found"),()=>{};const o=document.createElement("div");o.id="quanta-devtools-shadow-host";const l=o.attachShadow({mode:"open"}),s=document.createElement("style");s.textContent=Ue,l.appendChild(s);const a=document.createElement("div");return a.className="qdt",l.appendChild(a),i.appendChild(o),Mt(Zt(He,{}),a),()=>{Mt(null,a),o.remove()}}const We=({visible:e})=>(C.useEffect(()=>Qe({visible:e}),[e]),null);Object.defineProperty(exports,"computed",{enumerable:!0,get:()=>E.computed});Object.defineProperty(exports,"createStore",{enumerable:!0,get:()=>E.createStore});Object.defineProperty(exports,"logger",{enumerable:!0,get:()=>E.logger});Object.defineProperty(exports,"reactive",{enumerable:!0,get:()=>E.reactive});Object.defineProperty(exports,"watch",{enumerable:!0,get:()=>E.watch});exports.QuantaContext=xt;exports.QuantaDevTools=We;exports.QuantaProvider=ve;exports.useCreateStore=ue;exports.useQuantaContext=Yt;exports.useQuantaStore=ht;exports.useStore=pe;
package/dist/index.d.ts CHANGED
@@ -2,12 +2,13 @@ import { ActionDefinition } from '@quantajs/core';
2
2
  import { computed } from '@quantajs/core';
3
3
  import { Context } from 'react';
4
4
  import { createStore } from '@quantajs/core';
5
- import { GetterDefinition } from '@quantajs/core';
6
- import { JSX as JSX_2 } from 'react/jsx-runtime';
5
+ import { GetterDefinitions } from '@quantajs/core';
6
+ import { JSX } from 'react/jsx-runtime';
7
+ import { logger } from '@quantajs/core';
8
+ import { RawActions } from '@quantajs/core';
7
9
  import { reactive } from '@quantajs/core';
8
10
  import { ReactNode } from 'react';
9
11
  import { StateDefinition } from '@quantajs/core';
10
- import { Store } from '@quantajs/core';
11
12
  import { StoreInstance } from '@quantajs/core';
12
13
  import { StoreSubscriber } from '@quantajs/core';
13
14
  import { watch } from '@quantajs/core';
@@ -18,23 +19,40 @@ export { computed }
18
19
 
19
20
  export { createStore }
20
21
 
21
- export { GetterDefinition }
22
+ export { GetterDefinitions }
23
+
24
+ export { logger }
22
25
 
23
26
  export declare const QuantaContext: Context<QuantaContextValue | null>;
24
27
 
25
28
  declare interface QuantaContextValue {
26
- store: StoreInstance<any, any, any>;
29
+ stores: {
30
+ [name: string]: StoreInstance<any, any, any>;
31
+ };
32
+ }
33
+
34
+ export declare const QuantaDevTools: ({ visible }: QuantaDevToolsProps) => null;
35
+
36
+ declare interface QuantaDevToolsProps {
37
+ /**
38
+ * Whether to show the DevTools.
39
+ * If not provided, it attempts to detect development environment.
40
+ * Pass `true` to force show, `false` to force hide.
41
+ */
42
+ visible?: boolean;
27
43
  }
28
44
 
29
45
  /**
30
46
  * Provider component that makes a QuantaJS store available to all child components
31
- * @param store - The QuantaJS store instance to provide
32
- * @param children - Child components that can access the store
47
+ * @param stores - The QuantaJS stores instances to provide
48
+ * @param children - Child components that can access the stores
33
49
  */
34
- export declare function QuantaProvider({ store, children }: QuantaProviderProps): JSX_2.Element;
50
+ export declare function QuantaProvider({ stores, children }: QuantaProviderProps): JSX.Element;
35
51
 
36
52
  declare interface QuantaProviderProps {
37
- store: StoreInstance<any, any, any>;
53
+ stores: {
54
+ [key: string]: StoreInstance<any, any, any>;
55
+ };
38
56
  children: ReactNode;
39
57
  }
40
58
 
@@ -42,17 +60,15 @@ export { reactive }
42
60
 
43
61
  export { StateDefinition }
44
62
 
45
- export { Store }
46
-
47
63
  export { StoreInstance }
48
64
 
49
65
  export { StoreSubscriber }
50
66
 
51
67
  /**
52
- * Hook to create a QuantaJS store instance within a React component
53
- * Creates store only once and reuses it across re-renders
68
+ * Hook to create a QuantaJS store instance within a React component.
69
+ * Creates store only once and cleans up on unmount.
54
70
  */
55
- export declare function useCreateStore<S extends object, G extends object = {}, A extends Record<string, (...args: any[]) => any> = {}>(name: string, state: StateDefinition<S>, getters?: GetterDefinition<S, G>, actions?: ActionDefinition<S, G, A>): StoreInstance<S, G, A>;
71
+ export declare function useCreateStore<S extends object, GDefs extends Record<string, (state: S) => any> = {}, A extends Record<string, (...args: any[]) => any> = {}>(name: string, state: StateDefinition<S>, getters?: GetterDefinitions<S, GDefs>, actions?: ActionDefinition<S, GDefs, A>): StoreInstance<S, GDefs, A>;
56
72
 
57
73
  /**
58
74
  * Hook to access the QuantaJS store from the context
@@ -62,19 +78,20 @@ export declare function useCreateStore<S extends object, G extends object = {},
62
78
  export declare function useQuantaContext(): QuantaContextValue;
63
79
 
64
80
  /**
65
- * Hook to subscribe to a QuantaJS store and get reactive updates
66
- * Simple implementation that relies on QuantaJS core's reactivity system
81
+ * Hook to subscribe to a QuantaJS store and get reactive updates.
82
+ * Uses useSyncExternalStore for concurrent-safe React integration.
67
83
  */
68
- export declare function useQuantaStore<S extends object, G extends object, A extends object>(store: StoreInstance<S, G, A>): StoreInstance<S, G, A>;
84
+ export declare function useQuantaStore<S extends object, GDefs extends Record<string, (state: S) => any> = {}, A extends RawActions = {}>(store: StoreInstance<S, GDefs, A>): StoreInstance<S, GDefs, A>;
69
85
 
70
- export declare function useQuantaStore<S extends object, G extends object, A extends object, T = any>(store: StoreInstance<S, G, A>, selector: (store: StoreInstance<S, G, A>) => T): T;
86
+ export declare function useQuantaStore<S extends object, GDefs extends Record<string, (state: S) => any> = {}, A extends RawActions = {}, T = any>(store: StoreInstance<S, GDefs, A>, selector: (store: StoreInstance<S, GDefs, A>) => T): T;
71
87
 
72
88
  /**
73
89
  * Hook to access and subscribe to the QuantaJS store from context
90
+ * @param name - The name of the store to access
74
91
  * @param selector - Optional selector function to pick specific parts of the store
75
92
  * @returns The store instance or selected value that updates reactively
76
93
  */
77
- export declare function useStore<T = any>(selector?: (store: StoreInstance<any, any, any>) => T): T extends undefined ? StoreInstance<any, any, any> : T;
94
+ export declare function useStore<T = any>(name: string, selector?: (store: StoreInstance<any, any, any>) => T): T extends undefined ? StoreInstance<any, any, any> : T;
78
95
 
79
96
  export { watch }
80
97