potatejs 0.18.0 → 0.20.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 CHANGED
@@ -110,7 +110,7 @@ npx potatejs src/entry-point.js --outdir dist
110
110
 
111
111
  ## Usage
112
112
 
113
- The API is exact same as React so build how you build application with React, but instead of importing from `react` or `react-dom` import from `potatejs`;
113
+ The API is basically the same as React, allowing you to build applications with your existing knowledge. Simply import from `potatejs` instead of `react` or `react-dom`.
114
114
 
115
115
  ```js
116
116
  import Potate from 'potatejs'
@@ -134,10 +134,13 @@ root.render(<App/>)
134
134
 
135
135
  ```
136
136
 
137
+ However, Potate components have several key differences from React to maximize native performance.
138
+ For more details, see [Potate Native Component (PNC) Guide](docs/POTATE_NATIVE_COMPONENT.md).
139
+
137
140
 
138
141
  ### Using React 3rd party libraries
139
142
 
140
- If you want to use existing 3rd party React libraries or write your own components using React syntax (like style objects, custom event and anymore), just wrap them with `reacty()`.
143
+ If you want to use existing 3rd party React libraries or write your own components using React syntax (like style objects, custom events and more), just wrap them with `reacty()`.
141
144
 
142
145
  Potate will automatically handle the "React-isms" for that component and its children.
143
146
 
