diff --git a/src/assets/runtime.js b/src/assets/runtime.js index 057b7bda..42e144b2 100644 --- a/src/assets/runtime.js +++ b/src/assets/runtime.js @@ -3,7 +3,7 @@ var Ar=Object.create;var ft=Object.defineProperty;var qr=Object.getOwnPropertyDe Expecting `+me.join(", ")+", got '"+(this.terminals_[S]||S)+"'":Fe="Parse error on line "+(w+1)+": Unexpected "+(S==ne?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(Fe,{text:x.match,token:this.terminals_[S]||S,line:x.yylineno,loc:Ue,expected:me})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+S);switch(O[0]){case 1:h.push(S),p.push(x.yytext),d.push(x.yylloc),h.push(O[1]),S=null,Ve?(S=Ve,Ve=null):(T=x.yyleng,v=x.yytext,w=x.yylineno,Ue=x.yylloc,W>0&&W--);break;case 2:if(D=this.productions_[O[1]][1],Z.$=p[p.length-D],Z._$={first_line:d[d.length-(D||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(D||1)].first_column,last_column:d[d.length-1].last_column},br&&(Z._$.range=[d[d.length-(D||1)].range[0],d[d.length-1].range[1]]),Be=this.performAction.apply(Z,[v,T,w,E.yy,O[1],p,d].concat(J)),typeof Be<"u")return Be;D&&(h=h.slice(0,-1*D*2),p=p.slice(0,-1*D),d=d.slice(0,-1*D)),h.push(this.productions_[O[1]][0]),p.push(Z.$),d.push(Z._$),ct=m[h[h.length-2]][h[h.length-1]],h.push(ct);break;case 3:return!0}}return!0}},c=function(){var f={EOF:1,parseError:function(s,h){if(this.yy.parser)this.yy.parser.parseError(s,h);else throw new Error(s)},setInput:function(u,s){return this.yy=s||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var s=u.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var s=u.length,h=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var _=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===_.length?this.yylloc.first_column:0)+_[_.length-h.length].length-h[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),s=new Array(u.length+1).join("-");return u+this.upcomingInput()+` `+s+"^"},test_match:function(u,s){var h,_,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),_=u[0].match(/(?:\r\n?|\n).*/g),_&&(this.yylineno+=_.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],h=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var d in p)this[d]=p[d];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,s,h,_;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),d=0;ds[0].length)){if(s=h,_=d,this.options.backtrack_lexer){if(u=this.test_match(h,p[d]),u!==!1)return u;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(u=this.test_match(s,p[_]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(s,h,_,p){var d=p;switch(_){case 0:return"(";case 1:return")";case 2:return"SPLAT";case 3:return"PARAM";case 4:return"LITERAL";case 5:return"LITERAL";case 6:return"EOF"}},rules:[/^(?:\()/,/^(?:\))/,/^(?:\*+\w+)/,/^(?::+\w+)/,/^(?:[\w%\-~\n]+)/,/^(?:.)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6],inclusive:!0}}};return f}();a.lexer=c;function l(){this.yy={}}return l.prototype=a,a.Parser=l,new l}();typeof ge<"u"&&typeof he<"u"&&(he.parser=Me,he.Parser=Me.Parser,he.parse=function(){return Me.parse.apply(Me,arguments)})});var at=C((Ao,ur)=>{"use strict";function re(e){return function(t,r){return{displayName:e,props:t,children:r||[]}}}ur.exports={Root:re("Root"),Concat:re("Concat"),Literal:re("Literal"),Splat:re("Splat"),Param:re("Param"),Optional:re("Optional")}});var fr=C((qo,cr)=>{"use strict";var lr=ar().parser;lr.yy=at();cr.exports=lr});var ut=C((Oo,_r)=>{"use strict";var Pn=Object.keys(at());function Nn(e){return Pn.forEach(function(t){if(typeof e[t]>"u")throw new Error("No handler defined for "+t.displayName)}),{visit:function(t,r){return this.handlers[t.displayName].call(this,t,r)},handlers:e}}_r.exports=Nn});var dr=C((To,pr)=>{"use strict";var Rn=ut(),Cn=/[\-{}\[\]+?.,\\\^$|#\s]/g;function hr(e){this.captures=e.captures,this.re=e.re}hr.prototype.match=function(e){var t=this.re.exec(e),r={};return t?(this.captures.forEach(function(n,i){typeof t[i+1]>"u"?r[n]=void 0:r[n]=decodeURIComponent(t[i+1])}),r):!1};var In=Rn({Concat:function(e){return e.children.reduce(function(t,r){var n=this.visit(r);return{re:t.re+n.re,captures:t.captures.concat(n.captures)}}.bind(this),{re:"",captures:[]})},Literal:function(e){return{re:e.props.value.replace(Cn,"\\$&"),captures:[]}},Splat:function(e){return{re:"([^?#]*?)",captures:[e.props.name]}},Param:function(e){return{re:"([^\\/\\?#]+)",captures:[e.props.name]}},Optional:function(e){var t=this.visit(e.children[0]);return{re:"(?:"+t.re+")?",captures:t.captures}},Root:function(e){var t=this.visit(e.children[0]);return new hr({re:new RegExp("^"+t.re+"(?=\\?|#|$)"),captures:t.captures})}});pr.exports=In});var vr=C((Po,yr)=>{"use strict";var $n=ut(),Mn=$n({Concat:function(e,t){var r=e.children.map(function(n){return this.visit(n,t)}.bind(this));return r.some(function(n){return n===!1})?!1:r.join("")},Literal:function(e){return decodeURI(e.props.value)},Splat:function(e,t){return typeof t[e.props.name]>"u"?!1:t[e.props.name]},Param:function(e,t){return typeof t[e.props.name]>"u"?!1:t[e.props.name]},Optional:function(e,t){var r=this.visit(e.children[0],t);return r||""},Root:function(e,t){t=t||{};var r=this.visit(e.children[0],t);return r===!1||typeof r>"u"?!1:encodeURI(r)}});yr.exports=Mn});var gr=C((No,mr)=>{"use strict";var Dn=fr(),Ln=dr(),Un=vr();function pe(e){var t;if(this?t=this:t=Object.create(pe.prototype),typeof e>"u")throw new Error("A route spec is required");return t.spec=e,t.ast=Dn.parse(e),t}pe.prototype=Object.create(null);pe.prototype.match=function(e){var t=Ln.visit(this.ast),r=t.match(e);return r!==null?r:!1};pe.prototype.reverse=function(e){return Un.visit(this.ast,e)};mr.exports=pe});var xr=C((Ro,wr)=>{"use strict";var Vn=gr();wr.exports=Vn});var ke,y,mt,We,z,ht,gt,je,Rr,ie={},wt=[],Cr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ge=Array.isArray;function V(e,t){for(var r in t)e[r]=t[r];return e}function xt(e){var t=e.parentNode;t&&t.removeChild(e)}function I(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?ke.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return xe(e,a,n,i,null)}function xe(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++mt,__i:-1,__u:0};return i==null&&y.vnode!=null&&y.vnode(o),o}function Et(){return{current:null}}function oe(e){return e.children}function B(e,t){this.props=e,this.context=t}function Q(e,t){if(t==null)return e.__?Q(e.__,e.__i+1):null;for(var r;tt&&z.sort(je));Ee.__r=0}function bt(e,t,r,n,i,o,a,c,l,f,u){var s,h,_,p,d,m=n&&n.__k||wt,v=t.length;for(r.__d=l,Ir(r,t,m),l=r.__d,s=0;s0?xe(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=e,i.__b=e.__b+1,c=$r(i,r,a=n+s,u),i.__i=c,o=null,c!==-1&&(u--,(o=r[c])&&(o.__u|=131072)),o==null||o.__v===null?(c==-1&&s--,typeof i.type!="function"&&(i.__u|=65536)):c!==a&&(c===a+1?s++:c>a?u>l-a?s+=c-a:s--:s=c(l!=null&&!(131072&l.__u)?1:0))for(;a>=0||c=0){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(c=r.__.length&&r.__.push({__V:be}),r.__[e]}function K(e,t){var r=$t(Ae++,3);!y.__s&&Mt(r.__H,t)&&(r.__=e,r.i=t,q.__H.__h.push(r))}function qe(e){return Xe=5,L(function(){return{current:e}},[])}function L(e,t){var r=$t(Ae++,7);return Mt(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function Lr(){for(var e;e=It.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Se),e.__H.__h.forEach(Je),e.__H.__h=[]}catch(t){e.__H.__h=[],y.__e(t,e.__v)}}y.__b=function(e){q=null,Ot&&Ot(e)},y.__r=function(e){Tt&&Tt(e),Ae=0;var t=(q=e.__c).__H;t&&(Ke===q?(t.__h=[],q.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=be,r.__N=r.i=void 0})):(t.__h.forEach(Se),t.__h.forEach(Je),t.__h=[],Ae=0)),Ke=q},y.diffed=function(e){Pt&&Pt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(It.push(t)!==1&&qt===y.requestAnimationFrame||((qt=y.requestAnimationFrame)||Ur)(Lr)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==be&&(r.__=r.__V),r.i=void 0,r.__V=be})),Ke=q=null},y.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Se),r.__h=r.__h.filter(function(n){return!n.__||Je(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],y.__e(n,r.__v)}}),Nt&&Nt(e,t)},y.unmount=function(e){Rt&&Rt(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Se(n)}catch(i){t=i}}),r.__H=void 0,t&&y.__e(t,r.__v))};var Ct=typeof requestAnimationFrame=="function";function Ur(e){var t,r=function(){clearTimeout(n),Ct&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ct&&(t=requestAnimationFrame(r))}function Se(e){var t=q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),q=t}function Je(e){var t=q;e.__c=e.__(),q=t}function Mt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Te(){throw new Error("Cycle detected")}var Vr=Symbol.for("preact-signals");function Pe(){if(F>1)F--;else{for(var e,t=!1;ae!==void 0;){var r=ae;for(ae=void 0,Qe++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Ut(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Qe=0,F--,t)throw e}}function Dt(e){if(F>0)return e();F++;try{return e()}finally{Pe()}}var g=void 0,Ze=0;function Ne(e){if(Ze>0)return e();var t=g;g=void 0,Ze++;try{return e()}finally{Ze--,g=t}}var ae=void 0,F=0,Qe=0,Oe=0;function Lt(e){if(g!==void 0){var t=e.n;if(t===void 0||t.t!==g)return t={i:0,S:e,p:g.s,n:void 0,t:g,e:void 0,x:void 0,r:t},g.s!==void 0&&(g.s.n=t),g.s=t,e.n=t,32&g.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=g.s,t.n=void 0,g.s.n=t,g.s=t),t}}function k(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}k.prototype.brand=Vr;k.prototype.h=function(){return!0};k.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};k.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};k.prototype.subscribe=function(e){var t=this;return le(function(){var r=t.value,n=32&this.f;this.f&=-33;try{e(r)}finally{this.f|=n}})};k.prototype.valueOf=function(){return this.value};k.prototype.toString=function(){return this.value+""};k.prototype.toJSON=function(){return this.value};k.prototype.peek=function(){return this.v};Object.defineProperty(k.prototype,"value",{get:function(){var e=Lt(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(g instanceof j&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Qe>100&&Te(),this.v=e,this.i++,Oe++,F++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Pe()}}}});function $(e){return new k(e)}function Ut(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Vt(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Bt(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function j(e){k.call(this,void 0),this.x=e,this.s=void 0,this.g=Oe-1,this.f=4}(j.prototype=new k).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Oe))return!0;if(this.g=Oe,this.f|=1,this.i>0&&!Ut(this))return this.f&=-2,!0;var e=g;try{Vt(this),g=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return g=e,Bt(this),this.f&=-2,!0};j.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}k.prototype.S.call(this,e)};j.prototype.U=function(e){if(this.t!==void 0&&(k.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};j.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};j.prototype.peek=function(){if(this.h()||Te(),16&this.f)throw this.v;return this.v};Object.defineProperty(j.prototype,"value",{get:function(){1&this.f&&Te();var e=Lt(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function et(e){return new j(e)}function Ft(e){var t=e.u;if(e.u=void 0,typeof t=="function"){F++;var r=g;g=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,tt(e),n}finally{g=r,Pe()}}}function tt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ft(e)}function Br(e){if(g!==this)throw new Error("Out-of-order effect");Bt(this),g=e,this.f&=-2,8&this.f&&tt(this),Pe()}function ue(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}ue.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};ue.prototype.S=function(){1&this.f&&Te(),this.f|=1,this.f&=-9,Ft(this),Vt(this),F++;var e=g;return g=this,Br.bind(this,e)};ue.prototype.N=function(){2&this.f||(this.f|=2,this.o=ae,ae=this)};ue.prototype.d=function(){this.f|=8,1&this.f||tt(this)};function le(e){var t=new ue(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}var nt,rt;function ee(e,t){y[e]=t.bind(null,y[e]||function(){})}function Re(e){rt&&rt(),rt=e&&e.S()}function jt(e){var t=this,r=e.data,n=jr(r);n.value=r;var i=L(function(){for(var o=t.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return t.__$u.c=function(){var a;!We(i.peek())&&((a=t.base)==null?void 0:a.nodeType)===3?t.base.data=i.peek():(t.__$f|=1,t.setState({}))},et(function(){var a=n.value.value;return a===0?0:a===!0?"":a||""})},[]);return i.value}jt.displayName="_st";Object.defineProperties(k.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:jt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});ee("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof k&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});ee("__r",function(e,t){Re();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return le(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),nt=n,Re(r),e(t)});ee("__e",function(e,t,r,n){Re(),nt=void 0,e(t,r,n)});ee("diffed",function(e,t){Re(),nt=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var c=o[a];c!==void 0&&!(a in n)&&(c.d(),o[a]=void 0)}else r.U=o={};for(var l in n){var f=o[l],u=n[l];f===void 0?(f=Fr(r,l,u,i),o[l]=f):f.o(u,i)}}}e(t)});function Fr(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=$(r);return{o:function(a,c){o.value=a,n=c},d:le(function(){var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}ee("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)});ee("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});B.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u;if(!(r&&r.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var n in t)return!0;for(var i in e)if(i!=="__source"&&e[i]!==this.props[i])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};function jr(e){return L(function(){return $(e)},[])}var b=Symbol("Equals"),P=Symbol("Name");typeof Node>"u"&&(self.Node=class{});Boolean.prototype[b]=Symbol.prototype[b]=Number.prototype[b]=String.prototype[b]=function(e){return this.valueOf()===e};Date.prototype[b]=function(e){return+this==+e};Function.prototype[b]=Node.prototype[b]=function(e){return this===e};URLSearchParams.prototype[b]=function(e){return e==null?!1:this.toString()===e.toString()};Set.prototype[b]=function(e){return e==null?!1:A(Array.from(this).sort(),Array.from(e).sort())};Array.prototype[b]=function(e){if(e==null||this.length!==e.length)return!1;if(this.length==0)return!0;for(let t in this)if(!A(this[t],e[t]))return!1;return!0};FormData.prototype[b]=function(e){if(e==null)return!1;let t=Array.from(e.keys()).sort(),r=Array.from(this.keys()).sort();if(A(r,t)){if(r.length==0)return!0;for(let n of r){let i=Array.from(e.getAll(n).sort()),o=Array.from(this.getAll(n).sort());if(!A(o,i))return!1}return!0}else return!1};Map.prototype[b]=function(e){if(e==null)return!1;let t=Array.from(this.keys()).sort(),r=Array.from(e.keys()).sort();if(A(t,r)){if(t.length==0)return!0;for(let n of t)if(!A(this.get(n),e.get(n)))return!1;return!0}else return!1};var Ce=e=>e!=null&&typeof e=="object"&&"constructor"in e&&"props"in e&&"type"in e&&"ref"in e&&"key"in e&&"__"in e,A=(e,t)=>e===void 0&&t===void 0||e===null&&t===null?!0:e!=null&&e!=null&&e[b]?e[b](t):t!=null&&t!=null&&t[b]?t[b](e):Ce(e)||Ce(t)?e===t:it(e,t),it=(e,t)=>{if(e instanceof Object&&t instanceof Object){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;let i=new Set(r.concat(n));for(let o of i)if(!A(e[o],t[o]))return!1;return!0}else return e===t};var Ie=class{constructor(t,r){this.pattern=r,this.variant=t}},li=(e,t)=>new Ie(e,t),Hr=Symbol("Variable"),ot=Symbol("Spread"),ce=(e,t,r=[])=>{if(t!==null){if(t===Hr)r.push(e);else if(Array.isArray(t))if(t.some(i=>i===ot)&&e.length>=t.length-1){let i=0,o=[],a=1;for(;t[i]!==ot&&i{for(let r of t){if(r[0]===null)return r[1]();{let n=ce(e,r[0]);if(n)return r[1].apply(null,n)}}};"DataTransfer"in window||(window.DataTransfer=class{constructor(){this.effectAllowed="none",this.dropEffect="none",this.files=[],this.types=[],this.cache={}}getData(e){return this.cache[e]||""}setData(e,t){return this.cache[e]=t,null}clearData(){return this.cache={},null}});var Wr=e=>new Proxy(e,{get:function(t,r){if(r==="event")return e;if(r in t){let n=t[r];return n instanceof Function?()=>t[r]():n}else switch(r){case"clipboardData":return t.clipboardData=new DataTransfer;case"dataTransfer":return t.dataTransfer=new DataTransfer;case"data":return"";case"altKey":return!1;case"charCode":return-1;case"ctrlKey":return!1;case"key":return"";case"keyCode":return-1;case"locale":return"";case"location":return-1;case"metaKey":return!1;case"repeat":return!1;case"shiftKey":return!1;case"which":return-1;case"button":return-1;case"buttons":return-1;case"clientX":return-1;case"clientY":return-1;case"pageX":return-1;case"pageY":return-1;case"screenX":return-1;case"screenY":return-1;case"layerX":return-1;case"layerY":return-1;case"offsetX":return-1;case"offsetY":return-1;case"detail":return-1;case"deltaMode":return-1;case"deltaX":return-1;case"deltaY":return-1;case"deltaZ":return-1;case"animationName":return"";case"pseudoElement":return"";case"elapsedTime":return-1;case"propertyName":return"";default:return}}});y.event=Wr;var wi=(e,t,r,n)=>{for(let i of e)if(A(i[0],t))return new r(i[1]);return new n},xi=(e,t,r,n)=>e.length>=t+1&&t>=0?new r(e[t]):new n,Ei=(e,t)=>r=>{e.current._0!==r&&(e.current=new t(r))},ki=e=>{let t=L(()=>$(e),[]);return t.value,t},bi=e=>{let t=Et();return t.current=e,t},Si=e=>{let t=qe(!1);K(()=>{t.current?e():t.current=!0})},Ai=(e,t,r,n)=>r instanceof e||r instanceof t?n:r._0,qi=(...e)=>{let t=Array.from(e);return Array.isArray(t[0])&&t.length===1?t[0]:t},Oi=e=>t=>t[e],Wt=e=>e,Ti=e=>t=>({[P]:e,...t}),Ht=class extends B{async componentDidMount(){let t=await this.props.x();this.setState({x:t})}render(){return this.state.x?I(this.state.x,this.props.p,this.props.c):null}},Pi=e=>async()=>Gr(e),Gr=async e=>(await import(e)).default;var Yr=$({}),Gt=$({}),Ci=e=>Gt.value=e,Ii=e=>(Yr.value[Gt.value]||{})[e]||"";var Kt=_t(zt()),ji=(e,t)=>(r,n)=>{let i=()=>{e.has(r)&&(e.delete(r),Ne(t))};K(()=>i,[]),K(()=>{let o=n();if(o===null)i();else{let a=e.get(r);A(a,o)||(e.set(r,o),Ne(t))}})},Hi=e=>Array.from(e.values()),Wi=()=>L(Kt.default,[]);function fe(e,t=1,r={}){let{indent:n=" ",includeEmptyLines:i=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(t===0)return e;let o=i?/^/gm:/^(?!\s*$)/gm;return e.replace(o,n.repeat(t))}var M=e=>{let t=JSON.stringify(e,"",2);return typeof t>"u"&&(t="undefined"),fe(t)},N=class{constructor(t,r=[]){this.message=t,this.object=null,this.path=r}push(t){this.path.unshift(t)}toString(){let t=this.message.trim(),r=this.path.reduce((n,i)=>{if(n.length)switch(i.type){case"FIELD":return`${n}.${i.value}`;case"ARRAY":return`${n}[${i.value}]`}else switch(i.type){case"FIELD":return i.value;case"ARRAY":return"[$(item.value)]"}},"");return r.length&&this.object?t+` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(s,h,_,p){var d=p;switch(_){case 0:return"(";case 1:return")";case 2:return"SPLAT";case 3:return"PARAM";case 4:return"LITERAL";case 5:return"LITERAL";case 6:return"EOF"}},rules:[/^(?:\()/,/^(?:\))/,/^(?:\*+\w+)/,/^(?::+\w+)/,/^(?:[\w%\-~\n]+)/,/^(?:.)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6],inclusive:!0}}};return f}();a.lexer=c;function l(){this.yy={}}return l.prototype=a,a.Parser=l,new l}();typeof ge<"u"&&typeof he<"u"&&(he.parser=Me,he.Parser=Me.Parser,he.parse=function(){return Me.parse.apply(Me,arguments)})});var at=C((Ao,ur)=>{"use strict";function re(e){return function(t,r){return{displayName:e,props:t,children:r||[]}}}ur.exports={Root:re("Root"),Concat:re("Concat"),Literal:re("Literal"),Splat:re("Splat"),Param:re("Param"),Optional:re("Optional")}});var fr=C((qo,cr)=>{"use strict";var lr=ar().parser;lr.yy=at();cr.exports=lr});var ut=C((Oo,_r)=>{"use strict";var Pn=Object.keys(at());function Nn(e){return Pn.forEach(function(t){if(typeof e[t]>"u")throw new Error("No handler defined for "+t.displayName)}),{visit:function(t,r){return this.handlers[t.displayName].call(this,t,r)},handlers:e}}_r.exports=Nn});var dr=C((To,pr)=>{"use strict";var Rn=ut(),Cn=/[\-{}\[\]+?.,\\\^$|#\s]/g;function hr(e){this.captures=e.captures,this.re=e.re}hr.prototype.match=function(e){var t=this.re.exec(e),r={};return t?(this.captures.forEach(function(n,i){typeof t[i+1]>"u"?r[n]=void 0:r[n]=decodeURIComponent(t[i+1])}),r):!1};var In=Rn({Concat:function(e){return e.children.reduce(function(t,r){var n=this.visit(r);return{re:t.re+n.re,captures:t.captures.concat(n.captures)}}.bind(this),{re:"",captures:[]})},Literal:function(e){return{re:e.props.value.replace(Cn,"\\$&"),captures:[]}},Splat:function(e){return{re:"([^?#]*?)",captures:[e.props.name]}},Param:function(e){return{re:"([^\\/\\?#]+)",captures:[e.props.name]}},Optional:function(e){var t=this.visit(e.children[0]);return{re:"(?:"+t.re+")?",captures:t.captures}},Root:function(e){var t=this.visit(e.children[0]);return new hr({re:new RegExp("^"+t.re+"(?=\\?|#|$)"),captures:t.captures})}});pr.exports=In});var vr=C((Po,yr)=>{"use strict";var $n=ut(),Mn=$n({Concat:function(e,t){var r=e.children.map(function(n){return this.visit(n,t)}.bind(this));return r.some(function(n){return n===!1})?!1:r.join("")},Literal:function(e){return decodeURI(e.props.value)},Splat:function(e,t){return typeof t[e.props.name]>"u"?!1:t[e.props.name]},Param:function(e,t){return typeof t[e.props.name]>"u"?!1:t[e.props.name]},Optional:function(e,t){var r=this.visit(e.children[0],t);return r||""},Root:function(e,t){t=t||{};var r=this.visit(e.children[0],t);return r===!1||typeof r>"u"?!1:encodeURI(r)}});yr.exports=Mn});var gr=C((No,mr)=>{"use strict";var Dn=fr(),Ln=dr(),Un=vr();function pe(e){var t;if(this?t=this:t=Object.create(pe.prototype),typeof e>"u")throw new Error("A route spec is required");return t.spec=e,t.ast=Dn.parse(e),t}pe.prototype=Object.create(null);pe.prototype.match=function(e){var t=Ln.visit(this.ast),r=t.match(e);return r!==null?r:!1};pe.prototype.reverse=function(e){return Un.visit(this.ast,e)};mr.exports=pe});var xr=C((Ro,wr)=>{"use strict";var Vn=gr();wr.exports=Vn});var ke,y,mt,We,z,ht,gt,je,Rr,ie={},wt=[],Cr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ge=Array.isArray;function V(e,t){for(var r in t)e[r]=t[r];return e}function xt(e){var t=e.parentNode;t&&t.removeChild(e)}function I(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?ke.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return xe(e,a,n,i,null)}function xe(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++mt,__i:-1,__u:0};return i==null&&y.vnode!=null&&y.vnode(o),o}function Et(){return{current:null}}function oe(e){return e.children}function B(e,t){this.props=e,this.context=t}function Q(e,t){if(t==null)return e.__?Q(e.__,e.__i+1):null;for(var r;tt&&z.sort(je));Ee.__r=0}function bt(e,t,r,n,i,o,a,c,l,f,u){var s,h,_,p,d,m=n&&n.__k||wt,v=t.length;for(r.__d=l,Ir(r,t,m),l=r.__d,s=0;s0?xe(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=e,i.__b=e.__b+1,c=$r(i,r,a=n+s,u),i.__i=c,o=null,c!==-1&&(u--,(o=r[c])&&(o.__u|=131072)),o==null||o.__v===null?(c==-1&&s--,typeof i.type!="function"&&(i.__u|=65536)):c!==a&&(c===a+1?s++:c>a?u>l-a?s+=c-a:s--:s=c(l!=null&&!(131072&l.__u)?1:0))for(;a>=0||c=0){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(c=r.__.length&&r.__.push({__V:be}),r.__[e]}function K(e,t){var r=$t(Ae++,3);!y.__s&&Mt(r.__H,t)&&(r.__=e,r.i=t,q.__H.__h.push(r))}function qe(e){return Xe=5,L(function(){return{current:e}},[])}function L(e,t){var r=$t(Ae++,7);return Mt(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function Lr(){for(var e;e=It.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Se),e.__H.__h.forEach(Je),e.__H.__h=[]}catch(t){e.__H.__h=[],y.__e(t,e.__v)}}y.__b=function(e){q=null,Ot&&Ot(e)},y.__r=function(e){Tt&&Tt(e),Ae=0;var t=(q=e.__c).__H;t&&(Ke===q?(t.__h=[],q.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=be,r.__N=r.i=void 0})):(t.__h.forEach(Se),t.__h.forEach(Je),t.__h=[],Ae=0)),Ke=q},y.diffed=function(e){Pt&&Pt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(It.push(t)!==1&&qt===y.requestAnimationFrame||((qt=y.requestAnimationFrame)||Ur)(Lr)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==be&&(r.__=r.__V),r.i=void 0,r.__V=be})),Ke=q=null},y.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Se),r.__h=r.__h.filter(function(n){return!n.__||Je(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],y.__e(n,r.__v)}}),Nt&&Nt(e,t)},y.unmount=function(e){Rt&&Rt(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Se(n)}catch(i){t=i}}),r.__H=void 0,t&&y.__e(t,r.__v))};var Ct=typeof requestAnimationFrame=="function";function Ur(e){var t,r=function(){clearTimeout(n),Ct&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ct&&(t=requestAnimationFrame(r))}function Se(e){var t=q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),q=t}function Je(e){var t=q;e.__c=e.__(),q=t}function Mt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Te(){throw new Error("Cycle detected")}var Vr=Symbol.for("preact-signals");function Pe(){if(F>1)F--;else{for(var e,t=!1;ae!==void 0;){var r=ae;for(ae=void 0,Qe++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Ut(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Qe=0,F--,t)throw e}}function Dt(e){if(F>0)return e();F++;try{return e()}finally{Pe()}}var g=void 0,Ze=0;function Ne(e){if(Ze>0)return e();var t=g;g=void 0,Ze++;try{return e()}finally{Ze--,g=t}}var ae=void 0,F=0,Qe=0,Oe=0;function Lt(e){if(g!==void 0){var t=e.n;if(t===void 0||t.t!==g)return t={i:0,S:e,p:g.s,n:void 0,t:g,e:void 0,x:void 0,r:t},g.s!==void 0&&(g.s.n=t),g.s=t,e.n=t,32&g.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=g.s,t.n=void 0,g.s.n=t,g.s=t),t}}function k(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}k.prototype.brand=Vr;k.prototype.h=function(){return!0};k.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};k.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};k.prototype.subscribe=function(e){var t=this;return le(function(){var r=t.value,n=32&this.f;this.f&=-33;try{e(r)}finally{this.f|=n}})};k.prototype.valueOf=function(){return this.value};k.prototype.toString=function(){return this.value+""};k.prototype.toJSON=function(){return this.value};k.prototype.peek=function(){return this.v};Object.defineProperty(k.prototype,"value",{get:function(){var e=Lt(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(g instanceof j&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Qe>100&&Te(),this.v=e,this.i++,Oe++,F++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Pe()}}}});function $(e){return new k(e)}function Ut(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Vt(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Bt(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function j(e){k.call(this,void 0),this.x=e,this.s=void 0,this.g=Oe-1,this.f=4}(j.prototype=new k).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Oe))return!0;if(this.g=Oe,this.f|=1,this.i>0&&!Ut(this))return this.f&=-2,!0;var e=g;try{Vt(this),g=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return g=e,Bt(this),this.f&=-2,!0};j.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}k.prototype.S.call(this,e)};j.prototype.U=function(e){if(this.t!==void 0&&(k.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};j.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};j.prototype.peek=function(){if(this.h()||Te(),16&this.f)throw this.v;return this.v};Object.defineProperty(j.prototype,"value",{get:function(){1&this.f&&Te();var e=Lt(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function et(e){return new j(e)}function Ft(e){var t=e.u;if(e.u=void 0,typeof t=="function"){F++;var r=g;g=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,tt(e),n}finally{g=r,Pe()}}}function tt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ft(e)}function Br(e){if(g!==this)throw new Error("Out-of-order effect");Bt(this),g=e,this.f&=-2,8&this.f&&tt(this),Pe()}function ue(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}ue.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};ue.prototype.S=function(){1&this.f&&Te(),this.f|=1,this.f&=-9,Ft(this),Vt(this),F++;var e=g;return g=this,Br.bind(this,e)};ue.prototype.N=function(){2&this.f||(this.f|=2,this.o=ae,ae=this)};ue.prototype.d=function(){this.f|=8,1&this.f||tt(this)};function le(e){var t=new ue(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}var nt,rt;function ee(e,t){y[e]=t.bind(null,y[e]||function(){})}function Re(e){rt&&rt(),rt=e&&e.S()}function jt(e){var t=this,r=e.data,n=jr(r);n.value=r;var i=L(function(){for(var o=t.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return t.__$u.c=function(){var a;!We(i.peek())&&((a=t.base)==null?void 0:a.nodeType)===3?t.base.data=i.peek():(t.__$f|=1,t.setState({}))},et(function(){var a=n.value.value;return a===0?0:a===!0?"":a||""})},[]);return i.value}jt.displayName="_st";Object.defineProperties(k.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:jt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});ee("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof k&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});ee("__r",function(e,t){Re();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return le(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),nt=n,Re(r),e(t)});ee("__e",function(e,t,r,n){Re(),nt=void 0,e(t,r,n)});ee("diffed",function(e,t){Re(),nt=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var c=o[a];c!==void 0&&!(a in n)&&(c.d(),o[a]=void 0)}else r.U=o={};for(var l in n){var f=o[l],u=n[l];f===void 0?(f=Fr(r,l,u,i),o[l]=f):f.o(u,i)}}}e(t)});function Fr(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=$(r);return{o:function(a,c){o.value=a,n=c},d:le(function(){var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}ee("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)});ee("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});B.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u;if(!(r&&r.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var n in t)return!0;for(var i in e)if(i!=="__source"&&e[i]!==this.props[i])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};function jr(e){return L(function(){return $(e)},[])}var b=Symbol("Equals"),P=Symbol("Name");typeof Node>"u"&&(self.Node=class{});Boolean.prototype[b]=Symbol.prototype[b]=Number.prototype[b]=String.prototype[b]=function(e){return this.valueOf()===e};Date.prototype[b]=function(e){return+this==+e};Function.prototype[b]=Node.prototype[b]=function(e){return this===e};URLSearchParams.prototype[b]=function(e){return e==null?!1:this.toString()===e.toString()};Set.prototype[b]=function(e){return e==null?!1:A(Array.from(this).sort(),Array.from(e).sort())};Array.prototype[b]=function(e){if(e==null||this.length!==e.length)return!1;if(this.length==0)return!0;for(let t in this)if(!A(this[t],e[t]))return!1;return!0};FormData.prototype[b]=function(e){if(e==null)return!1;let t=Array.from(e.keys()).sort(),r=Array.from(this.keys()).sort();if(A(r,t)){if(r.length==0)return!0;for(let n of r){let i=Array.from(e.getAll(n).sort()),o=Array.from(this.getAll(n).sort());if(!A(o,i))return!1}return!0}else return!1};Map.prototype[b]=function(e){if(e==null)return!1;let t=Array.from(this.keys()).sort(),r=Array.from(e.keys()).sort();if(A(t,r)){if(t.length==0)return!0;for(let n of t)if(!A(this.get(n),e.get(n)))return!1;return!0}else return!1};var Ce=e=>e!=null&&typeof e=="object"&&"constructor"in e&&"props"in e&&"type"in e&&"ref"in e&&"key"in e&&"__"in e,A=(e,t)=>e===void 0&&t===void 0||e===null&&t===null?!0:e!=null&&e!=null&&e[b]?e[b](t):t!=null&&t!=null&&t[b]?t[b](e):Ce(e)||Ce(t)?e===t:it(e,t),it=(e,t)=>{if(e instanceof Object&&t instanceof Object){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;let i=new Set(r.concat(n));for(let o of i)if(!A(e[o],t[o]))return!1;return!0}else return e===t};var Ie=class{constructor(t,r){this.pattern=r,this.variant=t}},li=(e,t)=>new Ie(e,t),Hr=Symbol("Variable"),ot=Symbol("Spread"),ce=(e,t,r=[])=>{if(t!==null){if(t===Hr)r.push(e);else if(Array.isArray(t))if(t.some(i=>i===ot)&&e.length>=t.length-1){let i=0,o=[],a=1;for(;t[i]!==ot&&i{for(let r of t){if(r[0]===null)return r[1]();{let n=ce(e,r[0]);if(n)return r[1].apply(null,n)}}};"DataTransfer"in window||(window.DataTransfer=class{constructor(){this.effectAllowed="none",this.dropEffect="none",this.files=[],this.types=[],this.cache={}}getData(e){return this.cache[e]||""}setData(e,t){return this.cache[e]=t,null}clearData(){return this.cache={},null}});var Wr=e=>new Proxy(e,{get:function(t,r){if(r==="event")return e;if(r in t){let n=t[r];return n instanceof Function?()=>t[r]():n}else switch(r){case"clipboardData":return t.clipboardData=new DataTransfer;case"dataTransfer":return t.dataTransfer=new DataTransfer;case"data":return"";case"altKey":return!1;case"charCode":return 0;case"ctrlKey":return!1;case"key":return"";case"keyCode":return 0;case"locale":return"";case"location":return 0;case"metaKey":return!1;case"repeat":return!1;case"shiftKey":return!1;case"which":return 0;case"button":return-1;case"buttons":return 0;case"clientX":return 0;case"clientY":return 0;case"pageX":return 0;case"pageY":return 0;case"screenX":return 0;case"screenY":return 0;case"layerX":return 0;case"layerY":return 0;case"offsetX":return 0;case"offsetY":return 0;case"detail":return 0;case"deltaMode":return-1;case"deltaX":return 0;case"deltaY":return 0;case"deltaZ":return 0;case"animationName":return"";case"pseudoElement":return"";case"elapsedTime":return 0;case"propertyName":return"";default:return}}});y.event=Wr;var wi=(e,t,r,n)=>{for(let i of e)if(A(i[0],t))return new r(i[1]);return new n},xi=(e,t,r,n)=>e.length>=t+1&&t>=0?new r(e[t]):new n,Ei=(e,t)=>r=>{e.current._0!==r&&(e.current=new t(r))},ki=e=>{let t=L(()=>$(e),[]);return t.value,t},bi=e=>{let t=Et();return t.current=e,t},Si=e=>{let t=qe(!1);K(()=>{t.current?e():t.current=!0})},Ai=(e,t,r,n)=>r instanceof e||r instanceof t?n:r._0,qi=(...e)=>{let t=Array.from(e);return Array.isArray(t[0])&&t.length===1?t[0]:t},Oi=e=>t=>t[e],Wt=e=>e,Ti=e=>t=>({[P]:e,...t}),Ht=class extends B{async componentDidMount(){let t=await this.props.x();this.setState({x:t})}render(){return this.state.x?I(this.state.x,this.props.p,this.props.c):null}},Pi=e=>async()=>Gr(e),Gr=async e=>(await import(e)).default;var Yr=$({}),Gt=$({}),Ci=e=>Gt.value=e,Ii=e=>(Yr.value[Gt.value]||{})[e]||"";var Kt=_t(zt()),ji=(e,t)=>(r,n)=>{let i=()=>{e.has(r)&&(e.delete(r),Ne(t))};K(()=>i,[]),K(()=>{let o=n();if(o===null)i();else{let a=e.get(r);A(a,o)||(e.set(r,o),Ne(t))}})},Hi=e=>Array.from(e.values()),Wi=()=>L(Kt.default,[]);function fe(e,t=1,r={}){let{indent:n=" ",includeEmptyLines:i=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(t===0)return e;let o=i?/^/gm:/^(?!\s*$)/gm;return e.replace(o,n.repeat(t))}var M=e=>{let t=JSON.stringify(e,"",2);return typeof t>"u"&&(t="undefined"),fe(t)},N=class{constructor(t,r=[]){this.message=t,this.object=null,this.path=r}push(t){this.path.unshift(t)}toString(){let t=this.message.trim(),r=this.path.reduce((n,i)=>{if(n.length)switch(i.type){case"FIELD":return`${n}.${i.value}`;case"ARRAY":return`${n}[${i.value}]`}else switch(i.type){case"FIELD":return i.value;case"ARRAY":return"[$(item.value)]"}},"");return r.length&&this.object?t+` `+zr.trim().replace("{value}",M(this.object)).replace("{path}",r):t}},zr=` The input is in this object: diff --git a/src/assets/runtime_test.js b/src/assets/runtime_test.js index d9788edd..02723f8f 100644 --- a/src/assets/runtime_test.js +++ b/src/assets/runtime_test.js @@ -3,7 +3,7 @@ var Or=Object.create;var _t=Object.defineProperty;var Tr=Object.getOwnPropertyDe Expecting `+ge.join(", ")+", got '"+(this.terminals_[A]||A)+"'":Be="Parse error on line "+(w+1)+": Unexpected "+(A==ie?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Be,{text:x.match,token:this.terminals_[A]||A,line:x.yylineno,loc:Ve,expected:ge})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+A);switch(O[0]){case 1:_.push(A),p.push(x.yytext),d.push(x.yylloc),_.push(O[1]),A=null,Fe?(A=Fe,Fe=null):(T=x.yyleng,v=x.yytext,w=x.yylineno,Ve=x.yylloc,W>0&&W--);break;case 2:if(L=this.productions_[O[1]][1],Z.$=p[p.length-L],Z._$={first_line:d[d.length-(L||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(L||1)].first_column,last_column:d[d.length-1].last_column},Ar&&(Z._$.range=[d[d.length-(L||1)].range[0],d[d.length-1].range[1]]),je=this.performAction.apply(Z,[v,T,w,E.yy,O[1],p,d].concat(X)),typeof je<"u")return je;L&&(_=_.slice(0,-1*L*2),p=p.slice(0,-1*L),d=d.slice(0,-1*L)),_.push(this.productions_[O[1]][0]),p.push(Z.$),d.push(Z._$),ht=m[_[_.length-2]][_[_.length-1]],_.push(ht);break;case 3:return!0}}return!0}},c=function(){var f={EOF:1,parseError:function(s,_){if(this.yy.parser)this.yy.parser.parseError(s,_);else throw new Error(s)},setInput:function(u,s){return this.yy=s||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var s=u.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var s=u.length,_=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_.length-1&&(this.yylineno-=_.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:_?(_.length===h.length?this.yylloc.first_column:0)+h[h.length-_.length].length-_[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),s=new Array(u.length+1).join("-");return u+this.upcomingInput()+` `+s+"^"},test_match:function(u,s){var _,h,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),h=u[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],_=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_)return _;if(this._backtrack){for(var d in p)this[d]=p[d];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,s,_,h;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),d=0;ds[0].length)){if(s=_,h=d,this.options.backtrack_lexer){if(u=this.test_match(_,p[d]),u!==!1)return u;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(u=this.test_match(s,p[h]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(s,_,h,p){var d=p;switch(h){case 0:return"(";case 1:return")";case 2:return"SPLAT";case 3:return"PARAM";case 4:return"LITERAL";case 5:return"LITERAL";case 6:return"EOF"}},rules:[/^(?:\()/,/^(?:\))/,/^(?:\*+\w+)/,/^(?::+\w+)/,/^(?:[\w%\-~\n]+)/,/^(?:.)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6],inclusive:!0}}};return f}();a.lexer=c;function l(){this.yy={}}return l.prototype=a,a.Parser=l,new l}();typeof we<"u"&&typeof pe<"u"&&(pe.parser=Le,pe.Parser=Le.Parser,pe.parse=function(){return Le.parse.apply(Le,arguments)})});var lt=C((Co,cr)=>{"use strict";function ne(e){return function(t,r){return{displayName:e,props:t,children:r||[]}}}cr.exports={Root:ne("Root"),Concat:ne("Concat"),Literal:ne("Literal"),Splat:ne("Splat"),Param:ne("Param"),Optional:ne("Optional")}});var _r=C((Io,hr)=>{"use strict";var fr=lr().parser;fr.yy=lt();hr.exports=fr});var ct=C(($o,pr)=>{"use strict";var Rn=Object.keys(lt());function Cn(e){return Rn.forEach(function(t){if(typeof e[t]>"u")throw new Error("No handler defined for "+t.displayName)}),{visit:function(t,r){return this.handlers[t.displayName].call(this,t,r)},handlers:e}}pr.exports=Cn});var vr=C((Do,yr)=>{"use strict";var In=ct(),$n=/[\-{}\[\]+?.,\\\^$|#\s]/g;function dr(e){this.captures=e.captures,this.re=e.re}dr.prototype.match=function(e){var t=this.re.exec(e),r={};return t?(this.captures.forEach(function(n,i){typeof t[i+1]>"u"?r[n]=void 0:r[n]=decodeURIComponent(t[i+1])}),r):!1};var Dn=In({Concat:function(e){return e.children.reduce(function(t,r){var n=this.visit(r);return{re:t.re+n.re,captures:t.captures.concat(n.captures)}}.bind(this),{re:"",captures:[]})},Literal:function(e){return{re:e.props.value.replace($n,"\\$&"),captures:[]}},Splat:function(e){return{re:"([^?#]*?)",captures:[e.props.name]}},Param:function(e){return{re:"([^\\/\\?#]+)",captures:[e.props.name]}},Optional:function(e){var t=this.visit(e.children[0]);return{re:"(?:"+t.re+")?",captures:t.captures}},Root:function(e){var t=this.visit(e.children[0]);return new dr({re:new RegExp("^"+t.re+"(?=\\?|#|$)"),captures:t.captures})}});yr.exports=Dn});var gr=C((Lo,mr)=>{"use strict";var Ln=ct(),Mn=Ln({Concat:function(e,t){var r=e.children.map(function(n){return this.visit(n,t)}.bind(this));return r.some(function(n){return n===!1})?!1:r.join("")},Literal:function(e){return decodeURI(e.props.value)},Splat:function(e,t){return typeof t[e.props.name]>"u"?!1:t[e.props.name]},Param:function(e,t){return typeof t[e.props.name]>"u"?!1:t[e.props.name]},Optional:function(e,t){var r=this.visit(e.children[0],t);return r||""},Root:function(e,t){t=t||{};var r=this.visit(e.children[0],t);return r===!1||typeof r>"u"?!1:encodeURI(r)}});mr.exports=Mn});var xr=C((Mo,wr)=>{"use strict";var Un=_r(),Vn=vr(),Fn=gr();function de(e){var t;if(this?t=this:t=Object.create(de.prototype),typeof e>"u")throw new Error("A route spec is required");return t.spec=e,t.ast=Un.parse(e),t}de.prototype=Object.create(null);de.prototype.match=function(e){var t=Vn.visit(this.ast),r=t.match(e);return r!==null?r:!1};de.prototype.reverse=function(e){return Fn.visit(this.ast,e)};wr.exports=de});var kr=C((Uo,Er)=>{"use strict";var jn=xr();Er.exports=jn});var Se,y,wt,Ge,z,dt,xt,He,Ir,oe={},Et=[],$r=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ye=Array.isArray;function V(e,t){for(var r in t)e[r]=t[r];return e}function kt(e){var t=e.parentNode;t&&t.removeChild(e)}function I(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Se.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return Ee(e,a,n,i,null)}function Ee(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++wt,__i:-1,__u:0};return i==null&&y.vnode!=null&&y.vnode(o),o}function St(){return{current:null}}function se(e){return e.children}function F(e,t){this.props=e,this.context=t}function Q(e,t){if(t==null)return e.__?Q(e.__,e.__i+1):null;for(var r;tt&&z.sort(He));ke.__r=0}function At(e,t,r,n,i,o,a,c,l,f,u){var s,_,h,p,d,m=n&&n.__k||Et,v=t.length;for(r.__d=l,Dr(r,t,m),l=r.__d,s=0;s0?Ee(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=e,i.__b=e.__b+1,c=Lr(i,r,a=n+s,u),i.__i=c,o=null,c!==-1&&(u--,(o=r[c])&&(o.__u|=131072)),o==null||o.__v===null?(c==-1&&s--,typeof i.type!="function"&&(i.__u|=65536)):c!==a&&(c===a+1?s++:c>a?u>l-a?s+=c-a:s--:s=c(l!=null&&!(131072&l.__u)?1:0))for(;a>=0||c=0){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(c"u"&&(self.Node=class{});Boolean.prototype[k]=Symbol.prototype[k]=Number.prototype[k]=String.prototype[k]=function(e){return this.valueOf()===e};Date.prototype[k]=function(e){return+this==+e};Function.prototype[k]=Node.prototype[k]=function(e){return this===e};URLSearchParams.prototype[k]=function(e){return e==null?!1:this.toString()===e.toString()};Set.prototype[k]=function(e){return e==null?!1:b(Array.from(this).sort(),Array.from(e).sort())};Array.prototype[k]=function(e){if(e==null||this.length!==e.length)return!1;if(this.length==0)return!0;for(let t in this)if(!b(this[t],e[t]))return!1;return!0};FormData.prototype[k]=function(e){if(e==null)return!1;let t=Array.from(e.keys()).sort(),r=Array.from(this.keys()).sort();if(b(r,t)){if(r.length==0)return!0;for(let n of r){let i=Array.from(e.getAll(n).sort()),o=Array.from(this.getAll(n).sort());if(!b(o,i))return!1}return!0}else return!1};Map.prototype[k]=function(e){if(e==null)return!1;let t=Array.from(this.keys()).sort(),r=Array.from(e.keys()).sort();if(b(t,r)){if(t.length==0)return!0;for(let n of t)if(!b(this.get(n),e.get(n)))return!1;return!0}else return!1};var be=e=>e!=null&&typeof e=="object"&&"constructor"in e&&"props"in e&&"type"in e&&"ref"in e&&"key"in e&&"__"in e,b=(e,t)=>e===void 0&&t===void 0||e===null&&t===null?!0:e!=null&&e!=null&&e[k]?e[k](t):t!=null&&t!=null&&t[k]?t[k](e):be(e)||be(t)?e===t:Je(e,t),Je=(e,t)=>{if(e instanceof Object&&t instanceof Object){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;let i=new Set(r.concat(n));for(let o of i)if(!b(e[o],t[o]))return!1;return!0}else return e===t};var ae=class{constructor(t,r){this.teardown=r,this.subject=t,this.steps=[]}async run(){let t;try{t=await new Promise(this.next.bind(this))}finally{this.teardown&&this.teardown()}return t}async next(t,r){requestAnimationFrame(async()=>{let n=this.steps.shift();if(n)try{this.subject=await n(this.subject)}catch(i){return r(i)}this.steps.length?this.next(t,r):t(this.subject)})}step(t){return this.steps.push(t),this}},Xe=class{constructor(t,r,n){this.socket=new WebSocket(r),this.suites=t,this.url=r,this.id=n,window.DEBUG={log:o=>{let a="";o===void 0?a="undefined":o===null?a="null":a=o.toString(),this.log(a)}};let i=null;window.onerror=o=>{this.socket.readyState===1?this.crash(o):i=i||o},this.socket.onopen=()=>{i!=null&&this.crash(i)},this.start()}start(){this.socket.readyState===1?this.run():this.socket.addEventListener("open",()=>this.run())}run(){return new Promise((t,r)=>{this.next(t,r)}).catch(t=>this.log(t.reason)).finally(()=>this.socket.send("DONE"))}report(t,r,n,i,o){i&&i.toString&&(i=i.toString()),this.socket.send(JSON.stringify({location:o,result:i,suite:r,id:this.id,type:t,name:n}))}reportTested(t,r,n){this.report(r,this.suite.name,t.name,n,t.location)}crash(t){this.report("CRASHED",null,null,t)}log(t){this.report("LOG",null,null,t)}next(t,r){requestAnimationFrame(async()=>{if(!this.suite||this.suite.tests.length===0)if(this.suite=this.suites.shift(),this.suite)this.report("SUITE",this.suite.name);else return t();let n=this.suite.tests.shift();try{let i=await n.proc.call(this.suite.context);if(window.location.pathname!=="/"&&window.history.replaceState({},"","/"),sessionStorage.clear(),localStorage.clear(),i instanceof ae)try{await i.run(),this.reportTested(n,"SUCCEEDED",i.subject)}catch(o){this.reportTested(n,"FAILED",o)}else i?this.reportTested(n,"SUCCEEDED"):this.reportTested(n,"FAILED")}catch(i){this.reportTested(n,"ERRORED",i)}this.next(t,r)})}},ni=(e,t,r)=>new ae(e).step(n=>{let i=b(n,t);if(r==="=="&&(i=!i),i)throw`Assertion failed: ${t} ${r} ${n}`;return!0}),ii=ae,oi=Xe;var Oe,q,Ze,Tt,Qe=0,Dt=[],Ae=[],Pt=y.__b,Nt=y.__r,Rt=y.diffed,Ct=y.__c,It=y.unmount;function Lt(e,t){y.__h&&y.__h(q,e,Qe||t),Qe=0;var r=q.__H||(q.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Ae}),r.__[e]}function K(e,t){var r=Lt(Oe++,3);!y.__s&&Mt(r.__H,t)&&(r.__=e,r.i=t,q.__H.__h.push(r))}function Te(e){return Qe=5,M(function(){return{current:e}},[])}function M(e,t){var r=Lt(Oe++,7);return Mt(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function Vr(){for(var e;e=Dt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(qe),e.__H.__h.forEach(et),e.__H.__h=[]}catch(t){e.__H.__h=[],y.__e(t,e.__v)}}y.__b=function(e){q=null,Pt&&Pt(e)},y.__r=function(e){Nt&&Nt(e),Oe=0;var t=(q=e.__c).__H;t&&(Ze===q?(t.__h=[],q.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Ae,r.__N=r.i=void 0})):(t.__h.forEach(qe),t.__h.forEach(et),t.__h=[],Oe=0)),Ze=q},y.diffed=function(e){Rt&&Rt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Dt.push(t)!==1&&Tt===y.requestAnimationFrame||((Tt=y.requestAnimationFrame)||Fr)(Vr)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Ae&&(r.__=r.__V),r.i=void 0,r.__V=Ae})),Ze=q=null},y.__c=function(e,t){t.some(function(r){try{r.__h.forEach(qe),r.__h=r.__h.filter(function(n){return!n.__||et(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],y.__e(n,r.__v)}}),Ct&&Ct(e,t)},y.unmount=function(e){It&&It(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{qe(n)}catch(i){t=i}}),r.__H=void 0,t&&y.__e(t,r.__v))};var $t=typeof requestAnimationFrame=="function";function Fr(e){var t,r=function(){clearTimeout(n),$t&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);$t&&(t=requestAnimationFrame(r))}function qe(e){var t=q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),q=t}function et(e){var t=q;e.__c=e.__(),q=t}function Mt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ne(){throw new Error("Cycle detected")}var jr=Symbol.for("preact-signals");function Re(){if(j>1)j--;else{for(var e,t=!1;ue!==void 0;){var r=ue;for(ue=void 0,rt++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Ft(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(rt=0,j--,t)throw e}}function Ut(e){if(j>0)return e();j++;try{return e()}finally{Re()}}var g=void 0,tt=0;function Ce(e){if(tt>0)return e();var t=g;g=void 0,tt++;try{return e()}finally{tt--,g=t}}var ue=void 0,j=0,rt=0,Pe=0;function Vt(e){if(g!==void 0){var t=e.n;if(t===void 0||t.t!==g)return t={i:0,S:e,p:g.s,n:void 0,t:g,e:void 0,x:void 0,r:t},g.s!==void 0&&(g.s.n=t),g.s=t,e.n=t,32&g.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=g.s,t.n=void 0,g.s.n=t,g.s=t),t}}function S(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}S.prototype.brand=jr;S.prototype.h=function(){return!0};S.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};S.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};S.prototype.subscribe=function(e){var t=this;return ce(function(){var r=t.value,n=32&this.f;this.f&=-33;try{e(r)}finally{this.f|=n}})};S.prototype.valueOf=function(){return this.value};S.prototype.toString=function(){return this.value+""};S.prototype.toJSON=function(){return this.value};S.prototype.peek=function(){return this.v};Object.defineProperty(S.prototype,"value",{get:function(){var e=Vt(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(g instanceof B&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){rt>100&&Ne(),this.v=e,this.i++,Pe++,j++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Re()}}}});function $(e){return new S(e)}function Ft(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function jt(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Bt(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function B(e){S.call(this,void 0),this.x=e,this.s=void 0,this.g=Pe-1,this.f=4}(B.prototype=new S).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Pe))return!0;if(this.g=Pe,this.f|=1,this.i>0&&!Ft(this))return this.f&=-2,!0;var e=g;try{jt(this),g=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return g=e,Bt(this),this.f&=-2,!0};B.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}S.prototype.S.call(this,e)};B.prototype.U=function(e){if(this.t!==void 0&&(S.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};B.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};B.prototype.peek=function(){if(this.h()||Ne(),16&this.f)throw this.v;return this.v};Object.defineProperty(B.prototype,"value",{get:function(){1&this.f&&Ne();var e=Vt(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function nt(e){return new B(e)}function Ht(e){var t=e.u;if(e.u=void 0,typeof t=="function"){j++;var r=g;g=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,it(e),n}finally{g=r,Re()}}}function it(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ht(e)}function Br(e){if(g!==this)throw new Error("Out-of-order effect");Bt(this),g=e,this.f&=-2,8&this.f&&it(this),Re()}function le(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}le.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};le.prototype.S=function(){1&this.f&&Ne(),this.f|=1,this.f&=-9,Ht(this),jt(this),j++;var e=g;return g=this,Br.bind(this,e)};le.prototype.N=function(){2&this.f||(this.f|=2,this.o=ue,ue=this)};le.prototype.d=function(){this.f|=8,1&this.f||it(this)};function ce(e){var t=new le(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}var st,ot;function te(e,t){y[e]=t.bind(null,y[e]||function(){})}function Ie(e){ot&&ot(),ot=e&&e.S()}function Wt(e){var t=this,r=e.data,n=Wr(r);n.value=r;var i=M(function(){for(var o=t.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return t.__$u.c=function(){var a;!Ge(i.peek())&&((a=t.base)==null?void 0:a.nodeType)===3?t.base.data=i.peek():(t.__$f|=1,t.setState({}))},nt(function(){var a=n.value.value;return a===0?0:a===!0?"":a||""})},[]);return i.value}Wt.displayName="_st";Object.defineProperties(S.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Wt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});te("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof S&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});te("__r",function(e,t){Ie();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return ce(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),st=n,Ie(r),e(t)});te("__e",function(e,t,r,n){Ie(),st=void 0,e(t,r,n)});te("diffed",function(e,t){Ie(),st=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var c=o[a];c!==void 0&&!(a in n)&&(c.d(),o[a]=void 0)}else r.U=o={};for(var l in n){var f=o[l],u=n[l];f===void 0?(f=Hr(r,l,u,i),o[l]=f):f.o(u,i)}}}e(t)});function Hr(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=$(r);return{o:function(a,c){o.value=a,n=c},d:ce(function(){var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}te("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)});te("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});F.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u;if(!(r&&r.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var n in t)return!0;for(var i in e)if(i!=="__source"&&e[i]!==this.props[i])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};function Wr(e){return M(function(){return $(e)},[])}var $e=class{constructor(t,r){this.pattern=r,this.variant=t}},yi=(e,t)=>new $e(e,t),Gr=Symbol("Variable"),at=Symbol("Spread"),fe=(e,t,r=[])=>{if(t!==null){if(t===Gr)r.push(e);else if(Array.isArray(t))if(t.some(i=>i===at)&&e.length>=t.length-1){let i=0,o=[],a=1;for(;t[i]!==at&&i{for(let r of t){if(r[0]===null)return r[1]();{let n=fe(e,r[0]);if(n)return r[1].apply(null,n)}}};"DataTransfer"in window||(window.DataTransfer=class{constructor(){this.effectAllowed="none",this.dropEffect="none",this.files=[],this.types=[],this.cache={}}getData(e){return this.cache[e]||""}setData(e,t){return this.cache[e]=t,null}clearData(){return this.cache={},null}});var Yr=e=>new Proxy(e,{get:function(t,r){if(r==="event")return e;if(r in t){let n=t[r];return n instanceof Function?()=>t[r]():n}else switch(r){case"clipboardData":return t.clipboardData=new DataTransfer;case"dataTransfer":return t.dataTransfer=new DataTransfer;case"data":return"";case"altKey":return!1;case"charCode":return-1;case"ctrlKey":return!1;case"key":return"";case"keyCode":return-1;case"locale":return"";case"location":return-1;case"metaKey":return!1;case"repeat":return!1;case"shiftKey":return!1;case"which":return-1;case"button":return-1;case"buttons":return-1;case"clientX":return-1;case"clientY":return-1;case"pageX":return-1;case"pageY":return-1;case"screenX":return-1;case"screenY":return-1;case"layerX":return-1;case"layerY":return-1;case"offsetX":return-1;case"offsetY":return-1;case"detail":return-1;case"deltaMode":return-1;case"deltaX":return-1;case"deltaY":return-1;case"deltaZ":return-1;case"animationName":return"";case"pseudoElement":return"";case"elapsedTime":return-1;case"propertyName":return"";default:return}}});y.event=Yr;var qi=(e,t,r,n)=>{for(let i of e)if(b(i[0],t))return new r(i[1]);return new n},Oi=(e,t,r,n)=>e.length>=t+1&&t>=0?new r(e[t]):new n,Ti=(e,t)=>r=>{e.current._0!==r&&(e.current=new t(r))},Pi=e=>{let t=M(()=>$(e),[]);return t.value,t},Ni=e=>{let t=St();return t.current=e,t},Ri=e=>{let t=Te(!1);K(()=>{t.current?e():t.current=!0})},Ci=(e,t,r,n)=>r instanceof e||r instanceof t?n:r._0,Ii=(...e)=>{let t=Array.from(e);return Array.isArray(t[0])&&t.length===1?t[0]:t},$i=e=>t=>t[e],Yt=e=>e,Di=e=>t=>({[P]:e,...t}),Gt=class extends F{async componentDidMount(){let t=await this.props.x();this.setState({x:t})}render(){return this.state.x?I(this.state.x,this.props.p,this.props.c):null}},Li=e=>async()=>zr(e),zr=async e=>(await import(e)).default;var Kr=$({}),zt=$({}),Vi=e=>zt.value=e,Fi=e=>(Kr.value[zt.value]||{})[e]||"";var Xt=pt(Jt()),Ji=(e,t)=>(r,n)=>{let i=()=>{e.has(r)&&(e.delete(r),Ce(t))};K(()=>i,[]),K(()=>{let o=n();if(o===null)i();else{let a=e.get(r);b(a,o)||(e.set(r,o),Ce(t))}})},Xi=e=>Array.from(e.values()),Zi=()=>M(Xt.default,[]);function he(e,t=1,r={}){let{indent:n=" ",includeEmptyLines:i=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(t===0)return e;let o=i?/^/gm:/^(?!\s*$)/gm;return e.replace(o,n.repeat(t))}var D=e=>{let t=JSON.stringify(e,"",2);return typeof t>"u"&&(t="undefined"),he(t)},N=class{constructor(t,r=[]){this.message=t,this.object=null,this.path=r}push(t){this.path.unshift(t)}toString(){let t=this.message.trim(),r=this.path.reduce((n,i)=>{if(n.length)switch(i.type){case"FIELD":return`${n}.${i.value}`;case"ARRAY":return`${n}[${i.value}]`}else switch(i.type){case"FIELD":return i.value;case"ARRAY":return"[$(item.value)]"}},"");return r.length&&this.object?t+` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(s,_,h,p){var d=p;switch(h){case 0:return"(";case 1:return")";case 2:return"SPLAT";case 3:return"PARAM";case 4:return"LITERAL";case 5:return"LITERAL";case 6:return"EOF"}},rules:[/^(?:\()/,/^(?:\))/,/^(?:\*+\w+)/,/^(?::+\w+)/,/^(?:[\w%\-~\n]+)/,/^(?:.)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6],inclusive:!0}}};return f}();a.lexer=c;function l(){this.yy={}}return l.prototype=a,a.Parser=l,new l}();typeof we<"u"&&typeof pe<"u"&&(pe.parser=Le,pe.Parser=Le.Parser,pe.parse=function(){return Le.parse.apply(Le,arguments)})});var lt=C((Co,cr)=>{"use strict";function ne(e){return function(t,r){return{displayName:e,props:t,children:r||[]}}}cr.exports={Root:ne("Root"),Concat:ne("Concat"),Literal:ne("Literal"),Splat:ne("Splat"),Param:ne("Param"),Optional:ne("Optional")}});var _r=C((Io,hr)=>{"use strict";var fr=lr().parser;fr.yy=lt();hr.exports=fr});var ct=C(($o,pr)=>{"use strict";var Rn=Object.keys(lt());function Cn(e){return Rn.forEach(function(t){if(typeof e[t]>"u")throw new Error("No handler defined for "+t.displayName)}),{visit:function(t,r){return this.handlers[t.displayName].call(this,t,r)},handlers:e}}pr.exports=Cn});var vr=C((Do,yr)=>{"use strict";var In=ct(),$n=/[\-{}\[\]+?.,\\\^$|#\s]/g;function dr(e){this.captures=e.captures,this.re=e.re}dr.prototype.match=function(e){var t=this.re.exec(e),r={};return t?(this.captures.forEach(function(n,i){typeof t[i+1]>"u"?r[n]=void 0:r[n]=decodeURIComponent(t[i+1])}),r):!1};var Dn=In({Concat:function(e){return e.children.reduce(function(t,r){var n=this.visit(r);return{re:t.re+n.re,captures:t.captures.concat(n.captures)}}.bind(this),{re:"",captures:[]})},Literal:function(e){return{re:e.props.value.replace($n,"\\$&"),captures:[]}},Splat:function(e){return{re:"([^?#]*?)",captures:[e.props.name]}},Param:function(e){return{re:"([^\\/\\?#]+)",captures:[e.props.name]}},Optional:function(e){var t=this.visit(e.children[0]);return{re:"(?:"+t.re+")?",captures:t.captures}},Root:function(e){var t=this.visit(e.children[0]);return new dr({re:new RegExp("^"+t.re+"(?=\\?|#|$)"),captures:t.captures})}});yr.exports=Dn});var gr=C((Lo,mr)=>{"use strict";var Ln=ct(),Mn=Ln({Concat:function(e,t){var r=e.children.map(function(n){return this.visit(n,t)}.bind(this));return r.some(function(n){return n===!1})?!1:r.join("")},Literal:function(e){return decodeURI(e.props.value)},Splat:function(e,t){return typeof t[e.props.name]>"u"?!1:t[e.props.name]},Param:function(e,t){return typeof t[e.props.name]>"u"?!1:t[e.props.name]},Optional:function(e,t){var r=this.visit(e.children[0],t);return r||""},Root:function(e,t){t=t||{};var r=this.visit(e.children[0],t);return r===!1||typeof r>"u"?!1:encodeURI(r)}});mr.exports=Mn});var xr=C((Mo,wr)=>{"use strict";var Un=_r(),Vn=vr(),Fn=gr();function de(e){var t;if(this?t=this:t=Object.create(de.prototype),typeof e>"u")throw new Error("A route spec is required");return t.spec=e,t.ast=Un.parse(e),t}de.prototype=Object.create(null);de.prototype.match=function(e){var t=Vn.visit(this.ast),r=t.match(e);return r!==null?r:!1};de.prototype.reverse=function(e){return Fn.visit(this.ast,e)};wr.exports=de});var kr=C((Uo,Er)=>{"use strict";var jn=xr();Er.exports=jn});var Se,y,wt,Ge,z,dt,xt,He,Ir,oe={},Et=[],$r=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ye=Array.isArray;function V(e,t){for(var r in t)e[r]=t[r];return e}function kt(e){var t=e.parentNode;t&&t.removeChild(e)}function I(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Se.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return Ee(e,a,n,i,null)}function Ee(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++wt,__i:-1,__u:0};return i==null&&y.vnode!=null&&y.vnode(o),o}function St(){return{current:null}}function se(e){return e.children}function F(e,t){this.props=e,this.context=t}function Q(e,t){if(t==null)return e.__?Q(e.__,e.__i+1):null;for(var r;tt&&z.sort(He));ke.__r=0}function At(e,t,r,n,i,o,a,c,l,f,u){var s,_,h,p,d,m=n&&n.__k||Et,v=t.length;for(r.__d=l,Dr(r,t,m),l=r.__d,s=0;s0?Ee(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=e,i.__b=e.__b+1,c=Lr(i,r,a=n+s,u),i.__i=c,o=null,c!==-1&&(u--,(o=r[c])&&(o.__u|=131072)),o==null||o.__v===null?(c==-1&&s--,typeof i.type!="function"&&(i.__u|=65536)):c!==a&&(c===a+1?s++:c>a?u>l-a?s+=c-a:s--:s=c(l!=null&&!(131072&l.__u)?1:0))for(;a>=0||c=0){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(c"u"&&(self.Node=class{});Boolean.prototype[k]=Symbol.prototype[k]=Number.prototype[k]=String.prototype[k]=function(e){return this.valueOf()===e};Date.prototype[k]=function(e){return+this==+e};Function.prototype[k]=Node.prototype[k]=function(e){return this===e};URLSearchParams.prototype[k]=function(e){return e==null?!1:this.toString()===e.toString()};Set.prototype[k]=function(e){return e==null?!1:b(Array.from(this).sort(),Array.from(e).sort())};Array.prototype[k]=function(e){if(e==null||this.length!==e.length)return!1;if(this.length==0)return!0;for(let t in this)if(!b(this[t],e[t]))return!1;return!0};FormData.prototype[k]=function(e){if(e==null)return!1;let t=Array.from(e.keys()).sort(),r=Array.from(this.keys()).sort();if(b(r,t)){if(r.length==0)return!0;for(let n of r){let i=Array.from(e.getAll(n).sort()),o=Array.from(this.getAll(n).sort());if(!b(o,i))return!1}return!0}else return!1};Map.prototype[k]=function(e){if(e==null)return!1;let t=Array.from(this.keys()).sort(),r=Array.from(e.keys()).sort();if(b(t,r)){if(t.length==0)return!0;for(let n of t)if(!b(this.get(n),e.get(n)))return!1;return!0}else return!1};var be=e=>e!=null&&typeof e=="object"&&"constructor"in e&&"props"in e&&"type"in e&&"ref"in e&&"key"in e&&"__"in e,b=(e,t)=>e===void 0&&t===void 0||e===null&&t===null?!0:e!=null&&e!=null&&e[k]?e[k](t):t!=null&&t!=null&&t[k]?t[k](e):be(e)||be(t)?e===t:Je(e,t),Je=(e,t)=>{if(e instanceof Object&&t instanceof Object){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;let i=new Set(r.concat(n));for(let o of i)if(!b(e[o],t[o]))return!1;return!0}else return e===t};var ae=class{constructor(t,r){this.teardown=r,this.subject=t,this.steps=[]}async run(){let t;try{t=await new Promise(this.next.bind(this))}finally{this.teardown&&this.teardown()}return t}async next(t,r){requestAnimationFrame(async()=>{let n=this.steps.shift();if(n)try{this.subject=await n(this.subject)}catch(i){return r(i)}this.steps.length?this.next(t,r):t(this.subject)})}step(t){return this.steps.push(t),this}},Xe=class{constructor(t,r,n){this.socket=new WebSocket(r),this.suites=t,this.url=r,this.id=n,window.DEBUG={log:o=>{let a="";o===void 0?a="undefined":o===null?a="null":a=o.toString(),this.log(a)}};let i=null;window.onerror=o=>{this.socket.readyState===1?this.crash(o):i=i||o},this.socket.onopen=()=>{i!=null&&this.crash(i)},this.start()}start(){this.socket.readyState===1?this.run():this.socket.addEventListener("open",()=>this.run())}run(){return new Promise((t,r)=>{this.next(t,r)}).catch(t=>this.log(t.reason)).finally(()=>this.socket.send("DONE"))}report(t,r,n,i,o){i&&i.toString&&(i=i.toString()),this.socket.send(JSON.stringify({location:o,result:i,suite:r,id:this.id,type:t,name:n}))}reportTested(t,r,n){this.report(r,this.suite.name,t.name,n,t.location)}crash(t){this.report("CRASHED",null,null,t)}log(t){this.report("LOG",null,null,t)}next(t,r){requestAnimationFrame(async()=>{if(!this.suite||this.suite.tests.length===0)if(this.suite=this.suites.shift(),this.suite)this.report("SUITE",this.suite.name);else return t();let n=this.suite.tests.shift();try{let i=await n.proc.call(this.suite.context);if(window.location.pathname!=="/"&&window.history.replaceState({},"","/"),sessionStorage.clear(),localStorage.clear(),i instanceof ae)try{await i.run(),this.reportTested(n,"SUCCEEDED",i.subject)}catch(o){this.reportTested(n,"FAILED",o)}else i?this.reportTested(n,"SUCCEEDED"):this.reportTested(n,"FAILED")}catch(i){this.reportTested(n,"ERRORED",i)}this.next(t,r)})}},ni=(e,t,r)=>new ae(e).step(n=>{let i=b(n,t);if(r==="=="&&(i=!i),i)throw`Assertion failed: ${t} ${r} ${n}`;return!0}),ii=ae,oi=Xe;var Oe,q,Ze,Tt,Qe=0,Dt=[],Ae=[],Pt=y.__b,Nt=y.__r,Rt=y.diffed,Ct=y.__c,It=y.unmount;function Lt(e,t){y.__h&&y.__h(q,e,Qe||t),Qe=0;var r=q.__H||(q.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Ae}),r.__[e]}function K(e,t){var r=Lt(Oe++,3);!y.__s&&Mt(r.__H,t)&&(r.__=e,r.i=t,q.__H.__h.push(r))}function Te(e){return Qe=5,M(function(){return{current:e}},[])}function M(e,t){var r=Lt(Oe++,7);return Mt(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function Vr(){for(var e;e=Dt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(qe),e.__H.__h.forEach(et),e.__H.__h=[]}catch(t){e.__H.__h=[],y.__e(t,e.__v)}}y.__b=function(e){q=null,Pt&&Pt(e)},y.__r=function(e){Nt&&Nt(e),Oe=0;var t=(q=e.__c).__H;t&&(Ze===q?(t.__h=[],q.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Ae,r.__N=r.i=void 0})):(t.__h.forEach(qe),t.__h.forEach(et),t.__h=[],Oe=0)),Ze=q},y.diffed=function(e){Rt&&Rt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Dt.push(t)!==1&&Tt===y.requestAnimationFrame||((Tt=y.requestAnimationFrame)||Fr)(Vr)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Ae&&(r.__=r.__V),r.i=void 0,r.__V=Ae})),Ze=q=null},y.__c=function(e,t){t.some(function(r){try{r.__h.forEach(qe),r.__h=r.__h.filter(function(n){return!n.__||et(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],y.__e(n,r.__v)}}),Ct&&Ct(e,t)},y.unmount=function(e){It&&It(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{qe(n)}catch(i){t=i}}),r.__H=void 0,t&&y.__e(t,r.__v))};var $t=typeof requestAnimationFrame=="function";function Fr(e){var t,r=function(){clearTimeout(n),$t&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);$t&&(t=requestAnimationFrame(r))}function qe(e){var t=q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),q=t}function et(e){var t=q;e.__c=e.__(),q=t}function Mt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ne(){throw new Error("Cycle detected")}var jr=Symbol.for("preact-signals");function Re(){if(j>1)j--;else{for(var e,t=!1;ue!==void 0;){var r=ue;for(ue=void 0,rt++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Ft(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(rt=0,j--,t)throw e}}function Ut(e){if(j>0)return e();j++;try{return e()}finally{Re()}}var g=void 0,tt=0;function Ce(e){if(tt>0)return e();var t=g;g=void 0,tt++;try{return e()}finally{tt--,g=t}}var ue=void 0,j=0,rt=0,Pe=0;function Vt(e){if(g!==void 0){var t=e.n;if(t===void 0||t.t!==g)return t={i:0,S:e,p:g.s,n:void 0,t:g,e:void 0,x:void 0,r:t},g.s!==void 0&&(g.s.n=t),g.s=t,e.n=t,32&g.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=g.s,t.n=void 0,g.s.n=t,g.s=t),t}}function S(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}S.prototype.brand=jr;S.prototype.h=function(){return!0};S.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};S.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};S.prototype.subscribe=function(e){var t=this;return ce(function(){var r=t.value,n=32&this.f;this.f&=-33;try{e(r)}finally{this.f|=n}})};S.prototype.valueOf=function(){return this.value};S.prototype.toString=function(){return this.value+""};S.prototype.toJSON=function(){return this.value};S.prototype.peek=function(){return this.v};Object.defineProperty(S.prototype,"value",{get:function(){var e=Vt(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(g instanceof B&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){rt>100&&Ne(),this.v=e,this.i++,Pe++,j++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Re()}}}});function $(e){return new S(e)}function Ft(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function jt(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Bt(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function B(e){S.call(this,void 0),this.x=e,this.s=void 0,this.g=Pe-1,this.f=4}(B.prototype=new S).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Pe))return!0;if(this.g=Pe,this.f|=1,this.i>0&&!Ft(this))return this.f&=-2,!0;var e=g;try{jt(this),g=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return g=e,Bt(this),this.f&=-2,!0};B.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}S.prototype.S.call(this,e)};B.prototype.U=function(e){if(this.t!==void 0&&(S.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};B.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};B.prototype.peek=function(){if(this.h()||Ne(),16&this.f)throw this.v;return this.v};Object.defineProperty(B.prototype,"value",{get:function(){1&this.f&&Ne();var e=Vt(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function nt(e){return new B(e)}function Ht(e){var t=e.u;if(e.u=void 0,typeof t=="function"){j++;var r=g;g=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,it(e),n}finally{g=r,Re()}}}function it(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ht(e)}function Br(e){if(g!==this)throw new Error("Out-of-order effect");Bt(this),g=e,this.f&=-2,8&this.f&&it(this),Re()}function le(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}le.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};le.prototype.S=function(){1&this.f&&Ne(),this.f|=1,this.f&=-9,Ht(this),jt(this),j++;var e=g;return g=this,Br.bind(this,e)};le.prototype.N=function(){2&this.f||(this.f|=2,this.o=ue,ue=this)};le.prototype.d=function(){this.f|=8,1&this.f||it(this)};function ce(e){var t=new le(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}var st,ot;function te(e,t){y[e]=t.bind(null,y[e]||function(){})}function Ie(e){ot&&ot(),ot=e&&e.S()}function Wt(e){var t=this,r=e.data,n=Wr(r);n.value=r;var i=M(function(){for(var o=t.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return t.__$u.c=function(){var a;!Ge(i.peek())&&((a=t.base)==null?void 0:a.nodeType)===3?t.base.data=i.peek():(t.__$f|=1,t.setState({}))},nt(function(){var a=n.value.value;return a===0?0:a===!0?"":a||""})},[]);return i.value}Wt.displayName="_st";Object.defineProperties(S.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Wt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});te("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof S&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});te("__r",function(e,t){Ie();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return ce(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),st=n,Ie(r),e(t)});te("__e",function(e,t,r,n){Ie(),st=void 0,e(t,r,n)});te("diffed",function(e,t){Ie(),st=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var c=o[a];c!==void 0&&!(a in n)&&(c.d(),o[a]=void 0)}else r.U=o={};for(var l in n){var f=o[l],u=n[l];f===void 0?(f=Hr(r,l,u,i),o[l]=f):f.o(u,i)}}}e(t)});function Hr(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=$(r);return{o:function(a,c){o.value=a,n=c},d:ce(function(){var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}te("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)});te("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});F.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u;if(!(r&&r.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var n in t)return!0;for(var i in e)if(i!=="__source"&&e[i]!==this.props[i])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};function Wr(e){return M(function(){return $(e)},[])}var $e=class{constructor(t,r){this.pattern=r,this.variant=t}},yi=(e,t)=>new $e(e,t),Gr=Symbol("Variable"),at=Symbol("Spread"),fe=(e,t,r=[])=>{if(t!==null){if(t===Gr)r.push(e);else if(Array.isArray(t))if(t.some(i=>i===at)&&e.length>=t.length-1){let i=0,o=[],a=1;for(;t[i]!==at&&i{for(let r of t){if(r[0]===null)return r[1]();{let n=fe(e,r[0]);if(n)return r[1].apply(null,n)}}};"DataTransfer"in window||(window.DataTransfer=class{constructor(){this.effectAllowed="none",this.dropEffect="none",this.files=[],this.types=[],this.cache={}}getData(e){return this.cache[e]||""}setData(e,t){return this.cache[e]=t,null}clearData(){return this.cache={},null}});var Yr=e=>new Proxy(e,{get:function(t,r){if(r==="event")return e;if(r in t){let n=t[r];return n instanceof Function?()=>t[r]():n}else switch(r){case"clipboardData":return t.clipboardData=new DataTransfer;case"dataTransfer":return t.dataTransfer=new DataTransfer;case"data":return"";case"altKey":return!1;case"charCode":return 0;case"ctrlKey":return!1;case"key":return"";case"keyCode":return 0;case"locale":return"";case"location":return 0;case"metaKey":return!1;case"repeat":return!1;case"shiftKey":return!1;case"which":return 0;case"button":return-1;case"buttons":return 0;case"clientX":return 0;case"clientY":return 0;case"pageX":return 0;case"pageY":return 0;case"screenX":return 0;case"screenY":return 0;case"layerX":return 0;case"layerY":return 0;case"offsetX":return 0;case"offsetY":return 0;case"detail":return 0;case"deltaMode":return-1;case"deltaX":return 0;case"deltaY":return 0;case"deltaZ":return 0;case"animationName":return"";case"pseudoElement":return"";case"elapsedTime":return 0;case"propertyName":return"";default:return}}});y.event=Yr;var qi=(e,t,r,n)=>{for(let i of e)if(b(i[0],t))return new r(i[1]);return new n},Oi=(e,t,r,n)=>e.length>=t+1&&t>=0?new r(e[t]):new n,Ti=(e,t)=>r=>{e.current._0!==r&&(e.current=new t(r))},Pi=e=>{let t=M(()=>$(e),[]);return t.value,t},Ni=e=>{let t=St();return t.current=e,t},Ri=e=>{let t=Te(!1);K(()=>{t.current?e():t.current=!0})},Ci=(e,t,r,n)=>r instanceof e||r instanceof t?n:r._0,Ii=(...e)=>{let t=Array.from(e);return Array.isArray(t[0])&&t.length===1?t[0]:t},$i=e=>t=>t[e],Yt=e=>e,Di=e=>t=>({[P]:e,...t}),Gt=class extends F{async componentDidMount(){let t=await this.props.x();this.setState({x:t})}render(){return this.state.x?I(this.state.x,this.props.p,this.props.c):null}},Li=e=>async()=>zr(e),zr=async e=>(await import(e)).default;var Kr=$({}),zt=$({}),Vi=e=>zt.value=e,Fi=e=>(Kr.value[zt.value]||{})[e]||"";var Xt=pt(Jt()),Ji=(e,t)=>(r,n)=>{let i=()=>{e.has(r)&&(e.delete(r),Ce(t))};K(()=>i,[]),K(()=>{let o=n();if(o===null)i();else{let a=e.get(r);b(a,o)||(e.set(r,o),Ce(t))}})},Xi=e=>Array.from(e.values()),Zi=()=>M(Xt.default,[]);function he(e,t=1,r={}){let{indent:n=" ",includeEmptyLines:i=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(t===0)return e;let o=i?/^/gm:/^(?!\s*$)/gm;return e.replace(o,n.repeat(t))}var D=e=>{let t=JSON.stringify(e,"",2);return typeof t>"u"&&(t="undefined"),he(t)},N=class{constructor(t,r=[]){this.message=t,this.object=null,this.path=r}push(t){this.path.unshift(t)}toString(){let t=this.message.trim(),r=this.path.reduce((n,i)=>{if(n.length)switch(i.type){case"FIELD":return`${n}.${i.value}`;case"ARRAY":return`${n}[${i.value}]`}else switch(i.type){case"FIELD":return i.value;case"ARRAY":return"[$(item.value)]"}},"");return r.length&&this.object?t+` `+Jr.trim().replace("{value}",D(this.object)).replace("{path}",r):t}},Jr=` The input is in this object: