lilact 0.27.2 → 0.28.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 +214 -203
- package/dist/lilact.development.js.map +4 -4
- package/dist/lilact.development.min.js +33 -33
- package/dist/lilact.development.min.js.map +4 -4
- package/dist/lilact.production.min.js +33 -33
- 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.memo.html +1 -1
- package/docs/functions/components.render.html +1 -1
- package/docs/functions/timers.animationFramePromise.html +1 -1
- package/docs/functions/timers.clearInterval.html +1 -1
- package/docs/functions/timers.grabTimers.html +1 -1
- package/docs/functions/timers.releaseTimers.html +1 -1
- package/docs/functions/timers.timeoutPromise.html +4 -4
- package/docs/static/lilact.development.js +214 -203
- package/docs/static/lilact.development.js.map +4 -4
- package/docs/static/lilact.development.min.js +33 -33
- package/docs/static/lilact.development.min.js.map +4 -4
- package/docs/static/lilact.production.min.js +33 -33
- package/docs/variables/components.cloneElement.html +1 -1
- package/examples/lilact.development.js +214 -203
- package/examples/lilact.development.js.map +4 -4
- package/examples/lilact.development.min.js +33 -33
- package/examples/lilact.development.min.js.map +4 -4
- package/examples/lilact.production.min.js +33 -33
- package/package.json +1 -1
- package/src/accessories.jsx +1 -1
- package/src/components.jsx +22 -17
- package/src/expscan.js +2 -2
- package/src/hooks.jsx +6 -6
- package/src/lilact.jsx +7 -1
- package/src/run.jsx +1 -1
- package/src/timers.jsx +2 -0
- package/src/transition.jsx +1 -1
|
@@ -54,9 +54,9 @@ 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 rr=Object.defineProperty;var ko=(e,t,n)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t)=>{for(var n in t)rr(e,n,{get:t[n],enumerable:!0})};var ee=(e,t,n)=>ko(e,typeof t!="symbol"?t+"":t,n);var cn={};Q(cn,{__DO_NOT_USE__ActionTypes:()=>ut,applyMiddleware:()=>Io,bindActionCreators:()=>Ao,combineReducers:()=>Oo,compose:()=>sr,createStore:()=>sn,isAction:()=>Po,isPlainObject:()=>on,legacy_createStore:()=>Co});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",or=vo,rn=()=>Math.random().toString(36).substring(7).split("").join("."),So={INIT:`@@redux/INIT${rn()}`,REPLACE:`@@redux/REPLACE${rn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${rn()}`},ut=So;function on(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 sn(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=="undefined"&&(n=t,t=void 0),typeof n!="undefined"){if(typeof n!="function")throw new Error(q(1));return n(sn)(e,t)}let r=e,o=t,s=new Map,c=s,a=0,f=!1;function l(){c===s&&(c=new Map,s.forEach((g,x)=>{c.set(x,g)}))}function u(){if(f)throw new Error(q(3));return o}function p(g){if(typeof g!="function")throw new Error(q(4));if(f)throw new Error(q(5));let x=!0;l();let v=a++;return c.set(v,g),function(){if(x){if(f)throw new Error(q(6));x=!1,l(),c.delete(v),s=null}}}function h(g){if(!on(g))throw new Error(q(7));if(typeof g.type=="undefined")throw new Error(q(8));if(typeof g.type!="string")throw new Error(q(17));if(f)throw new Error(q(9));try{f=!0,o=r(o,g)}finally{f=!1}return(s=c).forEach(v=>{v()}),g}function d(g){if(typeof g!="function")throw new Error(q(10));r=g,h({type:ut.REPLACE})}function y(){let g=p;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(q(11));function v(){let E=x;E.next&&E.next(u())}return v(),{unsubscribe:g(v)}},[or](){return this}}}return h({type:ut.INIT}),{dispatch:h,subscribe:p,getState:u,replaceReducer:d,[or]:y}}function Co(e,t,n){return sn(e,t,n)}function $o(e){Object.keys(e).forEach(t=>{let n=e[t];if(typeof n(void 0,{type:ut.INIT})=="undefined")throw new Error(q(12));if(typeof n(void 0,{type:ut.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(q(13))})}function Oo(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{$o(n)}catch(c){s=c}return function(a={},f){if(s)throw s;let l=!1,u={};for(let p=0;p<r.length;p++){let h=r[p],d=n[h],y=a[h],m=d(y,f);if(typeof m=="undefined"){let g=f&&f.type;throw new Error(q(14))}u[h]=m,l=l||m!==y}return l=l||r.length!==Object.keys(a).length,l?u:a}}function ir(e,t){return function(...n){return t(e.apply(this,n))}}function Ao(e,t){if(typeof e=="function")return ir(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]=ir(o,t))}return n}function sr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Io(...e){return t=>(n,r)=>{let o=t(n,r),s=()=>{throw new Error(q(15))},c={getState:o.getState,dispatch:(f,...l)=>s(f,...l)},a=e.map(f=>f(c));return s=sr(...a)(o.dispatch),{...o,dispatch:s}}}function Po(e){return on(e)&&"type"in e&&typeof e.type=="string"}var yt={};Q(yt,{cache:()=>ii,css:()=>dn,cx:()=>ei,flush:()=>zo,getRegisteredStyles:()=>ni,hydrate:()=>Qo,injectGlobal:()=>mt,keyframes:()=>ri,merge:()=>ti,sheet:()=>oi});var Lo=!1;function Ro(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 No(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 cr=(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?!Lo: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(No(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Ro(o);try{s.insertRule(r,s.cssRules.length)}catch(c){}}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-",P="-webkit-",It="comm",Be="rule",Ve="decl";var ar="@import";var Pt="@keyframes";var ur="@layer";var lr=Math.abs,Me=String.fromCharCode,fr=Object.assign;function pr(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 Lt(e){return e.trim()}function an(e,t){return(e=t.exec(e))?e[0]:e}function I(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 Ae(e,t,n){return e.slice(t,n)}function Y(e){return e.length}function Xe(e){return e.length}function Ye(e,t){return t.push(e),e}function un(e,t){return e.map(t).join("")}var Rt=1,Ge=1,dr=0,G=0,j=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:Rt,column:Ge,length:c,return:""}}function Ze(e,t){return fr(pt("",null,null,"",null,null,0),e,{length:-e.length},t)}function hr(){return j}function mr(){return j=G>0?N(Je,--G):0,Ge--,j===10&&(Ge=1,Rt--),j}function H(){return j=G<dr?N(Je,G++):0,Ge++,j===10&&(Ge=1,Rt++),j}function ae(){return N(Je,G)}function dt(){return G}function ze(e,t){return Ae(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 Nt(e){return Rt=Ge=1,dr=Y(Je=e),G=0,[]}function jt(e){return Je="",e}function Qe(e){return Lt(ze(G-1,ln(e===91?e+2:e===40?e+1:e)))}function yr(e){for(;(j=ae())&&j<33;)H();return He(e)>2||He(j)>3?"":" "}function gr(e,t){for(;--t&&H()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return ze(e,dt()+(t<6&&ae()==32&&H()==32))}function ln(e){for(;H();)switch(j){case e:return G;case 34:case 39:e!==34&&e!==39&&ln(j);break;case 40:e===41&&ln(e);break;case 92:H();break}return G}function br(e,t){for(;H()&&e+j!==57;)if(e+j===84&&ae()===47)break;return"/*"+ze(t,G-1)+"*"+Me(e===47?e:H())}function wr(e){for(;!He(ae());)H();return ze(e,G)}function Er(e){return jt(Dt("",null,null,null,[""],e=Nt(e),0,[0],e))}function Dt(e,t,n,r,o,s,c,a,f){for(var l=0,u=0,p=c,h=0,d=0,y=0,m=1,g=1,x=1,v=0,_="",E=o,$=s,S=r,k=_;g;)switch(y=v,v=H()){case 40:if(y!=108&&N(k,p-1)==58){ft(k+=I(Qe(v),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:k+=Qe(v);break;case 9:case 10:case 13:case 32:k+=yr(y);break;case 92:k+=gr(dt()-1,7);continue;case 47:switch(ae()){case 42:case 47:Ye(jo(br(H(),dt()),t,n),f);break;default:k+="/"}break;case 123*m:a[l++]=Y(k)*x;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:x==-1&&(k=I(k,/\f/g,"")),d>0&&Y(k)-p&&Ye(d>32?_r(k+";",r,n,p-1):_r(I(k," ","")+";",r,n,p-2),f);break;case 59:k+=";";default:if(Ye(S=xr(k,t,n,l,u,o,a,_,E=[],$=[],p),s),v===123)if(u===0)Dt(k,t,S,S,E,s,p,a,$);else switch(h===99&&N(k,3)===110?100:h){case 100:case 108:case 109:case 115:Dt(e,S,S,r&&Ye(xr(e,S,S,0,0,o,a,_,o,E=[],p),$),o,$,p,a,r?E:$);break;default:Dt(k,S,S,S,[""],$,0,a,$)}}l=u=d=0,m=x=1,_=k="",p=c;break;case 58:p=1+Y(k),d=y;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&mr()==125)continue}switch(k+=Me(v),v*m){case 38:x=u>0?1:(k+="\f",-1);break;case 44:a[l++]=(Y(k)-1)*x,x=1;break;case 64:ae()===45&&(k+=Qe(H())),h=ae(),u=p=Y(_=k+=wr(dt())),v++;break;case 45:y===45&&Y(k)==2&&(m=0)}}return s}function xr(e,t,n,r,o,s,c,a,f,l,u){for(var p=o-1,h=o===0?s:[""],d=Xe(h),y=0,m=0,g=0;y<r;++y)for(var x=0,v=Ae(e,p+1,p=lr(m=c[y])),_=e;x<d;++x)(_=Lt(m>0?h[x]+" "+v:I(v,/&\f/g,h[x])))&&(f[g++]=_);return pt(e,t,n,o===0?Be:a,f,l,u)}function jo(e,t,n){return pt(e,t,n,It,Me(hr()),Ae(e,2,-2),0)}function _r(e,t,n,r){return pt(e,t,n,Ve,Ae(e,0,r),Ae(e,r+1,-1),r)}function Ue(e,t){for(var n="",r=Xe(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Tr(e,t,n,r){switch(e.type){case ur:if(e.children.length)break;case ar:case Ve:return e.return=e.return||e.value;case It:return"";case Pt:return e.return=e.value+"{"+Ue(e.children,r)+"}";case Be:e.value=e.props.join(",")}return Y(n=Ue(e.children,r))?e.return=e.value+"{"+n+"}":""}function kr(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 Sr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Do=function(t,n,r){for(var o=0,s=0;o=s,s=ae(),o===38&&s===12&&(n[r]=1),!He(s);)H();return ze(t,G)},Mo=function(t,n){var r=-1,o=44;do switch(He(o)){case 0:o===38&&ae()===12&&(n[r]=1),t[r]+=Do(G-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]+=Me(o)}while(o=H());return t},Uo=function(t,n){return jt(Mo(Nt(t),n))},Cr=new WeakMap,qo=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&&!Cr.get(r))&&!o){Cr.set(t,!0);for(var s=[],c=Uo(n,s),a=r.props,f=0,l=0;f<c.length;f++)for(var u=0;u<a.length;u++,l++)t.props[l]=s[f]?c[f].replace(/&\f/g,a[u]):a[u]+" "+c[f]}}},Fo=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function $r(e,t){switch(pr(e,t)){case 5103:return P+"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 P+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return P+e+lt+e+F+e+e;case 6828:case 4268:return P+e+F+e+e;case 6165:return P+e+F+"flex-"+e+e;case 5187:return P+e+I(e,/(\w+).+(:[^]+)/,P+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return P+e+F+"flex-item-"+I(e,/flex-|-self/,"")+e;case 4675:return P+e+F+"flex-line-pack"+I(e,/align-content|flex-|-self/,"")+e;case 5548:return P+e+F+I(e,"shrink","negative")+e;case 5292:return P+e+F+I(e,"basis","preferred-size")+e;case 6060:return P+"box-"+I(e,"-grow","")+P+e+F+I(e,"grow","positive")+e;case 4554:return P+I(e,/([^-])(transform)/g,"$1"+P+"$2")+e;case 6187:return I(I(I(e,/(zoom-|grab)/,P+"$1"),/(image-set)/,P+"$1"),e,"")+e;case 5495:case 3959:return I(e,/(image-set\([^]*)/,P+"$1$`$1");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,P+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+P+e+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,P+"$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(Y(e)-1-t>6)switch(N(e,t+1)){case 109:if(N(e,t+4)!==45)break;case 102:return I(e,/(.+:)(.+)-([^]+)/,"$1"+P+"$2-$3$1"+lt+(N(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ft(e,"stretch")?$r(I(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(N(e,t+1)!==115)break;case 6444:switch(N(e,Y(e)-3-(~ft(e,"!important")&&10))){case 107:return I(e,":",":"+P)+e;case 101:return I(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P+(N(e,14)===45?"inline-":"")+"box$3$1"+P+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(N(e,t+11)){case 114:return P+e+F+I(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return P+e+F+I(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return P+e+F+I(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return P+e+F+e+e}return e}var Ko=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ve:t.return=$r(t.value,t.length);break;case Pt:return Ue([Ze(t,{value:I(t.value,"@","@"+P)})],o);case Be:if(t.length)return un(t.props,function(s){switch(an(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ue([Ze(t,{props:[I(s,/:(read-\w+)/,":"+lt+"$1")]})],o);case"::placeholder":return Ue([Ze(t,{props:[I(s,/:(plac\w+)/,":"+P+"input-$1")]}),Ze(t,{props:[I(s,/:(plac\w+)/,":"+lt+"$1")]}),Ze(t,{props:[I(s,/:(plac\w+)/,F+"input-$1")]})],o)}return""})}},Wo=[Ko],Or=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(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||Wo,s={},c,a=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),x=1;x<g.length;x++)s[g[x]]=!0;a.push(m)});var f,l=[qo,Fo];{var u,p=[Tr,vr(function(m){u.insert(m)})],h=kr(l.concat(o,p)),d=function(g){return Ue(Er(g),h)};f=function(g,x,v,_){u=v,d(g?g+"{"+x.styles+"}":x.styles),_&&(y.inserted[x.name]=!0)}}var y={key:n,sheet:new cr({key:n,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:f};return y.sheet.hydrate(a),y};function Ar(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 Ir={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 Bo=!1,Vo=/[A-Z]|^ms/g,Xo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Nr=function(t){return t.charCodeAt(1)===45},Pr=function(t){return t!=null&&typeof t!="boolean"},fn=Sr(function(e){return Nr(e)?e:e.replace(Vo,"-$&").toLowerCase()}),Lr=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Xo,function(r,o,s){return _e={name:o,styles:s,next:_e},o})}return Ir[t]!==1&&!Nr(t)&&typeof n=="number"&&n!==0?n+"px":n},Yo="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 _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 Go(e,t,n)}case"function":{if(e!==void 0){var f=_e,l=n(e);return _e=f,ht(e,t,l)}break}}var u=n;if(t==null)return u;var p=t[u];return p!==void 0?p:u}function Go(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]+"}":Pr(a)&&(r+=fn(s)+":"+Lr(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&Bo)throw new Error(Yo);if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var f=0;f<c.length;f++)Pr(c[f])&&(r+=fn(s)+":"+Lr(s,c[f])+";");else{var l=ht(e,t,c);switch(s){case"animation":case"animationName":{r+=fn(s)+":"+l+";";break}default:r+=s+"{"+l+"}"}}}}return r}var Rr=/label:\s*([^\s;{]+)\s*(;|$)/g,_e;function Mt(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+=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 f=s;o+=f[a]}Rr.lastIndex=0;for(var l="",u;(u=Rr.exec(o))!==null;)l+="-"+u[1];var p=Ar(o)+l;return{name:p,styles:o,next:_e}}var Ho=!0;function pn(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Jo=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Ho===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},jr=function(t,n,r){Jo(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 Dr(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Mr(e,t,n){var r=[],o=pn(e,r,n);return r.length<2?n:o+t(r)}var Ur=function(t){var n=Or(t);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var f=arguments.length,l=new Array(f),u=0;u<f;u++)l[u]=arguments[u];var p=Mt(l,n.registered,void 0);return jr(n,p,!1),n.key+"-"+p.name},o=function(){for(var f=arguments.length,l=new Array(f),u=0;u<f;u++)l[u]=arguments[u];var p=Mt(l,n.registered),h="animation-"+p.name;return Dr(n,{name:p.name,styles:"@keyframes "+h+"{"+p.styles+"}"}),h},s=function(){for(var f=arguments.length,l=new Array(f),u=0;u<f;u++)l[u]=arguments[u];var p=Mt(l,n.registered);Dr(n,p)},c=function(){for(var f=arguments.length,l=new Array(f),u=0;u<f;u++)l[u]=arguments[u];return Mr(n.registered,r,Zo(l))};return{css:r,cx:c,injectGlobal:s,keyframes:o,hydrate:function(f){f.forEach(function(l){n.inserted[l]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:pn.bind(null,n.registered),merge:Mr.bind(null,n.registered,r)}},Zo=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=Ur({key:"css"}),zo=Ee.flush,Qo=Ee.hydrate,ei=Ee.cx,ti=Ee.merge,ni=Ee.getRegisteredStyles,mt=Ee.injectGlobal,ri=Ee.keyframes,dn=Ee.css,oi=Ee.sheet,ii=Ee.cache;var wn={};Q(wn,{Children:()=>qe,Fragment:()=>qr,Portal:()=>Fr,deepEqual:()=>yn,eval_num:()=>pi,findDOMNode:()=>ci,forwardRef:()=>gn,getComponentByPointer:()=>ai,id_num:()=>fi,isAsync:()=>ui,isClass:()=>bn,isEmpty:()=>W,isError:()=>li,isThenable:()=>Ut,isValidComponent:()=>nt,isValidElement:()=>si,shallowEqual:()=>se,toBool:()=>qt});var mn={};Q(mn,{ARGS:()=>_t,CALLBACK:()=>xt,CHILD_CLASS_ADDENDUM:()=>he,CLEARED:()=>wt,COMPONENT:()=>et,CORE:()=>w,DUE:()=>le,IDX:()=>ue,INTERVAL:()=>tt,IS_ZOMBIE:()=>hn,LAZY:()=>gt,MEMOIZED:()=>Se,REPEAT:()=>bt,TEXT:()=>K});var[w,et,K,hn,ue,he,Se,gt,le,bt,wt,tt,xt,_t]=[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 Te=e=>{let t=Object.prototype.toString.call(e).toLowerCase();return/\[object (.*)]/g.exec(t)[1]},nt=e=>!!(e&&(e[w]!==void 0||e[TEXT]!==void 0)),si=nt,ci=e=>{var t,n;if(!((n=(t=e[w])==null?void 0:t.element)!=null&&n.parentNode))throw new Error("findDOMNode only works on mounted components.");return e[w].element};function qr({children:e}){return e}qr.displayName="Fragment";function Fr({children:e,view:t}){return this[w].portal=t,e}Fr.displayName="Portal";var qe={_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}},gn=e=>{let t=function(n,r){return e({...n,ref:void 0},r)};return t.displayName="Forwarded "+e.displayName,t};function ai(){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 W(e){for(let t in e)return!1;return!0}var se=(e,t,n)=>{if(Object.is(e,t))return!0;if(Te(e)!==Te(t))return!1;if(Te(e)==="array")return e.length!==t.length?!1:e.every((r,o)=>o===n||Object.is(r,t[o]));if(Te(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 Te(e)==="date"?e.getTime()===t.getTime():Object.is(e,t)};function yn(e,t){return Te(e)!==Te(t)?!1:Te(e)==="array"?e.length!==t.length?!1:e.every((n,r)=>yn(n,t[r])):Te(e)==="object"?Object.keys(e).length!==Object.keys(t).length?!1:Object.keys(e).every(n=>yn(e[n],t[n])):Te(e)==="date"?e.getTime()===t.getTime():e===t}function bn(e){return!(e&&e.constructor===Function)||e.prototype===void 0?!1:Function.prototype!==Object.getPrototypeOf(e)?!0:Object.getOwnPropertyNames(e.prototype).length>1}function ui(e){return typeof e=="function"&&e.constructor&&e.constructor.name==="AsyncFunction"}function Ut(e){return e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function li(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function qt(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 fi=Math.floor(Math.random()*1e4),pi=0;function J(e){return e==null}function B(e){return e||"<<anonymous>>"}function di(e){return e&&(e.displayName||e.name)||"Unknown"}function Kr(e){return e==null||e===!1||e===!0||typeof e=="string"||typeof e=="number"||nt(e)?!0:Array.isArray(e)?e.every(Kr):!1}function hi(e){return typeof e=="function"||typeof e=="string"}function me(e){let t=function(r,o,s,c,a,f){let l=r[o];if(J(l)||e(l))return null;let u=e.expectedType||"the correct type",p=l===null?"null":typeof l;return new Error(`Invalid ${c} \`${a}\` of type \`${p}\` supplied to \`${B(s)}\`, expected \`${u}\`.`)};return t.isRequired=function(r,o,s,c,a){let f=r[o];return J(f)?new Error(`The ${c} \`${a}\` is marked as required in \`${B(s)}\`, but its value is \`${f}\`.`):t(r,o,s,c,a)},t}function mi(){let e={};e.any=(function(){let r=function(s,c,a,f,l){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=>nt(r)),e.component.expectedType="component",e.element=me(r=>nt(r)),e.element.expectedType="element",e.node=me(r=>Kr(r)),e.node.expectedType="node",e.elementType=me(r=>hi(r)),e.elementType.expectedType="elementType",e.oneOf=function(o){let s=Array.isArray(o)?o:[],c=function(f,l,u,p,h){let d=f[l];if(J(d))return null;for(let m=0;m<s.length;m++)if(d===s[m])return null;let y=d===null?"null":typeof d;return new Error(`Invalid ${p} \`${h}\` of value \`${String(d)}\` supplied to \`${B(u)}\`, expected one of [${s.map(String).join(", ")}] (received type \`${y}\`).`)};return c.isRequired=function(f,l,u,p,h){return J(f[l])?new Error(`The ${p} \`${h}\` is marked as required in \`${B(u)}\`, but its value is \`${f[l]}\`.`):c(f,l,u,p,h)},c},e.oneOfType=function(o){let s=o||[],c=function(f,l,u,p,h){let d=f[l];if(J(d))return null;for(let y=0;y<s.length;y++)if(s[y](f,l,u,p,h)===null)return null;return new Error(`Invalid ${p} \`${h}\` supplied to \`${B(u)}\` (none of the allowed types matched).`)};return c.isRequired=function(f,l,u,p,h){return J(f[l])?new Error(`The ${p} \`${h}\` is marked as required in \`${B(u)}\`, but its value is \`${f[l]}\`.`):c(f,l,u,p,h)},c},e.arrayOf=function(o){let s=o,c=function(f,l,u,p,h){let d=f[l];if(J(d))return null;if(!Array.isArray(d))return new Error(`Invalid ${p} \`${h}\` of type \`${typeof d}\` supplied to \`${B(u)}\`, expected an array.`);for(let y=0;y<d.length;y++){let m=`${h}[${y}]`,g=s({[l]:d[y]},l,u,p,m);if(g!==null)return g}return null};return c.isRequired=function(f,l,u,p,h){return J(f[l])?new Error(`The ${p} \`${h}\` is marked as required in \`${B(u)}\`, but its value is \`${f[l]}\`.`):c(f,l,u,p,h)},c},e.objectOf=function(o){let s=o,c=function(f,l,u,p,h){let d=f[l];if(J(d))return null;if(typeof d!="object"||d===null||Array.isArray(d))return new Error(`Invalid ${p} \`${h}\` of type \`${typeof d}\` supplied to \`${B(u)}\`, expected an object.`);let y=Object.keys(d);for(let m=0;m<y.length;m++){let g=y[m],x=`${h}.${g}`,v=s({[l]:d[g]},l,u,p,x);if(v!==null)return v}return null};return c.isRequired=function(f,l,u,p,h){return J(f[l])?new Error(`The ${p} \`${h}\` is marked as required in \`${B(u)}\`, but its value is \`${f[l]}\`.`):c(f,l,u,p,h)},c};function t(r,{exact:o}){let s=r?Object.keys(r):[],c=function(f,l,u,p,h){let d=f[l];if(J(d))return null;if(typeof d!="object"||d===null||Array.isArray(d))return new Error(`Invalid ${p} \`${h}\` of type \`${typeof d}\` supplied to \`${B(u)}\`, expected an object.`);if(o){let m=Object.keys(d);for(let g=0;g<m.length;g++){let x=m[g];if(!Object.prototype.hasOwnProperty.call(r,x)){let v=`${h}.${x}`;return new Error(`Invalid ${p} \`${v}\` supplied to \`${B(u)}\`: extra key \`${x}\` is not allowed by exact().`)}}}for(let m=0;m<s.length;m++){let g=s[m],x=r[g],v=d[g],_=`${h}.${g}`;if(J(v)){let $=x({[l]:v},l,u,p,_);if($!==null)return $;continue}let E=x({[l]:v},l,u,p,_);if(E!==null)return E}return null};return c.isRequired=function(f,l,u,p,h){return J(f[l])?new Error(`The ${p} \`${h}\` is marked as required in \`${B(u)}\`, but its value is \`${f[l]}\`.`):c(f,l,u,p,h)},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,f,l,u,p){let h=a[f];return J(h)||h instanceof o?null:new Error(`Invalid ${u} \`${p}\` supplied to \`${B(l)}\`: expected instance of \`${di(o)}\`.`)};return s.isRequired=function(a,f,l,u,p){return J(a[f])?new Error(`The ${u} \`${p}\` is marked as required in \`${B(l)}\`, but its value is \`${a[f]}\`.`):s(a,f,l,u,p)},s};let n=new Set;return e.checkPropTypes=function(o,s,c,a){},e}var Wr=mi();var En={};Q(En,{Component:()=>Ie,HTMLComponent:()=>Tt,RootComponent:()=>Ft,boolean_html_attributes_set:()=>Jr,capture_events_set:()=>Wt,cloneComponent:()=>Yr,cloneElement:()=>Ei,createComponent:()=>_n,createElement:()=>vi,createPortal:()=>_i,createRoot:()=>Xr,current_component:()=>Si,effect_timeout:()=>Ri,events_set:()=>Kt,insertion_effects:()=>Ii,layout_effects:()=>Ai,length_css_attributes_set:()=>Hr,memo:()=>ki,passive_effects:()=>Pi,processEffects:()=>Vr,render:()=>Ti,roots:()=>Oi,special_attributes:()=>Gr,update_cbs:()=>$i,update_interval_margin:()=>Ni,update_set:()=>Ci,update_timeout:()=>Li});var yi="http://www.w3.org/2000/svg",xn=class{constructor(t){ee(this,"owner");ee(this,"current_map",new Map);ee(this,"new_map",new Map);ee(this,"pick_index",0);this.owner=t}pick(t,n){var s,c;let r,o=this.current_map.get(t);return o&&o.length>o[ue]?(r=o[o[ue]],o[ue]++,o=this.new_map.get(t),o!==void 0?o.push(r):(o=[r],this.new_map.set(t,o),o[ue]=0)):(r=n(),o=this.new_map.get(t),o!==void 0?o.push(r):(o=[r],this.new_map.set(t,o),o[ue]=0),r[w]&&((c=(s=r[w]).parent)!=null||(s.parent=this.owner))),r}commit(){this.current_map.forEach(t=>{t.slice(t[ue]).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}},Et=class{constructor(t,n){ee(this,"component");ee(this,"props");this.component=t,this.props=n||{}}apply(t=this.props,n=this.next_state||this.state){var o,a,f,l,u,p,h,d,y;let r=!0;if(this.outlet&&(this!=null&&this[Se])&&se(this.props,t,"children")&&se((o=this.props)==null?void 0:o.children,t==null?void 0:t.children)&&(r=!1),r){if(typeof n=="function"&&(n=n(this.state)),this.component.constructor.defaultProps&&(t={...this.component.constructor.defaultProps,...t}),((f=(a=this==null?void 0:this.parent)==null?void 0:a.component)!=null&&f.context||(u=(l=this==null?void 0:this.parent)==null?void 0:l.component)!=null&&u.getChildContext)&&(this.context={...this.parent.component.context,...(h=(p=this.parent.component).getChildContext)==null?void 0:h.call(p)}),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(yi,this.entity)):this.element=document.createElement(this.entity),t!=null&&t.defaultValue&&(this.element.value=String(t.defaultValue).slice(0,t==null?void 0:t.maxLength)),t!=null&&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 m=this.state,g=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.");if(this.next_state&&delete this.next_state,this.hooks!==void 0){this.hook_index=0,T.current_component=[this,T.current_component];try{this.outlet=this.component.render(t,{current:this.element||this.component})}catch(x){Br(this,x)}T.current_component=T.current_component[1]}else try{this.outlet=this.component.render({current:this.element||this.component})}catch(x){Br(this,x)}this!=null&&this.portal&&(this.element=this.portal),((y=(d=this.outlet)==null?void 0:d.constructor)==null?void 0:y.name)!=="Array"&&(this.outlet=[this.outlet]),this.outlet=[...this.outlet];for(let x=0;x<this.outlet.length;x++){let v=this.outlet[x];if(v==null||typeof v=="boolean")this.outlet.splice(x,1),x--;else if(typeof v=="function"){let _=this.childFunctionHandler(v);this.outlet.splice(x,1,_),x--}else if(v.constructor.name==="Array")this.outlet.splice(x,1,...v),x--;else{let _=bi(this,v);this.outlet[x]=_,_[K]===void 0?(_.container=this.element?this:this.container,_.apply(v.props)):_.element?_[K]!==v[K]&&(_.element.textContent=v[K],_[K]=v[K]):(_.element=document.createTextNode(v[K]),_[K]=v[K])}}this.cache&&this.cache.commit(),this.element&&this.arrangeOutlet(),this.component.componentDidUpdate&&this.component.componentDidUpdate(g,m,this.last_snapshot),this.last_snapshot&&delete this.last_snapshot}}async cleanup(){var t,n,r;try{let o=[];if((t=this.props)!=null&&t.ref&&(typeof this.props.ref=="function"?this.props.ref(null):this.props.current=null),this.component.componentWillUnmount&&this.component.componentWillUnmount(),(n=this==null?void 0:this.element)!=null&&n.parentElement&&!this.portal&&this.element.parentElement.removeChild(this.element),this.outlet!==void 0)for(let s of this.outlet)s.cleanup&&o.push(s.cleanup());if(((r=this.props)==null?void 0:r.children)!==void 0)for(let s of this.props.children)s.cleanup&&o.push(s.cleanup());if(this.hooks!==void 0)for(let s of this.hooks)s.cleanup&&o.push(s.cleanup());await Promise.all(o)}catch(o){throw o}}updateElementProps(t,n=!1){var r,o,s,c,a,f,l;this.entity==="input"?(t!=null&&t.type||(t.type="text"),t.type!==this.element.type&&(this.element.type=t.type),(t==null?void 0:t.value)!==void 0&&(t==null?void 0:t.value)!==this.element.value&&(t.value===void 0&&(t.value=""),this.element.value=String(t.value).slice(0,t==null?void 0:t.maxLength))):this.entity==="textarea"?(t==null?void 0:t.value)!==this.element.value&&(this.element.value=String(t.value).slice(0,t==null?void 0:t.maxLength)):this.entity==="select"&&(t==null?void 0:t.value)!==this.element.value&&T.setTimeout(()=>this.element.value=String(t.value),0);for(let u in this.props){let p=u.toLowerCase();t.hasOwnProperty(u)||(Kt.has(p)?this.event_detachers[p]():this.element.removeAttribute(u))}for(let u in t){let p=u.toLowerCase();if(!Gr.has(p)&&(t===this.props||!T.defaultIsEqual(t[u],this.props[u])||n))if(Kt.has(p))(r=this.event_detachers)!=null||(this.event_detachers={}),(s=(o=this.event_detachers)[p])==null||s.call(o),this.event_detachers[p]=T.addWrappedEventListener(this.element,p.substring(2),t[u]);else if(Wt.hasOwnProperty(p)){let h=Wt[p];(c=this.event_detachers)!=null||(this.event_detachers={}),(f=(a=this.event_detachers)[p])==null||f.call(a),this.event_detachers[p]=T.addWrappedEventListener(this.element,h.substring(2),t[u],{capture:!0})}else if(u==="style")if(typeof t.style=="string")this.element.style=t.style;else{if((l=this.props)!=null&&l.style)if(typeof this.props.style=="string")this.element.style="";else for(let h in this.props.style)t.style.hasOwnProperty(h)||(this.element.style[h]="");for(let h in t.style)Hr.has(h)&&isFinite(t.style[h])&&(t.style[h]+="px");Object.assign(this.element.style,t.style)}else Jr.has(u)?(this.element[u]=qt(t[u]),this.element[u]||this.element.removeAttribute(u)):u==="autoFocus"?this.element.autofocus=qt(t[u]):u==="htmlFor"?this.element.setAttribute("for",t[u]):(p!=="value"||["input","textarea","select"].indexOf(this.entity)===-1)&&this.element.setAttribute(p,t[u])}t!=null&&t.action?this.element.onsubmit=t.action:this.element.onsubmit=void 0,this.updateElementClass(t)}updateElementClass(t=this.props){var r,o;let n=t==null?void 0:t.className;if(n!=null||(n=t!=null&&t.class?t.class:""),(r=this==null?void 0:this.parent)!=null&&r[he]&&(n+=" "+((o=this==null?void 0:this.parent)==null?void 0:o[he])),n.length>0){n=n.split(/\s+/g);for(let s of Array.from(this.element.classList))n.indexOf(s)===-1&&this.element.classList.remove(s);for(let s of n)s.length>0&&this.element.classList.add(s)}else delete this.element.className}scanZombies(t,n){let r=t.element.childNodes;for(;r[t.insert_index]&&r[t.insert_index][hn]&&r[t.insert_index]!==n;)t.insert_index++}appendElement(t){var n;t.portal||(this.scanZombies(t.container,t.element),(t==null?void 0:t.element.parentNode)===null?(t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),(n=t==null?void 0:t.component)!=null&&n.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(){var t;this.insert_index=0;for(let n of this.outlet)n&&(n.element?(n.container=this.element?this:this.container,n.container.appendElement(n)):(n.arrangeOutlet&&n.arrangeOutlet(),n!=null&&n.mounted||(n.mounted=!0,(t=n==null?void 0:n.component)!=null&&t.componentDidMount&&n.component.componentDidMount())))}childFunctionHandler(t){return t(this.state)}},Br=(e,t)=>{var o,s,c,a;let n=[e];for(;e&&!((o=e.component)!=null&&o.componentDidCatch);)e=e.parent,e&&n.push(e);(s=e==null?void 0:e.component)!=null&&s.componentDidCatch&&(c=e.entity)!=null&&c.getDerivedStateFromError&&e.component.setState(e.entity.getDerivedStateFromError.call(e,t));let r=Array.prototype.map.call(n,f=>`in ${typeof f.component.displayName=="function"?f.component.displayName():f.component.displayName}`).join(`
|
|
58
|
-
`);if(t.componentStack=n,t.componentStackLog=r,(a=e==null?void 0:e.component)!=null&&a.componentDidCatch)e.component.componentDidCatch(t,{componentStack:n,componentStackLog:r});else throw t};function gi(e,t){let n=e;if(e[K]===void 0){let r=e.entity,o=!1;if(typeof r=="object")if(r[Se])o=r[Se],r=r.component;else throw new Error("Invalid component.");if(typeof r=="string")n=new Tt(r,e.props);else{if(bn(r)){r!=null&&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[w].state=n.state,Object.defineProperty(n,"state",{get(){return this[w].state},set(c){if(this[w].state===void 0)this[w].state=c;else throw new Error("Assigning component state this way is not allowed.")}}))}else if(typeof r=="function")r!=null&&r.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new Ie(e.props),n.render=r.bind(n),n[w].hooks=[],n[w].hook_index=0;else throw new Error("Error in constructing component.");n[w].entity=r,e.container&&(n[w].container=e.container)}o&&(n[w][Se]=!0)}return t instanceof Et&&(n[w].parent=t),n}function bi(e,t){var n,r,o;try{return(n=e.cache)!=null||(e.cache=new xn(e)),t=e.cache.pick(t[K]===void 0?(r=t==null?void 0:t.props)==null?void 0:r.key:":text:",()=>t[K]!==void 0||t instanceof Et?t:gi(t,e)[w]),t}catch(s){if((o=t==null?void 0:t.component)!=null&&o.componentDidCatch)t.component.componentDidCatch(s);else throw s}}function wi(){clearTimeout(T.effect_timeout);let e=T.update_set,t=T.update_cbs;T.update_set=new Set,T.update_cbs=new Set;for(let n of e)n.apply();for(let n of t)n();Vr()}function Vr(){let e=T.insertion_effects,t=T.layout_effects,n=T.passive_effects;T.insertion_effects=new Set,T.layout_effects=new Set,T.passive_effects=new Set;for(let r of e)r();for(let r of t)r();requestAnimationFrame(()=>{for(let r of n)r()})}var xi=(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[K]!==void 0?n=":text:":(typeof e=="string"?n=":t:"+e:e!=null&&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[w].state}set state(t){if(this[w].state===void 0)this[w].state=t;else throw new Error("Assigning component state this way is not allowed.")}get context(){return this[w].context}set context(t){throw new Error("Assigning component context this way is not allowed.")}get type(){return this[w].entity}set type(t){throw new Error("Component type is immutable.")}get props(){return this[w].props}set props(t){throw new Error("Assigning component props this way is not allowed.")}get ref(){return this[w].ref}set ref(t){throw new Error("Component ref is immutable.")}get key(){return this[w].props.key}set key(t){throw new Error("Component key is immutable.")}displayName(){let t=this[w].entity;return t!=null&&t.displayName?typeof t.displayName=="function"?t.displayName():t.displayName:typeof t=="string"?t:typeof t=="function"&&t.name||"Component"}constructor(t){this[w]=new Et(this,t)}forceUpdate(t){T.clearTimeout(T.update_timeout),T.update_set.add(this[w].container||this[w]),t&&T.update_cbs.add(t.bind(this)),T.update_timeout=T.setTimeout(wi,T.update_interval_margin)}setState(t,n){this.getSnapshotBeforeUpdate!==void 0&&(this[w].last_snapshot=this.getSnapshotBeforeUpdate(this[w].props,this.state)),this[w].next_state=t,this.forceUpdate(n?n.bind(this):void 0)}},Tt=class extends Ie{constructor(t,n){super(n),this[w].entity=t,t==="svg"&&(this[w].is_svg=!0)}render(){return this[w].props.children}},Ft=class extends Tt{constructor(n,r){super(":root:",r);ee(this,"displayName","Root");typeof this.element=="string"&&(n=document.querySelector(n)),this[w].element=n;for(let o of r.children)o[w]?o[w].container=this[w]:o.container=this[w]}};function _n(e,t={},...n){if(typeof e!="string"&&typeof e!="function"&&(typeof e!="object"||!e[Se]))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]={[K]:o}:n[r]=o}return t.key=xi(e,t),t.children=n,{entity:e,props:t,[w]:null}}function Xr(e){let t;return{render(n){if(t)throw new Error("root already rendered!");return t=new Ft(e,{children:[n]}),T.roots.add(t[w]),t.forceUpdate(),t},unmount(){t&&(t.cleanup(),e.innerHTML="")}}}function _i(e,t){return _n(T.Portal,{view:t},e)}function Yr(e,t,...n){let r={entity:e.entity,props:{...e.props,...t},[w]:null};return n!=null&&n.length&&(r.props.children=n),r}var Ei=Yr;function Ti(e,t){if(e[w]&&(e[w].container||e[w].parent))throw new Error("Component is already in use");return Xr(t).render(e)}function ki(e){return typeof e=="object"?e[Se]=!0:e={component:e,[Se]:!0,[w]:null},e}var vi=_n,Si=[],Ci=new Set,$i=new Set,Oi=new Set,Ai=new Set,Ii=new Set,Pi=new Set,Li,Ri,Ni=0,Gr=new Set(["classname","ref","action","lilact_jsx_loc","children","key","defaultvalue","defaultchecked"]),Kt=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","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"]),Wt={};for(let e of Kt)Wt[e+"capture"]=e;var Hr=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"]),Jr=new Set(["disabled","readOnly","required","checked","multiple","hidden","open","loop","muted","controls","playsInline","allowFullScreen"]);var kn={};Q(kn,{createContext:()=>rt,startTransition:()=>Wi,useActionState:()=>Ui,useCallback:()=>ye,useContext:()=>ot,useDebugValue:()=>Ki,useDeferredValue:()=>Fi,useEffect:()=>ne,useHook:()=>ce,useId:()=>ji,useImperativeHandle:()=>Tn,useInsertionEffect:()=>Mi,useLayoutEffect:()=>Pe,useLocalStorage:()=>Di,useMemo:()=>kt,useReducer:()=>qi,useRef:()=>R,useState:()=>te,useTransition:()=>Zr});function ce(){let e=T.current_component[0];return e.hooks[e.hook_index]===void 0&&e.hooks.push({}),e.hooks[e.hook_index++]}function te(e){let t=ce();return W(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,T.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=ce();return!W(n)&&t!==void 0&&(n==null?void 0:n.deps)!==void 0&&se(t,n.deps)||(n!=null&&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){var n,r,o;let t=(n=T.current_component[0])==null?void 0:n.parent;for(;t&&t.entity!==e.Provider;)t=t.parent;return t&&(o=(r=t.props)==null?void 0:r.value)!=null?o:e.default}function ji(e="N"){let t=ce();return W(t)&&(t.id=e+T.id_num++),t.id}function Zr(){let e=ce();return W(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,T.current_component[0],e)),[e.count!=0,e.func]}function Di(e,t){let n=ce(),r;try{r=JSON.parse(localStorage[e])}catch(o){}return r===void 0&&(typeof t=="function"&&(t=t()),r=t,localStorage[e]=JSON.stringify(r)),W(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,T.current_component[0],n)),[n.value,n.set_func]}function R(e=null){let t=ce();return W(t)&&(t.current=e),t}async function Pe(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();!W(n)&&t!==void 0&&(n==null?void 0:n.deps)!==void 0&&se(t,n.deps)||(n!=null&&n.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,T.layout_effects.add(async()=>{n.cleanup=await e()}),T.clearTimeout(T.effect_timeout),T.setTimeout(T.processEffects,0))}async function ne(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();!W(n)&&t!==void 0&&(n==null?void 0:n.deps)!==void 0&&se(t,n.deps)||(n!=null&&n.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,T.passive_effects.add(async()=>{n.cleanup=await e()}),T.clearTimeout(T.effect_timeout),T.setTimeout(T.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();!W(n)&&t!==void 0&&(n==null?void 0:n.deps)!==void 0&&se(t,n.deps)||(n!=null&&n.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,T.insertion_effects.add(async()=>{n.cleanup=await e()}),T.clearTimeout(T.effect_timeout),T.setTimeout(T.processEffects,0))}function kt(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!W(n)&&t!==void 0&&(n==null?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]=Zr();return W(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 W(r)&&(r.state=n?n(t):t,r.dispatch=function(o,s,c){let a=s.reducer(s.state,c);T.defaultIsEqual(a,s.state)||(s.state=a,o.component.forceUpdate())}.bind(void 0,T.current_component[0],r)),r.reducer=e,[r.state,r.dispatch]}function Fi(e,t){let{useEffect:n,useRef:r,useState:o}=T,[s,c]=o(typeof t!="undefined"?t:e),a=r(e),f=r(null);return n(()=>{if(a.current===e)return;a.current=e,f.current!=null&&(f.current.cancelled=!0,f.current=null);let l={cancelled:!1};return f.current=l,Promise.resolve().then(()=>{l.cancelled||(c(e),f.current=null)}),()=>{f.current&&(f.current.cancelled=!0,f.current=null)}},[e]),s}function Tn(e,t,n=void 0){n!==void 0&&(e==null?void 0:e.deps)!==void 0&&se(n,e.deps)||(e.deps=n,typeof(e==null?void 0:e.current)!="object"&&(e.current={}),Object.assign(e.current,t()))}function Ki(e,t=n=>n){}function Wi(e){e()}var vn={};Q(vn,{lazy:()=>Gi,require:()=>eo,required_scripts:()=>Ke,run:()=>it,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 zr(e,t="Unknown error"){if(e instanceof Error)return e;if((e==null?void 0:e.error)instanceof Error)return e.error;let n=new Error((e==null?void 0: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=zr(e);return n.lilact_source||(n.lilact_source={path:t}),n}function Fe(e,t){let n=Vi(e,t);return n.isTraced?n:typeof T.traceError=="function"?T.traceError(n,t):(T.error=n,n)}var Ke={};function Qr(e,{code:t="",isInline:n=!1,isModule:r=!0}={}){let o={path:e,code:String(t),mappings:[],exports:{},isInline:n,isModule:r,loaded:!1,request:void 0,error:void 0};return Ke[e]=o,o}function it(jsx,path=`InlineJSX-${++T.eval_num}`,{isInline=!0,isModule=!0}={}){var e,t;let module=Ke[path];module?(module.path=path,module.code=String(jsx),module.mappings=[],module.exports={},module.isInline=isInline,module.isModule=isModule,module.loaded=!1,module.error=void 0):module=Qr(path,{code:jsx,isInline,isModule});let processed;try{processed=T.transpileJSX(String(jsx),{path,mappings:module.mappings,factory:"createComponent",appendSourcemap:!1,injectTraceLabels:!0,produceCJS:!0,blocks_info:T.blocks_info})}catch(n){let r=zr(n);throw(e=r.fileName)!=null||(r.fileName=path),r.sourcePhase="transpile",module.error=r,T.error=r,r}typeof T.scanBlockLabels=="function"&&T.scanBlockLabels(processed,path),processed+=`
|
|
59
|
-
//# sourceURL=eval:/${path}`;try{globalThis.Lilact=T,globalThis.createComponent=T.createComponent,globalThis.Fragment=T.Fragment;let result=eval(processed);return module.loaded=!0,W(module.exports)?result:module.exports}catch(n){let r=Fe(n,path);throw(t=r.sourcePhase)!=null||(r.sourcePhase="runtime"),module.error=r,r}}function Xi(e,t={}){return Ke[e]||Qr(e,t)}function Yi(e,t){var o,s;let n;try{let c=(s=(o=T).resolver)==null?void 0:s.call(o,e);c==null?t.code&&!t.loaded?n=Promise.resolve(t.code):n=fetch(e).then(a=>{if(!a.ok)throw Fe(new Error(`Unable to load ${e}: HTTP ${a.status}`),e);return a.text()}):n=Promise.resolve(c)}catch(c){n=Promise.reject(Fe(c,e))}let r;return r=Promise.resolve(n).then(c=>{if(t.code=String(c),e.endsWith(".css")){mt(t.code),t.loaded=!0;return}return it(t.code,e,{isInline:!1,isModule:!0})}).then(c=>{var a;return(a=c==null?void 0:c.default)!=null?a:c}).catch(c=>{throw t.error=Fe(c,e),t.error}).finally(()=>{t.request===r&&(t.request=void 0)}),t.request=r,r}function eo(e){var c,a,f,l;let t={};if(arguments.length===2&&arguments[1]&&typeof arguments[1]=="object"&&(t=arguments[1]),(c=T.importObjectPaths)!=null&&c[e])return T.importObjectPaths[e];(a=t.requirer)!=null&&a.path&&(e=Bi(t.requirer.path,e));let n=!!T[gt]||!!t.isLazy,r=Xi(e,{isInline:!1,isModule:!0});if(r.loaded&&!t.forceUpdate&&!n)return r.exports;if(e.startsWith("#")){let u=document.getElementById(e.slice(1));if(!u)throw Fe(new Error(`Required element not found (${e})`),e);return it(u.textContent||"",e)}if(n)return T[gt]=!1,r.request?r.request:Yi(e,r);let o=(l=(f=T).resolver)==null?void 0:l.call(f,e);if(o!=null){if(e.endsWith(".css")){mt(String(o)),r.code=String(o),r.loaded=!0;return}return it(String(o),e,{isInline:!1,isModule:!0})}let s=new XMLHttpRequest;try{s.open("GET",e,!1),s.send(null)}catch(u){throw Fe(u,e)}if(s.status>=200&&s.status<300){if(e.endsWith(".css")){r.code=s.responseText,mt(r.code),r.loaded=!0;return}return it(s.responseText,e,{isInline:!1,isModule:!0})}throw Fe(new Error(`Unable to load ${e}: HTTP ${s.status||0}`),e)}function Gi(e){let t="pending",n;T[gt]=!0;try{n=e()}catch(o){t="error",n=o}T.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 eo(e.src):e.content&&it(e.content)}var In={};Q(In,{CSSTransition:()=>no,SwitchTransition:()=>us,Transition:()=>to,TransitionGroup:()=>ls});var $n={};Q($n,{animationFramePromise:()=>as,clearInterval:()=>os,clearTimeout:()=>fe,grabTimers:()=>is,pauseTimers:()=>ts,releaseTimers:()=>ss,resetTimers:()=>es,resumeTimers:()=>ns,setInterval:()=>rs,setTimeout:()=>Ne,timeoutPromise:()=>cs});var st,vt=-1,re=[],Le=-1,Re={},Bt=window.setTimeout,Zi=window.setInterval,St=window.clearTimeout,zi=window.clearInterval;function Qi(e){let t=0,n=re.length-1;for(;t<=n;){let o=Math.floor((t+n)/2),s=re[o][le];if(s===e)return[o,re[o]];s<e?t=o+1:n=o-1}let r=[];return r[le]=e,re.splice(t,0,r),[t,r]}function Sn(e,t=!1){let[n,r]=Qi(e[le]);return t||(vt++,Re[vt]=e,e[ue]=vt),r.push(e),re[0][0]===e&&(St(Le),Le=Bt(Cn,e[tt])),vt}function Cn(){let e=Date.now(),t=0,n=re[t];for(;n&&n[le]-e<=0;){for(let r of n)r[wt]?delete Re[r[ue]]:(r[xt](...r[_t]),r[bt]?(r[le]=Date.now()+r[tt],Sn(r,!0)):delete Re[r[ue]]);t++,n=re[t]}re.splice(0,t),re.length>0&&(St(Le),Le=Bt(Cn,re[0][le]-e))}function es(){St(Le),st=void 0,vt=-1,re=[],Le=-1,Re={}}function ts(){St(Le),st=Date.now()}function ns(){if(st){if(re.length>0){let e=Date.now();st-=e;for(let t of re)t[le]-=st;Le=Bt(Cn,re[0][le]-e)}st=void 0}}function Ne(e,t,...n){return Sn({[xt]:e,[tt]:t,[le]:Date.now()+t,[bt]:!1,[_t]:n})}function rs(e,t,...n){return Sn({[xt]:e,[tt]:t,[le]:Date.now()+t,[bt]:!0,[_t]:n})}function fe(e){Re[e]&&(Re[e][wt]=!0)}function os(e){Re[e]&&(Re[e][wt]=!0)}function is(){globalThis.setTimeout=Lilact.setTimeout,globalThis.setInterval=Lilact.setInterval,globalThis.clearTimeout=Lilact.clearTimeout,globalThis.clearInterval=Lilact.clearInterval}function ss(){globalThis.setTimeout=Bt,globalThis.setInterval=Zi,globalThis.clearTimeout=St,globalThis.clearInterval=zi}function cs(e=0,t=Lilact){let n,r,o,s=new Promise((c,a)=>{r=c,o=a,n=t.setTimeout(()=>{r()},e)});return s.proceed=()=>{t.clearTimeout(n),r()},s.cancel=()=>{t.clearTimeout(n),o()},s}function as(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}var On="unmounted",Vt="exited",Ct="entering",$t="entered",An="exiting";function to({in:e,timeout:t=T.defaultTransitionTimeout,mountOnEnter:n=!1,unmountOnExit:r=!1,appear:o=!1,onEnter:s,onEntering:c,onEntered:a,onExit:f,onExiting:l,onExited:u,children:p,_classNames:h}){var d,y,m,g,x,v;return(y=(d=this[w]).is_mounted)!=null||(d.is_mounted=!n||e||o),(g=(m=this[w]).is_appeared)!=null||(m.is_appeared=e),(v=(x=this[w]).timer)!=null||(x.timer=null),this[w].childFunctionHandler=_=>_(this[w].mount_state),this[w].mount_state||(this[w].is_mounted||(this[w].mount_state=On),e?this[w].mount_state=o&&!this[w].is_appeared?Ct:$t:this[w].mount_state=Vt),ne(()=>()=>fe(this[w].timer),[]),ne(()=>{!this[w].is_appeared&&o&&this[w].mount_state===Ct&&e&&(s==null||s(),requestAnimationFrame(()=>{c==null||c(!this[w].is_appeared),fe(this[w].timer),this[w].timer=Ne(()=>{this[w].mount_state=$t,this.forceUpdate(),this[w].is_appeared=!0,a==null||a(!this[w].is_appeared)},t)}))},[]),ne(()=>{if(e){if(this[w].is_mounted=!0,this[w].mount_state===Ct||this[w].mount_state===$t)return;s==null||s(!this[w].is_appeared),this[w].mount_state=Ct,this.forceUpdate(()=>{c==null||c(!this[w].is_appeared),fe(this[w].timer),this[w].timer=Ne(()=>{this[w].mount_state=$t,this.forceUpdate(),this[w].is_appeared=!0,a==null||a()},t)})}else{if(this[w].mount_state===On||this[w].mount_state===An||this[w].mount_state===Vt)return;f==null||f(),this[w].mount_state=An,this.forceUpdate(()=>{l==null||l(),fe(this[w].timer),this[w].timer=Ne(()=>{this[w].mount_state=Vt,this.forceUpdate(),u==null||u(),r&&(this[w].is_mounted=!1,this[w].mount_state=On,this.forceUpdate())},t)})}},[e,t]),this[w].is_mounted?(h&&(this[w].mount_state===Ct?this[w].is_appeared?this[w][he]=h.appearActive:this[w][he]=h.enterActive:this[w].mount_state===$t?this[w].is_appeared?this[w][he]=h.appearDone:this[w][he]=h.enterDone:this[w].mount_state===An?this[w][he]=h.exitActive:this[w].mount_state===Vt&&(this[w][he]=h.exitDone)),p):null}function no({in:e,timeout:t=T.defaultTransitionTimeout,classNames:n="fade",mountOnEnter:r=!1,unmountOnExit:o=!1,appear:s=!1,children:c,onEnter:a,onEntering:f,onEntered:l,onExit:u,onExiting:p,onExited:h}){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(to,{in:e,timeout:t,mountOnEnter:r,unmountOnExit:o,appear:s,onEnter:a,onEntering:f,onEntered:l,onExit:u,onExiting:p,onExited:h,_classNames:n},c)}function us({children:e,activeKey:t,mode:n="out-in",timeout:r=T.defaultTransitionTimeout,classNames:o="switch",mountOnEnter:s=!1,unmountOnExit:c=!1,appear:a=!1,onExited:f,onEnter:l,onExiting:u,onEntered:p,...h}){let d=kt(()=>qe.toArray(e),[e]),[y,m]=te(null),[g,x]=te(!1),[v,_]=te(!0),E=R(t),$=R(t),S=R(y);Pe(()=>{$.current=t},[t]),Pe(()=>{S.current=y},[y]),Pe(()=>{let O=E.current;O!==t&&(E.current=t,m(O),n==="out-in"?(_(!1),x(!0)):(_(!0),x(!1)))},[t,n]);let k=O=>(V,U)=>{typeof f=="function"&&f(V,U),O===S.current&&(m(null),n==="out-in"&&(x(!1),_(!0)),n==="in-out"&&x(!1))},C=O=>(V,U)=>{typeof p=="function"&&p(V,U),n==="in-out"&&O===$.current&&S.current!=null&&x(!0)};return createComponent("div",{style:{position:"relative"}},d.map((O,V)=>{var je;let U=((je=O==null?void 0:O.props)==null?void 0:je.key)||V,At=U===t?v:U===y?!g:!1;return createComponent(no,{...h,key:U,in:At,timeout:r,classNames:o,mountOnEnter:s,unmountOnExit:c,appear:a,onEnter:l,onExiting:u,onEntered:C(U),onExited:k(U)},createComponent("div",{style:{position:"absolute",inset:0}},O))}))}function ls({children:e}){return e}var Pn={};Q(Pn,{addWrappedEventListener:()=>ds,createSyntheticEvent:()=>ro,releaseSyntheticEvent:()=>oo,wrapListener:()=>io});typeof Element!="undefined"&&!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!="undefined"&&!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 Xt=[],fs=10,ps=["mouse","pen","touch"];function ro(e,t){var r,o,s,c,a,f,l,u,p,h,d,y,m,g,x,v,_,E,$,S,k,C;let n=Xt.length?Xt.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=(o=(r=e.which)!=null?r:e.keyCode)!=null?o:null,n.button=(s=e.button)!=null?s:null,n.buttons=(c=e.buttons)!=null?c:null,n.pointerId=(a=e.pointerId)!=null?a:null,n.pointerType=(f=e.pointerType)!=null?f:null,n.isPrimary=(l=e.isPrimary)!=null?l:null,n.clientX=(u=e.clientX)!=null?u:0,n.clientY=(p=e.clientY)!=null?p:0,n.screenX=(h=e.screenX)!=null?h:0,n.screenY=(d=e.screenY)!=null?d:0,n.pageX=(y=e.pageX)!=null?y:null,n.pageY=(m=e.pageY)!=null?m:null,n.movementX=(g=e.movementX)!=null?g:0,n.movementY=(x=e.movementY)!=null?x:0,n.pressure=(v=e.pressure)!=null?v:null,n.tiltX=(_=e.tiltX)!=null?_:null,n.tiltY=(E=e.tiltY)!=null?E:null,n.width=($=e.width)!=null?$:null,n.height=(S=e.height)!=null?S:null,n.pointerEventsSupported=ps.includes(n.pointerType);try{let O=n.target;n.value=O&&"value"in O?O.value:void 0,n.checked=O&&"checked"in O?O.checked:void 0,n.selectionStart=O&&"selectionStart"in O?O.selectionStart:void 0,n.selectionEnd=O&&"selectionEnd"in O?O.selectionEnd:void 0}catch(O){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=(k=e.repeat)!=null?k:!1,n.location=(C=e.location)!=null?C:0,n}function oo(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,Xt.length<fs&&Xt.push(e))}function io(e,t={}){let{stopPropagationOnTrueReturn:n=!1}=t;return function(o){let s=this||o.currentTarget||null,c=ro(o,s);try{let a=e(c);n&&a===!0&&c.stopPropagation()}finally{oo(c)}}}function ds(e,t,n,r={}){let o=io(n,r);return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)}var Ln={};Q(Ln,{Provider:()=>hs,combineReducers:()=>gs,connect:()=>ys,useDispatch:()=>ms,useSelector:()=>so,useStore:()=>Yt});var Ot;function hs({store:e,children:t}){return Ot!=null||(Ot=rt(null)),createComponent(Ot.Provider,{value:e},t)}function Yt(){let e=ot(Ot);if(!e)throw new Error("Could not find Redux store in context. <Provider> is missing.");return e}function ms(){return Yt().dispatch}function so(e,t=(n,r)=>n===r){let n=Yt(),r=R(),o=R(e);o.current=e;let[s,c]=te(()=>e(n.getState()));return r.current=s,ne(()=>{function a(){let l=o.current(n.getState());t(r.current,l)||(r.current=l,c(l))}let f=n.subscribe(a);return a(),f},[n,t]),s}function ys(e,t){let n=!!e;return function(o){function s(c){let a=Yt(),f={dispatch:a.dispatch};if(typeof t=="function")f=t(a.dispatch,c);else if(typeof t=="object"&&t!==null){f={};let p=a.dispatch;for(let h in t){let d=t[h];f[h]=(...y)=>p(d(...y))}}let l={};e&&(l=so(h=>e(h,c),se)||{});let u={...c,...l,...f};return createComponent(o,{...u})}return s}}function gs(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 f=e[a],l=r[a],u=f(l,o);c[a]=u,s=s||u!==l}return s?c:r}}var Rn={};Q(Rn,{blocks_info:()=>Cs,error:()=>$s,globalErrorHandler:()=>vs,scanBlockLabels:()=>Ss,traceError:()=>ao});function Ht(e){let t=Number(e);return Number.isFinite(t)?t:null}function bs(e){if(e instanceof Error)return e;if((e==null?void 0:e.error)instanceof Error)return e.error;let t=new Error((e==null?void 0: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 co(e){return(e==null?void 0:e.name)==="JSXParserError"}function ws(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 xs(e){var r,o,s,c;let t=Ht((o=(r=e==null?void 0:e.lineNumber)!=null?r:e==null?void 0:e.lineno)!=null?o:e==null?void 0:e.line),n=Ht((c=(s=e==null?void 0:e.columnNumber)!=null?s:e==null?void 0:e.colno)!=null?c:e==null?void 0:e.column);return{line:t==null?null:Math.max(0,t-1),column:n==null?null:Math.max(0,n-1)}}function _s(e){let t=e==null?void 0:e.lilact_trace;return Array.isArray(t)?t[0]:t}function Es(e){var n,r;let t=_s(e);return t==null?null:(r=(n=T.blocks_info)==null?void 0:n.labels)==null?void 0:r[t]}function Ts(e,t,n){if(!Array.isArray(e)||!e.length||!Number.isFinite(t)||!Number.isFinite(n))return{line:t,column:n};let r=e.filter(l=>Array.isArray(l)&&l.length>=4&&l.slice(0,4).every(u=>Number.isFinite(Number(u)))).sort((l,u)=>Number(l[0])-Number(u[0])||Number(l[1])-Number(u[1]));if(!r.length)return{line:t,column:n};let o=r[0];for(let l of r){let u=Number(l[0]),p=Number(l[1]);if(u<t||u===t&&p<=n)o=l;else break}let s=Number(o[0]),c=Number(o[1]),a=Number(o[2]),f=Number(o[3]);return{line:a+(t===s?0:t-s),column:t===s?Math.max(0,f+n-c):f}}function ao(e,t){var h,d,y,m,g,x;if(e!=null&&e.isTraced)return e;let n=bs(e),r=n.lilact_source,o=co(n)?null:ws(n.stack),s=co(n)?{line:Ht(n.lineNumber),column:Ht(n.columnNumber)}:xs(n),c=(r==null?void 0:r.path)||(o==null?void 0:o.path)||n.fileName||t||null,a=(d=(h=o==null?void 0:o.line)!=null?h:s.line)!=null?d:null,f=(m=(y=o==null?void 0:o.column)!=null?y:s.column)!=null?m:null,l={fileName:c,lineNumber:a,columnNumber:f,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},u=c&&Ke[c];if(u){let v=Ts(u.mappings,l.lineNumber,l.columnNumber);l.lineNumber=v.line,l.columnNumber=v.column}let p=Es(n);return p&&(l.lineNumber==null||l.columnNumber==null||!l.fileName)&&(l.fileName||(l.fileName=p.path||t||null),(g=l.lineNumber)!=null||(l.lineNumber=p.line),(x=l.columnNumber)!=null||(l.columnNumber=p.col),l.label=p.desc),T.error=l,l}function Gt(e){return String(e!=null?e:"").replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function ks(e,t){var r,o,s,c;if(!e||!Number.isFinite(t))return null;let n=String((r=e.code)!=null?r:"").split(/\r?\n/);return{before:(o=n[t-1])!=null?o:"",current:(s=n[t])!=null?s:"",after:(c=n[t+1])!=null?c:""}}function vs(e){var l,u;let t=(e==null?void 0:e.error)instanceof Error?e.error:(e==null?void 0:e.reason)!==void 0?e.reason:e,n=ao(t,(e==null?void 0:e.fileName)||null),r=ks(Ke[n.fileName],n.lineNumber),o=dn(`
|
|
57
|
+
var tr=Object.defineProperty;var To=(e,t,n)=>t in e?tr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t)=>{for(var n in t)tr(e,n,{get:t[n],enumerable:!0})};var ee=(e,t,n)=>To(e,typeof t!="symbol"?t+"":t,n);var on={};Q(on,{__DO_NOT_USE__ActionTypes:()=>at,applyMiddleware:()=>Ao,bindActionCreators:()=>Oo,combineReducers:()=>$o,compose:()=>or,createStore:()=>rn,isAction:()=>Io,isPlainObject:()=>nn,legacy_createStore:()=>So});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,tn=()=>Math.random().toString(36).substring(7).split("").join("."),ko={INIT:`@@redux/INIT${tn()}`,REPLACE:`@@redux/REPLACE${tn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${tn()}`},at=ko;function nn(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 rn(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=="undefined"&&(n=t,t=void 0),typeof n!="undefined"){if(typeof n!="function")throw new Error(q(1));return n(rn)(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((h,w)=>{c.set(w,h)}))}function f(){if(l)throw new Error(q(3));return o}function p(h){if(typeof h!="function")throw new Error(q(4));if(l)throw new Error(q(5));let w=!0;u();let E=a++;return c.set(E,h),function(){if(w){if(l)throw new Error(q(6));w=!1,u(),c.delete(E),s=null}}}function g(h){if(!nn(h))throw new Error(q(7));if(typeof h.type=="undefined")throw new Error(q(8));if(typeof h.type!="string")throw new Error(q(17));if(l)throw new Error(q(9));try{l=!0,o=r(o,h)}finally{l=!1}return(s=c).forEach(E=>{E()}),h}function d(h){if(typeof h!="function")throw new Error(q(10));r=h,g({type:at.REPLACE})}function y(){let h=p;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(q(11));function E(){let T=w;T.next&&T.next(f())}return E(),{unsubscribe:h(E)}},[nr](){return this}}}return g({type:at.INIT}),{dispatch:g,subscribe:p,getState:f,replaceReducer:d,[nr]:y}}function So(e,t,n){return rn(e,t,n)}function Co(e){Object.keys(e).forEach(t=>{let n=e[t];if(typeof n(void 0,{type:at.INIT})=="undefined")throw new Error(q(12));if(typeof n(void 0,{type:at.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(q(13))})}function $o(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{Co(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 g=r[p],d=n[g],y=a[g],m=d(y,l);if(typeof m=="undefined"){let h=l&&l.type;throw new Error(q(14))}f[g]=m,u=u||m!==y}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 Ao(...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 Io(e){return nn(e)&&"type"in e&&typeof e.type=="string"}var mt={};Q(mt,{cache:()=>oi,css:()=>fn,cx:()=>Qo,flush:()=>Zo,getRegisteredStyles:()=>ti,hydrate:()=>zo,injectGlobal:()=>ht,keyframes:()=>ni,merge:()=>ei,sheet:()=>ri});var Po=!1;function Lo(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 Ro(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?!Po: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(Ro(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Lo(o);try{s.insertRule(r,s.cssRules.length)}catch(c){}}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-",ut="-moz-",P="-webkit-",Ot="comm",Ke="rule",We="decl";var sr="@import";var At="@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 It(e){return e.trim()}function sn(e,t){return(e=t.exec(e))?e[0]:e}function I(e,t,n){return e.replace(t,n)}function lt(e,t){return e.indexOf(t)}function N(e,t){return e.charCodeAt(t)|0}function Oe(e,t,n){return e.slice(t,n)}function G(e){return e.length}function Be(e){return e.length}function Ve(e,t){return t.push(e),e}function cn(e,t){return e.map(t).join("")}var Pt=1,Xe=1,fr=0,H=0,j=0,Ge="";function ft(e,t,n,r,o,s,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Pt,column:Xe,length:c,return:""}}function He(e,t){return ur(ft("",null,null,"",null,null,0),e,{length:-e.length},t)}function pr(){return j}function dr(){return j=H>0?N(Ge,--H):0,Xe--,j===10&&(Xe=1,Pt--),j}function J(){return j=H<fr?N(Ge,H++):0,Xe++,j===10&&(Xe=1,Pt++),j}function ae(){return N(Ge,H)}function pt(){return H}function Je(e,t){return Oe(Ge,e,t)}function Ye(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 Lt(e){return Pt=Xe=1,fr=G(Ge=e),H=0,[]}function Rt(e){return Ge="",e}function Ze(e){return It(Je(H-1,an(e===91?e+2:e===40?e+1:e)))}function hr(e){for(;(j=ae())&&j<33;)J();return Ye(e)>2||Ye(j)>3?"":" "}function mr(e,t){for(;--t&&J()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return Je(e,pt()+(t<6&&ae()==32&&J()==32))}function an(e){for(;J();)switch(j){case e:return H;case 34:case 39:e!==34&&e!==39&&an(j);break;case 40:e===41&&an(e);break;case 92:J();break}return H}function yr(e,t){for(;J()&&e+j!==57;)if(e+j===84&&ae()===47)break;return"/*"+Je(t,H-1)+"*"+je(e===47?e:J())}function gr(e){for(;!Ye(ae());)J();return Je(e,H)}function xr(e){return Rt(Nt("",null,null,null,[""],e=Lt(e),0,[0],e))}function Nt(e,t,n,r,o,s,c,a,l){for(var u=0,f=0,p=c,g=0,d=0,y=0,m=1,h=1,w=1,E=0,_="",T=o,$=s,S=r,k=_;h;)switch(y=E,E=J()){case 40:if(y!=108&&N(k,p-1)==58){lt(k+=I(Ze(E),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:k+=Ze(E);break;case 9:case 10:case 13:case 32:k+=hr(y);break;case 92:k+=mr(pt()-1,7);continue;case 47:switch(ae()){case 42:case 47:Ve(No(yr(J(),pt()),t,n),l);break;default:k+="/"}break;case 123*m:a[u++]=G(k)*w;case 125*m:case 59:case 0:switch(E){case 0:case 125:h=0;case 59+f:w==-1&&(k=I(k,/\f/g,"")),d>0&&G(k)-p&&Ve(d>32?wr(k+";",r,n,p-1):wr(I(k," ","")+";",r,n,p-2),l);break;case 59:k+=";";default:if(Ve(S=br(k,t,n,u,f,o,a,_,T=[],$=[],p),s),E===123)if(f===0)Nt(k,t,S,S,T,s,p,a,$);else switch(g===99&&N(k,3)===110?100:g){case 100:case 108:case 109:case 115:Nt(e,S,S,r&&Ve(br(e,S,S,0,0,o,a,_,o,T=[],p),$),o,$,p,a,r?T:$);break;default:Nt(k,S,S,S,[""],$,0,a,$)}}u=f=d=0,m=w=1,_=k="",p=c;break;case 58:p=1+G(k),d=y;default:if(m<1){if(E==123)--m;else if(E==125&&m++==0&&dr()==125)continue}switch(k+=je(E),E*m){case 38:w=f>0?1:(k+="\f",-1);break;case 44:a[u++]=(G(k)-1)*w,w=1;break;case 64:ae()===45&&(k+=Ze(J())),g=ae(),f=p=G(_=k+=gr(pt())),E++;break;case 45:y===45&&G(k)==2&&(m=0)}}return s}function br(e,t,n,r,o,s,c,a,l,u,f){for(var p=o-1,g=o===0?s:[""],d=Be(g),y=0,m=0,h=0;y<r;++y)for(var w=0,E=Oe(e,p+1,p=ar(m=c[y])),_=e;w<d;++w)(_=It(m>0?g[w]+" "+E:I(E,/&\f/g,g[w])))&&(l[h++]=_);return ft(e,t,n,o===0?Ke:a,l,u,f)}function No(e,t,n){return ft(e,t,n,Ot,je(pr()),Oe(e,2,-2),0)}function wr(e,t,n,r){return ft(e,t,n,We,Oe(e,0,r),Oe(e,r+1,-1),r)}function De(e,t){for(var n="",r=Be(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 We:return e.return=e.return||e.value;case Ot:return"";case At:return e.return=e.value+"{"+De(e.children,r)+"}";case Ke:e.value=e.props.join(",")}return G(n=De(e.children,r))?e.return=e.value+"{"+n+"}":""}function Er(e){var t=Be(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 Tr(e){return function(t){t.root||(t=t.return)&&e(t)}}function vr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var jo=function(t,n,r){for(var o=0,s=0;o=s,s=ae(),o===38&&s===12&&(n[r]=1),!Ye(s);)J();return Je(t,H)},Do=function(t,n){var r=-1,o=44;do switch(Ye(o)){case 0:o===38&&ae()===12&&(n[r]=1),t[r]+=jo(H-1,n,r);break;case 2:t[r]+=Ze(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},Mo=function(t,n){return Rt(Do(Lt(t),n))},kr=new WeakMap,Uo=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&&!kr.get(r))&&!o){kr.set(t,!0);for(var s=[],c=Mo(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]}}},qo=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 P+"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 P+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return P+e+ut+e+F+e+e;case 6828:case 4268:return P+e+F+e+e;case 6165:return P+e+F+"flex-"+e+e;case 5187:return P+e+I(e,/(\w+).+(:[^]+)/,P+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return P+e+F+"flex-item-"+I(e,/flex-|-self/,"")+e;case 4675:return P+e+F+"flex-line-pack"+I(e,/align-content|flex-|-self/,"")+e;case 5548:return P+e+F+I(e,"shrink","negative")+e;case 5292:return P+e+F+I(e,"basis","preferred-size")+e;case 6060:return P+"box-"+I(e,"-grow","")+P+e+F+I(e,"grow","positive")+e;case 4554:return P+I(e,/([^-])(transform)/g,"$1"+P+"$2")+e;case 6187:return I(I(I(e,/(zoom-|grab)/,P+"$1"),/(image-set)/,P+"$1"),e,"")+e;case 5495:case 3959:return I(e,/(image-set\([^]*)/,P+"$1$`$1");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,P+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+P+e+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,P+"$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 I(e,/(.+:)(.+)-([^]+)/,"$1"+P+"$2-$3$1"+ut+(N(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~lt(e,"stretch")?Sr(I(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-(~lt(e,"!important")&&10))){case 107:return I(e,":",":"+P)+e;case 101:return I(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P+(N(e,14)===45?"inline-":"")+"box$3$1"+P+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(N(e,t+11)){case 114:return P+e+F+I(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return P+e+F+I(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return P+e+F+I(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return P+e+F+e+e}return e}var Fo=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case We:t.return=Sr(t.value,t.length);break;case At:return De([He(t,{value:I(t.value,"@","@"+P)})],o);case Ke:if(t.length)return cn(t.props,function(s){switch(sn(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return De([He(t,{props:[I(s,/:(read-\w+)/,":"+ut+"$1")]})],o);case"::placeholder":return De([He(t,{props:[I(s,/:(plac\w+)/,":"+P+"input-$1")]}),He(t,{props:[I(s,/:(plac\w+)/,":"+ut+"$1")]}),He(t,{props:[I(s,/:(plac\w+)/,F+"input-$1")]})],o)}return""})}},Ko=[Fo],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(m){var h=m.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ko,s={},c,a=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var h=m.getAttribute("data-emotion").split(" "),w=1;w<h.length;w++)s[h[w]]=!0;a.push(m)});var l,u=[Uo,qo];{var f,p=[_r,Tr(function(m){f.insert(m)})],g=Er(u.concat(o,p)),d=function(h){return De(xr(h),g)};l=function(h,w,E,_){f=E,d(h?h+"{"+w.styles+"}":w.styles),_&&(y.inserted[w.name]=!0)}}var y={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 y.sheet.hydrate(a),y};function $r(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 Or={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 Wo=!1,Bo=/[A-Z]|^ms/g,Vo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Lr=function(t){return t.charCodeAt(1)===45},Ar=function(t){return t!=null&&typeof t!="boolean"},un=vr(function(e){return Lr(e)?e:e.replace(Bo,"-$&").toLowerCase()}),Ir=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Vo,function(r,o,s){return xe={name:o,styles:s,next:xe},o})}return Or[t]!==1&&!Lr(t)&&typeof n=="number"&&n!==0?n+"px":n},Xo="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 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 Yo(e,t,n)}case"function":{if(e!==void 0){var l=xe,u=n(e);return xe=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 Yo(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]+"}":Ar(a)&&(r+=un(s)+":"+Ir(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&Wo)throw new Error(Xo);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+=un(s)+":"+Ir(s,c[l])+";");else{var u=dt(e,t,c);switch(s){case"animation":case"animationName":{r+=un(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}}return r}var Pr=/label:\s*([^\s;{]+)\s*(;|$)/g,xe;function jt(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+=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]}Pr.lastIndex=0;for(var u="",f;(f=Pr.exec(o))!==null;)u+="-"+f[1];var p=$r(o)+u;return{name:p,styles:o,next:xe}}var Go=!0;function ln(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Ho=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Go===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Rr=function(t,n,r){Ho(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 Nr(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function jr(e,t,n){var r=[],o=ln(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=jt(u,n.registered,void 0);return Rr(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=jt(u,n.registered),g="animation-"+p.name;return Nr(n,{name:p.name,styles:"@keyframes "+g+"{"+p.styles+"}"}),g},s=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=jt(u,n.registered);Nr(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,Jo(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:ln.bind(null,n.registered),merge:jr.bind(null,n.registered,r)}},Jo=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"}),Zo=_e.flush,zo=_e.hydrate,Qo=_e.cx,ei=_e.merge,ti=_e.getRegisteredStyles,ht=_e.injectGlobal,ni=_e.keyframes,fn=_e.css,ri=_e.sheet,oi=_e.cache;var gn={};Q(gn,{Children:()=>Me,Fragment:()=>Mr,Portal:()=>Ur,deepEqual:()=>hn,eval_num:()=>fi,findDOMNode:()=>si,forwardRef:()=>mn,getComponentByPointer:()=>ci,id_num:()=>li,isAsync:()=>ai,isClass:()=>yn,isEmpty:()=>W,isError:()=>ui,isThenable:()=>Dt,isValidComponent:()=>et,isValidElement:()=>ii,shallowEqual:()=>se,toBool:()=>Mt});var dn={};Q(dn,{ARGS:()=>xt,CALLBACK:()=>wt,CHILD_CLASS_ADDENDUM:()=>de,CLEARED:()=>bt,COMPONENT:()=>ze,CORE:()=>x,DUE:()=>le,IDX:()=>ue,INTERVAL:()=>Qe,IS_ZOMBIE:()=>pn,LAZY:()=>yt,MEMOIZED:()=>ke,REPEAT:()=>gt,TEXT:()=>K});var[x,ze,K,pn,ue,de,ke,yt,le,gt,bt,Qe,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 Ee=e=>{let t=Object.prototype.toString.call(e).toLowerCase();return/\[object (.*)]/g.exec(t)[1]},et=e=>!!(e&&(e[x]!==void 0||e[TEXT]!==void 0)),ii=et,si=e=>{var t,n;if(!((n=(t=e[x])==null?void 0:t.element)!=null&&n.parentNode))throw new Error("findDOMNode only works on mounted components.");return e[x].element};function Mr({children:e}){return e}Mr.displayName="Fragment";function Ur({children:e,view:t}){return this[x].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}},mn=e=>{let t=function(n,r){return e({...n,ref:void 0},r)};return t.displayName="Forwarded "+e.displayName,t};function ci(){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[ze]&&o.parentNode;)o=o.parentNode;return e(o[ze]),!1}return window.addEventListener("click",n,!0),t}function W(e){for(let t in e)return!1;return!0}var se=(e,t,n)=>{if(Object.is(e,t))return!0;if(Ee(e)!==Ee(t))return!1;if(Ee(e)==="array")return e.length!==t.length?!1:e.every((r,o)=>o===n||Object.is(r,t[o]));if(Ee(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 Ee(e)==="date"?e.getTime()===t.getTime():Object.is(e,t)};function hn(e,t){return Ee(e)!==Ee(t)?!1:Ee(e)==="array"?e.length!==t.length?!1:e.every((n,r)=>hn(n,t[r])):Ee(e)==="object"?Object.keys(e).length!==Object.keys(t).length?!1:Object.keys(e).every(n=>hn(e[n],t[n])):Ee(e)==="date"?e.getTime()===t.getTime():e===t}function yn(e){return!(e&&e.constructor===Function)||e.prototype===void 0?!1:Function.prototype!==Object.getPrototypeOf(e)?!0:Object.getOwnPropertyNames(e.prototype).length>1}function ai(e){return typeof e=="function"&&e.constructor&&e.constructor.name==="AsyncFunction"}function Dt(e){return e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function ui(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function Mt(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 li=Math.floor(Math.random()*1e4),fi=0;function Z(e){return e==null}function B(e){return e||"<<anonymous>>"}function pi(e){return e&&(e.displayName||e.name)||"Unknown"}function qr(e){return e==null||e===!1||e===!0||typeof e=="string"||typeof e=="number"||et(e)?!0:Array.isArray(e)?e.every(qr):!1}function di(e){return typeof e=="function"||typeof e=="string"}function he(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 \`${B(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 \`${B(s)}\`, but its value is \`${l}\`.`):t(r,o,s,c,a)},t}function hi(){let e={};e.any=(function(){let r=function(s,c,a,l,u){return null};return r.isRequired=function(){return null},r})(),e.array=he(r=>Array.isArray(r)),e.array.expectedType="array",e.bool=he(r=>typeof r=="boolean"),e.bool.expectedType="boolean",e.func=he(r=>typeof r=="function"),e.func.expectedType="function",e.number=he(r=>typeof r=="number"&&!Number.isNaN(r)),e.number.expectedType="number",e.object=he(r=>typeof r=="object"&&r!==null&&!Array.isArray(r)),e.object.expectedType="object",e.string=he(r=>typeof r=="string"),e.string.expectedType="string",e.symbol=he(r=>typeof r=="symbol"),e.symbol.expectedType="symbol",e.component=he(r=>et(r)),e.component.expectedType="component",e.element=he(r=>et(r)),e.element.expectedType="element",e.node=he(r=>qr(r)),e.node.expectedType="node",e.elementType=he(r=>di(r)),e.elementType.expectedType="elementType",e.oneOf=function(o){let s=Array.isArray(o)?o:[],c=function(l,u,f,p,g){let d=l[u];if(Z(d))return null;for(let m=0;m<s.length;m++)if(d===s[m])return null;let y=d===null?"null":typeof d;return new Error(`Invalid ${p} \`${g}\` of value \`${String(d)}\` supplied to \`${B(f)}\`, expected one of [${s.map(String).join(", ")}] (received type \`${y}\`).`)};return c.isRequired=function(l,u,f,p,g){return Z(l[u])?new Error(`The ${p} \`${g}\` is marked as required in \`${B(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,g)},c},e.oneOfType=function(o){let s=o||[],c=function(l,u,f,p,g){let d=l[u];if(Z(d))return null;for(let y=0;y<s.length;y++)if(s[y](l,u,f,p,g)===null)return null;return new Error(`Invalid ${p} \`${g}\` supplied to \`${B(f)}\` (none of the allowed types matched).`)};return c.isRequired=function(l,u,f,p,g){return Z(l[u])?new Error(`The ${p} \`${g}\` is marked as required in \`${B(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,g)},c},e.arrayOf=function(o){let s=o,c=function(l,u,f,p,g){let d=l[u];if(Z(d))return null;if(!Array.isArray(d))return new Error(`Invalid ${p} \`${g}\` of type \`${typeof d}\` supplied to \`${B(f)}\`, expected an array.`);for(let y=0;y<d.length;y++){let m=`${g}[${y}]`,h=s({[u]:d[y]},u,f,p,m);if(h!==null)return h}return null};return c.isRequired=function(l,u,f,p,g){return Z(l[u])?new Error(`The ${p} \`${g}\` is marked as required in \`${B(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,g)},c},e.objectOf=function(o){let s=o,c=function(l,u,f,p,g){let d=l[u];if(Z(d))return null;if(typeof d!="object"||d===null||Array.isArray(d))return new Error(`Invalid ${p} \`${g}\` of type \`${typeof d}\` supplied to \`${B(f)}\`, expected an object.`);let y=Object.keys(d);for(let m=0;m<y.length;m++){let h=y[m],w=`${g}.${h}`,E=s({[u]:d[h]},u,f,p,w);if(E!==null)return E}return null};return c.isRequired=function(l,u,f,p,g){return Z(l[u])?new Error(`The ${p} \`${g}\` is marked as required in \`${B(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,g)},c};function t(r,{exact:o}){let s=r?Object.keys(r):[],c=function(l,u,f,p,g){let d=l[u];if(Z(d))return null;if(typeof d!="object"||d===null||Array.isArray(d))return new Error(`Invalid ${p} \`${g}\` of type \`${typeof d}\` supplied to \`${B(f)}\`, expected an object.`);if(o){let m=Object.keys(d);for(let h=0;h<m.length;h++){let w=m[h];if(!Object.prototype.hasOwnProperty.call(r,w)){let E=`${g}.${w}`;return new Error(`Invalid ${p} \`${E}\` supplied to \`${B(f)}\`: extra key \`${w}\` is not allowed by exact().`)}}}for(let m=0;m<s.length;m++){let h=s[m],w=r[h],E=d[h],_=`${g}.${h}`;if(Z(E)){let $=w({[u]:E},u,f,p,_);if($!==null)return $;continue}let T=w({[u]:E},u,f,p,_);if(T!==null)return T}return null};return c.isRequired=function(l,u,f,p,g){return Z(l[u])?new Error(`The ${p} \`${g}\` is marked as required in \`${B(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,g)},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 g=a[l];return Z(g)||g instanceof o?null:new Error(`Invalid ${f} \`${p}\` supplied to \`${B(u)}\`: expected instance of \`${pi(o)}\`.`)};return s.isRequired=function(a,l,u,f,p){return Z(a[l])?new Error(`The ${f} \`${p}\` is marked as required in \`${B(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){},e}var Fr=hi();var xn={};Q(xn,{Component:()=>Ae,HTMLComponent:()=>Et,RootComponent:()=>Ut,boolean_html_attributes_set:()=>Gr,capture_events_set:()=>Ft,cloneComponent:()=>Vr,cloneElement:()=>_i,createComponent:()=>wn,createElement:()=>vi,createPortal:()=>xi,createRoot:()=>Br,current_component:()=>ki,effect_timeout:()=>Li,events_set:()=>qt,insertion_effects:()=>Ai,layout_effects:()=>Oi,length_css_attributes_set:()=>Yr,memo:()=>Ti,passive_effects:()=>Ii,processEffects:()=>Wr,render:()=>Ei,roots:()=>$i,special_attributes:()=>Xr,update_cbs:()=>Ci,update_interval_margin:()=>Ri,update_set:()=>Si,update_timeout:()=>Pi});var mi="http://www.w3.org/2000/svg",bn=class{constructor(t){ee(this,"owner");ee(this,"current_map",new Map);ee(this,"new_map",new Map);ee(this,"pick_index",0);this.owner=t}pick(t,n){var s,c;let r,o=this.current_map.get(t);return o&&o.length>o[ue]?(r=o[o[ue]],o[ue]++,o=this.new_map.get(t),o!==void 0?o.push(r):(o=[r],this.new_map.set(t,o),o[ue]=0)):(r=n(),o=this.new_map.get(t),o!==void 0?o.push(r):(o=[r],this.new_map.set(t,o),o[ue]=0),r[x]&&((c=(s=r[x]).parent)!=null||(s.parent=this.owner))),r}commit(){this.current_map.forEach(t=>{t.slice(t[ue]).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}},_t=class{constructor(t,n){ee(this,"component");ee(this,"props");this.component=t,this.props=n||{}}apply(t=this.props,n=this.next_state||this.state){var o,a,l,u,f,p,g,d,y;let r=!0;if(this.outlet&&(this!=null&&this[ke])&&se(this.props,t,"children")&&se((o=this.props)==null?void 0:o.children,t==null?void 0:t.children)&&(r=!1),r){if(typeof n=="function"&&(n=n(this.state)),this.component.constructor.defaultProps&&(t={...this.component.constructor.defaultProps,...t}),((l=(a=this==null?void 0:this.parent)==null?void 0:a.component)!=null&&l.context||(f=(u=this==null?void 0:this.parent)==null?void 0:u.component)!=null&&f.getChildContext)&&(this.context={...this.parent.component.context,...(g=(p=this.parent.component).getChildContext)==null?void 0:g.call(p)}),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(mi,this.entity)):this.element=document.createElement(this.entity),t!=null&&t.defaultValue&&(this.element.value=String(t.defaultValue).slice(0,t==null?void 0:t.maxLength)),t!=null&&t.defaultChecked&&(this.element.checked=t.defaultChecked)),this.element[ze]=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 m=this.state,h=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.");if(this.next_state&&delete this.next_state,this.hooks!==void 0){this.hook_index=0,v.current_component=[this,v.current_component];try{this.outlet=this.component.render(t,{current:this.element||this.component})}catch(w){Kr(this,w)}v.current_component=v.current_component[1]}else try{this.outlet=this.component.render({current:this.element||this.component})}catch(w){Kr(this,w)}this!=null&&this.portal&&(this.element=this.portal),((y=(d=this.outlet)==null?void 0:d.constructor)==null?void 0:y.name)!=="Array"&&(this.outlet=[this.outlet]),this.outlet=[...this.outlet];for(let w=0;w<this.outlet.length;w++){let E=this.outlet[w];if(E==null||typeof E=="boolean")this.outlet.splice(w,1),w--;else if(typeof E=="function"){let _=this.childFunctionHandler(E);this.outlet.splice(w,1,_),w--}else if(E.constructor.name==="Array")this.outlet.splice(w,1,...E),w--;else{let _=gi(this,E);this.outlet[w]=_,_[K]===void 0?(_.container=this.element?this:this.container,_.apply(E.props)):_.element?_[K]!==E[K]&&(_.element.textContent=E[K],_[K]=E[K]):(_.element=document.createTextNode(E[K]),_[K]=E[K])}}this.cache&&this.cache.commit(),this.element&&this.arrangeOutlet(),this.component.componentDidUpdate&&this.component.componentDidUpdate(h,m,this.last_snapshot),this.last_snapshot&&delete this.last_snapshot}}async cleanup(){var t,n,r;try{let o=[];if((t=this.props)!=null&&t.ref&&(typeof this.props.ref=="function"?this.props.ref(null):this.props.current=null),this.component.componentWillUnmount&&this.component.componentWillUnmount(),(n=this==null?void 0:this.element)!=null&&n.parentElement&&!this.portal&&this.element.parentElement.removeChild(this.element),this.outlet!==void 0)for(let s of this.outlet)s.cleanup&&o.push(s.cleanup());if(((r=this.props)==null?void 0:r.children)!==void 0)for(let s of this.props.children)s.cleanup&&o.push(s.cleanup());if(this.hooks!==void 0)for(let s of this.hooks)s.cleanup&&o.push(s.cleanup());await Promise.all(o)}catch(o){throw o}}updateElementProps(t,n=!1){var r,o,s,c,a,l,u,f,p,g,d,y,m;if(this.entity==="input")t!=null&&t.type||(t.type="text"),t.type!==this.element.type&&(this.element.type=t.type),(t==null?void 0:t.value)!==void 0&&(t==null?void 0:t.value)!==this.element.value&&(t.value===void 0&&(t.value=""),this.element.value=String(t.value).slice(0,t==null?void 0:t.maxLength));else if(this.entity==="textarea")(t==null?void 0:t.value)!==this.element.value&&(this.element.value=String(t.value).slice(0,t==null?void 0:t.maxLength));else if(this.entity==="select"){let h=String(t.value);h!==this.element.value&&(this.element.value=h)}else this.entity==="option"&&(((c=(s=(o=(r=this.container)==null?void 0:r.props)==null?void 0:o.value)==null?void 0:s.constructor)==null?void 0:c.name)==="Array"?t.selected=this.container.props.value.indexOf(t.value)!==-1:typeof((l=(a=this.container)==null?void 0:a.props)==null?void 0:l.value)=="string"&&(t.selected=this.container.props.value===t.value));for(let h in this.props){let w=h.toLowerCase();t.hasOwnProperty(h)||(qt.has(w)?this.event_detachers[w]():this.element.removeAttribute(h))}for(let h in t){let w=h.toLowerCase();if(!Xr.has(w)&&(t===this.props||!v.defaultIsEqual(t[h],this.props[h])||n))if(qt.has(w))(u=this.event_detachers)!=null||(this.event_detachers={}),(p=(f=this.event_detachers)[w])==null||p.call(f),this.event_detachers[w]=v.addWrappedEventListener(this.element,w.substring(2),t[h]);else if(Ft.hasOwnProperty(w)){let E=Ft[w];(g=this.event_detachers)!=null||(this.event_detachers={}),(y=(d=this.event_detachers)[w])==null||y.call(d),this.event_detachers[w]=v.addWrappedEventListener(this.element,E.substring(2),t[h],{capture:!0})}else if(h==="style")if(typeof t.style=="string")this.element.style=t.style;else{if((m=this.props)!=null&&m.style)if(typeof this.props.style=="string")this.element.style="";else for(let E in this.props.style)t.style.hasOwnProperty(E)||(this.element.style[E]="");for(let E in t.style)Yr.has(E)&&isFinite(t.style[E])&&(t.style[E]+="px");Object.assign(this.element.style,t.style)}else if(Gr.has(h)){let E=Mt(t[h]);E!==this.element[h]&&(this.element[h]=E)}else h==="autoFocus"?this.element.autofocus=Mt(t[h]):h==="htmlFor"?this.element.setAttribute("for",t[h]):(w!=="value"||["input","textarea","select"].indexOf(this.entity)===-1)&&this.element.setAttribute(w,t[h])}t!=null&&t.action?this.element.onsubmit=t.action:this.element.onsubmit=void 0,this.updateElementClass(t)}updateElementClass(t=this.props){var r,o;let n=t==null?void 0:t.className;if(n!=null||(n=t!=null&&t.class?t.class:""),(r=this==null?void 0:this.parent)!=null&&r[de]&&(n+=" "+((o=this==null?void 0:this.parent)==null?void 0:o[de])),n.length>0){n=n.split(/\s+/g);for(let s of Array.from(this.element.classList))n.indexOf(s)===-1&&this.element.classList.remove(s);for(let s of n)s.length>0&&this.element.classList.add(s)}else delete this.element.className}scanZombies(t,n){let r=t.element.childNodes;for(;r[t.insert_index]&&r[t.insert_index][pn]&&r[t.insert_index]!==n;)t.insert_index++}appendElement(t){var n;t.portal||(this.scanZombies(t.container,t.element),(t==null?void 0:t.element.parentNode)===null?(t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),(n=t==null?void 0:t.component)!=null&&n.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(){var t;this.insert_index=0;for(let n of this.outlet)n&&(n.element?(n.container=this.element?this:this.container,n.container.appendElement(n)):(n.arrangeOutlet&&n.arrangeOutlet(),n!=null&&n.mounted||(n.mounted=!0,(t=n==null?void 0:n.component)!=null&&t.componentDidMount&&n.component.componentDidMount())))}childFunctionHandler(t){return t(this.state)}},Kr=(e,t)=>{var o,s,c,a;let n=[e];for(;e&&!((o=e.component)!=null&&o.componentDidCatch);)e=e.parent,e&&n.push(e);(s=e==null?void 0:e.component)!=null&&s.componentDidCatch&&(c=e.entity)!=null&&c.getDerivedStateFromError&&e.component.setState(e.entity.getDerivedStateFromError.call(e,t));let r=Array.prototype.map.call(n,l=>`in ${typeof l.component.displayName=="function"?l.component.displayName():l.component.displayName}`).join(`
|
|
58
|
+
`);if(t.componentStack=n,t.componentStackLog=r,(a=e==null?void 0:e.component)!=null&&a.componentDidCatch)e.component.componentDidCatch(t,{componentStack:n,componentStackLog:r});else throw t};function yi(e,t){let n=e;if(e[K]===void 0){let r=e.entity,o=!1;if(typeof r=="object")if(r[ke])o=r[ke],r=r.component;else throw new Error("Invalid component.");if(typeof r=="string")n=new Et(r,e.props);else{if(yn(r)){r!=null&&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[x].state=n.state,Object.defineProperty(n,"state",{get(){return this[x].state},set(c){if(this[x].state===void 0)this[x].state=c;else throw new Error("Assigning component state this way is not allowed.")}}))}else if(typeof r=="function")r!=null&&r.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new Ae(e.props),n.render=r.bind(n),n[x].hooks=[],n[x].hook_index=0;else throw new Error("Error in constructing component.");n[x].entity=r,e.container&&(n[x].container=e.container)}o&&(n[x][ke]=!0)}return t instanceof _t&&(n[x].parent=t),n}function gi(e,t){var n,r,o;try{return(n=e.cache)!=null||(e.cache=new bn(e)),t=e.cache.pick(t[K]===void 0?(r=t==null?void 0:t.props)==null?void 0:r.key:":text:",()=>t[K]!==void 0||t instanceof _t?t:yi(t,e)[x]),t}catch(s){if((o=t==null?void 0:t.component)!=null&&o.componentDidCatch)t.component.componentDidCatch(s);else throw s}}function bi(){clearTimeout(v.effect_timeout);let e=v.update_set,t=v.update_cbs;v.update_set=new Set,v.update_cbs=new Set;for(let n of e)n.apply();for(let n of t)n();Wr()}function Wr(){let e=v.insertion_effects,t=v.layout_effects,n=v.passive_effects;v.insertion_effects=new Set,v.layout_effects=new Set,v.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[K]!==void 0?n=":text:":(typeof e=="string"?n=":t:"+e:e!=null&&e.name?n=e.name:n="::",t.name!==void 0?n=n+":"+t.name:t.path!==void 0&&(n=n+":"+t.path)),n},Ae=class{get state(){return this[x].state}set state(t){if(this[x].state===void 0)this[x].state=t;else throw new Error("Assigning component state this way is not allowed.")}get context(){return this[x].context}set context(t){throw new Error("Assigning component context this way is not allowed.")}get type(){return this[x].entity}set type(t){throw new Error("Component type is immutable.")}get props(){return this[x].props}set props(t){throw new Error("Assigning component props this way is not allowed.")}get ref(){return this[x].ref}set ref(t){throw new Error("Component ref is immutable.")}get key(){return this[x].props.key}set key(t){throw new Error("Component key is immutable.")}displayName(){let t=this[x].entity;return t!=null&&t.displayName?typeof t.displayName=="function"?t.displayName():t.displayName:typeof t=="string"?t:typeof t=="function"&&t.name||"Component"}constructor(t){this[x]=new _t(this,t)}forceUpdate(t){v._clearTimeout(v.update_timeout),v.update_set.add(this[x].container||this[x]),t&&v.update_cbs.add(t.bind(this)),v.update_timeout=v._setTimeout(bi,v.update_interval_margin)}setState(t,n){this.getSnapshotBeforeUpdate!==void 0&&(this[x].last_snapshot=this.getSnapshotBeforeUpdate(this[x].props,this.state)),this[x].next_state=t,this.forceUpdate(n?n.bind(this):void 0)}},Et=class extends Ae{constructor(t,n){super(n),this[x].entity=t,t==="svg"&&(this[x].is_svg=!0)}render(){return this[x].props.children}},Ut=class extends Et{constructor(n,r){super(":root:",r);ee(this,"displayName","Root");typeof this.element=="string"&&(n=document.querySelector(n)),this[x].element=n;for(let o of r.children)o[x]?o[x].container=this[x]:o.container=this[x]}};function wn(e,t={},...n){if(typeof e!="string"&&typeof e!="function"&&(typeof e!="object"||!e[ke]))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]={[K]:o}:n[r]=o}return t.key=wi(e,t),t.children=n,{entity:e,props:t,[x]:null}}function Br(e){let t;return{render(n){if(t)throw new Error("root already rendered!");return t=new Ut(e,{children:[n]}),v.roots.add(t[x]),t.forceUpdate(),t},unmount(){t&&(t.cleanup(),e.innerHTML="")}}}function xi(e,t){return wn(v.Portal,{view:t},e)}function Vr(e,t,...n){let r={entity:e.entity,props:{...e.props,...t},[x]:null};return n!=null&&n.length&&(r.props.children=n),r}var _i=Vr;function Ei(e,t){if(e[x]&&(e[x].container||e[x].parent))throw new Error("Component is already in use");return Br(t).render(e)}function Ti(e){return typeof e=="object"?e[ke]=!0:e={component:e,[ke]:!0,[x]:null},e}var vi=wn,ki=[],Si=new Set,Ci=new Set,$i=new Set,Oi=new Set,Ai=new Set,Ii=new Set,Pi,Li,Ri=0,Xr=new Set(["classname","ref","action","lilact_jsx_loc","children","key","defaultvalue","defaultchecked"]),qt=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","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"]),Ft={};for(let e of qt)Ft[e+"capture"]=e;var Yr=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"]),Gr=new Set(["disabled","readOnly","required","checked","multiple","selected","hidden","open","loop","muted","controls","playsInline","allowFullScreen"]);var En={};Q(En,{createContext:()=>tt,startTransition:()=>Ki,useActionState:()=>Mi,useCallback:()=>me,useContext:()=>nt,useDebugValue:()=>Fi,useDeferredValue:()=>qi,useEffect:()=>ne,useHook:()=>ce,useId:()=>Ni,useImperativeHandle:()=>_n,useInsertionEffect:()=>Di,useLayoutEffect:()=>Ie,useLocalStorage:()=>ji,useMemo:()=>Tt,useReducer:()=>Ui,useRef:()=>R,useState:()=>te,useTransition:()=>Hr});function ce(){let e=v.current_component[0];return e.hooks[e.hook_index]===void 0&&e.hooks.push({}),e.hooks[e.hook_index++]}function te(e){let t=ce();return W(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,v.current_component[0],t)),[t.value,t.set_func]}function me(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!W(n)&&t!==void 0&&(n==null?void 0:n.deps)!==void 0&&se(t,n.deps)||(n!=null&&n.cleanup&&n.cleanup(),n.deps=t,n.callback=e),n.callback}function tt(e){return{default:e,Provider:function({value:n,children:r}){return r}}}function nt(e){var n,r,o;let t=(n=v.current_component[0])==null?void 0:n.parent;for(;t&&t.entity!==e.Provider;)t=t.parent;return t&&(o=(r=t.props)==null?void 0:r.value)!=null?o:e.default}function Ni(e="N"){let t=ce();return W(t)&&(t.id=e+v.id_num++),t.id}function Hr(){let e=ce();return W(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,v.current_component[0],e)),[e.count!=0,e.func]}function ji(e,t){let n=ce(),r;try{r=JSON.parse(localStorage[e])}catch(o){}return r===void 0&&(typeof t=="function"&&(t=t()),r=t,localStorage[e]=JSON.stringify(r)),W(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,v.current_component[0],n)),[n.value,n.set_func]}function R(e=null){let t=ce();return W(t)&&(t.current=e),t}async function Ie(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();!W(n)&&t!==void 0&&(n==null?void 0:n.deps)!==void 0&&se(t,n.deps)||(n!=null&&n.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,v.layout_effects.add(async()=>{n.cleanup=await e()}),v._clearTimeout(v.effect_timeout),v._setTimeout(v.processEffects,0))}async function ne(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();!W(n)&&t!==void 0&&(n==null?void 0:n.deps)!==void 0&&se(t,n.deps)||(n!=null&&n.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,v.passive_effects.add(async()=>{n.cleanup=await e()}),v._clearTimeout(v.effect_timeout),v._setTimeout(v.processEffects,0))}async function Di(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();!W(n)&&t!==void 0&&(n==null?void 0:n.deps)!==void 0&&se(t,n.deps)||(n!=null&&n.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,v.insertion_effects.add(async()=>{n.cleanup=await e()}),v._clearTimeout(v.effect_timeout),v._setTimeout(v.processEffects,0))}function Tt(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!W(n)&&t!==void 0&&(n==null?void 0:n.deps)!==void 0&&se(t,n.deps)||(n.deps=t,n.value=e()),n.value}function Mi(e,t){let n=ce(),[r,o]=Hr();return W(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 Ui(e,t,n){let r=ce();return W(r)&&(r.state=n?n(t):t,r.dispatch=function(o,s,c){let a=s.reducer(s.state,c);v.defaultIsEqual(a,s.state)||(s.state=a,o.component.forceUpdate())}.bind(void 0,v.current_component[0],r)),r.reducer=e,[r.state,r.dispatch]}function qi(e,t){let{useEffect:n,useRef:r,useState:o}=v,[s,c]=o(typeof t!="undefined"?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 _n(e,t,n=void 0){n!==void 0&&(e==null?void 0:e.deps)!==void 0&&se(n,e.deps)||(e.deps=n,typeof(e==null?void 0:e.current)!="object"&&(e.current={}),Object.assign(e.current,t()))}function Fi(e,t=n=>n){}function Ki(e){e()}var Tn={};Q(Tn,{lazy:()=>Yi,require:()=>zr,required_scripts:()=>qe,run:()=>rt,runScripts:()=>Hi});function Wi(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 Jr(e,t="Unknown error"){if(e instanceof Error)return e;if((e==null?void 0:e.error)instanceof Error)return e.error;let n=new Error((e==null?void 0: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 Bi(e,t){let n=Jr(e);return n.lilact_source||(n.lilact_source={path:t}),n}function Ue(e,t){let n=Bi(e,t);return n.isTraced?n:typeof v.traceError=="function"?v.traceError(n,t):(v.error=n,n)}var qe={};function Zr(e,{code:t="",isInline:n=!1,isModule:r=!0}={}){let o={path:e,code:String(t),mappings:[],exports:{},isInline:n,isModule:r,loaded:!1,request:void 0,error:void 0};return qe[e]=o,o}function rt(jsx,path=`InlineJSX-${++v.eval_num}`,{isInline=!0,isModule=!0}={}){var e,t;let module=qe[path];module?(module.path=path,module.code=String(jsx),module.mappings=[],module.exports={},module.isInline=isInline,module.isModule=isModule,module.loaded=!1,module.error=void 0):module=Zr(path,{code:jsx,isInline,isModule});let processed;try{processed=v.transpileJSX(String(jsx),{path,mappings:module.mappings,factory:"createComponent",appendSourcemap:!1,injectTraceLabels:!0,produceCJS:!0,blocks_info:v.blocks_info})}catch(n){let r=Jr(n);throw(e=r.fileName)!=null||(r.fileName=path),r.sourcePhase="transpile",module.error=r,v.error=r,r}typeof v.scanBlockLabels=="function"&&v.scanBlockLabels(processed,path),processed+=`
|
|
59
|
+
//# sourceURL=eval:/${path}`;try{globalThis.Lilact=v,globalThis.createComponent=v.createComponent,globalThis.Fragment=v.Fragment;let result=eval(processed);return module.loaded=!0,W(module.exports)?result:module.exports}catch(n){let r=Ue(n,path);throw(t=r.sourcePhase)!=null||(r.sourcePhase="runtime"),module.error=r,r}}function Vi(e,t={}){return qe[e]||Zr(e,t)}function Xi(e,t){var o,s;let n;try{let c=(s=(o=v).resolver)==null?void 0:s.call(o,e);c==null?t.code&&!t.loaded?n=Promise.resolve(t.code):n=fetch(e).then(a=>{if(!a.ok)throw Ue(new Error(`Unable to load ${e}: HTTP ${a.status}`),e);return a.text()}):n=Promise.resolve(c)}catch(c){n=Promise.reject(Ue(c,e))}let r;return r=Promise.resolve(n).then(c=>{if(t.code=String(c),e.endsWith(".css")){ht(t.code),t.loaded=!0;return}return rt(t.code,e,{isInline:!1,isModule:!0})}).then(c=>{var a;return(a=c==null?void 0:c.default)!=null?a:c}).catch(c=>{throw t.error=Ue(c,e),t.error}).finally(()=>{t.request===r&&(t.request=void 0)}),t.request=r,r}function zr(e){var c,a,l,u;let t={};if(arguments.length===2&&arguments[1]&&typeof arguments[1]=="object"&&(t=arguments[1]),(c=v.importObjectPaths)!=null&&c[e])return v.importObjectPaths[e];(a=t.requirer)!=null&&a.path&&(e=Wi(t.requirer.path,e));let n=!!v[yt]||!!t.isLazy,r=Vi(e,{isInline:!1,isModule:!0});if(r.loaded&&!t.forceUpdate)return r.exports;if(e.startsWith("#")){let f=document.getElementById(e.slice(1));if(!f)throw Ue(new Error(`Required element not found (${e})`),e);return rt(f.textContent||"",e)}if(n)return v[yt]=!1,r.request?r.request:Xi(e,r);let o=(u=(l=v).resolver)==null?void 0:u.call(l,e);if(o!=null){if(e.endsWith(".css")){ht(String(o)),r.code=String(o),r.loaded=!0;return}return rt(String(o),e,{isInline:!1,isModule:!0})}let s=new XMLHttpRequest;try{s.open("GET",e,!1),s.send(null)}catch(f){throw Ue(f,e)}if(s.status>=200&&s.status<300){if(e.endsWith(".css")){r.code=s.responseText,ht(r.code),r.loaded=!0;return}return rt(s.responseText,e,{isInline:!1,isModule:!0})}throw Ue(new Error(`Unable to load ${e}: HTTP ${s.status||0}`),e)}function Yi(e){let t="pending",n;v[yt]=!0;try{n=e()}catch(o){t="error",n=o}v.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 Gi(){return Array.from(document.querySelectorAll('script[type="text/jsx"]')).map(e=>({src:e.getAttribute("src"),content:e.textContent||""}))}async function Hi(){for(let e of Gi())e.src?await zr(e.src):e.content&&rt(e.content)}var Sn={};Q(Sn,{CSSTransition:()=>eo,SwitchTransition:()=>Ji,Transition:()=>Qr,TransitionGroup:()=>Zi});var vn="unmounted",Kt="exited",vt="entering",kt="entered",kn="exiting";function Qr({in:e,timeout:t=v.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:g}){var d,y,m,h,w,E;return(y=(d=this[x]).is_mounted)!=null||(d.is_mounted=!n||e||o),(h=(m=this[x]).is_appeared)!=null||(m.is_appeared=e),(E=(w=this[x]).timer)!=null||(w.timer=null),this[x].childFunctionHandler=_=>_(this[x].mount_state),this[x].mount_state||(this[x].is_mounted||(this[x].mount_state=vn),e?this[x].mount_state=o&&!this[x].is_appeared?vt:kt:this[x].mount_state=Kt),ne(()=>()=>clearTimeout(this[x].timer),[]),ne(()=>{!this[x].is_appeared&&o&&this[x].mount_state===vt&&e&&(s==null||s(),requestAnimationFrame(()=>{c==null||c(!this[x].is_appeared),clearTimeout(this[x].timer),this[x].timer=setTimeout(()=>{this[x].mount_state=kt,this.forceUpdate(),this[x].is_appeared=!0,a==null||a(!this[x].is_appeared)},t)}))},[]),ne(()=>{if(e){if(this[x].is_mounted=!0,this[x].mount_state===vt||this[x].mount_state===kt)return;s==null||s(!this[x].is_appeared),this[x].mount_state=vt,this.forceUpdate(()=>{c==null||c(!this[x].is_appeared),clearTimeout(this[x].timer),this[x].timer=setTimeout(()=>{this[x].mount_state=kt,this.forceUpdate(),this[x].is_appeared=!0,a==null||a()},t)})}else{if(this[x].mount_state===vn||this[x].mount_state===kn||this[x].mount_state===Kt)return;l==null||l(),this[x].mount_state=kn,this.forceUpdate(()=>{u==null||u(),clearTimeout(this[x].timer),this[x].timer=setTimeout(()=>{this[x].mount_state=Kt,this.forceUpdate(),f==null||f(),r&&(this[x].is_mounted=!1,this[x].mount_state=vn,this.forceUpdate())},t)})}},[e,t]),this[x].is_mounted?(g&&(this[x].mount_state===vt?this[x].is_appeared?this[x][de]=g.appearActive:this[x][de]=g.enterActive:this[x].mount_state===kt?this[x].is_appeared?this[x][de]=g.appearDone:this[x][de]=g.enterDone:this[x].mount_state===kn?this[x][de]=g.exitActive:this[x].mount_state===Kt&&(this[x][de]=g.exitDone)),p):null}function eo({in:e,timeout:t=v.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:g}){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(Qr,{in:e,timeout:t,mountOnEnter:r,unmountOnExit:o,appear:s,onEnter:a,onEntering:l,onEntered:u,onExit:f,onExiting:p,onExited:g,_classNames:n},c)}function Ji({children:e,activeKey:t,mode:n="out-in",timeout:r=v.defaultTransitionTimeout,classNames:o="switch",mountOnEnter:s=!1,unmountOnExit:c=!1,appear:a=!1,onExited:l,onEnter:u,onExiting:f,onEntered:p,...g}){let d=Tt(()=>Me.toArray(e),[e]),[y,m]=te(null),[h,w]=te(!1),[E,_]=te(!0),T=R(t),$=R(t),S=R(y);Ie(()=>{$.current=t},[t]),Ie(()=>{S.current=y},[y]),Ie(()=>{let O=T.current;O!==t&&(T.current=t,m(O),n==="out-in"?(_(!1),w(!0)):(_(!0),w(!1)))},[t,n]);let k=O=>(X,U)=>{typeof l=="function"&&l(X,U),O===S.current&&(m(null),n==="out-in"&&(w(!1),_(!0)),n==="in-out"&&w(!1))},C=O=>(X,U)=>{typeof p=="function"&&p(X,U),n==="in-out"&&O===$.current&&S.current!=null&&w(!0)};return createComponent("div",{style:{position:"relative"}},d.map((O,X)=>{var Re;let U=((Re=O==null?void 0:O.props)==null?void 0:Re.key)||X,$t=U===t?E:U===y?!h:!1;return createComponent(eo,{...g,key:U,in:$t,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}},O))}))}function Zi({children:e}){return e}var Cn={};Q(Cn,{addWrappedEventListener:()=>es,createSyntheticEvent:()=>to,releaseSyntheticEvent:()=>no,wrapListener:()=>ro});typeof Element!="undefined"&&!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!="undefined"&&!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 Wt=[],zi=10,Qi=["mouse","pen","touch"];function to(e,t){var r,o,s,c,a,l,u,f,p,g,d,y,m,h,w,E,_,T,$,S,k,C;let n=Wt.length?Wt.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=(o=(r=e.which)!=null?r:e.keyCode)!=null?o:null,n.button=(s=e.button)!=null?s:null,n.buttons=(c=e.buttons)!=null?c:null,n.pointerId=(a=e.pointerId)!=null?a:null,n.pointerType=(l=e.pointerType)!=null?l:null,n.isPrimary=(u=e.isPrimary)!=null?u:null,n.clientX=(f=e.clientX)!=null?f:0,n.clientY=(p=e.clientY)!=null?p:0,n.screenX=(g=e.screenX)!=null?g:0,n.screenY=(d=e.screenY)!=null?d:0,n.pageX=(y=e.pageX)!=null?y:null,n.pageY=(m=e.pageY)!=null?m:null,n.movementX=(h=e.movementX)!=null?h:0,n.movementY=(w=e.movementY)!=null?w:0,n.pressure=(E=e.pressure)!=null?E:null,n.tiltX=(_=e.tiltX)!=null?_:null,n.tiltY=(T=e.tiltY)!=null?T:null,n.width=($=e.width)!=null?$:null,n.height=(S=e.height)!=null?S:null,n.pointerEventsSupported=Qi.includes(n.pointerType);try{let O=n.target;n.value=O&&"value"in O?O.value:void 0,n.checked=O&&"checked"in O?O.checked:void 0,n.selectionStart=O&&"selectionStart"in O?O.selectionStart:void 0,n.selectionEnd=O&&"selectionEnd"in O?O.selectionEnd:void 0}catch(O){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=(k=e.repeat)!=null?k:!1,n.location=(C=e.location)!=null?C:0,n}function no(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,Wt.length<zi&&Wt.push(e))}function ro(e,t={}){let{stopPropagationOnTrueReturn:n=!1}=t;return function(o){let s=this||o.currentTarget||null,c=to(o,s);try{let a=e(c);n&&a===!0&&c.stopPropagation()}finally{no(c)}}}function es(e,t,n,r={}){let o=ro(n,r);return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)}var $n={};Q($n,{Provider:()=>ts,combineReducers:()=>os,connect:()=>rs,useDispatch:()=>ns,useSelector:()=>oo,useStore:()=>Bt});var St;function ts({store:e,children:t}){return St!=null||(St=tt(null)),createComponent(St.Provider,{value:e},t)}function Bt(){let e=nt(St);if(!e)throw new Error("Could not find Redux store in context. <Provider> is missing.");return e}function ns(){return Bt().dispatch}function oo(e,t=(n,r)=>n===r){let n=Bt(),r=R(),o=R(e);o.current=e;let[s,c]=te(()=>e(n.getState()));return r.current=s,ne(()=>{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 rs(e,t){let n=!!e;return function(o){function s(c){let a=Bt(),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 g in t){let d=t[g];l[g]=(...y)=>p(d(...y))}}let u={};e&&(u=oo(g=>e(g,c),se)||{});let f={...c,...u,...l};return createComponent(o,{...f})}return s}}function os(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={};Q(In,{animationFramePromise:()=>gs,clearInterval:()=>ds,clearTimeout:()=>ps,grabTimers:()=>hs,pauseTimers:()=>as,releaseTimers:()=>ms,resetTimers:()=>cs,resumeTimers:()=>us,setInterval:()=>fs,setTimeout:()=>ls,timeoutPromise:()=>ys});var ot,Ct=-1,re=[],Pe=-1,Le={},Vt=window.setTimeout,is=window.setInterval,it=window.clearTimeout,io=window.clearInterval;function ss(e){let t=0,n=re.length-1;for(;t<=n;){let o=Math.floor((t+n)/2),s=re[o][le];if(s===e)return[o,re[o]];s<e?t=o+1:n=o-1}let r=[];return r[le]=e,re.splice(t,0,r),[t,r]}function On(e,t=!1){let[n,r]=ss(e[le]);return t||(Ct++,Le[Ct]=e,e[ue]=Ct),r.push(e),re[0][0]===e&&(it(Pe),Pe=Vt(An,e[Qe])),Ct}function An(){let e=Date.now(),t=0,n=re[t];for(;n&&n[le]-e<=0;){for(let r of n)r[bt]?delete Le[r[ue]]:(r[wt](...r[xt]),r[gt]?(r[le]=Date.now()+r[Qe],On(r,!0)):delete Le[r[ue]]);t++,n=re[t]}re.splice(0,t),re.length>0&&(it(Pe),Pe=Vt(An,re[0][le]-e))}function cs(){it(Pe),ot=void 0,Ct=-1,re=[],Pe=-1,Le={}}function as(){it(Pe),ot=Date.now()}function us(){if(ot){if(re.length>0){let e=Date.now();ot-=e;for(let t of re)t[le]-=ot;Pe=Vt(An,re[0][le]-e)}ot=void 0}}function ls(e,t,...n){return On({[wt]:e,[Qe]:t,[le]:Date.now()+t,[gt]:!1,[xt]:n})}function fs(e,t,...n){return On({[wt]:e,[Qe]:t,[le]:Date.now()+t,[gt]:!0,[xt]:n})}function ps(e){Le[e]?Le[e][bt]=!0:it(e)}function ds(e){Le[e]?Le[e][bt]=!0:io(e)}function hs(){globalThis.setTimeout=Lilact.setTimeout,globalThis.setInterval=Lilact.setInterval,globalThis.clearTimeout=Lilact.clearTimeout,globalThis.clearInterval=Lilact.clearInterval}function ms(){globalThis.setTimeout=Vt,globalThis.setInterval=is,globalThis.clearTimeout=it,globalThis.clearInterval=io}function ys(e=0,t=Lilact){let n,r,o,s=new Promise((c,a)=>{r=c,o=a,n=t.setTimeout(()=>{r()},e)});return s.proceed=()=>{t.clearTimeout(n),r()},s.cancel=()=>{t.clearTimeout(n),o()},s}function gs(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}var Pn={};Q(Pn,{blocks_info:()=>Cs,error:()=>$s,globalErrorHandler:()=>ks,scanBlockLabels:()=>Ss,traceError:()=>co});function Yt(e){let t=Number(e);return Number.isFinite(t)?t:null}function bs(e){if(e instanceof Error)return e;if((e==null?void 0:e.error)instanceof Error)return e.error;let t=new Error((e==null?void 0: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 so(e){return(e==null?void 0:e.name)==="JSXParserError"}function ws(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 xs(e){var r,o,s,c;let t=Yt((o=(r=e==null?void 0:e.lineNumber)!=null?r:e==null?void 0:e.lineno)!=null?o:e==null?void 0:e.line),n=Yt((c=(s=e==null?void 0:e.columnNumber)!=null?s:e==null?void 0:e.colno)!=null?c:e==null?void 0:e.column);return{line:t==null?null:Math.max(0,t-1),column:n==null?null:Math.max(0,n-1)}}function _s(e){let t=e==null?void 0:e.lilact_trace;return Array.isArray(t)?t[0]:t}function Es(e){var n,r;let t=_s(e);return t==null?null:(r=(n=v.blocks_info)==null?void 0:n.labels)==null?void 0:r[t]}function Ts(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 co(e,t){var g,d,y,m,h,w;if(e!=null&&e.isTraced)return e;let n=bs(e),r=n.lilact_source,o=so(n)?null:ws(n.stack),s=so(n)?{line:Yt(n.lineNumber),column:Yt(n.columnNumber)}:xs(n),c=(r==null?void 0:r.path)||(o==null?void 0:o.path)||n.fileName||t||null,a=(d=(g=o==null?void 0:o.line)!=null?g:s.line)!=null?d:null,l=(m=(y=o==null?void 0:o.column)!=null?y:s.column)!=null?m:null,u={fileName:c,lineNumber:a,columnNumber:l,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},f=c&&qe[c];if(f){let E=Ts(f.mappings,u.lineNumber,u.columnNumber);u.lineNumber=E.line,u.columnNumber=E.column}let p=Es(n);return p&&(u.lineNumber==null||u.columnNumber==null||!u.fileName)&&(u.fileName||(u.fileName=p.path||t||null),(h=u.lineNumber)!=null||(u.lineNumber=p.line),(w=u.columnNumber)!=null||(u.columnNumber=p.col),u.label=p.desc),v.error=u,u}function Xt(e){return String(e!=null?e:"").replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function vs(e,t){var r,o,s,c;if(!e||!Number.isFinite(t))return null;let n=String((r=e.code)!=null?r:"").split(/\r?\n/);return{before:(o=n[t-1])!=null?o:"",current:(s=n[t])!=null?s:"",after:(c=n[t+1])!=null?c:""}}function ks(e){var u,f;let t=(e==null?void 0:e.error)instanceof Error?e.error:(e==null?void 0:e.reason)!==void 0?e.reason:e,n=co(t,(e==null?void 0:e.fileName)||null),r=vs(qe[n.fileName],n.lineNumber),o=fn(`
|
|
60
60
|
background: linear-gradient(135deg, #fff2f2d4, #ffffffd4);
|
|
61
61
|
backdrop-filter: blur(10px);
|
|
62
62
|
border: 1px solid rgba(255,255,255,.25);
|
|
@@ -76,51 +76,51 @@ var rr=Object.defineProperty;var ko=(e,t,n)=>t in e?rr(e,t,{enumerable:!0,config
|
|
|
76
76
|
padding: 10px;
|
|
77
77
|
display: block;
|
|
78
78
|
}
|
|
79
|
-
`),s=document.createElement("dialog");s.className=o;let c=n.fileName?`At ${
|
|
79
|
+
`),s=document.createElement("dialog");s.className=o;let c=n.fileName?`At ${Xt(n.fileName)}`:"",a=Number.isFinite(n.lineNumber)?`: Line ${n.lineNumber+1}`:"",l=((u=n._error)==null?void 0:u.componentStackLog)||((f=n._error)==null?void 0:f.componentStack)||"";if(s.innerHTML=`
|
|
80
80
|
<h3><red>Error!</red></h3>
|
|
81
81
|
<b>${c}${a}</b><br><br>
|
|
82
|
-
<b>${
|
|
83
|
-
<span>${
|
|
82
|
+
<b>${Xt(n.name)}</b>:
|
|
83
|
+
<span>${Xt(n.message)}</span>
|
|
84
84
|
<br><br>
|
|
85
85
|
|
|
86
86
|
${r?"<code><pre></pre><red><pre></pre></red><pre></pre></code>":""}
|
|
87
87
|
|
|
88
|
-
${
|
|
88
|
+
${l?`
|
|
89
89
|
<br>
|
|
90
90
|
Component Stack:
|
|
91
91
|
<br>
|
|
92
|
-
<code><pre>${
|
|
92
|
+
<code><pre>${Xt(l)}</pre></code>
|
|
93
93
|
`:""}
|
|
94
|
-
`,r){let p=s.querySelectorAll("pre");p[0].innerText=r.before,p[1].innerText=r.current,p[2].innerText=r.after}return document.body.appendChild(s),typeof s.showModal=="function"?s.showModal():s.setAttribute("open",""),n}function Ss(e,t){for(let n of String(e).matchAll(/LILACTBLOCK(\d+):(\d+),(\d+):([^*]+)\*\//gm))
|
|
94
|
+
`,r){let p=s.querySelectorAll("pre");p[0].innerText=r.before,p[1].innerText=r.current,p[2].innerText=r.after}return document.body.appendChild(s),typeof s.showModal=="function"?s.showModal():s.setAttribute("open",""),n}function Ss(e,t){for(let n of String(e).matchAll(/LILACTBLOCK(\d+):(\d+),(\d+):([^*]+)\*\//gm))v.blocks_info.labels[n[1]]={path:t,line:Number(n[2]),col:Number(n[3]),desc:n[4]}}var Cs={counter:0,labels:{}},$s=null;var Mn={};Q(Mn,{HashRouter:()=>As,Link:()=>Is,NavLink:()=>Ps,Route:()=>Ns,Routes:()=>ao,useLocation:()=>jn,useNavigate:()=>Dn});var Rn=tt(null),Ln=tt({params:{}}),Nn=e=>typeof e=="string"?e:(e.pathname||"")+(e.search||"")+(e.hash||""),Os=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function As({children:e,basename:t=""}){let n=()=>{var y;let a=(window.location.hash||"#/").slice(1),l=new RegExp("^"+Os(t)),u=a.replace(l,"")||"/",[f,p]=u.split("#"),[g,d=""]=f.split("?");return{pathname:g||"/",search:d?"?"+d:"",hash:p?"#"+p:"",state:(y=history.state)==null?void 0:y.__state}},[r,o]=te(n);ne(()=>{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=me((c,{replace:a=!1,state:l}={})=>{if(typeof c=="number")return new Promise(p=>{let g=!1,d=h=>{g||(g=!0,window.removeEventListener("popstate",y),window.removeEventListener("hashchange",m),h==null||h(),p())},y=()=>d(()=>o(n())),m=()=>d(()=>o(n()));window.addEventListener("popstate",y,{once:!0}),window.addEventListener("hashchange",m,{once:!0}),setTimeout(()=>d(()=>o(n())),0),history.go(c)});let u=Nn(c),f="#"+(t+u);a?history.replaceState({__state:l},"",f):history.pushState({__state:l},"",f),o(n())},[t]);return createComponent(Rn.Provider,{value:{location:r,navigate:s,basename:t}},e)}function jn(){let e=nt(Rn);if(!e)throw new Error("useLocation must be used inside a Router");return e.location}function Dn(){let e=nt(Rn);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=Dn(),p="#"+Nn(e);function g(d){r&&r(d),!(d.defaultPrevented||d.button!==0||o&&o!=="_self"||d.metaKey||d.altKey||d.ctrlKey||d.shiftKey)&&(d.preventDefault(),f(e,{replace:t,state:n}))}return createComponent("a",{...u,href:p,onClick:g,target:o,download:s,className:c,style:a},l)}function Gt(e){return e&&e.replace(/\/+$/,"")||"/"}function Ps({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,...g}){let d=Dn(),y=jn(),m=typeof e=="string"?e.split("?")[0].split("#")[0]:e.pathname||"/",h=y.pathname||"/",w=t?Gt(h)===Gt(m):Gt(h).startsWith(Gt(m)),_=[typeof r=="function"?r({isActive:w}):r,w?n:null].filter(Boolean).join(" ")||void 0,T=typeof s=="function"?s({isActive:w}):s,$=w?{...T||{},...o||{}}:T,S="#"+Nn(e);function k(C){p&&p(C),!(C.defaultPrevented||C.button!==0||C.metaKey||C.altKey||C.ctrlKey||C.shiftKey)&&(C.preventDefault(),d(e,{replace:l,state:u}))}return createComponent("a",{...g,href:S,onClick:k,target:c,download:a,className:_,style:$,"aria-current":w?"page":void 0},typeof f=="function"?f({isActive:w}):f)}function Ls(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 Rs(e,t){if(e==null)return{matched:!0,params:{}};let{regex:n,paramNames:r}=Ls(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 Ns({path:e,element:t=null,children:n}){return null}function ao({children:e}){var o;let n=jn().pathname||"/",r=Me.toArray(e);for(let s=0;s<r.length;s++){let c=r[s],a=c.props.path===void 0?null:c.props.path,l=(o=c.props.element)!=null?o:null,u=c.props.children,{matched:f,params:p}=Rs(a,n);if(f)return l?createComponent(Ln.Provider,{value:{params:p}},l):u?createComponent(Ln.Provider,{value:{params:p}},createComponent(ao,{},u)):createComponent(Ln.Provider,{value:{params:p}},createComponent("div",{}))}return null}var qn={};Q(qn,{DragHandle:()=>uo,ErrorBoundary:()=>Un,Spinner:()=>Ds,SplitPane:()=>Ms,Suspense:()=>Jt});var{css:ka,cx:js}=mt;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",{},`
|
|
95
95
|
@keyframes ddSpinnerSpin { to { transform: rotate(360deg); } }
|
|
96
|
-
`))}var
|
|
96
|
+
`))}var Un=class extends Ae{constructor(){super(...arguments);ee(this,"displayName","ErrorBoundary");ee(this,"state",{hasError:!1,error:null});ee(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}},Jt=class extends Ae{constructor(n){super(n);ee(this,"displayName","Suspense");this.state={showingFallback:!1},this._pending=new Set,this._delayTimer=null,this._minShowTimer=null,this._fallbackShownAt=0}static getDerivedStateFromError(n){if(Dt(n))return null;throw n}componentDidCatch(n,r){Dt(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)}};ee(Jt,"defaultProps",{minDelay:200,minShowTime:300});function uo({onDelta:e,onStart:t,onEnd:n,style:r,className:o,children:s,data:c}){let a=R(null),l=R(0),u=R(0),f=R(0),p=R(0),g=R(!1),[d,y]=te(!1),m=me(()=>{a.current=null,g.current=!1,l.current=0,u.current=0,f.current=0,p.current=0,y(!1)},[]),h=me((S,k)=>{let C=S-l.current,O=k-u.current;return{dx:C,dy:O}},[]),w=me((S="up")=>{g.current&&(n==null||n(S),m())},[n,m]),E=me(S=>{if(!(S.button!=null&&S.button!==0)){g.current=!0,a.current=S.pointerId,l.current=S.clientX,u.current=S.clientY,f.current=S.clientX,p.current=S.clientY,y(!0),t==null||t(c);try{S.currentTarget.setPointerCapture(S.pointerId)}catch(k){}}},[t]),_=me(S=>{if(!g.current||a.current!==S.pointerId)return;let{dx:k,dy:C}=h(S.clientX,S.clientY);e==null||e(k,C,c),f.current=S.clientX,p.current=S.clientY},[h,e]),T=me(S=>{a.current===S.pointerId&&w("up",c)},[w]),$=me(S=>{a.current===S.pointerId&&w("cancel",c)},[w]);return createComponent("div",{role:"button",tabIndex:0,style:{...r,touchAction:"none"},className:js(o,d?"dragging":""),onPointerDown:E,onPointerMove:_,onPointerUp:T,onPointerCancel:$},s)}var Ms=mn(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:g,splitterStyle:d,splitterChild:y,children:m},h){let w=R(null),E=R({w:0,h:0}),[_,T]=te(t==="vertical"?"vertical":"horizontal"),$=R(_),[S,k]=te(r),C=R(S),O=R(void 0),X=R(l);ne(()=>{X.current=l},[l]),$.current=_,ne(()=>{C.current=S},[S]),Ie(()=>{T(t==="vertical"?"vertical":"horizontal")},[t]);let U=(A,L,we,fe)=>Us(A,o,s,L==="vertical"?fe:we,c),ge=Tt(()=>{let A=n==null?S:n,{w:L,h:we}=E.current;return(t==="vertical"?we>0:L>0)?U(A,$.current,L,we):A},[n,S,o,s,c,t]);ne(()=>{O.current=ge},[ge]);let Se=A=>{let L=$.current,{w:we,h:fe}=E.current;if(L==="vertical"?fe<=0:we<=0){n==null&&k(A),a==null||a(A);return}let z=U(A,L,we,fe);n==null&&k(z),O.current=z,a==null||a(z)};_n(h,()=>({setPosition:Se,setMode:A=>T(A==="vertical"?"vertical":"horizontal"),getPosition:()=>{var A;return(A=O.current)!=null?A:ge},getMode:()=>$.current}));let $t=R(!1);Ie(()=>{let A=w.current;if(!A)return;let L=new ResizeObserver(we=>{var er;let fe=A.getBoundingClientRect(),z=E.current,oe={w:fe.width,h:fe.height};E.current=oe;let ct=$.current,Eo=ct==="vertical"?z.h>0:z.w>0,zn=ct==="vertical"?oe.h>0:oe.w>0;if(!$t.current&&zn){$t.current=!0;let ie=n==null?C.current:n,Y=U(ie,ct,oe.w,oe.h);n==null&&k(Y),O.current=Y,a==null||a(Y);return}if(!Eo||!zn)return;let Ce=(er=O.current)!=null?er:ge,Qn=X.current,$e=c;if(Qn==="fixFirst")if(ct==="vertical"){let ie=z.h-$e,Y=oe.h-$e;if(ie>0&&Y>0){let pe=Ce*ie/Y;Math.abs(pe-Ce)>Ht&&Se(pe)}}else{let ie=z.w-$e,Y=oe.w-$e;if(ie>0&&Y>0){let pe=Ce*ie/Y;Math.abs(pe-Ce)>Ht&&Se(pe)}}else if(Qn==="fixSecond")if(ct==="vertical"){let ie=z.h-$e,Y=oe.h-$e;if(ie>0&&Y>0){let pe=1-(1-Ce)*ie/Y;Math.abs(pe-Ce)>Ht&&Se(pe)}}else{let ie=z.w-$e,Y=oe.w-$e;if(ie>0&&Y>0){let pe=1-(1-Ce)*ie/Y;Math.abs(pe-Ce)>Ht&&Se(pe)}}});return L.observe(A),()=>L.disconnect()},[o,s,c,a,n]);let Re=R(ge),[Yn,Gn]=te(!1);ne(()=>{Yn||(Re.current=ge)},[ge,Yn]);let go=()=>{var A;Gn(!0),Re.current=(A=O.current)!=null?A:ge},bo=(A,L)=>{let we=$.current,{w:fe,h:z}=E.current;if(we==="horizontal"){let oe=fe>0?fe:1;Se(Re.current+A/oe)}else{let oe=z>0?z:1;Se(Re.current+L/oe)}},wo=()=>Gn(!1),Hn=Me.toArray(m),xo=Hn[0],_o=Hn[1],Te=ge,{w:Jn,h:Zn}=E.current,be={position:"absolute",top:0,left:0,overflow:"auto",...p||{}},ve={position:"absolute",bottom:0,right:0,overflow:"auto",...g||{}},Ne={background:"rgba(0,0,0,0.08)",boxShadow:"inset 0 0 2px rgba(0,0,0,0.25)",zIndex:1e6,position:"absolute",cursor:_==="horizontal"?"col-resize":"row-resize",touchAction:"none",pointerEvents:"auto",...d||{}};if(_==="horizontal")if(be.bottom=0,ve.top=0,l==="fixFirst"){let A=Jn-c,L=A>0?Te*A:0;be.width=L,ve.left=L+c,Object.assign(Ne,{top:0,bottom:0,left:L,width:c})}else if(l==="fixSecond"){let A=Jn-c,L=A>0?(1-Te)*A:0;ve.width=L,be.right=L+c,Object.assign(Ne,{top:0,bottom:0,right:L,width:c})}else be.width=`calc(${Te} * (100% - ${c}px))`,ve.left=`calc(${Te} * (100% - ${c}px) + ${c}px)`,Object.assign(Ne,{top:0,bottom:0,left:`calc(${Te} * (100% - ${c}px))`,width:c});else if(be.right=0,ve.left=0,l==="fixFirst"){let A=Zn-c,L=A>0?Te*A:0;be.height=L,ve.top=L+c,Object.assign(Ne,{left:0,right:0,top:L,height:c})}else if(l==="fixSecond"){let A=Zn-c,L=A>0?(1-Te)*A:0;ve.height=L,be.bottom=L+c,Object.assign(Ne,{left:0,right:0,bottom:L,height:c})}else be.height=`calc(${Te} * (100% - ${c}px))`,ve.top=`calc(${Te} * (100% - ${c}px) + ${c}px)`,Object.assign(Ne,{left:0,right:0,top:be.height,height:c});return createComponent("div",{ref:w,className:f,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",...u||{}}},createComponent("div",{style:be},xo),createComponent("div",{style:ve},_o),createComponent(uo,{key:_,onStart:go,onDelta:bo,onEnd:wo,style:Ne,className:"splitter"},y))}),Ht=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={},fo={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){qs[e]=t,fo[t]=e});function po(...e){if(typeof e=="number")return lo(e);let t="";for(let n=0;n<e.length;n+=1)t+=lo(e[n]);return t}function lo(e){let t="";e<0?e=-e<<1|1:e<<=1;do{let n=e&31;e>>>=5,e>0&&(n|=32),t+=fo[n]}while(e>0);return t}var zt=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)?!zt.has(e):!1}function Bs(e){return/(?:\\u\{[0-9a-fA-F]+\}|\\u[0-9a-fA-F]{4})/g.test(e)?!zt.has(e):!1}function Vs(e){return/^(?:[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}]*)$/u.test(e)?!zt.has(e):!1}function Fn(e,t){if(typeof t=="string"){if(e&&e.hasOwnProperty(t))return e[t];if(t.trim()==="")return t.indexOf(`
|
|
97
97
|
`)!==-1?`
|
|
98
|
-
`:" ";if(
|
|
99
|
-
`||n[r]==="C";)a===1&&(e.out[r]=null),r+=a},s=e.begin,c=[];for(r=0;r<e.out.length;r++)r==0?c.push(e.begin):typeof e.out[r-1]=="string"?c.push(c[r-1]+e.out[r-1].length):c.push(e.out[r-1].end);c.push(e.end);for(let a of n.matchAll(Xs))if(a[0].startsWith("r")){let
|
|
100
|
-
`||y[
|
|
101
|
-
`||y[
|
|
102
|
-
`||y[
|
|
103
|
-
`;for(let y of
|
|
104
|
-
`;if(Object.keys(
|
|
105
|
-
`||p[m]==="C"||p[m]===",";)m++;let g
|
|
98
|
+
`:" ";if(zt.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 Kn(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,Zt=/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 Wn(e,t){let n=Kn(e.out,Fn.bind(null,{import:"i",export:"e",as:"a",from:"f",",":",",".":".","*":"*",";":";",var:"V",let:"V",const:"V",function:"F",class:"F","=":"=",default:"d",require:"r"})),r,o=(a=1)=>{for(;n[r]===" "||n[r]===`
|
|
99
|
+
`||n[r]==="C";)a===1&&(e.out[r]=null),r+=a},s=e.begin,c=[];for(r=0;r<e.out.length;r++)r==0?c.push(e.begin):typeof e.out[r-1]=="string"?c.push(c[r-1]+e.out[r-1].length):c.push(e.out[r-1].end);c.push(e.end);for(let a of n.matchAll(Xs))if(a[0].startsWith("r")){let l=a[0],u=e.out[a.index+l.length-1].out;u.length===1&&u.push(", {requirer:module}")}else if(a[0].startsWith("i")){let l=a[0];if(r=a.index-1,o(-1),n[r]===".")continue;let u=t.substring(e.out[a.index+l.length-1].begin,e.out[a.index+l.length-1].end),f={},p=[],g=[];for(r=a.index+1;r<a.index+l.length-1;r++)switch(e.out.splice(a.index,1,{type:"import",begin:c[a.index],end:c[a.index+l.length],cjs:""}),o(),n[r]){case",":break;case"I":{g.push(e.out[r]);continue}case"J":{let y=Kn(e.out[r].out,Fn.bind(null,{as:"a",",":","}));if(Zt.lastIndex=-1,!Zt.test(y))throw"incorrect import properties definition.";let m=e.out[r].out;for(let h=1;h<y.length-1;h++){for(;y[h]===" "||y[h]===`
|
|
100
|
+
`||y[h]==="C"||y[h]===",";)h++;let w=m[h];for(h++;y[h]===" "||y[h]===`
|
|
101
|
+
`||y[h]==="C";)h++;if(y[h]==="a"){for(h++;y[h]===" "||y[h]===`
|
|
102
|
+
`||y[h]==="C";)h++;f[m[h]]=w,h++}else f[w]=w}continue}case"*":{r++,o(),r++,o(),p.push(e.out[r]);continue}case"S":for(r=a.index+1;r<a.index+l.length;r++)e.out[r]=null;let d="";for(let y of p)d+=`const ${y} = require(${u},{requirer:module});
|
|
103
|
+
`;for(let y of g)d+=`const ${y} = require(${u},{requirer:module, checkExport: ['default']}).default;
|
|
104
|
+
`;if(Object.keys(f).length){let y="{",m="[";for(let h in f)y.length>1&&(y+=",",m+=","),h===f[h]?(y+=h,m+=`'${h}'`):(y+=h+":"+f[h],m+=`'${f[h]}'`);y+="}",m+="]",d+=`const ${y} = require(${u}, {checkExport: ${m},requirer:module})`}else d.length===0&&(d+=`require(${u},{requirer:module})`);e.out[a.index].cjs=d;continue}}else{let l=a[0];if(e.out.splice(a.index,1,{type:"export",begin:c[a.index],end:c[a.index+1]}),r=a.index-1,o(-1),n[r]===".")continue;switch(r=a.index+1,o(),n[r]){case"d":e.out[r]=null,e.out[a.index].cjs="module.exports.default =";continue;case"V":{let f=e.out[r];e.out[r]=null,r++,o();let p=e.out[r];e.out[r]=null,r++,o(),e.out[a.index].cjs=`${f} ${p} = module.exports.${p} `;continue}case"F":{let f=e.out[r];e.out[r]=null,r++,o();let p=e.out[r];e.out[a.index].cjs=`module.exports.${p} = ${f} `;continue}case"*":e.out[r]=null,r++,o(),e.out[r]=null,r++,o();let u=t.substring(e.out[r].begin,e.out[r].end);e.out[r]=null,e.out[a.index].cjs=`Object.assign(module.exports, require(${u},{requirer:module}))`;continue;case"I":e.out[a.index].cjs=`module.exports.${e.out[r]} = `;continue;case"J":{let f={},p=Kn(e.out[r].out,Fn.bind(null,{as:"a",",":",",default:"I"}));if(Zt.lastIndex=-1,!Zt.test(p))throw"incorrect export properties definition.";let g=e.out[r].out;for(let m=1;m<p.length-1;m++){for(;p[m]===" "||p[m]===`
|
|
105
|
+
`||p[m]==="C"||p[m]===",";)m++;let h=g[m];for(m++;p[m]===" "||p[m]===`
|
|
106
106
|
`||p[m]==="C";)m++;if(p[m]==="a"){for(m++;p[m]===" "||p[m]===`
|
|
107
|
-
`||p[m]==="C";)m++;
|
|
107
|
+
`||p[m]==="C";)m++;f[g[m]]=h,m++}else f[h]=h}let d="{",y="{";for(let m in f)d.length>1&&(d+=",",y+=","),m===f[m]?(d+=m,y+=m):(d+=m+":"+f[m],y+=f[m]);if(d+="}",y+="}",e.out[r]=null,r++,o(),e.out[r]==="from"){e.out[r]=null,r++,o();let m=t.substring(e.out[r].begin,e.out[r].end);e.out[r]=null,e.out[a.index].cjs=`{ const ${d} = require(${m},{requirer:module}); Object.assign(module.exports, ${y}); }`}else e.out[a.index].cjs=`Object.assign(module.exports, ${d})`;continue}}}}var D={setBlockLabels:!0,enableLabelStack:!1,injectLabels:!0,preprocessorDelimiter:"\u0294"},ye,Oa=0,ho=/(\{|\}|\[|\]|\(|\)|\.\.\.|=>|\?\?=|\?\?|\?\.|===|!==|>>>|<<=|>>=|>>>=|\*\*=|\*\*|&&=|\|\|=|<=|>=|==|!=|<<|>>|\+\+|--|\+=|-=|\*=|\/=|%=|&=|\^=|\|=|=|\+|-|\*|\/|%|&|\^|\||!|~|\?|:|<|>|=|\.|,|;|\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]===`
|
|
108
108
|
`){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`
|
|
109
|
-
`: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
|
|
110
|
-
`:if(!o)return r.end=t+1,n&&n.children.push(r),r;break}t++}
|
|
109
|
+
`: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 Qt(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`
|
|
110
|
+
`: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]!==`
|
|
111
111
|
`&&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]===`
|
|
112
|
-
`){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}}
|
|
113
|
-
`);return eval(cmd),segments}function
|
|
114
|
-
`:n!=="`"&&
|
|
115
|
-
`.indexOf(e[
|
|
116
|
-
{};)`.indexOf(e[
|
|
117
|
-
{};)`.indexOf(e[
|
|
112
|
+
`){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,r;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),(r=(n=scope_stack[0]).out)!=null||(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(`
|
|
113
|
+
`);return eval(cmd),segments}function Bn(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`
|
|
114
|
+
`:n!=="`"&&ye("Unterminated string",o.begin);break;case"$":n==="`"&&e[t+1]==="{"&&([t]=M(Fe,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(Vn,e,o,n),o>s?(s=o,o--):s++;break;case"{":let c=o;[o]=M(Fe,e,o,!0,n),o--;break}o++}return s}function Vn(e,t,n,r=!1){if(r){let u=["=",",","(","&","|","?",":","{","["],f=t;for(;--f>0;)if(` \r
|
|
115
|
+
`.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
|
|
116
|
+
{};)`.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
|
|
117
|
+
{};)`.indexOf(e[f-5])===-1)return;break}return}}let o=[" "," ",`
|
|
118
118
|
`,"/","&","^","%","|","!","~","+","*","?","<",">",";",",","=","{","}","(",")","[","]","'",'"',"`","\\","",void 0],s=()=>{for(;e[t]===" "||e[t]===" "||e[t]===`
|
|
119
|
-
`;)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
|
|
120
|
-
`:s();break;default:return}}}function
|
|
121
|
-
`&&t.push(parseInt(n));return t.push(e.length),t}function
|
|
119
|
+
`;)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 y=M(Qt,e,t);y[0]>t?t=y[0]:t++,s()}let d;switch(e[t]){case"'":case'"':[t,d]=M(Bn,e,t,e[t]),c.attributes[l]=d,l=void 0;break;case"{":[t,d]=M(Fe,e,t,!0),c.attributes[l]=d,l=void 0;break;default:for(a=t;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;let y=e.substring(t,a);t=a,c.attributes[l]=y,l=void 0}}else return;break;case"{":let f;[t,f]=M(Fe,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(Qt,e,t);p[0]>t?t=p[0]:t++;break;case">":let g=Js(e,t,c);if(g===null)return;if(g>t?t=g:t++,c.end)return n&&n.children.push(c),c;t++;break;case" ":case" ":case`
|
|
120
|
+
`:s();break;default:return}}}function yo(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(Vn,e,t,r,!0);c>t?t=c:t++;break}case'"':case"'":case"`":[t]=M(Bn,e,t,o,r);break;case"{":[t]=M(Fe,e,t,!0,r);break;case"(":[t]=M(yo,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(Qt,e,t,r);s>t?t=s:t++;break;case"\\":t++;default:t++;break}}ye("Unterminated parenthesis block",r.begin)}function Fe(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(Vn,e,t,o,!0);c>t?t=c:t++;break}case'"':case"'":case"`":[t]=M(Bn,e,t,s,o);break;case"{":{let c=t;[t]=M(Fe,e,t,!0,o);break}case"(":[t]=M(yo,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(Qt,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=st(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=st(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 mo(e){let t=[0];for(let n in e)e[n]===`
|
|
121
|
+
`&&t.push(parseInt(n));return t.push(e.length),t}function st(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=d=>{var y;if(((y=d==null?void 0:d.out)==null?void 0:y.length)>0)for(let m of d.out)a(m);(d==null?void 0:d.begin)!==void 0&&(d==null?void 0:d.out_index)!==void 0&&s.push([...st(r,d.out_index),...st(n,d.begin),d])};a(e),s=s.sort((d,y)=>d[0]==y[0]?d[1]-y[1]:d[0]-y[0]),o.push(...s);let l="",u=0,f=0,p=0,g=0;for(let d=0;d<s.length;d++){let y=s[d];for(;u<y[0];)f=0,l+=";",u++;l+=",",l+=po(y[1]-f,0,y[2]-p,y[3]-g),f=y[1],p=y[2],g=y[3]}return c.mappings=l.substring(1).replace(/;,/g,";"),`
|
|
122
122
|
|
|
123
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,`+btoa(JSON.stringify(c))}function
|
|
123
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,`+btoa(JSON.stringify(c))}function Xn(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,blocks_info:u={labels:{},counter:0},mappings:f=[]}={}){var w,E;(w=D.preprocessorDelimiter)!=null||(D.preprocessorDelimiter="\u0294"),(E=D.injectTraceLabels)!=null||(D.injectTraceLabels=s);let p=mo(e);ye=((_,T,$)=>{let S=st(_,$),k=new Error(T);throw l&&console.error(`JSXParserError: ${T} [file ${r} at line ${S[0]}]`),[k.lineNumber,k.columnNumber]=S,k.name="JSXParserError",k.fileName=r,k.lilact_trace="parse",k}).bind(null,p);let g=Fe(e);g.data=e;let d=_=>{if(_.attributes!==void 0)for(let T in _.attributes)typeof _.attributes[T]=="object"&&d(_.attributes[T]);if(_.children!==void 0&&!_.self_closing){let T=_.type==="js"?_.begin:_.cbegin||_.begin;for(let S=0;S<_.children.length;S++){let k=_.children[S];if(k.begin>T){let C=e.substring(T,k.begin);_.type==="xml"&&(C=C.trim()),C.length&&(_.type==="xml"?_.children.splice(S,0,'"'+C.replaceAll(`
|
|
124
124
|
`,`\\
|
|
125
|
-
`).replaceAll('"','\\"')+'"'):_.children.splice(S,0,...C.split(
|
|
126
|
-
`})[k])+'"'):_.children.push(...S.split(
|
|
125
|
+
`).replaceAll('"','\\"')+'"'):_.children.splice(S,0,...C.split(ho)),S++)}T=k.end,d(k)}let $=_.type==="js"?_.end:_.cend||_.end;if(T<$&&!_.self_closing){let S=e.substring(T,$);_.type==="xml"&&(S=S.trim()),S.length&&(_.type==="xml"?_.children.push('"'+S.replace(/[\\\"\n]/g,k=>({"\\":"\\\\",'"':'\\"',"\n":`\\
|
|
126
|
+
`})[k])+'"'):_.children.push(...S.split(ho)))}_.children=_.children.filter(S=>S!==""),D.setBlockLabels&&!_.already_labeled&&Zs(_,p,u)}};d(g),Hs(g);let y=(_,T,$=!1,S=!1)=>{if(typeof T!="object")return T;if(T===null)return"";if(T.out_index=_,T.type==="string")return e.substring(T.begin,T.end);if(T.type==="import"||T.type==="export")return T.cjs;if(T.type==="regex")return e.substring(T.begin,T.end);if(T.type==="comment")return c||$?"":e.substring(T.begin,T.end);if(T.type==="directive")return T.value;if(T.type==="parenthesis"){let k="(";if(T.out){a&&Wn(T,e);for(let C of T.out)k+=y(_+k.length-1,C)}return k+")"}if(T.type==="js"){let k="";if(T.out){a&&Wn(T,e);for(let C of T.out)S&&C.type==="comment"||(k+=y(_+k.length-($?1:0),C))}return $?k.substring(1,k.length-1):T!=null&&T.is_xml_js?e.substring(T.begin+1,T.end-1):k}if(T.type==="xml"){T.tag.length===0?T.tag=n:T.tag[0]!==T.tag[0].toUpperCase()&&(T.tag=`"${T.tag}"`);let k="",C=!0;for(let X of T.js_attributes){let U=y(_+k.length,X,!1);k+=`${C?"":", "}${U}`,C=!1}if(T.attributes)for(let X in T.attributes)k+=`${C?"":", "}"${X}": ${y(_+k.length,T.attributes[X],!0)}`,C=!1;if(k+=" }",T.out)for(let X of T.out){let U=y(_+k.length,X,!0,!0);U.length>0&&(k+=`, ${U}`,C=!1)}let O=st(p,T.begin);return k=` ${t}( ${T.tag}, { ${k} )`,k}},m="";s&&(m=`/*LILACTBLOCK${++u.counter}:0,0:<EXEC>*/try{`),m+=y(m.length,g),s&&(D.enableLabelStack?m+=`}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${u.counter},e.lilact_trace];throw e}`:m+=`}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${u.counter};throw e}`);let h=zs(g,r,p,mo(m),f);return o&&(m+=h),m}var V={VERSION:"RC.4",defaultTransitionTimeout:300,defaultIsEqual:Object.is,...gn,...Tn,...xn,...En,...Sn,...$n,...In,...Cn,...Pn,...dn,...Mn,...qn,transpileJSX:Xn,transpilerConfig:D,PropTypes:Fr,redux:on,emotion:mt,_setTimeout:window.setTimeout.bind(window),_setInterval:window.setInterval.bind(window),_clearTimeout:window.clearTimeout.bind(window),_clearInterval:window.clearInterval.bind(window)};V.default=V;var v=V;V.importObjectPaths={lilact:V,"@emotion/css":V.emotion,redux:V.redux};globalThis.Lilact=V;globalThis.createComponent=V.createComponent;globalThis.Fragment=V.Fragment;globalThis.require=V.require;document.addEventListener("DOMContentLoaded",()=>{V.grabTimers(),V.runScripts().catch(e=>{var t;(t=V.globalErrorHandler)==null||t.call(V,e)})});export{xt as ARGS,wt as CALLBACK,de as CHILD_CLASS_ADDENDUM,bt as CLEARED,ze as COMPONENT,x as CORE,eo as CSSTransition,Me as Children,Ae as Component,le as DUE,uo as DragHandle,Un as ErrorBoundary,Mr as Fragment,Et as HTMLComponent,As as HashRouter,ue as IDX,Qe as INTERVAL,pn as IS_ZOMBIE,yt as LAZY,V as Lilact,Is as Link,ke as MEMOIZED,Ps as NavLink,Ur as Portal,Fr as PropTypes,ts as Provider,gt as REPEAT,Ut as RootComponent,Ns as Route,ao as Routes,Ds as Spinner,Ms as SplitPane,Jt as Suspense,Ji as SwitchTransition,K as TEXT,Qr as Transition,Zi as TransitionGroup,es as addWrappedEventListener,gs as animationFramePromise,Cs as blocks_info,Gr as boolean_html_attributes_set,Ft as capture_events_set,ds as clearInterval,ps as clearTimeout,Vr as cloneComponent,_i as cloneElement,os as combineReducers,rs as connect,wn as createComponent,tt as createContext,vi as createElement,xi as createPortal,Br as createRoot,to as createSyntheticEvent,ki as current_component,hn as deepEqual,v as default,Li as effect_timeout,mt as emotion,$s as error,fi as eval_num,qt as events_set,si as findDOMNode,mn as forwardRef,ci as getComponentByPointer,ks as globalErrorHandler,hs as grabTimers,li as id_num,Ai as insertion_effects,ai as isAsync,yn as isClass,W as isEmpty,ui as isError,Dt as isThenable,et as isValidComponent,ii as isValidElement,Oi as layout_effects,Yi as lazy,Yr as length_css_attributes_set,Ti as memo,Ii as passive_effects,as as pauseTimers,Wr as processEffects,on as redux,no as releaseSyntheticEvent,ms as releaseTimers,Ei as render,zr as require,qe as required_scripts,cs as resetTimers,us as resumeTimers,$i as roots,rt as run,Hi as runScripts,Ss as scanBlockLabels,fs as setInterval,ls as setTimeout,se as shallowEqual,Xr as special_attributes,Ki as startTransition,ys as timeoutPromise,Mt as toBool,co as traceError,Xn as transpileJSX,D as transpilerConfig,Ci as update_cbs,Ri as update_interval_margin,Si as update_set,Pi as update_timeout,Mi as useActionState,me as useCallback,nt as useContext,Fi as useDebugValue,qi as useDeferredValue,ns as useDispatch,ne as useEffect,ce as useHook,Ni as useId,_n as useImperativeHandle,Di as useInsertionEffect,Ie as useLayoutEffect,ji as useLocalStorage,jn as useLocation,Tt as useMemo,Dn as useNavigate,Ui as useReducer,R as useRef,oo as useSelector,te as useState,Bt as useStore,Hr as useTransition,ro as wrapListener};
|