/* esm.sh - preact@10.26.7 */
var D,d,X,ue,x,J,Y,Z,ee,O,$,j,te,M={},_e=[],ce=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,L=Array.isArray;function k(t,e){for(var _ in e)t[_]=e[_];return t}function V(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function pe(t,e,_){var o,l,n,i={};for(n in e)n=="key"?o=e[n]:n=="ref"?l=e[n]:i[n]=e[n];if(arguments.length>2&&(i.children=arguments.length>3?D.call(arguments,2):_),typeof t=="function"&&t.defaultProps!=null)for(n in t.defaultProps)i[n]==null&&(i[n]=t.defaultProps[n]);return E(t,i,o,l,null)}function E(t,e,_,o,l){var n={type:t,props:e,key:_,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:l??++X,__i:-1,__u:0};return l==null&&d.vnode!=null&&d.vnode(n),n}function ge(){return{current:null}}function I(t){return t.children}function N(t,e){this.props=t,this.context=e}function C(t,e){if(e==null)return t.__?C(t.__,t.__i+1):null;for(var _;e<t.__k.length;e++)if((_=t.__k[e])!=null&&_.__e!=null)return _.__e;return typeof t.type=="function"?C(t):null}function ne(t){var e,_;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((_=t.__k[e])!=null&&_.__e!=null){t.__e=t.__c.base=_.__e;break}return ne(t)}}function B(t){(!t.__d&&(t.__d=!0)&&x.push(t)&&!H.__r++||J!=d.debounceRendering)&&((J=d.debounceRendering)||Y)(H)}function H(){for(var t,e,_,o,l,n,i,u=1;x.length;)x.length>u&&x.sort(Z),t=x.shift(),u=x.length,t.__d&&(_=void 0,l=(o=(e=t).__v).__e,n=[],i=[],e.__P&&((_=k({},o)).__v=o.__v+1,d.vnode&&d.vnode(_),z(e.__P,_,o,e.__n,e.__P.namespaceURI,32&o.__u?[l]:null,n,l??C(o),!!(32&o.__u),i),_.__v=o.__v,_.__.__k[_.__i]=_,le(n,_,i),_.__e!=l&&ne(_)));H.__r=0}function re(t,e,_,o,l,n,i,u,p,s,f){var r,v,c,y,g,m,a=o&&o.__k||_e,h=e.length;for(p=fe(_,e,a,p,h),r=0;r<h;r++)(c=_.__k[r])!=null&&(v=c.__i==-1?M:a[c.__i]||M,c.__i=r,m=z(t,c,v,l,n,i,u,p,s,f),y=c.__e,c.ref&&v.ref!=c.ref&&(v.ref&&q(v.ref,null,c),f.push(c.ref,c.__c||y,c)),g==null&&y!=null&&(g=y),4&c.__u||v.__k===c.__k?p=oe(c,p,t):typeof c.type=="function"&&m!==void 0?p=m:y&&(p=y.nextSibling),c.__u&=-7);return _.__e=g,p}function fe(t,e,_,o,l){var n,i,u,p,s,f=_.length,r=f,v=0;for(t.__k=new Array(l),n=0;n<l;n++)(i=e[n])!=null&&typeof i!="boolean"&&typeof i!="function"?(p=n+v,(i=t.__k[n]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?E(null,i,null,null,null):L(i)?E(I,{children:i},null,null,null):i.constructor==null&&i.__b>0?E(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=t,i.__b=t.__b+1,u=null,(s=i.__i=he(i,_,p,r))!=-1&&(r--,(u=_[s])&&(u.__u|=2)),u==null||u.__v==null?(s==-1&&(l>f?v--:l<f&&v++),typeof i.type!="function"&&(i.__u|=4)):s!=p&&(s==p-1?v--:s==p+1?v++:(s>p?v--:v++,i.__u|=4))):t.__k[n]=null;if(r)for(n=0;n<f;n++)(u=_[n])!=null&&(2&u.__u)==0&&(u.__e==o&&(o=C(u)),se(u,u));return o}function oe(t,e,_){var o,l;if(typeof t.type=="function"){for(o=t.__k,l=0;o&&l<o.length;l++)o[l]&&(o[l].__=t,e=oe(o[l],e,_));return e}t.__e!=e&&(e&&t.type&&!_.contains(e)&&(e=C(t)),_.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function ae(t,e){return e=e||[],t==null||typeof t=="boolean"||(L(t)?t.some(function(_){ae(_,e)}):e.push(t)),e}function he(t,e,_,o){var l,n,i=t.key,u=t.type,p=e[_];if(p===null&&t.key==null||p&&i==p.key&&u==p.type&&(2&p.__u)==0)return _;if(o>(p!=null&&(2&p.__u)==0?1:0))for(l=_-1,n=_+1;l>=0||n<e.length;){if(l>=0){if((p=e[l])&&(2&p.__u)==0&&i==p.key&&u==p.type)return l;l--}if(n<e.length){if((p=e[n])&&(2&p.__u)==0&&i==p.key&&u==p.type)return n;n++}}return-1}function K(t,e,_){e[0]=="-"?t.setProperty(e,_??""):t[e]=_==null?"":typeof _!="number"||ce.test(e)?_:_+"px"}function F(t,e,_,o,l){var n,i;e:if(e=="style")if(typeof _=="string")t.style.cssText=_;else{if(typeof o=="string"&&(t.style.cssText=o=""),o)for(e in o)_&&e in _||K(t.style,e,"");if(_)for(e in _)o&&_[e]==o[e]||K(t.style,e,_[e])}else if(e[0]=="o"&&e[1]=="n")n=e!=(e=e.replace(ee,"$1")),i=e.toLowerCase(),e=i in t||e=="onFocusOut"||e=="onFocusIn"?i.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+n]=_,_?o?_.u=o.u:(_.u=O,t.addEventListener(e,n?j:$,n)):t.removeEventListener(e,n?j:$,n);else{if(l=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=_??"";break e}catch{}typeof _=="function"||(_==null||_===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&_==1?"":_))}}function Q(t){return function(e){if(this.l){var _=this.l[e.type+t];if(e.t==null)e.t=O++;else if(e.t<_.u)return;return _(d.event?d.event(e):e)}}}function z(t,e,_,o,l,n,i,u,p,s){var f,r,v,c,y,g,m,a,h,P,w,W,S,G,A,U,R,b=e.type;if(e.constructor!=null)return null;128&_.__u&&(p=!!(32&_.__u),n=[u=e.__e=_.__e]),(f=d.__b)&&f(e);e:if(typeof b=="function")try{if(a=e.props,h="prototype"in b&&b.prototype.render,P=(f=b.contextType)&&o[f.__c],w=f?P?P.props.value:f.__:o,_.__c?m=(r=e.__c=_.__c).__=r.__E:(h?e.__c=r=new b(a,w):(e.__c=r=new N(a,w),r.constructor=b,r.render=ve),P&&P.sub(r),r.props=a,r.state||(r.state={}),r.context=w,r.__n=o,v=r.__d=!0,r.__h=[],r._sb=[]),h&&r.__s==null&&(r.__s=r.state),h&&b.getDerivedStateFromProps!=null&&(r.__s==r.state&&(r.__s=k({},r.__s)),k(r.__s,b.getDerivedStateFromProps(a,r.__s))),c=r.props,y=r.state,r.__v=e,v)h&&b.getDerivedStateFromProps==null&&r.componentWillMount!=null&&r.componentWillMount(),h&&r.componentDidMount!=null&&r.__h.push(r.componentDidMount);else{if(h&&b.getDerivedStateFromProps==null&&a!==c&&r.componentWillReceiveProps!=null&&r.componentWillReceiveProps(a,w),!r.__e&&r.shouldComponentUpdate!=null&&r.shouldComponentUpdate(a,r.__s,w)===!1||e.__v==_.__v){for(e.__v!=_.__v&&(r.props=a,r.state=r.__s,r.__d=!1),e.__e=_.__e,e.__k=_.__k,e.__k.some(function(T){T&&(T.__=e)}),W=0;W<r._sb.length;W++)r.__h.push(r._sb[W]);r._sb=[],r.__h.length&&i.push(r);break e}r.componentWillUpdate!=null&&r.componentWillUpdate(a,r.__s,w),h&&r.componentDidUpdate!=null&&r.__h.push(function(){r.componentDidUpdate(c,y,g)})}if(r.context=w,r.props=a,r.__P=t,r.__e=!1,S=d.__r,G=0,h){for(r.state=r.__s,r.__d=!1,S&&S(e),f=r.render(r.props,r.state,r.context),A=0;A<r._sb.length;A++)r.__h.push(r._sb[A]);r._sb=[]}else do r.__d=!1,S&&S(e),f=r.render(r.props,r.state,r.context),r.state=r.__s;while(r.__d&&++G<25);r.state=r.__s,r.getChildContext!=null&&(o=k(k({},o),r.getChildContext())),h&&!v&&r.getSnapshotBeforeUpdate!=null&&(g=r.getSnapshotBeforeUpdate(c,y)),U=f,f!=null&&f.type===I&&f.key==null&&(U=ie(f.props.children)),u=re(t,L(U)?U:[U],e,_,o,l,n,i,u,p,s),r.base=e.__e,e.__u&=-161,r.__h.length&&i.push(r),m&&(r.__E=r.__=null)}catch(T){if(e.__v=null,p||n!=null)if(T.then){for(e.__u|=p?160:128;u&&u.nodeType==8&&u.nextSibling;)u=u.nextSibling;n[n.indexOf(u)]=null,e.__e=u}else for(R=n.length;R--;)V(n[R]);else e.__e=_.__e,e.__k=_.__k;d.__e(T,e,_)}else n==null&&e.__v==_.__v?(e.__k=_.__k,e.__e=_.__e):u=e.__e=de(_.__e,e,_,o,l,n,i,p,s);return(f=d.diffed)&&f(e),128&e.__u?void 0:u}function le(t,e,_){for(var o=0;o<_.length;o++)q(_[o],_[++o],_[++o]);d.__c&&d.__c(e,t),t.some(function(l){try{t=l.__h,l.__h=[],t.some(function(n){n.call(l)})}catch(n){d.__e(n,l.__v)}})}function ie(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:L(t)?t.map(ie):k({},t)}function de(t,e,_,o,l,n,i,u,p){var s,f,r,v,c,y,g,m=_.props,a=e.props,h=e.type;if(h=="svg"?l="http://www.w3.org/2000/svg":h=="math"?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),n!=null){for(s=0;s<n.length;s++)if((c=n[s])&&"setAttribute"in c==!!h&&(h?c.localName==h:c.nodeType==3)){t=c,n[s]=null;break}}if(t==null){if(h==null)return document.createTextNode(a);t=document.createElementNS(l,h,a.is&&a),u&&(d.__m&&d.__m(e,n),u=!1),n=null}if(h==null)m===a||u&&t.data==a||(t.data=a);else{if(n=n&&D.call(t.childNodes),m=_.props||M,!u&&n!=null)for(m={},s=0;s<t.attributes.length;s++)m[(c=t.attributes[s]).name]=c.value;for(s in m)if(c=m[s],s!="children"){if(s=="dangerouslySetInnerHTML")r=c;else if(!(s in a)){if(s=="value"&&"defaultValue"in a||s=="checked"&&"defaultChecked"in a)continue;F(t,s,null,c,l)}}for(s in a)c=a[s],s=="children"?v=c:s=="dangerouslySetInnerHTML"?f=c:s=="value"?y=c:s=="checked"?g=c:u&&typeof c!="function"||m[s]===c||F(t,s,c,m[s],l);if(f)u||r&&(f.__html==r.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(r&&(t.innerHTML=""),re(e.type=="template"?t.content:t,L(v)?v:[v],e,_,o,h=="foreignObject"?"http://www.w3.org/1999/xhtml":l,n,i,n?n[0]:_.__k&&C(_,0),u,p),n!=null)for(s=n.length;s--;)V(n[s]);u||(s="value",h=="progress"&&y==null?t.removeAttribute("value"):y!=null&&(y!==t[s]||h=="progress"&&!y||h=="option"&&y!=m[s])&&F(t,s,y,m[s],l),s="checked",g!=null&&g!=t[s]&&F(t,s,g,m[s],l))}return t}function q(t,e,_){try{if(typeof t=="function"){var o=typeof t.__u=="function";o&&t.__u(),o&&e==null||(t.__u=t(e))}else t.current=e}catch(l){d.__e(l,_)}}function se(t,e,_){var o,l;if(d.unmount&&d.unmount(t),(o=t.ref)&&(o.current&&o.current!=t.__e||q(o,null,e)),(o=t.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(n){d.__e(n,e)}o.base=o.__P=null}if(o=t.__k)for(l=0;l<o.length;l++)o[l]&&se(o[l],e,_||typeof t.type!="function");_||V(t.__e),t.__c=t.__=t.__e=void 0}function ve(t,e,_){return this.constructor(t,_)}function ye(t,e,_){var o,l,n,i;e==document&&(e=document.documentElement),d.__&&d.__(t,e),l=(o=typeof _=="function")?null:_&&_.__k||e.__k,n=[],i=[],z(e,t=(!o&&_||e).__k=pe(I,null,[t]),l||M,M,e.namespaceURI,!o&&_?[_]:l?null:e.firstChild?D.call(e.childNodes):null,n,!o&&_?_:l?l.__e:e.firstChild,o,i),le(n,t,i)}function me(t,e){ye(t,e,me)}function be(t,e,_){var o,l,n,i,u=k({},t.props);for(n in t.type&&t.type.defaultProps&&(i=t.type.defaultProps),e)n=="key"?o=e[n]:n=="ref"?l=e[n]:u[n]=e[n]==null&&i!=null?i[n]:e[n];return arguments.length>2&&(u.children=arguments.length>3?D.call(arguments,2):_),E(t.type,u,o||t.key,l||t.ref,null)}function ke(t){function e(_){var o,l;return this.getChildContext||(o=new Set,(l={})[e.__c]=this,this.getChildContext=function(){return l},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&o.forEach(function(i){i.__e=!0,B(i)})},this.sub=function(n){o.add(n);var i=n.componentWillUnmount;n.componentWillUnmount=function(){o&&o.delete(n),i&&i.call(n)}}),_.children}return e.__c="__cC"+te++,e.__=t,e.Provider=e.__l=(e.Consumer=function(_,o){return _.children(o)}).contextType=e,e}D=_e.slice,d={__e:function(t,e,_,o){for(var l,n,i;e=e.__;)if((l=e.__c)&&!l.__)try{if((n=l.constructor)&&n.getDerivedStateFromError!=null&&(l.setState(n.getDerivedStateFromError(t)),i=l.__d),l.componentDidCatch!=null&&(l.componentDidCatch(t,o||{}),i=l.__d),i)return l.__E=l}catch(u){t=u}throw t}},X=0,ue=function(t){return t!=null&&t.constructor==null},N.prototype.setState=function(t,e){var _;_=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=k({},this.state),typeof t=="function"&&(t=t(k({},_),this.props)),t&&k(_,t),t!=null&&this.__v&&(e&&this._sb.push(e),B(this))},N.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),B(this))},N.prototype.render=I,x=[],Y=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Z=function(t,e){return t.__v.__b-e.__v.__b},H.__r=0,ee=/(PointerCapture)$|Capture$/i,O=0,$=Q(!1),j=Q(!0),te=0;export{N as Component,I as Fragment,be as cloneElement,ke as createContext,pe as createElement,ge as createRef,pe as h,me as hydrate,ue as isValidElement,d as options,ye as render,ae as toChildArray};
//# sourceMappingURL=preact.mjs.map