@@ -182,12 +185,14 @@ export default defineConfig({
182
185
  ```bash
183
186
  npm install react-select
184
187
  npm install react-confetti
188
+ npm install react-simple-typewriter
185
189
  ```
186
190
 
187
191
  ```jsx
188
192
  import Potate from 'potatejs'
189
- import _Confetti from 'react-confetti';
190
- import _Select from 'react-select'
193
+ import Confetti from 'react-confetti';
194
+ import Select from 'react-select'
195
+ import {Typewriter} from 'react-simple-typewriter';
191
196
 
192
197
  const options = [
193
198
  { value: 'chocolate', label: 'Chocolate' },
@@ -195,13 +200,19 @@ const options = [
195
200
  { value: 'vanilla', label: 'Vanilla' }
196
201
  ]
197
202
 
198
- const Confetti = Potate.reacty(_Confetti)
199
- const Select = Potate.reacty(_Select)
203
+ Potate.reacty(Confetti)
204
+ Potate.reacty(Select)
205
+ Potate.reacty(Typewriter);
200
206
 
201
207
  const App = (props) => {
202
208
  return (<div>
203
209
  <Confetti width={1000} height={1000} />
204
210
  <Select options={options} />
211
+ <Typewriter
212
+ words={['Hello Potate', 'I am for React', 'It works!']}
213
+ loop={5}
214
+ cursor
215
+ />
205
216
  </div>)
206
217
  }
207
218
 
@@ -316,7 +327,8 @@ For the above example, the Brahmos output is 685 bytes, compared to 824 bytes fr
316
327
  - [x] React Utilities and Methods
317
328
  - [x] ⭐⭐⭐ Vite Plugin to transpile JSX to tagged templates
318
329
  - [x] ⭐⭐⭐ Esbuild Plugin to transpile JSX to tagged templates
319
- - [x] ⭐⭐⭐ [reacty(ReactComponet) API](docs/API.md)
330
+ - [x] ⭐⭐⭐ [Potate Native Component(PNC)](docs/POTATE_NATIVE_COMPONENT.md)
331
+ - [x] ⭐⭐⭐ [reacty(ReactComponent) API](docs/API.md)
320
332
  - [x] ⭐⭐⭐ [watch(resource) API](docs/API.md)
321
333
  - [x] ⭐ The Lanes Light **(Though I haven't cleaned up the no-longer-needed TRANSITION_STATE_TIMED_OUT yet.)**
322
334
  - [x] ⭐ The Standalone `startTransition`
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
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:()=>No,Component:()=>F,Fragment:()=>Mr,PureComponent:()=>ae,StrictMode:()=>vr,Suspense:()=>De,SuspenseList:()=>V,cloneElement:()=>Xt,createContext:()=>xt,createElement:()=>uo,createPortal:()=>yo,createRef:()=>Zn,createRoot:()=>xo,forwardRef:()=>st,html:()=>Eo,isValidElement:()=>_o,jsx:()=>kr,jsxDev:()=>Br,jsxs:()=>Hr,lazy:()=>To,memo:()=>qt,reacty:()=>wr,render:()=>Wt,startTransition:()=>Re,unmountComponentAtNode:()=>go,unstable_batchedUpdates:()=>Lr,unstable_deferredUpdates:()=>Je,unstable_syncUpdates:()=>me,use:()=>Ro,useCallback:()=>Ln,useContext:()=>Bn,useDebugValue:()=>Hn,useDeferredValue:()=>Kn,useEffect:()=>It,useLayoutEffect:()=>Dt,useMemo:()=>bt,useReducer:()=>wn,useRef:()=>Mn,useState:()=>Ft,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",Ee="js",U="immediate_action",g="transition",He=0,mt=1,x=2,fn="initial",X="start",ce="suspended",ye="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 Uo=0;function j(){return Uo++}function hn(){return Date.now()}function Ye(e){e.__brahmosData={events:{}}}function pe(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 ge(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 Ce(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 Oo(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=Oo(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 Se(e){return je.then(e)}function Ae(){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 ue({children:e}){return e}var ze={transitionId:"",tryCount:0,transitionState:K},O={transitionId:Ae(),tryCount:0,transitionState:K};function vo(e){let{transitionState:t}=e;return t===X||t===ye||t===K}function Ne(e){let{transitionState:t}=e;return t===Tt||t===K}function gn(e){let{transitionState:t}=e;t!==K&&t!==ce&&(e.isPending&&!e.isRunningAsyncAction?(e.clearTimeout(),e.updatePendingState(!1,g)):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 _({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 At(e){Sn=e}function A(){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 An(e,t,n){t===n?n.child=e:t.sibling=e,e.parent=n}function R(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=de(r,s,a),Mo(e,t)),e.shouldTearDown=!1,t.nodeInstance=i,t.child=c,t[p]=o[p],t.isReactCompat=e.isReactCompat,An(t,n,o),t}function Nn(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:Ee,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 de(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,isReactCompat:!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;n&&!q(n.node)&&!q(e)&&wo(e,n.node)?(i=We(n,n.alternate,o,r),i.node=e,i.part=t):(i=de(s,e,t),n&&oe(n)),An(i,o,r),i.processedTime=0,i[a]=r[a],i.context=r.context,i.isSvgPart=r.isSvgPart;let c=e&&e.type&&e.type.__isReactCompat;return i.isReactCompat=c||r.isReactCompat||!1,i}function wo(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 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 _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=Ee,qe=ze;function re(){return Qe}function Nt(){return qe}function b(e,t){Qe=e,t(),Qe=Ee}function se(e,t){let n=qe;qe=e,b(g,t),qe=n}function Rn(e){let t=e.currentTransition&&e.currentTransition.isRunningAsyncAction;return e.updateSource===U||!!t}function ko(){return Qe===g}function xe(){return ko()?y:S}function Ze(e){return e===y?"pendingDeferredUpdates":"pendingSyncUpdates"}function fe(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(O,e)}function me(e){b(U,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=A();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=xe(),o=Nt();let i=Ze(n),c=t(o.transitionId);return s[i].push(c),r}var Bo=1;function _t(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 F{constructor(s){super(s),this.subs=[]}shouldComponentUpdate(s){let{value:a}=this.props;return a!==s.value&&this.subs.forEach(i=>i(s.value)),!0}sub(s){let{subs:a}=this,i=_t(s);a.push(i);let{componentWillUnmount:c}=s;s.componentWillUnmount=()=>{a.splice(a.indexOf(i),1),c&&c()}}render(){return this.props.children}}n.__ccId=t;class o extends F{render(){return this.props.children(this.context)}}return n.id=t,n.defaultValue=e,n.Provider=n,n.Consumer=o,o.contextType=n,n}function bn(){return A().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 Fn(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){let o=typeof t=="function";(re()===U||o||!Object.is(t,n))&&M(e)}function Rt(e){return!1}function Un(e){return e}function nt(e,t,n){let o=A(),{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 On(){let e=A(),{nodeInstance:t,root:{updateType:n}}=e;t.pointer=0,n===y&&In(t),fe(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=xe(),c=Fn(S,o,n)[0];et(n,l=>({transitionId:l,updater(){let f=Fn(a,o,n);f[0]=t(s,f[0])}}))&&Yo(n,s,c)}]),Rt,Un)}function Ft(e){return vn(e,(t,n)=>(typeof t=="function"&&(t=t(n)),t))}function Mn(e){return nt(()=>({current:e}),Rt,Un)}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=A(),{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}=A(),{id:o,defaultValue:r}=e,s=n[o],a=s?s.props.value:r;return Dt(()=>{if(s){let{subs:i}=s,c=_t(t);return i.push(c),()=>{i.splice(i.indexOf(c),1)}}},[]),t.context=a,a}function Re(e){let t={transitionId:Ae(),transitionState:X,pendingSuspense:[],tryCount:0},n;se(t,()=>{n=e()}),n&&typeof n.then=="function"&&n.then(null,o=>{console.error("Uncaught error in transition:",o)})}function Yn(){let e=bn();return nt(()=>{let t={transitionId:Ae(),tryCount:0,isPending:!1,transitionTimeout:null,isRunningAsyncAction:!1,asyncActionCount:0,pendingSuspense:[],transitionState:fn,clearTimeout(){clearTimeout(t.transitionTimeout)},updatePendingState(n,o){t.isPending=n,e[d].isDirty=!0;let r=()=>{M(e)};o===g?se(t,r):b(o,r)},startTransition(n){let o=re(),{root:r}=v(e);t.transitionState=X,t.pendingSuspense=[],t.isRunningAsyncAction=!1,t.clearTimeout();let s;se(t,()=>{s=n()});let a=r.lastDeferredCompleteTime<r.deferredUpdateTime;s&&typeof s.then=="function"?(t.asyncActionCount=(t.asyncActionCount||0)+1,t.isRunningAsyncAction=!0,t.updatePendingState(!0,g),ie(r),s.then(()=>{t.asyncActionCount--,t.asyncActionCount===0&&(t.isRunningAsyncAction=!1,t.updatePendingState(!1,o))},i=>{t.asyncActionCount--,t.asyncActionCount===0&&(t.isRunningAsyncAction=!1,t.updatePendingState(!1,o)),console.error("Uncaught error in transition:",i)})):a&&t.updatePendingState(!0,o)}};return t},Rt,({startTransition:t,isPending:n})=>[n,t])}function Kn(e,t){let[n,o]=Ft(t!==void 0?t:e);return It(()=>{Re(()=>{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){On();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 Ut=Ko;function jo(e){let{root:t}=e;for(;(e=e.parent)&&!(e.nodeInstance instanceof F&&(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&&_(n)&&n.type!==ue&&(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 Ot(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,T=a===D;xn(e);let{nodeInstance:u}=e,m=!1;u||(u=T?new s(i):Pt(s),e.nodeInstance=u,m=!0);let N=u[d],E=zo(e);if(e.context=E,T){let h=u,C=N,{committedValues:k,memoizedValues:P}=C;m&&(k.state=h.state);let{props:W,state:he}=k;P&&c&&c.transitionId===P.transitionId&&({props:W,state:he}=P,f=!0),h.props=W,h.state=he;let{shouldComponentUpdate:Jt}=h,H=he,lt=fe(e);lt.length&&(H=Go(he,lt));let en=!m&&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=!Ut(H,he)||!Ut(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&&m&&Me.sub(h),h.context=Io}h.state=H,h.props=i,lt.forEach(({callback:ve})=>{if(ve){let{updateSource:ut}=o;Se(()=>{b(ut,()=>ve(H))})}}),c&&(C.memoizedValues={state:H,props:i,transitionId:c.transitionId})}if(l){At(e),N.renderCount+=1;let h=r&&!s.getDerivedStateFromError;try{h?N.nodes=null:u.__render(i)}catch(C){let k=jo(e);if(typeof C.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(C,P);let W=zn(P);$n(W)}else if(k&&!k.childFiberError){let P=$o(e);console.error(C);let W=`The above error occurred in the <${Et(t.type)}> component:
3
- ${P.componentStack}`;console.error(W),k.childFiberError={error:C,errorInfo:P},$n(k)}else throw C;return}finally{At(null);let C=u[d];if(T&&p){let{committedValues:k}=C;Object.assign(u,k)}}}if(f||l){let{child:h}=e,{nodes:C}=N;!h||h.node!==C?(ne(C,n,h,e,e),R(e,x)):f||te(e)}else te(e)}function Gn(e){let{node:t,alternate:n}=e,o=n&&n.node;t!==o&&R(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:T,hasExpressionSibling:u}=c,m=s[f];if(p)c.tagAttrs||(c.tagAttrs=$(m.attributes)),r.push({isAttribute:!0,tagAttrs:c.tagAttrs,domNode:m,attrIndex:l}),Ye(m);else{m=m||t;let N=T!==-1,E,h=m.childNodes[T+1];N&&Vo(h)&&Ce(h),N?u?E=En(m,T):E=m.childNodes[T]:E=null,r.push({isNode:!0,parentNode:m,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={},T;for(;i&&l===i.domNode;)ge(t[s],(u,m)=>{let N=i,E=Be(u);!Wo(N.tagAttrs,E,N.attrIndex)&&!an[u]?f[u]=m:u==="ref"&&(T=m)}),i=e[++s];s--,i=e[s],p=Xo(f,T)}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),R(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&&me(()=>{r.handler.call(this,s)})},r.patched)}function Qn(e,t,n,o){t=t||{},ge(e,(r,s)=>{let a=t[r];s!==a&&o(r,s,a)}),ge(t,(r,s)=>{e[r]===void 0&&s!==void 0&&o(r,n,s)})}function Qo(e,t,n,o,r,s){if(t==="children")return;if(mn(t)){let i=t.substr(-7)==="Capture"&&t.substr(-14,7)==="Pointer",c=Tn(t,i);c=Vn(c,e);let p=qn(e,t,n);o&&!n?e.removeEventListener(c,p,i):!o&&n&&e.addEventListener(c,p,i)}else if(t==="style"){let{style:i}=e;Qn(n||{},o,"",(c,p)=>{c[0]==="-"?i.setProperty(c,p):i[c]=typeof p=="number"&&un.test(c)===!1?p+"px":p})}else if(t==="dangerouslySetInnerHTML"){let i=o&&o.__html,c=n&&n.__html;c!==i&&(e.innerHTML=c==null?"":c)}else if(t in e&&!r){let i=wt(e);i?Xn(i,e,t,n):e[t]=n==null?"":n}else{t=Be(t);let i=t.replace(/^xlink:?/,""),c=n==null||n===!1;t!==i?(i=i.toLowerCase(),c?e.removeAttributeNS(ft,i):e.setAttributeNS(ft,i,n)):c?e.removeAttribute(t):e.setAttribute(t,n)}}function Lt(e,t,n,o,r){Qn(t,n,null,(s,a,i)=>{Qo(e,s,a,i,o,r)}),Wn(e)}function st(e){function t(n){return e(pe(n,!1),n.ref)}return t.__isForwardRef=!0,t.$$typeof=rn,t}function Zn(){return{current:null}}function be(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=le(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=le(r,l),T=p[0];T&&T.previousSibling!==l&&T!==f&&Ke(r,f,p),eo(n,T)}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=le(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:T}=c,{props:u,state:m}=f;u?w(n,"componentDidUpdate",[u,m,T]):w(n,"componentDidMount"),r&&(w(n,"componentDidCatch",[r.error,r.errorInfo]),e.childFiberError=null),i&&be(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,isReactCompat:s}=e,{props:a,ref:i}=n,c=o&&o.node.props;Lt(t,a,c,r,s),i&&be(i,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&&_(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,T=i[r],u=c>s,m=f||T>s;if(f&&a.push(i),u&&(l&&l.parent!==i&&(l.parent=i),p&&_(p)&&(i.nodeInstance[d].fiber=i)),l&&m)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=Nn(p,e);){let l=St(p.node,c);i.set(l,p),c++}e.child=null,t.forEach((l,f)=>{let T=St(l,f),u=i.get(T);u&&i.delete(T);let m=o;o=ne(l,{parentNode:r,previousSibling:s,a:void 0,firstDOMNode:a,isArrayNode:!0,nodeIndex:f,parentArrayPart:n.isArrayNode?n:null},u,m,e),o.sibling=null,u&&u.part.nodeIndex!==f&&(R(o,mt),f!==0&&R(m,mt))}),i.forEach(l=>{oe(l)}),R(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&&Ce(c);return}let{ref:i}=n;if(i&&be(i,null),!!r)if(s){let{domNodes:c}=r;t&&Ce(c)}else _(n)&&$e(r)&&(r.__unmount.forEach(c=>c()),r.__unmount.clear(),n.nodeType===D?w(r,"componentWillUnmount"):ot(e,!0))}function Te(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,Ie;if(typeof MessageChannel!="undefined"){Ie=[];let e=new MessageChannel;e.port1.onmessage=function(){Ie.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 Ie.push(e),jt.postMessage(null),()=>{let t=Ie.indexOf(e);t!==-1&&Ie.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===O?ir:ar,i=Kt(),c=Math.min(sr,ao+s),p=Math.floor(c/Yt)*Yt,l=()=>{let u=Kt(),m=lo(u,p),N=i+Math.min(ao,m);return u<N},T=s>a?co:l;n(T)});return}n(co)}function pr(e){let{node:t,nodeInstance:n}=e;return _(t)&&n?!!fe(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):_(t)?Ot(e):t.nodeType===z&&R(e,x),e.processedTime=j()}function ur(e){return e.updateType===S?!0:e.currentTransition?e.lastCompleteTime>=e.updateTime&&e.hasUncommittedEffect&&(Ne(e.currentTransition)||e.currentTransition.isRunningAsyncAction):!1}var dr={fn:e=>{let{updateType:t,current:n}=e,o=_e(t);Te(e);let r=ro(e);e[o]=e.lastCompleteTime=j(),t===y&&(e.current=e.wip,e.wip=n),b(U,()=>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=!Rn(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=_n(e,t,i,a)}else{at(e,t);return}if(n.callRenderCallbacks(),r){let f=e===t&&!n.retryFiber,T=r.transitionState!==ce,u=r.isRunningAsyncAction;f&&T&&!u&&(gn(r),r.tryCount=0),!n.hasUncommittedEffect&&(Ne(r)||u)&&kt(n)}ur(n)&&dr.fn(n),yt(n)&&b(g,()=>{n.updateSource=g,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=Nt(),i=xe();if(L(t,i),s===g&&!o.includes(a)&&(a===O?o.unshift(a):o.push(a)),r[s]){r[s]+=1;return}r[s]=1,Se(()=>{let c=r[s];r[s]=0;let p=s===g;if(!(p&&n.lastCompleteTime<n.updateTime))if(n.updateSource=s,p)ie(n);else{let l=n.updateType===S&&n.cancelSchedule;ct(s===U&&!l&&c===1?t:n.current)}})}var F=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}};F.prototype.isReactComponent=!0;var ae=class extends F{};ae.prototype.isPureReactComponent=!0;function I(e,t,n){if(!e||typeof e!="string"&&typeof e!="function"){let c="Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(e===null?"null":typeof e)+".";throw(typeof e=="undefined"||typeof e=="object"&&e!==null)&&(c+=`
1
+ var Oo=Object.defineProperty;var Uo=(e,t)=>{for(var n in t)Oo(e,n,{get:t[n],enumerable:!0})};var Jt={};Uo(Jt,{Children:()=>xo,Component:()=>F,Fragment:()=>Lr,PureComponent:()=>ae,StrictMode:()=>wr,Suspense:()=>De,SuspenseList:()=>W,cloneElement:()=>qt,createContext:()=>Rt,createElement:()=>mo,createPortal:()=>Co,createRef:()=>eo,createRoot:()=>Fo,forwardRef:()=>it,html:()=>go,isValidElement:()=>Ro,jsx:()=>Br,jsxDev:()=>Kr,jsxs:()=>Yr,lazy:()=>Eo,memo:()=>Qt,reacty:()=>Hr,render:()=>Xt,startTransition:()=>Re,unmountComponentAtNode:()=>So,unstable_batchedUpdates:()=>kr,unstable_deferredUpdates:()=>et,unstable_syncUpdates:()=>me,use:()=>bo,useCallback:()=>kn,useContext:()=>Yn,useDebugValue:()=>Bn,useDeferredValue:()=>jn,useEffect:()=>Dt,useLayoutEffect:()=>Pt,useMemo:()=>It,useReducer:()=>Ln,useRef:()=>wn,useState:()=>bt,useTransition:()=>Kn,watch:()=>lt});var we=Symbol.for("react.element"),sn=Symbol.for("react.forward_ref"),an="{{brahmos}}",cn={key:1,ref:1},pn={className:"class",htmlFor:"for",acceptCharset:"accept-charset",httpEquiv:"http-equiv",tabIndex:"tabindex"},ft={doubleclick:"dblclick"},ln=typeof Symbol!="undefined"?/fil|che|rad/i:/fil|che|ra/i,un=/^(?: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]/,dn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,mt="http://www.w3.org/1999/xlink",fn=100,d="__brahmosData",Le="__brahmosLastArrayDom",ke="__rootFiber",A="sync",y="deferred",Ee="js",U="immediate_action",C="transition",He=0,Tt=1,x=2,mn="initial",X="start",ce="suspended",ye="resolved",ht="completed",K="timedOut";function Tn(e){return e[0]==="o"&&e[1]==="n"}function Be(e){let t=un.test(e)?e.replace(/[A-Z0-9]/,"-$&").toLowerCase():e;return pn[e]||t}function Et(e){return e.nodeName.toLowerCase()}function hn(e,t){return t&&(e=e.replace(/Capture$/,"")),e.replace("on","").toLowerCase()}function q(e){return e==null}var vo=0;function j(){return vo++}function En(){return Date.now()}function Ye(e){e.__brahmosData={events:{}}}function pe(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 ge(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 Ke(e,t){for(let n in e)t(n,e[n])}function Ce(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 Mo(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 je(e,t,n){let o=Mo(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 L(e,t,n){if(e[t])return e[t].apply(e,n)}function yn(e,t){let n=t===0?e.firstChild:e.childNodes[t],o=document.createTextNode("");return e.insertBefore(o,n),o}var $e=Promise.resolve();function Se(e){return $e.then(e)}function Ae(){return j()+"-"+Math.random()*1e6}function gn(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 ze(e){return e[d].mounted}function yt(e){return e.displayName||e.name}function ue({children:e}){return e}var Ge={transitionId:"",tryCount:0,transitionState:K},v={transitionId:Ae(),tryCount:0,transitionState:K};function wo(e){let{transitionState:t}=e;return t===X||t===ye||t===K}function Ne(e){let{transitionState:t}=e;return t===ht||t===K}function Cn(e){let{transitionState:t}=e;t!==K&&t!==ce&&(e.isPending&&!e.isRunningAsyncAction?(e.clearTimeout(),e.updatePendingState(!1,C)):e.transitionState=ht)}function Q(e,t){return t=t||Ge,e.root.currentTransition||t}function gt(e){let{pendingTransitions:t}=e;return t.find(wo)}var Ct=Symbol.for("tag"),Z=Symbol.for("tag-element"),D=Symbol.for("class-component"),St=Symbol.for("functional-component"),z=Symbol.for("attribute");function G({nodeType:e}){return e===Z}function J({nodeType:e}){return e===Ct}function B(e){return G(e)||J(e)}function _({nodeType:e}){return e===D||e===St}function Y(e){return typeof e=="string"||typeof e=="number"}function We(e){return!(q(e)||typeof e=="boolean")}function At(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 An;function Nt(e){An=e}function N(){return An}function _e(e){return e===y?"lastDeferredCompleteTime":"lastCompleteTime"}function ee(e){return e===y?"deferredUpdateTime":"updateTime"}function k(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 R(e,t){e.hasUncommittedEffect=t,e.root.hasUncommittedEffect=!0}function Xe(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=de(r,s,a),Lo(e,t)),e.shouldTearDown=!1,t.nodeInstance=i,t.child=c,t[p]=o[p],t.isReactCompat=e.isReactCompat,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===A)return;let o;for(;t;){let{alternate:r}=t;o=Xe(t,r,o||e,e),t=t.sibling}}function qe(e){let t=[];return{updateType:y,updateSource:Ee,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 de(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,isReactCompat:!1,deferredUpdateTime:0,updateTime:0,processedTime:0,createdAt:j(),shouldTearDown:!1,hasUncommittedEffect:He}}function Lo(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;n&&!q(n.node)&&!q(e)&&ko(e,n.node)?(i=Xe(n,n.alternate,o,r),i.node=e,i.part=t):(i=de(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;let c=e&&e.type&&e.type.__isReactCompat;return i.isReactCompat=c||r.isReactCompat||!1,i}function ko(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 Ho(e,t,n){return e&&e[n]>=t}function Sn(e,t,n){if(e){for(;e&&!Ho(e,t,n);)e=e.sibling;return e}}function xn(e,t,n,o){let r=Sn(e.child,n,o);if(r)return r;let s;for(;!(s=Sn(e.sibling,n,o));)if(e=e.parent,e===t)return e;return s}function M(e){return e[d].fiber}function Rn(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 Ze=Ee,Qe=Ge;function re(){return Ze}function _t(){return Qe}function b(e,t){Ze=e,t(),Ze=Ee}function se(e,t){let n=Qe;Qe=e,b(C,t),Qe=n}function Fn(e){let t=e.currentTransition&&e.currentTransition.isRunningAsyncAction;return e.updateSource===U||!!t}function Bo(){return Ze===C}function xe(){return Bo()?y:A}function Je(e){return e===y?"pendingDeferredUpdates":"pendingSyncUpdates"}function fe(e){let{root:{updateType:t},nodeInstance:n}=e,o=n[d],r=Je(t);if(t===A)return o[r];let s=Q(e,null).transitionId;return o[r].filter(a=>a.transitionId===s)}function et(e){se(v,e)}function me(e){b(U,e)}function Yo(e,t){let{root:n}=e;for(;e.nodeInstance!==t;)if(e=e.parent,e===n)return null;return e}function tt(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=Yo(a,e),n=l.updateType,o=l.currentTransition||Ge,r=!1}else s.renderCount=0,n=xe(),o=_t();let i=Je(n),c=t(o.transitionId);return s[i].push(c),r}var Ko=1;function xt(e){return function(t){let n=M(e),{updateType:o}=n.root;e.context!==t&&(e[d].isDirty=!0,k(n,o))}}function Rt(e){let t=`cC${Ko++}`;class n extends F{constructor(s){super(s),this.subs=[]}shouldComponentUpdate(s){let{value:a}=this.props;return a!==s.value&&this.subs.forEach(i=>i(s.value)),!0}sub(s){let{subs:a}=this,i=xt(s);a.push(i);let{componentWillUnmount:c}=s;s.componentWillUnmount=()=>{a.splice(a.indexOf(i),1),c&&c()}}render(){return this.props.children}}n.__ccId=t;class o extends F{render(){return this.props.children(this.context)}}return n.id=t,n.defaultValue=e,n.Provider=n,n.Consumer=o,o.contextType=n,n}function In(){return N().nodeInstance}function Dn(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 Pn(e,t){let{syncHooks:n,deferredHooks:o}=t;return e===A?n:o}function nt(e){let{nodeInstance:t,root:{updateType:n}}=e;return Pn(n,t)}function bn(e,t,n){return e===y&&!n.deferredHooks.length&&Dn(n),Pn(e,n)[t]}function On(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 jo(e,t,n){let o=typeof t=="function";(re()===U||o||!Object.is(t,n))&&w(e)}function Ft(e){return!1}function Un(e){return e}function ot(e,t,n){let o=N(),{nodeInstance:r}=o,{pointer:s}=r,a=nt(o),i=a[s];return(!i||t(i))&&(i=e(),a[s]=i),r.pointer+=1,n(i)}function vn(){let e=N(),{nodeInstance:t,root:{updateType:n}}=e;t.pointer=0,n===y&&Dn(t),fe(e).forEach(r=>r.updater())}function Mn(e,t){let n=In(),{pointer:o}=n;return ot(()=>(typeof e=="function"&&(e=e()),[e,s=>{let a=xe(),c=bn(A,o,n)[0];tt(n,l=>({transitionId:l,updater(){let f=bn(a,o,n);f[0]=t(s,f[0])}}))&&jo(n,s,c)}]),Ft,Un)}function bt(e){return Mn(e,(t,n)=>(typeof t=="function"&&(t=t(n)),t))}function wn(e){return ot(()=>({current:e}),Ft,Un)}function Ln(e,t,n){return Mn(n?()=>n(t):t,(r,s)=>e(s,r))}function It(e,t){return ot(()=>({value:e(),dependencies:t}),s=>On(t,s.dependencies),s=>s.value)}function kn(e,t){return It(()=>e,t)}function Hn(e,t){let n=N(),{nodeInstance:o}=n,{pointer:r}=o,s=nt(n),a=s[r]||{animationFrame:null,cleanEffect:null},i={...a,isDependenciesChanged:On(t,a.dependencies),dependencies:t,effect(){i.isDependenciesChanged&&e(i)}};s[r]=i,o.pointer+=1}function Dt(e,t){Hn(n=>{cancelAnimationFrame(n.animationFrame),n.animationFrame=requestAnimationFrame(()=>{setTimeout(()=>{n.cleanEffect=e()})})},t)}function Pt(e,t){Hn(n=>{n.cleanEffect=e()},t)}function Bn(){}function Yn(e){let{nodeInstance:t,context:n}=N(),{id:o,defaultValue:r}=e,s=n[o],a=s?s.props.value:r;return Pt(()=>{if(s){let{subs:i}=s,c=xt(t);return i.push(c),()=>{i.splice(i.indexOf(c),1)}}},[]),t.context=a,a}function Re(e){let t={transitionId:Ae(),transitionState:X,pendingSuspense:[],tryCount:0},n;se(t,()=>{n=e()}),n&&typeof n.then=="function"&&n.then(null,o=>{console.error("Uncaught error in transition:",o)})}function Kn(){let e=In();return ot(()=>{let t={transitionId:Ae(),tryCount:0,isPending:!1,transitionTimeout:null,isRunningAsyncAction:!1,asyncActionCount:0,pendingSuspense:[],transitionState:mn,clearTimeout(){clearTimeout(t.transitionTimeout)},updatePendingState(n,o){t.isPending=n,e[d].isDirty=!0;let r=()=>{w(e)};o===C?se(t,r):b(o,r)},startTransition(n){let o=re(),{root:r}=M(e);t.transitionState=X,t.pendingSuspense=[],t.isRunningAsyncAction=!1,t.clearTimeout();let s;se(t,()=>{s=n()});let a=r.lastDeferredCompleteTime<r.deferredUpdateTime;s&&typeof s.then=="function"?(t.asyncActionCount=(t.asyncActionCount||0)+1,t.isRunningAsyncAction=!0,t.updatePendingState(!0,C),ie(r),s.then(()=>{t.asyncActionCount--,t.asyncActionCount===0&&(t.isRunningAsyncAction=!1,t.updatePendingState(!1,o))},i=>{t.asyncActionCount--,t.asyncActionCount===0&&(t.isRunningAsyncAction=!1,t.updatePendingState(!1,o)),console.error("Uncaught error in transition:",i)})):a&&t.updatePendingState(!0,o)}};return t},Ft,({startTransition:t,isPending:n})=>[n,t])}function jn(e,t){let[n,o]=bt(t!==void 0?t:e);return Dt(()=>{Re(()=>{o(e)})},[e]),n}function $n(e){let t=nt(e);for(let n=0,o=t.length;n<o;n++){let r=t[n];r.effect&&r.effect()}}function rt(e,t){let n=nt(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 Ot(e){return{syncHooks:[],deferredHooks:[],context:void 0,pointer:0,__render(t){vn();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}}}var $o=Object.prototype.hasOwnProperty;function zo(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(!$o.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}var Ut=zo;function Go(e){let{root:t}=e;for(;(e=e.parent)&&!(e.nodeInstance instanceof F&&(e.nodeInstance.componentDidCatch||e.node.type.getDerivedStateFromError));)if(e===t)return null;return e}function Wo(e){let t="";for(;e;){let{node:n}=e;n&&_(n)&&n.type!==ue&&(t+=` at ${yt(n.type)}
2
+ `),e=e.parent}return{componentStack:t}}function Vo(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 Xo(e,t){return t.reduce((n,{state:o})=>(typeof o=="function"&&(o=o(n)),{...n,...o}),e)}function zn(e){let{root:t,nodeInstance:n}=e;n[d].isDirty=!0,t.retryFiber=e}function vt(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,T=a===D;Rn(e);let{nodeInstance:u}=e,h=!1;u||(u=T?new s(i):Ot(s),e.nodeInstance=u,h=!0);let S=u[d],E=Vo(e);if(e.context=E,T){let m=u,g=S,{committedValues:P,memoizedValues:O}=g;h&&(P.state=m.state);let{props:V,state:he}=P;O&&c&&c.transitionId===O.transitionId&&({props:V,state:he}=O,f=!0),m.props=V,m.state=he;let{shouldComponentUpdate:en}=m,H=he,ut=fe(e);ut.length&&(H=Xo(he,ut));let tn=!h&&o.forcedUpdateWith!==u,nn=L(s,"getDerivedStateFromProps",[i,H]),on=r?L(s,"getDerivedStateFromError",[r.error]):void 0;(nn||on)&&(H={...H,...nn,...on}),e.isReactCompat&&m.isPureReactComponent&&tn&&(l=!Ut(H,he)||!Ut(i,V)),e.isReactCompat&&en&&l&&tn&&(l=en.call(m,i,H));let{contextType:rn}=s;if(rn){let{id:ve,defaultValue:dt}=rn,Me=E[ve],Po=Me?Me.props.value:dt;Me&&h&&Me.sub(m),m.context=Po}m.state=H,m.props=i,ut.forEach(({callback:ve})=>{if(ve){let{updateSource:dt}=o;Se(()=>{b(dt,()=>ve(H))})}}),c&&(g.memoizedValues={state:H,props:i,transitionId:c.transitionId})}if(l){Nt(e),S.renderCount+=1;let m=r&&!s.getDerivedStateFromError;try{m?S.nodes=null:u.__render(i)}catch(g){let P=Go(e);if(typeof g.then=="function"){let O=st(e);if(!O)throw new Error("Rendering which got suspended can't be used outside of suspense.");O.nodeInstance.handleSuspender(g,O);let V=Gn(O);zn(V)}else if(P&&!P.childFiberError){let O=Wo(e);console.error(g);let V=`The above error occurred in the <${yt(t.type)}> component:
3
+ ${O.componentStack}`;console.error(V),P.childFiberError={error:g,errorInfo:O},zn(P)}else throw g;return}finally{Nt(null);let g=u[d];if(T&&p){let{committedValues:P}=g;Object.assign(u,P)}}}if(f||l){let{child:m}=e,{nodes:g}=S;!m||m.node!==g?(ne(g,n,m,e,e),R(e,x)):f||te(e)}else te(e)}function Wn(e){let{node:t,alternate:n,isReactCompat:o}=e,r=n&&n.node;(!o||t!==r)&&R(e,x)}function Mt(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 qo(e){return!!e&&e.nodeType===8&&e.textContent===an}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:T,hasExpressionSibling:u}=c,h=s[f];if(p)c.tagAttrs||(c.tagAttrs=$(h.attributes)),r.push({isAttribute:!0,tagAttrs:c.tagAttrs,domNode:h,attrIndex:l}),Ye(h);else{h=h||t;let S=T!==-1,E,m=h.childNodes[T+1];S&&qo(m)&&Ce(m),S?u?E=yn(h,T):E=h.childNodes[T]:E=null,r.push({isNode:!0,parentNode:h,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 Qo(e,t,n){let o=e.lastIndexOf(t);return n<=o}function Zo(e,t){return{nodeType:z,props:e,ref:t}}function Jo(e,t,n){let o=n,{isReactCompat:r}=n,s=n.child;for(let a=0,i=e.length;a<i;a++){let c=e[a],p=t[a],l;if(c.isAttribute){let{domNode:f}=c,T={},u;for(;c&&f===c.domNode;)(r?ge:Ke)(t[a],(S,E)=>{let m=c,g=!1;if(r){let P=Be(S);g=Qo(m.tagAttrs,P,m.attrIndex)}!g&&!cn[S]?T[S]=E:S==="ref"&&(u=E)}),c=e[++a];a--,c=e[a],l=Zo(T,u)}else c.isNode&&(l=p);o=ne(l,c,s,o,n),s=s&&s.sibling}}function wt(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?Mt(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):Jo(l.parts,a,e):te(e),R(e,x),e.context=r}function Vn(e,t){let{type:n}=t,o=Et(t);return ft[e]?ft[e]:/^change(textarea|input)/i.test(e+o)&&!ln.test(n)?"input":e}function Lt(e){let{type:t}=e,n=Et(e);if(n==="input"&&(t==="radio"||t==="checkbox"))return"checked";if(n==="input"||n==="select"||n==="textarea")return"value"}function Xn(e){let t=Lt(e);if(!t)return;let n=e[`${t}Prop`],o=e[t];n!==void 0&&n!==o&&(e[t]=n)}function qn(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&&me(()=>{r.handler.call(this,s)})},r.patched)}function Jn(e,t,n,o){t=t||{},ge(e,(r,s)=>{let a=t[r];s!==a&&o(r,s,a)}),ge(t,(r,s)=>{e[r]===void 0&&s!==void 0&&o(r,n,s)})}function Zn(e,t,n,o,r,s){if(t==="children"||t==="key"||t==="ref")return;if(Tn(t)){let i=!1;s&&(i=t.substr(-7)==="Capture"&&t.substr(-14,7)==="Pointer");let c=hn(t,i);s&&(c=Vn(c,e));let p=Qn(e,t,n);!s&&o===void 0?n?e.addEventListener(c,p,i):e.removeEventListener(c,p,i):o&&!n?e.removeEventListener(c,p,i):!o&&n&&e.addEventListener(c,p,i)}else if(t==="style")if(s){let{style:i}=e;Jn(n||{},o,"",(c,p)=>{c[0]==="-"?i.setProperty(c,p):i[c]=typeof p=="number"&&dn.test(c)===!1?p+"px":p})}else e.style.cssText=n||"";else if(t==="dangerouslySetInnerHTML"){if(s){let i=o&&o.__html,c=n&&n.__html;c!==i&&(e.innerHTML=c==null?"":c)}}else if(t in e&&!r){let i=s?Lt(e):null;i?qn(i,e,t,n):e[t]=n==null?"":n}else{s&&(t=Be(t));let i=t;r&&t.startsWith("xlink")&&(i=t.replace(/^xlink:?/,""));let c=n==null||n===!1;t!==i?(i=i.toLowerCase(),c?e.removeAttributeNS(mt,i):e.setAttributeNS(mt,i,n)):c?e.removeAttribute(t):e.setAttribute(t,n)}}function kt(e,t,n,o,r){r?(Jn(t,n,null,(s,a,i)=>{Zn(e,s,a,i,o,r)}),Xn(e)):Ke(t,(s,a)=>{Zn(e,s,a,void 0,o,!1)})}function it(e){function t(n){return e(pe(n,!1),n.ref)}return t.__isForwardRef=!0,t.$$typeof=sn,t}function eo(){return{current:null}}function be(e,t){typeof e=="function"?e(t):typeof e=="object"&&(e.current=t)}function er(e){let{node:t,alternate:n}=e,o=e.part,{parentNode:r,previousSibling:s}=o,a=le(r,s);n&&a?a.nodeValue=t:je(r,a,t)}function tr(e){for(;e.child&&e.node&&!B(e.node);)e=e.child;return e}function to(e,t){let{domNodes:n}=t;e[Le]=n[n.length-1]}function no(e,t){if(e.isArrayNode&&e.nodeIndex===0)for(;e=e.parentArrayPart;)e.firstDOMNode=t}function oo(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 ro(e,t){let{part:n}=e;if(!n.isArrayNode)return;let{nodeIndex:o,parentNode:r}=n,s=t.part.nodeIndex,a=tr(e),{nodeInstance:i}=a,c=a!==e&&a.hasUncommittedEffect;if(!(!i||c)){if(o!==s){let{domNodes:p}=i,l=oo(n),f=le(r,l),T=p[0];T&&T.previousSibling!==l&&T!==f&&je(r,f,p),no(n,T)}to(r,i)}}function nr(e){let{nodeInstance:t,alternate:n,node:o}=e,r=e.part,{parentNode:s}=r,a=G(o);if(a&&so(e,t.domNodes[0]),n)ro(e,n);else{let i=oo(r),c=le(s,i),p=je(s,c,t.fragment);a||(t.domNodes=p),no(r,p[0]),to(s,t)}}function or(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=L(n,"getSnapshotBeforeUpdate",[l,f])}else rt(e,!1);let{transitionId:c}=Q(e,null),p=Je(r);a[p]=i?a[p].filter(l=>l.transitionId!==c):[],a.isDirty=!1,a.renderCount=0,o.postCommitEffects.push(e)}function rr(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:T}=c,{props:u,state:h}=f;u?L(n,"componentDidUpdate",[u,h,T]):L(n,"componentDidMount"),r&&(L(n,"componentDidCatch",[r.error,r.errorInfo]),e.childFiberError=null),i&&be(i,n),f.props=p,f.state=l,c.memoizedValues=null}else if($n(e),s===y){let{syncHooks:p,deferredHooks:l}=n;n.deferredHooks=p,n.syncHooks=l}c.mounted=!0,c.fiber=e}function so(e,t){let{node:n,alternate:o,isSvgPart:r,isReactCompat:s}=e,{props:a,ref:i}=n,c=o&&o.node.props;kt(t,a,c,r,s),i&&be(i,t)}function at(e){e.tearDownFibers=[],e.postCommitEffects=[],e.hasUncommittedEffect=!1,e.retryFiber=null,e.resetRenderCallbacks()}function sr(e){e.node=null,e.nodeInstance=null,e.child=null,e.sibling=null}function Ht(e){let{currentTransition:t,pendingTransitions:n}=e,o=n.indexOf(t);o!==-1&&n.splice(o,1)}function ir(e){let{node:t,alternate:n}=e,o=t&&_(t);o&&n&&ro(e,n),e.hasUncommittedEffect===x&&(Y(t)?er(e):B(t)?nr(e):o?or(e):t.nodeType===z&&so(e,e.part.domNode),e.hasUncommittedEffect=He),n&&sr(n)}function io(e){let{updateType:t,wip:n,current:o}=e,r=ee(t),s=e[_e(t)],a=[],i=t===A?o:n;for(;i;){let{createdAt:c,node:p,child:l,hasUncommittedEffect:f}=i,T=i[r],u=c>s,h=f||T>s;if(f&&a.push(i),u&&(l&&l.parent!==i&&(l.parent=i),p&&_(p)&&(i.nodeInstance[d].fiber=i)),l&&h)i=l;else{for(;i!==e&&!i.sibling;)i=i.parent;i=i.sibling}}return a}function Bt(e,t){for(let o=0,r=t.length;o<r;o++)ir(t[o]);let{postCommitEffects:n}=e;for(let o=n.length-1;o>=0;o--)rr(n[o]);Ht(e),at(e),e.forcedUpdateWith=null}function Yt(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=At(p.node,c);i.set(l,p),c++}e.child=null,t.forEach((l,f)=>{let T=At(l,f),u=i.get(T);u&&i.delete(T);let h=o;o=ne(l,{parentNode:r,previousSibling:s,a:void 0,firstDOMNode:a,isArrayNode:!0,nodeIndex:f,parentArrayPart:n.isArrayNode?n:null},u,h,e),o.sibling=null,u&&u.part.nodeIndex!==f&&(R(o,Tt),f!==0&&R(h,Tt))}),i.forEach(l=>{oe(l)}),R(e,x)}function ao(e,t,n,o){let r=e.part.parentNode!==t.parentNode&&n?!1:o,{node:s}=e;s&&s.portalContainer&&(r=!0),co(e,r)}function co(e,t){let{node:n,part:o,nodeInstance:r}=e;if(e.shouldTearDown=!1,!We(n))return;let s=B(n),{child:a}=e;if(a)for(ao(a,o,s,t);a.sibling;)a=a.sibling,ao(a,o,s,t);if(Y(n)&&t){let c=le(o.parentNode,o.previousSibling);c&&Ce(c);return}let{ref:i}=n;if(i&&be(i,null),!!r)if(s){let{domNodes:c}=r;t&&Ce(c)}else _(n)&&ze(r)&&(r.__unmount.forEach(c=>c()),r.__unmount.clear(),n.nodeType===D?L(r,"componentWillUnmount"):rt(e,!0))}function Te(e){let{tearDownFibers:t}=e;t.forEach(n=>{n.shouldTearDown&&co(n,!0)}),e.tearDownFibers=[]}var po=5,ar=30,Kt=16,cr=300,pr=600,uo;requestAnimationFrame(e=>{uo=e});var jt=()=>performance.now(),lo=()=>!0,fo=(e,t)=>(t=t||Kt,t-(e-uo)%t),$t,Ie;if(typeof MessageChannel!="undefined"){Ie=[];let e=new MessageChannel;e.port1.onmessage=function(){Ie.forEach(t=>t())},$t=e.port2}function lr(e){if(!$t||fo(jt())<1){let t=()=>{r(),e()},n=setTimeout(t,1),o=requestIdleCallback(t),r=()=>{clearTimeout(n),cancelIdleCallback(o)};return r}return Ie.push(e),$t.postMessage(null),()=>{let t=Ie.indexOf(e);t!==-1&&Ie.splice(t,1)}}function zt(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===v?cr:pr,i=jt(),c=Math.min(ar,po+s),p=Math.floor(c/Kt)*Kt,l=()=>{let u=jt(),h=fo(u,p),S=i+Math.min(po,h);return u<S},T=s>a?lo:l;n(T)});return}n(lo)}function ur(e){let{node:t,nodeInstance:n}=e;return _(t)&&n?!!fe(e).length||n[d].isDirty:!1}function dr(e){let{node:t,alternate:n}=e;if(!We(t)){n&&oe(n);return}let o=ur(e);if(e.processedTime&&!o){te(e);return}Y(t)?Wn(e):Array.isArray(t)?Yt(e):B(t)?wt(e):_(t)?vt(e):t.nodeType===z&&R(e,x),e.processedTime=j()}function fr(e){return e.updateType===A?!0:e.currentTransition?e.lastCompleteTime>=e.updateTime&&e.hasUncommittedEffect&&(Ne(e.currentTransition)||e.currentTransition.isRunningAsyncAction):!1}var mr={fn:e=>{let{updateType:t,current:n}=e,o=_e(t);Te(e);let r=io(e);e[o]=e.lastCompleteTime=j(),t===y&&(e.current=e.wip,e.wip=n),b(U,()=>Bt(e,r))}};function ct(e,t){let{root:n}=e,{updateType:o,currentTransition:r}=n,s=_e(o),a=ee(o),i=n[s],c=!Fn(n);zt(n,c,p=>{for(;e!==t;)if(p()){dr(e);let{retryFiber:f}=n;f?(e=f,t=n,n.retryFiber=null):e=xn(e,t,i,a)}else{ct(e,t);return}if(n.callRenderCallbacks(),r){let f=e===t&&!n.retryFiber,T=r.transitionState!==ce,u=r.isRunningAsyncAction;f&&T&&!u&&(Cn(r),r.tryCount=0),!n.hasUncommittedEffect&&(Ne(r)||u)&&Ht(n)}fr(n)&&mr.fn(n),gt(n)&&b(C,()=>{n.updateSource=C,ie(n)})})}function ie(e){let t=gt(e);t&&(e.updateType=y,at(e),e.currentTransition=t,t.tryCount+=1,e.wip=Xe(e.current,e.wip,e,e),ct(e.wip,e))}function pt(e){let{root:t,parent:n}=e;t.updateType=A,t.currentTransition=null,at(t),ct(e,n)}function w(e){let t=M(e),{root:n}=t,{pendingTransitions:o,batchUpdates:r}=n,s=re(),a=_t(),i=xe();if(k(t,i),s===C&&!o.includes(a)&&(a===v?o.unshift(a):o.push(a)),r[s]){r[s]+=1;return}r[s]=1,Se(()=>{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===A&&n.cancelSchedule;pt(s===U&&!l&&c===1?t:n.current)}})}var F=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){tt(this,r=>({state:t,transitionId:r,callback:n}))&&w(this)}forceUpdate(t){let n=this[d],{fiber:o}=n;o&&(o.root.forcedUpdateWith=this,this[d].isDirty=!0,w(this),t&&t(this.state))}render(){}__render(){let t=this.render();return this[d].nodes=t,t}};F.prototype.isReactComponent=!0;var ae=class extends F{};ae.prototype.isPureReactComponent=!0;function I(e,t,n){if(!e||typeof e!="string"&&typeof e!="function"){let c="Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(e===null?"null":typeof e)+".";throw(typeof e=="undefined"||typeof e=="object"&&e!==null)&&(c+=`
4
4
 
5
- You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),new Error(c)}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=pe(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}=A();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=ye);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=A(),n=Q(t,O);return n.transitionState===ye&&!n.pendingSuspense.includes(e)&&(n=O),n}var V=class extends F{constructor(t){super(t),this.suspenseManagers={}}render(){return this.props.children}},De=class extends F{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=ce),r.suspend(t)}render(){let{fallback:t,children:n}=this.props,o=fo(this),r=A(),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(ue,{children:e}),s={parentNode:t,previousSibling:null,isNode:!0};n=Xe(t),o=de(n,r,s),o.parent=n,n.current=o,t.__rootFiber=n}return me(()=>{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),Te(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,Ar=/[^<]*/g,Nr=/<!--.*?-->/g,_r=["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),_r.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,T,u=0,m=E=>{E.lastIndex=u;let h=E.exec(p);return h&&(u=E.lastIndex),h},N=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(),m(Sr);continue}else if(p[u]==="<"&&p[u+1]==="!"){m(Nr);continue}else if(p[u]==="<"){T=m(yr)[1],o={$$typeof:we,type:T,nodeType:Z,props:{}},n=!0;continue}else if(p[u]===" "&&n){Co.lastIndex=u;let E=m(Co),h,C;if(E){h=E[1],p[u]!=="="?C=!0:p[u+1]==='"'?C=N(gr):p[u+1]==="'"&&(C=N(Cr)),h&&(o.props[h]=C);continue}}else if(p[u]===">"&&n)i();else if(!n){let E=m(Ar);a(E[0]);continue}u++}c(l)}),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 Ue(e){let{values:t,template:n}=e,{strings:o}=n;return n.staticTree||(n.staticTree=xr(o)),So(n.staticTree,t)}function Fr(e){return B(e)&&!e.template.strings.some(Boolean)}function Ao(e){let t=[];return e.forEach(n=>{Array.isArray(n)?t=t.concat(Ao(n)):n&&J(n)?t.push(Ue(n)):t.push(n)}),t}function Oe(e){if(q(e))return;if(typeof e=="boolean")return[];if(e[d])return e[d];let t=e;return Fr(t)&&(t=t.values),J(t)&&(t=Ue(t)),Array.isArray(t)||(t=[t]),t=Ao(t),e[d]=t,t}function br(e,t){let n=Oe(e);return n?n.map(t):e}function Ir(e){return(Oe(e)||[]).map((n,o)=>(n&&n.key===void 0&&(n.key=o),n))}function Dr(e,t){(Oe(e)||[]).forEach(t)}function Pr(e){return Oe(e)&&e.length===1}function Ur(e){let t=Oe(e);return t?t.length:0}var No={map:br,toArray:Ir,forEach:Dr,only:Pr,count:Ur};function _o(e){return e&&(_(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=Ue(e);return Xt(o,t)}else if(_(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,...pe(t,s)},ref:s?null:t.ref}}}return e}function qt(e,t){class n extends ae{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(ue,{children:n});o=de(t,s,{parentNode:e,previousSibling:null,isNode:!0}),o.parent=t,t.current=o}let r=O;t.pendingTransitions.includes(r)||t.pendingTransitions.push(r),b(g,()=>{t.updateSource=g,ie(t)})},unmount(){t.cancelSchedule&&(t.cancelSchedule(),t.cancelSchedule=null);let n=t.current;n&&(n.shouldTearDown=!0,t.tearDownFibers.push(n),Te(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 Ro(e){if(!A())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 Or(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){Fo(e)}pt.create=Or;pt.sync=e=>{Fo(e,{sync:!0})};function Fo(e,t={}){Re(()=>{var r;let n=A(),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?U:g;b(i,()=>{o[d].isDirty=!0,R(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){return e.__isReactCompat=!0,e}function Lr(e){e()}var kr=I,Hr=I,Br=I;var gc=Zt;export{No as Children,F as Component,Mr as Fragment,ae 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,gc as default,st as forwardRef,Eo as html,_o as isValidElement,kr as jsx,Br as jsxDev,Hr as jsxs,To as lazy,qt as memo,wr as reacty,Wt as render,Re as startTransition,go as unmountComponentAtNode,Lr as unstable_batchedUpdates,Je as unstable_deferredUpdates,me as unstable_syncUpdates,Ro 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,Ft as useState,Yn as useTransition,pt as watch};
5
+ You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),new Error(c)}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=pe(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:St,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 mo(e,t,n){t=t||{};let r=arguments.length>3?$(arguments,2):n;return r&&(t.children=r),I(e,t,t.key)}function st(e,t){let{root:n}=e,{nodeInstance:o}=e;for(;!(o instanceof De||t&&o instanceof W);){if(e=e.parent,e===n)return null;o=e.nodeInstance}return e}function Gn(e){let t=st(e.parent,!0);if(!(t&&t.nodeInstance instanceof W))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 Gt(e){let{parentSuspenseManager:t}=e;return t&&t.isSuspenseList?t:null}function Wt(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 ho(e){e[d].isDirty=!0}function Tr(e){let t=M(e.component);e.isUnresolved()&&t&&(ho(e.component),k(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 W;let r=st(t.parent,!0);this.parentSuspenseManager=r&&Wt(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 W?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=Gt(this);if(!t)return!0;let{component:n,childManagers:o}=t,{tail:r}=n.props;if(Gt(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=Gt(this),{suspender:n}=this;if(!t)return!n;if(ze(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,ho(this.component);let i=o.transitionState===K,c=a.filter(l=>l.suspenseManagers[o.transitionId].suspender).length;!i&&!c&&(o.transitionState=ye);let p=()=>{let l=n;M(n)||(l=this.fiber.root.wip.nodeInstance),w(l)};setTimeout(()=>{i||!a.includes(n)?et(p):se(o,p)},En()%fn)}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"&&Tr(c),c.handleSuspense())),a=Promise.all(this.getChildrenSuspenders());if(o==="together")a.then(()=>{n.forEach(i=>i.handleSuspense())});else if(o==="forwards"){let i=$e;for(let c=0,p=n.length;c<p;c++)i=s(i,n[c])}else if(o==="backwards"){let i=$e;for(let c=n.length-1;c>=0;c--)i=s(i,n[c])}return a}};function To(e){let t=N(),n=Q(t,v);return n.transitionState===ye&&!n.pendingSuspense.includes(e)&&(n=v),n}var W=class extends F{constructor(t){super(t),this.suspenseManagers={}}render(){return this.props.children}},De=class extends F{constructor(t){super(t),this.suspenseManagers={}}handleSuspender(t,n){let o=To(this),r=Wt(n,o);Ne(o)||(o.pendingSuspense.includes(this)||o.pendingSuspense.push(this),o.transitionState=ce),r.suspend(t)}render(){let{fallback:t,children:n}=this.props,o=To(this),r=N(),s=Wt(r,o);return s.shouldRenderChildren()?n:s.shouldShowFallback()?t:null}},Eo=e=>{let t,n=it((o,r)=>{let s=t.read();return I(s.default,{...o,ref:r})});return n.__loadLazyComponent=()=>{t||(t=gn(e()))},n};function hr(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=hr(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 yo=new WeakMap;function Er(e,t){let n=Ve(null,t,void 0);return n.nodeType=Ct,n.template=e,n}function go(e,...t){return n=>{let o=yo.get(e);return o||(o=new Pe(e,n),yo.set(e,o)),Er(o,t)}}function Xt(e,t){let{__rootFiber:n}=t,o;if(n)o=n.current,o.node.props.children=e,o.processedTime=0,k(o,A);else{let r=I(ue,{children:e}),s={parentNode:t,previousSibling:null,isNode:!0};n=qe(t),o=de(n,r,s),o.parent=n,n.current=o,t.__rootFiber=n}return me(()=>{n.updateSource=re(),pt(o)}),e&&e.nodeType===D?o.child.nodeInstance:null}function yr(e,t){return e&&(e.portalContainer=t),e}var Co=yr;function gr(e){let{__rootFiber:t}=e;return t?(oe(t.current),Te(t),e.__rootFiber=void 0,!0):!1}var So=gr;var Cr=/<([^\s"'=<>/]+)/g,Ao=/\s*([^\s"'=<>/]*)/g,Sr=/[^"]*/g,Ar=/[^"]*/g,Nr=/<\/([^\s"'=<>]+)>/g,_r=/[^<]*/g,xr=/<!--.*?-->/g,Rr=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Fr(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),Rr.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,T,u=0,h=E=>{E.lastIndex=u;let m=E.exec(p);return m&&(u=E.lastIndex),m},S=E=>{E.lastIndex=u+2;let m=E.exec(p);return u=E.lastIndex+1,m[0]};for(;u<f;){if(p[u]==="<"&&p[u+1]==="/"){t.pop(),h(Nr);continue}else if(p[u]==="<"&&p[u+1]==="!"){h(xr);continue}else if(p[u]==="<"){T=h(Cr)[1],o={$$typeof:we,type:T,nodeType:Z,props:{}},n=!0;continue}else if(p[u]===" "&&n){Ao.lastIndex=u;let E=h(Ao),m,g;if(E){m=E[1],p[u]!=="="?g=!0:p[u+1]==='"'?g=S(Sr):p[u+1]==="'"&&(g=S(Ar)),m&&(o.props[m]=g);continue}}else if(p[u]===">"&&n)i();else if(!n){let E=h(_r);a(E[0]);continue}u++}c(l)}),r.children}var{hasOwnProperty:br}=Object.prototype;function No(e,t){if(e==null||typeof e!="object")return e;let n=new e.constructor;for(var o in e)if(br.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]=No(e[o],t)}return n}function Oe(e){let{values:t,template:n}=e,{strings:o}=n;return n.staticTree||(n.staticTree=Fr(o)),No(n.staticTree,t)}function Ir(e){return B(e)&&!e.template.strings.some(Boolean)}function _o(e){let t=[];return e.forEach(n=>{Array.isArray(n)?t=t.concat(_o(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 Ir(t)&&(t=t.values),J(t)&&(t=Oe(t)),Array.isArray(t)||(t=[t]),t=_o(t),e[d]=t,t}function Dr(e,t){let n=Ue(e);return n?n.map(t):e}function Pr(e){return(Ue(e)||[]).map((n,o)=>(n&&n.key===void 0&&(n.key=o),n))}function Or(e,t){(Ue(e)||[]).forEach(t)}function Ur(e){return Ue(e)&&e.length===1}function vr(e){let t=Ue(e);return t?t.length:0}var xo={map:Dr,toArray:Pr,forEach:Or,only:Ur,count:vr};function Ro(e){return e&&(_(e)||G(e))}function qt(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 qt(o,t)}else if(_(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,...pe(t,s)},ref:s?null:t.ref}}}return e}function Qt(e,t){class n extends ae{render(){return I(e,this.props)}}return n.displayName=`Memo(${e.displayName||e.name})`,n}function Fo(e){let t=e[ke];return t||(t=qe(e),e[ke]=t),{render(n){let o=t.current;if(o)o.node.props.children=n,o.processedTime=0,k(o,y);else{let s=I(ue,{children:n});o=de(t,s,{parentNode:e,previousSibling:null,isNode:!0}),o.parent=t,t.current=o}let r=v;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),Te(t),t.current=null),delete e[ke]}}}function Zt(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 bo(e){if(!N())throw new Error("use() must be called during render.");if(e&&typeof e.then=="function")return Zt(e);throw new Error("Unsupported type passed to use()")}function Mr(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 lt(e){Io(e)}lt.create=Mr;lt.sync=e=>{Io(e,{sync:!0})};function Io(e,t={}){Re(()=>{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=M(o);if(a){let i=t.sync?U:C;b(i,()=>{o[d].isDirty=!0,R(a,x),w(o)})}};e._watch.subscribe(s),o.__unmount.set(e,()=>e._watch.unsubscribe(s))}Zt(e)})}var Do=e=>e.children,wr=Do,Lr=Do;function kr(e){e()}function Hr(e){e.__isReactCompat=!0}var Br=I,Yr=I,Kr=I;var Sc=Jt;export{xo as Children,F as Component,Lr as Fragment,ae as PureComponent,wr as StrictMode,De as Suspense,W as SuspenseList,qt as cloneElement,Rt as createContext,mo as createElement,Co as createPortal,eo as createRef,Fo as createRoot,Sc as default,it as forwardRef,go as html,Ro as isValidElement,Br as jsx,Kr as jsxDev,Yr as jsxs,Eo as lazy,Qt as memo,Hr as reacty,Xt as render,Re as startTransition,So as unmountComponentAtNode,kr as unstable_batchedUpdates,et as unstable_deferredUpdates,me as unstable_syncUpdates,bo as use,kn as useCallback,Yn as useContext,Bn as useDebugValue,jn as useDeferredValue,Dt as useEffect,Pt as useLayoutEffect,It as useMemo,Ln as useReducer,wn as useRef,bt as useState,Kn as useTransition,lt as watch};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "potatejs",
3
- "version": "0.18.0",
3
+ "version": "0.20.0",
4
4
  "description": "Super charged UI library with modern React API and native templates.",
5
5
  "author": "uniho",
6
6
  "license": "MIT",