potatejs 0.22.0 → 0.22.2

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
@@ -99,6 +99,13 @@ npm run dev
99
99
 
100
100
  ### Astro
101
101
 
102
+ Create your new app.
103
+
104
+ ``` bash
105
+ npm create astro@latest my-app
106
+ cd my-app
107
+ ```
108
+
102
109
  Add `potatejs` as a dependency.
103
110
 
104
111
  ``` bash
@@ -21,4 +21,4 @@ Defaulting to 2020, but this will stop working in the future.`)),i.ecmaVersion=1
21
21
  `,f):(e.write("/*"),Qa(e,f.value,r,a),e.write("*/"+a))}}function Ya(e){let i=e;for(;i!=null;){let{type:r}=i;if(r[0]==="C"&&r[1]==="a")return!0;if(r[0]==="M"&&r[1]==="e"&&r[2]==="m")i=i.object;else return!1}}function ci(e,i){let{generator:r}=e,{declarations:a}=i;e.write(i.kind+" ");let{length:u}=a;if(u>0){r.VariableDeclarator(a[0],e);for(let c=1;c<u;c++)e.write(", "),r.VariableDeclarator(a[c],e)}}var Xs,zs,Js,Ks,Qs,Ys,Za={Program(e,i){let r=i.indent.repeat(i.indentLevel),{lineEnd:a,writeComments:u}=i;u&&e.comments!=null&&te(i,e.comments,r,a);let c=e.body,{length:f}=c;for(let x=0;x<f;x++){let g=c[x];u&&g.comments!=null&&te(i,g.comments,r,a),i.write(r),this[g.type](g,i),i.write(a)}u&&e.trailingComments!=null&&te(i,e.trailingComments,r,a)},BlockStatement:Ys=function(e,i){let r=i.indent.repeat(i.indentLevel++),{lineEnd:a,writeComments:u}=i,c=r+i.indent;i.write("{");let f=e.body;if(f!=null&&f.length>0){i.write(a),u&&e.comments!=null&&te(i,e.comments,c,a);let{length:x}=f;for(let g=0;g<x;g++){let y=f[g];u&&y.comments!=null&&te(i,y.comments,c,a),i.write(c),this[y.type](y,i),i.write(a)}i.write(r)}else u&&e.comments!=null&&(i.write(a),te(i,e.comments,c,a),i.write(r));u&&e.trailingComments!=null&&te(i,e.trailingComments,c,a),i.write("}"),i.indentLevel--},ClassBody:Ys,StaticBlock(e,i){i.write("static "),this.BlockStatement(e,i)},EmptyStatement(e,i){i.write(";")},ExpressionStatement(e,i){let r=i.expressionsPrecedence[e.expression.type];r===pe||r===3&&e.expression.left.type[0]==="O"?(i.write("("),this[e.expression.type](e.expression,i),i.write(")")):this[e.expression.type](e.expression,i),i.write(";")},IfStatement(e,i){i.write("if ("),this[e.test.type](e.test,i),i.write(") "),this[e.consequent.type](e.consequent,i),e.alternate!=null&&(i.write(" else "),this[e.alternate.type](e.alternate,i))},LabeledStatement(e,i){this[e.label.type](e.label,i),i.write(": "),this[e.body.type](e.body,i)},BreakStatement(e,i){i.write("break"),e.label!=null&&(i.write(" "),this[e.label.type](e.label,i)),i.write(";")},ContinueStatement(e,i){i.write("continue"),e.label!=null&&(i.write(" "),this[e.label.type](e.label,i)),i.write(";")},WithStatement(e,i){i.write("with ("),this[e.object.type](e.object,i),i.write(") "),this[e.body.type](e.body,i)},SwitchStatement(e,i){let r=i.indent.repeat(i.indentLevel++),{lineEnd:a,writeComments:u}=i;i.indentLevel++;let c=r+i.indent,f=c+i.indent;i.write("switch ("),this[e.discriminant.type](e.discriminant,i),i.write(") {"+a);let{cases:x}=e,{length:g}=x;for(let y=0;y<g;y++){let w=x[y];u&&w.comments!=null&&te(i,w.comments,c,a),w.test?(i.write(c+"case "),this[w.test.type](w.test,i),i.write(":"+a)):i.write(c+"default:"+a);let{consequent:N}=w,{length:R}=N;for(let v=0;v<R;v++){let b=N[v];u&&b.comments!=null&&te(i,b.comments,f,a),i.write(f),this[b.type](b,i),i.write(a)}}i.indentLevel-=2,i.write(r+"}")},ReturnStatement(e,i){i.write("return"),e.argument&&(i.write(" "),this[e.argument.type](e.argument,i)),i.write(";")},ThrowStatement(e,i){i.write("throw "),this[e.argument.type](e.argument,i),i.write(";")},TryStatement(e,i){if(i.write("try "),this[e.block.type](e.block,i),e.handler){let{handler:r}=e;r.param==null?i.write(" catch "):(i.write(" catch ("),this[r.param.type](r.param,i),i.write(") ")),this[r.body.type](r.body,i)}e.finalizer&&(i.write(" finally "),this[e.finalizer.type](e.finalizer,i))},WhileStatement(e,i){i.write("while ("),this[e.test.type](e.test,i),i.write(") "),this[e.body.type](e.body,i)},DoWhileStatement(e,i){i.write("do "),this[e.body.type](e.body,i),i.write(" while ("),this[e.test.type](e.test,i),i.write(");")},ForStatement(e,i){if(i.write("for ("),e.init!=null){let{init:r}=e;r.type[0]==="V"?ci(i,r):this[r.type](r,i)}i.write("; "),e.test&&this[e.test.type](e.test,i),i.write("; "),e.update&&this[e.update.type](e.update,i),i.write(") "),this[e.body.type](e.body,i)},ForInStatement:Xs=function(e,i){i.write(`for ${e.await?"await ":""}(`);let{left:r}=e;r.type[0]==="V"?ci(i,r):this[r.type](r,i),i.write(e.type[3]==="I"?" in ":" of "),this[e.right.type](e.right,i),i.write(") "),this[e.body.type](e.body,i)},ForOfStatement:Xs,DebuggerStatement(e,i){i.write("debugger;",e)},FunctionDeclaration:zs=function(e,i){i.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),We(i,e.params),i.write(" "),this[e.body.type](e.body,i)},FunctionExpression:zs,VariableDeclaration(e,i){ci(i,e),i.write(";")},VariableDeclarator(e,i){this[e.id.type](e.id,i),e.init!=null&&(i.write(" = "),this[e.init.type](e.init,i))},ClassDeclaration(e,i){if(i.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){i.write("extends ");let{superClass:r}=e,{type:a}=r,u=i.expressionsPrecedence[a];(a[0]!=="C"||a[1]!=="l"||a[5]!=="E")&&(u===pe||u<i.expressionsPrecedence.ClassExpression)?(i.write("("),this[e.superClass.type](r,i),i.write(")")):this[r.type](r,i),i.write(" ")}this.ClassBody(e.body,i)},ImportDeclaration(e,i){i.write("import ");let{specifiers:r,attributes:a}=e,{length:u}=r,c=0;if(u>0){for(;c<u;){c>0&&i.write(", ");let f=r[c],x=f.type[6];if(x==="D")i.write(f.local.name,f),c++;else if(x==="N")i.write("* as "+f.local.name,f),c++;else break}if(c<u){for(i.write("{");;){let f=r[c],{name:x}=f.imported;if(i.write(x,f),x!==f.local.name&&i.write(" as "+f.local.name),++c<u)i.write(", ");else break}i.write("}")}i.write(" from ")}if(this.Literal(e.source,i),a&&a.length>0){i.write(" with { ");for(let f=0;f<a.length;f++)this.ImportAttribute(a[f],i),f<a.length-1&&i.write(", ");i.write(" }")}i.write(";")},ImportAttribute(e,i){this.Identifier(e.key,i),i.write(": "),this.Literal(e.value,i)},ImportExpression(e,i){i.write("import("),this[e.source.type](e.source,i),i.write(")")},ExportDefaultDeclaration(e,i){i.write("export default "),this[e.declaration.type](e.declaration,i),i.expressionsPrecedence[e.declaration.type]!=null&&e.declaration.type[0]!=="F"&&i.write(";")},ExportNamedDeclaration(e,i){if(i.write("export "),e.declaration)this[e.declaration.type](e.declaration,i);else{i.write("{");let{specifiers:r}=e,{length:a}=r;if(a>0)for(let u=0;;){let c=r[u],{name:f}=c.local;if(i.write(f,c),f!==c.exported.name&&i.write(" as "+c.exported.name),++u<a)i.write(", ");else break}if(i.write("}"),e.source&&(i.write(" from "),this.Literal(e.source,i)),e.attributes&&e.attributes.length>0){i.write(" with { ");for(let u=0;u<e.attributes.length;u++)this.ImportAttribute(e.attributes[u],i),u<e.attributes.length-1&&i.write(", ");i.write(" }")}i.write(";")}},ExportAllDeclaration(e,i){if(e.exported!=null?i.write("export * as "+e.exported.name+" from "):i.write("export * from "),this.Literal(e.source,i),e.attributes&&e.attributes.length>0){i.write(" with { ");for(let r=0;r<e.attributes.length;r++)this.ImportAttribute(e.attributes[r],i),r<e.attributes.length-1&&i.write(", ");i.write(" }")}i.write(";")},MethodDefinition(e,i){e.static&&i.write("static ");let r=e.kind[0];(r==="g"||r==="s")&&i.write(e.kind+" "),e.value.async&&i.write("async "),e.value.generator&&i.write("*"),e.computed?(i.write("["),this[e.key.type](e.key,i),i.write("]")):this[e.key.type](e.key,i),We(i,e.value.params),i.write(" "),this[e.value.body.type](e.value.body,i)},ClassExpression(e,i){this.ClassDeclaration(e,i)},ArrowFunctionExpression(e,i){i.write(e.async?"async ":"",e);let{params:r}=e;r!=null&&(r.length===1&&r[0].type[0]==="I"?i.write(r[0].name,r[0]):We(i,e.params)),i.write(" => "),e.body.type[0]==="O"?(i.write("("),this.ObjectExpression(e.body,i),i.write(")")):this[e.body.type](e.body,i)},ThisExpression(e,i){i.write("this",e)},Super(e,i){i.write("super",e)},RestElement:Js=function(e,i){i.write("..."),this[e.argument.type](e.argument,i)},SpreadElement:Js,YieldExpression(e,i){i.write(e.delegate?"yield*":"yield"),e.argument&&(i.write(" "),this[e.argument.type](e.argument,i))},AwaitExpression(e,i){i.write("await ",e),Vt(i,e.argument,e)},TemplateLiteral(e,i){let{quasis:r,expressions:a}=e;i.write("`");let{length:u}=a;for(let f=0;f<u;f++){let x=a[f],g=r[f];i.write(g.value.raw,g),i.write("${"),this[x.type](x,i),i.write("}")}let c=r[r.length-1];i.write(c.value.raw,c),i.write("`")},TemplateElement(e,i){i.write(e.value.raw,e)},TaggedTemplateExpression(e,i){Vt(i,e.tag,e),this[e.quasi.type](e.quasi,i)},ArrayExpression:Qs=function(e,i){if(i.write("["),e.elements.length>0){let{elements:r}=e,{length:a}=r;for(let u=0;;){let c=r[u];if(c!=null&&this[c.type](c,i),++u<a)i.write(", ");else{c==null&&i.write(", ");break}}}i.write("]")},ArrayPattern:Qs,ObjectExpression(e,i){let r=i.indent.repeat(i.indentLevel++),{lineEnd:a,writeComments:u}=i,c=r+i.indent;if(i.write("{"),e.properties.length>0){i.write(a),u&&e.comments!=null&&te(i,e.comments,c,a);let f=","+a,{properties:x}=e,{length:g}=x;for(let y=0;;){let w=x[y];if(u&&w.comments!=null&&te(i,w.comments,c,a),i.write(c),this[w.type](w,i),++y<g)i.write(f);else break}i.write(a),u&&e.trailingComments!=null&&te(i,e.trailingComments,c,a),i.write(r+"}")}else u?e.comments!=null?(i.write(a),te(i,e.comments,c,a),e.trailingComments!=null&&te(i,e.trailingComments,c,a),i.write(r+"}")):e.trailingComments!=null?(i.write(a),te(i,e.trailingComments,c,a),i.write(r+"}")):i.write("}"):i.write("}");i.indentLevel--},Property(e,i){e.method||e.kind[0]!=="i"?this.MethodDefinition(e,i):(e.shorthand||(e.computed?(i.write("["),this[e.key.type](e.key,i),i.write("]")):this[e.key.type](e.key,i),i.write(": ")),this[e.value.type](e.value,i))},PropertyDefinition(e,i){if(e.static&&i.write("static "),e.computed&&i.write("["),this[e.key.type](e.key,i),e.computed&&i.write("]"),e.value==null){e.key.type[0]!=="F"&&i.write(";");return}i.write(" = "),this[e.value.type](e.value,i),i.write(";")},ObjectPattern(e,i){if(i.write("{"),e.properties.length>0){let{properties:r}=e,{length:a}=r;for(let u=0;this[r[u].type](r[u],i),++u<a;)i.write(", ")}i.write("}")},SequenceExpression(e,i){We(i,e.expressions)},UnaryExpression(e,i){if(e.prefix){let{operator:r,argument:a,argument:{type:u}}=e;i.write(r);let c=Zs(i,a,e);!c&&(r.length>1||u[0]==="U"&&(u[1]==="n"||u[1]==="p")&&a.prefix&&a.operator[0]===r&&(r==="+"||r==="-"))&&i.write(" "),c?(i.write(r.length>1?" (":"("),this[u](a,i),i.write(")")):this[u](a,i)}else this[e.argument.type](e.argument,i),i.write(e.operator)},UpdateExpression(e,i){e.prefix?(i.write(e.operator),this[e.argument.type](e.argument,i)):(this[e.argument.type](e.argument,i),i.write(e.operator))},AssignmentExpression(e,i){this[e.left.type](e.left,i),i.write(" "+e.operator+" "),this[e.right.type](e.right,i)},AssignmentPattern(e,i){this[e.left.type](e.left,i),i.write(" = "),this[e.right.type](e.right,i)},BinaryExpression:Ks=function(e,i){let r=e.operator==="in";r&&i.write("("),Vt(i,e.left,e,!1),i.write(" "+e.operator+" "),Vt(i,e.right,e,!0),r&&i.write(")")},LogicalExpression:Ks,ConditionalExpression(e,i){let{test:r}=e,a=i.expressionsPrecedence[r.type];a===pe||a<=i.expressionsPrecedence.ConditionalExpression?(i.write("("),this[r.type](r,i),i.write(")")):this[r.type](r,i),i.write(" ? "),this[e.consequent.type](e.consequent,i),i.write(" : "),this[e.alternate.type](e.alternate,i)},NewExpression(e,i){i.write("new ");let r=i.expressionsPrecedence[e.callee.type];r===pe||r<i.expressionsPrecedence.CallExpression||Ya(e.callee)?(i.write("("),this[e.callee.type](e.callee,i),i.write(")")):this[e.callee.type](e.callee,i),We(i,e.arguments)},CallExpression(e,i){let r=i.expressionsPrecedence[e.callee.type];r===pe||r<i.expressionsPrecedence.CallExpression?(i.write("("),this[e.callee.type](e.callee,i),i.write(")")):this[e.callee.type](e.callee,i),e.optional&&i.write("?."),We(i,e.arguments)},ChainExpression(e,i){this[e.expression.type](e.expression,i)},MemberExpression(e,i){let r=i.expressionsPrecedence[e.object.type];r===pe||r<i.expressionsPrecedence.MemberExpression?(i.write("("),this[e.object.type](e.object,i),i.write(")")):this[e.object.type](e.object,i),e.computed?(e.optional&&i.write("?."),i.write("["),this[e.property.type](e.property,i),i.write("]")):(e.optional?i.write("?."):i.write("."),this[e.property.type](e.property,i))},MetaProperty(e,i){i.write(e.meta.name+"."+e.property.name,e)},Identifier(e,i){i.write(e.name,e)},PrivateIdentifier(e,i){i.write(`#${e.name}`,e)},Literal(e,i){e.raw!=null?i.write(e.raw,e):e.regex!=null?this.RegExpLiteral(e,i):e.bigint!=null?i.write(e.bigint+"n",e):i.write(Ja(e.value),e)},RegExpLiteral(e,i){let{regex:r}=e;i.write(`/${r.pattern}/${r.flags}`,e)}},$a={};var pi=class{constructor(i){let r=i==null?$a:i;this.output="",r.output!=null?(this.output=r.output,this.write=this.writeToStream):this.output="",this.generator=r.generator!=null?r.generator:Za,this.expressionsPrecedence=r.expressionsPrecedence!=null?r.expressionsPrecedence:Ka,this.indent=r.indent!=null?r.indent:" ",this.lineEnd=r.lineEnd!=null?r.lineEnd:`
22
22
  `,this.indentLevel=r.startingIndentLevel!=null?r.startingIndentLevel:0,this.writeComments=r.comments?r.comments:!1,r.sourceMap!=null&&(this.write=r.output==null?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=r.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split(`
23
23
  `).length-1,this.mapping={original:null,generated:this,name:void 0,source:r.sourceMap.file||r.sourceMap._file})}write(i){this.output+=i}writeToStream(i){this.output.write(i)}writeAndMap(i,r){this.output+=i,this.map(i,r)}writeToStreamAndMap(i,r){this.output.write(i),this.map(i,r)}map(i,r){if(r!=null){let{type:c}=r;if(c[0]==="L"&&c[2]==="n"){this.column=0,this.line++;return}if(r.loc!=null){let{mapping:f}=this;f.original=r.loc.start,f.name=r.name,this.sourceMap.addMapping(f)}if(c[0]==="T"&&c[8]==="E"||c[0]==="L"&&c[1]==="i"&&typeof r.value=="string"){let{length:f}=i,{column:x,line:g}=this;for(let y=0;y<f;y++)i[y]===`
24
- `?(x=0,g++):x++;this.column=x,this.line=g;return}}let{length:a}=i,{lineEnd:u}=this;a>0&&(this.lineEndSize>0&&(u.length===1?i[a-1]===u:i.endsWith(u))?(this.line+=this.lineEndSize,this.column=0):this.column+=a)}toString(){return this.output}};function $s(e,i){let r=new pi(i);return r.generator[e.type](e,r),r.output}var F={templateLiteral(e,i){return{type:"TemplateLiteral",strings:e,expressions:i}},templateElement(e,i){return{type:"TemplateElement",value:{raw:e.raw,cooked:e.cooked},tail:i}},taggedTemplateExpression(e,i){return{type:"TaggedTemplateExpression",tag:e,template:i}},identifier(e){return{type:"Identifier",name:e}},stringLiteral(e){return{type:"Literal",value:e}},booleanLiteral(e){return{type:"Literal",value:e}},importSpecifier(e,i){return{type:"ImportSpecifier",local:e,imported:i}},importDeclaration(e,i){return{type:"ImportDeclaration",specifiers:e,source:i}},callExpression(e,i){return{type:"CallExpression",callee:e,arguments:i}},memberExpression(e,i){return{type:"MemberExpression",object:e,property:i,computed:!1}},objectExpression(e){return{type:"ObjectExpression",properties:e}},objectProperty(e,i,r=!1,a=!1){return{type:"Property",key:e,value:i,kind:"init",computed:r,shorthand:a}},spreadElement(e){return{type:"SpreadElement",argument:e}},arrayExpression(e){return{type:"ArrayExpression",elements:e}},isJSXElement(e){return e&&e.type==="JSXElement"},isJSXFragment(e){return e&&e.type==="JSXFragment"},isJSXText(e){return e&&e.type==="JSXText"},isJSXExpressionContainer(e){return e&&e.type==="JSXExpressionContainer"},isJSXEmptyExpression(e){return e&&e.type==="JSXEmptyExpression"},isJSXAttribute(e){return e&&e.type==="JSXAttribute"},isJSXSpreadAttribute(e){return e&&e.type==="JSXSpreadAttribute"},isJSXIdentifier(e){return e&&e.type==="JSXIdentifier"},isJSXMemberExpression(e){return e&&e.type==="JSXMemberExpression"}};function Pe(e,i=null){return{node:e,parentPath:i,get(r){let a=this.node[r];return Array.isArray(a)?a.map(u=>Pe(u,this)):a?Pe(a,this):null}}}var er={tabIndex:"tabindex",accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodOpacity:"flood-opacity",floodColor:"flood-color",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeWidth:"stroke-width",strokeOpacity:"stroke-opacity",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"};var tr="{{brahmos}}",ir={key:1,ref:1},sr=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"],rr={className:"class",htmlFor:"for",acceptCharset:"accept-charset",httpEquiv:"http-equiv",...er};function Xe(e){let i=e.split(/\r\n|\n|\r/),r=0;for(let u=0;u<i.length;u++)i[u].match(/[^ \t]/)&&(r=u);let a="";for(let u=0;u<i.length;u++){let c=i[u],f=u===0,x=u===i.length-1,g=u===r,y=c.replace(/\t/g," ");f||(y=y.replace(/^[ ]+/,"")),x||(y=y.replace(/[ ]+$/,"")),y&&(g||(y+=" "),a+=y)}return a}function Le(e){return!!e&&/^[a-z]/.test(e)}function ar(e,i){let r=["input","select","textarea"],a=["value","defaultValue","checked","defaultChecked"];return ir[i]||r.includes(e)&&a.includes(i)}function nr(e){let i=e.filter(r=>!r.value.raw);return e.length===2&&i.length===2}function en(e){return F.isJSXExpressionContainer(e)?e.expression:e}function Lt(e,i){i=i||F.booleanLiteral(!0);let r=e.name,a=r.match("-|:")?F.stringLiteral(r):F.identifier(r),u=en(i),c=a.type==="Identifier"&&u.type==="Identifier"&&a.name===u.name;return F.objectProperty(a,u,!1,c)}function ur(e,i){return F.objectExpression([Lt(e,i)])}function or(e){if(e.node.hasBrahmosRuntime)return;let i=F.importSpecifier(F.identifier("_brahmosJSX"),F.identifier("jsx")),r=F.importSpecifier(F.identifier("_brahmosHtml"),F.identifier("html")),a=F.importDeclaration([i,r],F.stringLiteral("potatejs"));e.node.body.unshift(a),e.node.hasBrahmosRuntime=!0}function Rt(e){return typeof e=="string"?{type:"Literal",value:e,raw:`'${e}'`}:e.type==="TaggedTemplateExpression"?{type:"CallExpression",callee:{type:"TaggedTemplateExpression",tag:{type:"Identifier",name:e.tag},quasi:{type:"TemplateLiteral",quasis:e.template.strings.map(i=>({type:"TemplateElement",value:{raw:i.value.raw||"",cooked:i.value.cooked||""},tail:i.tail})),expressions:e.template.expressions}},arguments:[e.meta]}:e}function hr(e){return e===void 0||e===-1?"":e}function Bt(e){return F.isJSXText(e)||e&&e.elementCounter!==void 0}function cr(e){let i=e;for(;i.parentPath&&F.isJSXFragment(i.parentPath.node);)i=i.parentPath;return i}function fi(e){if(!e||!e.children)return[];let i=[];return e.children.forEach(r=>{F.isJSXFragment(r)?i.push(...fi(r)):i.push(r)}),i}function pr(e){let i=e.map(r=>{let{isAttribute:a}=r,u;a?u=0:u=r.hasExpressionSibling?2:1;let c=hr(r.refNodeIndex),f=hr(a?r.attributeIndex:r.prevChildIndex);return`${u}|${c}|${f}`});return F.stringLiteral(i.join(","))}function Ot(e){let i=cr(e),r=i.parentPath?i.parentPath.node:null;return r&&!Bt(r),r}function fr(e){let{node:i}=e,r=Ot(e);if(!r)return{};let a=fi(r);if(!a.length)return{};let u=a.filter(y=>F.isJSXText(y)?!!Xe(y.value):!(F.isJSXExpressionContainer(y)&&F.isJSXEmptyExpression(y.expression))),c=u.indexOf(i);if(c===-1)return{};let f=u[c-1],x=!!f&&!Bt(f),g=-1;for(let y=0;y<=c;y++)(Bt(u[y])||y>0&&!Bt(u[y-1]))&&(g+=1);return{prevChildIndex:g,hasExpressionSibling:x}}function tn(e){if(!F.isJSXElement(e))return!1;let r=e.openingElement.name.name;return Le(r)&&r!=="svg"}function lr(e){return F.isJSXText(e)&&!!Xe(e.value)}function dr(e){let i=cr(e),r=Ot(e);if(!r)return!1;let a=fi(r),u=a.indexOf(i.node),c=a[u-1];if(!(c&&lr(c)))return!1;let f;for(;f=a[u+1];){if(lr(f))return!0;if(F.isJSXExpressionContainer(f)||!tn(f))u+=1;else return!1}return!1}function mr(e){let i=!1;function r(a){if(!i&&!(!a||typeof a!="object")){if(a.type==="JSXSpreadAttribute"){i=!0;return}if(a.type==="JSXExpressionContainer"){i=!0;return}if(a.type==="JSXElement"){let u=a.openingElement.name;if(u.type==="JSXMemberExpression"){i=!0;return}let c=u.name;if(!Le(c)){i=!0;return}}for(let u in a){if(u==="parent"||u==="parentPath"||u==="loc")continue;let c=a[u];Array.isArray(c)?c.forEach(r):c&&typeof c=="object"&&r(c)}}}return r(e.node),i}function di(e){if(F.isJSXIdentifier(e))return F.identifier(e.name);if(F.isJSXMemberExpression(e)){let i=di(e.object),r=di(e.property);return F.memberExpression(i,r)}}function sn(e){let{node:i}=e;if(i.type==="JSXFragment")return!1;let r=i.openingElement.name;if(r.type==="JSXMemberExpression")return!0;let a=r.name;return!Le(a)||a==="svg"&&mr(e)?!0:i.openingElement.attributes.some(u=>u.type==="JSXAttribute"&&u.name.name==="key")}function rn(e){return e?e.type==="JSXExpressionContainer"?e.expression:{type:"Literal",value:e.value}:{type:"Literal",value:!0}}function an(e){let i=[],r=[],a=[],u=[],c=0;function f(w=!1){let N=u.join("");i.push({type:"TemplateElement",value:{raw:N,cooked:N},tail:w}),u=[]}function x(w,N,R){f();let v=Ot(N),k={refNodeIndex:R?c-1:v?v.elementCounter:0,isAttribute:R};if(R){let A=N.parentPath.node;k.attributeIndex=A.staticAttributes?A.staticAttributes.length:0}else k={...k,...fr(N)};return a.push(k),r.push(w),w}function g(w,N,R){if(N&&N.type==="ObjectExpression"){let v=w.type==="ObjectExpression"?w.properties:[{type:"SpreadElement",argument:w}];return N.properties.push(...v),N}return x(w,R,!0),u.push(" "),w}function y(w){if(!w)return;if(Array.isArray(w)){w.forEach(y);return}if(!w.node)return;let{node:N}=w;if(N.type==="JSXElement"){let{openingElement:R}=N,v=R.name;if(sn(w)){let b=Le(v.name)?F.stringLiteral(v.name):di(v),k=[],A=null;R.attributes.forEach(G=>{G.type==="JSXAttribute"?G.name.name==="key"?A=rn(G.value):k.push(Lt(G.name,G.value)):G.type==="JSXSpreadAttribute"&&k.push(F.spreadElement(G.argument))});let D=[b,F.objectExpression(k)],K=w.get("children");K&&K.length&&k.push(Lt(F.identifier("children"),Rt(Dt(K)))),A&&D.push(A);let B=F.identifier("_brahmosJSX"),h=F.callExpression(B,D);x(h,w,!1)}else{let b=v.name;N.elementCounter=c,N.staticAttributes=[],c+=1,u.push(`<${b} `);let k=null;R.attributes.forEach(A=>{if(A.type==="JSXSpreadAttribute")k=g(A.argument,k,Pe(A,w));else{let{name:D,value:K}=A;if(ar(b,D.name)||K&&K.type==="JSXExpressionContainer"){let B=ur(D,K);k=g(B,k,Pe(A,w))}else{let h=` ${rr[D.name]||D.name}`;if(K){let G=K.value,Je=G.includes('"')?"'":'"';h=`${h}=${Je}${G}${Je}`}u.push(h),N.staticAttributes.push(A),k=null}}}),u.push(">"),w.get("children").forEach(y),sr.includes(b)||u.push(`</${b}>`)}}else if(N.type==="JSXFragment")w.get("children").forEach(y);else if(N.type==="JSXText"){let R=Xe(N.value);R&&u.push(R)}else N.type==="JSXExpressionContainer"&&N.expression.type!=="JSXEmptyExpression"&&(dr(w)&&u.push(`<!--${tr}-->`),x(N.expression,w,!1))}return y(e),f(!0),{strings:i,expressions:r,partsMeta:a}}function nn(e){let i;return Array.isArray(e)&&e.length===1&&e[0].node.type==="JSXText"?i=e[0].node:e.node&&e.node.type==="JSXFragment"&&e.node.children.length===1&&e.node.children[0].type==="JSXText"&&(i=e.node.children[0]),i&&{type:"Literal",value:Xe(i.value)}}function Dt(e){let i;Array.isArray(e)||e.node&&e.get?i=e:i=Pe(e);let r=nn(i);if(r)return r;let{strings:a,expressions:u,partsMeta:c}=an(i);return u.length===1&&nr(a)?u[0]:{type:"TaggedTemplateExpression",tag:"_brahmosHtml",template:{type:"TemplateLiteral",strings:a,expressions:u},meta:pr(c)}}function ze(e){if(!e||typeof e!="object")return e;if(e.type==="Program"&&or(Pe(e)),Array.isArray(e))return e.map(ze);if(e.type==="JSXElement"||e.type==="JSXFragment"){let r=Dt(e),a=Rt(r);return ze(a)}let i={...e};for(let r in i)Object.prototype.hasOwnProperty.call(i,r)&&(i[r]=ze(i[r]));return i}var un=J.extend((0,xr.default)());function gr(e){let i=un.parse(e,{ecmaVersion:"latest",sourceType:"module"}),r=ze(i);return $s(r)}function mi(){return{name:"potatejs",enforce:"pre",transform(e,i){return/\.(jsx|tsx)$/.test(i)?{code:gr(e),map:null}:null}}}function on(){return{name:"potate",hooks:{"astro:config:setup":({addRenderer:e,updateConfig:i})=>{e({name:"potate",serverEntry:"potatejs/astro-render"}),i({vite:{plugins:[mi()]}})}}}}export{on as default};
24
+ `?(x=0,g++):x++;this.column=x,this.line=g;return}}let{length:a}=i,{lineEnd:u}=this;a>0&&(this.lineEndSize>0&&(u.length===1?i[a-1]===u:i.endsWith(u))?(this.line+=this.lineEndSize,this.column=0):this.column+=a)}toString(){return this.output}};function $s(e,i){let r=new pi(i);return r.generator[e.type](e,r),r.output}var F={templateLiteral(e,i){return{type:"TemplateLiteral",strings:e,expressions:i}},templateElement(e,i){return{type:"TemplateElement",value:{raw:e.raw,cooked:e.cooked},tail:i}},taggedTemplateExpression(e,i){return{type:"TaggedTemplateExpression",tag:e,template:i}},identifier(e){return{type:"Identifier",name:e}},stringLiteral(e){return{type:"Literal",value:e}},booleanLiteral(e){return{type:"Literal",value:e}},importSpecifier(e,i){return{type:"ImportSpecifier",local:e,imported:i}},importDeclaration(e,i){return{type:"ImportDeclaration",specifiers:e,source:i}},callExpression(e,i){return{type:"CallExpression",callee:e,arguments:i}},memberExpression(e,i){return{type:"MemberExpression",object:e,property:i,computed:!1}},objectExpression(e){return{type:"ObjectExpression",properties:e}},objectProperty(e,i,r=!1,a=!1){return{type:"Property",key:e,value:i,kind:"init",computed:r,shorthand:a}},spreadElement(e){return{type:"SpreadElement",argument:e}},arrayExpression(e){return{type:"ArrayExpression",elements:e}},isJSXElement(e){return e&&e.type==="JSXElement"},isJSXFragment(e){return e&&e.type==="JSXFragment"},isJSXText(e){return e&&e.type==="JSXText"},isJSXExpressionContainer(e){return e&&e.type==="JSXExpressionContainer"},isJSXEmptyExpression(e){return e&&e.type==="JSXEmptyExpression"},isJSXAttribute(e){return e&&e.type==="JSXAttribute"},isJSXSpreadAttribute(e){return e&&e.type==="JSXSpreadAttribute"},isJSXIdentifier(e){return e&&e.type==="JSXIdentifier"},isJSXMemberExpression(e){return e&&e.type==="JSXMemberExpression"}};function Pe(e,i=null){return{node:e,parentPath:i,get(r){let a=this.node[r];return Array.isArray(a)?a.map(u=>Pe(u,this)):a?Pe(a,this):null}}}var er={tabIndex:"tabindex",accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodOpacity:"flood-opacity",floodColor:"flood-color",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeWidth:"stroke-width",strokeOpacity:"stroke-opacity",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"};var tr="{{brahmos}}",ir={key:1,ref:1},sr=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"],rr={className:"class",htmlFor:"for",acceptCharset:"accept-charset",httpEquiv:"http-equiv",...er};function Xe(e){let i=e.split(/\r\n|\n|\r/),r=0;for(let u=0;u<i.length;u++)i[u].match(/[^ \t]/)&&(r=u);let a="";for(let u=0;u<i.length;u++){let c=i[u],f=u===0,x=u===i.length-1,g=u===r,y=c.replace(/\t/g," ");f||(y=y.replace(/^[ ]+/,"")),x||(y=y.replace(/[ ]+$/,"")),y&&(g||(y+=" "),a+=y)}return a}function Le(e){return!!e&&/^[a-z]/.test(e)}function ar(e,i){let r=["input","select","textarea"],a=["value","defaultValue","checked","defaultChecked"];return ir[i]||r.includes(e)&&a.includes(i)}function nr(e){let i=e.filter(r=>!r.value.raw);return e.length===2&&i.length===2}function en(e){return F.isJSXExpressionContainer(e)?e.expression:e}function Lt(e,i){i=i||F.booleanLiteral(!0);let r=e.name,a=r.match("-|:")?F.stringLiteral(r):F.identifier(r),u=en(i),c=a.type==="Identifier"&&u.type==="Identifier"&&a.name===u.name;return F.objectProperty(a,u,!1,c)}function ur(e,i){return F.objectExpression([Lt(e,i)])}function or(e){if(e.node.hasBrahmosRuntime)return;let i=F.importSpecifier(F.identifier("_brahmosJSX"),F.identifier("jsx")),r=F.importSpecifier(F.identifier("_brahmosHtml"),F.identifier("html")),a=F.importDeclaration([i,r],F.stringLiteral("potatejs"));e.node.body.unshift(a),e.node.hasBrahmosRuntime=!0}function Rt(e){return typeof e=="string"?{type:"Literal",value:e,raw:`'${e}'`}:e.type==="TaggedTemplateExpression"?{type:"CallExpression",callee:{type:"TaggedTemplateExpression",tag:{type:"Identifier",name:e.tag},quasi:{type:"TemplateLiteral",quasis:e.template.strings.map(i=>({type:"TemplateElement",value:{raw:i.value.raw||"",cooked:i.value.cooked||""},tail:i.tail})),expressions:e.template.expressions}},arguments:[e.meta]}:e}function hr(e){return e===void 0||e===-1?"":e}function Bt(e){return F.isJSXText(e)||e&&e.elementCounter!==void 0}function cr(e){let i=e;for(;i.parentPath&&F.isJSXFragment(i.parentPath.node);)i=i.parentPath;return i}function fi(e){if(!e||!e.children)return[];let i=[];return e.children.forEach(r=>{F.isJSXFragment(r)?i.push(...fi(r)):i.push(r)}),i}function pr(e){let i=e.map(r=>{let{isAttribute:a}=r,u;a?u=0:u=r.hasExpressionSibling?2:1;let c=hr(r.refNodeIndex),f=hr(a?r.attributeIndex:r.prevChildIndex);return`${u}|${c}|${f}`});return F.stringLiteral(i.join(","))}function Ot(e){let i=cr(e),r=i.parentPath?i.parentPath.node:null;return r&&!Bt(r),r}function fr(e){let{node:i}=e,r=Ot(e);if(!r)return{};let a=fi(r);if(!a.length)return{};let u=a.filter(y=>F.isJSXText(y)?!!Xe(y.value):!(F.isJSXExpressionContainer(y)&&F.isJSXEmptyExpression(y.expression))),c=u.indexOf(i);if(c===-1)return{};let f=u[c-1],x=!!f&&!Bt(f),g=-1;for(let y=0;y<=c;y++)(Bt(u[y])||y>0&&!Bt(u[y-1]))&&(g+=1);return{prevChildIndex:g,hasExpressionSibling:x}}function tn(e){if(!F.isJSXElement(e))return!1;let r=e.openingElement.name.name;return Le(r)&&r!=="svg"}function lr(e){return F.isJSXText(e)&&!!Xe(e.value)}function dr(e){let i=cr(e),r=Ot(e);if(!r)return!1;let a=fi(r),u=a.indexOf(i.node),c=a[u-1];if(!(c&&lr(c)))return!1;let f;for(;f=a[u+1];){if(lr(f))return!0;if(F.isJSXExpressionContainer(f)||!tn(f))u+=1;else return!1}return!1}function mr(e){let i=!1;function r(a){if(!i&&!(!a||typeof a!="object")){if(a.type==="JSXSpreadAttribute"){i=!0;return}if(a.type==="JSXExpressionContainer"){i=!0;return}if(a.type==="JSXElement"){let u=a.openingElement.name;if(u.type==="JSXMemberExpression"){i=!0;return}let c=u.name;if(!Le(c)){i=!0;return}}for(let u in a){if(u==="parent"||u==="parentPath"||u==="loc")continue;let c=a[u];Array.isArray(c)?c.forEach(r):c&&typeof c=="object"&&r(c)}}}return r(e.node),i}function di(e){if(F.isJSXIdentifier(e))return F.identifier(e.name);if(F.isJSXMemberExpression(e)){let i=di(e.object),r=di(e.property);return F.memberExpression(i,r)}}function sn(e){let{node:i}=e;if(i.type==="JSXFragment")return!1;let r=i.openingElement.name;if(r.type==="JSXMemberExpression")return!0;let a=r.name;return!Le(a)||a==="svg"&&mr(e)?!0:i.openingElement.attributes.some(u=>u.type==="JSXAttribute"&&u.name.name==="key")}function rn(e){return e?e.type==="JSXExpressionContainer"?e.expression:{type:"Literal",value:e.value}:{type:"Literal",value:!0}}function an(e){let i=[],r=[],a=[],u=[],c=0;function f(w=!1){let N=u.join("");i.push({type:"TemplateElement",value:{raw:N,cooked:N},tail:w}),u=[]}function x(w,N,R){f();let v=Ot(N),k={refNodeIndex:R?c-1:v?v.elementCounter:0,isAttribute:R};if(R){let A=N.parentPath.node;k.attributeIndex=A.staticAttributes?A.staticAttributes.length:0}else k={...k,...fr(N)};return a.push(k),r.push(w),w}function g(w,N,R){if(N&&N.type==="ObjectExpression"){let v=w.type==="ObjectExpression"?w.properties:[{type:"SpreadElement",argument:w}];return N.properties.push(...v),N}return x(w,R,!0),u.push(" "),w}function y(w){if(!w)return;if(Array.isArray(w)){w.forEach(y);return}if(!w.node)return;let{node:N}=w;if(N.type==="JSXElement"){let{openingElement:R}=N,v=R.name;if(sn(w)){let b=Le(v.name)?F.stringLiteral(v.name):di(v),k=[],A=null;R.attributes.forEach(G=>{G.type==="JSXAttribute"?G.name.name==="key"?A=rn(G.value):k.push(Lt(G.name,G.value)):G.type==="JSXSpreadAttribute"&&k.push(F.spreadElement(G.argument))});let D=[b,F.objectExpression(k)],K=w.get("children");K&&K.length&&k.push(Lt(F.identifier("children"),Rt(Dt(K)))),A&&D.push(A);let B=F.identifier("_brahmosJSX"),h=F.callExpression(B,D);x(h,w,!1)}else{let b=v.name;N.elementCounter=c,N.staticAttributes=[],c+=1,u.push(`<${b} `);let k=null;R.attributes.forEach(A=>{if(A.type==="JSXSpreadAttribute")k=g(A.argument,k,Pe(A,w));else{let{name:D,value:K}=A;if(ar(b,D.name)||K&&K.type==="JSXExpressionContainer"){let B=ur(D,K);k=g(B,k,Pe(A,w))}else{let h=` ${rr[D.name]||D.name}`;if(K){let G=K.value,Je=G.includes('"')?"'":'"';h=`${h}=${Je}${G}${Je}`}u.push(h),N.staticAttributes.push(A),k=null}}}),u.push(">"),w.get("children").forEach(y),sr.includes(b)||u.push(`</${b}>`)}}else if(N.type==="JSXFragment")w.get("children").forEach(y);else if(N.type==="JSXText"){let R=Xe(N.value);R&&u.push(R)}else N.type==="JSXExpressionContainer"&&N.expression.type!=="JSXEmptyExpression"&&(dr(w)&&u.push(`<!--${tr}-->`),x(N.expression,w,!1))}return y(e),f(!0),{strings:i,expressions:r,partsMeta:a}}function nn(e){let i;return Array.isArray(e)&&e.length===1&&e[0].node.type==="JSXText"?i=e[0].node:e.node&&e.node.type==="JSXFragment"&&e.node.children.length===1&&e.node.children[0].type==="JSXText"&&(i=e.node.children[0]),i&&{type:"Literal",value:Xe(i.value)}}function Dt(e){let i;Array.isArray(e)||e.node&&e.get?i=e:i=Pe(e);let r=nn(i);if(r)return r;let{strings:a,expressions:u,partsMeta:c}=an(i);return u.length===1&&nr(a)?u[0]:{type:"TaggedTemplateExpression",tag:"_brahmosHtml",template:{type:"TemplateLiteral",strings:a,expressions:u},meta:pr(c)}}function ze(e){if(!e||typeof e!="object")return e;if(e.type==="Program"&&or(Pe(e)),Array.isArray(e))return e.map(ze);if(e.type==="JSXElement"||e.type==="JSXFragment"){let r=Dt(e),a=Rt(r);return ze(a)}let i={...e};for(let r in i)Object.prototype.hasOwnProperty.call(i,r)&&(i[r]=ze(i[r]));return i}var un=J.extend((0,xr.default)());function gr(e){let i=un.parse(e,{ecmaVersion:"latest",sourceType:"module"}),r=ze(i);return $s(r)}function mi(){return{name:"potatejs",enforce:"pre",transform(e,i){return/\.(jsx|tsx)$/.test(i)?{code:gr(e),map:null}:null}}}function on(){return{name:"potate",hooks:{"astro:config:setup":({addRenderer:e,updateConfig:i})=>{e({name:"potate",serverEntrypoint:"potatejs/astro/render"}),i({vite:{plugins:[mi()]}})}}}}export{on as default};
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- var Uo=Object.defineProperty;var vo=(e,t)=>{for(var n in t)Uo(e,n,{get:t[n],enumerable:!0})};var Jt={};vo(Jt,{Children:()=>Ro,Component:()=>F,Fragment:()=>Lr,PureComponent:()=>ae,StrictMode:()=>wr,Suspense:()=>De,SuspenseList:()=>W,cloneElement:()=>qt,createContext:()=>Rt,createElement:()=>mo,createPortal:()=>So,createRef:()=>eo,createRoot:()=>bo,forwardRef:()=>it,html:()=>Co,isValidElement:()=>Fo,jsx:()=>Br,jsxDev:()=>Kr,jsxs:()=>Yr,lazy:()=>Eo,memo:()=>Qt,reacty:()=>Hr,render:()=>Xt,startTransition:()=>Re,unmountComponentAtNode:()=>Ao,unstable_batchedUpdates:()=>kr,unstable_deferredUpdates:()=>et,unstable_syncUpdates:()=>me,use:()=>Io,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 Mo=0;function j(){return Mo++}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 wo(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=wo(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 Lo(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(Lo)}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),ko(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 ko(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)&&Ho(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 Ho(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 Bo(e,t,n){return e&&e[n]>=t}function Sn(e,t,n){if(e){for(;e&&!Bo(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 Yo(){return Ze===C}function xe(){return Yo()?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 Ko(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=Ko(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 jo=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${jo++}`;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 $o(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])}}))&&$o(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 zo=Object.prototype.hasOwnProperty;function Go(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(!zo.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}var Ut=Go;function Wo(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 Vo(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 Xo(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 qo(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=Xo(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=qo(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],Oo=Me?Me.props.value:dt;Me&&h&&Me.sub(m),m.context=Oo}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=Wo(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=Vo(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 Zo(e,t,n){let o=e.lastIndexOf(t);return n<=o}function Jo(e,t){return{nodeType:z,props:e,ref:t}}function er(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=Zo(m.tagAttrs,P,m.attrIndex)}!g&&!cn[S]?T[S]=E:S==="ref"&&(u=E)}),c=e[++a];a--,c=e[a],l=Jo(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):er(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 tr(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 nr(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=nr(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 or(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 rr(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 sr(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 ir(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 ar(e){let{node:t,alternate:n}=e,o=t&&_(t);o&&n&&ro(e,n),e.hasUncommittedEffect===x&&(Y(t)?tr(e):B(t)?or(e):o?rr(e):t.nodeType===z&&so(e,e.part.domNode),e.hasUncommittedEffect=He),n&&ir(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++)ar(t[o]);let{postCommitEffects:n}=e;for(let o=n.length-1;o>=0;o--)sr(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,cr=30,Kt=16,pr=300,lr=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 ur(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=ur(()=>{let{currentTransition:r}=e,s=r?r.tryCount:0,a=r===v?pr:lr,i=jt(),c=Math.min(cr,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 dr(e){let{node:t,nodeInstance:n}=e;return _(t)&&n?!!fe(e).length||n[d].isDirty:!1}function fr(e){let{node:t,alternate:n}=e;if(!We(t)){n&&oe(n);return}let o=dr(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 mr(e){return e.updateType===A?!0:e.currentTransition?e.lastCompleteTime>=e.updateTime&&e.hasUncommittedEffect&&(Ne(e.currentTransition)||e.currentTransition.isRunningAsyncAction):!1}var Tr={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()){fr(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)}mr(n)&&Tr.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+=`
1
+ var Uo=Object.defineProperty;var vo=(e,t)=>{for(var n in t)Uo(e,n,{get:t[n],enumerable:!0})};var Jt={};vo(Jt,{Children:()=>Ro,Component:()=>F,Fragment:()=>Lr,PureComponent:()=>ae,StrictMode:()=>wr,Suspense:()=>De,SuspenseList:()=>W,cloneElement:()=>Xt,createContext:()=>Rt,createElement:()=>mo,createPortal:()=>So,createRef:()=>eo,createRoot:()=>bo,forwardRef:()=>it,html:()=>Co,isValidElement:()=>Fo,jsx:()=>Br,jsxDev:()=>Kr,jsxs:()=>Yr,lazy:()=>Eo,memo:()=>Qt,reacty:()=>Hr,render:()=>qt,startTransition:()=>Re,unmountComponentAtNode:()=>Ao,unstable_batchedUpdates:()=>kr,unstable_deferredUpdates:()=>et,unstable_syncUpdates:()=>me,use:()=>Io,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",q="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 X(e){return e==null}var Mo=0;function j(){return Mo++}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 wo(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=wo(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 Lo(e){let{transitionState:t}=e;return t===q||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(Lo)}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!(X(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 qe(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),ko(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=qe(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 ko(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&&!X(n.node)&&!X(e)&&Ho(e,n.node)?(i=qe(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 Ho(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 Bo(e,t,n){return e&&e[n]>=t}function Sn(e,t,n){if(e){for(;e&&!Bo(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 Yo(){return Ze===C}function xe(){return Yo()?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 Ko(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=Ko(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 jo=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${jo++}`;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 $o(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])}}))&&$o(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:q,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=q,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 zo=Object.prototype.hasOwnProperty;function Go(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(!zo.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}var Ut=Go;function Wo(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 Vo(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 qo(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=qo(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],Oo=Me?Me.props.value:dt;Me&&h&&Me.sub(m),m.context=Oo}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=Wo(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=Vo(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 Zo(e,t,n){let o=e.lastIndexOf(t);return n<=o}function Jo(e,t){return{nodeType:z,props:e,ref:t}}function er(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=Zo(m.tagAttrs,P,m.attrIndex)}!g&&!cn[S]?T[S]=E:S==="ref"&&(u=E)}),c=e[++a];a--,c=e[a],l=Jo(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):er(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 qn(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 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 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?Xn(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)}),qn(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 tr(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 nr(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=nr(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 or(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 rr(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 sr(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 ir(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 ar(e){let{node:t,alternate:n}=e,o=t&&_(t);o&&n&&ro(e,n),e.hasUncommittedEffect===x&&(Y(t)?tr(e):B(t)?or(e):o?rr(e):t.nodeType===z&&so(e,e.part.domNode),e.hasUncommittedEffect=He),n&&ir(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++)ar(t[o]);let{postCommitEffects:n}=e;for(let o=n.length-1;o>=0;o--)sr(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,cr=30,Kt=16,pr=300,lr=600,uo=0;typeof requestAnimationFrame!="undefined"&&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 ur(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=ur(()=>{let{currentTransition:r}=e,s=r?r.tryCount:0,a=r===v?pr:lr,i=jt(),c=Math.min(cr,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 dr(e){let{node:t,nodeInstance:n}=e;return _(t)&&n?!!fe(e).length||n[d].isDirty:!1}function fr(e){let{node:t,alternate:n}=e;if(!We(t)){n&&oe(n);return}let o=dr(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 mr(e){return e.updateType===A?!0:e.currentTransition?e.lastCompleteTime>=e.updateTime&&e.hasUncommittedEffect&&(Ne(e.currentTransition)||e.currentTransition.isRunningAsyncAction):!1}var Tr={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()){fr(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)}mr(n)&&Tr.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=qe(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: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 hr(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"&&hr(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 yo(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}getPartsMeta(){return this.partsMeta.length||(this.partsMeta=yo(this.partMetaCode)),this.partsMeta}create(t){t&&this.svgTemplate||this.template||(this.partsMeta.length||(this.partsMeta=yo(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 go=new WeakMap;function Er(e,t){let n=Ve(null,t,void 0);return n.nodeType=Ct,n.template=e,n}function Co(e,...t){return n=>{let o=go.get(e);return o||(o=new Pe(e,n),go.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 So=yr;function gr(e){let{__rootFiber:t}=e;return t?(oe(t.current),Te(t),e.__rootFiber=void 0,!0):!1}var Ao=gr;var Cr=/<([^\s"'=<>/]+)/g,No=/\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){No.lastIndex=u;let E=h(No),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 _o(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]=_o(e[o],t)}return n}function Oe(e){let{values:t,template:n}=e,{strings:o}=n;return n.staticTree||(n.staticTree=Fr(o)),_o(n.staticTree,t)}function Ir(e){return B(e)&&!e.template.strings.some(Boolean)}function xo(e){let t=[];return e.forEach(n=>{Array.isArray(n)?t=t.concat(xo(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=xo(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 Ro={map:Dr,toArray:Pr,forEach:Or,only:Ur,count:vr};function Fo(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 bo(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 Io(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){Do(e)}lt.create=Mr;lt.sync=e=>{Do(e,{sync:!0})};function Do(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 Po=e=>e.children,wr=Po,Lr=Po;function kr(e){e()}function Hr(e){e.__isReactCompat=!0}var Br=I,Yr=I,Kr=I;var Sc=Jt;export{Ro 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,So as createPortal,eo as createRef,bo as createRoot,Sc as default,it as forwardRef,Co as html,Fo 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,Ao as unmountComponentAtNode,kr as unstable_batchedUpdates,et as unstable_deferredUpdates,me as unstable_syncUpdates,Io 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};
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===q&&(s.suspender=null),s}function ho(e){e[d].isDirty=!0}function hr(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"&&hr(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 yo(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}getPartsMeta(){return this.partsMeta.length||(this.partsMeta=yo(this.partMetaCode)),this.partsMeta}create(t){t&&this.svgTemplate||this.template||(this.partsMeta.length||(this.partsMeta=yo(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 go=new WeakMap;function Er(e,t){let n=Ve(null,t,void 0);return n.nodeType=Ct,n.template=e,n}function Co(e,...t){return n=>{let o=go.get(e);return o||(o=new Pe(e,n),go.set(e,o)),Er(o,t)}}function qt(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=Xe(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 So=yr;function gr(e){let{__rootFiber:t}=e;return t?(oe(t.current),Te(t),e.__rootFiber=void 0,!0):!1}var Ao=gr;var Cr=/<([^\s"'=<>/]+)/g,No=/\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){No.lastIndex=u;let E=h(No),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 _o(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]=_o(e[o],t)}return n}function Oe(e){let{values:t,template:n}=e,{strings:o}=n;return n.staticTree||(n.staticTree=Fr(o)),_o(n.staticTree,t)}function Ir(e){return B(e)&&!e.template.strings.some(Boolean)}function xo(e){let t=[];return e.forEach(n=>{Array.isArray(n)?t=t.concat(xo(n)):n&&J(n)?t.push(Oe(n)):t.push(n)}),t}function Ue(e){if(X(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=xo(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 Ro={map:Dr,toArray:Pr,forEach:Or,only:Ur,count:vr};function Fo(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=Oe(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 bo(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,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 Io(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){Do(e)}lt.create=Mr;lt.sync=e=>{Do(e,{sync:!0})};function Do(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 Po=e=>e.children,wr=Po,Lr=Po;function kr(e){e()}function Hr(e){e.__isReactCompat=!0}var Br=I,Yr=I,Kr=I;var Sc=Jt;export{Ro as Children,F as Component,Lr as Fragment,ae as PureComponent,wr as StrictMode,De as Suspense,W as SuspenseList,Xt as cloneElement,Rt as createContext,mo as createElement,So as createPortal,eo as createRef,bo as createRoot,Sc as default,it as forwardRef,Co as html,Fo as isValidElement,Br as jsx,Kr as jsxDev,Yr as jsxs,Eo as lazy,Qt as memo,Hr as reacty,qt as render,Re as startTransition,Ao as unmountComponentAtNode,kr as unstable_batchedUpdates,et as unstable_deferredUpdates,me as unstable_syncUpdates,Io 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.22.0",
3
+ "version": "0.22.2",
4
4
  "description": "Super charged UI library with modern React API and native templates.",
5
5
  "author": "uniho",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "types": "./dist/type.d.ts",
37
37
  "import": "./dist/astro-integration.js"
38
38
  },
39
- "./astro-render": {
39
+ "./astro/render": {
40
40
  "types": "./dist/type.d.ts",
41
41
  "import": "./dist/astro-render.js"
42
42
  },