potatejs 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -20
- package/dist/index.js +3 -3
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -158,7 +158,7 @@ export default defineConfig({
|
|
|
158
158
|
```
|
|
159
159
|
|
|
160
160
|
```json
|
|
161
|
-
// tsconfig.json
|
|
161
|
+
// tsconfig.json - Probably not required, but add it if necessary.
|
|
162
162
|
{
|
|
163
163
|
"compilerOptions": {
|
|
164
164
|
|
|
@@ -276,30 +276,30 @@ For the above example, the Brahmos output is 685 bytes, compared to 824 bytes fr
|
|
|
276
276
|
- [x] Concurrent Mode
|
|
277
277
|
- [x] 3rd Party React library support (Tested React-router, redux, mobx, react-query, zustand, recharts)
|
|
278
278
|
- [x] React Utilities and Methods
|
|
279
|
-
- [x] Vite Plugin to transpile JSX to tagged templates
|
|
280
|
-
- [x] Esbuild Plugin to transpile JSX to tagged templates
|
|
281
|
-
- [x] The Lanes Light **(Though I haven't cleaned up the no-longer-needed TRANSITION_STATE_TIMED_OUT yet.)**
|
|
282
|
-
- [x] The Standalone `startTransition`
|
|
283
|
-
- [x] Enhanced `useTransition` hook
|
|
284
|
-
- [x] Enhanced `useDeferredValue` hook
|
|
285
|
-
- [x] `use(resource)` API
|
|
286
|
-
- [x] [watch(resource) API](docs/API.md)
|
|
287
|
-
- [x] React 19 style root management
|
|
279
|
+
- [x] ⭐⭐⭐ Vite Plugin to transpile JSX to tagged templates
|
|
280
|
+
- [x] ⭐⭐⭐ Esbuild Plugin to transpile JSX to tagged templates
|
|
281
|
+
- [x] ⭐ The Lanes Light **(Though I haven't cleaned up the no-longer-needed TRANSITION_STATE_TIMED_OUT yet.)**
|
|
282
|
+
- [x] ⭐ The Standalone `startTransition`
|
|
283
|
+
- [x] ⭐ Enhanced `useTransition` hook
|
|
284
|
+
- [x] ⭐ Enhanced `useDeferredValue` hook
|
|
285
|
+
- [x] ⭐ `use(resource)` API
|
|
286
|
+
- [x] ⭐⭐⭐ [watch(resource) API](docs/API.md)
|
|
287
|
+
- [x] ⭐ React 19 style root management
|
|
288
288
|
- [x] Allow using class instead of className
|
|
289
|
-
- [ ]
|
|
290
|
-
- [ ]
|
|
291
|
-
- [ ] [
|
|
292
|
-
- [ ] [Cleanup functions for refs](https://react.dev/blog/2024/12/05/react-19#cleanup-functions-for-refs)
|
|
293
|
-
- [ ] [`<Context>` as a provider](https://react.dev/blog/2024/12/05/react-19#context-as-a-provider)
|
|
294
|
-
- [ ] [startTransition(action) for POST request](https://react.dev/blog/2024/12/05/react-19#actions)
|
|
295
|
-
- [ ] [useEffectEvent hook](https://react.dev/reference/react/useEffectEvent)
|
|
296
|
-
- [ ] `useImperativeHandle` hook
|
|
297
|
-
- [ ] `useInsertionEffect` hook
|
|
289
|
+
- [x] ⭐ [ref as a prop](https://react.dev/blog/2024/12/05/react-19#ref-as-a-prop)
|
|
290
|
+
- [ ] ⭐ `use(context)` API
|
|
291
|
+
- [ ] ⭐ [use(store) API](https://react.dev/blog/2025/04/23/react-labs-view-transitions-activity-and-more#concurrent-stores)
|
|
292
|
+
- [ ] ⭐ [Cleanup functions for refs](https://react.dev/blog/2024/12/05/react-19#cleanup-functions-for-refs)
|
|
293
|
+
- [ ] ⭐ [`<Context>` as a provider](https://react.dev/blog/2024/12/05/react-19#context-as-a-provider)
|
|
294
|
+
- [ ] ⭐ [startTransition(action) for POST request](https://react.dev/blog/2024/12/05/react-19#actions)
|
|
295
|
+
- [ ] ⭐ [useEffectEvent hook](https://react.dev/reference/react/useEffectEvent)
|
|
296
|
+
- [ ] ⭐ `useImperativeHandle` hook
|
|
297
|
+
- [ ] ⭐ `useInsertionEffect` hook
|
|
298
298
|
- [ ] Clean up
|
|
299
299
|
- [ ] Performance improvement
|
|
300
300
|
- [ ] Bug fixes
|
|
301
301
|
- [ ] Test Cases
|
|
302
|
-
- [ ] Rewrite core source code with [MoonBit](https://www.moonbitlang.com/)
|
|
302
|
+
- [ ] ⭐ Rewrite core source code with [MoonBit](https://www.moonbitlang.com/)
|
|
303
303
|
|
|
304
304
|
|
|
305
305
|
## Won't Do
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var Po=Object.defineProperty;var Oo=(e,t)=>{for(var n in t)Po(e,n,{get:t[n],enumerable:!0})};var Zt={};Oo(Zt,{Children:()=>Ao,Component:()=>R,Fragment:()=>Mr,PureComponent:()=>ie,StrictMode:()=>vr,Suspense:()=>De,SuspenseList:()=>V,cloneElement:()=>Wt,createContext:()=>_t,createElement:()=>uo,createPortal:()=>yo,createRef:()=>Zn,createRoot:()=>xo,forwardRef:()=>st,html:()=>Eo,initWatch:()=>Ro,isValidElement:()=>_o,jsx:()=>Lr,jsxDev:()=>Hr,jsxs:()=>kr,lazy:()=>To,memo:()=>Xt,render:()=>Vt,startTransition:()=>xe,unmountComponentAtNode:()=>go,unstable_batchedUpdates:()=>wr,unstable_deferredUpdates:()=>Je,unstable_syncUpdates:()=>fe,use:()=>Fo,useCallback:()=>Ln,useContext:()=>Bn,useDebugValue:()=>Hn,useDeferredValue:()=>Kn,useEffect:()=>bt,useLayoutEffect:()=>It,useMemo:()=>Rt,useReducer:()=>wn,useRef:()=>Mn,useState:()=>Ft,useTransition:()=>Yn,watch:()=>Qt});var we=Symbol.for("react.element"),rn=Symbol.for("react.forward_ref"),sn="{{brahmos}}",an={key:1,ref:1},cn={className:"class",htmlFor:"for",acceptCharset:"accept-charset",httpEquiv:"http-equiv",tabIndex:"tabindex"},ut={doubleclick:"dblclick"},ln=typeof Symbol!="undefined"?/fil|che|rad/i:/fil|che|ra/i,pn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,un=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,dt="http://www.w3.org/1999/xlink",dn=100,d="__brahmosData",Le="__brahmosLastArrayDom",ke="__rootFiber",S="sync",y="deferred",he="js",O="immediate_action",C="transition",He=0,ft=1,x=2,fn="initial",X="start",ae="suspended",Ee="resolved",mt="completed",K="timedOut";function mn(e){return e[0]==="o"&&e[1]==="n"}function Be(e){let t=pn.test(e)?e.replace(/[A-Z0-9]/,"-$&").toLowerCase():e;return cn[e]||t}function Tt(e){return e.nodeName.toLowerCase()}function Tn(e,t){return t&&(e=e.replace(/Capture$/,"")),e.replace("on","").toLowerCase()}function q(e){return e==null}var Uo=0;function j(){return Uo++}function hn(){return Date.now()}function Ye(e){e.__brahmosData={events:{}}}function ce(e,t){if(!("key"in e||"ref"in e&&!t))return e;let n={},o;for(o in e)o!=="key"&&(o!=="ref"||t)&&(n[o]=e[o]);return n}function ye(e,t){let n=Object.keys(e);for(let o=0,r=n.length;o<r;o++){let s=n[o],a=e[s];t(s,a)}}function ge(e){Array.isArray(e)||(e=[e]);for(let t=e.length-1;t>=0;t--)e[t].remove()}function $(e,t){return t=t||0,Array.prototype.slice.call(e,t)}function vo(e){let t=e instanceof NodeList;if(e instanceof Node)return e;if(Array.isArray(e)||t){let n=document.createDocumentFragment(),o=0;for(;e[o];)n.appendChild(e[o]),t||(o+=1);return n}return document.createTextNode(e)}function Ke(e,t,n){let o=vo(n),r;return Array.isArray(n)?r=n:o instanceof DocumentFragment?r=$(o.childNodes):r=n,e.insertBefore(o,t),r}function le(e,t){return t?t.nextSibling:e.firstChild}function w(e,t,n){if(e[t])return e[t].apply(e,n)}function En(e,t){let n=t===0?e.firstChild:e.childNodes[t],o=document.createTextNode("");return e.insertBefore(o,n),o}var je=Promise.resolve();function Ce(e){return je.then(e)}function Se(){return j()+"-"+Math.random()*1e6}function yn(e){let t="pending",n,o=e.then(r=>{t="success",n=r},r=>{t="error",n=r});return{read(){if(t==="pending")throw o;if(t==="error")throw n;if(t==="success")return n}}}function $e(e){return e[d].mounted}function ht(e){return e.displayName||e.name}function pe({children:e}){return e}var ze={transitionId:"",tryCount:0,transitionState:K},U={transitionId:Se(),tryCount:0,transitionState:K};function Mo(e){let{transitionState:t}=e;return t===X||t===Ee||t===K}function Ne(e){let{transitionState:t}=e;return t===mt||t===K}function gn(e){let{transitionState:t}=e;t!==K&&t!==ae&&(e.isPending?(e.clearTimeout(),e.updatePendingState(!1,C)):e.transitionState=mt)}function Q(e,t){return t=t||ze,e.root.currentTransition||t}function Et(e){let{pendingTransitions:t}=e;return t.find(Mo)}var yt=Symbol.for("tag"),Z=Symbol.for("tag-element"),D=Symbol.for("class-component"),gt=Symbol.for("functional-component"),z=Symbol.for("attribute");function G({nodeType:e}){return e===Z}function J({nodeType:e}){return e===yt}function B(e){return G(e)||J(e)}function _({nodeType:e}){return e===D||e===gt}function Y(e){return typeof e=="string"||typeof e=="number"}function Ge(e){return!(q(e)||typeof e=="boolean")}function Ct(e,t){let n=e&&e.key;return n===void 0?t:n}function Ve(e,t,n){return{$$typeof:we,nodeType:null,key:n,ref:null,portalContainer:null,type:null,props:e,values:t,template:null}}var Sn;function St(e){Sn=e}function N(){return Sn}function Ae(e){return e===y?"lastDeferredCompleteTime":"lastCompleteTime"}function ee(e){return e===y?"deferredUpdateTime":"updateTime"}function L(e,t){let n=ee(t),o=j();for(;e;)e[n]=o,e=e.parent}function Nn(e,t,n){t===n?n.child=e:t.sibling=e,e.parent=n}function F(e,t){e.hasUncommittedEffect=t,e.root.hasUncommittedEffect=!0}function We(e,t,n,o){let{root:r,node:s,part:a,nodeInstance:i,child:c}=e,l=ee(r.updateType);return t?(t.node=s,t.part=a,t.createdAt=j()):(t=ue(r,s,a),wo(e,t)),e.shouldTearDown=!1,t.nodeInstance=i,t.child=c,t[l]=o[l],Nn(t,n,o),t}function An(e,t){return e===t?e.child:e.sibling}function te(e){let{child:t,root:n}=e;if(n.updateType===S)return;let o;for(;t;){let{alternate:r}=t;o=We(t,r,o||e,e),t=t.sibling}}function Xe(e){let t=[];return{updateType:y,updateSource:he,cancelSchedule:null,domNode:e,forcedUpdateWith:null,current:null,wip:null,child:null,retryFiber:null,currentTransition:null,hasUncommittedEffect:!1,pendingTransitions:[],tearDownFibers:[],postCommitEffects:[],batchUpdates:{},lastDeferredCompleteTime:0,lastCompleteTime:0,deferredUpdateTime:0,updateTime:0,afterRender(n){t.includes(n)||t.push(n)},callRenderCallbacks(){for(let n=0,o=t.length;n<o;n++)t[n]()},resetRenderCallbacks(){t=[]}}}function ue(e,t,n){return t&&t.portalContainer&&(n.parentNode=t.portalContainer),{node:t,nodeInstance:null,root:e,parent:null,child:null,sibling:null,part:n,alternate:null,context:null,childFiberError:null,isSvgPart:!1,deferredUpdateTime:0,updateTime:0,processedTime:0,createdAt:j(),shouldTearDown:!1,hasUncommittedEffect:He}}function wo(e,t){e&&(e.alternate=t),t.alternate=e}function ne(e,t,n,o,r){let{root:s}=o,a=ee(s.updateType),i;return n&&!q(n.node)&&!q(e)&&Lo(e,n.node)?(i=We(n,n.alternate,o,r),i.node=e,i.part=t):(i=ue(s,e,t),n&&oe(n)),Nn(i,o,r),i.processedTime=0,i[a]=r[a],i.context=r.context,i.isSvgPart=r.isSvgPart,i}function Lo(e,t){return Y(e)&&Y(t)||e.nodeType===z||Array.isArray(e)&&Array.isArray(t)||(_(e)||G(e))&&e.type===t.type||J(e)&&e.template===t.template}function ko(e,t,n){return e&&e[n]>=t}function Cn(e,t,n){if(e){for(;e&&!ko(e,t,n);)e=e.sibling;return e}}function _n(e,t,n,o){let r=Cn(e.child,n,o);if(r)return r;let s;for(;!(s=Cn(e.sibling,n,o));)if(e=e.parent,e===t)return e;return s}function v(e){return e[d].fiber}function xn(e){let{root:t,child:n}=e;n&&n.createdAt>t.lastCompleteTime&&(e.child=n.alternate)}function oe(e){e.shouldTearDown=!0,e.root.tearDownFibers.push(e)}var Qe=he,qe=ze;function re(){return Qe}function Nt(){return qe}function b(e,t){Qe=e,t(),Qe=he}function se(e,t){let n=qe;qe=e,b(C,t),qe=n}function Fn(e){return e.updateSource===O}function Ho(){return Qe===C}function _e(){return Ho()?y:S}function Ze(e){return e===y?"pendingDeferredUpdates":"pendingSyncUpdates"}function de(e){let{root:{updateType:t},nodeInstance:n}=e,o=n[d],r=Ze(t);if(t===S)return o[r];let s=Q(e,null).transitionId;return o[r].filter(a=>a.transitionId===s)}function Je(e){se(U,e)}function fe(e){b(O,e)}function Bo(e,t){let{root:n}=e;for(;e.nodeInstance!==t;)if(e=e.parent,e===n)return null;return e}function et(e,t){let n,o,r=!0,s=e[d],a=N();if(a){let{renderCount:l}=s;if(l>50)throw new Error("Too many rerender. Check your setState call, this may cause an infinite loop.");let{root:p}=a;p.retryFiber=Bo(a,e),n=p.updateType,o=p.currentTransition||ze,r=!1}else s.renderCount=0,n=_e(),o=Nt();let i=Ze(n),c=t(o.transitionId);return s[i].push(c),r}var Yo=1;function At(e){return function(t){let n=v(e),{updateType:o}=n.root;e.context!==t&&(e[d].isDirty=!0,L(n,o))}}function _t(e){let t=`cC${Yo++}`;class n extends R{constructor(a){super(a),this.subs=[]}shouldComponentUpdate(a){let{value:i}=this.props;return i!==a.value&&this.subs.forEach(c=>c(a.value)),!0}sub(a){let{subs:i}=this,c=At(a);i.push(c);let{componentWillUnmount:l}=a;a.componentWillUnmount=()=>{i.splice(i.indexOf(c),1),l&&l()}}render(){return this.props.children}}n.__ccId=t;class o extends R{render(){return this.props.children(this.context)}}let r={id:t,defaultValue:e,Provider:n,Consumer:o};return o.contextType=r,r}function bn(){return N().nodeInstance}function In(e){let{renderCount:t}=e[d];e.deferredHooks=e.syncHooks.map((n,o)=>Array.isArray(n)?[...n]:n.transitionId?n:n.hasOwnProperty("current")&&t>1?e.deferredHooks[o]||n:{...n})}function Dn(e,t){let{syncHooks:n,deferredHooks:o}=t;return e===S?n:o}function tt(e){let{nodeInstance:t,root:{updateType:n}}=e;return Dn(n,t)}function Rn(e,t,n){return e===y&&!n.deferredHooks.length&&In(n),Dn(e,n)[t]}function Pn(e,t){if(!e||!t||e.length!==t.length)return!0;for(let n=0,o=e.length;n<o;n++)if(e[n]!==t[n])return!0;return!1}function Ko(e,t,n){(re()===O||!Object.is(t,n))&&M(e)}function xt(e){return!1}function On(e){return e}function nt(e,t,n){let o=N(),{nodeInstance:r}=o,{pointer:s}=r,a=tt(o),i=a[s];return(!i||t(i))&&(i=e(),a[s]=i),r.pointer+=1,n(i)}function Un(){let e=N(),{nodeInstance:t,root:{updateType:n}}=e;t.pointer=0,n===y&&In(t),de(e).forEach(r=>r.updater())}function vn(e,t){let n=bn(),{pointer:o}=n;return nt(()=>(typeof e=="function"&&(e=e()),[e,s=>{let a=_e(),i=Rn(S,o,n),c=i[0],l=t(s,c);et(n,f=>({transitionId:f,updater(){let m=Rn(a,o,n);m[0]=t(s,i[0])}}))&&Ko(n,l,c)}]),xt,On)}function Ft(e){return vn(e,(t,n)=>(typeof t=="function"&&(t=t(n)),t))}function Mn(e){return nt(()=>({current:e}),xt,On)}function wn(e,t,n){return vn(n?()=>n(t):t,(r,s)=>e(s,r))}function Rt(e,t){return nt(()=>({value:e(),dependencies:t}),s=>Pn(t,s.dependencies),s=>s.value)}function Ln(e,t){return Rt(()=>e,t)}function kn(e,t){let n=N(),{nodeInstance:o}=n,{pointer:r}=o,s=tt(n),a=s[r]||{animationFrame:null,cleanEffect:null},i={...a,isDependenciesChanged:Pn(t,a.dependencies),dependencies:t,effect(){i.isDependenciesChanged&&e(i)}};s[r]=i,o.pointer+=1}function bt(e,t){kn(n=>{cancelAnimationFrame(n.animationFrame),n.animationFrame=requestAnimationFrame(()=>{setTimeout(()=>{n.cleanEffect=e()})})},t)}function It(e,t){kn(n=>{n.cleanEffect=e()},t)}function Hn(){}function Bn(e){let{nodeInstance:t,context:n}=N(),{id:o,defaultValue:r}=e,s=n[o],a=s?s.props.value:r;return It(()=>{if(s){let{subs:i}=s,c=At(t);return i.push(c),()=>{i.splice(i.indexOf(c),1)}}},[]),t.context=a,a}function xe(e){let t={transitionId:Se(),transitionState:X,pendingSuspense:[],tryCount:0};se(t,e)}function Yn(){let e=bn();return nt(()=>{let t={transitionId:Se(),tryCount:0,isPending:!1,transitionTimeout:null,pendingSuspense:[],transitionState:fn,clearTimeout(){clearTimeout(t.transitionTimeout)},updatePendingState(n,o){t.isPending=n,e[d].isDirty=!0;let r=()=>{M(e)};o===C?se(t,r):b(o,r)},startTransition(n){let o=re(),{root:r}=v(e);t.transitionState=X,t.pendingSuspense=[],t.clearTimeout(),se(t,n),r.lastDeferredCompleteTime<r.deferredUpdateTime&&t.updatePendingState(!0,o)}};return t},xt,({startTransition:t,isPending:n})=>[n,t])}function Kn(e,t){let[n,o]=Ft(t!==void 0?t:e);return bt(()=>{xe(()=>{o(e)})},[e]),n}function jn(e){let t=tt(e);for(let n=0,o=t.length;n<o;n++){let r=t[n];r.effect&&r.effect()}}function ot(e,t){let n=tt(e);for(let o=0,r=n.length;o<r;o++){let s=n[o];s.cleanEffect&&(s.isDependenciesChanged||t)&&s.cleanEffect(),s.clearTimeout&&t&&s.clearTimeout()}}function Dt(e){return{syncHooks:[],deferredHooks:[],context:void 0,pointer:0,__render(t){Un();let n=e(t);return this[d].nodes=n,n},__unmount:new Map,[d]:{pendingSyncUpdates:[],pendingDeferredUpdates:[],fiber:null,nodes:null,isDirty:!1,mounted:!1,renderCount:0}}}function jo(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let r=0;r<n.length;r++)if(!hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}var Pt=jo;function $o(e){let{root:t}=e;for(;(e=e.parent)&&!(e.nodeInstance instanceof R&&(e.nodeInstance.componentDidCatch||e.node.type.getDerivedStateFromError));)if(e===t)return null;return e}function zo(e){let t="";for(;e;){let{node:n}=e;n&&_(n)&&n.type!==pe&&(t+=` at ${ht(n.type)}
|
|
2
|
-
`),e=e.parent}return{componentStack:t}}function
|
|
3
|
-
${P.componentStack}`;console.error(W),k.childFiberError={error:g,errorInfo:P},$n(k)}else throw g;return}finally{St(null);let g=u[d];if(m&&l){let{committedValues:k}=g;Object.assign(u,k)}}}if(f||p){let{child:h}=e,{nodes:g}=A;!h||h.node!==g?(ne(g,n,h,e,e),F(e,x)):f||te(e)}else te(e)}function Gn(e){let{node:t,alternate:n}=e,o=n&&n.node;t!==o&&F(e,x)}function Ut(e,t){let{type:n}=e,o=t?document.createElementNS("http://www.w3.org/2000/svg",n):document.createElement(n);return Ye(o),{fragment:[o],domNodes:[o],parts:[{previousSibling:null,parentNode:o,isNode:!0}]}}function Wo(e){return!!e&&e.nodeType===8&&e.textContent===sn}var Fe=class{constructor(t,n){this.templateResult=t,t.create(n),this.fragment=this.createNode(n),this.parts=this.getParts(),this.domNodes=$(this.fragment.childNodes),this.patched=!1}createNode(t){let{template:n,svgTemplate:o}=this.templateResult,r=t?o:n;return document.importNode(r.content,!0)}getParts(){let{fragment:t,templateResult:n}=this,{partsMeta:o}=n,r=[],s=t.querySelectorAll("*");for(let a=0,i=o.length;a<i;a++){let c=o[a],{isAttribute:l,attrIndex:p,refNodeIndex:f,prevChildIndex:m,hasExpressionSibling:u}=c,T=s[f];if(l)c.tagAttrs||(c.tagAttrs=$(T.attributes)),r.push({isAttribute:!0,tagAttrs:c.tagAttrs,domNode:T,attrIndex:p}),Ye(T);else{T=T||t;let A=m!==-1,E,h=T.childNodes[m+1];A&&Wo(h)&&ge(h),A?u?E=En(T,m):E=T.childNodes[m]:E=null,r.push({isNode:!0,parentNode:T,previousSibling:E})}}return r}patchParts(t){let{parts:n}=this,{parentNode:o,previousSibling:r}=t;if(!this.patched){for(let s=0,a=n.length;s<a;s++){let i=n[s];i.isNode&&i.parentNode instanceof DocumentFragment&&(i.parentNode=o,i.previousSibling=i.previousSibling||r)}this.patched=!0}}};function Xo(e,t,n){let o=e.lastIndexOf(t);return n<=o}function qo(e,t){return{nodeType:z,props:e,ref:t}}function Qo(e,t,n){let o=n,r=n.child;for(let s=0,a=e.length;s<a;s++){let i=e[s],c=t[s],l;if(i.isAttribute){let{domNode:p}=i,f={},m;for(;i&&p===i.domNode;)ye(t[s],(u,T)=>{let A=i,E=Be(u);!Xo(A.tagAttrs,E,A.attrIndex)&&!an[u]?f[u]=T:u==="ref"&&(m=T)}),i=e[++s];s--,i=e[s],l=qo(f,m)}else i.isNode&&(l=c);o=ne(l,i,r,o,n),r=r&&r.sibling}}function vt(e){let{node:t}=e,{part:n,alternate:o,parent:{context:r}}=e,s=o&&o.node,{values:a,nodeType:i}=t,c=i===Z,l=e.isSvgPart||t.type==="svg";e.isSvgPart=l;let{nodeInstance:p}=e;p||(p=c?Ut(t,l):new Fe(t.template,l),e.nodeInstance=p),c||p.patchParts(n),t!==s?c?ne(t.props.children,p.parts[0],e.child,e,e):Qo(p.parts,a,e):te(e),F(e,x),e.context=r}function Vn(e,t){let{type:n}=t,o=Tt(t);return ut[e]?ut[e]:/^change(textarea|input)/i.test(e+o)&&!ln.test(n)?"input":e}function Mt(e){let{type:t}=e,n=Tt(e);if(n==="input"&&(t==="radio"||t==="checkbox"))return"checked";if(n==="input"||n==="select"||n==="textarea")return"value"}function Wn(e){let t=Mt(e);if(!t)return;let n=e[`${t}Prop`],o=e[t];n!==void 0&&n!==o&&(e[t]=n)}function Xn(e,t,n,o){e==="checked"?n==="checked"?(t.checked=o,t.checkedProp=o):n==="defaultChecked"&&t.checkedProp===void 0?t.checked=o:t[n]=o:e==="value"&&(n==="value"?(t.value=o,t.valueProp=o):n==="defaultValue"&&t.valueProp===void 0?t.value=o:t[n]=o)}function qn(e,t,n){let o=e.__brahmosData.events,r=o[t];return r?(r.handler=n,r.patched):(r=o[t]={handler:n,patched:null},r.patched=function(s){r.handler&&fe(()=>{r.handler.call(this,s)})},r.patched)}function Qn(e,t,n,o){t=t||{},ye(e,(r,s)=>{let a=t[r];s!==a&&o(r,s,a)}),ye(t,(r,s)=>{e[r]===void 0&&s!==void 0&&o(r,n,s)})}function Zo(e,t,n,o,r){if(t==="children")return;if(mn(t)){let a=t.substr(-7)==="Capture"&&t.substr(-14,7)==="Pointer",i=Tn(t,a);i=Vn(i,e);let c=qn(e,t,n);o&&!n?e.removeEventListener(i,c,a):!o&&n&&e.addEventListener(i,c,a)}else if(t==="style"){let{style:a}=e;Qn(n||{},o,"",(i,c)=>{i[0]==="-"?a.setProperty(i,c):a[i]=typeof c=="number"&&un.test(i)===!1?c+"px":c})}else if(t==="dangerouslySetInnerHTML"){let a=o&&o.__html,i=n&&n.__html;i!==a&&(e.innerHTML=i==null?"":i)}else if(t in e&&!r){let a=Mt(e);a?Xn(a,e,t,n):e[t]=n==null?"":n}else{t=Be(t);let a=t.replace(/^xlink:?/,""),i=n==null||n===!1;t!==a?(a=a.toLowerCase(),i?e.removeAttributeNS(dt,a):e.setAttributeNS(dt,a,n)):i?e.removeAttribute(t):e.setAttribute(t,n)}}function wt(e,t,n,o){Qn(t,n,null,(r,s,a)=>{Zo(e,r,s,a,o)}),Wn(e)}function st(e){function t(n){return e(ce(n,!1),n.ref)}return t.__isForwardRef=!0,t.$$typeof=rn,t}function Zn(){return{current:null}}function Re(e,t){typeof e=="function"?e(t):typeof e=="object"&&(e.current=t)}function Jo(e){let{node:t,alternate:n}=e,o=e.part,{parentNode:r,previousSibling:s}=o,a=le(r,s);n&&a?a.nodeValue=t:Ke(r,a,t)}function er(e){for(;e.child&&e.node&&!B(e.node);)e=e.child;return e}function Jn(e,t){let{domNodes:n}=t;e[Le]=n[n.length-1]}function eo(e,t){if(e.isArrayNode&&e.nodeIndex===0)for(;e=e.parentArrayPart;)e.firstDOMNode=t}function to(e){let{previousSibling:t}=e;if(e.isArrayNode){let{firstDOMNode:n,nodeIndex:o}=e;o>0?t=e.parentNode[Le]:e.parentArrayPart&&(t=n?n.previousSibling:e.parentNode[Le])}return t}function no(e,t){let{part:n}=e;if(!n.isArrayNode)return;let{nodeIndex:o,parentNode:r}=n,s=t.part.nodeIndex,a=er(e),{nodeInstance:i}=a,c=a!==e&&a.hasUncommittedEffect;if(!(!i||c)){if(o!==s){let{domNodes:l}=i,p=to(n),f=le(r,p),m=l[0];m&&m.previousSibling!==p&&m!==f&&Ke(r,f,l),eo(n,m)}Jn(r,i)}}function tr(e){let{nodeInstance:t,alternate:n,node:o}=e,r=e.part,{parentNode:s}=r,a=G(o);if(a&&oo(e,t.domNodes[0]),n)no(e,n);else{let i=to(r),c=le(s,i),l=Ke(s,c,t.fragment);a||(t.domNodes=l),eo(r,l[0]),Jn(s,t)}}function nr(e){let{node:t,nodeInstance:n,root:o}=e,{updateType:r}=o,{nodeType:s}=t,a=n[d],i=r===y;if(s===D){i&&Object.assign(n,a.memoizedValues);let{props:p,state:f}=a.committedValues;a.lastSnapshot=w(n,"getSnapshotBeforeUpdate",[p,f])}else ot(e,!1);let{transitionId:c}=Q(e,null),l=Ze(r);a[l]=i?a[l].filter(p=>p.transitionId!==c):[],a.isDirty=!1,a.renderCount=0,o.postCommitEffects.push(e)}function or(e){let{node:t,nodeInstance:n,root:o,childFiberError:r}=e,{updateType:s}=o,{nodeType:a,ref:i}=t,c=n[d];if(a===D){let{props:l,state:p}=n,{committedValues:f,lastSnapshot:m}=c,{props:u,state:T}=f;u?w(n,"componentDidUpdate",[u,T,m]):w(n,"componentDidMount"),r&&(w(n,"componentDidCatch",[r.error,r.errorInfo]),e.childFiberError=null),i&&Re(i,n),f.props=l,f.state=p,c.memoizedValues=null}else if(jn(e),s===y){let{syncHooks:l,deferredHooks:p}=n;n.deferredHooks=l,n.syncHooks=p}c.mounted=!0,c.fiber=e}function oo(e,t){let{node:n,alternate:o,isSvgPart:r}=e,{props:s,ref:a}=n,i=o&&o.node.props;wt(t,s,i,r),a&&Re(a,t)}function it(e){e.tearDownFibers=[],e.postCommitEffects=[],e.hasUncommittedEffect=!1,e.retryFiber=null,e.resetRenderCallbacks()}function rr(e){e.node=null,e.nodeInstance=null,e.child=null,e.sibling=null}function Lt(e){let{currentTransition:t,pendingTransitions:n}=e,o=n.indexOf(t);o!==-1&&n.splice(o,1)}function sr(e){let{node:t,alternate:n}=e,o=t&&_(t);o&&n&&no(e,n),e.hasUncommittedEffect===x&&(Y(t)?Jo(e):B(t)?tr(e):o?nr(e):t.nodeType===z&&oo(e,e.part.domNode),e.hasUncommittedEffect=He),n&&rr(n)}function ro(e){let{updateType:t,wip:n,current:o}=e,r=ee(t),s=e[Ae(t)],a=[],i=t===S?o:n;for(;i;){let{createdAt:c,node:l,child:p,hasUncommittedEffect:f}=i,m=i[r],u=c>s,T=f||m>s;if(f&&a.push(i),u&&(p&&p.parent!==i&&(p.parent=i),l&&_(l)&&(i.nodeInstance[d].fiber=i)),p&&T)i=p;else{for(;i!==e&&!i.sibling;)i=i.parent;i=i.sibling}}return a}function kt(e,t){for(let o=0,r=t.length;o<r;o++)sr(t[o]);let{postCommitEffects:n}=e;for(let o=n.length-1;o>=0;o--)or(n[o]);Lt(e),it(e),e.forcedUpdateWith=null}function Ht(e){let{node:t,part:n}=e,o=e,{parentNode:r,previousSibling:s,firstDOMNode:a}=n,i=new Map,c=0,l=e;for(;l=An(l,e);){let p=Ct(l.node,c);i.set(p,l),c++}e.child=null,t.forEach((p,f)=>{let m=Ct(p,f),u=i.get(m);u&&i.delete(m);let T=o;o=ne(p,{parentNode:r,previousSibling:s,a:void 0,firstDOMNode:a,isArrayNode:!0,nodeIndex:f,parentArrayPart:n.isArrayNode?n:null},u,T,e),o.sibling=null,u&&u.part.nodeIndex!==f&&(F(o,ft),f!==0&&F(T,ft))}),i.forEach(p=>{oe(p)}),F(e,x)}function so(e,t,n,o){let r=e.part.parentNode!==t.parentNode&&n?!1:o,{node:s}=e;s&&s.portalContainer&&(r=!0),io(e,r)}function io(e,t){let{node:n,part:o,nodeInstance:r}=e;if(e.shouldTearDown=!1,!Ge(n))return;let s=B(n),{child:a}=e;if(a)for(so(a,o,s,t);a.sibling;)a=a.sibling,so(a,o,s,t);if(Y(n)&&t){let c=le(o.parentNode,o.previousSibling);c&&ge(c);return}let{ref:i}=n;if(i&&Re(i,null),!!r)if(s){let{domNodes:c}=r;t&&ge(c)}else _(n)&&$e(r)&&(r.__unmount.forEach(c=>c()),r.__unmount.clear(),n.nodeType===D?w(r,"componentWillUnmount"):ot(e,!0))}function me(e){let{tearDownFibers:t}=e;t.forEach(n=>{n.shouldTearDown&&io(n,!0)}),e.tearDownFibers=[]}var ao=5,ir=30,Bt=16,ar=300,cr=600,lo;requestAnimationFrame(e=>{lo=e});var Yt=()=>performance.now(),co=()=>!0,po=(e,t)=>(t=t||Bt,t-(e-lo)%t),Kt,be;if(typeof MessageChannel!="undefined"){be=[];let e=new MessageChannel;e.port1.onmessage=function(){be.forEach(t=>t())},Kt=e.port2}function lr(e){if(!Kt||po(Yt())<1){let t=()=>{r(),e()},n=setTimeout(t,1),o=requestIdleCallback(t),r=()=>{clearTimeout(n),cancelIdleCallback(o)};return r}return be.push(e),Kt.postMessage(null),()=>{let t=be.indexOf(e);t!==-1&&be.splice(t,1)}}function jt(e,t,n){let{cancelSchedule:o}=e;if(o&&(o(),e.cancelSchedule=null),t){e.cancelSchedule=lr(()=>{let{currentTransition:r}=e,s=r?r.tryCount:0,a=r===U?ar:cr,i=Yt(),c=Math.min(ir,ao+s),l=Math.floor(c/Bt)*Bt,p=()=>{let u=Yt(),T=po(u,l),A=i+Math.min(ao,T);return u<A},m=s>a?co:p;n(m)});return}n(co)}function pr(e){let{node:t,nodeInstance:n}=e;return _(t)&&n?!!de(e).length||n[d].isDirty:!1}function ur(e){let{node:t,alternate:n}=e;if(!Ge(t)){n&&oe(n);return}let o=pr(e);if(e.processedTime&&!o){te(e);return}Y(t)?Gn(e):Array.isArray(t)?Ht(e):B(t)?vt(e):_(t)?Ot(e):t.nodeType===z&&F(e,x),e.processedTime=j()}function dr(e){return e.updateType===S?!0:e.currentTransition?e.lastCompleteTime>=e.updateTime&&e.hasUncommittedEffect&&Ne(e.currentTransition):!1}var fr={fn:e=>{let{updateType:t,current:n}=e,o=Ae(t);me(e);let r=ro(e);e[o]=e.lastCompleteTime=j(),t===y&&(e.current=e.wip,e.wip=n),b(O,()=>kt(e,r))}};function at(e,t){let{root:n}=e,{updateType:o,currentTransition:r}=n,s=Ae(o),a=ee(o),i=n[s],c=!Fn(n);jt(n,c,l=>{for(;e!==t;)if(l()){ur(e);let{retryFiber:f}=n;f?(e=f,t=n,n.retryFiber=null):e=_n(e,t,i,a)}else{at(e,t);return}if(n.callRenderCallbacks(),r){let f=e===t&&!n.retryFiber,m=r.transitionState!==ae;f&&m&&(gn(r),r.tryCount=0),!n.hasUncommittedEffect&&Ne(r)&&Lt(n)}dr(n)&&fr.fn(n),Et(n)&&b(C,()=>{n.updateSource=C,Ie(n)})})}function Ie(e){let t=Et(e);t&&(e.updateType=y,it(e),e.currentTransition=t,t.tryCount+=1,e.wip=We(e.current,e.wip,e,e),at(e.wip,e))}function ct(e){let{root:t,parent:n}=e;t.updateType=S,t.currentTransition=null,it(t),at(e,n)}function M(e){let t=v(e),{root:n}=t,{pendingTransitions:o,batchUpdates:r}=n,s=re(),a=Nt(),i=_e();if(L(t,i),s===C&&!o.includes(a)&&(a===U?o.unshift(a):o.push(a)),r[s]){r[s]+=1;return}r[s]=1,Ce(()=>{let c=r[s];r[s]=0;let l=s===C;if(!(l&&n.lastCompleteTime<n.updateTime))if(n.updateSource=s,l)Ie(n);else{let p=n.updateType===S&&n.cancelSchedule;ct(s===O&&!p&&c===1?t:n.current)}})}var R=class{constructor(t){this.props=t,this.state=void 0,this.context=void 0,this[d]={lastSnapshot:null,pendingSyncUpdates:[],pendingDeferredUpdates:[],fiber:null,nodes:null,mounted:!1,committedValues:{},memoizedValues:null,isDirty:!1,renderCount:0}}setState(t,n){et(this,r=>({state:t,transitionId:r,callback:n}))&&M(this)}forceUpdate(t){let n=this[d],{fiber:o}=n;o&&(o.root.forcedUpdateWith=this,this[d].isDirty=!0,M(this),t&&t(this.state))}render(){}__render(){let t=this.render();return this[d].nodes=t,t}};R.prototype.isReactComponent=!0;var ie=class extends R{};ie.prototype.isPureReactComponent=!0;function I(e,t,n){let{ref:o}=t;n===void 0&&(n=t.key),t=ce(t,e.__isForwardRef);let r=Ve(t,null,n);if(r.type=e,typeof e=="string")return r.nodeType=Z,r.ref=o,r;let s=e.prototype&&e.prototype.isReactComponent;r.nodeType=s?D:gt,r.ref=s?o:null,e.__loadLazyComponent&&e.__loadLazyComponent();let a=typeof e=="function"&&e.defaultProps;if(a)for(n in a)t[n]===void 0&&(t[n]=a[n]);return r}function uo(e,t,n){t=t||{};let r=arguments.length>3?$(arguments,2):n;return r&&(t.children=r),I(e,t,t.key)}function rt(e,t){let{root:n}=e,{nodeInstance:o}=e;for(;!(o instanceof De||t&&o instanceof V);){if(e=e.parent,e===n)return null;o=e.nodeInstance}return e}function zn(e){let t=rt(e.parent,!0);if(!(t&&t.nodeInstance instanceof V))return e;let{nodeInstance:o}=t,{childManagers:r}=o.suspenseManagers[Q(e,null).transitionId],{revealOrder:s}=o.props;return s==="backwards"||s==="together"?(r.forEach(a=>{a.component[d].isDirty=!0}),r[0].fiber):e}function $t(e){let{parentSuspenseManager:t}=e;return t&&t.isSuspenseList?t:null}function zt(e,t){let{nodeInstance:n}=e,{suspenseManagers:o}=n,{transitionId:r}=t,s=o[r];return s||(s=o[r]=new Gt(e,t)),t.transitionState===X&&(s.suspender=null),s}function mo(e){e[d].isDirty=!0}function mr(e){let t=v(e.component);e.isUnresolved()&&t&&(mo(e.component),L(t,y))}var Gt=class{constructor(t,n){let{nodeInstance:o}=t;this.fiber=t,this.component=o,this.transition=n,this.childManagers=[],this.suspender=null,this.isSuspenseList=o instanceof V;let r=rt(t.parent,!0);this.parentSuspenseManager=r&&zt(r,n),this.recordChildSuspense(),this.handleSuspense=this.handleSuspense.bind(this)}recordChildSuspense(){let{parentSuspenseManager:t}=this;t?(t.childManagers.push(this),this.rootSuspenseManager=t.rootSuspenseManager):this.rootSuspenseManager=this}addRootToProcess(){let{rootSuspenseManager:t}=this,{root:n}=N();n.afterRender(t.handleSuspense)}suspend(t){this.suspender=t,this.addRootToProcess()}handleSuspense(){let{component:t,suspender:n}=this;return t instanceof V?this.handleSuspenseList():Promise.resolve(n).then(this.resolve.bind(this,n))}isUnresolved(){return this.isSuspenseList?this.childManagers.some(t=>t.isUnresolved()):this.suspender}shouldShowFallback(){let t=$t(this);if(!t)return!0;let{component:n,childManagers:o}=t,{tail:r}=n.props;if($t(t)&&!t.shouldShowFallback())return!1;if(r==="collapsed")for(let a=0,i=o.length;a<i;a++){let c=o[a];if(r==="collapsed"&&c.isUnresolved())return c===this}return r!=="hidden"}shouldRenderChildren(){let t=$t(this),{suspender:n}=this;if(!t)return!n;if($e(this.component)&&!n)return!0;let{component:{props:{revealOrder:o}},childManagers:r}=t,s=r.indexOf(this);return!r.some((i,c)=>{let{suspender:l}=i;return l?o==="together"||o==="forwards"&&c<=s||o==="backwards"&&c>=s:!1})}resolve(t){let{component:n,transition:o,suspender:r,childManagers:s}=this,a=o.pendingSuspense||[];if(t!==r)return;if(!r){s.forEach(p=>{p.handleSuspense()});return}this.suspender=null,mo(this.component);let i=o.transitionState===K,c=a.filter(p=>p.suspenseManagers[o.transitionId].suspender).length;!i&&!c&&(o.transitionState=Ee);let l=()=>{let p=n;v(n)||(p=this.fiber.root.wip.nodeInstance),M(p)};setTimeout(()=>{i||!a.includes(n)?Je(l):se(o,l)},hn()%dn)}getChildrenSuspenders(){let t=[];return this.childManagers.forEach(n=>{n.isSuspenseList?t=t.concat(n.getChildrenSuspenders()):n.suspender&&t.push(n.suspender)}),t}handleSuspenseList(){let{component:t,childManagers:n}=this,{revealOrder:o="together",tail:r}=t.props,s=(i,c)=>i.then(()=>(o==="forwards"&&r==="collapsed"&&mr(c),c.handleSuspense())),a=Promise.all(this.getChildrenSuspenders());if(o==="together")a.then(()=>{n.forEach(i=>i.handleSuspense())});else if(o==="forwards"){let i=je;for(let c=0,l=n.length;c<l;c++)i=s(i,n[c])}else if(o==="backwards"){let i=je;for(let c=n.length-1;c>=0;c--)i=s(i,n[c])}return a}};function fo(e){let t=N(),n=Q(t,U);return n.transitionState===Ee&&!n.pendingSuspense.includes(e)&&(n=U),n}var V=class extends R{constructor(t){super(t),this.suspenseManagers={}}render(){return this.props.children}},De=class extends R{constructor(t){super(t),this.suspenseManagers={}}handleSuspender(t,n){let o=fo(this),r=zt(n,o);Ne(o)||(o.pendingSuspense.includes(this)||o.pendingSuspense.push(this),o.transitionState=ae),r.suspend(t)}render(){let{fallback:t,children:n}=this.props,o=fo(this),r=N(),s=zt(r,o);return s.shouldRenderChildren()?n:s.shouldShowFallback()?t:null}},To=e=>{let t,n=st((o,r)=>{let s=t.read();return I(s.default,{...o,ref:r})});return n.__loadLazyComponent=()=>{t||(t=yn(e()))},n};function Tr(e){return e.split(",").map(n=>{let[o,r,s]=n.split("|"),a=o==="0",i=o==="2";return{isAttribute:a,refNodeIndex:r?Number(r):-1,attrIndex:a?Number(s):-1,prevChildIndex:!a&&s?Number(s):-1,hasExpressionSibling:i,tagAttrs:void 0}})}var Pe=class{constructor(t,n){this.strings=t,this.template=null,this.svgTemplate=null,this.partsMeta=[],this.partMetaCode=n}create(t){t&&this.svgTemplate||this.template||(this.partsMeta.length||(this.partsMeta=Tr(this.partMetaCode)),this.createTemplate(t))}createTemplate(t){let{strings:n}=this,o=document.createElement("template"),r=n.join("");if(o.innerHTML=t?`<svg>${r}</svg>`:r,t){let{content:a}=o,i=a.firstChild;for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}let s=t?"svgTemplate":"template";this[s]=o}};var ho=new WeakMap;function hr(e,t){let n=Ve(null,t,void 0);return n.nodeType=yt,n.template=e,n}function Eo(e,...t){return n=>{let o=ho.get(e);return o||(o=new Pe(e,n),ho.set(e,o)),hr(o,t)}}function Vt(e,t){let{__rootFiber:n}=t,o;if(n)o=n.current,o.node.props.children=e,o.processedTime=0,L(o,S);else{let r=I(pe,{children:e}),s={parentNode:t,previousSibling:null,isNode:!0};n=Xe(t),o=ue(n,r,s),o.parent=n,n.current=o,t.__rootFiber=n}return fe(()=>{n.updateSource=re(),ct(o)}),e&&e.nodeType===D?o.child.nodeInstance:null}function Er(e,t){return e&&(e.portalContainer=t),e}var yo=Er;function yr(e){let{__rootFiber:t}=e;return t?(oe(t.current),me(t),e.__rootFiber=void 0,!0):!1}var go=yr;var gr=/<([^\s"'=<>/]+)/g,Co=/\s*([^\s"'=<>/]*)/g,Cr=/[^"]*/g,Sr=/[^"]*/g,Nr=/<\/([^\s"'=<>]+)>/g,Ar=/[^<]*/g,_r=/<!--.*?-->/g,xr=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Fr(e){let t=[],n=!1,o,r={},s=(l,p)=>{l.children?Array.isArray(l.children)?l.children.push(p):l.children=[l.children,p]:l.children=p},a=l=>{let p=t[t.length-1];s(p?p.props:r,l)},i=()=>{n=!1,a(o),xr.includes(o.type)||t.push(o)},c=l=>{let p={$$BrahmosDynamicPart:l};o?n?o.props[`$$BrahmosDynamicPart${l}`]=p:s(o.props,p):s(r,p)};return e.forEach((l,p)=>{let f=l.length,m,u=0,T=E=>{E.lastIndex=u;let h=E.exec(l);return h&&(u=E.lastIndex),h},A=E=>{E.lastIndex=u+2;let h=E.exec(l);return u=E.lastIndex+1,h[0]};for(;u<f;){if(l[u]==="<"&&l[u+1]==="/"){t.pop(),T(Nr);continue}else if(l[u]==="<"&&l[u+1]==="!"){T(_r);continue}else if(l[u]==="<"){m=T(gr)[1],o={$$typeof:we,type:m,nodeType:Z,props:{}},n=!0;continue}else if(l[u]===" "&&n){Co.lastIndex=u;let E=T(Co),h,g;if(E){h=E[1],l[u]!=="="?g=!0:l[u+1]==='"'?g=A(Cr):l[u+1]==="'"&&(g=A(Sr)),h&&(o.props[h]=g);continue}}else if(l[u]===">"&&n)i();else if(!n){let E=T(Ar);a(E[0]);continue}u++}c(p)}),r.children}var{hasOwnProperty:Rr}=Object.prototype;function So(e,t){if(e==null||typeof e!="object")return e;let n=new e.constructor;for(var o in e)if(Rr.call(e,o)){let r=e[o],s=r&&r.$$BrahmosDynamicPart;if(s!==void 0){let a=t[s];o[0]==="$"?n=Object.assign(n,a):n[o]=a}else n[o]=So(e[o],t)}return n}function Oe(e){let{values:t,template:n}=e,{strings:o}=n;return n.staticTree||(n.staticTree=Fr(o)),So(n.staticTree,t)}function br(e){return B(e)&&!e.template.strings.some(Boolean)}function No(e){let t=[];return e.forEach(n=>{Array.isArray(n)?t=t.concat(No(n)):n&&J(n)?t.push(Oe(n)):t.push(n)}),t}function Ue(e){if(q(e))return;if(typeof e=="boolean")return[];if(e[d])return e[d];let t=e;return br(t)&&(t=t.values),J(t)&&(t=Oe(t)),Array.isArray(t)||(t=[t]),t=No(t),e[d]=t,t}function Ir(e,t){let n=Ue(e);return n?n.map(t):e}function Dr(e){return(Ue(e)||[]).map((n,o)=>(n&&n.key===void 0&&(n.key=o),n))}function Pr(e,t){(Ue(e)||[]).forEach(t)}function Or(e){return Ue(e)&&e.length===1}function Ur(e){let t=Ue(e);return t?t.length:0}var Ao={map:Ir,toArray:Dr,forEach:Pr,only:Or,count:Ur};function _o(e){return e&&(_(e)||G(e))}function Wt(e,t){t=t||{};let n=arguments.length;if(n>2){let o=n>3?$(arguments,2):arguments[2];t.children=o}if(e){if(J(e)){let o=Oe(e);return Wt(o,t)}else if(_(e)||G(e))return{...e,props:{...e.props,...ce(t,!1)},ref:t.ref}}return e}function Xt(e,t){class n extends ie{render(){return I(e,this.props)}}return n.displayName=`Memo(${e.displayName||e.name})`,n}function xo(e){let t=e[ke];return t||(t=Xe(e),e[ke]=t),{render(n){let o=t.current;if(o)o.node.props.children=n,o.processedTime=0,L(o,y);else{let s=I(pe,{children:n});o=ue(t,s,{parentNode:e,previousSibling:null,isNode:!0}),o.parent=t,t.current=o}let r=U;t.pendingTransitions.includes(r)||t.pendingTransitions.push(r),b(C,()=>{t.updateSource=C,Ie(t)})},unmount(){t.cancelSchedule&&(t.cancelSchedule(),t.cancelSchedule=null);let n=t.current;n&&(n.shouldTearDown=!0,t.tearDownFibers.push(n),me(t),t.current=null),delete e[ke]}}}function qt(e){if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status==="pending"||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})),e)}function Fo(e){if(!N())throw new Error("use() must be called during render.");if(e&&typeof e.then=="function")return qt(e);throw new Error("Unsupported type passed to use()")}function Ro(e){let t=Promise.resolve(),n=new Set,o=e(r=>{n.forEach(s=>s(r))});return t._watch={unsubscribe:r=>{r&&n.delete(r),n.size===0&&o&&o()},subscribe:r=>n.add(r)},t}function Qt(e){bo(e)}Qt.sync=e=>{bo(e,{sync:!0})};function bo(e,t={}){xe(()=>{var r;let n=N(),o=n?n.nodeInstance:null;if(!o)throw new Error("watch() must be called during render.");if(e._watch&&!((r=o.__unmount)!=null&&r.has(e))){let s=()=>{let a=v(o);if(a){let i=t.sync?O:C;b(i,()=>{o[d].isDirty=!0,F(a,x),M(o)})}};e._watch.subscribe(s),o.__unmount.set(e,()=>e._watch.unsubscribe(s))}qt(e)})}var Io=e=>e.children,vr=Io,Mr=Io;function wr(e){e()}var Lr=I,kr=I,Hr=I;var hc=Zt;export{Ao as Children,R as Component,Mr as Fragment,ie as PureComponent,vr as StrictMode,De as Suspense,V as SuspenseList,Wt as cloneElement,_t as createContext,uo as createElement,yo as createPortal,Zn as createRef,xo as createRoot,hc as default,st as forwardRef,Eo as html,Ro as initWatch,_o as isValidElement,Lr as jsx,Hr as jsxDev,kr as jsxs,To as lazy,Xt as memo,Vt as render,xe as startTransition,go as unmountComponentAtNode,wr as unstable_batchedUpdates,Je as unstable_deferredUpdates,fe as unstable_syncUpdates,Fo as use,Ln as useCallback,Bn as useContext,Hn as useDebugValue,Kn as useDeferredValue,bt as useEffect,It as useLayoutEffect,Rt as useMemo,wn as useReducer,Mn as useRef,Ft as useState,Yn as useTransition,Qt as watch};
|
|
1
|
+
var Do=Object.defineProperty;var Po=(e,t)=>{for(var n in t)Do(e,n,{get:t[n],enumerable:!0})};var Zt={};Po(Zt,{Children:()=>_o,Component:()=>R,Fragment:()=>Mr,PureComponent:()=>ie,StrictMode:()=>vr,Suspense:()=>De,SuspenseList:()=>V,cloneElement:()=>Xt,createContext:()=>xt,createElement:()=>uo,createPortal:()=>yo,createRef:()=>Zn,createRoot:()=>xo,forwardRef:()=>st,html:()=>Eo,isValidElement:()=>Ao,jsx:()=>Lr,jsxDev:()=>Hr,jsxs:()=>kr,lazy:()=>To,memo:()=>qt,render:()=>Wt,startTransition:()=>xe,unmountComponentAtNode:()=>go,unstable_batchedUpdates:()=>wr,unstable_deferredUpdates:()=>Je,unstable_syncUpdates:()=>fe,use:()=>Fo,useCallback:()=>Ln,useContext:()=>Bn,useDebugValue:()=>Hn,useDeferredValue:()=>Kn,useEffect:()=>It,useLayoutEffect:()=>Dt,useMemo:()=>bt,useReducer:()=>wn,useRef:()=>Mn,useState:()=>Rt,useTransition:()=>Yn,watch:()=>pt});var we=Symbol.for("react.element"),rn=Symbol.for("react.forward_ref"),sn="{{brahmos}}",an={key:1,ref:1},cn={className:"class",htmlFor:"for",acceptCharset:"accept-charset",httpEquiv:"http-equiv",tabIndex:"tabindex"},dt={doubleclick:"dblclick"},pn=typeof Symbol!="undefined"?/fil|che|rad/i:/fil|che|ra/i,ln=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,un=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,ft="http://www.w3.org/1999/xlink",dn=100,d="__brahmosData",Le="__brahmosLastArrayDom",ke="__rootFiber",S="sync",y="deferred",he="js",O="immediate_action",C="transition",He=0,mt=1,x=2,fn="initial",X="start",ae="suspended",Ee="resolved",Tt="completed",K="timedOut";function mn(e){return e[0]==="o"&&e[1]==="n"}function Be(e){let t=ln.test(e)?e.replace(/[A-Z0-9]/,"-$&").toLowerCase():e;return cn[e]||t}function ht(e){return e.nodeName.toLowerCase()}function Tn(e,t){return t&&(e=e.replace(/Capture$/,"")),e.replace("on","").toLowerCase()}function q(e){return e==null}var Oo=0;function j(){return Oo++}function hn(){return Date.now()}function Ye(e){e.__brahmosData={events:{}}}function ce(e,t){if(!("key"in e||"ref"in e&&!t))return e;let n={},o;for(o in e)o!=="key"&&(o!=="ref"||t)&&(n[o]=e[o]);return n}function ye(e,t){let n=Object.keys(e);for(let o=0,r=n.length;o<r;o++){let s=n[o],a=e[s];t(s,a)}}function ge(e){Array.isArray(e)||(e=[e]);for(let t=e.length-1;t>=0;t--)e[t].remove()}function $(e,t){return t=t||0,Array.prototype.slice.call(e,t)}function Uo(e){let t=e instanceof NodeList;if(e instanceof Node)return e;if(Array.isArray(e)||t){let n=document.createDocumentFragment(),o=0;for(;e[o];)n.appendChild(e[o]),t||(o+=1);return n}return document.createTextNode(e)}function Ke(e,t,n){let o=Uo(n),r;return Array.isArray(n)?r=n:o instanceof DocumentFragment?r=$(o.childNodes):r=n,e.insertBefore(o,t),r}function pe(e,t){return t?t.nextSibling:e.firstChild}function w(e,t,n){if(e[t])return e[t].apply(e,n)}function En(e,t){let n=t===0?e.firstChild:e.childNodes[t],o=document.createTextNode("");return e.insertBefore(o,n),o}var je=Promise.resolve();function Ce(e){return je.then(e)}function Se(){return j()+"-"+Math.random()*1e6}function yn(e){let t="pending",n,o=e.then(r=>{t="success",n=r},r=>{t="error",n=r});return{read(){if(t==="pending")throw o;if(t==="error")throw n;if(t==="success")return n}}}function $e(e){return e[d].mounted}function Et(e){return e.displayName||e.name}function le({children:e}){return e}var ze={transitionId:"",tryCount:0,transitionState:K},U={transitionId:Se(),tryCount:0,transitionState:K};function vo(e){let{transitionState:t}=e;return t===X||t===Ee||t===K}function Ne(e){let{transitionState:t}=e;return t===Tt||t===K}function gn(e){let{transitionState:t}=e;t!==K&&t!==ae&&(e.isPending?(e.clearTimeout(),e.updatePendingState(!1,C)):e.transitionState=Tt)}function Q(e,t){return t=t||ze,e.root.currentTransition||t}function yt(e){let{pendingTransitions:t}=e;return t.find(vo)}var gt=Symbol.for("tag"),Z=Symbol.for("tag-element"),D=Symbol.for("class-component"),Ct=Symbol.for("functional-component"),z=Symbol.for("attribute");function G({nodeType:e}){return e===Z}function J({nodeType:e}){return e===gt}function B(e){return G(e)||J(e)}function A({nodeType:e}){return e===D||e===Ct}function Y(e){return typeof e=="string"||typeof e=="number"}function Ge(e){return!(q(e)||typeof e=="boolean")}function St(e,t){let n=e&&e.key;return n===void 0?t:n}function Ve(e,t,n){return{$$typeof:we,nodeType:null,key:n,ref:null,portalContainer:null,type:null,props:e,values:t,template:null}}var Sn;function Nt(e){Sn=e}function N(){return Sn}function _e(e){return e===y?"lastDeferredCompleteTime":"lastCompleteTime"}function ee(e){return e===y?"deferredUpdateTime":"updateTime"}function L(e,t){let n=ee(t),o=j();for(;e;)e[n]=o,e=e.parent}function Nn(e,t,n){t===n?n.child=e:t.sibling=e,e.parent=n}function F(e,t){e.hasUncommittedEffect=t,e.root.hasUncommittedEffect=!0}function We(e,t,n,o){let{root:r,node:s,part:a,nodeInstance:i,child:c}=e,p=ee(r.updateType);return t?(t.node=s,t.part=a,t.createdAt=j()):(t=ue(r,s,a),Mo(e,t)),e.shouldTearDown=!1,t.nodeInstance=i,t.child=c,t[p]=o[p],Nn(t,n,o),t}function _n(e,t){return e===t?e.child:e.sibling}function te(e){let{child:t,root:n}=e;if(n.updateType===S)return;let o;for(;t;){let{alternate:r}=t;o=We(t,r,o||e,e),t=t.sibling}}function Xe(e){let t=[];return{updateType:y,updateSource:he,cancelSchedule:null,domNode:e,forcedUpdateWith:null,current:null,wip:null,child:null,retryFiber:null,currentTransition:null,hasUncommittedEffect:!1,pendingTransitions:[],tearDownFibers:[],postCommitEffects:[],batchUpdates:{},lastDeferredCompleteTime:0,lastCompleteTime:0,deferredUpdateTime:0,updateTime:0,afterRender(n){t.includes(n)||t.push(n)},callRenderCallbacks(){for(let n=0,o=t.length;n<o;n++)t[n]()},resetRenderCallbacks(){t=[]}}}function ue(e,t,n){return t&&t.portalContainer&&(n.parentNode=t.portalContainer),{node:t,nodeInstance:null,root:e,parent:null,child:null,sibling:null,part:n,alternate:null,context:null,childFiberError:null,isSvgPart:!1,deferredUpdateTime:0,updateTime:0,processedTime:0,createdAt:j(),shouldTearDown:!1,hasUncommittedEffect:He}}function Mo(e,t){e&&(e.alternate=t),t.alternate=e}function ne(e,t,n,o,r){let{root:s}=o,a=ee(s.updateType),i;return n&&!q(n.node)&&!q(e)&&wo(e,n.node)?(i=We(n,n.alternate,o,r),i.node=e,i.part=t):(i=ue(s,e,t),n&&oe(n)),Nn(i,o,r),i.processedTime=0,i[a]=r[a],i.context=r.context,i.isSvgPart=r.isSvgPart,i}function wo(e,t){return Y(e)&&Y(t)||e.nodeType===z||Array.isArray(e)&&Array.isArray(t)||(A(e)||G(e))&&e.type===t.type||J(e)&&e.template===t.template}function Lo(e,t,n){return e&&e[n]>=t}function Cn(e,t,n){if(e){for(;e&&!Lo(e,t,n);)e=e.sibling;return e}}function An(e,t,n,o){let r=Cn(e.child,n,o);if(r)return r;let s;for(;!(s=Cn(e.sibling,n,o));)if(e=e.parent,e===t)return e;return s}function v(e){return e[d].fiber}function xn(e){let{root:t,child:n}=e;n&&n.createdAt>t.lastCompleteTime&&(e.child=n.alternate)}function oe(e){e.shouldTearDown=!0,e.root.tearDownFibers.push(e)}var Qe=he,qe=ze;function re(){return Qe}function _t(){return qe}function b(e,t){Qe=e,t(),Qe=he}function se(e,t){let n=qe;qe=e,b(C,t),qe=n}function Fn(e){return e.updateSource===O}function ko(){return Qe===C}function Ae(){return ko()?y:S}function Ze(e){return e===y?"pendingDeferredUpdates":"pendingSyncUpdates"}function de(e){let{root:{updateType:t},nodeInstance:n}=e,o=n[d],r=Ze(t);if(t===S)return o[r];let s=Q(e,null).transitionId;return o[r].filter(a=>a.transitionId===s)}function Je(e){se(U,e)}function fe(e){b(O,e)}function Ho(e,t){let{root:n}=e;for(;e.nodeInstance!==t;)if(e=e.parent,e===n)return null;return e}function et(e,t){let n,o,r=!0,s=e[d],a=N();if(a){let{renderCount:p}=s;if(p>50)throw new Error("Too many rerender. Check your setState call, this may cause an infinite loop.");let{root:l}=a;l.retryFiber=Ho(a,e),n=l.updateType,o=l.currentTransition||ze,r=!1}else s.renderCount=0,n=Ae(),o=_t();let i=Ze(n),c=t(o.transitionId);return s[i].push(c),r}var Bo=1;function At(e){return function(t){let n=v(e),{updateType:o}=n.root;e.context!==t&&(e[d].isDirty=!0,L(n,o))}}function xt(e){let t=`cC${Bo++}`;class n extends R{constructor(a){super(a),this.subs=[]}shouldComponentUpdate(a){let{value:i}=this.props;return i!==a.value&&this.subs.forEach(c=>c(a.value)),!0}sub(a){let{subs:i}=this,c=At(a);i.push(c);let{componentWillUnmount:p}=a;a.componentWillUnmount=()=>{i.splice(i.indexOf(c),1),p&&p()}}render(){return this.props.children}}n.__ccId=t;class o extends R{render(){return this.props.children(this.context)}}let r={id:t,defaultValue:e,Provider:n,Consumer:o};return o.contextType=r,r}function bn(){return N().nodeInstance}function In(e){let{renderCount:t}=e[d];e.deferredHooks=e.syncHooks.map((n,o)=>Array.isArray(n)?[...n]:n.transitionId?n:n.hasOwnProperty("current")&&t>1?e.deferredHooks[o]||n:{...n})}function Dn(e,t){let{syncHooks:n,deferredHooks:o}=t;return e===S?n:o}function tt(e){let{nodeInstance:t,root:{updateType:n}}=e;return Dn(n,t)}function Rn(e,t,n){return e===y&&!n.deferredHooks.length&&In(n),Dn(e,n)[t]}function Pn(e,t){if(!e||!t||e.length!==t.length)return!0;for(let n=0,o=e.length;n<o;n++)if(e[n]!==t[n])return!0;return!1}function Yo(e,t,n){(re()===O||!Object.is(t,n))&&M(e)}function Ft(e){return!1}function On(e){return e}function nt(e,t,n){let o=N(),{nodeInstance:r}=o,{pointer:s}=r,a=tt(o),i=a[s];return(!i||t(i))&&(i=e(),a[s]=i),r.pointer+=1,n(i)}function Un(){let e=N(),{nodeInstance:t,root:{updateType:n}}=e;t.pointer=0,n===y&&In(t),de(e).forEach(r=>r.updater())}function vn(e,t){let n=bn(),{pointer:o}=n;return nt(()=>(typeof e=="function"&&(e=e()),[e,s=>{let a=Ae(),i=Rn(S,o,n),c=i[0],p=t(s,c);et(n,f=>({transitionId:f,updater(){let m=Rn(a,o,n);m[0]=t(s,i[0])}}))&&Yo(n,p,c)}]),Ft,On)}function Rt(e){return vn(e,(t,n)=>(typeof t=="function"&&(t=t(n)),t))}function Mn(e){return nt(()=>({current:e}),Ft,On)}function wn(e,t,n){return vn(n?()=>n(t):t,(r,s)=>e(s,r))}function bt(e,t){return nt(()=>({value:e(),dependencies:t}),s=>Pn(t,s.dependencies),s=>s.value)}function Ln(e,t){return bt(()=>e,t)}function kn(e,t){let n=N(),{nodeInstance:o}=n,{pointer:r}=o,s=tt(n),a=s[r]||{animationFrame:null,cleanEffect:null},i={...a,isDependenciesChanged:Pn(t,a.dependencies),dependencies:t,effect(){i.isDependenciesChanged&&e(i)}};s[r]=i,o.pointer+=1}function It(e,t){kn(n=>{cancelAnimationFrame(n.animationFrame),n.animationFrame=requestAnimationFrame(()=>{setTimeout(()=>{n.cleanEffect=e()})})},t)}function Dt(e,t){kn(n=>{n.cleanEffect=e()},t)}function Hn(){}function Bn(e){let{nodeInstance:t,context:n}=N(),{id:o,defaultValue:r}=e,s=n[o],a=s?s.props.value:r;return Dt(()=>{if(s){let{subs:i}=s,c=At(t);return i.push(c),()=>{i.splice(i.indexOf(c),1)}}},[]),t.context=a,a}function xe(e){let t={transitionId:Se(),transitionState:X,pendingSuspense:[],tryCount:0};se(t,e)}function Yn(){let e=bn();return nt(()=>{let t={transitionId:Se(),tryCount:0,isPending:!1,transitionTimeout:null,pendingSuspense:[],transitionState:fn,clearTimeout(){clearTimeout(t.transitionTimeout)},updatePendingState(n,o){t.isPending=n,e[d].isDirty=!0;let r=()=>{M(e)};o===C?se(t,r):b(o,r)},startTransition(n){let o=re(),{root:r}=v(e);t.transitionState=X,t.pendingSuspense=[],t.clearTimeout(),se(t,n),r.lastDeferredCompleteTime<r.deferredUpdateTime&&t.updatePendingState(!0,o)}};return t},Ft,({startTransition:t,isPending:n})=>[n,t])}function Kn(e,t){let[n,o]=Rt(t!==void 0?t:e);return It(()=>{xe(()=>{o(e)})},[e]),n}function jn(e){let t=tt(e);for(let n=0,o=t.length;n<o;n++){let r=t[n];r.effect&&r.effect()}}function ot(e,t){let n=tt(e);for(let o=0,r=n.length;o<r;o++){let s=n[o];s.cleanEffect&&(s.isDependenciesChanged||t)&&s.cleanEffect(),s.clearTimeout&&t&&s.clearTimeout()}}function Pt(e){return{syncHooks:[],deferredHooks:[],context:void 0,pointer:0,__render(t){Un();let n=e(t);return this[d].nodes=n,n},__unmount:new Map,[d]:{pendingSyncUpdates:[],pendingDeferredUpdates:[],fiber:null,nodes:null,isDirty:!1,mounted:!1,renderCount:0}}}function Ko(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let r=0;r<n.length;r++)if(!hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}var Ot=Ko;function jo(e){let{root:t}=e;for(;(e=e.parent)&&!(e.nodeInstance instanceof R&&(e.nodeInstance.componentDidCatch||e.node.type.getDerivedStateFromError));)if(e===t)return null;return e}function $o(e){let t="";for(;e;){let{node:n}=e;n&&A(n)&&n.type!==le&&(t+=` at ${Et(n.type)}
|
|
2
|
+
`),e=e.parent}return{componentStack:t}}function zo(e){let{node:{type:t},nodeInstance:n,parent:o}=e,{__ccId:r}=t,s=o.context||{};if(!r)return s;let a=Object.create(s);return a[r]=n,a}function Go(e,t){return t.reduce((n,{state:o})=>(typeof o=="function"&&(o=o(n)),{...n,...o}),e)}function $n(e){let{root:t,nodeInstance:n}=e;n[d].isDirty=!0,t.retryFiber=e}function Ut(e){let{node:t,part:n,root:o,childFiberError:r}=e,{type:s,nodeType:a,props:i={}}=t,{currentTransition:c}=o,p=o.updateType===y,l=!0,f=!1,m=a===D;xn(e);let{nodeInstance:u}=e,T=!1;u||(u=m?new s(i):Pt(s),e.nodeInstance=u,T=!0);let _=u[d],E=zo(e);if(e.context=E,m){let h=u,g=_,{committedValues:k,memoizedValues:P}=g;T&&(k.state=h.state);let{props:W,state:Te}=k;P&&c&&c.transitionId===P.transitionId&&({props:W,state:Te}=P,f=!0),h.props=W,h.state=Te;let{shouldComponentUpdate:Jt}=h,H=Te,lt=de(e);lt.length&&(H=Go(Te,lt));let en=!T&&o.forcedUpdateWith!==u,tn=w(s,"getDerivedStateFromProps",[i,H]),nn=r?w(s,"getDerivedStateFromError",[r.error]):void 0;(tn||nn)&&(H={...H,...tn,...nn}),h.isPureReactComponent&&en&&(l=!Ot(H,Te)||!Ot(i,W)),Jt&&l&&en&&(l=Jt.call(h,i,H));let{contextType:on}=s;if(on){let{id:ve,defaultValue:ut}=on,Me=E[ve],Io=Me?Me.props.value:ut;Me&&T&&Me.sub(h),h.context=Io}h.state=H,h.props=i,lt.forEach(({callback:ve})=>{if(ve){let{updateSource:ut}=o;Ce(()=>{b(ut,()=>ve(H))})}}),c&&(g.memoizedValues={state:H,props:i,transitionId:c.transitionId})}if(l){Nt(e),_.renderCount+=1;let h=r&&!s.getDerivedStateFromError;try{h?_.nodes=null:u.__render(i)}catch(g){let k=jo(e);if(typeof g.then=="function"){let P=rt(e);if(!P)throw new Error("Rendering which got suspended can't be used outside of suspense.");P.nodeInstance.handleSuspender(g,P);let W=zn(P);$n(W)}else if(k&&!k.childFiberError){let P=$o(e);console.error(g);let W=`The above error occurred in the <${Et(t.type)}> component:
|
|
3
|
+
${P.componentStack}`;console.error(W),k.childFiberError={error:g,errorInfo:P},$n(k)}else throw g;return}finally{Nt(null);let g=u[d];if(m&&p){let{committedValues:k}=g;Object.assign(u,k)}}}if(f||l){let{child:h}=e,{nodes:g}=_;!h||h.node!==g?(ne(g,n,h,e,e),F(e,x)):f||te(e)}else te(e)}function Gn(e){let{node:t,alternate:n}=e,o=n&&n.node;t!==o&&F(e,x)}function vt(e,t){let{type:n}=e,o=t?document.createElementNS("http://www.w3.org/2000/svg",n):document.createElement(n);return Ye(o),{fragment:[o],domNodes:[o],parts:[{previousSibling:null,parentNode:o,isNode:!0}]}}function Vo(e){return!!e&&e.nodeType===8&&e.textContent===sn}var Fe=class{constructor(t,n){this.templateResult=t,t.create(n),this.fragment=this.createNode(n),this.parts=this.getParts(),this.domNodes=$(this.fragment.childNodes),this.patched=!1}createNode(t){let{template:n,svgTemplate:o}=this.templateResult,r=t?o:n;return document.importNode(r.content,!0)}getParts(){let{fragment:t,templateResult:n}=this,{partsMeta:o}=n,r=[],s=t.querySelectorAll("*");for(let a=0,i=o.length;a<i;a++){let c=o[a],{isAttribute:p,attrIndex:l,refNodeIndex:f,prevChildIndex:m,hasExpressionSibling:u}=c,T=s[f];if(p)c.tagAttrs||(c.tagAttrs=$(T.attributes)),r.push({isAttribute:!0,tagAttrs:c.tagAttrs,domNode:T,attrIndex:l}),Ye(T);else{T=T||t;let _=m!==-1,E,h=T.childNodes[m+1];_&&Vo(h)&&ge(h),_?u?E=En(T,m):E=T.childNodes[m]:E=null,r.push({isNode:!0,parentNode:T,previousSibling:E})}}return r}patchParts(t){let{parts:n}=this,{parentNode:o,previousSibling:r}=t;if(!this.patched){for(let s=0,a=n.length;s<a;s++){let i=n[s];i.isNode&&i.parentNode instanceof DocumentFragment&&(i.parentNode=o,i.previousSibling=i.previousSibling||r)}this.patched=!0}}};function Wo(e,t,n){let o=e.lastIndexOf(t);return n<=o}function Xo(e,t){return{nodeType:z,props:e,ref:t}}function qo(e,t,n){let o=n,r=n.child;for(let s=0,a=e.length;s<a;s++){let i=e[s],c=t[s],p;if(i.isAttribute){let{domNode:l}=i,f={},m;for(;i&&l===i.domNode;)ye(t[s],(u,T)=>{let _=i,E=Be(u);!Wo(_.tagAttrs,E,_.attrIndex)&&!an[u]?f[u]=T:u==="ref"&&(m=T)}),i=e[++s];s--,i=e[s],p=Xo(f,m)}else i.isNode&&(p=c);o=ne(p,i,r,o,n),r=r&&r.sibling}}function Mt(e){let{node:t}=e,{part:n,alternate:o,parent:{context:r}}=e,s=o&&o.node,{values:a,nodeType:i}=t,c=i===Z,p=e.isSvgPart||t.type==="svg";e.isSvgPart=p;let{nodeInstance:l}=e;l||(l=c?vt(t,p):new Fe(t.template,p),e.nodeInstance=l),c||l.patchParts(n),t!==s?c?ne(t.props.children,l.parts[0],e.child,e,e):qo(l.parts,a,e):te(e),F(e,x),e.context=r}function Vn(e,t){let{type:n}=t,o=ht(t);return dt[e]?dt[e]:/^change(textarea|input)/i.test(e+o)&&!pn.test(n)?"input":e}function wt(e){let{type:t}=e,n=ht(e);if(n==="input"&&(t==="radio"||t==="checkbox"))return"checked";if(n==="input"||n==="select"||n==="textarea")return"value"}function Wn(e){let t=wt(e);if(!t)return;let n=e[`${t}Prop`],o=e[t];n!==void 0&&n!==o&&(e[t]=n)}function Xn(e,t,n,o){e==="checked"?n==="checked"?(t.checked=o,t.checkedProp=o):n==="defaultChecked"&&t.checkedProp===void 0?t.checked=o:t[n]=o:e==="value"&&(n==="value"?(t.value=o,t.valueProp=o):n==="defaultValue"&&t.valueProp===void 0?t.value=o:t[n]=o)}function qn(e,t,n){let o=e.__brahmosData.events,r=o[t];return r?(r.handler=n,r.patched):(r=o[t]={handler:n,patched:null},r.patched=function(s){r.handler&&fe(()=>{r.handler.call(this,s)})},r.patched)}function Qn(e,t,n,o){t=t||{},ye(e,(r,s)=>{let a=t[r];s!==a&&o(r,s,a)}),ye(t,(r,s)=>{e[r]===void 0&&s!==void 0&&o(r,n,s)})}function Qo(e,t,n,o,r){if(t==="children")return;if(mn(t)){let a=t.substr(-7)==="Capture"&&t.substr(-14,7)==="Pointer",i=Tn(t,a);i=Vn(i,e);let c=qn(e,t,n);o&&!n?e.removeEventListener(i,c,a):!o&&n&&e.addEventListener(i,c,a)}else if(t==="style"){let{style:a}=e;Qn(n||{},o,"",(i,c)=>{i[0]==="-"?a.setProperty(i,c):a[i]=typeof c=="number"&&un.test(i)===!1?c+"px":c})}else if(t==="dangerouslySetInnerHTML"){let a=o&&o.__html,i=n&&n.__html;i!==a&&(e.innerHTML=i==null?"":i)}else if(t in e&&!r){let a=wt(e);a?Xn(a,e,t,n):e[t]=n==null?"":n}else{t=Be(t);let a=t.replace(/^xlink:?/,""),i=n==null||n===!1;t!==a?(a=a.toLowerCase(),i?e.removeAttributeNS(ft,a):e.setAttributeNS(ft,a,n)):i?e.removeAttribute(t):e.setAttribute(t,n)}}function Lt(e,t,n,o){Qn(t,n,null,(r,s,a)=>{Qo(e,r,s,a,o)}),Wn(e)}function st(e){function t(n){return e(ce(n,!1),n.ref)}return t.__isForwardRef=!0,t.$$typeof=rn,t}function Zn(){return{current:null}}function Re(e,t){typeof e=="function"?e(t):typeof e=="object"&&(e.current=t)}function Zo(e){let{node:t,alternate:n}=e,o=e.part,{parentNode:r,previousSibling:s}=o,a=pe(r,s);n&&a?a.nodeValue=t:Ke(r,a,t)}function Jo(e){for(;e.child&&e.node&&!B(e.node);)e=e.child;return e}function Jn(e,t){let{domNodes:n}=t;e[Le]=n[n.length-1]}function eo(e,t){if(e.isArrayNode&&e.nodeIndex===0)for(;e=e.parentArrayPart;)e.firstDOMNode=t}function to(e){let{previousSibling:t}=e;if(e.isArrayNode){let{firstDOMNode:n,nodeIndex:o}=e;o>0?t=e.parentNode[Le]:e.parentArrayPart&&(t=n?n.previousSibling:e.parentNode[Le])}return t}function no(e,t){let{part:n}=e;if(!n.isArrayNode)return;let{nodeIndex:o,parentNode:r}=n,s=t.part.nodeIndex,a=Jo(e),{nodeInstance:i}=a,c=a!==e&&a.hasUncommittedEffect;if(!(!i||c)){if(o!==s){let{domNodes:p}=i,l=to(n),f=pe(r,l),m=p[0];m&&m.previousSibling!==l&&m!==f&&Ke(r,f,p),eo(n,m)}Jn(r,i)}}function er(e){let{nodeInstance:t,alternate:n,node:o}=e,r=e.part,{parentNode:s}=r,a=G(o);if(a&&oo(e,t.domNodes[0]),n)no(e,n);else{let i=to(r),c=pe(s,i),p=Ke(s,c,t.fragment);a||(t.domNodes=p),eo(r,p[0]),Jn(s,t)}}function tr(e){let{node:t,nodeInstance:n,root:o}=e,{updateType:r}=o,{nodeType:s}=t,a=n[d],i=r===y;if(s===D){i&&Object.assign(n,a.memoizedValues);let{props:l,state:f}=a.committedValues;a.lastSnapshot=w(n,"getSnapshotBeforeUpdate",[l,f])}else ot(e,!1);let{transitionId:c}=Q(e,null),p=Ze(r);a[p]=i?a[p].filter(l=>l.transitionId!==c):[],a.isDirty=!1,a.renderCount=0,o.postCommitEffects.push(e)}function nr(e){let{node:t,nodeInstance:n,root:o,childFiberError:r}=e,{updateType:s}=o,{nodeType:a,ref:i}=t,c=n[d];if(a===D){let{props:p,state:l}=n,{committedValues:f,lastSnapshot:m}=c,{props:u,state:T}=f;u?w(n,"componentDidUpdate",[u,T,m]):w(n,"componentDidMount"),r&&(w(n,"componentDidCatch",[r.error,r.errorInfo]),e.childFiberError=null),i&&Re(i,n),f.props=p,f.state=l,c.memoizedValues=null}else if(jn(e),s===y){let{syncHooks:p,deferredHooks:l}=n;n.deferredHooks=p,n.syncHooks=l}c.mounted=!0,c.fiber=e}function oo(e,t){let{node:n,alternate:o,isSvgPart:r}=e,{props:s,ref:a}=n,i=o&&o.node.props;Lt(t,s,i,r),a&&Re(a,t)}function it(e){e.tearDownFibers=[],e.postCommitEffects=[],e.hasUncommittedEffect=!1,e.retryFiber=null,e.resetRenderCallbacks()}function or(e){e.node=null,e.nodeInstance=null,e.child=null,e.sibling=null}function kt(e){let{currentTransition:t,pendingTransitions:n}=e,o=n.indexOf(t);o!==-1&&n.splice(o,1)}function rr(e){let{node:t,alternate:n}=e,o=t&&A(t);o&&n&&no(e,n),e.hasUncommittedEffect===x&&(Y(t)?Zo(e):B(t)?er(e):o?tr(e):t.nodeType===z&&oo(e,e.part.domNode),e.hasUncommittedEffect=He),n&&or(n)}function ro(e){let{updateType:t,wip:n,current:o}=e,r=ee(t),s=e[_e(t)],a=[],i=t===S?o:n;for(;i;){let{createdAt:c,node:p,child:l,hasUncommittedEffect:f}=i,m=i[r],u=c>s,T=f||m>s;if(f&&a.push(i),u&&(l&&l.parent!==i&&(l.parent=i),p&&A(p)&&(i.nodeInstance[d].fiber=i)),l&&T)i=l;else{for(;i!==e&&!i.sibling;)i=i.parent;i=i.sibling}}return a}function Ht(e,t){for(let o=0,r=t.length;o<r;o++)rr(t[o]);let{postCommitEffects:n}=e;for(let o=n.length-1;o>=0;o--)nr(n[o]);kt(e),it(e),e.forcedUpdateWith=null}function Bt(e){let{node:t,part:n}=e,o=e,{parentNode:r,previousSibling:s,firstDOMNode:a}=n,i=new Map,c=0,p=e;for(;p=_n(p,e);){let l=St(p.node,c);i.set(l,p),c++}e.child=null,t.forEach((l,f)=>{let m=St(l,f),u=i.get(m);u&&i.delete(m);let T=o;o=ne(l,{parentNode:r,previousSibling:s,a:void 0,firstDOMNode:a,isArrayNode:!0,nodeIndex:f,parentArrayPart:n.isArrayNode?n:null},u,T,e),o.sibling=null,u&&u.part.nodeIndex!==f&&(F(o,mt),f!==0&&F(T,mt))}),i.forEach(l=>{oe(l)}),F(e,x)}function so(e,t,n,o){let r=e.part.parentNode!==t.parentNode&&n?!1:o,{node:s}=e;s&&s.portalContainer&&(r=!0),io(e,r)}function io(e,t){let{node:n,part:o,nodeInstance:r}=e;if(e.shouldTearDown=!1,!Ge(n))return;let s=B(n),{child:a}=e;if(a)for(so(a,o,s,t);a.sibling;)a=a.sibling,so(a,o,s,t);if(Y(n)&&t){let c=pe(o.parentNode,o.previousSibling);c&&ge(c);return}let{ref:i}=n;if(i&&Re(i,null),!!r)if(s){let{domNodes:c}=r;t&&ge(c)}else A(n)&&$e(r)&&(r.__unmount.forEach(c=>c()),r.__unmount.clear(),n.nodeType===D?w(r,"componentWillUnmount"):ot(e,!0))}function me(e){let{tearDownFibers:t}=e;t.forEach(n=>{n.shouldTearDown&&io(n,!0)}),e.tearDownFibers=[]}var ao=5,sr=30,Yt=16,ir=300,ar=600,po;requestAnimationFrame(e=>{po=e});var Kt=()=>performance.now(),co=()=>!0,lo=(e,t)=>(t=t||Yt,t-(e-po)%t),jt,be;if(typeof MessageChannel!="undefined"){be=[];let e=new MessageChannel;e.port1.onmessage=function(){be.forEach(t=>t())},jt=e.port2}function cr(e){if(!jt||lo(Kt())<1){let t=()=>{r(),e()},n=setTimeout(t,1),o=requestIdleCallback(t),r=()=>{clearTimeout(n),cancelIdleCallback(o)};return r}return be.push(e),jt.postMessage(null),()=>{let t=be.indexOf(e);t!==-1&&be.splice(t,1)}}function $t(e,t,n){let{cancelSchedule:o}=e;if(o&&(o(),e.cancelSchedule=null),t){e.cancelSchedule=cr(()=>{let{currentTransition:r}=e,s=r?r.tryCount:0,a=r===U?ir:ar,i=Kt(),c=Math.min(sr,ao+s),p=Math.floor(c/Yt)*Yt,l=()=>{let u=Kt(),T=lo(u,p),_=i+Math.min(ao,T);return u<_},m=s>a?co:l;n(m)});return}n(co)}function pr(e){let{node:t,nodeInstance:n}=e;return A(t)&&n?!!de(e).length||n[d].isDirty:!1}function lr(e){let{node:t,alternate:n}=e;if(!Ge(t)){n&&oe(n);return}let o=pr(e);if(e.processedTime&&!o){te(e);return}Y(t)?Gn(e):Array.isArray(t)?Bt(e):B(t)?Mt(e):A(t)?Ut(e):t.nodeType===z&&F(e,x),e.processedTime=j()}function ur(e){return e.updateType===S?!0:e.currentTransition?e.lastCompleteTime>=e.updateTime&&e.hasUncommittedEffect&&Ne(e.currentTransition):!1}var dr={fn:e=>{let{updateType:t,current:n}=e,o=_e(t);me(e);let r=ro(e);e[o]=e.lastCompleteTime=j(),t===y&&(e.current=e.wip,e.wip=n),b(O,()=>Ht(e,r))}};function at(e,t){let{root:n}=e,{updateType:o,currentTransition:r}=n,s=_e(o),a=ee(o),i=n[s],c=!Fn(n);$t(n,c,p=>{for(;e!==t;)if(p()){lr(e);let{retryFiber:f}=n;f?(e=f,t=n,n.retryFiber=null):e=An(e,t,i,a)}else{at(e,t);return}if(n.callRenderCallbacks(),r){let f=e===t&&!n.retryFiber,m=r.transitionState!==ae;f&&m&&(gn(r),r.tryCount=0),!n.hasUncommittedEffect&&Ne(r)&&kt(n)}ur(n)&&dr.fn(n),yt(n)&&b(C,()=>{n.updateSource=C,Ie(n)})})}function Ie(e){let t=yt(e);t&&(e.updateType=y,it(e),e.currentTransition=t,t.tryCount+=1,e.wip=We(e.current,e.wip,e,e),at(e.wip,e))}function ct(e){let{root:t,parent:n}=e;t.updateType=S,t.currentTransition=null,it(t),at(e,n)}function M(e){let t=v(e),{root:n}=t,{pendingTransitions:o,batchUpdates:r}=n,s=re(),a=_t(),i=Ae();if(L(t,i),s===C&&!o.includes(a)&&(a===U?o.unshift(a):o.push(a)),r[s]){r[s]+=1;return}r[s]=1,Ce(()=>{let c=r[s];r[s]=0;let p=s===C;if(!(p&&n.lastCompleteTime<n.updateTime))if(n.updateSource=s,p)Ie(n);else{let l=n.updateType===S&&n.cancelSchedule;ct(s===O&&!l&&c===1?t:n.current)}})}var R=class{constructor(t){this.props=t,this.state=void 0,this.context=void 0,this[d]={lastSnapshot:null,pendingSyncUpdates:[],pendingDeferredUpdates:[],fiber:null,nodes:null,mounted:!1,committedValues:{},memoizedValues:null,isDirty:!1,renderCount:0}}setState(t,n){et(this,r=>({state:t,transitionId:r,callback:n}))&&M(this)}forceUpdate(t){let n=this[d],{fiber:o}=n;o&&(o.root.forcedUpdateWith=this,this[d].isDirty=!0,M(this),t&&t(this.state))}render(){}__render(){let t=this.render();return this[d].nodes=t,t}};R.prototype.isReactComponent=!0;var ie=class extends R{};ie.prototype.isPureReactComponent=!0;function I(e,t,n){let{ref:o}=t;n===void 0&&(n=t.key);let r=typeof e=="function"&&e.prototype&&e.prototype.isReactComponent,s=typeof e=="function"&&!r||e.__isForwardRef;t=ce(t,s);let a=Ve(t,null,n);if(a.type=e,typeof e=="string")return a.nodeType=Z,a.ref=o,a;a.nodeType=r?D:Ct,a.ref=r?o:null,e.__loadLazyComponent&&e.__loadLazyComponent();let i=typeof e=="function"&&e.defaultProps;if(i)for(n in i)t[n]===void 0&&(t[n]=i[n]);return a}function uo(e,t,n){t=t||{};let r=arguments.length>3?$(arguments,2):n;return r&&(t.children=r),I(e,t,t.key)}function rt(e,t){let{root:n}=e,{nodeInstance:o}=e;for(;!(o instanceof De||t&&o instanceof V);){if(e=e.parent,e===n)return null;o=e.nodeInstance}return e}function zn(e){let t=rt(e.parent,!0);if(!(t&&t.nodeInstance instanceof V))return e;let{nodeInstance:o}=t,{childManagers:r}=o.suspenseManagers[Q(e,null).transitionId],{revealOrder:s}=o.props;return s==="backwards"||s==="together"?(r.forEach(a=>{a.component[d].isDirty=!0}),r[0].fiber):e}function zt(e){let{parentSuspenseManager:t}=e;return t&&t.isSuspenseList?t:null}function Gt(e,t){let{nodeInstance:n}=e,{suspenseManagers:o}=n,{transitionId:r}=t,s=o[r];return s||(s=o[r]=new Vt(e,t)),t.transitionState===X&&(s.suspender=null),s}function mo(e){e[d].isDirty=!0}function fr(e){let t=v(e.component);e.isUnresolved()&&t&&(mo(e.component),L(t,y))}var Vt=class{constructor(t,n){let{nodeInstance:o}=t;this.fiber=t,this.component=o,this.transition=n,this.childManagers=[],this.suspender=null,this.isSuspenseList=o instanceof V;let r=rt(t.parent,!0);this.parentSuspenseManager=r&&Gt(r,n),this.recordChildSuspense(),this.handleSuspense=this.handleSuspense.bind(this)}recordChildSuspense(){let{parentSuspenseManager:t}=this;t?(t.childManagers.push(this),this.rootSuspenseManager=t.rootSuspenseManager):this.rootSuspenseManager=this}addRootToProcess(){let{rootSuspenseManager:t}=this,{root:n}=N();n.afterRender(t.handleSuspense)}suspend(t){this.suspender=t,this.addRootToProcess()}handleSuspense(){let{component:t,suspender:n}=this;return t instanceof V?this.handleSuspenseList():Promise.resolve(n).then(this.resolve.bind(this,n))}isUnresolved(){return this.isSuspenseList?this.childManagers.some(t=>t.isUnresolved()):this.suspender}shouldShowFallback(){let t=zt(this);if(!t)return!0;let{component:n,childManagers:o}=t,{tail:r}=n.props;if(zt(t)&&!t.shouldShowFallback())return!1;if(r==="collapsed")for(let a=0,i=o.length;a<i;a++){let c=o[a];if(r==="collapsed"&&c.isUnresolved())return c===this}return r!=="hidden"}shouldRenderChildren(){let t=zt(this),{suspender:n}=this;if(!t)return!n;if($e(this.component)&&!n)return!0;let{component:{props:{revealOrder:o}},childManagers:r}=t,s=r.indexOf(this);return!r.some((i,c)=>{let{suspender:p}=i;return p?o==="together"||o==="forwards"&&c<=s||o==="backwards"&&c>=s:!1})}resolve(t){let{component:n,transition:o,suspender:r,childManagers:s}=this,a=o.pendingSuspense||[];if(t!==r)return;if(!r){s.forEach(l=>{l.handleSuspense()});return}this.suspender=null,mo(this.component);let i=o.transitionState===K,c=a.filter(l=>l.suspenseManagers[o.transitionId].suspender).length;!i&&!c&&(o.transitionState=Ee);let p=()=>{let l=n;v(n)||(l=this.fiber.root.wip.nodeInstance),M(l)};setTimeout(()=>{i||!a.includes(n)?Je(p):se(o,p)},hn()%dn)}getChildrenSuspenders(){let t=[];return this.childManagers.forEach(n=>{n.isSuspenseList?t=t.concat(n.getChildrenSuspenders()):n.suspender&&t.push(n.suspender)}),t}handleSuspenseList(){let{component:t,childManagers:n}=this,{revealOrder:o="together",tail:r}=t.props,s=(i,c)=>i.then(()=>(o==="forwards"&&r==="collapsed"&&fr(c),c.handleSuspense())),a=Promise.all(this.getChildrenSuspenders());if(o==="together")a.then(()=>{n.forEach(i=>i.handleSuspense())});else if(o==="forwards"){let i=je;for(let c=0,p=n.length;c<p;c++)i=s(i,n[c])}else if(o==="backwards"){let i=je;for(let c=n.length-1;c>=0;c--)i=s(i,n[c])}return a}};function fo(e){let t=N(),n=Q(t,U);return n.transitionState===Ee&&!n.pendingSuspense.includes(e)&&(n=U),n}var V=class extends R{constructor(t){super(t),this.suspenseManagers={}}render(){return this.props.children}},De=class extends R{constructor(t){super(t),this.suspenseManagers={}}handleSuspender(t,n){let o=fo(this),r=Gt(n,o);Ne(o)||(o.pendingSuspense.includes(this)||o.pendingSuspense.push(this),o.transitionState=ae),r.suspend(t)}render(){let{fallback:t,children:n}=this.props,o=fo(this),r=N(),s=Gt(r,o);return s.shouldRenderChildren()?n:s.shouldShowFallback()?t:null}},To=e=>{let t,n=st((o,r)=>{let s=t.read();return I(s.default,{...o,ref:r})});return n.__loadLazyComponent=()=>{t||(t=yn(e()))},n};function mr(e){return e.split(",").map(n=>{let[o,r,s]=n.split("|"),a=o==="0",i=o==="2";return{isAttribute:a,refNodeIndex:r?Number(r):-1,attrIndex:a?Number(s):-1,prevChildIndex:!a&&s?Number(s):-1,hasExpressionSibling:i,tagAttrs:void 0}})}var Pe=class{constructor(t,n){this.strings=t,this.template=null,this.svgTemplate=null,this.partsMeta=[],this.partMetaCode=n}create(t){t&&this.svgTemplate||this.template||(this.partsMeta.length||(this.partsMeta=mr(this.partMetaCode)),this.createTemplate(t))}createTemplate(t){let{strings:n}=this,o=document.createElement("template"),r=n.join("");if(o.innerHTML=t?`<svg>${r}</svg>`:r,t){let{content:a}=o,i=a.firstChild;for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}let s=t?"svgTemplate":"template";this[s]=o}};var ho=new WeakMap;function Tr(e,t){let n=Ve(null,t,void 0);return n.nodeType=gt,n.template=e,n}function Eo(e,...t){return n=>{let o=ho.get(e);return o||(o=new Pe(e,n),ho.set(e,o)),Tr(o,t)}}function Wt(e,t){let{__rootFiber:n}=t,o;if(n)o=n.current,o.node.props.children=e,o.processedTime=0,L(o,S);else{let r=I(le,{children:e}),s={parentNode:t,previousSibling:null,isNode:!0};n=Xe(t),o=ue(n,r,s),o.parent=n,n.current=o,t.__rootFiber=n}return fe(()=>{n.updateSource=re(),ct(o)}),e&&e.nodeType===D?o.child.nodeInstance:null}function hr(e,t){return e&&(e.portalContainer=t),e}var yo=hr;function Er(e){let{__rootFiber:t}=e;return t?(oe(t.current),me(t),e.__rootFiber=void 0,!0):!1}var go=Er;var yr=/<([^\s"'=<>/]+)/g,Co=/\s*([^\s"'=<>/]*)/g,gr=/[^"]*/g,Cr=/[^"]*/g,Sr=/<\/([^\s"'=<>]+)>/g,Nr=/[^<]*/g,_r=/<!--.*?-->/g,Ar=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function xr(e){let t=[],n=!1,o,r={},s=(p,l)=>{p.children?Array.isArray(p.children)?p.children.push(l):p.children=[p.children,l]:p.children=l},a=p=>{let l=t[t.length-1];s(l?l.props:r,p)},i=()=>{n=!1,a(o),Ar.includes(o.type)||t.push(o)},c=p=>{let l={$$BrahmosDynamicPart:p};o?n?o.props[`$$BrahmosDynamicPart${p}`]=l:s(o.props,l):s(r,l)};return e.forEach((p,l)=>{let f=p.length,m,u=0,T=E=>{E.lastIndex=u;let h=E.exec(p);return h&&(u=E.lastIndex),h},_=E=>{E.lastIndex=u+2;let h=E.exec(p);return u=E.lastIndex+1,h[0]};for(;u<f;){if(p[u]==="<"&&p[u+1]==="/"){t.pop(),T(Sr);continue}else if(p[u]==="<"&&p[u+1]==="!"){T(_r);continue}else if(p[u]==="<"){m=T(yr)[1],o={$$typeof:we,type:m,nodeType:Z,props:{}},n=!0;continue}else if(p[u]===" "&&n){Co.lastIndex=u;let E=T(Co),h,g;if(E){h=E[1],p[u]!=="="?g=!0:p[u+1]==='"'?g=_(gr):p[u+1]==="'"&&(g=_(Cr)),h&&(o.props[h]=g);continue}}else if(p[u]===">"&&n)i();else if(!n){let E=T(Nr);a(E[0]);continue}u++}c(l)}),r.children}var{hasOwnProperty:Fr}=Object.prototype;function So(e,t){if(e==null||typeof e!="object")return e;let n=new e.constructor;for(var o in e)if(Fr.call(e,o)){let r=e[o],s=r&&r.$$BrahmosDynamicPart;if(s!==void 0){let a=t[s];o[0]==="$"?n=Object.assign(n,a):n[o]=a}else n[o]=So(e[o],t)}return n}function Oe(e){let{values:t,template:n}=e,{strings:o}=n;return n.staticTree||(n.staticTree=xr(o)),So(n.staticTree,t)}function Rr(e){return B(e)&&!e.template.strings.some(Boolean)}function No(e){let t=[];return e.forEach(n=>{Array.isArray(n)?t=t.concat(No(n)):n&&J(n)?t.push(Oe(n)):t.push(n)}),t}function Ue(e){if(q(e))return;if(typeof e=="boolean")return[];if(e[d])return e[d];let t=e;return Rr(t)&&(t=t.values),J(t)&&(t=Oe(t)),Array.isArray(t)||(t=[t]),t=No(t),e[d]=t,t}function br(e,t){let n=Ue(e);return n?n.map(t):e}function Ir(e){return(Ue(e)||[]).map((n,o)=>(n&&n.key===void 0&&(n.key=o),n))}function Dr(e,t){(Ue(e)||[]).forEach(t)}function Pr(e){return Ue(e)&&e.length===1}function Or(e){let t=Ue(e);return t?t.length:0}var _o={map:br,toArray:Ir,forEach:Dr,only:Pr,count:Or};function Ao(e){return e&&(A(e)||G(e))}function Xt(e,t){t=t||{};let n=arguments.length;if(n>2){let o=n>3?$(arguments,2):arguments[2];t.children=o}if(e){if(J(e)){let o=Oe(e);return Xt(o,t)}else if(A(e)||G(e)){let o=e.type,r=typeof o=="function"&&o.prototype&&o.prototype.isReactComponent,s=typeof o=="function"&&!r||o.__isForwardRef;return{...e,props:{...e.props,...ce(t,s)},ref:s?null:t.ref}}}return e}function qt(e,t){class n extends ie{render(){return I(e,this.props)}}return n.displayName=`Memo(${e.displayName||e.name})`,n}function xo(e){let t=e[ke];return t||(t=Xe(e),e[ke]=t),{render(n){let o=t.current;if(o)o.node.props.children=n,o.processedTime=0,L(o,y);else{let s=I(le,{children:n});o=ue(t,s,{parentNode:e,previousSibling:null,isNode:!0}),o.parent=t,t.current=o}let r=U;t.pendingTransitions.includes(r)||t.pendingTransitions.push(r),b(C,()=>{t.updateSource=C,Ie(t)})},unmount(){t.cancelSchedule&&(t.cancelSchedule(),t.cancelSchedule=null);let n=t.current;n&&(n.shouldTearDown=!0,t.tearDownFibers.push(n),me(t),t.current=null),delete e[ke]}}}function Qt(e){if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status==="pending"||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})),e)}function Fo(e){if(!N())throw new Error("use() must be called during render.");if(e&&typeof e.then=="function")return Qt(e);throw new Error("Unsupported type passed to use()")}function Ur(e){let t=Promise.resolve(),n=new Set,o=e(r=>{n.forEach(s=>s(r))});return t._watch={unsubscribe:r=>{r&&n.delete(r),n.size===0&&o&&o()},subscribe:r=>n.add(r)},t}function pt(e){Ro(e)}pt.create=Ur;pt.sync=e=>{Ro(e,{sync:!0})};function Ro(e,t={}){xe(()=>{var r;let n=N(),o=n?n.nodeInstance:null;if(!o)throw new Error("watch() must be called during render.");if(e._watch&&!((r=o.__unmount)!=null&&r.has(e))){let s=()=>{let a=v(o);if(a){let i=t.sync?O:C;b(i,()=>{o[d].isDirty=!0,F(a,x),M(o)})}};e._watch.subscribe(s),o.__unmount.set(e,()=>e._watch.unsubscribe(s))}Qt(e)})}var bo=e=>e.children,vr=bo,Mr=bo;function wr(e){e()}var Lr=I,kr=I,Hr=I;var Ec=Zt;export{_o as Children,R as Component,Mr as Fragment,ie as PureComponent,vr as StrictMode,De as Suspense,V as SuspenseList,Xt as cloneElement,xt as createContext,uo as createElement,yo as createPortal,Zn as createRef,xo as createRoot,Ec as default,st as forwardRef,Eo as html,Ao as isValidElement,Lr as jsx,Hr as jsxDev,kr as jsxs,To as lazy,qt as memo,Wt as render,xe as startTransition,go as unmountComponentAtNode,wr as unstable_batchedUpdates,Je as unstable_deferredUpdates,fe as unstable_syncUpdates,Fo as use,Ln as useCallback,Bn as useContext,Hn as useDebugValue,Kn as useDeferredValue,It as useEffect,Dt as useLayoutEffect,bt as useMemo,wn as useReducer,Mn as useRef,Rt as useState,Yn as useTransition,pt as watch};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "potatejs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Super charged UI library with modern React API and native templates.",
|
|
5
5
|
"author": "uniho",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
20
|
"types": "./dist/type.d.ts",
|
|
21
|
-
"import": "./dist/index.js"
|
|
21
|
+
"import": "./dist/index.js",
|
|
22
|
+
"require": "./dist/index.js",
|
|
23
|
+
"default": "./dist/index.js"
|
|
22
24
|
},
|
|
23
25
|
"./vite": {
|
|
24
26
|
"types": "./dist/type.d.ts",
|
|
@@ -27,6 +29,11 @@
|
|
|
27
29
|
"./esbuild": {
|
|
28
30
|
"types": "./dist/type.d.ts",
|
|
29
31
|
"import": "./dist/index-esbuild.js"
|
|
32
|
+
},
|
|
33
|
+
"./jsx-runtime": {
|
|
34
|
+
"import": "./dist/index.js",
|
|
35
|
+
"require": "./dist/index.js",
|
|
36
|
+
"default": "./dist/index.js"
|
|
30
37
|
}
|
|
31
38
|
},
|
|
32
39
|
"bin": {
|