lilact 0.29.2 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lilact.development.js +135 -108
- package/dist/lilact.development.js.map +3 -3
- package/dist/lilact.development.min.js +28 -28
- package/dist/lilact.development.min.js.map +3 -3
- package/dist/lilact.production.min.js +28 -28
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/accessories.ErrorBoundary.html +8 -8
- package/docs/classes/accessories.Suspense.html +7 -7
- package/docs/classes/components.Component.html +11 -11
- package/docs/classes/components.HTMLComponent.html +11 -11
- package/docs/classes/components.RootComponent.html +11 -11
- package/docs/functions/components.cloneComponent.html +1 -1
- package/docs/functions/components.createComponent.html +1 -1
- package/docs/functions/components.createPortal.html +1 -1
- package/docs/functions/components.createRoot.html +1 -1
- package/docs/functions/components.hotReloadRoot.html +1 -0
- package/docs/functions/components.memo.html +1 -1
- package/docs/functions/components.render.html +1 -1
- package/docs/functions/components.replaceComponentEntity.html +1 -0
- package/docs/functions/run.lazy.html +1 -1
- package/docs/functions/run.run.html +1 -1
- package/docs/functions/run.runScripts.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/modules/components.html +1 -1
- package/docs/static/index.html +1 -1
- package/docs/static/lilact.development.js +135 -108
- package/docs/static/lilact.development.js.map +3 -3
- package/docs/static/lilact.development.min.js +28 -28
- package/docs/static/lilact.development.min.js.map +3 -3
- package/docs/static/lilact.production.min.js +28 -28
- package/docs/variables/components.cloneElement.html +1 -1
- package/examples/index.html +1 -1
- package/examples/lilact.development.js +135 -108
- package/examples/lilact.development.js.map +3 -3
- package/examples/lilact.development.min.js +28 -28
- package/examples/lilact.development.min.js.map +3 -3
- package/examples/lilact.production.min.js +28 -28
- package/package.json +1 -1
- package/src/components.jsx +128 -40
- package/src/jsx.js +7 -32
- package/src/lilact.jsx +1 -1
- package/src/run.jsx +41 -51
|
@@ -54,8 +54,8 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
54
54
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
55
55
|
*/
|
|
56
56
|
|
|
57
|
-
var Qn=Object.defineProperty;var xo=(e,t,n)=>t in e?Qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var te=(e,t)=>{for(var n in t)Qn(e,n,{get:t[n],enumerable:!0})};var ne=(e,t,n)=>xo(e,typeof t!="symbol"?t+"":t,n);var en={};te(en,{__DO_NOT_USE__ActionTypes:()=>at,applyMiddleware:()=>Co,bindActionCreators:()=>So,combineReducers:()=>To,compose:()=>nr,createStore:()=>Qt,isAction:()=>Oo,isPlainObject:()=>zt,legacy_createStore:()=>vo});function F(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var _o=typeof Symbol=="function"&&Symbol.observable||"@@observable",er=_o,Zt=()=>Math.random().toString(36).substring(7).split("").join("."),Eo={INIT:`@@redux/INIT${Zt()}`,REPLACE:`@@redux/REPLACE${Zt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Zt()}`},at=Eo;function zt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Qt(e,t,n){if(typeof e!="function")throw new Error(F(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(F(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(F(1));return n(Qt)(e,t)}let r=e,o=t,s=new Map,c=s,a=0,l=!1;function u(){c===s&&(c=new Map,s.forEach((v,h)=>{c.set(h,v)}))}function f(){if(l)throw new Error(F(3));return o}function p(v){if(typeof v!="function")throw new Error(F(4));if(l)throw new Error(F(5));let h=!0;u();let k=a++;return c.set(k,v),function(){if(h){if(l)throw new Error(F(6));h=!1,u(),c.delete(k),s=null}}}function d(v){if(!zt(v))throw new Error(F(7));if(typeof v.type>"u")throw new Error(F(8));if(typeof v.type!="string")throw new Error(F(17));if(l)throw new Error(F(9));try{l=!0,o=r(o,v)}finally{l=!1}return(s=c).forEach(k=>{k()}),v}function m(v){if(typeof v!="function")throw new Error(F(10));r=v,d({type:at.REPLACE})}function x(){let v=p;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(F(11));function k(){let O=h;O.next&&O.next(f())}return k(),{unsubscribe:v(k)}},[er](){return this}}}return d({type:at.INIT}),{dispatch:d,subscribe:p,getState:f,replaceReducer:m,[er]:x}}function vo(e,t,n){return Qt(e,t,n)}function ko(e){Object.keys(e).forEach(t=>{let n=e[t];if(typeof n(void 0,{type:at.INIT})>"u")throw new Error(F(12));if(typeof n(void 0,{type:at.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(F(13))})}function To(e){let t=Object.keys(e),n={};for(let c=0;c<t.length;c++){let a=t[c];typeof e[a]=="function"&&(n[a]=e[a])}let r=Object.keys(n),o,s;try{ko(n)}catch(c){s=c}return function(a={},l){if(s)throw s;let u=!1,f={};for(let p=0;p<r.length;p++){let d=r[p],m=n[d],x=a[d],w=m(x,l);if(typeof w>"u"){let v=l&&l.type;throw new Error(F(14))}f[d]=w,u=u||w!==x}return u=u||r.length!==Object.keys(a).length,u?f:a}}function tr(e,t){return function(...n){return t(e.apply(this,n))}}function So(e,t){if(typeof e=="function")return tr(e,t);if(typeof e!="object"||e===null)throw new Error(F(16));let n={};for(let r in e){let o=e[r];typeof o=="function"&&(n[r]=tr(o,t))}return n}function nr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Co(...e){return t=>(n,r)=>{let o=t(n,r),s=()=>{throw new Error(F(15))},c={getState:o.getState,dispatch:(l,...u)=>s(l,...u)},a=e.map(l=>l(c));return s=nr(...a)(o.dispatch),{...o,dispatch:s}}}function Oo(e){return zt(e)&&"type"in e&&typeof e.type=="string"}var an={};te(an,{cache:()=>ti,css:()=>cn,cx:()=>Jo,flush:()=>Go,getRegisteredStyles:()=>zo,hydrate:()=>Ho,injectGlobal:()=>ht,keyframes:()=>Qo,merge:()=>Zo,sheet:()=>ei});var $o=!1;function Ao(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Lo(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var rr=(function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!$o:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Lo(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Ao(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})();var K="-ms-",ut="-moz-",A="-webkit-",St="comm",Be="rule",Ve="decl";var or="@import";var Ct="@keyframes";var ir="@layer";var sr=Math.abs,De=String.fromCharCode,cr=Object.assign;function ar(e,t){return D(e,0)^45?(((t<<2^D(e,0))<<2^D(e,1))<<2^D(e,2))<<2^D(e,3):0}function Ot(e){return e.trim()}function tn(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,n){return e.replace(t,n)}function lt(e,t){return e.indexOf(t)}function D(e,t){return e.charCodeAt(t)|0}function Ie(e,t,n){return e.slice(t,n)}function J(e){return e.length}function Xe(e){return e.length}function Ye(e,t){return t.push(e),e}function nn(e,t){return e.map(t).join("")}var $t=1,Ge=1,ur=0,Z=0,M=0,Je="";function ft(e,t,n,r,o,s,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:$t,column:Ge,length:c,return:""}}function Ze(e,t){return cr(ft("",null,null,"",null,null,0),e,{length:-e.length},t)}function lr(){return M}function fr(){return M=Z>0?D(Je,--Z):0,Ge--,M===10&&(Ge=1,$t--),M}function z(){return M=Z<ur?D(Je,Z++):0,Ge++,M===10&&(Ge=1,$t++),M}function ue(){return D(Je,Z)}function pt(){return Z}function ze(e,t){return Ie(Je,e,t)}function He(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function At(e){return $t=Ge=1,ur=J(Je=e),Z=0,[]}function Lt(e){return Je="",e}function Qe(e){return Ot(ze(Z-1,rn(e===91?e+2:e===40?e+1:e)))}function pr(e){for(;(M=ue())&&M<33;)z();return He(e)>2||He(M)>3?"":" "}function dr(e,t){for(;--t&&z()&&!(M<48||M>102||M>57&&M<65||M>70&&M<97););return ze(e,pt()+(t<6&&ue()==32&&z()==32))}function rn(e){for(;z();)switch(M){case e:return Z;case 34:case 39:e!==34&&e!==39&&rn(M);break;case 40:e===41&&rn(e);break;case 92:z();break}return Z}function hr(e,t){for(;z()&&e+M!==57;)if(e+M===84&&ue()===47)break;return"/*"+ze(t,Z-1)+"*"+De(e===47?e:z())}function mr(e){for(;!He(ue());)z();return ze(e,Z)}function br(e){return Lt(It("",null,null,null,[""],e=At(e),0,[0],e))}function It(e,t,n,r,o,s,c,a,l){for(var u=0,f=0,p=c,d=0,m=0,x=0,w=1,v=1,h=1,k=0,T="",O=o,N=s,_=r,y=T;v;)switch(x=k,k=z()){case 40:if(x!=108&&D(y,p-1)==58){lt(y+=$(Qe(k),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:y+=Qe(k);break;case 9:case 10:case 13:case 32:y+=pr(x);break;case 92:y+=dr(pt()-1,7);continue;case 47:switch(ue()){case 42:case 47:Ye(Io(hr(z(),pt()),t,n),l);break;default:y+="/"}break;case 123*w:a[u++]=J(y)*h;case 125*w:case 59:case 0:switch(k){case 0:case 125:v=0;case 59+f:h==-1&&(y=$(y,/\f/g,"")),m>0&&J(y)-p&&Ye(m>32?gr(y+";",r,n,p-1):gr($(y," ","")+";",r,n,p-2),l);break;case 59:y+=";";default:if(Ye(_=yr(y,t,n,u,f,o,a,T,O=[],N=[],p),s),k===123)if(f===0)It(y,t,_,_,O,s,p,a,N);else switch(d===99&&D(y,3)===110?100:d){case 100:case 108:case 109:case 115:It(e,_,_,r&&Ye(yr(e,_,_,0,0,o,a,T,o,O=[],p),N),o,N,p,a,r?O:N);break;default:It(y,_,_,_,[""],N,0,a,N)}}u=f=m=0,w=h=1,T=y="",p=c;break;case 58:p=1+J(y),m=x;default:if(w<1){if(k==123)--w;else if(k==125&&w++==0&&fr()==125)continue}switch(y+=De(k),k*w){case 38:h=f>0?1:(y+="\f",-1);break;case 44:a[u++]=(J(y)-1)*h,h=1;break;case 64:ue()===45&&(y+=Qe(z())),d=ue(),f=p=J(T=y+=mr(pt())),k++;break;case 45:x===45&&J(y)==2&&(w=0)}}return s}function yr(e,t,n,r,o,s,c,a,l,u,f){for(var p=o-1,d=o===0?s:[""],m=Xe(d),x=0,w=0,v=0;x<r;++x)for(var h=0,k=Ie(e,p+1,p=sr(w=c[x])),T=e;h<m;++h)(T=Ot(w>0?d[h]+" "+k:$(k,/&\f/g,d[h])))&&(l[v++]=T);return ft(e,t,n,o===0?Be:a,l,u,f)}function Io(e,t,n){return ft(e,t,n,St,De(lr()),Ie(e,2,-2),0)}function gr(e,t,n,r){return ft(e,t,n,Ve,Ie(e,0,r),Ie(e,r+1,-1),r)}function Me(e,t){for(var n="",r=Xe(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function wr(e,t,n,r){switch(e.type){case ir:if(e.children.length)break;case or:case Ve:return e.return=e.return||e.value;case St:return"";case Ct:return e.return=e.value+"{"+Me(e.children,r)+"}";case Be:e.value=e.props.join(",")}return J(n=Me(e.children,r))?e.return=e.value+"{"+n+"}":""}function xr(e){var t=Xe(e);return function(n,r,o,s){for(var c="",a=0;a<t;a++)c+=e[a](n,r,o,s)||"";return c}}function _r(e){return function(t){t.root||(t=t.return)&&e(t)}}function Er(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ro=function(t,n,r){for(var o=0,s=0;o=s,s=ue(),o===38&&s===12&&(n[r]=1),!He(s);)z();return ze(t,Z)},No=function(t,n){var r=-1,o=44;do switch(He(o)){case 0:o===38&&ue()===12&&(n[r]=1),t[r]+=Ro(Z-1,n,r);break;case 2:t[r]+=Qe(o);break;case 4:if(o===44){t[++r]=ue()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=De(o)}while(o=z());return t},Po=function(t,n){return Lt(No(At(t),n))},vr=new WeakMap,jo=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!vr.get(r))&&!o){vr.set(t,!0);for(var s=[],c=Po(n,s),a=r.props,l=0,u=0;l<c.length;l++)for(var f=0;f<a.length;f++,u++)t.props[u]=s[l]?c[l].replace(/&\f/g,a[f]):a[f]+" "+c[l]}}},Do=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function kr(e,t){switch(ar(e,t)){case 5103:return A+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return A+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return A+e+ut+e+K+e+e;case 6828:case 4268:return A+e+K+e+e;case 6165:return A+e+K+"flex-"+e+e;case 5187:return A+e+$(e,/(\w+).+(:[^]+)/,A+"box-$1$2"+K+"flex-$1$2")+e;case 5443:return A+e+K+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return A+e+K+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return A+e+K+$(e,"shrink","negative")+e;case 5292:return A+e+K+$(e,"basis","preferred-size")+e;case 6060:return A+"box-"+$(e,"-grow","")+A+e+K+$(e,"grow","positive")+e;case 4554:return A+$(e,/([^-])(transform)/g,"$1"+A+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,A+"$1"),/(image-set)/,A+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,A+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,A+"box-pack:$3"+K+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+A+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,A+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(J(e)-1-t>6)switch(D(e,t+1)){case 109:if(D(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+A+"$2-$3$1"+ut+(D(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~lt(e,"stretch")?kr($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(D(e,t+1)!==115)break;case 6444:switch(D(e,J(e)-3-(~lt(e,"!important")&&10))){case 107:return $(e,":",":"+A)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+A+(D(e,14)===45?"inline-":"")+"box$3$1"+A+"$2$3$1"+K+"$2box$3")+e}break;case 5936:switch(D(e,t+11)){case 114:return A+e+K+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return A+e+K+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return A+e+K+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return A+e+K+e+e}return e}var Mo=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ve:t.return=kr(t.value,t.length);break;case Ct:return Me([Ze(t,{value:$(t.value,"@","@"+A)})],o);case Be:if(t.length)return nn(t.props,function(s){switch(tn(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Me([Ze(t,{props:[$(s,/:(read-\w+)/,":"+ut+"$1")]})],o);case"::placeholder":return Me([Ze(t,{props:[$(s,/:(plac\w+)/,":"+A+"input-$1")]}),Ze(t,{props:[$(s,/:(plac\w+)/,":"+ut+"$1")]}),Ze(t,{props:[$(s,/:(plac\w+)/,K+"input-$1")]})],o)}return""})}},Uo=[Mo],Tr=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(w){var v=w.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||Uo,s={},c,a=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var v=w.getAttribute("data-emotion").split(" "),h=1;h<v.length;h++)s[v[h]]=!0;a.push(w)});var l,u=[jo,Do];{var f,p=[wr,_r(function(w){f.insert(w)})],d=xr(u.concat(o,p)),m=function(v){return Me(br(v),d)};l=function(v,h,k,T){f=k,m(v?v+"{"+h.styles+"}":h.styles),T&&(x.inserted[h.name]=!0)}}var x={key:n,sheet:new rr({key:n,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:l};return x.sheet.hydrate(a),x};function Sr(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Cr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var qo=!1,Fo=/[A-Z]|^ms/g,Ko=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Lr=function(t){return t.charCodeAt(1)===45},Or=function(t){return t!=null&&typeof t!="boolean"},on=Er(function(e){return Lr(e)?e:e.replace(Fo,"-$&").toLowerCase()}),$r=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Ko,function(r,o,s){return _e={name:o,styles:s,next:_e},o})}return Cr[t]!==1&&!Lr(t)&&typeof n=="number"&&n!==0?n+"px":n},Wo="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function dt(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return _e={name:o.name,styles:o.styles,next:_e},o.name;var s=n;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)_e={name:c.name,styles:c.styles,next:_e},c=c.next;var a=s.styles+";";return a}return Bo(e,t,n)}case"function":{if(e!==void 0){var l=_e,u=n(e);return _e=l,dt(e,t,u)}break}}var f=n;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function Bo(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=dt(e,t,n[o])+";";else for(var s in n){var c=n[s];if(typeof c!="object"){var a=c;t!=null&&t[a]!==void 0?r+=s+"{"+t[a]+"}":Or(a)&&(r+=on(s)+":"+$r(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&qo)throw new Error(Wo);if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var l=0;l<c.length;l++)Or(c[l])&&(r+=on(s)+":"+$r(s,c[l])+";");else{var u=dt(e,t,c);switch(s){case"animation":case"animationName":{r+=on(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}}return r}var Ar=/label:\s*([^\s;{]+)\s*(;|$)/g,_e;function Rt(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";_e=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=dt(n,t,s);else{var c=s;o+=c[0]}for(var a=1;a<e.length;a++)if(o+=dt(n,t,e[a]),r){var l=s;o+=l[a]}Ar.lastIndex=0;for(var u="",f;(f=Ar.exec(o))!==null;)u+="-"+f[1];var p=Sr(o)+u;return{name:p,styles:o,next:_e}}var Vo=!0;function sn(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Xo=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Vo===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Ir=function(t,n,r){Xo(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Rr(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Nr(e,t,n){var r=[],o=sn(e,r,n);return r.length<2?n:o+t(r)}var Pr=function(t){var n=Tr(t);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Rt(u,n.registered,void 0);return Ir(n,p,!1),n.key+"-"+p.name},o=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Rt(u,n.registered),d="animation-"+p.name;return Rr(n,{name:p.name,styles:"@keyframes "+d+"{"+p.styles+"}"}),d},s=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Rt(u,n.registered);Rr(n,p)},c=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];return Nr(n.registered,r,Yo(u))};return{css:r,cx:c,injectGlobal:s,keyframes:o,hydrate:function(l){l.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:sn.bind(null,n.registered),merge:Nr.bind(null,n.registered,r)}},Yo=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=e(o);else{s="";for(var c in o)o[c]&&c&&(s&&(s+=" "),s+=c)}break}default:s=o}s&&(n&&(n+=" "),n+=s)}}return n};var Ee=Pr({key:"css"}),Go=Ee.flush,Ho=Ee.hydrate,Jo=Ee.cx,Zo=Ee.merge,zo=Ee.getRegisteredStyles,ht=Ee.injectGlobal,Qo=Ee.keyframes,cn=Ee.css,ei=Ee.sheet,ti=Ee.cache;var hn={};te(hn,{Children:()=>Ue,Fragment:()=>jr,Portal:()=>Dr,deepEqual:()=>fn,eval_num:()=>ai,findDOMNode:()=>ri,forwardRef:()=>pn,getComponentByPointer:()=>oi,id_num:()=>ci,isAsync:()=>ii,isClass:()=>dn,isEmpty:()=>X,isError:()=>si,isThenable:()=>Nt,isValidComponent:()=>tt,isValidElement:()=>ni,shallowEqual:()=>ce,toBool:()=>Pt});var ln={};te(ln,{ARGS:()=>wt,CALLBACK:()=>bt,CHILD_CLASS_ADDENDUM:()=>de,CLEARED:()=>$e,COMPONENT:()=>et,CORE:()=>g,DUE:()=>he,IDX:()=>W,INTERVAL:()=>gt,IS_ZOMBIE:()=>un,LAZY:()=>mt,MEMOIZED:()=>Oe,REPEAT:()=>yt,TEXT:()=>V});var[g,et,V,un,W,de,Oe,mt,he,yt,$e,gt,bt,wt]=[Symbol.for("LILACT:CORE"),Symbol.for("LILACT:COMPONENT"),Symbol.for("LILACT:TEXT"),Symbol.for("LILACT:IS_ZOMBIE"),Symbol.for("LILACT:IDX"),Symbol.for("LILACT:CHILD_CLASS_ADDENDUM"),Symbol.for("LILACT:MEMOIZED"),Symbol.for("LILACT:LAZY"),Symbol.for("LILACT:TIMERS:DUE"),Symbol.for("LILACT:TIMERS:REPEAT"),Symbol.for("LILACT:TIMERS:CLEARED"),Symbol.for("LILACT:TIMERS:INTERVAL"),Symbol.for("LILACT:TIMERS:CALLBACK"),Symbol.for("LILACT:TIMERS:ARGS")];var ve=e=>{let t=Object.prototype.toString.call(e).toLowerCase();return/\[object (.*)]/g.exec(t)[1]},tt=e=>!!(e&&(e[g]!==void 0||e[TEXT]!==void 0)),ni=tt,ri=e=>{if(!e[g]?.element?.parentNode)throw new Error("findDOMNode only works on mounted components.");return e[g].element};function jr({children:e}){return e}jr.displayName="Fragment";function Dr({children:e,view:t}){return this[g].portal=t,e}Dr.displayName="Portal";var Ue={_isNil(e){return e==null},_flattenInto(e,t){if(!this._isNil(t)){if(Array.isArray(t)){for(let n of t)this._flattenInto(e,n);return}e.push(t)}},toArray(e){let t=[];if(!e)return t;for(let n of e)this._flattenInto(t,n);return t},count(e){return this.toArray(e).length},only(e){let t=this.toArray(e);if(t.length!==1)throw new Error(t.length===0?"Expected exactly one child, but received none.":"Expected exactly one child, but received more than one.");return t[0]},map(e,t){let n=this.toArray(e),r=[];for(let o=0;o<n.length;o++)r.push(t(n[o],o));return r},forEach(e,t){let n=this.toArray(e);for(let r=0;r<n.length;r++)t(n[r],r)},find(e,t){let n=this.toArray(e);for(let r=0;r<n.length;r++)if(t(n[r],r))return n[r]},pickOne(e,t){let n=this.toArray(e),r,o=0;for(let s=0;s<n.length&&!(t(n[s],s)&&(o++,r=n[s],o>1));s++);if(o!==1)throw new Error(o===0?"pickOne expected exactly one matching child, but matched none.":"pickOne expected exactly one matching child, but matched multiple.");return r},first(e){return this.toArray(e)[0]},last(e){let t=this.toArray(e);return t.length?t[t.length-1]:void 0}},pn=e=>{let t=function(n,r){return e({...n,ref:void 0},r)};return t.displayName="Forwarded "+e.displayName,t};function oi(){let e,t=new Promise((r,o)=>{e=r});function n(r){r.stopImmediatePropagation(),window.removeEventListener("click",n,!0);let o=r.target;for(;!o[et]&&o.parentNode;)o=o.parentNode;return e(o[et]),!1}return window.addEventListener("click",n,!0),t}function X(e){for(let t in e)return!1;return!0}var ce=(e,t,n)=>{if(Object.is(e,t))return!0;if(ve(e)!==ve(t))return!1;if(ve(e)==="array")return e.length!==t.length?!1:e.every((r,o)=>o===n||Object.is(r,t[o]));if(ve(e)==="object"){let r=Object.keys(e).filter(s=>s!==n),o=Object.keys(t).filter(s=>s!==n);return r.length!==o.length?!1:r.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&Object.is(e[s],t[s]))}return ve(e)==="date"?e.getTime()===t.getTime():Object.is(e,t)};function fn(e,t){return ve(e)!==ve(t)?!1:ve(e)==="array"?e.length!==t.length?!1:e.every((n,r)=>fn(n,t[r])):ve(e)==="object"?Object.keys(e).length!==Object.keys(t).length?!1:Object.keys(e).every(n=>fn(e[n],t[n])):ve(e)==="date"?e.getTime()===t.getTime():e===t}function dn(e){return!(e&&e.constructor===Function)||e.prototype===void 0?!1:Function.prototype!==Object.getPrototypeOf(e)?!0:Object.getOwnPropertyNames(e.prototype).length>1}function ii(e){return typeof e=="function"&&e.constructor&&e.constructor.name==="AsyncFunction"}function Nt(e){return e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function si(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function Pt(e){if(typeof e=="boolean")return e;if(typeof e=="number")return e!==0;if(typeof e=="string"){if(e=e.trim().toLowerCase(),e==="true")return!0;if(e==="false")return!1}return!!e}var ci=Math.floor(Math.random()*1e4),ai=0;function Q(e){return e==null}function Y(e){return e||"<<anonymous>>"}function ui(e){return e&&(e.displayName||e.name)||"Unknown"}function Mr(e){return e==null||e===!1||e===!0||typeof e=="string"||typeof e=="number"||tt(e)?!0:Array.isArray(e)?e.every(Mr):!1}function li(e){return typeof e=="function"||typeof e=="string"}function me(e){let t=function(r,o,s,c,a,l){let u=r[o];if(Q(u)||e(u))return null;let f=e.expectedType||"the correct type",p=u===null?"null":typeof u;return new Error(`Invalid ${c} \`${a}\` of type \`${p}\` supplied to \`${Y(s)}\`, expected \`${f}\`.`)};return t.isRequired=function(r,o,s,c,a){let l=r[o];return Q(l)?new Error(`The ${c} \`${a}\` is marked as required in \`${Y(s)}\`, but its value is \`${l}\`.`):t(r,o,s,c,a)},t}function fi(){let e={};e.any=(function(){let r=function(s,c,a,l,u){return null};return r.isRequired=function(){return null},r})(),e.array=me(r=>Array.isArray(r)),e.array.expectedType="array",e.bool=me(r=>typeof r=="boolean"),e.bool.expectedType="boolean",e.func=me(r=>typeof r=="function"),e.func.expectedType="function",e.number=me(r=>typeof r=="number"&&!Number.isNaN(r)),e.number.expectedType="number",e.object=me(r=>typeof r=="object"&&r!==null&&!Array.isArray(r)),e.object.expectedType="object",e.string=me(r=>typeof r=="string"),e.string.expectedType="string",e.symbol=me(r=>typeof r=="symbol"),e.symbol.expectedType="symbol",e.component=me(r=>tt(r)),e.component.expectedType="component",e.element=me(r=>tt(r)),e.element.expectedType="element",e.node=me(r=>Mr(r)),e.node.expectedType="node",e.elementType=me(r=>li(r)),e.elementType.expectedType="elementType",e.oneOf=function(o){let s=Array.isArray(o)?o:[],c=function(l,u,f,p,d){let m=l[u];if(Q(m))return null;for(let w=0;w<s.length;w++)if(m===s[w])return null;let x=m===null?"null":typeof m;return new Error(`Invalid ${p} \`${d}\` of value \`${String(m)}\` supplied to \`${Y(f)}\`, expected one of [${s.map(String).join(", ")}] (received type \`${x}\`).`)};return c.isRequired=function(l,u,f,p,d){return Q(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${Y(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.oneOfType=function(o){let s=o||[],c=function(l,u,f,p,d){let m=l[u];if(Q(m))return null;for(let x=0;x<s.length;x++)if(s[x](l,u,f,p,d)===null)return null;return new Error(`Invalid ${p} \`${d}\` supplied to \`${Y(f)}\` (none of the allowed types matched).`)};return c.isRequired=function(l,u,f,p,d){return Q(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${Y(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.arrayOf=function(o){let s=o,c=function(l,u,f,p,d){let m=l[u];if(Q(m))return null;if(!Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${Y(f)}\`, expected an array.`);for(let x=0;x<m.length;x++){let w=`${d}[${x}]`,v=s({[u]:m[x]},u,f,p,w);if(v!==null)return v}return null};return c.isRequired=function(l,u,f,p,d){return Q(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${Y(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.objectOf=function(o){let s=o,c=function(l,u,f,p,d){let m=l[u];if(Q(m))return null;if(typeof m!="object"||m===null||Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${Y(f)}\`, expected an object.`);let x=Object.keys(m);for(let w=0;w<x.length;w++){let v=x[w],h=`${d}.${v}`,k=s({[u]:m[v]},u,f,p,h);if(k!==null)return k}return null};return c.isRequired=function(l,u,f,p,d){return Q(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${Y(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c};function t(r,{exact:o}){let s=r?Object.keys(r):[],c=function(l,u,f,p,d){let m=l[u];if(Q(m))return null;if(typeof m!="object"||m===null||Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${Y(f)}\`, expected an object.`);if(o){let w=Object.keys(m);for(let v=0;v<w.length;v++){let h=w[v];if(!Object.prototype.hasOwnProperty.call(r,h)){let k=`${d}.${h}`;return new Error(`Invalid ${p} \`${k}\` supplied to \`${Y(f)}\`: extra key \`${h}\` is not allowed by exact().`)}}}for(let w=0;w<s.length;w++){let v=s[w],h=r[v],k=m[v],T=`${d}.${v}`;if(Q(k)){let N=h({[u]:k},u,f,p,T);if(N!==null)return N;continue}let O=h({[u]:k},u,f,p,T);if(O!==null)return O}return null};return c.isRequired=function(l,u,f,p,d){return Q(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${Y(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c}e.shape=function(o){return t(o,{exact:!1})},e.exact=function(o){return t(o,{exact:!0})},e.instanceOf=function(o){let s=function(a,l,u,f,p){let d=a[l];return Q(d)||d instanceof o?null:new Error(`Invalid ${f} \`${p}\` supplied to \`${Y(u)}\`: expected instance of \`${ui(o)}\`.`)};return s.isRequired=function(a,l,u,f,p){return Q(a[l])?new Error(`The ${f} \`${p}\` is marked as required in \`${Y(u)}\`, but its value is \`${a[l]}\`.`):s(a,l,u,f,p)},s};let n=new Set;return e.checkPropTypes=function(o,s,c,a){if(!o)return;let l=o,u=Y(a),f=Object.keys(l);for(let p=0;p<f.length;p++){let d=f[p],m=l[d];if(typeof m!="function")continue;let w=m(s||{},d,u,c,d);if(w instanceof Error){let v=`${u}|${c}|${d}|${w.message}`;if(n.has(v))continue;n.add(v),typeof console<"u"&&console.error&&console.error(`Warning: Failed prop type: ${w.message}`)}}},e}var nt=fi();var gn={};te(gn,{Component:()=>Re,HTMLComponent:()=>_t,RootComponent:()=>jt,boolean_html_attributes_set:()=>Br,capture_events_set:()=>Mt,cloneComponent:()=>Fr,cloneElement:()=>wi,createComponent:()=>yn,createElement:()=>Ei,createPortal:()=>bi,createRoot:()=>qr,current_component:()=>vi,effect_timeout:()=>Li,events_set:()=>Dt,insertion_effects:()=>Oi,layout_effects:()=>Ci,length_css_attributes_set:()=>Wr,memo:()=>_i,passive_effects:()=>$i,processEffects:()=>Ur,render:()=>xi,roots:()=>Si,special_attributes:()=>Kr,update_cbs:()=>Ti,update_interval_margin:()=>Ii,update_set:()=>ki,update_timeout:()=>Ai});var pi="http://www.w3.org/2000/svg",mn=class{constructor(t){ne(this,"owner");ne(this,"current_map",new Map);ne(this,"new_map",new Map);ne(this,"pick_index",0);this.owner=t}pick(t,n){var s;let r,o=this.current_map.get(t);return o&&o.length>o[W]?(r=o[o[W]],o[W]++,o=this.new_map.get(t),o!==void 0?o.push(r):(o=[r],this.new_map.set(t,o),o[W]=0)):(r=n(),o=this.new_map.get(t),o!==void 0?o.push(r):(o=[r],this.new_map.set(t,o),o[W]=0),r[g]&&((s=r[g]).parent??(s.parent=this.owner))),r}commit(){this.current_map.forEach(t=>{t.slice(t[W]).forEach(n=>{n.cleanup?n.cleanup():n.element&&!n.portal&&n.element.parentElement.removeChild(n.element)})}),this.current_map=this.new_map,this.new_map=new Map}},xt=class{constructor(t,n){ne(this,"component");ne(this,"props");this.component=t,this.props=n||{}}apply(t=this.props,n=this.next_state||this.state){try{let r=!0;if(this.outlet&&this?.[Oe]&&ce(this.props,t,"children")&&ce(this.props?.children,t?.children)&&(r=!1),r){if(this.entity?.propTypes?nt.checkPropTypes(this.entity.propTypes,this.props,"prop",this.entity.name):this.component?.propTypes&&nt.checkPropTypes(this.component.propTypes,this.props,"prop",this.component.name),typeof n=="function"&&(n=n(this.state)),this.component.constructor.defaultProps&&(t={...this.component.constructor.defaultProps,...t}),(this?.parent?.component?.context||this?.parent?.component?.getChildContext)&&(this.context={...this.parent.component.context,...this.parent.component.getChildContext?.()},this.component.constructor.contextTypes&&nt.checkPropTypes(this.component.constructor.contextTypes,this.context,"context",this.entity.name)),this.component.shouldComponentUpdate&&!this.component.shouldComponentUpdate(n,t,this.context))return;typeof this.entity=="string"&&(this.element instanceof Element||(this.is_svg||this.container.is_svg?(this.is_svg=!0,this.element=document.createElementNS(pi,this.entity)):this.element=document.createElement(this.entity),t?.defaultValue&&(this.element.value=String(t.defaultValue).slice(0,t?.maxLength)),t?.defaultChecked&&(this.element.checked=t.defaultChecked)),this.element[et]=this.component),t.ref&&(typeof t.ref=="function"?t.ref(this.element||this.component):t.ref.current=this.element||this.component),t!==void 0&&this.component.componentWillReceiveProps&&this.component.componentWillReceiveProps(t),this.component.componentWillUpdate&&this.component.componentWillUpdate(t,n);let o=this.state,s=this.props;if(this.element&&this.updateElementProps(t),this.props=t,typeof this.next_state=="object")this.state?Object.assign(this.state,n):this.state={...n};else if(this.next_state!==void 0)throw new Error("Component.setState only accepts objects or functions is new state.");this.next_state&&delete this.next_state,this.hooks!==void 0?(this.hook_index=0,E.current_component=[this,E.current_component],this.outlet=this.component.render(t,{current:this.element||this.component}),E.current_component=E.current_component[1]):this.outlet=this.component.render({current:this.element||this.component}),this?.portal&&(this.element=this.portal),this.outlet?.constructor?.name!=="Array"?this.outlet=[this.outlet]:this.outlet=[...this.outlet];for(let c=0;c<this.outlet.length;c++){let a=this.outlet[c];if(a==null||typeof a=="boolean")this.outlet.splice(c,1),c--;else if(typeof a=="function"){let l=this.childFunctionHandler(a);this.outlet.splice(c,1,l),c--}else if(a.constructor.name==="Array")this.outlet.splice(c,1,...a),c--;else{let l=mi(this,a);this.outlet[c]=l,l[V]===void 0?(l.container=this.element?this:this.container,l.apply(a.props)):l.element?l[V]!==a[V]&&(l.element.textContent=a[V],l[V]=a[V]):(l.element=document.createTextNode(a[V]),l[V]=a[V])}}this.cache&&this.cache.commit(),this.element&&this.arrangeOutlet(),this.component.componentDidUpdate&&this.component.componentDidUpdate(s,o,this.last_snapshot),this.last_snapshot&&delete this.last_snapshot}}catch(r){di(this,r)}}async cleanup(){try{let t=[];if(this.props?.ref&&(typeof this.props.ref=="function"?this.props.ref(null):this.props.current=null),this.component.componentWillUnmount&&this.component.componentWillUnmount(),this?.element?.parentElement&&!this.portal&&this.element.parentElement.removeChild(this.element),this.outlet!==void 0)for(let n of this.outlet)n.cleanup&&t.push(n.cleanup());if(this.props?.children!==void 0)for(let n of this.props.children)n.cleanup&&t.push(n.cleanup());if(this.hooks!==void 0)for(let n of this.hooks)n.cleanup&&t.push(n.cleanup());await Promise.all(t)}catch(t){throw t}}updateElementProps(t,n=!1){this.entity==="input"?(t?.type||(t.type="text"),t.type!==this.element.type&&(this.element.type=t.type),t?.value!==void 0&&t?.value!==this.element.value&&(t.value===void 0&&(t.value=""),this.element.value=String(t.value).slice(0,t?.maxLength))):this.entity==="textarea"?t?.value!==this.element.value&&(this.element.value=String(t.value).slice(0,t?.maxLength)):this.entity==="select"?typeof t.value=="string"&&t.value!==this.element.value&&(this.element.value=t.value):this.entity==="option"&&(this.container?.props?.value?.constructor?.name==="Array"?t.selected=this.container.props.value.indexOf(t.value)!==-1:typeof this.container?.props?.value=="string"&&(t.selected=this.container.props.value===t.value));for(let r in this.props){let o=r.toLowerCase();t.hasOwnProperty(r)||(Dt.has(o)?this.event_detachers[o]():this.element.removeAttribute(r))}for(let r in t){let o=r.toLowerCase();if(!Kr.has(o)&&(t===this.props||!E.defaultIsEqual(t[r],this.props[r])||n))if(Dt.has(o))this.event_detachers??(this.event_detachers={}),this.event_detachers[o]?.(),this.event_detachers[o]=E.addWrappedEventListener(this.element,o.substring(2),t[r]);else if(Mt.hasOwnProperty(o)){let s=Mt[o];this.event_detachers??(this.event_detachers={}),this.event_detachers[o]?.(),this.event_detachers[o]=E.addWrappedEventListener(this.element,s.substring(2),t[r],{capture:!0})}else if(r==="style")if(typeof t.style=="string")this.element.style=t.style;else{if(this.props?.style)if(typeof this.props.style=="string")this.element.style="";else for(let s in this.props.style)t.style.hasOwnProperty(s)||(this.element.style[s]="");for(let s in t.style)Wr.has(s)&&isFinite(t.style[s])&&(t.style[s]+="px");Object.assign(this.element.style,t.style)}else if(Br.has(r)){let s=Pt(t[r]);s!==this.element[r]&&(this.element[r]=s)}else r==="autoFocus"?this.element.autofocus=Pt(t[r]):r==="htmlFor"?this.element.setAttribute("for",t[r]):(o!=="value"||["input","textarea","select"].indexOf(this.entity)===-1)&&this.element.setAttribute(o,t[r])}t?.action?this.element.onsubmit=t.action:this.element.onsubmit=void 0,this.updateElementClass(t)}updateElementClass(t=this.props){let n=t?.className;if(n??(n=t?.class?t.class:""),this?.parent?.[de]&&(n+=" "+this?.parent?.[de]),n.length>0){n=n.split(/\s+/g);for(let r of Array.from(this.element.classList))n.indexOf(r)===-1&&this.element.classList.remove(r);for(let r of n)r.length>0&&this.element.classList.add(r)}else delete this.element.className}scanZombies(t,n){let r=t.element.childNodes;for(;r[t.insert_index]&&r[t.insert_index][un]&&r[t.insert_index]!==n;)t.insert_index++}appendElement(t){t.portal||(this.scanZombies(t.container,t.element),t?.element.parentNode===null?(t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),t?.component?.componentDidMount&&t.component.componentDidMount()):t.container.element.childNodes[t.container.insert_index]!==t.element&&t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),t.container.insert_index++)}arrangeOutlet(){this.insert_index=0;for(let t of this.outlet)t&&(t.element?(t.container=this.element?this:this.container,t.container.appendElement(t)):(t.arrangeOutlet&&t.outlet&&t.arrangeOutlet(),t?.mounted||(t.mounted=!0,t?.component?.componentDidMount&&t.component.componentDidMount())))}childFunctionHandler(t){return t(this.state)}},di=(e,t)=>{let n=t?.error instanceof Error?t.error:t?.reason!==void 0?t.reason:t,r=E.isThenable(t)?t:E.traceError(n,t?.fileName||null),o=[e];for(;e&&!e.component?.componentDidCatch;)e=e.parent,e&&o.push(e);e?.component?.componentDidCatch&&e.entity?.getDerivedStateFromError&&e.component.setState(e.entity.getDerivedStateFromError.call(e,r));let s=Array.prototype.map.call(o,c=>`in ${typeof c.component.displayName=="function"?c.component.displayName():c.component.displayName}`).join(`
|
|
58
|
-
`);if(r.componentStack=o,r.componentStackLog=s,e?.component?.componentDidCatch)e.component.componentDidCatch(r,{componentStack:o,componentStackLog:s});else throw t};function hi(e,t){let n=e;if(e[V]===void 0){let r=e.entity,o=!1;if(typeof r=="object")if(r[Oe])o=r[Oe],r=r.component;else throw new Error("Invalid component.");if(typeof r=="string")n=new _t(r,e.props);else{if(dn(r)){r?.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new r(e.props);let s=Object.getOwnPropertyDescriptor(n,"state");s&&typeof s.get!="function"&&typeof s.set!="function"&&(n[g].state=n.state,Object.defineProperty(n,"state",{get(){return this[g].state},set(c){if(this[g].state===void 0)this[g].state=c;else throw new Error("Assigning component state this way is not allowed.")}}))}else if(typeof r=="function")r?.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new Re(e.props),n.render=r.bind(n),n[g].hooks=[],n[g].hook_index=0;else throw new Error("Error in constructing component.");n[g].entity=r,e.container&&(n[g].container=e.container)}o&&(n[g][Oe]=!0)}return t instanceof xt&&(n[g].parent=t),n}function mi(e,t){try{return e.cache??(e.cache=new mn(e)),t=e.cache.pick(t[V]===void 0?t?.props?.key:":text:",()=>t[V]!==void 0||t instanceof xt?t:hi(t,e)[g]),t}catch(n){if(t?.component?.componentDidCatch)t.component.componentDidCatch(n);else throw n}}function yi(){clearTimeout(E.effect_timeout);let e=E.update_set,t=E.update_cbs;E.update_set=new Set,E.update_cbs=new Set;for(let n of e)n.apply();for(let n of t)n();Ur()}function Ur(){let e=E.insertion_effects,t=E.layout_effects,n=E.passive_effects;E.insertion_effects=new Set,E.layout_effects=new Set,E.passive_effects=new Set;for(let r of e)r();for(let r of t)r();requestAnimationFrame(()=>{for(let r of n)r()})}var gi=(e,t)=>{let n;return t.key!==void 0?n=t.key:t.id!==void 0?n=":i:"+t.id:t.path!==void 0?n=":p:"+t.path:t[V]!==void 0?n=":text:":(typeof e=="string"?n=":t:"+e:e?.name?n=e.name:n="::",t.name!==void 0?n=n+":"+t.name:t.path!==void 0&&(n=n+":"+t.path)),n},Re=class{get state(){return this[g].state}set state(t){if(this[g].state===void 0)this[g].state=t;else throw new Error("Assigning component state this way is not allowed.")}get context(){return this[g].context}set context(t){throw new Error("Assigning component context this way is not allowed.")}get type(){return this[g].entity}set type(t){throw new Error("Component type is immutable.")}get props(){return this[g].props}set props(t){throw new Error("Assigning component props this way is not allowed.")}get ref(){return this[g].ref}set ref(t){throw new Error("Component ref is immutable.")}get key(){return this[g].props.key}set key(t){throw new Error("Component key is immutable.")}displayName(){let t=this[g].entity;return t?.displayName?typeof t.displayName=="function"?t.displayName():t.displayName:typeof t=="string"?t:typeof t=="function"&&t.name||"Component"}constructor(t){this[g]=new xt(this,t)}forceUpdate(t){E._clearTimeout(E.update_timeout),E.update_set.add(this[g].container||this[g]),t&&E.update_cbs.add(t.bind(this)),E.update_timeout=E._setTimeout(yi,E.update_interval_margin)}setState(t,n){this.getSnapshotBeforeUpdate!==void 0&&(this[g].last_snapshot=this.getSnapshotBeforeUpdate(this[g].props,this.state)),this[g].next_state=t,this.forceUpdate(n?n.bind(this):void 0)}},_t=class extends Re{constructor(t,n){super(n),this[g].entity=t,t==="svg"&&(this[g].is_svg=!0)}render(){return this[g].props.children}},jt=class extends _t{constructor(n,r){super(":root:",r);ne(this,"displayName","Root");typeof this.element=="string"&&(n=document.querySelector(n)),this[g].element=n;for(let o of r.children)o[g]?o[g].container=this[g]:o.container=this[g]}};function yn(e,t={},...n){if(typeof e!="string"&&typeof e!="function"&&(typeof e!="object"||!e[Oe]))throw new Error("Invalid entity for createComponent.");for(let r=0;r<n.length;r++){let o=n[r];if(o==null||typeof o=="boolean"){n.splice(r,1),r--;continue}["number","bigint"].indexOf(typeof o)!==-1&&(o=o.toString()),typeof o=="string"?n[r]={[V]:o}:n[r]=o}return t.key=gi(e,t),t.children=n,{entity:e,props:t,[g]:null}}function qr(e){let t;return{render(n){if(t)throw new Error("root already rendered!");return t=new jt(e,{children:[n]}),E.roots.add(t[g]),t.forceUpdate(),t},unmount(){t&&(t.cleanup(),e.innerHTML="")}}}function bi(e,t){return yn(E.Portal,{view:t},e)}function Fr(e,t,...n){let r={entity:e.entity,props:{...e.props,...t},[g]:null};return n?.length&&(r.props.children=n),r}var wi=Fr;function xi(e,t){if(e[g]&&(e[g].container||e[g].parent))throw new Error("Component is already in use");return qr(t).render(e)}function _i(e){return typeof e=="object"?e[Oe]=!0:e={component:e,[Oe]:!0,[g]:null},e}var Ei=yn,vi=[],ki=new Set,Ti=new Set,Si=new Set,Ci=new Set,Oi=new Set,$i=new Set,Ai,Li,Ii=0,Kr=new Set(["classname","ref","action","lilact_jsx_loc","children","key","defaultvalue","defaultchecked"]),Dt=new Set(["onafterprint","onbeforeprint","onbeforeunload","onerror","onhashchange","onload","onmessage","onoffline","ononline","onpagehide","onpageshow","onpopstate","onresize","onstorage","onunload","onblur","onchange","oncontextmenu","onfocus","oninput","oninvalid","onreset","onsearch","onselect","onsubmit","oncancel","onkeydown","onkeypress","onkeyup","onclick","ondblclick","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onwheel","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","onscroll","oncopy","oncut","onpaste","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onended","onerror","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","ontoggle","onpointerdown","onpointerup","onpointermove","onpointercancel","onpointerover","onpointerout","onpointerenter","onpointerleave"]),Mt={};for(let e of Dt)Mt[e+"capture"]=e;var Wr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","top","right","bottom","left","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","outlineWidth","fontSize","lineHeight","letterSpacing","wordSpacing","textIndent","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","columnGap","rowGap","gap"]),Br=new Set(["disabled","readOnly","required","checked","multiple","selected","hidden","open","loop","muted","controls","playsInline","allowFullScreen"]);var wn={};te(wn,{createContext:()=>rt,startTransition:()=>qi,useActionState:()=>ji,useCallback:()=>ye,useContext:()=>ot,useDebugValue:()=>Ui,useDeferredValue:()=>Mi,useEffect:()=>oe,useHook:()=>ae,useId:()=>Ri,useImperativeHandle:()=>bn,useInsertionEffect:()=>Pi,useLayoutEffect:()=>Ne,useLocalStorage:()=>Ni,useMemo:()=>Et,useReducer:()=>Di,useRef:()=>j,useState:()=>re,useTransition:()=>Vr});function ae(){let e=E.current_component[0];return e.hooks[e.hook_index]===void 0&&e.hooks.push({}),e.hooks[e.hook_index++]}function re(e){let t=ae();return X(t)&&(typeof e=="function"?t.value=e():t.value=e,t.set_func=function(n,r,o){typeof o=="function"?r.value=o(r.value):r.value=o,n.component.forceUpdate()}.bind(void 0,E.current_component[0],t)),[t.value,t.set_func]}function ye(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Callback dependencies must be an array, object or omitted.");let n=ae();return!X(n)&&t!==void 0&&n?.deps!==void 0&&ce(t,n.deps)||(n?.cleanup&&n.cleanup(),n.deps=t,n.callback=e),n.callback}function rt(e){return{default:e,Provider:function({value:n,children:r}){return r}}}function ot(e){let t=E.current_component[0]?.parent;for(;t&&t.entity!==e.Provider;)t=t.parent;return t?t.props?.value??e.default:e.default}function Ri(e="N"){let t=ae();return X(t)&&(t.id=e+E.id_num++),t.id}function Vr(){let e=ae();return X(e)&&(e.count=0,e.func=(async function(t,n,r){n.count===0&&t.component.forceUpdate(),n.count++;try{return await r()}finally{n.count--,n.count===0&&t.component.forceUpdate()}}).bind(void 0,E.current_component[0],e)),[e.count!=0,e.func]}function Ni(e,t){let n=ae(),r;try{r=JSON.parse(localStorage[e])}catch{}return r===void 0&&(typeof t=="function"&&(t=t()),r=t,localStorage[e]=JSON.stringify(r)),X(n)&&(n.value=r,n.set_func=function(o,s,c){typeof c=="function"&&(c=c(s.value)),c!==s.value&&(localStorage[e]=JSON.stringify(c),s.value=c,o.component.forceUpdate())}.bind(void 0,E.current_component[0],n)),[n.value,n.set_func]}function j(e=null){let t=ae();return X(t)&&(t.current=e),t}async function Ne(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Layout effect dependencies must be an array, object or omitted.");let n=ae();!X(n)&&t!==void 0&&n?.deps!==void 0&&ce(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.layout_effects.add(async()=>{n.cleanup=await e()}),E._clearTimeout(E.effect_timeout),E._setTimeout(E.processEffects,0))}async function oe(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Effect dependencies must be an array, object or omitted.");let n=ae();!X(n)&&t!==void 0&&n?.deps!==void 0&&ce(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.passive_effects.add(async()=>{n.cleanup=await e()}),E._clearTimeout(E.effect_timeout),E._setTimeout(E.processEffects,0))}async function Pi(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Insertion effect dependencies must be an array, object, or omitted.");let n=ae();!X(n)&&t!==void 0&&n?.deps!==void 0&&ce(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.insertion_effects.add(async()=>{n.cleanup=await e()}),E._clearTimeout(E.effect_timeout),E._setTimeout(E.processEffects,0))}function Et(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Memo dependencies must be an array or omitted.");let n=ae();return!X(n)&&t!==void 0&&n?.deps!==void 0&&ce(t,n.deps)||(n.deps=t,n.value=e()),n.value}function ji(e,t){let n=ae(),[r,o]=Vr();return X(n)&&(n.state=t,n.form_action=s=>(s.preventDefault(),o(async()=>{let c=new FormData(s.target,s.submitter);n.state=await e(n.state,c)},[]),!1)),[n.state,n.form_action,r]}function Di(e,t,n){let r=ae();return X(r)&&(r.state=n?n(t):t,r.dispatch=function(o,s,c){let a=s.reducer(s.state,c);E.defaultIsEqual(a,s.state)||(s.state=a,o.component.forceUpdate())}.bind(void 0,E.current_component[0],r)),r.reducer=e,[r.state,r.dispatch]}function Mi(e,t){let{useEffect:n,useRef:r,useState:o}=E,[s,c]=o(typeof t<"u"?t:e),a=r(e),l=r(null);return n(()=>{if(a.current===e)return;a.current=e,l.current!=null&&(l.current.cancelled=!0,l.current=null);let u={cancelled:!1};return l.current=u,Promise.resolve().then(()=>{u.cancelled||(c(e),l.current=null)}),()=>{l.current&&(l.current.cancelled=!0,l.current=null)}},[e]),s}function bn(e,t,n=void 0){n!==void 0&&e?.deps!==void 0&&ce(n,e.deps)||(e.deps=n,typeof e?.current!="object"&&(e.current={}),Object.assign(e.current,t()))}function Ui(e,t=n=>n){console.log(t(e))}function qi(e){e()}var xn={};te(xn,{lazy:()=>Xi,require:()=>Hr,required_scripts:()=>Fe,run:()=>it,runScripts:()=>Gi});function Fi(e,t){let n=t.startsWith("/"),r=(n?"":e).split("/").filter(Boolean);!n&&!e.endsWith("/")&&r.pop();for(let o of t.split("/"))!o||o==="."||(o===".."?r.pop():r.push(o));return`${n?"/":""}${r.join("/")}`}function Xr(e,t="Unknown error"){if(e instanceof Error)return e;if(e?.error instanceof Error)return e.error;let n=new Error(e?.message==null?t:String(e.message));if(e&&typeof e=="object"){e.name&&(n.name=e.name),e.stack&&(n.stack=e.stack);for(let r of Object.keys(e))r in n||(n[r]=e[r])}return n}function Ki(e,t){let n=Xr(e);return n.lilact_source||(n.lilact_source={path:t}),n}function qe(e,t){let n=Ki(e,t);return n.isTraced?n:typeof E.traceError=="function"?E.traceError(n,t):(E.error=n,n)}var Fe={};function Yr(e,{code:t=""}={}){let n={path:e,code:String(t),mappings:[],meta:{},exports:{},loaded:!1,request:void 0,error:void 0};return Fe[e]=n,n}function Gr(e,t={}){if(E.importObjectPaths?.[e])return E.importObjectPaths[e];t.requirer?.path&&(e=Fi(t.requirer.path,e));let n=!!E[mt]||!!t.isLazy,r=Bi(e,{});if(r.loaded&&!t.forceReload)return r.exports;if(e.startsWith("#")){let c=document.getElementById(e.slice(1));if(!c)throw qe(new Error(`Required element not found (${e})`),e);return it(c.textContent||"",e,{forceReload:t.forceReload})}if(n)return E[mt]=!1,r.request?r.request:Vi(e,r);let o=E.resolver?.(e);if(o!=null){if(e.endsWith(".css")){ht(String(o)),r.code=String(o),r.loaded=!0;return}return it(String(o),e,{forceReload:t.forceReload})}let s=new XMLHttpRequest;try{s.open("GET",e,!1),s.send(null)}catch(c){throw qe(c,e)}if(s.status>=200&&s.status<300){if(e.endsWith(".css")){r.code=s.responseText,ht(r.code),r.loaded=!0;return}return it(s.responseText,e,{forceReload:!0})}throw qe(new Error(`Unable to load ${e}: HTTP ${s.status||0}`),e)}function Hr(e){let t={};return arguments.length===2&&arguments[1]&&typeof arguments[1]=="object"&&(t=arguments[1]),Gr(e,t)}function Wi(e){e.importsObject={};for(let t in e.meta.imports){let n=e.meta.imports[t],r=Gr(t,{requirer:e});for(let o in n.named_imports){if(o==="")continue;let s=n.named_imports[o];if(!Object.prototype.hasOwnProperty.call(r,s))throw new Error(`Imported module does not export any "${o}".`);e.importsObject[o]=r[s]}for(let o of n.import_defaults){if(!Object.prototype.hasOwnProperty.call(r,"default"))throw new Error("Imported module does not export a default.");e.importsObject[o]=r.default}for(let o of n.import_stars)e.importsObject[o]={...r}}}function it(jsx,path=`InlineJSX-${++E.eval_num}`,{}={}){let module=Fe[path];module?(module.path=path,module.code=String(jsx),module.mappings=[],module.exports={},module.loaded=!1,module.error=void 0,module.importsObject=void 0,module.meta={}):module=Yr(path,{code:jsx});let processed;try{processed=E.transpileJSX(String(jsx),{path,mappings:module.mappings,meta:module.meta,factory:"createComponent",appendSourcemap:!0,injectTraceLabels:!0,produceCJS:!1,referentiateImports:!0,blocksInfo:E.blocksInfo})}catch(e){let t=Xr(e);throw t.fileName??(t.fileName=path),t.lilact_source??(t.lilact_source={path}),t.sourcePhase="transpile",module.error=t,E.error=t,t}typeof E.scanBlockLabels=="function"&&E.scanBlockLabels(processed,path);try{globalThis.Lilact=E,globalThis.createComponent=E.createComponent,globalThis.Fragment=E.Fragment,Wi(module),E.scriptImportsObject=module.importsObject;let result=eval(processed);return module.loaded=!0,X(module.exports)?result:module.exports}catch(e){let t=qe(e,path);throw t.sourcePhase??(t.sourcePhase="runtime"),module.error=t,t}}function Bi(e,t={}){return Fe[e]||Yr(e,t)}function Vi(e,t){let n;try{let o=E.resolver?.(e);o==null?t.code&&!t.loaded?n=Promise.resolve(t.code):n=fetch(e).then(s=>{if(!s.ok)throw qe(new Error(`Unable to load ${e}: HTTP ${s.status}`),e);return s.text()}):n=Promise.resolve(o)}catch(o){n=Promise.reject(qe(o,e))}let r;return r=Promise.resolve(n).then(o=>{if(t.code=String(o),e.endsWith(".css")){ht(t.code),t.loaded=!0;return}return it(t.code,e,{})}).then(o=>o?.default??o).catch(o=>{throw t.error=qe(o,e),t.error}).finally(()=>{t.request===r&&(t.request=void 0)}),t.request=r,r}function Xi(e){let t="pending",n;E[mt]=!0;try{n=e()}catch(o){t="error",n=o}E.isThenable(n)?n.then(o=>{t="success",n=o},o=>{t="error",n=o}):t!=="error"&&(t="success");function r(o){if(t==="pending"||t==="error")throw n;let s=n;return createComponent(s,{...o})}return r}function Yi(){return Array.from(document.querySelectorAll('script[type="text/jsx"]')).map(e=>({src:e.getAttribute("src"),content:e.textContent||""}))}async function Gi(){for(let e of Yi())e.src?await Hr(e.src):e.content&&it(e.content)}var vn={};te(vn,{CSSTransition:()=>Zr,SwitchTransition:()=>Hi,Transition:()=>Jr,TransitionGroup:()=>Ji});var _n="unmounted",Ut="exited",vt="entering",kt="entered",En="exiting";function Jr({in:e,timeout:t=E.defaultTransitionTimeout,mountOnEnter:n=!1,unmountOnExit:r=!1,appear:o=!1,onEnter:s,onEntering:c,onEntered:a,onExit:l,onExiting:u,onExited:f,children:p,_classNames:d}){var m,x,w;return(m=this[g]).is_mounted??(m.is_mounted=!n||e||o),(x=this[g]).is_appeared??(x.is_appeared=e),(w=this[g]).timer??(w.timer=null),this[g].childFunctionHandler=v=>v(this[g].mount_state),this[g].mount_state||(this[g].is_mounted||(this[g].mount_state=_n),e?this[g].mount_state=o&&!this[g].is_appeared?vt:kt:this[g].mount_state=Ut),oe(()=>()=>clearTimeout(this[g].timer),[]),oe(()=>{!this[g].is_appeared&&o&&this[g].mount_state===vt&&e&&(s?.(),requestAnimationFrame(()=>{c?.(!this[g].is_appeared),clearTimeout(this[g].timer),this[g].timer=setTimeout(()=>{this[g].mount_state=kt,this.forceUpdate(),this[g].is_appeared=!0,a?.(!this[g].is_appeared)},t)}))},[]),oe(()=>{if(e){if(this[g].is_mounted=!0,this[g].mount_state===vt||this[g].mount_state===kt)return;s?.(!this[g].is_appeared),this[g].mount_state=vt,this.forceUpdate(()=>{c?.(!this[g].is_appeared),clearTimeout(this[g].timer),this[g].timer=setTimeout(()=>{this[g].mount_state=kt,this.forceUpdate(),this[g].is_appeared=!0,a?.()},t)})}else{if(this[g].mount_state===_n||this[g].mount_state===En||this[g].mount_state===Ut)return;l?.(),this[g].mount_state=En,this.forceUpdate(()=>{u?.(),clearTimeout(this[g].timer),this[g].timer=setTimeout(()=>{this[g].mount_state=Ut,this.forceUpdate(),f?.(),r&&(this[g].is_mounted=!1,this[g].mount_state=_n,this.forceUpdate())},t)})}},[e,t]),this[g].is_mounted?(d&&(this[g].mount_state===vt?this[g].is_appeared?this[g][de]=d.appearActive:this[g][de]=d.enterActive:this[g].mount_state===kt?this[g].is_appeared?this[g][de]=d.appearDone:this[g][de]=d.enterDone:this[g].mount_state===En?this[g][de]=d.exitActive:this[g].mount_state===Ut&&(this[g][de]=d.exitDone)),p):null}function Zr({in:e,timeout:t=E.defaultTransitionTimeout,classNames:n="fade",mountOnEnter:r=!1,unmountOnExit:o=!1,appear:s=!1,children:c,onEnter:a,onEntering:l,onEntered:u,onExit:f,onExiting:p,onExited:d}){return typeof n=="string"&&(n={appear:`${n}-enter ${n}-appear`,appearActive:`${n}-enter-active ${n}-appear-active`,appearDone:`${n}-enter-done ${n}-appear-done`,enter:`${n}-enter`,enterActive:`${n}-enter-active`,enterDone:`${n}-enter-done`,exit:`${n}-exit`,exitActive:`${n}-exit-active`,exitDone:`${n}-exit-done`}),createComponent(Jr,{in:e,timeout:t,mountOnEnter:r,unmountOnExit:o,appear:s,onEnter:a,onEntering:l,onEntered:u,onExit:f,onExiting:p,onExited:d,_classNames:n},c)}function Hi({children:e,activeKey:t,mode:n="out-in",timeout:r=E.defaultTransitionTimeout,classNames:o="switch",mountOnEnter:s=!1,unmountOnExit:c=!1,appear:a=!1,onExited:l,onEnter:u,onExiting:f,onEntered:p,...d}){let m=Et(()=>Ue.toArray(e),[e]),[x,w]=re(null),[v,h]=re(!1),[k,T]=re(!0),O=j(t),N=j(t),_=j(x);Ne(()=>{N.current=t},[t]),Ne(()=>{_.current=x},[x]),Ne(()=>{let C=O.current;C!==t&&(O.current=t,w(C),n==="out-in"?(T(!1),h(!0)):(T(!0),h(!1)))},[t,n]);let y=C=>(S,L)=>{typeof l=="function"&&l(S,L),C===_.current&&(w(null),n==="out-in"&&(h(!1),T(!0)),n==="in-out"&&h(!1))},P=C=>(S,L)=>{typeof p=="function"&&p(S,L),n==="in-out"&&C===N.current&&_.current!=null&&h(!0)};return createComponent("div",{style:{position:"relative"}},m.map((C,S)=>{let L=C?.props?.key||S,Te=L===t?k:L===x?!v:!1;return createComponent(Zr,{...d,key:L,in:Te,timeout:r,classNames:o,mountOnEnter:s,unmountOnExit:c,appear:a,onEnter:u,onExiting:f,onEntered:P(L),onExited:y(L)},createComponent("div",{style:{position:"absolute",inset:0}},C))}))}function Ji({children:e}){return e}var kn={};te(kn,{addWrappedEventListener:()=>Qi,createSyntheticEvent:()=>zr,releaseSyntheticEvent:()=>Qr,wrapListener:()=>eo});typeof Element<"u"&&!Element.prototype.matches&&(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});typeof Event<"u"&&!Event.prototype.composedPath&&(Event.prototype.composedPath=function(){for(var e=[],t=this.target;t;)e.push(t),t=t.parentElement;return e.push(window),e});var qt=[],Zi=10,zi=["mouse","pen","touch"];function zr(e,t){let n=qt.length?qt.pop():{};n.nativeEvent=e,n.type=e.type,n.target=e.target||e.srcElement||null,n.currentTarget=t||e.currentTarget||null,n.timeStamp=e.timeStamp||Date.now(),n.defaultPrevented=!!e.defaultPrevented,n.isPropagationStopped=!1,n.isPersistent=!1,n.bubbles=!!e.bubbles,n.cancelable=!!e.cancelable,n.composed=!!e.composed,n.detail=e.detail,n.relatedTarget=e.relatedTarget||(e.fromElement?e.fromElement:null)||(e.toElement?e.toElement:null)||null,n.altKey=!!e.altKey,n.ctrlKey=!!e.ctrlKey,n.metaKey=!!e.metaKey,n.shiftKey=!!e.shiftKey,n.isDefaultPrevented=()=>n.defaultPrevented,n.preventDefault=()=>{e.preventDefault&&e.preventDefault(),n.defaultPrevented=!0},n.stopPropagation=()=>{e.stopPropagation&&e.stopPropagation(),n.isPropagationStopped=!0},n.persist=()=>{n.isPersistent=!0},n.key=e.key||null,n.code=e.code||null,n.which=e.which??e.keyCode??null,n.button=e.button??null,n.buttons=e.buttons??null,n.pointerId=e.pointerId??null,n.pointerType=e.pointerType??null,n.isPrimary=e.isPrimary??null,n.clientX=e.clientX??0,n.clientY=e.clientY??0,n.screenX=e.screenX??0,n.screenY=e.screenY??0,n.pageX=e.pageX??null,n.pageY=e.pageY??null,n.movementX=e.movementX??0,n.movementY=e.movementY??0,n.pressure=e.pressure??null,n.tiltX=e.tiltX??null,n.tiltY=e.tiltY??null,n.width=e.width??null,n.height=e.height??null,n.pointerEventsSupported=zi.includes(n.pointerType);try{let r=n.target;n.value=r&&"value"in r?r.value:void 0,n.checked=r&&"checked"in r?r.checked:void 0,n.selectionStart=r&&"selectionStart"in r?r.selectionStart:void 0,n.selectionEnd=r&&"selectionEnd"in r?r.selectionEnd:void 0}catch{n.value=void 0,n.checked=void 0,n.selectionStart=void 0,n.selectionEnd=void 0}return n.touches=e.touches||null,n.targetTouches=e.targetTouches||null,n.changedTouches=e.changedTouches||null,n.path=typeof e.composedPath=="function"?e.composedPath():[n.target],n.repeat=e.repeat??!1,n.location=e.location??0,n}function Qr(e){e&&!e.isPersistent&&(e.nativeEvent=null,e.type=null,e.target=null,e.currentTarget=null,e.timeStamp=0,e.defaultPrevented=!1,e.isPropagationStopped=!1,e.isPersistent=!1,e.isDefaultPrevented=null,e.preventDefault=null,e.stopPropagation=null,e.persist=null,e.bubbles=!1,e.cancelable=!1,e.composed=!1,e.detail=void 0,e.relatedTarget=null,e.altKey=!1,e.ctrlKey=!1,e.metaKey=!1,e.shiftKey=!1,e.key=null,e.code=null,e.which=null,e.button=null,e.buttons=null,e.pointerId=null,e.pointerType=null,e.isPrimary=null,e.clientX=0,e.clientY=0,e.screenX=0,e.screenY=0,e.pageX=null,e.pageY=null,e.movementX=0,e.movementY=0,e.pressure=null,e.tiltX=null,e.tiltY=null,e.width=null,e.height=null,e.value=void 0,e.checked=void 0,e.selectionStart=void 0,e.selectionEnd=void 0,e.touches=null,e.targetTouches=null,e.changedTouches=null,e.path=null,e.repeat=!1,e.location=0,qt.length<Zi&&qt.push(e))}function eo(e,t={}){let{stopPropagationOnTrueReturn:n=!1}=t;return function(o){let s=this||o.currentTarget||null,c=zr(o,s);try{let a=e(c);n&&a===!0&&c.stopPropagation()}finally{Qr(c)}}}function Qi(e,t,n,r={}){let o=eo(n,r);return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)}var Sn={};te(Sn,{Provider:()=>es,combineReducers:()=>rs,connect:()=>ns,useDispatch:()=>ts,useSelector:()=>to,useStore:()=>Ft});var Tn;function es({store:e,children:t}){return Tn??(Tn=rt(null)),createComponent(Tn.Provider,{value:e},t)}function Ft(){let e=ot(Tn);if(!e)throw new Error("Could not find Redux store in context. <Provider> is missing.");return e}function ts(){return Ft().dispatch}function to(e,t=(n,r)=>n===r){let n=Ft(),r=j(),o=j(e);o.current=e;let[s,c]=re(()=>e(n.getState()));return r.current=s,oe(()=>{function a(){let u=o.current(n.getState());t(r.current,u)||(r.current=u,c(u))}let l=n.subscribe(a);return a(),l},[n,t]),s}function ns(e,t){let n=!!e;return function(o){function s(c){let a=Ft(),l={dispatch:a.dispatch};if(typeof t=="function")l=t(a.dispatch,c);else if(typeof t=="object"&&t!==null){l={};let p=a.dispatch;for(let d in t){let m=t[d];l[d]=(...x)=>p(m(...x))}}let u={};e&&(u=to(d=>e(d,c),ce)||{});let f={...c,...u,...l};return createComponent(o,{...f})}return s}}function rs(e){let t=Object.keys(e);for(let n of t)if(typeof e[n]!="function")throw new Error(`combineReducers: reducer for key "${n}" is not a function`);return function(r={},o){let s=!1,c={};for(let a of t){let l=e[a],u=r[a],f=l(u,o);c[a]=f,s=s||f!==u}return s?c:r}}var An={};te(An,{animationFramePromise:()=>ys,clearInterval:()=>ps,clearTimeout:()=>fs,grabTimers:()=>ds,pauseTimers:()=>cs,releaseTimers:()=>hs,resetTimers:()=>ss,resumeTimers:()=>as,setInterval:()=>ls,setTimeout:()=>us,timeoutPromise:()=>ms});var Pe,Cn=0,ge=[],Ke=0,ke=new Map;function os(e){let t=0,n=ge.length-1;for(;t<=n;){let o=Math.floor((t+n)/2),s=ge[o][he];if(s===e)return[o,ge[o]];s<e?t=o+1:n=o-1}let r=[];return r[he]=e,ge.splice(t,0,r),[t,r]}function On(){if(Pe!==void 0||ge.length===0)return;Lilact._clearTimeout(Ke);let e=Math.max(0,ge[0][he]-Date.now());Ke=Lilact._setTimeout(is,e)}function $n(e,t=!1){let[n,r]=os(e[he]);return t||(Cn+=1,e[W]=Cn,ke.set(e[W],e)),r.push(e),n===0&&Pe===void 0&&On(),e[W]}function is(){Ke=-1;let e=Date.now(),t=[];for(;ge.length>0&&ge[0][he]-e<=0;)t.push(ge.shift());let n=[];for(let o of t)for(let s of o)n.push(s);let r;for(let o of n){if(o[$e]||ke.get(o[W])!==o){ke.delete(o[W]);continue}try{o[bt](...o[wt])}catch(s){r??(r=s)}if(o[$e]){ke.delete(o[W]);continue}ke.get(o[W])===o&&(o[yt]?(o[he]=Date.now()+o[gt],$n(o,!0)):ke.delete(o[W]))}On(),r!==void 0&&Lilact._setTimeout(()=>{throw r},0)}function ss(){Lilact._clearTimeout(Ke);for(let e of ke.values())e[$e]=!0;Pe=void 0,Cn=-1,ge=[],Ke=-1,ke=new Map}function cs(){Pe===void 0&&(Lilact._clearTimeout(Ke),Ke=-1,Pe=Date.now())}function as(){if(Pe===void 0)return;let e=Date.now()-Pe;for(let t of ge)t[he]+=e;Pe=void 0,On()}function us(e,t=0,...n){let r=Math.max(0,Number(t)||0);return $n({[bt]:e,[gt]:r,[he]:Date.now()+r,[yt]:!1,[$e]:!1,[wt]:n})}function ls(e,t=0,...n){let r=Math.max(0,Number(t)||0);return $n({[bt]:e,[gt]:r,[he]:Date.now()+r,[yt]:!0,[$e]:!1,[wt]:n})}function fs(e){let t=ke.get(e);t!==void 0?t[$e]=!0:Lilact._clearTimeout(e)}function ps(e){let t=ke.get(e);t!==void 0?t[$e]=!0:Lilact._clearInterval(e)}function ds(){globalThis.setTimeout=Lilact.setTimeout,globalThis.setInterval=Lilact.setInterval,globalThis.clearTimeout=Lilact.clearTimeout,globalThis.clearInterval=Lilact.clearInterval}function hs(){globalThis.setTimeout=Lilact._setTimeout,globalThis.setInterval=Lilact._setInterval,globalThis.clearTimeout=Lilact._clearTimeout,globalThis.clearInterval=Lilact._clearInterval}function ms(e=0,t=Lilact){let n,r,o,s=new Promise((c,a)=>{r=c,o=a,n=t.setTimeout(()=>{c()},e)});return s.proceed=()=>{t.clearTimeout(n),r()},s.cancel=()=>{t.clearTimeout(n),o()},s}function ys(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}var Ln={};te(Ln,{asError:()=>ro,blocksInfo:()=>Ss,error:()=>Cs,globalErrorHandler:()=>ks,scanBlockLabels:()=>Ts,traceError:()=>oo});function gs(){let e=navigator.userAgent;return/Safari/.test(e)&&!/Chrome|Chromium|CriOS|FxiOS|EdgiOS|OPiOS/.test(e)}function Wt(e){let t=Number(e);return Number.isFinite(t)?t:null}function ro(e){if(e instanceof Error)return e;if(e?.error instanceof Error)return e.error;let t=new Error(e?.message==null?String(e):String(e.message));if(e&&typeof e=="object"){e.name&&(t.name=e.name),e.stack&&(t.stack=e.stack);for(let n of Object.keys(e))n in t||(t[n]=e[n])}return t}function no(e){return e?.name==="JSXParserError"}function bs(e){if(typeof e!="string")return null;for(let t of e.split(/\r?\n/)){let n=t.match(/(eval:\/.*):(\d+):(\d+)/);if(n)return{path:n[1].replace(/^eval:\/+/,""),line:Number(n[2])-1,column:Number(n[3])-1}}return null}function ws(e){let t=Wt(e?.lineNumber??e?.lineno??e?.line),n=Wt(e?.columnNumber??e?.colno??e?.column),r=gs()?0:1;return{line:t==null?null:Math.max(0,t-r),column:n==null?null:Math.max(0,n-1)}}function xs(e){let t=e?.lilact_trace;return Array.isArray(t)?t[0]:t}function _s(e){let t=xs(e);return t==null?null:E.blocksInfo?.labels?.[t]}function Es(e,t,n){if(!Array.isArray(e)||!e.length||!Number.isFinite(t)||!Number.isFinite(n))return{line:t,column:n};let r=e.filter(u=>Array.isArray(u)&&u.length>=4&&u.slice(0,4).every(f=>Number.isFinite(Number(f)))).sort((u,f)=>Number(u[0])-Number(f[0])||Number(u[1])-Number(f[1]));if(!r.length)return{line:t,column:n};let o=r[0];for(let u of r){let f=Number(u[0]),p=Number(u[1]);if(f<t||f===t&&p<=n)o=u;else break}let s=Number(o[0]),c=Number(o[1]),a=Number(o[2]),l=Number(o[3]);return{line:a+(t===s?0:t-s),column:t===s?Math.max(0,l+n-c):l}}function oo(e,t){if(e?.isTraced)return e;let n=ro(e),r=n.lilact_source,o=no(n)?null:bs(n.stack),s=no(n)?{line:Wt(n.lineNumber),column:Wt(n.columnNumber)}:ws(n),c=r?.path||o?.path||n.fileName||t||null,a=!r?.path||!o?.path||r.path===o.path,l=a?o?.line??s.line??null:s.line??null,u=a?o?.column??s.column??null:s.column??null,f={fileName:c,lineNumber:l,columnNumber:u,message:n.message==null?String(n):String(n.message),name:n.name||"Error",stack:n.stack||null,lilact_source:r||null,_error:n,isTraced:!0},p=c&&Fe[c];if(p){let m=Es(p.mappings,f.lineNumber,f.columnNumber);f.lineNumber=m.line,f.columnNumber=m.column}let d=_s(n);return d&&(f.lineNumber==null||f.columnNumber==null||!f.fileName)&&(f.fileName||(f.fileName=d.path||t||null),f.lineNumber??(f.lineNumber=d.line),f.columnNumber??(f.columnNumber=d.column),f.label=d.desc),E.error=f,f}function Kt(e){return String(e??"").replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function vs(e,t){if(!e||!Number.isFinite(t))return null;let n=String(e.code??"").split(/\r?\n/);return{before:n[t-1]??"",current:n[t]??"",after:n[t+1]??""}}function ks(e){let t=e?.error instanceof Error?e.error:e?.reason!==void 0?e.reason:e,n=oo(t,e?.fileName||null),r=vs(Fe[n.fileName],n.lineNumber),o=cn(`
|
|
57
|
+
var tr=Object.defineProperty;var Eo=(e,t,n)=>t in e?tr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ee=(e,t)=>{for(var n in t)tr(e,n,{get:t[n],enumerable:!0})};var te=(e,t,n)=>Eo(e,typeof t!="symbol"?t+"":t,n);var nn={};ee(nn,{__DO_NOT_USE__ActionTypes:()=>ut,applyMiddleware:()=>$o,bindActionCreators:()=>Oo,combineReducers:()=>Co,compose:()=>or,createStore:()=>tn,isAction:()=>Ao,isPlainObject:()=>en,legacy_createStore:()=>To});function q(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var vo=typeof Symbol=="function"&&Symbol.observable||"@@observable",nr=vo,Qt=()=>Math.random().toString(36).substring(7).split("").join("."),ko={INIT:`@@redux/INIT${Qt()}`,REPLACE:`@@redux/REPLACE${Qt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Qt()}`},ut=ko;function en(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function tn(e,t,n){if(typeof e!="function")throw new Error(q(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(q(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(q(1));return n(tn)(e,t)}let r=e,o=t,s=new Map,c=s,a=0,l=!1;function u(){c===s&&(c=new Map,s.forEach((v,h)=>{c.set(h,v)}))}function f(){if(l)throw new Error(q(3));return o}function p(v){if(typeof v!="function")throw new Error(q(4));if(l)throw new Error(q(5));let h=!0;u();let S=a++;return c.set(S,v),function(){if(h){if(l)throw new Error(q(6));h=!1,u(),c.delete(S),s=null}}}function d(v){if(!en(v))throw new Error(q(7));if(typeof v.type>"u")throw new Error(q(8));if(typeof v.type!="string")throw new Error(q(17));if(l)throw new Error(q(9));try{l=!0,o=r(o,v)}finally{l=!1}return(s=c).forEach(S=>{S()}),v}function m(v){if(typeof v!="function")throw new Error(q(10));r=v,d({type:ut.REPLACE})}function x(){let v=p;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(q(11));function S(){let _=h;_.next&&_.next(f())}return S(),{unsubscribe:v(S)}},[nr](){return this}}}return d({type:ut.INIT}),{dispatch:d,subscribe:p,getState:f,replaceReducer:m,[nr]:x}}function To(e,t,n){return tn(e,t,n)}function So(e){Object.keys(e).forEach(t=>{let n=e[t];if(typeof n(void 0,{type:ut.INIT})>"u")throw new Error(q(12));if(typeof n(void 0,{type:ut.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(q(13))})}function Co(e){let t=Object.keys(e),n={};for(let c=0;c<t.length;c++){let a=t[c];typeof e[a]=="function"&&(n[a]=e[a])}let r=Object.keys(n),o,s;try{So(n)}catch(c){s=c}return function(a={},l){if(s)throw s;let u=!1,f={};for(let p=0;p<r.length;p++){let d=r[p],m=n[d],x=a[d],w=m(x,l);if(typeof w>"u"){let v=l&&l.type;throw new Error(q(14))}f[d]=w,u=u||w!==x}return u=u||r.length!==Object.keys(a).length,u?f:a}}function rr(e,t){return function(...n){return t(e.apply(this,n))}}function Oo(e,t){if(typeof e=="function")return rr(e,t);if(typeof e!="object"||e===null)throw new Error(q(16));let n={};for(let r in e){let o=e[r];typeof o=="function"&&(n[r]=rr(o,t))}return n}function or(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function $o(...e){return t=>(n,r)=>{let o=t(n,r),s=()=>{throw new Error(q(15))},c={getState:o.getState,dispatch:(l,...u)=>s(l,...u)},a=e.map(l=>l(c));return s=or(...a)(o.dispatch),{...o,dispatch:s}}}function Ao(e){return en(e)&&"type"in e&&typeof e.type=="string"}var ln={};ee(ln,{cache:()=>ri,css:()=>un,cx:()=>zo,flush:()=>Jo,getRegisteredStyles:()=>ei,hydrate:()=>Zo,injectGlobal:()=>mt,keyframes:()=>ti,merge:()=>Qo,sheet:()=>ni});var Ro=!1;function Io(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Lo(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ir=(function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!Ro:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Lo(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Io(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})();var F="-ms-",lt="-moz-",A="-webkit-",Ct="comm",Be="rule",Ve="decl";var sr="@import";var Ot="@keyframes";var cr="@layer";var ar=Math.abs,je=String.fromCharCode,ur=Object.assign;function lr(e,t){return N(e,0)^45?(((t<<2^N(e,0))<<2^N(e,1))<<2^N(e,2))<<2^N(e,3):0}function $t(e){return e.trim()}function rn(e,t){return(e=t.exec(e))?e[0]:e}function O(e,t,n){return e.replace(t,n)}function ft(e,t){return e.indexOf(t)}function N(e,t){return e.charCodeAt(t)|0}function Re(e,t,n){return e.slice(t,n)}function G(e){return e.length}function Xe(e){return e.length}function Ye(e,t){return t.push(e),e}function on(e,t){return e.map(t).join("")}var At=1,Ge=1,fr=0,H=0,P=0,Je="";function pt(e,t,n,r,o,s,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:At,column:Ge,length:c,return:""}}function Ze(e,t){return ur(pt("",null,null,"",null,null,0),e,{length:-e.length},t)}function pr(){return P}function dr(){return P=H>0?N(Je,--H):0,Ge--,P===10&&(Ge=1,At--),P}function J(){return P=H<fr?N(Je,H++):0,Ge++,P===10&&(Ge=1,At++),P}function ae(){return N(Je,H)}function dt(){return H}function ze(e,t){return Re(Je,e,t)}function He(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Rt(e){return At=Ge=1,fr=G(Je=e),H=0,[]}function It(e){return Je="",e}function Qe(e){return $t(ze(H-1,sn(e===91?e+2:e===40?e+1:e)))}function hr(e){for(;(P=ae())&&P<33;)J();return He(e)>2||He(P)>3?"":" "}function mr(e,t){for(;--t&&J()&&!(P<48||P>102||P>57&&P<65||P>70&&P<97););return ze(e,dt()+(t<6&&ae()==32&&J()==32))}function sn(e){for(;J();)switch(P){case e:return H;case 34:case 39:e!==34&&e!==39&&sn(P);break;case 40:e===41&&sn(e);break;case 92:J();break}return H}function yr(e,t){for(;J()&&e+P!==57;)if(e+P===84&&ae()===47)break;return"/*"+ze(t,H-1)+"*"+je(e===47?e:J())}function gr(e){for(;!He(ae());)J();return ze(e,H)}function xr(e){return It(Lt("",null,null,null,[""],e=Rt(e),0,[0],e))}function Lt(e,t,n,r,o,s,c,a,l){for(var u=0,f=0,p=c,d=0,m=0,x=0,w=1,v=1,h=1,S=0,g="",_=o,$=s,T=r,k=g;v;)switch(x=S,S=J()){case 40:if(x!=108&&N(k,p-1)==58){ft(k+=O(Qe(S),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:k+=Qe(S);break;case 9:case 10:case 13:case 32:k+=hr(x);break;case 92:k+=mr(dt()-1,7);continue;case 47:switch(ae()){case 42:case 47:Ye(No(yr(J(),dt()),t,n),l);break;default:k+="/"}break;case 123*w:a[u++]=G(k)*h;case 125*w:case 59:case 0:switch(S){case 0:case 125:v=0;case 59+f:h==-1&&(k=O(k,/\f/g,"")),m>0&&G(k)-p&&Ye(m>32?wr(k+";",r,n,p-1):wr(O(k," ","")+";",r,n,p-2),l);break;case 59:k+=";";default:if(Ye(T=br(k,t,n,u,f,o,a,g,_=[],$=[],p),s),S===123)if(f===0)Lt(k,t,T,T,_,s,p,a,$);else switch(d===99&&N(k,3)===110?100:d){case 100:case 108:case 109:case 115:Lt(e,T,T,r&&Ye(br(e,T,T,0,0,o,a,g,o,_=[],p),$),o,$,p,a,r?_:$);break;default:Lt(k,T,T,T,[""],$,0,a,$)}}u=f=m=0,w=h=1,g=k="",p=c;break;case 58:p=1+G(k),m=x;default:if(w<1){if(S==123)--w;else if(S==125&&w++==0&&dr()==125)continue}switch(k+=je(S),S*w){case 38:h=f>0?1:(k+="\f",-1);break;case 44:a[u++]=(G(k)-1)*h,h=1;break;case 64:ae()===45&&(k+=Qe(J())),d=ae(),f=p=G(g=k+=gr(dt())),S++;break;case 45:x===45&&G(k)==2&&(w=0)}}return s}function br(e,t,n,r,o,s,c,a,l,u,f){for(var p=o-1,d=o===0?s:[""],m=Xe(d),x=0,w=0,v=0;x<r;++x)for(var h=0,S=Re(e,p+1,p=ar(w=c[x])),g=e;h<m;++h)(g=$t(w>0?d[h]+" "+S:O(S,/&\f/g,d[h])))&&(l[v++]=g);return pt(e,t,n,o===0?Be:a,l,u,f)}function No(e,t,n){return pt(e,t,n,Ct,je(pr()),Re(e,2,-2),0)}function wr(e,t,n,r){return pt(e,t,n,Ve,Re(e,0,r),Re(e,r+1,-1),r)}function De(e,t){for(var n="",r=Xe(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function _r(e,t,n,r){switch(e.type){case cr:if(e.children.length)break;case sr:case Ve:return e.return=e.return||e.value;case Ct:return"";case Ot:return e.return=e.value+"{"+De(e.children,r)+"}";case Be:e.value=e.props.join(",")}return G(n=De(e.children,r))?e.return=e.value+"{"+n+"}":""}function Er(e){var t=Xe(e);return function(n,r,o,s){for(var c="",a=0;a<t;a++)c+=e[a](n,r,o,s)||"";return c}}function vr(e){return function(t){t.root||(t=t.return)&&e(t)}}function kr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Po=function(t,n,r){for(var o=0,s=0;o=s,s=ae(),o===38&&s===12&&(n[r]=1),!He(s);)J();return ze(t,H)},jo=function(t,n){var r=-1,o=44;do switch(He(o)){case 0:o===38&&ae()===12&&(n[r]=1),t[r]+=Po(H-1,n,r);break;case 2:t[r]+=Qe(o);break;case 4:if(o===44){t[++r]=ae()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=je(o)}while(o=J());return t},Do=function(t,n){return It(jo(Rt(t),n))},Tr=new WeakMap,Mo=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Tr.get(r))&&!o){Tr.set(t,!0);for(var s=[],c=Do(n,s),a=r.props,l=0,u=0;l<c.length;l++)for(var f=0;f<a.length;f++,u++)t.props[u]=s[l]?c[l].replace(/&\f/g,a[f]):a[f]+" "+c[l]}}},Uo=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Sr(e,t){switch(lr(e,t)){case 5103:return A+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return A+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return A+e+lt+e+F+e+e;case 6828:case 4268:return A+e+F+e+e;case 6165:return A+e+F+"flex-"+e+e;case 5187:return A+e+O(e,/(\w+).+(:[^]+)/,A+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return A+e+F+"flex-item-"+O(e,/flex-|-self/,"")+e;case 4675:return A+e+F+"flex-line-pack"+O(e,/align-content|flex-|-self/,"")+e;case 5548:return A+e+F+O(e,"shrink","negative")+e;case 5292:return A+e+F+O(e,"basis","preferred-size")+e;case 6060:return A+"box-"+O(e,"-grow","")+A+e+F+O(e,"grow","positive")+e;case 4554:return A+O(e,/([^-])(transform)/g,"$1"+A+"$2")+e;case 6187:return O(O(O(e,/(zoom-|grab)/,A+"$1"),/(image-set)/,A+"$1"),e,"")+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,A+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,A+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+A+e+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,A+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(G(e)-1-t>6)switch(N(e,t+1)){case 109:if(N(e,t+4)!==45)break;case 102:return O(e,/(.+:)(.+)-([^]+)/,"$1"+A+"$2-$3$1"+lt+(N(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ft(e,"stretch")?Sr(O(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(N(e,t+1)!==115)break;case 6444:switch(N(e,G(e)-3-(~ft(e,"!important")&&10))){case 107:return O(e,":",":"+A)+e;case 101:return O(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+A+(N(e,14)===45?"inline-":"")+"box$3$1"+A+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(N(e,t+11)){case 114:return A+e+F+O(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return A+e+F+O(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return A+e+F+O(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return A+e+F+e+e}return e}var qo=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ve:t.return=Sr(t.value,t.length);break;case Ot:return De([Ze(t,{value:O(t.value,"@","@"+A)})],o);case Be:if(t.length)return on(t.props,function(s){switch(rn(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return De([Ze(t,{props:[O(s,/:(read-\w+)/,":"+lt+"$1")]})],o);case"::placeholder":return De([Ze(t,{props:[O(s,/:(plac\w+)/,":"+A+"input-$1")]}),Ze(t,{props:[O(s,/:(plac\w+)/,":"+lt+"$1")]}),Ze(t,{props:[O(s,/:(plac\w+)/,F+"input-$1")]})],o)}return""})}},Fo=[qo],Cr=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(w){var v=w.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||Fo,s={},c,a=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var v=w.getAttribute("data-emotion").split(" "),h=1;h<v.length;h++)s[v[h]]=!0;a.push(w)});var l,u=[Mo,Uo];{var f,p=[_r,vr(function(w){f.insert(w)})],d=Er(u.concat(o,p)),m=function(v){return De(xr(v),d)};l=function(v,h,S,g){f=S,m(v?v+"{"+h.styles+"}":h.styles),g&&(x.inserted[h.name]=!0)}}var x={key:n,sheet:new ir({key:n,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:l};return x.sheet.hydrate(a),x};function Or(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var $r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Ko=!1,Wo=/[A-Z]|^ms/g,Bo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Lr=function(t){return t.charCodeAt(1)===45},Ar=function(t){return t!=null&&typeof t!="boolean"},cn=kr(function(e){return Lr(e)?e:e.replace(Wo,"-$&").toLowerCase()}),Rr=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Bo,function(r,o,s){return xe={name:o,styles:s,next:xe},o})}return $r[t]!==1&&!Lr(t)&&typeof n=="number"&&n!==0?n+"px":n},Vo="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ht(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return xe={name:o.name,styles:o.styles,next:xe},o.name;var s=n;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)xe={name:c.name,styles:c.styles,next:xe},c=c.next;var a=s.styles+";";return a}return Xo(e,t,n)}case"function":{if(e!==void 0){var l=xe,u=n(e);return xe=l,ht(e,t,u)}break}}var f=n;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function Xo(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ht(e,t,n[o])+";";else for(var s in n){var c=n[s];if(typeof c!="object"){var a=c;t!=null&&t[a]!==void 0?r+=s+"{"+t[a]+"}":Ar(a)&&(r+=cn(s)+":"+Rr(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&Ko)throw new Error(Vo);if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var l=0;l<c.length;l++)Ar(c[l])&&(r+=cn(s)+":"+Rr(s,c[l])+";");else{var u=ht(e,t,c);switch(s){case"animation":case"animationName":{r+=cn(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}}return r}var Ir=/label:\s*([^\s;{]+)\s*(;|$)/g,xe;function Nt(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";xe=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=ht(n,t,s);else{var c=s;o+=c[0]}for(var a=1;a<e.length;a++)if(o+=ht(n,t,e[a]),r){var l=s;o+=l[a]}Ir.lastIndex=0;for(var u="",f;(f=Ir.exec(o))!==null;)u+="-"+f[1];var p=Or(o)+u;return{name:p,styles:o,next:xe}}var Yo=!0;function an(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Go=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Yo===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Nr=function(t,n,r){Go(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Pr(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function jr(e,t,n){var r=[],o=an(e,r,n);return r.length<2?n:o+t(r)}var Dr=function(t){var n=Cr(t);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Nt(u,n.registered,void 0);return Nr(n,p,!1),n.key+"-"+p.name},o=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Nt(u,n.registered),d="animation-"+p.name;return Pr(n,{name:p.name,styles:"@keyframes "+d+"{"+p.styles+"}"}),d},s=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Nt(u,n.registered);Pr(n,p)},c=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];return jr(n.registered,r,Ho(u))};return{css:r,cx:c,injectGlobal:s,keyframes:o,hydrate:function(l){l.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:an.bind(null,n.registered),merge:jr.bind(null,n.registered,r)}},Ho=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=e(o);else{s="";for(var c in o)o[c]&&c&&(s&&(s+=" "),s+=c)}break}default:s=o}s&&(n&&(n+=" "),n+=s)}}return n};var _e=Dr({key:"css"}),Jo=_e.flush,Zo=_e.hydrate,zo=_e.cx,Qo=_e.merge,ei=_e.getRegisteredStyles,mt=_e.injectGlobal,ti=_e.keyframes,un=_e.css,ni=_e.sheet,ri=_e.cache;var mn={};ee(mn,{Children:()=>Me,Fragment:()=>Mr,Portal:()=>Ur,deepEqual:()=>dn,eval_num:()=>li,findDOMNode:()=>ii,forwardRef:()=>hn,getComponentByPointer:()=>si,id_num:()=>ui,isAsync:()=>ci,isClass:()=>Ue,isEmpty:()=>B,isError:()=>ai,isThenable:()=>Pt,isValidComponent:()=>tt,isValidElement:()=>oi,shallowEqual:()=>se,toBool:()=>jt});var pn={};ee(pn,{ARGS:()=>xt,CALLBACK:()=>wt,CHILD_CLASS_ADDENDUM:()=>fe,CLEARED:()=>Ce,COMPONENT:()=>et,CORE:()=>y,DUE:()=>pe,IDX:()=>W,INTERVAL:()=>bt,IS_ZOMBIE:()=>fn,LAZY:()=>yt,MEMOIZED:()=>Ee,REPEAT:()=>gt,TEXT:()=>Z});var[y,et,Z,fn,W,fe,Ee,yt,pe,gt,Ce,bt,wt,xt]=[Symbol.for("LILACT:CORE"),Symbol.for("LILACT:COMPONENT"),Symbol.for("LILACT:TEXT"),Symbol.for("LILACT:IS_ZOMBIE"),Symbol.for("LILACT:IDX"),Symbol.for("LILACT:CHILD_CLASS_ADDENDUM"),Symbol.for("LILACT:MEMOIZED"),Symbol.for("LILACT:LAZY"),Symbol.for("LILACT:TIMERS:DUE"),Symbol.for("LILACT:TIMERS:REPEAT"),Symbol.for("LILACT:TIMERS:CLEARED"),Symbol.for("LILACT:TIMERS:INTERVAL"),Symbol.for("LILACT:TIMERS:CALLBACK"),Symbol.for("LILACT:TIMERS:ARGS")];var ve=e=>{let t=Object.prototype.toString.call(e).toLowerCase();return/\[object (.*)]/g.exec(t)[1]},tt=e=>!!(e&&(e[y]!==void 0||e[TEXT]!==void 0)),oi=tt,ii=e=>{if(!e[y]?.element?.parentNode)throw new Error("findDOMNode only works on mounted components.");return e[y].element};function Mr({children:e}){return e}Mr.displayName="Fragment";function Ur({children:e,view:t}){return this[y].portal=t,e}Ur.displayName="Portal";var Me={_isNil(e){return e==null},_flattenInto(e,t){if(!this._isNil(t)){if(Array.isArray(t)){for(let n of t)this._flattenInto(e,n);return}e.push(t)}},toArray(e){let t=[];if(!e)return t;for(let n of e)this._flattenInto(t,n);return t},count(e){return this.toArray(e).length},only(e){let t=this.toArray(e);if(t.length!==1)throw new Error(t.length===0?"Expected exactly one child, but received none.":"Expected exactly one child, but received more than one.");return t[0]},map(e,t){let n=this.toArray(e),r=[];for(let o=0;o<n.length;o++)r.push(t(n[o],o));return r},forEach(e,t){let n=this.toArray(e);for(let r=0;r<n.length;r++)t(n[r],r)},find(e,t){let n=this.toArray(e);for(let r=0;r<n.length;r++)if(t(n[r],r))return n[r]},pickOne(e,t){let n=this.toArray(e),r,o=0;for(let s=0;s<n.length&&!(t(n[s],s)&&(o++,r=n[s],o>1));s++);if(o!==1)throw new Error(o===0?"pickOne expected exactly one matching child, but matched none.":"pickOne expected exactly one matching child, but matched multiple.");return r},first(e){return this.toArray(e)[0]},last(e){let t=this.toArray(e);return t.length?t[t.length-1]:void 0}},hn=e=>{let t=function(n,r){return e({...n,ref:void 0},r)};return t.displayName="Forwarded "+e.displayName,t};function si(){let e,t=new Promise((r,o)=>{e=r});function n(r){r.stopImmediatePropagation(),window.removeEventListener("click",n,!0);let o=r.target;for(;!o[et]&&o.parentNode;)o=o.parentNode;return e(o[et]),!1}return window.addEventListener("click",n,!0),t}function B(e){for(let t in e)return!1;return!0}var se=(e,t,n)=>{if(Object.is(e,t))return!0;if(ve(e)!==ve(t))return!1;if(ve(e)==="array")return e.length!==t.length?!1:e.every((r,o)=>o===n||Object.is(r,t[o]));if(ve(e)==="object"){let r=Object.keys(e).filter(s=>s!==n),o=Object.keys(t).filter(s=>s!==n);return r.length!==o.length?!1:r.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&Object.is(e[s],t[s]))}return ve(e)==="date"?e.getTime()===t.getTime():Object.is(e,t)};function dn(e,t){return ve(e)!==ve(t)?!1:ve(e)==="array"?e.length!==t.length?!1:e.every((n,r)=>dn(n,t[r])):ve(e)==="object"?Object.keys(e).length!==Object.keys(t).length?!1:Object.keys(e).every(n=>dn(e[n],t[n])):ve(e)==="date"?e.getTime()===t.getTime():e===t}function Ue(e){return!(e&&e.constructor===Function)||e.prototype===void 0?!1:Function.prototype!==Object.getPrototypeOf(e)?!0:Object.getOwnPropertyNames(e.prototype).length>1}function ci(e){return typeof e=="function"&&e.constructor&&e.constructor.name==="AsyncFunction"}function Pt(e){return e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function ai(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function jt(e){if(typeof e=="boolean")return e;if(typeof e=="number")return e!==0;if(typeof e=="string"){if(e=e.trim().toLowerCase(),e==="true")return!0;if(e==="false")return!1}return!!e}var ui=Math.floor(Math.random()*1e4),li=0;function z(e){return e==null}function V(e){return e||"<<anonymous>>"}function fi(e){return e&&(e.displayName||e.name)||"Unknown"}function qr(e){return e==null||e===!1||e===!0||typeof e=="string"||typeof e=="number"||tt(e)?!0:Array.isArray(e)?e.every(qr):!1}function pi(e){return typeof e=="function"||typeof e=="string"}function de(e){let t=function(r,o,s,c,a,l){let u=r[o];if(z(u)||e(u))return null;let f=e.expectedType||"the correct type",p=u===null?"null":typeof u;return new Error(`Invalid ${c} \`${a}\` of type \`${p}\` supplied to \`${V(s)}\`, expected \`${f}\`.`)};return t.isRequired=function(r,o,s,c,a){let l=r[o];return z(l)?new Error(`The ${c} \`${a}\` is marked as required in \`${V(s)}\`, but its value is \`${l}\`.`):t(r,o,s,c,a)},t}function di(){let e={};e.any=(function(){let r=function(s,c,a,l,u){return null};return r.isRequired=function(){return null},r})(),e.array=de(r=>Array.isArray(r)),e.array.expectedType="array",e.bool=de(r=>typeof r=="boolean"),e.bool.expectedType="boolean",e.func=de(r=>typeof r=="function"),e.func.expectedType="function",e.number=de(r=>typeof r=="number"&&!Number.isNaN(r)),e.number.expectedType="number",e.object=de(r=>typeof r=="object"&&r!==null&&!Array.isArray(r)),e.object.expectedType="object",e.string=de(r=>typeof r=="string"),e.string.expectedType="string",e.symbol=de(r=>typeof r=="symbol"),e.symbol.expectedType="symbol",e.component=de(r=>tt(r)),e.component.expectedType="component",e.element=de(r=>tt(r)),e.element.expectedType="element",e.node=de(r=>qr(r)),e.node.expectedType="node",e.elementType=de(r=>pi(r)),e.elementType.expectedType="elementType",e.oneOf=function(o){let s=Array.isArray(o)?o:[],c=function(l,u,f,p,d){let m=l[u];if(z(m))return null;for(let w=0;w<s.length;w++)if(m===s[w])return null;let x=m===null?"null":typeof m;return new Error(`Invalid ${p} \`${d}\` of value \`${String(m)}\` supplied to \`${V(f)}\`, expected one of [${s.map(String).join(", ")}] (received type \`${x}\`).`)};return c.isRequired=function(l,u,f,p,d){return z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${V(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.oneOfType=function(o){let s=o||[],c=function(l,u,f,p,d){let m=l[u];if(z(m))return null;for(let x=0;x<s.length;x++)if(s[x](l,u,f,p,d)===null)return null;return new Error(`Invalid ${p} \`${d}\` supplied to \`${V(f)}\` (none of the allowed types matched).`)};return c.isRequired=function(l,u,f,p,d){return z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${V(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.arrayOf=function(o){let s=o,c=function(l,u,f,p,d){let m=l[u];if(z(m))return null;if(!Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${V(f)}\`, expected an array.`);for(let x=0;x<m.length;x++){let w=`${d}[${x}]`,v=s({[u]:m[x]},u,f,p,w);if(v!==null)return v}return null};return c.isRequired=function(l,u,f,p,d){return z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${V(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.objectOf=function(o){let s=o,c=function(l,u,f,p,d){let m=l[u];if(z(m))return null;if(typeof m!="object"||m===null||Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${V(f)}\`, expected an object.`);let x=Object.keys(m);for(let w=0;w<x.length;w++){let v=x[w],h=`${d}.${v}`,S=s({[u]:m[v]},u,f,p,h);if(S!==null)return S}return null};return c.isRequired=function(l,u,f,p,d){return z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${V(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c};function t(r,{exact:o}){let s=r?Object.keys(r):[],c=function(l,u,f,p,d){let m=l[u];if(z(m))return null;if(typeof m!="object"||m===null||Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${V(f)}\`, expected an object.`);if(o){let w=Object.keys(m);for(let v=0;v<w.length;v++){let h=w[v];if(!Object.prototype.hasOwnProperty.call(r,h)){let S=`${d}.${h}`;return new Error(`Invalid ${p} \`${S}\` supplied to \`${V(f)}\`: extra key \`${h}\` is not allowed by exact().`)}}}for(let w=0;w<s.length;w++){let v=s[w],h=r[v],S=m[v],g=`${d}.${v}`;if(z(S)){let $=h({[u]:S},u,f,p,g);if($!==null)return $;continue}let _=h({[u]:S},u,f,p,g);if(_!==null)return _}return null};return c.isRequired=function(l,u,f,p,d){return z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${V(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c}e.shape=function(o){return t(o,{exact:!1})},e.exact=function(o){return t(o,{exact:!0})},e.instanceOf=function(o){let s=function(a,l,u,f,p){let d=a[l];return z(d)||d instanceof o?null:new Error(`Invalid ${f} \`${p}\` supplied to \`${V(u)}\`: expected instance of \`${fi(o)}\`.`)};return s.isRequired=function(a,l,u,f,p){return z(a[l])?new Error(`The ${f} \`${p}\` is marked as required in \`${V(u)}\`, but its value is \`${a[l]}\`.`):s(a,l,u,f,p)},s};let n=new Set;return e.checkPropTypes=function(o,s,c,a){if(!o)return;let l=o,u=V(a),f=Object.keys(l);for(let p=0;p<f.length;p++){let d=f[p],m=l[d];if(typeof m!="function")continue;let w=m(s||{},d,u,c,d);if(w instanceof Error){let v=`${u}|${c}|${d}|${w.message}`;if(n.has(v))continue;n.add(v),typeof console<"u"&&console.error&&console.error(`Warning: Failed prop type: ${w.message}`)}}},e}var nt=di();var wn={};ee(wn,{Component:()=>Ie,HTMLComponent:()=>_t,RootComponent:()=>Mt,boolean_html_attributes_set:()=>Xr,capture_events_set:()=>qt,cloneComponent:()=>Wr,cloneElement:()=>Ei,createComponent:()=>bn,createElement:()=>Ti,createPortal:()=>_i,createRoot:()=>Kr,current_component:()=>Si,effect_timeout:()=>Ni,events_set:()=>Ut,hotReloadRoot:()=>xi,insertion_effects:()=>Ri,layout_effects:()=>Ai,length_css_attributes_set:()=>Vr,memo:()=>ki,passive_effects:()=>Ii,processEffects:()=>Fr,render:()=>vi,replaceComponentEntity:()=>gn,roots:()=>$i,special_attributes:()=>Br,update_cbs:()=>Oi,update_interval_margin:()=>Pi,update_set:()=>Ci,update_timeout:()=>Li});var hi="http://www.w3.org/2000/svg";function Dt(e){return e?.[Ee]?e.component:e}function gn(e,t){if(!e||typeof t!="function")return!1;let n=Dt(e.entity),r=Dt(t);if(n===r)return!0;let o=e.component;if(!o)return!1;let s=Ue(n),c=Ue(r);return s!==c?!1:(c?Object.setPrototypeOf(o,r.prototype):o.render=r,e.entity=r,!0)}var yn=class{constructor(t){te(this,"owner");te(this,"current_map",new Map);te(this,"new_map",new Map);te(this,"pick_index",0);this.owner=t}pick(t,n,r){let o,s=this.current_map.get(t);if(s&&s.length>s[W]){o=s[s[W]],s[W]++;let c=Dt(o.entity),a=Dt(r);typeof c=="function"&&typeof a=="function"&&Ue(c)!==Ue(a)?o=n():a&&gn(o,a)}else o=n();return s=this.new_map.get(t),s?s.push(o):(s=[o],this.new_map.set(t,s),s[W]=0),o&&(o.parent??(o.parent=this.owner)),o}commit(){this.current_map.forEach(t=>{t.slice(t[W]).forEach(n=>{n.cleanup?n.cleanup():n.element&&!n.portal&&n.element.parentElement.removeChild(n.element)})}),this.current_map=this.new_map,this.new_map=new Map}},rt=class{constructor(t,n){te(this,"component");te(this,"props");this.component=t,this.props=n||{}}apply(t=this.props,n=this.next_state||this.state){try{let r=!0;if(this.outlet&&this?.[Ee]&&se(this.props,t,"children")&&se(this.props?.children,t?.children)&&(r=!1),r){if(this.entity?.propTypes?nt.checkPropTypes(this.entity.propTypes,this.props,"prop",this.entity.name):this.component?.propTypes&&nt.checkPropTypes(this.component.propTypes,this.props,"prop",this.component.name),typeof n=="function"&&(n=n(this.state)),this.component.constructor.defaultProps&&(t={...this.component.constructor.defaultProps,...t}),(this?.parent?.component?.context||this?.parent?.component?.getChildContext)&&(this.context={...this.parent.component.context,...this.parent.component.getChildContext?.()},this.component.constructor.contextTypes&&nt.checkPropTypes(this.component.constructor.contextTypes,this.context,"context",this.entity.name)),this.component.shouldComponentUpdate&&!this.component.shouldComponentUpdate(n,t,this.context))return;typeof this.entity=="string"&&(this.element instanceof Element||(this.is_svg||this.container.is_svg?(this.is_svg=!0,this.element=document.createElementNS(hi,this.entity)):this.element=document.createElement(this.entity),t?.defaultValue&&(this.element.value=String(t.defaultValue).slice(0,t?.maxLength)),t?.defaultChecked&&(this.element.checked=t.defaultChecked)),this.element[et]=this.component),t.ref&&(typeof t.ref=="function"?t.ref(this.element||this.component):t.ref.current=this.element||this.component),t!==void 0&&this.component.componentWillReceiveProps&&this.component.componentWillReceiveProps(t),this.component.componentWillUpdate&&this.component.componentWillUpdate(t,n);let o=this.state,s=this.props;if(this.element&&this.updateElementProps(t),this.props=t,typeof this.next_state=="object")this.state?Object.assign(this.state,n):this.state={...n};else if(this.next_state!==void 0)throw new Error("Component.setState only accepts objects or functions is new state.");this.next_state&&delete this.next_state,this.hooks!==void 0?(this.hook_index=0,E.current_component=[this,E.current_component],this.outlet=this.component.render(t,{current:this.element||this.component}),E.current_component=E.current_component[1]):this.outlet=this.component.render({current:this.element||this.component}),this?.portal&&(this.element=this.portal),this.outlet?.constructor?.name!=="Array"?this.outlet=[this.outlet]:this.outlet=[...this.outlet];for(let c=0;c<this.outlet.length;c++){let a=this.outlet[c];if(a==null||typeof a=="boolean")this.outlet.splice(c,1),c--;else if(typeof a=="function"){let l=this.childFunctionHandler(a);this.outlet.splice(c,1,l),c--}else if(a.constructor.name==="Array")this.outlet.splice(c,1,...a),c--;else{let l=gi(this,a);this.outlet[c]=l,l[Z]===void 0?(l.container=this.element?this:this.container,l.apply(a.props)):l.element?l[Z]!==a[Z]&&(l.element.textContent=a[Z],l[Z]=a[Z]):(l.element=document.createTextNode(a[Z]),l[Z]=a[Z])}}this.cache&&this.cache.commit(),this.element&&this.arrangeOutlet(),this.component.componentDidUpdate&&this.component.componentDidUpdate(s,o,this.last_snapshot),this.last_snapshot&&delete this.last_snapshot}}catch(r){mi(this,r)}}async cleanup(){try{let t=[];if(this.props?.ref&&(typeof this.props.ref=="function"?this.props.ref(null):this.props.current=null),this.component.componentWillUnmount&&this.component.componentWillUnmount(),this?.element?.parentElement&&!this.portal&&this.element.parentElement.removeChild(this.element),this.outlet!==void 0)for(let n of this.outlet)n.cleanup&&t.push(n.cleanup());if(this.props?.children!==void 0)for(let n of this.props.children)n.cleanup&&t.push(n.cleanup());if(this.hooks!==void 0)for(let n of this.hooks)n.cleanup&&t.push(n.cleanup());await Promise.all(t)}catch(t){throw t}}updateElementProps(t,n=!1){this.entity==="input"?(t?.type||(t.type="text"),t.type!==this.element.type&&(this.element.type=t.type),t?.value!==void 0&&t?.value!==this.element.value&&(t.value===void 0&&(t.value=""),this.element.value=String(t.value).slice(0,t?.maxLength))):this.entity==="textarea"?t?.value!==this.element.value&&(this.element.value=String(t.value).slice(0,t?.maxLength)):this.entity==="select"?typeof t.value=="string"&&t.value!==this.element.value&&(this.element.value=t.value):this.entity==="option"&&(this.container?.props?.value?.constructor?.name==="Array"?t.selected=this.container.props.value.indexOf(t.value)!==-1:typeof this.container?.props?.value=="string"&&(t.selected=this.container.props.value===t.value));for(let r in this.props){let o=r.toLowerCase();t.hasOwnProperty(r)||(Ut.has(o)?this.event_detachers[o]():this.element.removeAttribute(r))}for(let r in t){let o=r.toLowerCase();if(!Br.has(o)&&(t===this.props||!E.defaultIsEqual(t[r],this.props[r])||n))if(Ut.has(o))this.event_detachers??(this.event_detachers={}),this.event_detachers[o]?.(),this.event_detachers[o]=E.addWrappedEventListener(this.element,o.substring(2),t[r]);else if(qt.hasOwnProperty(o)){let s=qt[o];this.event_detachers??(this.event_detachers={}),this.event_detachers[o]?.(),this.event_detachers[o]=E.addWrappedEventListener(this.element,s.substring(2),t[r],{capture:!0})}else if(r==="style")if(typeof t.style=="string")this.element.style=t.style;else{if(this.props?.style)if(typeof this.props.style=="string")this.element.style="";else for(let s in this.props.style)t.style.hasOwnProperty(s)||(this.element.style[s]="");for(let s in t.style)Vr.has(s)&&isFinite(t.style[s])&&(t.style[s]+="px");Object.assign(this.element.style,t.style)}else if(Xr.has(r)){let s=jt(t[r]);s!==this.element[r]&&(this.element[r]=s)}else r==="autoFocus"?this.element.autofocus=jt(t[r]):r==="htmlFor"?this.element.setAttribute("for",t[r]):(o!=="value"||["input","textarea","select"].indexOf(this.entity)===-1)&&this.element.setAttribute(o,t[r])}t?.action?this.element.onsubmit=t.action:this.element.onsubmit=void 0,this.updateElementClass(t)}updateElementClass(t=this.props){let n=t?.className;if(n??(n=t?.class?t.class:""),this?.parent?.[fe]&&(n+=" "+this?.parent?.[fe]),n.length>0){n=n.split(/\s+/g);for(let r of Array.from(this.element.classList))n.indexOf(r)===-1&&this.element.classList.remove(r);for(let r of n)r.length>0&&this.element.classList.add(r)}else delete this.element.className}scanZombies(t,n){let r=t.element.childNodes;for(;r[t.insert_index]&&r[t.insert_index][fn]&&r[t.insert_index]!==n;)t.insert_index++}appendElement(t){t.portal||(this.scanZombies(t.container,t.element),t?.element.parentNode===null?(t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),t?.component?.componentDidMount&&t.component.componentDidMount()):t.container.element.childNodes[t.container.insert_index]!==t.element&&t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),t.container.insert_index++)}arrangeOutlet(){this.insert_index=0;for(let t of this.outlet)t&&(t.element?(t.container=this.element?this:this.container,t.container.appendElement(t)):(t.arrangeOutlet&&t.outlet&&t.arrangeOutlet(),t?.mounted||(t.mounted=!0,t?.component?.componentDidMount&&t.component.componentDidMount())))}childFunctionHandler(t){return t(this.state)}},mi=(e,t)=>{let n=t?.error instanceof Error?t.error:t?.reason!==void 0?t.reason:t,r=E.isThenable(t)?t:E.traceError(n,t?.fileName||null),o=[e];for(;e&&!e.component?.componentDidCatch;)e=e.parent,e&&o.push(e);e?.component?.componentDidCatch&&e.entity?.getDerivedStateFromError&&e.component.setState(e.entity.getDerivedStateFromError.call(e,r));let s=Array.prototype.map.call(o,c=>`in ${typeof c.component.displayName=="function"?c.component.displayName():c.component.displayName}`).join(`
|
|
58
|
+
`);if(r.componentStack=o,r.componentStackLog=s,e?.component?.componentDidCatch)e.component.componentDidCatch(r,{componentStack:o,componentStackLog:s});else throw t};function yi(e,t){let n=e;if(e[Z]===void 0){let r=e.entity,o=!1;if(typeof r=="object")if(r[Ee])o=r[Ee],r=r.component;else throw new Error("Invalid component.");if(typeof r=="string")n=new _t(r,e.props);else{if(Ue(r)){r?.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new r(e.props);let s=Object.getOwnPropertyDescriptor(n,"state");s&&typeof s.get!="function"&&typeof s.set!="function"&&(n[y].state=n.state,Object.defineProperty(n,"state",{get(){return this[y].state},set(c){if(this[y].state===void 0)this[y].state=c;else throw new Error("Assigning component state this way is not allowed.")}}))}else if(typeof r=="function")r?.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new Ie(e.props),n.render=r.bind(n),n[y].hooks=[],n[y].hook_index=0;else throw new Error("Error in constructing component.");n[y].entity=r,e.container&&(n[y].container=e.container)}o&&(n[y][Ee]=!0)}return t instanceof rt&&(n[y].parent=t),n}function gi(e,t){try{e.cache??(e.cache=new yn(e));let n=t[Z]!==void 0,r=n?":text:":t.props?.key,o=n||t instanceof rt?void 0:t.entity;return e.cache.pick(r,()=>n||t instanceof rt?t:yi(t,e)[y],o)}catch(n){if(t?.component?.componentDidCatch)t.component.componentDidCatch(n);else throw n}}function bi(){clearTimeout(E.effect_timeout);let e=E.update_set,t=E.update_cbs;E.update_set=new Set,E.update_cbs=new Set;for(let n of e)n.apply();for(let n of t)n();Fr()}function Fr(){let e=E.insertion_effects,t=E.layout_effects,n=E.passive_effects;E.insertion_effects=new Set,E.layout_effects=new Set,E.passive_effects=new Set;for(let r of e)r();for(let r of t)r();requestAnimationFrame(()=>{for(let r of n)r()})}var wi=(e,t)=>{let n;return t.key!==void 0?n=t.key:t.id!==void 0?n=":i:"+t.id:t.path!==void 0?n=":p:"+t.path:t[Z]!==void 0?n=":text:":(typeof e=="string"?n=":t:"+e:e?.name?n=e.name:n="::",t.name!==void 0?n=n+":"+t.name:t.path!==void 0&&(n=n+":"+t.path)),n},Ie=class{get state(){return this[y].state}set state(t){if(this[y].state===void 0)this[y].state=t;else throw new Error("Assigning component state this way is not allowed.")}get context(){return this[y].context}set context(t){throw new Error("Assigning component context this way is not allowed.")}get type(){return this[y].entity}set type(t){throw new Error("Component type is immutable.")}get props(){return this[y].props}set props(t){throw new Error("Assigning component props this way is not allowed.")}get ref(){return this[y].ref}set ref(t){throw new Error("Component ref is immutable.")}get key(){return this[y].props.key}set key(t){throw new Error("Component key is immutable.")}displayName(){let t=this[y].entity;return t?.displayName?typeof t.displayName=="function"?t.displayName():t.displayName:typeof t=="string"?t:typeof t=="function"&&t.name||"Component"}constructor(t){this[y]=new rt(this,t)}forceUpdate(t){E._clearTimeout(E.update_timeout),E.update_set.add(this[y].container||this[y]),t&&E.update_cbs.add(t.bind(this)),E.update_timeout=E._setTimeout(bi,E.update_interval_margin)}setState(t,n){this.getSnapshotBeforeUpdate!==void 0&&(this[y].last_snapshot=this.getSnapshotBeforeUpdate(this[y].props,this.state)),this[y].next_state=t,this.forceUpdate(n?n.bind(this):void 0)}},_t=class extends Ie{constructor(t,n){super(n),this[y].entity=t,t==="svg"&&(this[y].is_svg=!0)}render(){return this[y].props.children}},Mt=class extends _t{constructor(n,r){super(":root:",r);te(this,"displayName","Root");typeof this.element=="string"&&(n=document.querySelector(n)),this[y].element=n;for(let o of r.children)o[y]?o[y].container=this[y]:o.container=this[y]}};function bn(e,t={},...n){if(typeof e!="string"&&typeof e!="function"&&(typeof e!="object"||!e[Ee]))throw new Error("Invalid entity for createComponent.");for(let r=0;r<n.length;r++){let o=n[r];if(o==null||typeof o=="boolean"){n.splice(r,1),r--;continue}["number","bigint"].indexOf(typeof o)!==-1&&(o=o.toString()),typeof o=="string"?n[r]={[Z]:o}:n[r]=o}return t.key=wi(e,t),t.children=n,{entity:e,props:t,[y]:null}}function Kr(e){let t;return{render(n){if(t)throw new Error("root already rendered!");return t=new Mt(e,{children:[n]}),E.roots.add(t[y]),t.forceUpdate(),t},unmount(){t&&(t.cleanup(),e.innerHTML="")}}}function xi(e,t,n){if(!e||!e.component)throw new Error("Invalid Lilact root component.");if(!gn(e,t))throw new Error("Cannot hot-reload the root from a class component to a function component, or vice versa.");return e.apply(n===void 0?e.props:n),e}function _i(e,t){return bn(E.Portal,{view:t},e)}function Wr(e,t,...n){let r={entity:e.entity,props:{...e.props,...t},[y]:null};return n?.length&&(r.props.children=n),r}var Ei=Wr;function vi(e,t){if(e[y]&&(e[y].container||e[y].parent))throw new Error("Component is already in use");return Kr(t).render(e)}function ki(e){return typeof e=="object"?e[Ee]=!0:e={component:e,[Ee]:!0,[y]:null},e}var Ti=bn,Si=[],Ci=new Set,Oi=new Set,$i=new Set,Ai=new Set,Ri=new Set,Ii=new Set,Li,Ni,Pi=0,Br=new Set(["classname","ref","action","lilact_jsx_loc","children","key","defaultvalue","defaultchecked"]),Ut=new Set(["onafterprint","onbeforeprint","onbeforeunload","onerror","onhashchange","onload","onmessage","onoffline","ononline","onpagehide","onpageshow","onpopstate","onresize","onstorage","onunload","onblur","onchange","oncontextmenu","onfocus","oninput","oninvalid","onreset","onsearch","onselect","onsubmit","oncancel","onkeydown","onkeypress","onkeyup","onclick","ondblclick","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onwheel","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","onscroll","oncopy","oncut","onpaste","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onended","onerror","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","ontoggle","onpointerdown","onpointerup","onpointermove","onpointercancel","onpointerover","onpointerout","onpointerenter","onpointerleave"]),qt={};for(let e of Ut)qt[e+"capture"]=e;var Vr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","top","right","bottom","left","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","outlineWidth","fontSize","lineHeight","letterSpacing","wordSpacing","textIndent","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","columnGap","rowGap","gap"]),Xr=new Set(["disabled","readOnly","required","checked","multiple","selected","hidden","open","loop","muted","controls","playsInline","allowFullScreen"]);var _n={};ee(_n,{createContext:()=>ot,startTransition:()=>Wi,useActionState:()=>Ui,useCallback:()=>he,useContext:()=>it,useDebugValue:()=>Ki,useDeferredValue:()=>Fi,useEffect:()=>re,useHook:()=>ce,useId:()=>ji,useImperativeHandle:()=>xn,useInsertionEffect:()=>Mi,useLayoutEffect:()=>Le,useLocalStorage:()=>Di,useMemo:()=>Et,useReducer:()=>qi,useRef:()=>L,useState:()=>ne,useTransition:()=>Yr});function ce(){let e=E.current_component[0];return e.hooks[e.hook_index]===void 0&&e.hooks.push({}),e.hooks[e.hook_index++]}function ne(e){let t=ce();return B(t)&&(typeof e=="function"?t.value=e():t.value=e,t.set_func=function(n,r,o){typeof o=="function"?r.value=o(r.value):r.value=o,n.component.forceUpdate()}.bind(void 0,E.current_component[0],t)),[t.value,t.set_func]}function he(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Callback dependencies must be an array, object or omitted.");let n=ce();return!B(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n?.cleanup&&n.cleanup(),n.deps=t,n.callback=e),n.callback}function ot(e){return{default:e,Provider:function({value:n,children:r}){return r}}}function it(e){let t=E.current_component[0]?.parent;for(;t&&t.entity!==e.Provider;)t=t.parent;return t?t.props?.value??e.default:e.default}function ji(e="N"){let t=ce();return B(t)&&(t.id=e+E.id_num++),t.id}function Yr(){let e=ce();return B(e)&&(e.count=0,e.func=(async function(t,n,r){n.count===0&&t.component.forceUpdate(),n.count++;try{return await r()}finally{n.count--,n.count===0&&t.component.forceUpdate()}}).bind(void 0,E.current_component[0],e)),[e.count!=0,e.func]}function Di(e,t){let n=ce(),r;try{r=JSON.parse(localStorage[e])}catch{}return r===void 0&&(typeof t=="function"&&(t=t()),r=t,localStorage[e]=JSON.stringify(r)),B(n)&&(n.value=r,n.set_func=function(o,s,c){typeof c=="function"&&(c=c(s.value)),c!==s.value&&(localStorage[e]=JSON.stringify(c),s.value=c,o.component.forceUpdate())}.bind(void 0,E.current_component[0],n)),[n.value,n.set_func]}function L(e=null){let t=ce();return B(t)&&(t.current=e),t}async function Le(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Layout effect dependencies must be an array, object or omitted.");let n=ce();!B(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.layout_effects.add(async()=>{n.cleanup=await e()}),E._clearTimeout(E.effect_timeout),E._setTimeout(E.processEffects,0))}async function re(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Effect dependencies must be an array, object or omitted.");let n=ce();!B(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.passive_effects.add(async()=>{n.cleanup=await e()}),E._clearTimeout(E.effect_timeout),E._setTimeout(E.processEffects,0))}async function Mi(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Insertion effect dependencies must be an array, object, or omitted.");let n=ce();!B(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.insertion_effects.add(async()=>{n.cleanup=await e()}),E._clearTimeout(E.effect_timeout),E._setTimeout(E.processEffects,0))}function Et(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Memo dependencies must be an array or omitted.");let n=ce();return!B(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n.deps=t,n.value=e()),n.value}function Ui(e,t){let n=ce(),[r,o]=Yr();return B(n)&&(n.state=t,n.form_action=s=>(s.preventDefault(),o(async()=>{let c=new FormData(s.target,s.submitter);n.state=await e(n.state,c)},[]),!1)),[n.state,n.form_action,r]}function qi(e,t,n){let r=ce();return B(r)&&(r.state=n?n(t):t,r.dispatch=function(o,s,c){let a=s.reducer(s.state,c);E.defaultIsEqual(a,s.state)||(s.state=a,o.component.forceUpdate())}.bind(void 0,E.current_component[0],r)),r.reducer=e,[r.state,r.dispatch]}function Fi(e,t){let{useEffect:n,useRef:r,useState:o}=E,[s,c]=o(typeof t<"u"?t:e),a=r(e),l=r(null);return n(()=>{if(a.current===e)return;a.current=e,l.current!=null&&(l.current.cancelled=!0,l.current=null);let u={cancelled:!1};return l.current=u,Promise.resolve().then(()=>{u.cancelled||(c(e),l.current=null)}),()=>{l.current&&(l.current.cancelled=!0,l.current=null)}},[e]),s}function xn(e,t,n=void 0){n!==void 0&&e?.deps!==void 0&&se(n,e.deps)||(e.deps=n,typeof e?.current!="object"&&(e.current={}),Object.assign(e.current,t()))}function Ki(e,t=n=>n){console.log(t(e))}function Wi(e){e()}var En={};ee(En,{lazy:()=>Gi,require:()=>Zr,required_scripts:()=>Fe,run:()=>st,runScripts:()=>Ji});function Bi(e,t){let n=t.startsWith("/"),r=(n?"":e).split("/").filter(Boolean);!n&&!e.endsWith("/")&&r.pop();for(let o of t.split("/"))!o||o==="."||(o===".."?r.pop():r.push(o));return`${n?"/":""}${r.join("/")}`}function Gr(e,t="Unknown error"){if(e instanceof Error)return e;if(e?.error instanceof Error)return e.error;let n=new Error(e?.message==null?t:String(e.message));if(e&&typeof e=="object"){e.name&&(n.name=e.name),e.stack&&(n.stack=e.stack);for(let r of Object.keys(e))r in n||(n[r]=e[r])}return n}function Vi(e,t){let n=Gr(e);return n.lilact_source||(n.lilact_source={path:t}),n}function qe(e,t){let n=Vi(e,t);return n.isTraced?n:typeof E.traceError=="function"?E.traceError(n,t):(E.error=n,n)}var Fe={};function Hr(e,{code:t=""}={}){let n={path:e,code:String(t),mappings:[],meta:{},exports:{},loaded:!1,request:void 0,error:void 0};return Fe[e]=n,n}function Jr(e,t={}){if(E.importObjectPaths?.[e])return E.importObjectPaths[e];t.requirer?.path&&(e=Bi(t.requirer.path,e));let n=!!E[yt]||!!t.isLazy,r=Xi(e,{});if(r.loaded&&!t.forceReload)return r.exports;if(e.startsWith("#")){let c=document.getElementById(e.slice(1));if(!c)throw qe(new Error(`Required element not found (${e})`),e);return st(c.textContent||"",e,{forceReload:t.forceReload})}if(n)return E[yt]=!1,r.request&&!t.forceReload?r.request:Yi(e,r,t);let o=E.resolver?.(e);if(o!=null){if(e.endsWith(".css")){mt(String(o)),r.code=String(o),r.loaded=!0;return}return st(String(o),e,{forceReload:t.forceReload})}let s=new XMLHttpRequest;try{s.open("GET",e,!1),s.send(null)}catch(c){throw qe(c,e)}if(s.status>=200&&s.status<300){if(e.endsWith(".css")){r.code=s.responseText,mt(r.code),r.loaded=!0;return}return st(s.responseText,e,{forceReload:!0})}throw qe(new Error(`Unable to load ${e}: HTTP ${s.status||0}`),e)}function Zr(e){let t={};return arguments.length===2&&arguments[1]&&typeof arguments[1]=="object"&&(t=arguments[1]),Jr(e,t)}function ra(e,t={}){e.importsObject={};for(let n in e.meta.imports){let r=e.meta.imports[n],o=Jr(n,{requirer:e,forceReload:t.forceReload});for(let s in r.named_imports){if(s==="")continue;let c=r.named_imports[s];if(!Object.prototype.hasOwnProperty.call(o,c))throw new Error(`Imported module does not export any "${s}".`);e.importsObject[s]=o[c]}for(let s of r.import_defaults){if(!Object.prototype.hasOwnProperty.call(o,"default"))throw new Error("Imported module does not export a default.");e.importsObject[s]=o.default}for(let s of r.import_stars)e.importsObject[s]={...o}}}function st(jsx,path=`InlineJSX-${++E.eval_num}`,options={}){let module=Fe[path];module?(module.path=path,module.code=String(jsx),module.mappings=[],module.exports={},module.loaded=!1,module.error=void 0,module.meta={}):module=Hr(path,{code:jsx});let processed;try{processed=E.transpileJSX(String(jsx),{path,mappings:module.mappings,meta:module.meta,factory:"createComponent",appendSourcemap:!0,injectTraceLabels:!0,produceCJS:!0,blocksInfo:E.blocksInfo})}catch(e){let t=Gr(e);throw t.fileName??(t.fileName=path),t.lilact_source??(t.lilact_source={path}),t.sourcePhase="transpile",module.error=t,E.error=t,t}typeof E.scanBlockLabels=="function"&&E.scanBlockLabels(processed,path);try{globalThis.Lilact=E,globalThis.createComponent=E.createComponent,globalThis.Fragment=E.Fragment;let result=eval(processed);return module.loaded=!0,B(module.exports)?result:module.exports}catch(e){let t=qe(e,path);throw t.sourcePhase??(t.sourcePhase="runtime"),module.error=t,t}}function Xi(e,t={}){return Fe[e]||Hr(e,t)}function Yi(e,t,n={}){let r;try{let s=E.resolver?.(e);s==null?t.code&&!t.loaded?r=Promise.resolve(t.code):r=fetch(e).then(c=>{if(!c.ok)throw qe(new Error(`Unable to load ${e}: HTTP ${c.status}`),e);return c.text()}):r=Promise.resolve(s)}catch(s){r=Promise.reject(qe(s,e))}let o;return o=Promise.resolve(r).then(s=>{if(t.code=String(s),e.endsWith(".css")){mt(t.code),t.loaded=!0;return}return st(t.code,e,n)}).then(s=>s?.default??s).catch(s=>{throw t.error=qe(s,e),t.error}).finally(()=>{t.request===o&&(t.request=void 0)}),t.request=o,o}function Gi(e){let t="pending",n;E[yt]=!0;try{n=e()}catch(o){t="error",n=o}E.isThenable(n)?n.then(o=>{t="success",n=o},o=>{t="error",n=o}):t!=="error"&&(t="success");function r(o){if(t==="pending"||t==="error")throw n;let s=n;return createComponent(s,{...o})}return r}function Hi(){return Array.from(document.querySelectorAll('script[type="text/jsx"]')).map(e=>({src:e.getAttribute("src"),content:e.textContent||""}))}async function Ji(){for(let e of Hi())e.src?await Zr(e.src):e.content&&st(e.content)}var Tn={};ee(Tn,{CSSTransition:()=>Qr,SwitchTransition:()=>Zi,Transition:()=>zr,TransitionGroup:()=>zi});var vn="unmounted",Ft="exited",vt="entering",kt="entered",kn="exiting";function zr({in:e,timeout:t=E.defaultTransitionTimeout,mountOnEnter:n=!1,unmountOnExit:r=!1,appear:o=!1,onEnter:s,onEntering:c,onEntered:a,onExit:l,onExiting:u,onExited:f,children:p,_classNames:d}){var m,x,w;return(m=this[y]).is_mounted??(m.is_mounted=!n||e||o),(x=this[y]).is_appeared??(x.is_appeared=e),(w=this[y]).timer??(w.timer=null),this[y].childFunctionHandler=v=>v(this[y].mount_state),this[y].mount_state||(this[y].is_mounted||(this[y].mount_state=vn),e?this[y].mount_state=o&&!this[y].is_appeared?vt:kt:this[y].mount_state=Ft),re(()=>()=>clearTimeout(this[y].timer),[]),re(()=>{!this[y].is_appeared&&o&&this[y].mount_state===vt&&e&&(s?.(),requestAnimationFrame(()=>{c?.(!this[y].is_appeared),clearTimeout(this[y].timer),this[y].timer=setTimeout(()=>{this[y].mount_state=kt,this.forceUpdate(),this[y].is_appeared=!0,a?.(!this[y].is_appeared)},t)}))},[]),re(()=>{if(e){if(this[y].is_mounted=!0,this[y].mount_state===vt||this[y].mount_state===kt)return;s?.(!this[y].is_appeared),this[y].mount_state=vt,this.forceUpdate(()=>{c?.(!this[y].is_appeared),clearTimeout(this[y].timer),this[y].timer=setTimeout(()=>{this[y].mount_state=kt,this.forceUpdate(),this[y].is_appeared=!0,a?.()},t)})}else{if(this[y].mount_state===vn||this[y].mount_state===kn||this[y].mount_state===Ft)return;l?.(),this[y].mount_state=kn,this.forceUpdate(()=>{u?.(),clearTimeout(this[y].timer),this[y].timer=setTimeout(()=>{this[y].mount_state=Ft,this.forceUpdate(),f?.(),r&&(this[y].is_mounted=!1,this[y].mount_state=vn,this.forceUpdate())},t)})}},[e,t]),this[y].is_mounted?(d&&(this[y].mount_state===vt?this[y].is_appeared?this[y][fe]=d.appearActive:this[y][fe]=d.enterActive:this[y].mount_state===kt?this[y].is_appeared?this[y][fe]=d.appearDone:this[y][fe]=d.enterDone:this[y].mount_state===kn?this[y][fe]=d.exitActive:this[y].mount_state===Ft&&(this[y][fe]=d.exitDone)),p):null}function Qr({in:e,timeout:t=E.defaultTransitionTimeout,classNames:n="fade",mountOnEnter:r=!1,unmountOnExit:o=!1,appear:s=!1,children:c,onEnter:a,onEntering:l,onEntered:u,onExit:f,onExiting:p,onExited:d}){return typeof n=="string"&&(n={appear:`${n}-enter ${n}-appear`,appearActive:`${n}-enter-active ${n}-appear-active`,appearDone:`${n}-enter-done ${n}-appear-done`,enter:`${n}-enter`,enterActive:`${n}-enter-active`,enterDone:`${n}-enter-done`,exit:`${n}-exit`,exitActive:`${n}-exit-active`,exitDone:`${n}-exit-done`}),createComponent(zr,{in:e,timeout:t,mountOnEnter:r,unmountOnExit:o,appear:s,onEnter:a,onEntering:l,onEntered:u,onExit:f,onExiting:p,onExited:d,_classNames:n},c)}function Zi({children:e,activeKey:t,mode:n="out-in",timeout:r=E.defaultTransitionTimeout,classNames:o="switch",mountOnEnter:s=!1,unmountOnExit:c=!1,appear:a=!1,onExited:l,onEnter:u,onExiting:f,onEntered:p,...d}){let m=Et(()=>Me.toArray(e),[e]),[x,w]=ne(null),[v,h]=ne(!1),[S,g]=ne(!0),_=L(t),$=L(t),T=L(x);Le(()=>{$.current=t},[t]),Le(()=>{T.current=x},[x]),Le(()=>{let j=_.current;j!==t&&(_.current=t,w(j),n==="out-in"?(g(!1),h(!0)):(g(!0),h(!1)))},[t,n]);let k=j=>(X,U)=>{typeof l=="function"&&l(X,U),j===T.current&&(w(null),n==="out-in"&&(h(!1),g(!0)),n==="in-out"&&h(!1))},C=j=>(X,U)=>{typeof p=="function"&&p(X,U),n==="in-out"&&j===$.current&&T.current!=null&&h(!0)};return createComponent("div",{style:{position:"relative"}},m.map((j,X)=>{let U=j?.props?.key||X,Tt=U===t?S:U===x?!v:!1;return createComponent(Qr,{...d,key:U,in:Tt,timeout:r,classNames:o,mountOnEnter:s,unmountOnExit:c,appear:a,onEnter:u,onExiting:f,onEntered:C(U),onExited:k(U)},createComponent("div",{style:{position:"absolute",inset:0}},j))}))}function zi({children:e}){return e}var Sn={};ee(Sn,{addWrappedEventListener:()=>ts,createSyntheticEvent:()=>eo,releaseSyntheticEvent:()=>to,wrapListener:()=>no});typeof Element<"u"&&!Element.prototype.matches&&(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});typeof Event<"u"&&!Event.prototype.composedPath&&(Event.prototype.composedPath=function(){for(var e=[],t=this.target;t;)e.push(t),t=t.parentElement;return e.push(window),e});var Kt=[],Qi=10,es=["mouse","pen","touch"];function eo(e,t){let n=Kt.length?Kt.pop():{};n.nativeEvent=e,n.type=e.type,n.target=e.target||e.srcElement||null,n.currentTarget=t||e.currentTarget||null,n.timeStamp=e.timeStamp||Date.now(),n.defaultPrevented=!!e.defaultPrevented,n.isPropagationStopped=!1,n.isPersistent=!1,n.bubbles=!!e.bubbles,n.cancelable=!!e.cancelable,n.composed=!!e.composed,n.detail=e.detail,n.relatedTarget=e.relatedTarget||(e.fromElement?e.fromElement:null)||(e.toElement?e.toElement:null)||null,n.altKey=!!e.altKey,n.ctrlKey=!!e.ctrlKey,n.metaKey=!!e.metaKey,n.shiftKey=!!e.shiftKey,n.isDefaultPrevented=()=>n.defaultPrevented,n.preventDefault=()=>{e.preventDefault&&e.preventDefault(),n.defaultPrevented=!0},n.stopPropagation=()=>{e.stopPropagation&&e.stopPropagation(),n.isPropagationStopped=!0},n.persist=()=>{n.isPersistent=!0},n.key=e.key||null,n.code=e.code||null,n.which=e.which??e.keyCode??null,n.button=e.button??null,n.buttons=e.buttons??null,n.pointerId=e.pointerId??null,n.pointerType=e.pointerType??null,n.isPrimary=e.isPrimary??null,n.clientX=e.clientX??0,n.clientY=e.clientY??0,n.screenX=e.screenX??0,n.screenY=e.screenY??0,n.pageX=e.pageX??null,n.pageY=e.pageY??null,n.movementX=e.movementX??0,n.movementY=e.movementY??0,n.pressure=e.pressure??null,n.tiltX=e.tiltX??null,n.tiltY=e.tiltY??null,n.width=e.width??null,n.height=e.height??null,n.pointerEventsSupported=es.includes(n.pointerType);try{let r=n.target;n.value=r&&"value"in r?r.value:void 0,n.checked=r&&"checked"in r?r.checked:void 0,n.selectionStart=r&&"selectionStart"in r?r.selectionStart:void 0,n.selectionEnd=r&&"selectionEnd"in r?r.selectionEnd:void 0}catch{n.value=void 0,n.checked=void 0,n.selectionStart=void 0,n.selectionEnd=void 0}return n.touches=e.touches||null,n.targetTouches=e.targetTouches||null,n.changedTouches=e.changedTouches||null,n.path=typeof e.composedPath=="function"?e.composedPath():[n.target],n.repeat=e.repeat??!1,n.location=e.location??0,n}function to(e){e&&!e.isPersistent&&(e.nativeEvent=null,e.type=null,e.target=null,e.currentTarget=null,e.timeStamp=0,e.defaultPrevented=!1,e.isPropagationStopped=!1,e.isPersistent=!1,e.isDefaultPrevented=null,e.preventDefault=null,e.stopPropagation=null,e.persist=null,e.bubbles=!1,e.cancelable=!1,e.composed=!1,e.detail=void 0,e.relatedTarget=null,e.altKey=!1,e.ctrlKey=!1,e.metaKey=!1,e.shiftKey=!1,e.key=null,e.code=null,e.which=null,e.button=null,e.buttons=null,e.pointerId=null,e.pointerType=null,e.isPrimary=null,e.clientX=0,e.clientY=0,e.screenX=0,e.screenY=0,e.pageX=null,e.pageY=null,e.movementX=0,e.movementY=0,e.pressure=null,e.tiltX=null,e.tiltY=null,e.width=null,e.height=null,e.value=void 0,e.checked=void 0,e.selectionStart=void 0,e.selectionEnd=void 0,e.touches=null,e.targetTouches=null,e.changedTouches=null,e.path=null,e.repeat=!1,e.location=0,Kt.length<Qi&&Kt.push(e))}function no(e,t={}){let{stopPropagationOnTrueReturn:n=!1}=t;return function(o){let s=this||o.currentTarget||null,c=eo(o,s);try{let a=e(c);n&&a===!0&&c.stopPropagation()}finally{to(c)}}}function ts(e,t,n,r={}){let o=no(n,r);return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)}var On={};ee(On,{Provider:()=>ns,combineReducers:()=>is,connect:()=>os,useDispatch:()=>rs,useSelector:()=>ro,useStore:()=>Wt});var Cn;function ns({store:e,children:t}){return Cn??(Cn=ot(null)),createComponent(Cn.Provider,{value:e},t)}function Wt(){let e=it(Cn);if(!e)throw new Error("Could not find Redux store in context. <Provider> is missing.");return e}function rs(){return Wt().dispatch}function ro(e,t=(n,r)=>n===r){let n=Wt(),r=L(),o=L(e);o.current=e;let[s,c]=ne(()=>e(n.getState()));return r.current=s,re(()=>{function a(){let u=o.current(n.getState());t(r.current,u)||(r.current=u,c(u))}let l=n.subscribe(a);return a(),l},[n,t]),s}function os(e,t){let n=!!e;return function(o){function s(c){let a=Wt(),l={dispatch:a.dispatch};if(typeof t=="function")l=t(a.dispatch,c);else if(typeof t=="object"&&t!==null){l={};let p=a.dispatch;for(let d in t){let m=t[d];l[d]=(...x)=>p(m(...x))}}let u={};e&&(u=ro(d=>e(d,c),se)||{});let f={...c,...u,...l};return createComponent(o,{...f})}return s}}function is(e){let t=Object.keys(e);for(let n of t)if(typeof e[n]!="function")throw new Error(`combineReducers: reducer for key "${n}" is not a function`);return function(r={},o){let s=!1,c={};for(let a of t){let l=e[a],u=r[a],f=l(u,o);c[a]=f,s=s||f!==u}return s?c:r}}var In={};ee(In,{animationFramePromise:()=>bs,clearInterval:()=>hs,clearTimeout:()=>ds,grabTimers:()=>ms,pauseTimers:()=>us,releaseTimers:()=>ys,resetTimers:()=>as,resumeTimers:()=>ls,setInterval:()=>ps,setTimeout:()=>fs,timeoutPromise:()=>gs});var Ne,$n=0,me=[],Ke=0,ke=new Map;function ss(e){let t=0,n=me.length-1;for(;t<=n;){let o=Math.floor((t+n)/2),s=me[o][pe];if(s===e)return[o,me[o]];s<e?t=o+1:n=o-1}let r=[];return r[pe]=e,me.splice(t,0,r),[t,r]}function An(){if(Ne!==void 0||me.length===0)return;Lilact._clearTimeout(Ke);let e=Math.max(0,me[0][pe]-Date.now());Ke=Lilact._setTimeout(cs,e)}function Rn(e,t=!1){let[n,r]=ss(e[pe]);return t||($n+=1,e[W]=$n,ke.set(e[W],e)),r.push(e),n===0&&Ne===void 0&&An(),e[W]}function cs(){Ke=-1;let e=Date.now(),t=[];for(;me.length>0&&me[0][pe]-e<=0;)t.push(me.shift());let n=[];for(let o of t)for(let s of o)n.push(s);let r;for(let o of n){if(o[Ce]||ke.get(o[W])!==o){ke.delete(o[W]);continue}try{o[wt](...o[xt])}catch(s){r??(r=s)}if(o[Ce]){ke.delete(o[W]);continue}ke.get(o[W])===o&&(o[gt]?(o[pe]=Date.now()+o[bt],Rn(o,!0)):ke.delete(o[W]))}An(),r!==void 0&&Lilact._setTimeout(()=>{throw r},0)}function as(){Lilact._clearTimeout(Ke);for(let e of ke.values())e[Ce]=!0;Ne=void 0,$n=-1,me=[],Ke=-1,ke=new Map}function us(){Ne===void 0&&(Lilact._clearTimeout(Ke),Ke=-1,Ne=Date.now())}function ls(){if(Ne===void 0)return;let e=Date.now()-Ne;for(let t of me)t[pe]+=e;Ne=void 0,An()}function fs(e,t=0,...n){let r=Math.max(0,Number(t)||0);return Rn({[wt]:e,[bt]:r,[pe]:Date.now()+r,[gt]:!1,[Ce]:!1,[xt]:n})}function ps(e,t=0,...n){let r=Math.max(0,Number(t)||0);return Rn({[wt]:e,[bt]:r,[pe]:Date.now()+r,[gt]:!0,[Ce]:!1,[xt]:n})}function ds(e){let t=ke.get(e);t!==void 0?t[Ce]=!0:Lilact._clearTimeout(e)}function hs(e){let t=ke.get(e);t!==void 0?t[Ce]=!0:Lilact._clearInterval(e)}function ms(){globalThis.setTimeout=Lilact.setTimeout,globalThis.setInterval=Lilact.setInterval,globalThis.clearTimeout=Lilact.clearTimeout,globalThis.clearInterval=Lilact.clearInterval}function ys(){globalThis.setTimeout=Lilact._setTimeout,globalThis.setInterval=Lilact._setInterval,globalThis.clearTimeout=Lilact._clearTimeout,globalThis.clearInterval=Lilact._clearInterval}function gs(e=0,t=Lilact){let n,r,o,s=new Promise((c,a)=>{r=c,o=a,n=t.setTimeout(()=>{c()},e)});return s.proceed=()=>{t.clearTimeout(n),r()},s.cancel=()=>{t.clearTimeout(n),o()},s}function bs(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}var Ln={};ee(Ln,{asError:()=>io,blocksInfo:()=>Os,error:()=>$s,globalErrorHandler:()=>Ss,scanBlockLabels:()=>Cs,traceError:()=>so});function ws(){let e=navigator.userAgent;return/Safari/.test(e)&&!/Chrome|Chromium|CriOS|FxiOS|EdgiOS|OPiOS/.test(e)}function Vt(e){let t=Number(e);return Number.isFinite(t)?t:null}function io(e){if(e instanceof Error)return e;if(e?.error instanceof Error)return e.error;let t=new Error(e?.message==null?String(e):String(e.message));if(e&&typeof e=="object"){e.name&&(t.name=e.name),e.stack&&(t.stack=e.stack);for(let n of Object.keys(e))n in t||(t[n]=e[n])}return t}function oo(e){return e?.name==="JSXParserError"}function xs(e){if(typeof e!="string")return null;for(let t of e.split(/\r?\n/)){let n=t.match(/(eval:\/.*):(\d+):(\d+)/);if(n)return{path:n[1].replace(/^eval:\/+/,""),line:Number(n[2])-1,column:Number(n[3])-1}}return null}function _s(e){let t=Vt(e?.lineNumber??e?.lineno??e?.line),n=Vt(e?.columnNumber??e?.colno??e?.column),r=ws()?0:1;return{line:t==null?null:Math.max(0,t-r),column:n==null?null:Math.max(0,n-1)}}function Es(e){let t=e?.lilact_trace;return Array.isArray(t)?t[0]:t}function vs(e){let t=Es(e);return t==null?null:E.blocksInfo?.labels?.[t]}function ks(e,t,n){if(!Array.isArray(e)||!e.length||!Number.isFinite(t)||!Number.isFinite(n))return{line:t,column:n};let r=e.filter(u=>Array.isArray(u)&&u.length>=4&&u.slice(0,4).every(f=>Number.isFinite(Number(f)))).sort((u,f)=>Number(u[0])-Number(f[0])||Number(u[1])-Number(f[1]));if(!r.length)return{line:t,column:n};let o=r[0];for(let u of r){let f=Number(u[0]),p=Number(u[1]);if(f<t||f===t&&p<=n)o=u;else break}let s=Number(o[0]),c=Number(o[1]),a=Number(o[2]),l=Number(o[3]);return{line:a+(t===s?0:t-s),column:t===s?Math.max(0,l+n-c):l}}function so(e,t){if(e?.isTraced)return e;let n=io(e),r=n.lilact_source,o=oo(n)?null:xs(n.stack),s=oo(n)?{line:Vt(n.lineNumber),column:Vt(n.columnNumber)}:_s(n),c=r?.path||o?.path||n.fileName||t||null,a=!r?.path||!o?.path||r.path===o.path,l=a?o?.line??s.line??null:s.line??null,u=a?o?.column??s.column??null:s.column??null,f={fileName:c,lineNumber:l,columnNumber:u,message:n.message==null?String(n):String(n.message),name:n.name||"Error",stack:n.stack||null,lilact_source:r||null,_error:n,isTraced:!0},p=c&&Fe[c];if(p){let m=ks(p.mappings,f.lineNumber,f.columnNumber);f.lineNumber=m.line,f.columnNumber=m.column}let d=vs(n);return d&&(f.lineNumber==null||f.columnNumber==null||!f.fileName)&&(f.fileName||(f.fileName=d.path||t||null),f.lineNumber??(f.lineNumber=d.line),f.columnNumber??(f.columnNumber=d.column),f.label=d.desc),E.error=f,f}function Bt(e){return String(e??"").replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function Ts(e,t){if(!e||!Number.isFinite(t))return null;let n=String(e.code??"").split(/\r?\n/);return{before:n[t-1]??"",current:n[t]??"",after:n[t+1]??""}}function Ss(e){let t=e?.error instanceof Error?e.error:e?.reason!==void 0?e.reason:e,n=so(t,e?.fileName||null),r=Ts(Fe[n.fileName],n.lineNumber),o=un(`
|
|
59
59
|
background: #fff;
|
|
60
60
|
text-shadow: 0 0 3px #fff;
|
|
61
61
|
-backdrop-filter: blur(20px);
|
|
@@ -77,11 +77,11 @@ var Qn=Object.defineProperty;var xo=(e,t,n)=>t in e?Qn(e,t,{enumerable:!0,config
|
|
|
77
77
|
display: block;
|
|
78
78
|
border-radius: 3px;
|
|
79
79
|
}
|
|
80
|
-
`),s=document.createElement("dialog");s.className=o;let c=n.fileName?`At ${
|
|
80
|
+
`),s=document.createElement("dialog");s.className=o;let c=n.fileName?`At ${Bt(n.fileName)}`:"",a=Number.isFinite(n.lineNumber)?`: Line ${n.lineNumber+1}`:"",l=n._error?.componentStackLog||n._error?.componentStack||"";if(s.innerHTML=`
|
|
81
81
|
<h3><red>Error!</red></h3>
|
|
82
82
|
<b>${c}${a}</b><br><br>
|
|
83
|
-
<b>${
|
|
84
|
-
<span>${
|
|
83
|
+
<b>${Bt(n.name)}</b>:
|
|
84
|
+
<span>${Bt(n.message)}</span>
|
|
85
85
|
<br><br>
|
|
86
86
|
|
|
87
87
|
${r?"<code><pre></pre><red><pre></pre></red><pre></pre></code>":""}
|
|
@@ -90,40 +90,40 @@ var Qn=Object.defineProperty;var xo=(e,t,n)=>t in e?Qn(e,t,{enumerable:!0,config
|
|
|
90
90
|
<br>
|
|
91
91
|
Component Stack:
|
|
92
92
|
<br>
|
|
93
|
-
<code><pre>${
|
|
93
|
+
<code><pre>${Bt(l)}</pre></code>
|
|
94
94
|
`:""}
|
|
95
|
-
`,r){let u=s.querySelectorAll("pre");u[0].innerText=r.before,u[1].innerText=r.current,u[2].innerText=r.after}return document.body.appendChild(s),typeof s.showModal=="function"?s.showModal():s.setAttribute("open",""),n}function
|
|
95
|
+
`,r){let u=s.querySelectorAll("pre");u[0].innerText=r.before,u[1].innerText=r.current,u[2].innerText=r.after}return document.body.appendChild(s),typeof s.showModal=="function"?s.showModal():s.setAttribute("open",""),n}function Cs(e,t){for(let n of String(e).matchAll(/LILACTBLOCK(\d+):(\d+),(\d+):([^*]+)\*\//gm))E.blocksInfo.labels[n[1]]={path:t,line:Number(n[2]),column:Number(n[3]),desc:n[4]}}var Os={counter:0,labels:{}},$s=null;var Un={};ee(Un,{HashRouter:()=>Rs,Link:()=>Is,NavLink:()=>Ls,Route:()=>js,Routes:()=>co,useLocation:()=>Dn,useNavigate:()=>Mn});var Pn=ot(null),Nn=ot({params:{}}),jn=e=>typeof e=="string"?e:(e.pathname||"")+(e.search||"")+(e.hash||""),As=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function Rs({children:e,basename:t=""}){let n=()=>{let a=(window.location.hash||"#/").slice(1),l=new RegExp("^"+As(t)),u=a.replace(l,"")||"/",[f,p]=u.split("#"),[d,m=""]=f.split("?");return{pathname:d||"/",search:m?"?"+m:"",hash:p?"#"+p:"",state:history.state?.__state}},[r,o]=ne(n);re(()=>{let c=()=>o(n());return window.addEventListener("hashchange",c),window.addEventListener("popstate",c),c(),()=>{window.removeEventListener("hashchange",c),window.removeEventListener("popstate",c)}},[t]);let s=he((c,{replace:a=!1,state:l}={})=>{if(typeof c=="number")return new Promise(p=>{let d=!1,m=v=>{d||(d=!0,window.removeEventListener("popstate",x),window.removeEventListener("hashchange",w),v?.(),p())},x=()=>m(()=>o(n())),w=()=>m(()=>o(n()));window.addEventListener("popstate",x,{once:!0}),window.addEventListener("hashchange",w,{once:!0}),setTimeout(()=>m(()=>o(n())),0),history.go(c)});let u=jn(c),f="#"+(t+u);a?history.replaceState({__state:l},"",f):history.pushState({__state:l},"",f),o(n())},[t]);return createComponent(Pn.Provider,{value:{location:r,navigate:s,basename:t}},e)}function Dn(){let e=it(Pn);if(!e)throw new Error("useLocation must be used inside a Router");return e.location}function Mn(){let e=it(Pn);if(!e)throw new Error("useNavigate must be used inside a Router");return e.navigate}function Is({to:e,replace:t=!1,state:n,onClick:r,target:o,download:s,className:c,style:a,children:l,...u}){let f=Mn(),p="#"+jn(e);function d(m){r&&r(m),!(m.defaultPrevented||m.button!==0||o&&o!=="_self"||m.metaKey||m.altKey||m.ctrlKey||m.shiftKey)&&(m.preventDefault(),f(e,{replace:t,state:n}))}return createComponent("a",{...u,href:p,onClick:d,target:o,download:s,className:c,style:a},l)}function Xt(e){return e&&e.replace(/\/+$/,"")||"/"}function Ls({to:e,end:t=!1,activeClassName:n="active",className:r,activeStyle:o,style:s,target:c,download:a,replace:l=!1,state:u,children:f,onClick:p,...d}){let m=Mn(),x=Dn(),w=typeof e=="string"?e.split("?")[0].split("#")[0]:e.pathname||"/",v=x.pathname||"/",h=t?Xt(v)===Xt(w):Xt(v).startsWith(Xt(w)),g=[typeof r=="function"?r({isActive:h}):r,h?n:null].filter(Boolean).join(" ")||void 0,_=typeof s=="function"?s({isActive:h}):s,$=h?{..._||{},...o||{}}:_,T="#"+jn(e);function k(C){p&&p(C),!(C.defaultPrevented||C.button!==0||C.metaKey||C.altKey||C.ctrlKey||C.shiftKey)&&(C.preventDefault(),m(e,{replace:l,state:u}))}return createComponent("a",{...d,href:T,onClick:k,target:c,download:a,className:g,style:$,"aria-current":h?"page":void 0},typeof f=="function"?f({isActive:h}):f)}function Ns(e){let t=[],n="^"+e.replace(/\/+$/,"").replace(/([.+?^=!:${}()|[\]/\\])/g,"\\$1").replace(/\\\:([A-Za-z0-9_]+)/g,(o,s)=>(t.push(s),"([^/]+)")).replace(/\\\*$/g,"(.+?)?");return n+="/?$",{regex:new RegExp(n),paramNames:t}}function Ps(e,t){if(e==null)return{matched:!0,params:{}};let{regex:n,paramNames:r}=Ns(e),o=n.exec(t);if(!o)return{matched:!1};let s={};return r.forEach((c,a)=>s[c]=decodeURIComponent(o[a+1]||"")),o.length>r.length+1&&(s["*"]=o[r.length+1]?decodeURIComponent(o[r.length+1]):void 0),{matched:!0,params:s}}function js({path:e,element:t=null,children:n}){return null}function co({children:e}){let n=Dn().pathname||"/",r=Me.toArray(e);for(let o=0;o<r.length;o++){let s=r[o],c=s.props.path===void 0?null:s.props.path,a=s.props.element??null,l=s.props.children,{matched:u,params:f}=Ps(c,n);if(u)return a?createComponent(Nn.Provider,{value:{params:f}},a):l?createComponent(Nn.Provider,{value:{params:f}},createComponent(co,{},l)):createComponent(Nn.Provider,{value:{params:f}},createComponent("div",{}))}return null}var Fn={};ee(Fn,{DragHandle:()=>ao,ErrorBoundary:()=>qn,Spinner:()=>Ds,SplitPane:()=>Ms,Suspense:()=>Gt});function Ds({size:e=48,className:t,style:n,color:r="currentColor",strokeWidth:o=3,"aria-label":s="Loading"}){let c=Math.max(1,e)+"px";return createComponent("div",{className:t,style:{width:"100%",height:"100%",display:"grid",placeItems:"center",...n},"aria-label":s,role:"status"},createComponent("div",{style:{width:c,height:c,borderRadius:"50%",border:`${o}px solid rgba(0,0,0,0.15)`,borderTopColor:r,animation:"ddSpinnerSpin 0.9s linear infinite",boxSizing:"border-box"}}),createComponent("style",{},`
|
|
96
96
|
@keyframes ddSpinnerSpin { to { transform: rotate(360deg); } }
|
|
97
|
-
`))}var
|
|
97
|
+
`))}var qn=class extends Ie{constructor(){super(...arguments);te(this,"displayName","ErrorBoundary");te(this,"state",{hasError:!1,error:null});te(this,"reset",()=>this.setState({hasError:!1,error:null}))}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,r){let{onError:o}=this.props;try{o&&o(n,r)}catch(s){console.error("onError threw",s)}}render(){let{Fallback:n,children:r}=this.props;return this.state.hasError?createComponent(n,{error:this.state.error,reset:this.reset}):r}},Gt=class extends Ie{constructor(n){super(n);te(this,"displayName","Suspense");this.state={showingFallback:!1},this._pending=new Set,this._delayTimer=null,this._minShowTimer=null,this._fallbackShownAt=0}static getDerivedStateFromError(n){if(Pt(n))return null;throw n}componentDidCatch(n,r){Pt(n)&&this._attachPromise(n)}componentWillUnmount(){this._clearTimers(),this._pending.clear()}_clearTimers(){this._delayTimer&&(clearTimeout(this._delayTimer),this._delayTimer=null),this._minShowTimer&&(clearTimeout(this._minShowTimer),this._minShowTimer=null)}_attachPromise(n){if(this._pending.has(n))return;if(this._pending.add(n),this._pending.size===1){let o=Math.max(0,this.props.minDelay);this._delayTimer&&(clearTimeout(this._delayTimer),this._delayTimer=null),this._delayTimer=setTimeout(()=>{this._delayTimer=null,this._fallbackShownAt=Date.now(),this.setState({showingFallback:!0})},o)}let r=()=>{if(this._pending.has(n)&&this._pending.delete(n),this._pending.size===0){if(this._delayTimer){clearTimeout(this._delayTimer),this._delayTimer=null,this.setState({showingFallback:!1});return}let o=Date.now()-(this._fallbackShownAt||0),s=Math.max(0,this.props.minShowTime-o);s===0?this.setState({showingFallback:!1}):(this._minShowTimer&&(clearTimeout(this._minShowTimer),this._minShowTimer=null),this._minShowTimer=setTimeout(()=>{this._minShowTimer=null,this.setState({showingFallback:!1})},s))}};n.then(r,r)}render(){return this.state.showingFallback?createComponent(Fragment,{},this.props.fallback):createComponent(Fragment,{},this.props.children)}};te(Gt,"defaultProps",{minDelay:200,minShowTime:300});function ao({onDelta:e,onStart:t,onEnd:n,style:r,className:o,children:s,data:c}){let a=L(null),l=L(0),u=L(0),f=L(0),p=L(0),d=L(!1),[m,x]=ne(!1),w=he(()=>{a.current=null,d.current=!1,l.current=0,u.current=0,f.current=0,p.current=0,x(!1)},[]),v=he((T,k)=>{let C=T-l.current,j=k-u.current;return{dx:C,dy:j}},[]),h=he((T="up")=>{d.current&&(n?.(T),w())},[n,w]),S=he(T=>{if(!(T.button!=null&&T.button!==0)){d.current=!0,a.current=T.pointerId,l.current=T.clientX,u.current=T.clientY,f.current=T.clientX,p.current=T.clientY,x(!0),t?.(c);try{T.currentTarget.setPointerCapture(T.pointerId)}catch{}}},[t]),g=he(T=>{if(!d.current||a.current!==T.pointerId)return;let{dx:k,dy:C}=v(T.clientX,T.clientY);e?.(k,C,c),f.current=T.clientX,p.current=T.clientY},[v,e]),_=he(T=>{a.current===T.pointerId&&h("up",c)},[h]),$=he(T=>{a.current===T.pointerId&&h("cancel",c)},[h]);return createComponent("div",{role:"button",tabIndex:0,style:{...r,touchAction:"none"},className:`${o} ${m?"dragging":""}`,onPointerDown:S,onPointerMove:g,onPointerUp:_,onPointerCancel:$},s)}var Ms=hn(function({mode:t="horizontal",position:n,defaultPosition:r=.5,min:o=.1,max:s=.9,splitterSize:c=8,onSizeChange:a,resizePolicy:l="proportional",style:u,className:f,firstPaneStyle:p,secondPaneStyle:d,splitterStyle:m,splitterChild:x,children:w},v){let h=L(null),S=L({w:0,h:0}),[g,_]=ne(t==="vertical"?"vertical":"horizontal"),$=L(g),[T,k]=ne(r),C=L(T),j=L(void 0),X=L(l);re(()=>{X.current=l},[l]),$.current=g,re(()=>{C.current=T},[T]),Le(()=>{_(t==="vertical"?"vertical":"horizontal")},[t]);let U=(R,I,we,ue)=>Us(R,o,s,I==="vertical"?ue:we,c),ge=Et(()=>{let R=n??T,{w:I,h:we}=S.current;return(t==="vertical"?we>0:I>0)?U(R,$.current,I,we):R},[n,T,o,s,c,t]);re(()=>{j.current=ge},[ge]);let Oe=R=>{let I=$.current,{w:we,h:ue}=S.current;if(I==="vertical"?ue<=0:we<=0){n==null&&k(R),a?.(R);return}let Q=U(R,I,we,ue);n==null&&k(Q),j.current=Q,a?.(Q)};xn(v,()=>({setPosition:Oe,setMode:R=>_(R==="vertical"?"vertical":"horizontal"),getPosition:()=>j.current??ge,getMode:()=>$.current}));let Tt=L(!1);Le(()=>{let R=h.current;if(!R)return;let I=new ResizeObserver(we=>{let ue=R.getBoundingClientRect(),Q=S.current,oe={w:ue.width,h:ue.height};S.current=oe;let at=$.current,_o=at==="vertical"?Q.h>0:Q.w>0,Qn=at==="vertical"?oe.h>0:oe.w>0;if(!Tt.current&&Qn){Tt.current=!0;let ie=n??C.current,Y=U(ie,at,oe.w,oe.h);n==null&&k(Y),j.current=Y,a?.(Y);return}if(!_o||!Qn)return;let $e=j.current??ge,er=X.current,Ae=c;if(er==="fixFirst")if(at==="vertical"){let ie=Q.h-Ae,Y=oe.h-Ae;if(ie>0&&Y>0){let le=$e*ie/Y;Math.abs(le-$e)>Yt&&Oe(le)}}else{let ie=Q.w-Ae,Y=oe.w-Ae;if(ie>0&&Y>0){let le=$e*ie/Y;Math.abs(le-$e)>Yt&&Oe(le)}}else if(er==="fixSecond")if(at==="vertical"){let ie=Q.h-Ae,Y=oe.h-Ae;if(ie>0&&Y>0){let le=1-(1-$e)*ie/Y;Math.abs(le-$e)>Yt&&Oe(le)}}else{let ie=Q.w-Ae,Y=oe.w-Ae;if(ie>0&&Y>0){let le=1-(1-$e)*ie/Y;Math.abs(le-$e)>Yt&&Oe(le)}}});return I.observe(R),()=>I.disconnect()},[o,s,c,a,n]);let St=L(ge),[Gn,Hn]=ne(!1);re(()=>{Gn||(St.current=ge)},[ge,Gn]);let yo=()=>{Hn(!0),St.current=j.current??ge},go=(R,I)=>{let we=$.current,{w:ue,h:Q}=S.current;if(we==="horizontal"){let oe=ue>0?ue:1;Oe(St.current+R/oe)}else{let oe=Q>0?Q:1;Oe(St.current+I/oe)}},bo=()=>Hn(!1),Jn=Me.toArray(w),wo=Jn[0],xo=Jn[1],Te=ge,{w:Zn,h:zn}=S.current,be={position:"absolute",top:0,left:0,overflow:"auto",...p||{}},Se={position:"absolute",bottom:0,right:0,overflow:"auto",...d||{}},Pe={background:"rgba(0,0,0,0.08)",boxShadow:"inset 0 0 2px rgba(0,0,0,0.25)",zIndex:1e6,position:"absolute",cursor:g==="horizontal"?"col-resize":"row-resize",touchAction:"none",pointerEvents:"auto",...m||{}};if(g==="horizontal")if(be.bottom=0,Se.top=0,l==="fixFirst"){let R=Zn-c,I=R>0?Te*R:0;be.width=I,Se.left=I+c,Object.assign(Pe,{top:0,bottom:0,left:I,width:c})}else if(l==="fixSecond"){let R=Zn-c,I=R>0?(1-Te)*R:0;Se.width=I,be.right=I+c,Object.assign(Pe,{top:0,bottom:0,right:I,width:c})}else be.width=`calc(${Te} * (100% - ${c}px))`,Se.left=`calc(${Te} * (100% - ${c}px) + ${c}px)`,Object.assign(Pe,{top:0,bottom:0,left:`calc(${Te} * (100% - ${c}px))`,width:c});else if(be.right=0,Se.left=0,l==="fixFirst"){let R=zn-c,I=R>0?Te*R:0;be.height=I,Se.top=I+c,Object.assign(Pe,{left:0,right:0,top:I,height:c})}else if(l==="fixSecond"){let R=zn-c,I=R>0?(1-Te)*R:0;Se.height=I,be.bottom=I+c,Object.assign(Pe,{left:0,right:0,bottom:I,height:c})}else be.height=`calc(${Te} * (100% - ${c}px))`,Se.top=`calc(${Te} * (100% - ${c}px) + ${c}px)`,Object.assign(Pe,{left:0,right:0,top:be.height,height:c});return createComponent("div",{ref:h,className:f,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",...u||{}}},createComponent("div",{style:be},wo),createComponent("div",{style:Se},xo),createComponent(ao,{key:g,onStart:yo,onDelta:go,onEnd:bo,style:Pe,className:"splitter"},x))}),Yt=1e-6,Us=function(e,t,n,r,o){let s=t,c=n;return typeof s=="function"&&(r>0?s=s(r,o):s=0),typeof c=="function"&&(r>0?c=c(r,o):c=1),s=Math.max(0,Math.min(s,1)),c=Math.max(0,Math.min(c,1)),Math.max(s,Math.min(c,e))};var qs={},lo={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){qs[e]=t,lo[t]=e});function fo(...e){if(typeof e=="number")return uo(e);let t="";for(let n=0;n<e.length;n+=1)t+=uo(e[n]);return t}function uo(e){let t="";e<0?e=-e<<1|1:e<<=1;do{let n=e&31;e>>>=5,e>0&&(n|=32),t+=lo[n]}while(e>0);return t}var Jt=new Set(["break","case","catch","class","const","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","in","instanceof","super","switch","this","throw","try","var","while","with","yield","return","true","false","null","undefined","enum","implements","interface","let","package","private","protected","public","static","yield","as","from","of","async","get","set","static","super","delete","void","typeof","new","await"]),Ks=new Set(["(",")","{","}","[","]","...",".","=>",",",";",":","?","++","--","+","-","*","/","%","**",">>","<<",">>>","<<<","&","|","^","~","==","!=","===","!==",">","<",">=","<=","&&","||","??","?.","=","+=","-=","*=","/=","%=","**=","<<=",">>=",">>>=","&=","|=","^=","??=","&&=","||=","!"]);function Ws(e){return/^(?:[+-]?(?:(?:\d(?:\d|_)*)(?:\.(?:\d(?:\d|_)*))?|\.(?:\d(?:\d|_)*))(?:[eE][+-]?(?:\d(?:\d|_)*))?|[+-]?Infinity|[+-]?NaN|[+-]?(?:(?:0[xX](?:[0-9a-fA-F](?:[0-9a-fA-F]|_)*))|(?:0[oO](?:[0-7](?:[0-7]|_)*))|(?:0[bB](?:[01](?:[01]|_)*))|(?:\d(?:\d|_)*))n)$/u.test(e)?!Jt.has(e):!1}function Bs(e){return/(?:\\u\{[0-9a-fA-F]+\}|\\u[0-9a-fA-F]{4})/g.test(e)?!Jt.has(e):!1}function Vs(e){return/^(?:[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}]*)$/u.test(e)?!Jt.has(e):!1}function Kn(e,t){if(typeof t=="string"){if(e&&e.hasOwnProperty(t))return e[t];if(t.trim()==="")return t.indexOf(`
|
|
98
98
|
`)!==-1?`
|
|
99
|
-
`:" ";if(
|
|
100
|
-
`||r[o]==="C";)u===1&&(e.out[o]=null),o+=u},c=e.begin,a=[];for(o=0;o<e.out.length;o++)o==0?a.push(e.begin):typeof e.out[o-1]=="string"?a.push(a[o-1]+e.out[o-1].length):a.push(e.out[o-1].end);a.push(e.end),n.imports??(n.imports={});let l=new Set;for(let u of r.matchAll(
|
|
101
|
-
`||h[
|
|
102
|
-
`||h[
|
|
103
|
-
`||h[
|
|
99
|
+
`:" ";if(Jt.has(t))return"K";if(Ks.has(t))return"O";if(Vs(t))return"I";if(Bs(t))return"U";if(Ws(t))return"N"}else if(typeof t=="object"){if(t.type==="comment")return"C";if(t.type==="regexp")return"R";if(t.type==="js")return"J";if(t.type==="parenthesis")return"P";if(t.type==="string")return"S";if(t.type==="xml")return"X"}return"?"}function Wn(e,t=t.bind(null,null)){return e.map(t).join("")}var Xs=/(?:i[C \n]*(?:(?:I|J|(?:\*[C \n]*a[C \n]*I))[C \n]*,[C \n]*)*(?:(?:(?:I(?:[C \n]*a[C \n]*I)?)|J|(?:\*[C \n]*a[C \n]*I))[C \n]*f[C \n]*)?S)|(?:e[C \n]*(?:(?:[*J][C \n]*f[C \n]*S)|(?:d[C \n]*[IFJ])|J|(?:[VF][c \n]*I)|I))|(?:r[c \n]*P)/mg,Ht=/O[C \n]*(?:[Id](?:[C \n]*a[C \n]*I)?[C \n]*,[C \n]*)*(?:I(?:[C \n]*a[C \n]*I)?)[C \n]*O/mg;function Bn(e,t,n){let r=Wn(e.out,Kn.bind(null,{import:"i",export:"e",as:"a",from:"f",",":",",".":".","*":"*",";":";",var:"V",let:"V",const:"V",function:"F",class:"F","=":"=",default:"d",require:"r"})),o,s=(u=1)=>{for(;r[o]===" "||r[o]===`
|
|
100
|
+
`||r[o]==="C";)u===1&&(e.out[o]=null),o+=u},c=e.begin,a=[];for(o=0;o<e.out.length;o++)o==0?a.push(e.begin):typeof e.out[o-1]=="string"?a.push(a[o-1]+e.out[o-1].length):a.push(e.out[o-1].end);a.push(e.end),n.imports??(n.imports={});let l=new Set;for(let u of r.matchAll(Xs))if(u[0].startsWith("r")){let f=u[0],p=e.out[u.index+f.length-1].out;p.length===1&&p.push(", {requirer:module}")}else if(u[0].startsWith("i")){let f=u[0];if(o=u.index-1,s(-1),r[o]===".")continue;let p=t.substring(e.out[u.index+f.length-1].begin,e.out[u.index+f.length-1].end),d={},m=[],x=[];for(o=u.index+1;o<u.index+f.length-1;o++)switch(e.out.splice(u.index,1,{type:"import",begin:a[u.index],end:a[u.index+f.length],cjs:""}),s(),r[o]){case",":break;case"I":{x.push(e.out[o]);continue}case"J":{let h=Wn(e.out[o].out,Kn.bind(null,{as:"a",",":","}));if(Ht.lastIndex=-1,!Ht.test(h))throw"incorrect import properties definition.";let S=e.out[o].out;for(let g=1;g<h.length-1;g++){for(;h[g]===" "||h[g]===`
|
|
101
|
+
`||h[g]==="C"||h[g]===",";)g++;let _=S[g];for(g++;h[g]===" "||h[g]===`
|
|
102
|
+
`||h[g]==="C";)g++;if(h[g]==="a"){for(g++;h[g]===" "||h[g]===`
|
|
103
|
+
`||h[g]==="C";)g++;d[S[g]]=_,g++}else d[_]=_}continue}case"*":{o++,s(),o++,s(),m.push(e.out[o]);continue}case"S":for(o=u.index+1;o<u.index+f.length;o++)e.out[o]=null;let v="";for(let h of m)v+=`const ${h} = require(${p},{requirer:module});
|
|
104
104
|
`,l.add(h);for(let h of x)v+=`const ${h} = require(${p},{requirer:module, checkExport: ['default']}).default;
|
|
105
|
-
`,l.add(h);if(Object.keys(d).length){let h="{",
|
|
106
|
-
`||m[h]==="C"||m[h]===",";)h++;let
|
|
105
|
+
`,l.add(h);if(Object.keys(d).length){let h="{",S="[";for(let g in d)l.add(g),h.length>1&&(h+=",",S+=","),g===d[g]?(h+=g,S+=`'${g}'`):(h+=g+":"+d[g],S+=`'${d[g]}'`);h+="}",S+="]",v+=`const ${h} = require(${p}, {checkExport: ${S},requirer:module})`}else v.length===0&&(v+=`require(${p},{requirer:module})`,d[""]=p);e.out[u.index].cjs=v;continue}let w=p.slice(1,p.length-1);n.imports[w]?n.imports[w]={import_stars:[...n.imports[w].import_stars,...m],import_defaults:[...n.imports[w].import_defaults,...x],named_imports:{...n.imports[w].named_imports,...d}}:n.imports[w]={import_stars:m,import_defaults:x,named_imports:d}}else{let f=u[0];if(e.out.splice(u.index,1,{type:"export",begin:a[u.index],end:a[u.index+1]}),o=u.index-1,s(-1),r[o]===".")continue;switch(o=u.index+1,s(),r[o]){case"d":e.out[o]=null,e.out[u.index].cjs="module.exports.default =";continue;case"V":{let d=e.out[o];e.out[o]=null,o++,s();let m=e.out[o];e.out[o]=null,o++,s(),e.out[u.index].cjs=`${d} ${m} = module.exports.${m} `;continue}case"F":{let d=e.out[o];e.out[o]=null,o++,s();let m=e.out[o];e.out[u.index].cjs=`module.exports.${m} = ${d} `;continue}case"*":e.out[o]=null,o++,s(),e.out[o]=null,o++,s();let p=t.substring(e.out[o].begin,e.out[o].end);e.out[o]=null,e.out[u.index].cjs=`Object.assign(module.exports, require(${p},{requirer:module}))`;continue;case"I":e.out[u.index].cjs=`module.exports.${e.out[o]} = `;continue;case"J":{let d={},m=Wn(e.out[o].out,Kn.bind(null,{as:"a",",":",",default:"I"}));if(Ht.lastIndex=-1,!Ht.test(m))throw"incorrect export properties definition.";let x=e.out[o].out;for(let h=1;h<m.length-1;h++){for(;m[h]===" "||m[h]===`
|
|
106
|
+
`||m[h]==="C"||m[h]===",";)h++;let S=x[h];for(h++;m[h]===" "||m[h]===`
|
|
107
107
|
`||m[h]==="C";)h++;if(m[h]==="a"){for(h++;m[h]===" "||m[h]===`
|
|
108
|
-
`||m[h]==="C";)h++;d[x[h]]=
|
|
108
|
+
`||m[h]==="C";)h++;d[x[h]]=S,h++}else d[S]=S}let w="{",v="{";for(let h in d)w.length>1&&(w+=",",v+=","),h===d[h]?(w+=h,v+=h):(w+=h+":"+d[h],v+=d[h]);if(w+="}",v+="}",e.out[o]=null,o++,s(),e.out[o]==="from"){e.out[o]=null,o++,s();let h=t.substring(e.out[o].begin,e.out[o].end);e.out[o]=null,e.out[u.index].cjs=`{ const ${w} = require(${h},{requirer:module}); Object.assign(module.exports, ${v}); }`}else e.out[u.index].cjs=`Object.assign(module.exports, ${w})`;continue}}}n.imported_names?n.imported_names=new Set([...n.imported_names,...l]):n.imported_names=l}var D={setBlockLabels:!0,enableLabelStack:!1,preprocessorDelimiter:"\u0294"},ye,Oa=0,po=/(\{|\}|\[|\]|\(|\)|\.\.\.|=>|\?\?=|\?\?|\?\.|===|!==|>>>|<<=|>>=|>>>=|\*\*=|\*\*|&&=|\|\|=|<=|>=|==|!=|<<|>>|\+\+|--|\+=|-=|\*=|\/=|%=|&=|\^=|\|=|=|\+|-|\*|\/|%|&|\^|\||!|~|\?|:|<|>|=|\.|,|;|\n+|[\s^\n]+)/g;function M(e,t,n,...r){let o=e(t,n,...r);return o?[o.end,o]:[n]}function Ys(code,index,container){let i=index,dels=`;=,([{}!^~&|:?*%-+/<>${D.preprocessorDelimiter}`;for(;--i>=0;)if(" \r".indexOf(code[i])===-1){if(code[i]===`
|
|
109
109
|
`){dels+=")]";continue}if(dels.indexOf(code[i])!==-1)break;return}let b={type:"regex",begin:index++};for(;index<code.length;){let ch=code[index];switch(ch){case`
|
|
110
|
-
`:return;case"/":try{return eval("const x="+code.slice(b.begin,index+1)),b.end=index+1,container&&container.children.push(b),b}catch(e){}default:index++}}}function
|
|
111
|
-
`:if(!o)return r.end=t+1,n&&n.children.push(r),r;break}t++}
|
|
112
|
-
`&&e[r]!==
|
|
113
|
-
`){let a={type:"directive",begin:t,cbegin:t,end:r+1,pragma:e.slice(t+1,r+1).replace(/\\(.)/gs,"$1"),value:""};return n&&n.children.push(a),a}}
|
|
114
|
-
`);return eval(cmd),segments}function
|
|
115
|
-
`:n!=="`"&&
|
|
110
|
+
`:return;case"/":try{return eval("const x="+code.slice(b.begin,index+1)),b.end=index+1,container&&container.children.push(b),b}catch(e){}default:index++}}}function Zt(e,t,n){let r={type:"comment",begin:t++};if(e[t]!=="*"&&e[t]!=="/")return Ys(e,t-1,n);let o=e[t]==="*";for(t++;t<e.length;){switch(e[t]){case"*":if(o&&e[t+1]==="/")return r.end=t+2,n&&n.children.push(r),r;break;case`
|
|
111
|
+
`:if(!o)return r.end=t+1,n&&n.children.push(r),r;break}t++}ye("Unterminated comment",r.begin)}function Gs(e,t,n){let r=t+1;for(;e[r]&&e[r]!==`
|
|
112
|
+
`&&e[r]!==D.preprocessorDelimiter||e[r-1]==="\\";)r++;if(e[r]===D.preprocessorDelimiter){let s={type:"directive",begin:t,cbegin:t,end:r+1,expression:e.slice(t+1,r).replace(/\\(.)/gs,"$1"),value:""};return n&&n.children.push(s),s}else{let s=t;for(;s-->=0&&(e[s]===" "||e[s]===" "););if(s===-1||e[s]===`
|
|
113
|
+
`){let a={type:"directive",begin:t,cbegin:t,end:r+1,pragma:e.slice(t+1,r+1).replace(/\\(.)/gs,"$1"),value:""};return n&&n.children.push(a),a}}ye("Error in preprocessor statement",t)}function Hs(node,context){let all_nodes=[];var segments=[],scope_stack=[],last_block=null;let clone_block=(e,t)=>{var n;return last_block=typeof all_nodes[e]=="object"?structuredClone({...all_nodes[e],children:void 0,attributes:{}}):all_nodes[e],last_block.type==="directive"&&(last_block.value=t),(n=scope_stack[0]).out??(n.out=[]),scope_stack[0].out.push(last_block),last_block},clone_attr=(e,t)=>(last_block=typeof all_nodes[e]=="object"?structuredClone({...all_nodes[e],children:void 0,attributes:{}}):all_nodes[e],scope_stack[0].attributes[t]=last_block,last_block),push_scope=()=>{scope_stack=[last_block,scope_stack]},pop_scope=()=>{scope_stack=scope_stack[1]},vine_traverse=e=>{if(typeof e!="object")return segments;if(segments.push("push_scope();"),e.attributes)for(let t in e.attributes){let n=e.attributes[t];all_nodes.push(n),segments.push(`clone_attr(${all_nodes.length-1}, "${t}");`),vine_traverse(n)}if(e.children)for(let t of e.children)all_nodes.push(t),t.type==="directive"&&t.expression===void 0?segments.push(t.pragma):(t.expression?segments.push(`clone_block(${all_nodes.length-1}, ${t.expression});`):segments.push(`clone_block(${all_nodes.length-1});`),vine_traverse(t));return segments.push("pop_scope();"),segments};node.out=[],last_block=node,push_scope(),vine_traverse(node);let cmd=segments.join(`
|
|
114
|
+
`);return eval(cmd),segments}function Vn(e,t,n,r){let o={type:"string",begin:t++,cbegin:t};for(;t<e.length;){switch(e[t]){case n:return o.cend=t,o.end=t+1,r&&r.children.push(o),o;case`
|
|
115
|
+
`:n!=="`"&&ye("Unterminated string",o.begin);break;case"$":n==="`"&&e[t+1]==="{"&&([t]=M(We,e,t+1,!0),t--);break;case"\\":t++;break}t++}ye("Unterminated string",o.begin)}function Js(e,t,n,r){let o=t,s=t;for(;o<e.length;){switch(e[o]){case"<":if(e[o+1]==="/"){o+=2;let a=o;for(;a<e.length&&e[a]!==">";)a++;if(a===e.length)return null;let l=e.substring(o,a).trim();return n.tag!==l&&ye("Ill-formed xml (not closed properly)",t),n.end=a+1,n.cbegin=t+1,n.cend=o-2,a}else[o]=M(Xn,e,o,n),o>s?(s=o,o--):s++;break;case"{":let c=o;[o]=M(We,e,o,!0,n),o--;break}o++}return s}function Xn(e,t,n,r=!1){if(r){let u=["=",",","(","&","|","?",":","{","["],f=t;for(;--f>0;)if(` \r
|
|
116
116
|
`.indexOf(e[f])===-1){if(u.indexOf(e[f])!==-1||f>1&&e[f-1]==="="&&e[f]===">")break;if(f>=5&&e.slice(f-5,f+1)==="return"){if(f>5&&` \r
|
|
117
117
|
{};)`.indexOf(e[f-6])===-1)return;break}if(f>=4&&(e.slice(f-4,f+1)==="yield"||e.slice(f-4,f+1)==="throw")){if(f>4&&` \r
|
|
118
118
|
{};)`.indexOf(e[f-5])===-1)return;break}return}}let o=[" "," ",`
|
|
119
119
|
`,"/","&","^","%","|","!","~","+","*","?","<",">",";",",","=","{","}","(",")","[","]","'",'"',"`","\\","",void 0],s=()=>{for(;e[t]===" "||e[t]===" "||e[t]===`
|
|
120
|
-
`;)t++},c={type:"xml",begin:t++,children:[],attributes:{},self_closing:!1,js_attributes:[]};s();let a=t;for(;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;c.tag=e.substring(t,a),t=a;let l;for(;t<e.length;){for(a=t;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;let u=e.substring(t,a);switch(u.length&&(l=u,c.attributes[u]=!0),t=a,e[t]){case"=":if(l){for(t++,s();e[t]==="/";){let x=
|
|
121
|
-
`:s();break;default:return}}}function
|
|
122
|
-
`&&t.push(parseInt(n));return t.push(e.length),t}function
|
|
120
|
+
`;)t++},c={type:"xml",begin:t++,children:[],attributes:{},self_closing:!1,js_attributes:[]};s();let a=t;for(;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;c.tag=e.substring(t,a),t=a;let l;for(;t<e.length;){for(a=t;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;let u=e.substring(t,a);switch(u.length&&(l=u,c.attributes[u]=!0),t=a,e[t]){case"=":if(l){for(t++,s();e[t]==="/";){let x=M(Zt,e,t);x[0]>t?t=x[0]:t++,s()}let m;switch(e[t]){case"'":case'"':[t,m]=M(Vn,e,t,e[t]),c.attributes[l]=m,l=void 0;break;case"{":[t,m]=M(We,e,t,!0),c.attributes[l]=m,l=void 0;break;default:for(a=t;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;let x=e.substring(t,a);t=a,c.attributes[l]=x,l=void 0}}else return;break;case"{":let f;[t,f]=M(We,e,t,!0),f.is_xml_js=!0,c.js_attributes.push(f);break;case"/":if(e[t+1]===">")return c.end=t+2,c.cbegin=c.begin,c.cend=c.end,c.self_closing=!0,n&&n.children.push(c),c;let p=M(Zt,e,t);p[0]>t?t=p[0]:t++;break;case">":let d=Js(e,t,c);if(d===null)return;if(d>t?t=d:t++,c.end)return n&&n.children.push(c),c;t++;break;case" ":case" ":case`
|
|
121
|
+
`:s();break;default:return}}}function mo(e,t,n){let r={type:"parenthesis",begin:t,cbegin:++t,children:[],self_closing:!1};for(;t<e.length;){let o=e[t];switch(o){case"<":{let[c]=M(Xn,e,t,r,!0);c>t?t=c:t++;break}case'"':case"'":case"`":[t]=M(Vn,e,t,o,r);break;case"{":[t]=M(We,e,t,!0,r);break;case"(":[t]=M(mo,e,t,r);break;case"}":ye("Unmatched curly bracket",r.begin);break;case")":return r.end=t+1,r.cend=t,n&&n.children.push(r),r;case"/":let[s]=M(Zt,e,t,r);s>t?t=s:t++;break;case"\\":t++;default:t++;break}}ye("Unterminated parenthesis block",r.begin)}function We(e,t=0,n=!1,r){let o={type:"js",begin:t,cbegin:t+=n?1:0,children:[]};for(;t<e.length;){let s=e[t];switch(s){case"<":{let[c]=M(Xn,e,t,o,!0);c>t?t=c:t++;break}case'"':case"'":case"`":[t]=M(Vn,e,t,s,o);break;case"{":{let c=t;[t]=M(We,e,t,!0,o);break}case"(":[t]=M(mo,e,t,o);break;case")":ye("Unmatched parenthesis",o.begin);break;case"}":if(n)return o.end=t+1,o.cend=t,r&&r.children.push(o),o;ye("Unmatched curly bracket",o.begin);break;case"/":{let[c]=M(Zt,e,t,o);c>t?t=c:t++;break}case D.preprocessorDelimiter:{let[c]=M(Gs,e,t,o);c>t?t=c:t++;break}case"\\":t++;default:t++}}return n&&ye("Unterminated JS block",o.begin),o.end=t,o.cend=t,r&&r.children.push(o),o}function Zs(e,t,n){e.already_labeled=!0;function r(a,l=1){for(;(a+=l)<e.children.length&&a>=0;){let u=e.children[a];if(typeof u=="string"){let f=u.trim();if(f.length)return[a,f]}if(typeof u=="object"&&u.type!=="comment")return[a,u]}return[null,null]}let o,s,c;for(let a=0;a<e.children.length;a++)if(typeof e.children[a]=="object"&&e.children[a].type==="parenthesis"){if([o,c]=r(a,-1),c===null||typeof c!="string"||["switch","catch","try","class"].find(u=>c.trim().endsWith(u))!==void 0)continue;let l=c;if([o,c]=r(o,-1),c===null||typeof c=="string"&&["extern","class"].indexOf(c)!==-1||([o,s]=r(a),s===null))continue;if(D.injectTraceLabels&&typeof s=="object"&&s.type==="js"){let u=ct(t,a);s.children.splice(1,0,`/*LILACTBLOCK${++n.counter}:${u}:${l}*/try{`),D.enableLabelStack?s.children.splice(s.children.length-1,0,`} catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${n.counter},e.lilact_trace];throw e}`):s.children.splice(s.children.length-1,0,`} catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${n.counter};throw e}`),a+=2}}else if(e.children[a]==="=>"&&([o,c]=r(a,-1),typeof c=="object"&&c.type==="parenthesis")){let l=ct(t,c.begin);[o,s]=r(a),typeof s=="object"&&s.type==="js"&&(D.injectTraceLabels&&(s.children.splice(1,0,`/*LILACTBLOCK${++n.counter}:${l}:<ARROW>*/try {`),D.enableLabelStack?s.children.splice(s.children.length-1,0,`} catch(e){if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${n.counter},e.lilact_trace];throw e}`):s.children.splice(s.children.length-1,0,`} catch(e){if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${n.counter};throw e}`)),a+=2)}}function ho(e){let t=[0];for(let n in e)e[n]===`
|
|
122
|
+
`&&t.push(parseInt(n));return t.push(e.length),t}function ct(e,t){for(e.last||(e.last=1);t>e[e.last];)if(e.last++,e.last===e.length){e.last=e.length-1;break}for(;t<e[e.last-1]&&e.last>1;)e.last--;return[e.last-1,t-e[e.last-1]]}function zs(e,t,n,r,o=[]){let s=[],c={version:3,file:t,sourceRoot:"",sources:[t],names:[],mappings:""},a=x=>{if(x?.out?.length>0)for(let w of x.out)a(w);x?.begin!==void 0&&x?.out_index!==void 0&&s.push([...ct(r,x.out_index),...ct(n,x.begin),x])};a(e),s=s.sort((x,w)=>x[0]==w[0]?x[1]-w[1]:x[0]-w[0]),o.push(...s);let l="",u=0,f=0,p=0,d=0;for(let x=0;x<s.length;x++){let w=s[x];for(;u<w[0];)f=0,l+=";",u++;l+=",",l+=fo(w[1]-f,0,w[2]-p,w[3]-d),f=w[1],p=w[2],d=w[3]}c.mappings=l.substring(1).replace(/;,/g,";");let m=`
|
|
123
123
|
|
|
124
124
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,`+btoa(JSON.stringify(c));return m+=`
|
|
125
|
-
//# sourceURL=eval:/${t}`,m}function
|
|
125
|
+
//# sourceURL=eval:/${t}`,m}function Yn(e,{factory:t="createComponent",fragment:n="Fragment",path:r="anonymous",appendSourcemap:o=!0,injectTraceLabels:s=!1,discardComments:c=!1,produceCJS:a=!1,logErrors:l=!1,mappings:u=[],meta:f,blocksInfo:p={labels:{},counter:0}}={}){D.preprocessorDelimiter??(D.preprocessorDelimiter="\u0294"),D.injectTraceLabels??(D.injectTraceLabels=s);let d=ho(e);ye=((g,_,$)=>{let T=ct(g,$),k=new Error(_);throw l&&console.error(`JSXParserError: ${_} [file ${r} at line ${T[0]}]`),[k.lineNumber,k.columnNumber]=T,k.name="JSXParserError",k.fileName=r,k.lilact_trace="parse",k}).bind(null,d);let m=We(e);m.data=e;let x=g=>{if(g.attributes!==void 0)for(let _ in g.attributes)typeof g.attributes[_]=="object"&&x(g.attributes[_]);if(g.children!==void 0&&!g.self_closing){let _=g.type==="js"?g.begin:g.cbegin||g.begin;for(let T=0;T<g.children.length;T++){let k=g.children[T];if(k.begin>_){let C=e.substring(_,k.begin);g.type==="xml"&&(C=C.trim()),C.length&&(g.type==="xml"?g.children.splice(T,0,'"'+C.replaceAll(`
|
|
126
126
|
`,`\\
|
|
127
|
-
`).replaceAll('"','\\"')+'"'):
|
|
128
|
-
`})[
|
|
127
|
+
`).replaceAll('"','\\"')+'"'):g.children.splice(T,0,...C.split(po)),T++)}_=k.end,x(k)}let $=g.type==="js"?g.end:g.cend||g.end;if(_<$&&!g.self_closing){let T=e.substring(_,$);g.type==="xml"&&(T=T.trim()),T.length&&(g.type==="xml"?g.children.push('"'+T.replace(/[\\\"\n]/g,k=>({"\\":"\\\\",'"':'\\"',"\n":`\\
|
|
128
|
+
`})[k])+'"'):g.children.push(...T.split(po)))}g.children=g.children.filter(T=>T!==""),D.setBlockLabels&&!g.already_labeled&&Zs(g,d,p)}};x(m),Hs(m);let w=[],v=(g,_,$=!1,T=!1)=>{if(w.push(_),typeof _!="object")return _;if(!_)return"";if(_.out_index=g,_.type==="string")return e.substring(_.begin,_.end);if(_.type==="import"||_.type==="export")return _.cjs;if(_.type==="regex")return e.substring(_.begin,_.end);if(_.type==="comment")return c||$?"":e.substring(_.begin,_.end);if(_.type==="directive")return _.value;if(_.type==="parenthesis"){let k="(";if(_.out){a&&Bn(_,e,f);for(let C of _.out)k+=v(g+k.length-1,C)}return k+")"}if(_.type==="js"){let k="";if(_.out){a&&Bn(_,e,f);for(let C of _.out)T&&C.type==="comment"||(k+=v(g+k.length-($?1:0),C))}return $?k.substring(1,k.length-1):_?.is_xml_js?e.substring(_.begin+1,_.end-1):k}if(_.type==="xml"){_.tag.length===0?_.tag=n:_.tag[0]!==_.tag[0].toUpperCase()&&(_.tag=`"${_.tag}"`);let k="",C=!0;for(let X of _.js_attributes){let U=v(g+k.length,X,!1);k+=`${C?"":", "}${U}`,C=!1}if(_.attributes)for(let X in _.attributes)k+=`${C?"":", "}"${X}": ${v(g+k.length,_.attributes[X],!0)}`,C=!1;if(k+=" }",_.out)for(let X of _.out){let U=v(g+k.length,X,!0,!0);U.length>0&&(k+=`, ${U}`,C=!1)}let j=ct(d,_.begin);return k=` ${t}( ${_.tag}, { ${k} )`,k}},h="";s&&(h=`/*LILACTBLOCK${++p.counter}:0,0:<EXEC>*/try{`),h+=v(h.length,m),s&&(D.enableLabelStack?h+=`}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${p.counter},e.lilact_trace];throw e}`:h+=`}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${p.counter};throw e}`);let S=zs(m,r,d,ho(h),u);return o&&(h+=S),h}var K={VERSION:"RC.6",defaultTransitionTimeout:300,defaultIsEqual:Object.is,...mn,...En,...wn,..._n,...Tn,...On,...In,...Sn,...Ln,...pn,...Un,...Fn,transpileJSX:Yn,transpilerConfig:D,PropTypes:nt,redux:nn,emotion:ln,_setTimeout:globalThis.setTimeout.bind(globalThis),_setInterval:globalThis.setInterval.bind(globalThis),_clearTimeout:globalThis.clearTimeout.bind(globalThis),_clearInterval:globalThis.clearInterval.bind(globalThis)};K.default=K;var E=K;K.importObjectPaths={lilact:K,"@emotion/css":K.emotion,redux:K.redux};globalThis.Lilact=K;globalThis.createComponent=K.createComponent;globalThis.Fragment=K.Fragment;globalThis.require=K.require;document.addEventListener("DOMContentLoaded",()=>{K.grabTimers(),K.runScripts().catch(e=>{K.globalErrorHandler?.(e)})});window.addEventListener("unhandledrejection",e=>{K.globalErrorHandler(e)}),window.addEventListener("error",e=>{K.globalErrorHandler(e)});console.log(`Lilact (Version: ${K.VERSION}) - Debug Mode`),console.log("Copyright(C) 2024-2026 Arash Kazemi <contact.arash.kazemi@gmail.com>");export{xt as ARGS,wt as CALLBACK,fe as CHILD_CLASS_ADDENDUM,Ce as CLEARED,et as COMPONENT,y as CORE,Qr as CSSTransition,Me as Children,Ie as Component,pe as DUE,ao as DragHandle,qn as ErrorBoundary,Mr as Fragment,_t as HTMLComponent,Rs as HashRouter,W as IDX,bt as INTERVAL,fn as IS_ZOMBIE,yt as LAZY,K as Lilact,Is as Link,Ee as MEMOIZED,Ls as NavLink,Ur as Portal,nt as PropTypes,ns as Provider,gt as REPEAT,Mt as RootComponent,js as Route,co as Routes,Ds as Spinner,Ms as SplitPane,Gt as Suspense,Zi as SwitchTransition,Z as TEXT,zr as Transition,zi as TransitionGroup,ts as addWrappedEventListener,bs as animationFramePromise,io as asError,Os as blocksInfo,Xr as boolean_html_attributes_set,qt as capture_events_set,hs as clearInterval,ds as clearTimeout,Wr as cloneComponent,Ei as cloneElement,is as combineReducers,os as connect,bn as createComponent,ot as createContext,Ti as createElement,_i as createPortal,Kr as createRoot,eo as createSyntheticEvent,Si as current_component,dn as deepEqual,E as default,Ni as effect_timeout,ln as emotion,$s as error,li as eval_num,Ut as events_set,ii as findDOMNode,hn as forwardRef,si as getComponentByPointer,Ss as globalErrorHandler,ms as grabTimers,xi as hotReloadRoot,ui as id_num,Ri as insertion_effects,ci as isAsync,Ue as isClass,B as isEmpty,ai as isError,Pt as isThenable,tt as isValidComponent,oi as isValidElement,Ai as layout_effects,Gi as lazy,Vr as length_css_attributes_set,ki as memo,Ii as passive_effects,us as pauseTimers,Fr as processEffects,nn as redux,to as releaseSyntheticEvent,ys as releaseTimers,vi as render,gn as replaceComponentEntity,Zr as require,Fe as required_scripts,as as resetTimers,ls as resumeTimers,$i as roots,st as run,Ji as runScripts,Cs as scanBlockLabels,ps as setInterval,fs as setTimeout,se as shallowEqual,Br as special_attributes,Wi as startTransition,gs as timeoutPromise,jt as toBool,so as traceError,Yn as transpileJSX,D as transpilerConfig,Oi as update_cbs,Pi as update_interval_margin,Ci as update_set,Li as update_timeout,Ui as useActionState,he as useCallback,it as useContext,Ki as useDebugValue,Fi as useDeferredValue,rs as useDispatch,re as useEffect,ce as useHook,ji as useId,xn as useImperativeHandle,Mi as useInsertionEffect,Le as useLayoutEffect,Di as useLocalStorage,Dn as useLocation,Et as useMemo,Mn as useNavigate,qi as useReducer,L as useRef,ro as useSelector,ne as useState,Wt as useStore,Yr as useTransition,no as wrapListener};
|
|
129
129
|
//# sourceMappingURL=lilact.development.min.js.map
|