@flarehr/superhero-salpac-profile-admin 1.0.703 → 1.0.704
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError("Cannot "+n),__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,r)=>(__accessCheck(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),__privateMethod=(e,t,n)=>(__accessCheck(e,t,"access private method"),n),__privateWrapper=(e,t,n,r)=>({set _(r){__privateSet(e,t,r,n)},get _(){return __privateGet(e,t,r)}});!function(){"use strict";var e,t,n,r,i,o,a,s,l,c,u,d,p,f,h,v,m,_,g,y,w,b,x,k,S,E,C,P,T,A,M,R,O,L,F,I,G,D,N,H,W,$,U,j,B,q,z,K,Q,V,Y,X,Z,J,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,pe,fe,he,ve,me,_e,ge,ye,we,be,xe,ke,Se,Ee,Ce,Pe,Te,Ae,Me={},Re=[],Oe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Le=Array.isArray;function Fe(e,t){for(var n in t)e[n]=t[n];return e}function Ie(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ge(e,t,n){var r,i,o,a={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?ye.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return De(e,a,r,i,null)}function De(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++be:i,__i:-1,__u:0};return null==i&&null!=we.vnode&&we.vnode(o),o}function Ne(){return{current:null}}function He(e){return e.children}function We(e,t){this.props=e,this.context=t}function $e(e,t){if(null==t)return e.__?$e(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?$e(e):null}function Ue(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Ue(e)}}function je(e){(!e.__d&&(e.__d=!0)&&xe.push(e)&&!Be.__r++||ke!==we.debounceRendering)&&((ke=we.debounceRendering)||Se)(Be)}function Be(){var e,t,n,r,i,o,a,s;for(xe.sort(Ee);e=xe.shift();)e.__d&&(t=xe.length,r=void 0,o=(i=(n=e).__v).__e,a=[],s=[],n.__P&&((r=Fe({},i)).__v=i.__v+1,we.vnode&&we.vnode(r),Ze(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,a,null==o?$e(i):o,!!(32&i.__u),s),r.__v=i.__v,r.__.__k[r.__i]=r,Je(a,r,s),r.__e!=o&&Ue(r)),xe.length>t&&xe.sort(Ee));Be.__r=0}function qe(e,t,n,r,i,o,a,s,l,c,u){var d,p,f,h,v,m=r&&r.__k||Re,_=t.length;for(n.__d=l,function(e,t,n){var r,i,o,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)null!=(i=t[r])&&"boolean"!=typeof i&&"function"!=typeof i?(a=r+d,(i=e.__k[r]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?De(null,i,null,null,null):Le(i)?De(He,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?De(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,-1!==(s=i.__i=Qe(i,n,a,u))&&(u--,(o=n[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==a&&(s==a-1?d--:s==a+1?d++:(s>a?d--:d++,i.__u|=65536))):i=e.__k[r]=null;if(u)for(r=0;r<c;r++)null!=(o=n[r])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=$e(o)),tt(o,o))}(n,t,m),l=n.__d,d=0;d<_;d++)null!=(f=n.__k[d])&&(p=-1===f.__i?Me:m[f.__i]||Me,f.__i=d,Ze(e,f,p,i,o,a,s,l,c,u),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&et(p.ref,null,f),u.push(f.ref,f.__c||h,f)),null==v&&null!=h&&(v=h),65536&f.__u||p.__k===f.__k?l=ze(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:h&&(l=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=v}function ze(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=ze(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=$e(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function Ke(e,t){return t=t||[],null==e||"boolean"==typeof e||(Le(e)?e.some((function(e){Ke(e,t)})):t.push(e)),t}function Qe(e,t,n,r){var i=e.key,o=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if(r>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s++}}return-1}function Ve(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||Oe.test(t)?n:n+"px"}function Ye(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ve(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ve(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Ce,e.addEventListener(t,o?Te:Pe,o)):e.removeEventListener(t,o?Te:Pe,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function Xe(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=Ce++;else if(t.t<n.u)return;return n(we.event?we.event(t):t)}}}function Ze(e,t,n,r,i,o,a,s,l,c){var u,d,p,f,h,v,m,_,g,y,w,b,x,k,S,E,C=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(u=we.__b)&&u(t);e:if("function"==typeof C)try{if(_=t.props,g="prototype"in C&&C.prototype.render,y=(u=C.contextType)&&r[u.__c],w=u?y?y.props.value:u.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(g?t.__c=d=new C(_,w):(t.__c=d=new We(_,w),d.constructor=C,d.render=nt),y&&y.sub(d),d.props=_,d.state||(d.state={}),d.context=w,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),g&&null==d.__s&&(d.__s=d.state),g&&null!=C.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Fe({},d.__s)),Fe(d.__s,C.getDerivedStateFromProps(_,d.__s))),f=d.props,h=d.state,d.__v=t,p)g&&null==C.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),g&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(g&&null==C.getDerivedStateFromProps&&_!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,w)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,w),g&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,h,v)}))}if(d.context=w,d.props=_,d.__P=e,d.__e=!1,x=we.__r,k=0,g){for(d.state=d.__s,d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do{d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(r=Fe(Fe({},r),d.getChildContext())),g&&!p&&null!=d.getSnapshotBeforeUpdate&&(v=d.getSnapshotBeforeUpdate(f,h)),qe(e,Le(E=null!=u&&u.type===He&&null==u.key?u.props.children:u)?E:[E],t,n,r,i,o,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),m&&(d.__E=d.__=null)}catch(P){if(t.__v=null,l||null!=o){for(t.__u|=l?160:128;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;we.__e(P,t,n)}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,o,a,s,l){var c,u,d,p,f,h,v,m=n.props,_=t.props,g=t.type;if("svg"===g?i="http://www.w3.org/2000/svg":"math"===g?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=o)for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!g&&(g?f.localName===g:3===f.nodeType)){e=f,o[c]=null;break}if(null==e){if(null===g)return document.createTextNode(_);e=document.createElementNS(i,g,_.is&&_),s&&(we.__m&&we.__m(t,o),s=!1),o=null}if(null===g)m===_||s&&e.data===_||(e.data=_);else{if(o=o&&ye.call(e.childNodes),m=n.props||Me,!s&&null!=o)for(m={},c=0;c<e.attributes.length;c++)m[(f=e.attributes[c]).name]=f.value;for(c in m)if(f=m[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=f;else if(!(c in _)){if("value"==c&&"defaultValue"in _||"checked"==c&&"defaultChecked"in _)continue;Ye(e,c,null,f,i)}for(c in _)f=_[c],"children"==c?p=f:"dangerouslySetInnerHTML"==c?u=f:"value"==c?h=f:"checked"==c?v=f:s&&"function"!=typeof f||m[c]===f||Ye(e,c,f,m[c],i);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),qe(e,Le(p)?p:[p],t,n,r,"foreignObject"===g?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&$e(n,0),s,l),null!=o)for(c=o.length;c--;)Ie(o[c]);s||(c="value","progress"===g&&null==h?e.removeAttribute("value"):void 0!==h&&(h!==e[c]||"progress"===g&&!h||"option"===g&&h!==m[c])&&Ye(e,c,h,m[c],i),c="checked",void 0!==v&&v!==e[c]&&Ye(e,c,v,m[c],i))}return e}(n.__e,t,n,r,i,o,a,l,c);(u=we.diffed)&&u(t)}function Je(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)et(n[r],n[++r],n[++r]);we.__c&&we.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){we.__e(n,t.__v)}}))}function et(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(i){we.__e(i,n)}}function tt(e,t,n){var r,i;if(we.unmount&&we.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||et(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){we.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&tt(r[i],t,n||"function"!=typeof e.type);n||Ie(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function nt(e,t,n){return this.constructor(e,n)}function rt(e,t,n){var r,i,o,a;we.__&&we.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,o=[],a=[],Ze(t,e=(!r&&n||t).__k=Ge(He,null,[e]),i||Me,Me,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?ye.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,a),Je(o,e,a)}function it(e,t){rt(e,t,it)}function ot(e,t,n){var r,i,o,a,s=Fe({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=void 0===t[o]&&void 0!==a?a[o]:t[o];return arguments.length>2&&(s.children=arguments.length>3?ye.call(arguments,2):n),De(e.type,s,r||e.key,i||e.ref,null)}function at(e,t){var n={__c:t="__cC"+Ae++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,je(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function st(){return(st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}ye=Re.slice,we={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},be=0,We.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Fe({},this.state),"function"==typeof e&&(e=e(Fe({},n),this.props)),e&&Fe(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),je(this))},We.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),je(this))},We.prototype.render=He,xe=[],Se="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ee=function(e,t){return e.__v.__b-t.__v.__b},Be.__r=0,Ce=0,Pe=Xe(!1),Te=Xe(!0),Ae=0;var lt=["context","children"];function ct(e){return this.getChildContext=function(){return e.context},ot(e.children,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,lt))}function ut(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Ge(ct,st({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],i={},o=0,a=t.attributes,s=t.childNodes;for(o=a.length;o--;)"slot"!==a[o].name&&(i[a[o].name]=a[o].value,i[dt(a[o].name)]=a[o].value);for(o=s.length;o--;){var l=e(s[o],null),c=s[o].slot;c?i[c]=Ge(ht,{name:c},l):r[o]=l}var u=n?Ge(ht,null,r):r;return Ge(n||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?it:rt)(this._vdom,this._root)}function dt(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function pt(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[dt(e)]=n,this._vdom=ot(this._vdom,r),rt(this._vdom,this._root)}}function ft(){rt(this._vdom=null,this._root)}function ht(e,t){var n=this;return Ge("slot",st({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}var vt,mt,_t,gt,yt=0,wt=[],bt=we,xt=bt.__b,kt=bt.__r,St=bt.diffed,Et=bt.__c,Ct=bt.unmount,Pt=bt.__;function Tt(e,t){bt.__h&&bt.__h(mt,e,yt||t),yt=0;var n=mt.__H||(mt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function At(e){return yt=1,Mt(zt,e)}function Mt(e,t,n){var r=Tt(vt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):zt(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=mt,!mt.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};mt.u=!0;var o=mt.shouldComponentUpdate,a=mt.componentWillUpdate;mt.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}a&&a.call(this,e,t,n)},mt.shouldComponentUpdate=i}return r.__N||r.__}function Rt(e,t){var n=Tt(vt++,3);!bt.__s&&qt(n.__H,t)&&(n.__=e,n.i=t,mt.__H.__h.push(n))}function Ot(e,t){var n=Tt(vt++,4);!bt.__s&&qt(n.__H,t)&&(n.__=e,n.i=t,mt.__h.push(n))}function Lt(e){return yt=5,It((function(){return{current:e}}),[])}function Ft(e,t,n){yt=6,Ot((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function It(e,t){var n=Tt(vt++,7);return qt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Gt(e,t){return yt=8,It((function(){return e}),t)}function Dt(e){var t=mt.context[e.__c],n=Tt(vt++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(mt)),t.props.value):e.__}function Nt(e,t){bt.useDebugValue&&bt.useDebugValue(t?t(e):e)}function Ht(){var e=Tt(vt++,11);if(!e.__){for(var t=mt.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Wt(){for(var e;e=wt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(jt),e.__H.__h.forEach(Bt),e.__H.__h=[]}catch(ps){e.__H.__h=[],bt.__e(ps,e.__v)}}bt.__b=function(e){mt=null,xt&&xt(e)},bt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pt&&Pt(e,t)},bt.__r=function(e){kt&&kt(e),vt=0;var t=(mt=e.__c).__H;t&&(_t===mt?(t.__h=[],mt.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(jt),t.__h.forEach(Bt),t.__h=[],vt=0)),_t=mt},bt.diffed=function(e){St&&St(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==wt.push(t)&>===bt.requestAnimationFrame||((gt=bt.requestAnimationFrame)||Ut)(Wt)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),_t=mt=null},bt.__c=function(e,t){t.some((function(e){try{e.__h.forEach(jt),e.__h=e.__h.filter((function(e){return!e.__||Bt(e)}))}catch(Qa){t.some((function(e){e.__h&&(e.__h=[])})),t=[],bt.__e(Qa,e.__v)}})),Et&&Et(e,t)},bt.unmount=function(e){Ct&&Ct(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{jt(e)}catch(n){t=n}})),n.__H=void 0,t&&bt.__e(t,n.__v))};var $t="function"==typeof requestAnimationFrame;function Ut(e){var t,n=function(){clearTimeout(r),$t&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);$t&&(t=requestAnimationFrame(n))}function jt(e){var t=mt,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),mt=t}function Bt(e){var t=mt;e.__c=e.__(),mt=t}function qt(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function zt(e,t){return"function"==typeof t?t(e):t}class Kt extends Error{constructor(e,t){super(e),__publicField(this,"_response"),this._response=t,Object.setPrototypeOf(this,Kt.prototype)}get response(){return this._response}}const Qt=async(e,t,n,r)=>{const i=await fetch(e,{method:n,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.703",authorization:`Bearer ${t}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!i.ok)throw new Kt(`[API Error] Status: ${i.statusText}`,i);return i},Vt=async(e,t,n,r)=>{const i=await Qt(e,t,n,r);return await i.json()};let Yt;function Xt(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Zt(e,t){this.props=e,this.context=t}function Jt(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Xt(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Ge(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Zt.prototype=new We).isPureReactComponent=!0,Zt.prototype.shouldComponentUpdate=function(e,t){return Xt(this.props,e)||Xt(this.state,t)};var en=we.__b;we.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),en&&en(e)};var tn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function nn(e){function t(t){if(!("ref"in t))return e(t,null);var n=t.ref;delete t.ref;var r=e(t,n);return t.ref=n,r}return t.$$typeof=tn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var rn=function(e,t){return null==e?null:Ke(Ke(e).map(t))},on={map:rn,forEach:rn,count:function(e){return e?Ke(e).length:0},only:function(e){var t=Ke(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Ke},an=we.__e;we.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);an(e,t,n,r)};var sn=we.unmount;function ln(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return ln(e,t,n)}))),e}function cn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return cn(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function un(){this.__u=0,this.t=null,this.__b=null}function dn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function pn(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return Ge(n,i)}return i.displayName="Lazy",i.__f=!0,i}function fn(){this.u=null,this.o=null}we.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),sn&&sn(e)},(un.prototype=new We).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=dn(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=cn(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},un.prototype.componentWillUnmount=function(){this.t=[]},un.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ln(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&Ge(He,null,e.fallback);return i&&(i.__u&=-33),[Ge(He,null,t.__a?null:e.children),i]};var hn=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function vn(e){return this.getChildContext=function(){return e.context},e.children}function mn(e){var t=this,n=e.i;t.componentWillUnmount=function(){rt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),rt(Ge(vn,{context:t.context},e.__v),t.l)}function _n(e,t){var n=Ge(mn,{__v:e,i:t});return n.containerInfo=t,n}(fn.prototype=new We).__a=function(e){var t=this,n=dn(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),hn(t,e,r)):i()};n?n(o):o()}},fn.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ke(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},fn.prototype.componentDidUpdate=fn.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){hn(e,n,t)}))};var gn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,yn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,wn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,bn=/[A-Z0-9]/g,xn="undefined"!=typeof document,kn=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Sn(e,t,n){return null==t.__k&&(t.textContent=""),rt(e,t),"function"==typeof n&&n(),e?e.__c:null}function En(e,t,n){return it(e,t),"function"==typeof n&&n(),e?e.__c:null}We.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(We.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Cn=we.event;function Pn(){}function Tn(){return this.cancelBubble}function An(){return this.defaultPrevented}we.event=function(e){return Cn&&(e=Cn(e)),e.persist=Pn,e.isPropagationStopped=Tn,e.isDefaultPrevented=An,e.nativeEvent=e};var Mn,Rn={enumerable:!1,configurable:!0,get:function(){return this.class}},On=we.vnode;we.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||xn&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var s=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?o="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||kn(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":wn.test(o)&&(o=s):s=o="oninput":i&&yn.test(o)?o=o.replace(bn,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&r[o=s]&&(o="oninputCapture"),r[o]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=Ke(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=Ke(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",Rn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=gn,On&&On(e)};var Ln=we.__r;we.__r=function(e){Ln&&Ln(e),Mn=e.__c};var Fn=we.diffed;we.diffed=function(e){Fn&&Fn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),Mn=null};var In={ReactCurrentDispatcher:{current:{readContext:function(e){return Mn.__n[e.__c].props.value},useCallback:Gt,useContext:Dt,useDebugValue:Nt,useDeferredValue:Kn,useEffect:Rt,useId:Ht,useImperativeHandle:Ft,useInsertionEffect:Vn,useLayoutEffect:Ot,useMemo:It,useReducer:Mt,useRef:Lt,useState:At,useSyncExternalStore:Xn,useTransition:Qn}}};function Gn(e){return Ge.bind(null,e)}function Dn(e){return!!e&&e.$$typeof===gn}function Nn(e){return Dn(e)&&e.type===He}function Hn(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Wn(e){return Dn(e)?ot.apply(null,arguments):e}function $n(e){return!!e.__k&&(rt(null,e),!0)}function Un(e){return e&&(e.base||1===e.nodeType&&e)||null}var jn=function(e,t){return e(t)},Bn=function(e,t){return e(t)},qn=He;function zn(e){e()}function Kn(e){return e}function Qn(){return[!1,zn]}var Vn=Ot,Yn=Dn;function Xn(e,t){var n=t(),r=At({h:{__:n,v:t}}),i=r[0].h,o=r[1];return Ot((function(){i.__=n,i.v=t,Zn(i)&&o({h:i})}),[e,n,t]),Rt((function(){return Zn(i)&&o({h:i}),e((function(){Zn(i)&&o({h:i})}))}),[e]),n}function Zn(e){var t,n,r=e.v,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(a){return!0}}var Jn={useState:At,useId:Ht,useReducer:Mt,useEffect:Rt,useLayoutEffect:Ot,useInsertionEffect:Vn,useTransition:Qn,useDeferredValue:Kn,useSyncExternalStore:Xn,startTransition:zn,useRef:Lt,useImperativeHandle:Ft,useMemo:It,useCallback:Gt,useContext:Dt,useDebugValue:Nt,version:"18.3.1",Children:on,render:Sn,hydrate:En,unmountComponentAtNode:$n,createPortal:_n,createElement:Ge,createContext:at,createFactory:Gn,cloneElement:Wn,createRef:Ne,Fragment:He,isValidElement:Dn,isElement:Yn,isFragment:Nn,isMemo:Hn,findDOMNode:Un,Component:We,PureComponent:Zt,memo:Jt,forwardRef:nn,flushSync:Bn,unstable_batchedUpdates:jn,StrictMode:qn,Suspense:un,SuspenseList:fn,lazy:pn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:In};const er=Object.freeze(Object.defineProperty({__proto__:null,Children:on,Component:We,Fragment:He,PureComponent:Zt,StrictMode:qn,Suspense:un,SuspenseList:fn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:In,cloneElement:Wn,createContext:at,createElement:Ge,createFactory:Gn,createPortal:_n,createRef:Ne,default:Jn,findDOMNode:Un,flushSync:Bn,forwardRef:nn,hydrate:En,isElement:Yn,isFragment:Nn,isMemo:Hn,isValidElement:Dn,lazy:pn,memo:Jt,render:Sn,startTransition:zn,unmountComponentAtNode:$n,unstable_batchedUpdates:jn,useCallback:Gt,useContext:Dt,useDebugValue:Nt,useDeferredValue:Kn,useEffect:Rt,useErrorBoundary:function(e){var t=Tt(vt++,10),n=At();return t.__=e,mt.componentDidCatch||(mt.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Ht,useImperativeHandle:Ft,useInsertionEffect:Vn,useLayoutEffect:Ot,useMemo:It,useReducer:Mt,useRef:Lt,useState:At,useSyncExternalStore:Xn,useTransition:Qn,version:"18.3.1"},Symbol.toStringTag,{value:"Module"})),tr="/salary-packaging/admin/v1.0",nr=()=>{const e=Dt(Yt);return{checkProfileSearchAuthorization:It((()=>(e=>async()=>{const t=new URL(`${e.backend.url}${tr}/accounts/${e.account.accountId}/auth`);return Vt(t,e.backend.accessToken,"GET")})(e)),[e]),searchProfilesForAccount:It((()=>(e=>async t=>{const n=new URL(`${e.backend.url}${tr}/accounts/${e.account.accountId}/profile-search?search=${t}`);return Vt(n,e.backend.accessToken,"GET")})(e)),[e]),ingestClient:It((()=>(e=>async()=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const n=new Date;n.setUTCDate((new Date).getUTCDate()+2);const r=new URL(`${e.backend.url}${tr}/ingest/clients`);await Qt(r,e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:n.toISOString().split("T")[0]})})(e)),[e]),linkedProfilesForAccount:It((()=>(e=>async()=>{const t=new URL(`${e.backend.url}${tr}/accounts/${e.account.accountId}/profiles`);return Vt(t,e.backend.accessToken,"GET")})(e)),[e]),unlinkProfile:It((()=>(e=>async t=>{const n=new URL(`${e.backend.url}${tr}/accounts/${e.account.accountId}/profiles/${t}/unlink`);await Qt(n,e.backend.accessToken,"POST")})(e)),[e])}};class rr extends Error{}function ir(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}rr.prototype.name="InvalidTokenError";class or{constructor(e){__publicField(this,"roles"),__publicField(this,"isAuthorized"),this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(e){const t=e?function(e,t){if("string"!=typeof e)throw new rr("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new rr(`Invalid token specified: missing part #${n+1}`);let i;try{i=ir(r)}catch(Ta){throw new rr(`Invalid token specified: invalid base64 for part #${n+1} (${Ta.message})`)}try{return JSON.parse(i)}catch(Ta){throw new rr(`Invalid token specified: invalid json for part #${n+1} (${Ta.message})`)}}(e):{roles:[]};return new or(t.roles)}}function ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ar.apply(null,arguments)}function sr(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var lr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cr=sr((function(e){return lr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var ur=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(Ta){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),dr="-ms-",pr="-moz-",fr="-webkit-",hr="comm",vr="rule",mr="decl",_r="@keyframes",gr=Math.abs,yr=String.fromCharCode,wr=Object.assign;function br(e){return e.trim()}function xr(e,t,n){return e.replace(t,n)}function kr(e,t){return e.indexOf(t)}function Sr(e,t){return 0|e.charCodeAt(t)}function Er(e,t,n){return e.slice(t,n)}function Cr(e){return e.length}function Pr(e){return e.length}function Tr(e,t){return t.push(e),e}var Ar=1,Mr=1,Rr=0,Or=0,Lr=0,Fr="";function Ir(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Ar,column:Mr,length:a,return:""}}function Gr(e,t){return wr(Ir("",null,null,"",null,null,0),e,{length:-e.length},t)}function Dr(){return Lr=Or<Rr?Sr(Fr,Or++):0,Mr++,10===Lr&&(Mr=1,Ar++),Lr}function Nr(){return Sr(Fr,Or)}function Hr(){return Or}function Wr(e,t){return Er(Fr,e,t)}function $r(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ur(e){return Ar=Mr=1,Rr=Cr(Fr=e),Or=0,[]}function jr(e){return Fr="",e}function Br(e){return br(Wr(Or-1,Kr(91===e?e+2:40===e?e+1:e)))}function qr(e){for(;(Lr=Nr())&&Lr<33;)Dr();return $r(e)>2||$r(Lr)>3?"":" "}function zr(e,t){for(;--t&&Dr()&&!(Lr<48||Lr>102||Lr>57&&Lr<65||Lr>70&&Lr<97););return Wr(e,Hr()+(t<6&&32==Nr()&&32==Dr()))}function Kr(e){for(;Dr();)switch(Lr){case e:return Or;case 34:case 39:34!==e&&39!==e&&Kr(Lr);break;case 40:41===e&&Kr(e);break;case 92:Dr()}return Or}function Qr(e,t){for(;Dr()&&e+Lr!==57&&(e+Lr!==84||47!==Nr()););return"/*"+Wr(t,Or-1)+"*"+yr(47===e?e:Dr())}function Vr(e){for(;!$r(Nr());)Dr();return Wr(e,Or)}function Yr(e){return jr(Xr("",null,null,null,[""],e=Ur(e),0,[0],e))}function Xr(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,v=1,m=1,_=1,g=0,y="",w=i,b=o,x=r,k=y;m;)switch(h=g,g=Dr()){case 40:if(108!=h&&58==Sr(k,d-1)){-1!=kr(k+=xr(Br(g),"&","&\f"),"&\f")&&(_=-1);break}case 34:case 39:case 91:k+=Br(g);break;case 9:case 10:case 13:case 32:k+=qr(h);break;case 92:k+=zr(Hr()-1,7);continue;case 47:switch(Nr()){case 42:case 47:Tr(Jr(Qr(Dr(),Hr()),t,n),l);break;default:k+="/"}break;case 123*v:s[c++]=Cr(k)*_;case 125*v:case 59:case 0:switch(g){case 0:case 125:m=0;case 59+u:-1==_&&(k=xr(k,/\f/g,"")),f>0&&Cr(k)-d&&Tr(f>32?ei(k+";",r,n,d-1):ei(xr(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Tr(x=Zr(k,t,n,c,u,i,s,y,w=[],b=[],d),o),123===g)if(0===u)Xr(k,t,x,x,w,o,d,s,b);else switch(99===p&&110===Sr(k,3)?100:p){case 100:case 108:case 109:case 115:Xr(e,x,x,r&&Tr(Zr(e,x,x,0,0,i,s,y,i,w=[],d),b),i,b,d,s,r?w:b);break;default:Xr(k,x,x,x,[""],b,0,s,b)}}c=u=f=0,v=_=1,y=k="",d=a;break;case 58:d=1+Cr(k),f=h;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==(Lr=Or>0?Sr(Fr,--Or):0,Mr--,10===Lr&&(Mr=1,Ar--),Lr))continue;switch(k+=yr(g),g*v){case 38:_=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(Cr(k)-1)*_,_=1;break;case 64:45===Nr()&&(k+=Br(Dr())),p=Nr(),u=d=Cr(y=k+=Vr(Hr())),g++;break;case 45:45===h&&2==Cr(k)&&(v=0)}}return o}function Zr(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,p=0===i?o:[""],f=Pr(p),h=0,v=0,m=0;h<r;++h)for(var _=0,g=Er(e,d+1,d=gr(v=a[h])),y=e;_<f;++_)(y=br(v>0?p[_]+" "+g:xr(g,/&\f/g,p[_])))&&(l[m++]=y);return Ir(e,t,n,0===i?vr:s,l,c,u)}function Jr(e,t,n){return Ir(e,t,n,hr,yr(Lr),Er(e,2,-2),0)}function ei(e,t,n,r){return Ir(e,t,n,mr,Er(e,0,r),Er(e,r+1,-1),r)}function ti(e,t){for(var n="",r=Pr(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ni(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case mr:return e.return=e.return||e.value;case hr:return"";case _r:return e.return=e.value+"{"+ti(e.children,r)+"}";case vr:e.value=e.props.join(",")}return Cr(n=ti(e.children,r))?e.return=e.value+"{"+n+"}":""}var ri=function(e,t,n){for(var r=0,i=0;r=i,i=Nr(),38===r&&12===i&&(t[n]=1),!$r(i);)Dr();return Wr(e,Or)},ii=function(e,t){return jr(function(e,t){var n=-1,r=44;do{switch($r(r)){case 0:38===r&&12===Nr()&&(t[n]=1),e[n]+=ri(Or-1,t,n);break;case 2:e[n]+=Br(r);break;case 4:if(44===r){e[++n]=58===Nr()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=yr(r)}}while(r=Dr());return e}(Ur(e),t))},oi=new WeakMap,ai=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||oi.get(n))&&!r){oi.set(e,!0);for(var i=[],o=ii(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},si=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function li(e,t){switch(function(e,t){return 45^Sr(e,0)?(((t<<2^Sr(e,0))<<2^Sr(e,1))<<2^Sr(e,2))<<2^Sr(e,3):0}(e,t)){case 5103:return fr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return fr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fr+e+pr+e+dr+e+e;case 6828:case 4268:return fr+e+dr+e+e;case 6165:return fr+e+dr+"flex-"+e+e;case 5187:return fr+e+xr(e,/(\w+).+(:[^]+)/,fr+"box-$1$2"+dr+"flex-$1$2")+e;case 5443:return fr+e+dr+"flex-item-"+xr(e,/flex-|-self/,"")+e;case 4675:return fr+e+dr+"flex-line-pack"+xr(e,/align-content|flex-|-self/,"")+e;case 5548:return fr+e+dr+xr(e,"shrink","negative")+e;case 5292:return fr+e+dr+xr(e,"basis","preferred-size")+e;case 6060:return fr+"box-"+xr(e,"-grow","")+fr+e+dr+xr(e,"grow","positive")+e;case 4554:return fr+xr(e,/([^-])(transform)/g,"$1"+fr+"$2")+e;case 6187:return xr(xr(xr(e,/(zoom-|grab)/,fr+"$1"),/(image-set)/,fr+"$1"),e,"")+e;case 5495:case 3959:return xr(e,/(image-set\([^]*)/,fr+"$1$`$1");case 4968:return xr(xr(e,/(.+:)(flex-)?(.*)/,fr+"box-pack:$3"+dr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fr+e+e;case 4095:case 3583:case 4068:case 2532:return xr(e,/(.+)-inline(.+)/,fr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Cr(e)-1-t>6)switch(Sr(e,t+1)){case 109:if(45!==Sr(e,t+4))break;case 102:return xr(e,/(.+:)(.+)-([^]+)/,"$1"+fr+"$2-$3$1"+pr+(108==Sr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~kr(e,"stretch")?li(xr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Sr(e,t+1))break;case 6444:switch(Sr(e,Cr(e)-3-(~kr(e,"!important")&&10))){case 107:return xr(e,":",":"+fr)+e;case 101:return xr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fr+(45===Sr(e,14)?"inline-":"")+"box$3$1"+fr+"$2$3$1"+dr+"$2box$3")+e}break;case 5936:switch(Sr(e,t+11)){case 114:return fr+e+dr+xr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fr+e+dr+xr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fr+e+dr+xr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fr+e+dr+e+e}return e}var ci=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case mr:e.return=li(e.value,e.length);break;case _r:return ti([Gr(e,{value:xr(e.value,"@","@"+fr)})],r);case vr:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ti([Gr(e,{props:[xr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ti([Gr(e,{props:[xr(t,/:(plac\w+)/,":"+fr+"input-$1")]}),Gr(e,{props:[xr(t,/:(plac\w+)/,":-moz-$1")]}),Gr(e,{props:[xr(t,/:(plac\w+)/,dr+"input-$1")]})],r)}return""}))}}],ui=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||ci,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,p=[ni,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[ai,si].concat(o,p),u=Pr(c),function(e,t,n,r){for(var i="",o=0;o<u;o++)i+=c[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,ti(Yr(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ur({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h},di={exports:{}},pi={},fi="function"==typeof Symbol&&Symbol.for,hi=fi?Symbol.for("react.element"):60103,vi=fi?Symbol.for("react.portal"):60106,mi=fi?Symbol.for("react.fragment"):60107,_i=fi?Symbol.for("react.strict_mode"):60108,gi=fi?Symbol.for("react.profiler"):60114,yi=fi?Symbol.for("react.provider"):60109,wi=fi?Symbol.for("react.context"):60110,bi=fi?Symbol.for("react.async_mode"):60111,xi=fi?Symbol.for("react.concurrent_mode"):60111,ki=fi?Symbol.for("react.forward_ref"):60112,Si=fi?Symbol.for("react.suspense"):60113,Ei=fi?Symbol.for("react.suspense_list"):60120,Ci=fi?Symbol.for("react.memo"):60115,Pi=fi?Symbol.for("react.lazy"):60116,Ti=fi?Symbol.for("react.block"):60121,Ai=fi?Symbol.for("react.fundamental"):60117,Mi=fi?Symbol.for("react.responder"):60118,Ri=fi?Symbol.for("react.scope"):60119;function Oi(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case hi:switch(e=e.type){case bi:case xi:case mi:case gi:case _i:case Si:return e;default:switch(e=e&&e.$$typeof){case wi:case ki:case Pi:case Ci:case yi:return e;default:return t}}case vi:return t}}}function Li(e){return Oi(e)===xi}pi.AsyncMode=bi,pi.ConcurrentMode=xi,pi.ContextConsumer=wi,pi.ContextProvider=yi,pi.Element=hi,pi.ForwardRef=ki,pi.Fragment=mi,pi.Lazy=Pi,pi.Memo=Ci,pi.Portal=vi,pi.Profiler=gi,pi.StrictMode=_i,pi.Suspense=Si,pi.isAsyncMode=function(e){return Li(e)||Oi(e)===bi},pi.isConcurrentMode=Li,pi.isContextConsumer=function(e){return Oi(e)===wi},pi.isContextProvider=function(e){return Oi(e)===yi},pi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===hi},pi.isForwardRef=function(e){return Oi(e)===ki},pi.isFragment=function(e){return Oi(e)===mi},pi.isLazy=function(e){return Oi(e)===Pi},pi.isMemo=function(e){return Oi(e)===Ci},pi.isPortal=function(e){return Oi(e)===vi},pi.isProfiler=function(e){return Oi(e)===gi},pi.isStrictMode=function(e){return Oi(e)===_i},pi.isSuspense=function(e){return Oi(e)===Si},pi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===mi||e===xi||e===gi||e===_i||e===Si||e===Ei||"object"==typeof e&&null!==e&&(e.$$typeof===Pi||e.$$typeof===Ci||e.$$typeof===yi||e.$$typeof===wi||e.$$typeof===ki||e.$$typeof===Ai||e.$$typeof===Mi||e.$$typeof===Ri||e.$$typeof===Ti)},pi.typeOf=Oi,di.exports=pi;var Fi=di.exports,Ii={};Ii[Fi.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ii[Fi.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Gi(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Di=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ni=function(e,t,n){Di(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var Hi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wi=/[A-Z]|^ms/g,$i=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ui=function(e){return 45===e.charCodeAt(1)},ji=function(e){return null!=e&&"boolean"!=typeof e},Bi=sr((function(e){return Ui(e)?e:e.replace(Wi,"-$&").toLowerCase()})),qi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($i,(function(e,t,n){return Ki={name:t,styles:n,next:Ki},t}))}return 1===Hi[e]||Ui(e)||"number"!=typeof t||0===t?t:t+"px"};function zi(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return Ki={name:i.name,styles:i.styles,next:Ki},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)Ki={name:a.name,styles:a.styles,next:Ki},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=zi(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":ji(s)&&(r+=Bi(o)+":"+qi(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=zi(e,t,a);switch(o){case"animation":case"animationName":r+=Bi(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ji(a[c])&&(r+=Bi(o)+":"+qi(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Ki,l=n(e);return Ki=s,zi(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Ki,Qi=/label:\s*([^\s;{]+)\s*(;|$)/g;function Vi(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Ki=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=zi(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=zi(n,t,e[a]),r)i+=o[a]}Qi.lastIndex=0;for(var s,l="";null!==(s=Qi.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:Ki}}var Yi=!!er.useInsertionEffect&&er.useInsertionEffect,Xi=Yi||function(e){return e()},Zi=Yi||Ot,Ji=at("undefined"!=typeof HTMLElement?ui({key:"css"}):null),eo=Ji.Provider,to=function(e){return nn((function(t,n){var r=Dt(Ji);return e(t,r,n)}))},no=at({}),ro={}.hasOwnProperty,io="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",oo=function(e,t){var n={};for(var r in t)ro.call(t,r)&&(n[r]=t[r]);return n[io]=e,n},ao=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Di(t,n,r),Xi((function(){return Ni(t,n,r)})),null},so=to((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[io],o=[r],a="";"string"==typeof e.className?a=Gi(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=Vi(o,void 0,Dt(no));a+=t.key+"-"+s.name;var l={};for(var c in e)ro.call(e,c)&&"css"!==c&&c!==io&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),Ge(He,null,Ge(ao,{cache:t,serialized:s,isStringTag:"string"==typeof i}),Ge(i,l))})),lo=to((function(e,t){var n=Vi([e.styles],void 0,Dt(no)),r=Lt();return Zi((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),Zi((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Ni(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function co(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Vi(t)}var uo=cr,po=function(e){return"theme"!==e},fo=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?uo:po},ho=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},vo=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Di(t,n,r),Xi((function(){return Ni(t,n,r)})),null},mo=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=ho(t,n,o),l=s||fo(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=to((function(e,t,n){var r=c&&e.as||a,o="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=Dt(no)}"string"==typeof e.className?o=Gi(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var h=Vi(d.concat(u),t.registered,p);o+=t.key+"-"+h.name,void 0!==i&&(o+=" "+i);var v=c&&void 0===s?fo(r):l,m={};for(var _ in e)c&&"as"===_||v(_)&&(m[_]=e[_]);return m.className=o,n&&(m.ref=n),Ge(He,null,Ge(vo,{cache:t,serialized:h,isStringTag:"string"==typeof r}),Ge(r,m))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+i}}),h.withComponent=function(t,r){return e(t,ar({},n,r,{shouldForwardProp:ho(h,r,!0)})).apply(void 0,d)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){mo[e]=mo(e)}));const _o=mo.button({marginLeft:"0.75rem",display:"inline-flex",justifyContent:"center",borderRadius:"0.375rem",borderWidth:"1px",borderColor:"transparent","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(67 56 202 / var(--tw-bg-opacity))"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))","--tw-ring-offset-width":"2px"},":disabled":{cursor:"not-allowed","--tw-bg-opacity":"1",backgroundColor:"rgb(107 114 128 / var(--tw-bg-opacity))"}}),go=mo.div({height:"1.25rem",width:"1.25rem","@keyframes spin":{to:{transform:"rotate(360deg)"}},animation:"spin 1s linear infinite",borderRadius:"9999px",borderWidth:"2px",borderColor:"var(--fl-color-primary-600)",borderLeftColor:"transparent",borderTopColor:"transparent"});var yo=0;function wo(e,t,n,r,i,o){t||(t={});var a,s,l=t;"ref"in t&&(a=t.ref,delete t.ref);var c={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--yo,__i:-1,__u:0,__source:i,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===l[s]&&(l[s]=a[s]);return we.vnode&&we.vnode(c),c}var bo=He;function xo(e,t,n){return ro.call(t,"css")?wo(so,oo(e,t),n):wo(e,t,n)}function ko(e,t,n){return ro.call(t,"css")?wo(so,oo(e,t),n):wo(e,t,n)}const So=e=>{const[t,n]=At(!1);((e,t)=>{const n=Lt();Rt((()=>{n.current=e}),[e]),Rt((()=>{if(t){const e=setInterval(((...e)=>{var t;return null==(t=null==n?void 0:n.current)?void 0:t.call(n,...e)}),t);return()=>clearInterval(e)}}),[t])})((async()=>{await e.onCheck()&&n(!1)}),t?e.checkInterval:void 0),Rt((()=>{if(t){const r=setTimeout((()=>{t&&e.onTimeout(),n(!1)}),e.timeout);return()=>clearTimeout(r)}}));return xo(_o,{onClick:async()=>{n(!0),await e.onClick()||n(!1)},disabled:t,children:t?ko(bo,{children:[xo(go,{}),xo("span",{css:{marginLeft:"0.5rem"},children:e.processingText})]}):xo(bo,{children:e.text})})},Eo=mo.a({cursor:"pointer",whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"},(({isCurrentTab:e})=>e?{"--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))"}:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700")),Co=mo.span({marginLeft:"0.25rem",display:"inline-flex",width:"1.25rem",alignItems:"center",justifyContent:"center",borderRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgb(55 65 81 / var(--tw-bg-opacity))",fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontWeight:"700","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}),Po=({tabs:e,currentTabId:t,onChange:n})=>{const r=It((()=>e.find((e=>e.id==t))),[e,t]);return ko("div",{children:[ko("div",{css:{"@media (min-width: 640px)":{display:"none"}},children:[xo("label",{htmlFor:"tabs",css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Select a tab"}),xo("select",{id:"tabs",name:"tabs",defaultValue:null==r?void 0:r.id,onChange:e=>n(e.currentTarget.value),css:{display:"block",width:"100%",borderRadius:"0.375rem","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.5rem",fontSize:"1rem",lineHeight:"1.5rem",":focus":{"--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))",outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}},children:e.map((e=>ko("option",{value:e.id,children:[e.displayName,void 0!==e.count&&` (${e.count})`]},e.id)))})]}),xo("div",{css:{display:"none","@media (min-width: 640px)":{display:"block"}},children:xo("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))"},children:xo("nav",{"aria-label":"Tabs",css:{marginBottom:"-1px",display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2rem * var(--tw-space-x-reverse))",marginLeft:"calc(2rem * calc(1 - var(--tw-space-x-reverse)))"}},children:e.map((e=>{return ko(Eo,{onClick:(t=e.id,()=>{n(t)}),"aria-current":e.id==(null==r?void 0:r.id)?"page":void 0,isCurrentTab:e.id==(null==r?void 0:r.id),children:[e.displayName,void 0!==e.count&&xo(Co,{children:e.count})]},e.id);var t}))})})})]})};function To({title:e,titleId:t,...n},r){return Ge("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Ge("title",{id:t},e):null,Ge("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const Ao=nn(To);function Mo({title:e,titleId:t,...n},r){return Ge("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Ge("title",{id:t},e):null,Ge("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Ro=nn(Mo);function Oo({title:e,titleId:t,...n},r){return Ge("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Ge("title",{id:t},e):null,Ge("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Lo=nn(Oo),Fo=e=>e.url?xo(mu,{children:ko(_u,{as:"a",href:e.url,target:"_blank",rel:"noopener noreferrer",css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(240 253 244 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(21 128 61 / var(--tw-text-opacity))","--tw-ring-color":"rgb(22 163 74 / 0.2)"},children:[xo("span",{css:{lineHeight:"1.25rem"},children:"Linked"}),xo(Ao,{css:{marginTop:"auto",marginBottom:"auto",marginLeft:"0.25rem",height:"0.75rem",width:"0.75rem"}})]})}):xo(mu,{children:xo(_u,{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(254 242 242 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(185 28 28 / var(--tw-text-opacity))","--tw-ring-color":"rgb(220 38 38 / 0.2)"},children:"Unlinked"})}),Io=e=>xo(mu,{children:xo("button",{as:"button",onClick:()=>e.onClick(e.id),css:{display:"inline-flex",alignItems:"center",fill:"var(--fl-color-primary-600)",paddingLeft:"0.25rem",paddingRight:"0.25rem"},children:e.children})}),Go=e=>xo(vu,{children:xo("ul",{css:{listStyleType:"none"},children:e.value.split(",").map((e=>xo("li",{children:e},e)))})}),Do="undefined"!=typeof document?Jn.useLayoutEffect:()=>{};const No=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Ho=e=>{if(e&&"window"in e&&e.window===e)return e;return No(e).defaultView||window};function Wo(e){let t=null;return()=>(null==t&&(t=e()),t)}const $o=Wo((function(){return e=/^Mac/i,"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform);var e,t})),Uo=Wo((function(){return e=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent));var e,t}));class jo{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Bo(e){let t=Lt({isFocused:!1,observer:null});Do((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=Lt(null);return Do((()=>{t.current=e}),[e]),Gt(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return Gt((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,i=e=>{t.current.isFocused=!1,r.disabled&&n(new jo("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let qo=null,zo=new Set,Ko=new Map,Qo=!1,Vo=!1;const Yo={Tab:!0,Escape:!0};function Xo(e,t){for(let n of zo)n(e,t)}function Zo(e){Qo=!0,function(e){return!(e.metaKey||!$o()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(qo="keyboard",Xo("keyboard",e))}function Jo(e){qo="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Qo=!0,Xo("pointer",e))}function ea(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(Uo()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(Qo=!0,qo="virtual")}function ta(e){e.target!==window&&e.target!==document&&(Qo||Vo||(qo="virtual",Xo("virtual",e)),Qo=!1,Vo=!1)}function na(){Qo=!1,Vo=!0}function ra(e){if("undefined"==typeof window||Ko.get(Ho(e)))return;const t=Ho(e),n=No(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Qo=!0,r.apply(this,arguments)},n.addEventListener("keydown",Zo,!0),n.addEventListener("keyup",Zo,!0),n.addEventListener("click",ea,!0),t.addEventListener("focus",ta,!0),t.addEventListener("blur",na,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",Jo,!0),n.addEventListener("pointermove",Jo,!0),n.addEventListener("pointerup",Jo,!0)):(n.addEventListener("mousedown",Jo,!0),n.addEventListener("mousemove",Jo,!0),n.addEventListener("mouseup",Jo,!0)),t.addEventListener("beforeunload",(()=>{ia(e)}),{once:!0}),Ko.set(t,{focus:r})}const ia=(e,t)=>{const n=Ho(e),r=No(e);t&&r.removeEventListener("DOMContentLoaded",t),Ko.has(n)&&(n.HTMLElement.prototype.focus=Ko.get(n).focus,r.removeEventListener("keydown",Zo,!0),r.removeEventListener("keyup",Zo,!0),r.removeEventListener("click",ea,!0),n.removeEventListener("focus",ta,!0),n.removeEventListener("blur",na,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",Jo,!0),r.removeEventListener("pointermove",Jo,!0),r.removeEventListener("pointerup",Jo,!0)):(r.removeEventListener("mousedown",Jo,!0),r.removeEventListener("mousemove",Jo,!0),r.removeEventListener("mouseup",Jo,!0)),Ko.delete(n))};function oa(){return"pointer"!==qo}"undefined"!=typeof document&&function(e){const t=No(e);let n;"loading"!==t.readyState?ra(e):(n=()=>{ra(e)},t.addEventListener("DOMContentLoaded",n))}();const aa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function sa(e,t,n){ra(),Rt((()=>{let t=(t,r)=>{(function(e,t,n){var r;const i="undefined"!=typeof window?Ho(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?Ho(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?Ho(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?Ho(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!aa.has(null==n||null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof o||(null==n?void 0:n.target)instanceof a&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof s&&!Yo[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(oa())};return zo.add(t),()=>{zo.delete(t)}}),t)}let la=!1,ca=0;function ua(){la=!0,setTimeout((()=>{la=!1}),50)}function da(e){"touch"===e.pointerType&&ua()}function pa(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",da):document.addEventListener("touchend",ua),ca++,()=>{ca--,ca>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",da):document.removeEventListener("touchend",ua))}}function fa(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=Lt({isFocused:!1,isFocusVisible:t||oa()}),[o,a]=At(!1),[s,l]=At((()=>i.current.isFocused&&i.current.isFocusVisible)),c=Gt((()=>l(i.current.isFocused&&i.current.isFocusVisible)),[]),u=Gt((e=>{i.current.isFocused=e,a(e),c()}),[c]);sa((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:d}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Gt((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),a=Bo(o),s=Gt((e=>{const t=No(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),i&&i(!0),a(e))}),[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:t||!r&&!i?void 0:o}}}({isDisabled:r,onFocusChange:u}),{focusWithinProps:p}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=Lt({isFocusWithin:!1}),a=Gt((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,o]),s=Bo(a),l=Gt((e=>{o.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,s(e))}),[r,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:r?p:d}}var ha=Object.defineProperty,va=(e,t,n)=>(((e,t,n)=>{t in e?ha(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let ma=new class{constructor(){va(this,"current",this.detect()),va(this,"handoffState","pending"),va(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function _a(e){return ma.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function ga(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function ya(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add((()=>e.removeEventListener(n,r,i)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return ga((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=ya();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function wa(){let[e]=At(ya);return Rt((()=>()=>e.dispose()),[e]),e}let ba=(e,t)=>{ma.isServer?Rt(e,t):Ot(e,t)};function xa(e){let t=Lt(e);return ba((()=>{t.current=e}),[e]),t}let ka=function(e){let t=xa(e);return Jn.useCallback(((...e)=>t.current(...e)),[t])};let Sa=at(void 0);function Ea(){return Dt(Sa)}function Ca(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function Pa(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Pa),r}var Ta,Aa,Ma=((Aa=Ma||{})[Aa.None=0]="None",Aa[Aa.RenderStrategy=1]="RenderStrategy",Aa[Aa.Static=2]="Static",Aa),Ra=((Ta=Ra||{})[Ta.Unmount=0]="Unmount",Ta[Ta.Hidden=1]="Hidden",Ta);function Oa(){let e=function(){let e=Lt([]),t=Gt((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return(...n)=>{if(!n.every((e=>null==e)))return e.current=n,t}}();return Gt((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:Fa;let l=Ia(t,e);if(o)return La(l,n,r,a,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=l;if(e)return La(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Pa(e?0:1,{0:()=>null,1:()=>La({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return La(l,n,r,a,s)}({mergeRefs:e,...t})),[e])}function La(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=Ha(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){d["data-headlessui-state"]=n.join(" ");for(let e of n)d[`data-${e}`]=""}}if(o===He&&(Object.keys(Na(l)).length>0||Object.keys(Na(d)).length>0)){if(Dn(u)&&!(Array.isArray(u)&&u.length>1)){let e=u.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>Ca(t(...e),l.className):Ca(t,l.className),r=n?{className:n}:{},o=Ia(u.props,Na(Ha(l,["ref"])));for(let i in d)i in o&&delete d[i];return Wn(u,Object.assign({},o,d,c,{ref:i(Wa(u),c.ref)},r))}if(Object.keys(Na(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Na(l)).concat(Object.keys(Na(d))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return Ge(o,Object.assign({},Ha(l,["ref"]),o!==He&&c,o!==He&&d),u)}function Fa(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function Ia(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let r in n)Object.assign(t,{[r](e,...t){let i=n[r];for(let n of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function Ga(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let r in n)Object.assign(t,{[r](...e){let t=n[r];for(let n of t)null==n||n(...e)}});return t}function Da(e){var t;return Object.assign(nn(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Na(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Ha(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Wa(e){return Jn.version.split(".")[0]>="19"?e.props.ref:e.ref}let $a=at(void 0);function Ua(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}let ja=Symbol();function Ba(...e){let t=Lt(e);Rt((()=>{t.current=e}),[e]);let n=ka((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[ja])))?void 0:n}let qa=at(null);function za(){let e=Dt(qa);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,za),e}return e}qa.displayName="DescriptionContext";let Ka=Da((function(e,t){let n=Ht(),r=Ea(),{id:i=`headlessui-description-${n}`,...o}=e,a=za(),s=Ba(t);ba((()=>a.register(i)),[i,a.register]);let l=r||!1,c=It((()=>({...a.slot,disabled:l})),[a.slot,l]),u={ref:s,...a.props,id:i};return Oa()({ourProps:u,theirProps:o,slot:c,defaultTag:"p",name:a.name||"Description"})}));Object.assign(Ka,{});var Qa,Va=((Qa=Va||{}).Space=" ",Qa.Enter="Enter",Qa.Escape="Escape",Qa.Backspace="Backspace",Qa.Delete="Delete",Qa.ArrowLeft="ArrowLeft",Qa.ArrowUp="ArrowUp",Qa.ArrowRight="ArrowRight",Qa.ArrowDown="ArrowDown",Qa.Home="Home",Qa.End="End",Qa.PageUp="PageUp",Qa.PageDown="PageDown",Qa.Tab="Tab",Qa);let Ya=at(null);function Xa(){let e=Dt(Ya);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Xa),e}return e}function Za({inherit:e=!1}={}){let t=function(){var e,t;let n=null!=(t=null==(e=Dt(Ya))?void 0:e.value)?t:void 0;return n}(),[n,r]=At([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,It((()=>function(e){let t=ka((e=>(r((t=>[...t,e])),()=>r((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=It((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return Jn.createElement(Ya.Provider,{value:n},e.children)}),[r])]}Ya.displayName="LabelContext";let Ja=Da((function(e,t){var n;let r=Ht(),i=Xa(),o=Dt($a),a=Ea(),{id:s=`headlessui-label-${r}`,htmlFor:l=(null!=o?o:null==(n=i.props)?void 0:n.htmlFor),passive:c=!1,...u}=e,d=Ba(t);ba((()=>i.register(s)),[s,i.register]);let p=ka((e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),f=a||!1,h=It((()=>({...i.slot,disabled:f})),[i.slot,f]),v={ref:d,...i.props,id:s,htmlFor:l,onClick:p};return c&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in u&&delete u.onClick),Oa()({ourProps:v,theirProps:u,slot:h,defaultTag:l?"label":"div",name:i.name||"Label"})}));function es(e,t=!1){let[n,r]=Mt((()=>({})),{}),i=It((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(e)),[e,n]);return ba((()=>{if(!e)return;let t=new ResizeObserver(r);return t.observe(e),()=>{t.disconnect()}}),[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}Object.assign(Ja,{});let ts=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}};function ns(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...i){let o=t[e].call(n,...i);o&&(n=o,r.forEach((e=>e())))}}}function rs(e){return Xn(e.subscribe,e.getSnapshot,e.getSnapshot)}let is=new ts((()=>ns((()=>[]),{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let n=this.slice();return n.splice(t,1),n}})));function os(e,t){let n=is.get(t),r=Ht(),i=rs(n);if(ba((()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)}),[n,e]),!e)return!1;let o=i.indexOf(r),a=i.length;return-1===o&&(o=a,a+=1),o===a-1}let as=new Map,ss=new Map;function ls(e){var t;let n=null!=(t=ss.get(e))?t:0;return ss.set(e,n+1),0!==n||(as.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>cs(e)}function cs(e){var t;let n=null!=(t=ss.get(e))?t:1;if(1===n?ss.delete(e):ss.set(e,n-1),1!==n)return;let r=as.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,as.delete(e))}let us=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),ds=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var ps,fs,hs,vs=((hs=vs||{})[hs.First=1]="First",hs[hs.Previous=2]="Previous",hs[hs.Next=4]="Next",hs[hs.Last=8]="Last",hs[hs.WrapAround=16]="WrapAround",hs[hs.NoScroll=32]="NoScroll",hs[hs.AutoFocus=64]="AutoFocus",hs),ms=((fs=ms||{})[fs.Error=0]="Error",fs[fs.Overflow=1]="Overflow",fs[fs.Success=2]="Success",fs[fs.Underflow=3]="Underflow",fs),_s=((ps=_s||{})[ps.Previous=-1]="Previous",ps[ps.Next=1]="Next",ps);function gs(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(us)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var ys=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ys||{});function ws(e,t=0){var n;return e!==(null==(n=_a(e))?void 0:n.body)&&Pa(t,{0:()=>e.matches(us),1(){let t=e;for(;null!==t;){if(t.matches(us))return!0;t=t.parentElement}return!1}})}function bs(e){let t=_a(e);ya().nextFrame((()=>{t&&!ws(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}var xs=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(xs||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let ks=["textarea","input"].join(",");function Ss(e,t=e=>e){return e.slice().sort(((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Es(e,t){return function(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?Ss(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ds)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):gs(e);i.length>0&&a.length>1&&(a=a.filter((e=>!i.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),r=null!=r?r:o.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==o.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,ks))&&n}(s)&&s.select(),2}(gs(),t,{relativeTo:e})}function Cs(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ps(){return Cs()||/Android/gi.test(window.navigator.userAgent)}function Ts(e,t,n,r){let i=xa(n);Rt((()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}function As(e,t,n){let r=os(e,"outside-click"),i=xa(n),o=Gt((function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null===r||!r.getRootNode().contains(r)||!r.isConnected)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of o)if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return!ws(r,ys.Loose)&&-1!==r.tabIndex&&e.preventDefault(),i.current(e,r)}),[i,t]),a=Lt(null);Ts(r,"pointerdown",(e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target}),!0),Ts(r,"mousedown",(e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target}),!0),Ts(r,"click",(e=>{Ps()||a.current&&(o(e,(()=>a.current)),a.current=null)}),!0);let s=Lt({x:0,y:0});Ts(r,"touchstart",(e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY}),!0),Ts(r,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-s.current.x)>=30||Math.abs(n-s.current.y)>=30))return o(e,(()=>e.target instanceof HTMLElement?e.target:null))}),!0),function(e,t,n,r){let i=xa(n);Rt((()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}(r,"blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function Ms(...e){return It((()=>_a(...e)),[...e])}function Rs(e,t){return It((()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function Os(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=null!=(n=t.defaultView)?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function Ls(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Fs=ns((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:ya(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Ls(n)},i=[Cs()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=ya();n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))}let i=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),a=e.querySelector(i);a&&!r(a)&&(o=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;i!==t&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}:{},Os(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];i.forEach((({before:e})=>null==e?void 0:e(r))),i.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Is(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=rs(Fs),i=t?r.get(t):void 0,o=!!i&&i.count>0;ba((()=>{if(t&&e)return Fs.dispatch("PUSH",t,n),()=>Fs.dispatch("POP",t,n)}),[e,t])}(os(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}function Gs(e){return[e.screenX,e.screenY]}Fs.subscribe((()=>{let e=Fs.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&Fs.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Fs.dispatch("TEARDOWN",n)}}));var Ds,Ns;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(Ds=null==process?void 0:{})?void 0:Ds.NODE_ENV)&&void 0===(null==(Ns=null==Element?void 0:Element.prototype)?void 0:Ns.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var Hs=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Hs||{});function Ws(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function $s(e,t,n,r){let[i,o]=At(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=At(e),r=Gt((e=>n(e)),[t]),i=Gt((e=>n((t=>t|e))),[t]),o=Gt((e=>(t&e)===e),[t]),a=Gt((e=>n((t=>t&~e))),[n]),s=Gt((e=>n((t=>t^e))),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}(e&&i?3:0),c=Lt(!1),u=Lt(!1),d=wa();return ba((()=>{if(e)return n&&o(!0),t?(null==void 0||undefined.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=ya();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:i}),o.nextFrame((()=>{n(),o.requestAnimationFrame((()=>{o.add(function(e,t){var n,r;let i=ya();if(!e)return i.dispose;let o=!1;i.add((()=>{o=!0}));let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter((e=>e instanceof CSSTransition)))?r:[];return 0===a.length?(t(),i.dispose):(Promise.allSettled(a.map((e=>e.finished))).then((()=>{o||t()})),i.dispose)}(e,r))}))})),o.dispose}(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){u.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){u.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(c.current=!1,l(7),n||o(!1),null==void 0||undefined.call(r,n))}})):void(n&&s(3))}),[e,n,t,d]),e?[i,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Us(){return"undefined"!=typeof window}function js(e){return zs(e)?(e.nodeName||"").toLowerCase():"#document"}function Bs(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function qs(e){var t;return null==(t=(zs(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function zs(e){return!!Us()&&(e instanceof Node||e instanceof Bs(e).Node)}function Ks(e){return!!Us()&&(e instanceof Element||e instanceof Bs(e).Element)}function Qs(e){return!!Us()&&(e instanceof HTMLElement||e instanceof Bs(e).HTMLElement)}function Vs(e){return!(!Us()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Bs(e).ShadowRoot)}function Ys(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=nl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Xs(e){return["table","td","th"].includes(js(e))}function Zs(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(Ta){return!1}}))}function Js(e){const t=el(),n=Ks(e)?nl(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function el(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function tl(e){return["html","body","#document"].includes(js(e))}function nl(e){return Bs(e).getComputedStyle(e)}function rl(e){return Ks(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function il(e){if("html"===js(e))return e;const t=e.assignedSlot||e.parentNode||Vs(e)&&e.host||qs(e);return Vs(t)?t.host:t}function ol(e){const t=il(e);return tl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qs(t)&&Ys(t)?t:ol(t)}function al(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=ol(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Bs(i);if(o){const e=sl(a);return t.concat(a,a.visualViewport||[],Ys(i)?i:[],e&&n?al(e):[])}return t.concat(i,al(i,[],n))}function sl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const ll=Math.min,cl=Math.max,ul=Math.round,dl=Math.floor,pl=e=>({x:e,y:e}),fl={left:"right",right:"left",bottom:"top",top:"bottom"},hl={start:"end",end:"start"};function vl(e,t,n){return cl(e,ll(t,n))}function ml(e,t){return"function"==typeof e?e(t):e}function _l(e){return e.split("-")[0]}function gl(e){return e.split("-")[1]}function yl(e){return"x"===e?"y":"x"}function wl(e){return"y"===e?"height":"width"}function bl(e){return["top","bottom"].includes(_l(e))?"y":"x"}function xl(e){return yl(bl(e))}function kl(e){return e.replace(/start|end/g,(e=>hl[e]))}function Sl(e){return e.replace(/left|right|bottom|top/g,(e=>fl[e]))}function El(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Cl(e,t,n){let{reference:r,floating:i}=e;const o=bl(t),a=xl(t),s=wl(a),l=_l(t),c="y"===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,p=r[s]/2-i[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-i.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(gl(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function Pl(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=ml(t,e),h=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(f),v=s[p?"floating"===d?"reference":"floating":d],m=El(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(v)))||n?v:v.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),_="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,g=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),y=await(null==o.isElement?void 0:o.isElement(g))&&await(null==o.getScale?void 0:o.getScale(g))||{x:1,y:1},w=El(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:g,strategy:l}):_);return{top:(m.top-w.top+h.top)/y.y,bottom:(w.bottom-m.bottom+h.bottom)/y.y,left:(m.left-w.left+h.left)/y.x,right:(w.right-m.right+h.right)/y.x}}function Tl(e){const t=nl(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Qs(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=ul(n)!==o||ul(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Al(e){return Ks(e)?e:e.contextElement}function Ml(e){const t=Al(e);if(!Qs(t))return pl(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Tl(t);let a=(o?ul(n.width):n.width)/r,s=(o?ul(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Rl=pl(0);function Ol(e){const t=Bs(e);return el()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Rl}function Ll(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Al(e);let a=pl(1);t&&(r?Ks(r)&&(a=Ml(r)):a=Ml(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Bs(e))&&t}(o,n,r)?Ol(o):pl(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const e=Bs(o),t=r&&Ks(r)?Bs(r):r;let n=e,i=sl(n);for(;i&&r&&t!==n;){const e=Ml(i),t=i.getBoundingClientRect(),r=nl(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=a,n=Bs(i),i=sl(n)}}return El({width:u,height:d,x:l,y:c})}function Fl(e,t){const n=rl(e).scrollLeft;return t?t.left+n:Ll(qs(e)).left+n}function Il(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Fl(e,r)),y:r.top+t.scrollTop}}function Gl(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Bs(e),r=qs(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=el();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=qs(e),n=rl(e),r=e.ownerDocument.body,i=cl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=cl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Fl(e);const s=-n.scrollTop;return"rtl"===nl(r).direction&&(a+=cl(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(qs(e));else if(Ks(t))r=function(e,t){const n=Ll(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Qs(e)?Ml(e):pl(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=Ol(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return El(r)}function Dl(e,t){const n=il(e);return!(n===t||!Ks(n)||tl(n))&&("fixed"===nl(n).position||Dl(n,t))}function Nl(e,t,n){const r=Qs(t),i=qs(t),o="fixed"===n,a=Ll(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=pl(0);if(r||!r&&!o)if(("body"!==js(t)||Ys(i))&&(s=rl(t)),r){const e=Ll(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=Fl(i));const c=!i||r||o?pl(0):Il(i,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function Hl(e){return"static"===nl(e).position}function Wl(e,t){if(!Qs(e)||"fixed"===nl(e).position)return null;if(t)return t(e);let n=e.offsetParent;return qs(e)===n&&(n=n.ownerDocument.body),n}function $l(e,t){const n=Bs(e);if(Zs(e))return n;if(!Qs(e)){let t=il(e);for(;t&&!tl(t);){if(Ks(t)&&!Hl(t))return t;t=il(t)}return n}let r=Wl(e,t);for(;r&&Xs(r)&&Hl(r);)r=Wl(r,t);return r&&tl(r)&&Hl(r)&&!Js(r)?n:r||function(e){let t=il(e);for(;Qs(t)&&!tl(t);){if(Js(t))return t;if(Zs(t))return null;t=il(t)}return null}(e)||n}const Ul={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=qs(r),s=!!t&&Zs(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=pl(1);const u=pl(0),d=Qs(r);if((d||!d&&!o)&&(("body"!==js(r)||Ys(a))&&(l=rl(r)),Qs(r))){const e=Ll(r);c=Ml(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||o?pl(0):Il(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:qs,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?Zs(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=al(e,[],!1).filter((e=>Ks(e)&&"body"!==js(e))),i=null;const o="fixed"===nl(e).position;let a=o?il(e):e;for(;Ks(a)&&!tl(a);){const t=nl(a),n=Js(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||Ys(a)&&!n&&Dl(e,a))?r=r.filter((e=>e!==a)):i=t,a=il(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=Gl(t,n,i);return e.top=cl(r.top,e.top),e.right=ll(r.right,e.right),e.bottom=ll(r.bottom,e.bottom),e.left=cl(r.left,e.left),e}),Gl(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:$l,getElementRects:async function(e){const t=this.getOffsetParent||$l,n=this.getDimensions,r=await n(e.floating);return{reference:Nl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Tl(e);return{width:t,height:n}},getScale:Ml,isElement:Ks,isRTL:function(e){return"rtl"===nl(e).direction}};function jl(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Al(e),u=i||o?[...c?al(c):[],...al(t)]:[];u.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const i=qs(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-dl(u)+"px "+-dl(i.clientWidth-(c+d))+"px "+-dl(i.clientHeight-(u+p))+"px "+-dl(c)+"px",threshold:cl(0,ll(1,l))||1};let h=!0;function v(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(v,{...f,root:i.ownerDocument})}catch(Ta){r=new IntersectionObserver(v,f)}r.observe(e)}(!0),o}(c,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let v=l?Ll(e):null;return l&&function t(){const r=Ll(e);!v||r.x===v.x&&r.y===v.y&&r.width===v.width&&r.height===v.height||n();v=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const Bl=Pl,ql=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=_l(n),s=gl(n),l="y"===bl(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,d=ml(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},zl=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ml(e,t),c={x:n,y:r},u=await Pl(t,l),d=bl(_l(i)),p=yl(d);let f=c[p],h=c[d];if(o){const e="y"===p?"bottom":"right";f=vl(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=vl(h+u["y"===d?"top":"left"],h,h-u[e])}const v=s.fn({...t,[p]:f,[d]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:o,[d]:a}}}}}},Kl=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...m}=ml(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const _=_l(i),g=bl(s),y=_l(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=p||(y||!v?[Sl(s)]:function(e){const t=Sl(e);return[kl(e),t,kl(t)]}(s)),x="none"!==h;!p&&x&&b.push(...function(e,t,n,r){const i=gl(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(_l(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(kl)))),o}(s,v,h,w));const k=[s,...b],S=await Pl(t,m),E=[];let C=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[_]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=gl(e),i=xl(e),o=wl(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Sl(a)),[a,Sl(a)]}(i,a,w);E.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:i,overflows:E}],!E.every((e=>e<=0))){var P,T;const e=((null==(P=o.flip)?void 0:P.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(T=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(f){case"bestFit":{var A;const e=null==(A=C.filter((e=>{if(x){const t=bl(e.placement);return t===g||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},Ql=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...c}=ml(e,t),u=await Pl(t,c),d=_l(i),p=gl(i),f="y"===bl(i),{width:h,height:v}=o.floating;let m,_;"top"===d||"bottom"===d?(m=d,_=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(_=d,m="end"===p?"top":"bottom");const g=v-u.top-u.bottom,y=h-u.left-u.right,w=ll(v-u[m],g),b=ll(h-u[_],y),x=!t.middlewareData.shift;let k=w,S=b;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=y),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=g),x&&!p){const e=cl(u.left,0),t=cl(u.right,0),n=cl(u.top,0),r=cl(u.bottom,0);f?S=h-2*(0!==e||0!==t?e+t:cl(u.left,u.right)):k=v-2*(0!==n||0!==r?n+r:cl(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:k});const E=await a.getDimensions(s.floating);return h!==E.width||v!==E.height?{reset:{rects:!0}}:{}}}},Vl=(e,t,n)=>{const r=new Map,i={platform:Ul,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Cl(c,r,l),p=r,f={},h=0;for(let v=0;v<s.length;v++){const{name:n,fn:o}=s[v],{x:m,y:_,data:g,reset:y}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=_?_:d,f={...f,[n]:{...f[n],...g}},y&&h<=50&&(h++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):y.rects),({x:u,y:d}=Cl(c,p,l))),v=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:f}})(e,t,{...i,platform:o})};var Yl="undefined"!=typeof document?Ot:Rt;function Xl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Xl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!Xl(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Zl(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jl(e,t){const n=Zl(e);return Math.round(t*n)/n}function ec(e){const t=Lt(e);return Yl((()=>{t.current=e})),t}const tc=(e,t)=>({...ql(e),options:[e,t]}),nc=(e,t)=>({...Kl(e),options:[e,t]}),rc=(e,t)=>({...Ql(e),options:[e,t]}),ic={...er},oc=ic.useInsertionEffect||(e=>e());function ac(e){const t=Lt((()=>{}));return oc((()=>{t.current=e})),Gt((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var sc="undefined"!=typeof document?Ot:Rt;let lc=!1,cc=0;const uc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+cc++;const dc=ic.useId||function(){const[e,t]=At((()=>lc?uc():void 0));return sc((()=>{null==e&&t(uc())}),[]),Rt((()=>{lc=!0}),[]),e};const pc=at(null),fc=at(null),hc="data-floating-ui-focusable";function vc(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=dc(),o=Lt({}),[a]=At((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=((null==(l=Dt(pc))?void 0:l.id)||null);var l;const[c,u]=At(r.reference),d=ac(((e,t,r)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),p=It((()=>({setPositionReference:u})),[]),f=It((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return It((()=>({dataRef:o,open:t,onOpenChange:d,elements:f,events:a,floatingId:i,refs:p})),[t,d,f,a,i,p])}function mc(e){void 0===e&&(e={});const{nodeId:t}=e,n=vc({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=At(null),[s,l]=At(null),c=(null==i?void 0:i.domReference)||o,u=Lt(null),d=Dt(fc);sc((()=>{c&&(u.current=c)}),[c]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=At({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=At(r);Xl(p,r)||f(r);const[h,v]=At(null),[m,_]=At(null),g=Gt((e=>{e!==x.current&&(x.current=e,v(e))}),[]),y=Gt((e=>{e!==k.current&&(k.current=e,_(e))}),[]),w=o||h,b=a||m,x=Lt(null),k=Lt(null),S=Lt(u),E=null!=l,C=ec(l),P=ec(i),T=ec(c),A=Gt((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),Vl(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};M.current&&!Xl(S.current,t)&&(S.current=t,Bn((()=>{d(t)})))}))}),[p,t,n,P,T]);Yl((()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const M=Lt(!1);Yl((()=>(M.current=!0,()=>{M.current=!1})),[]),Yl((()=>{if(w&&(x.current=w),b&&(k.current=b),w&&b){if(C.current)return C.current(w,b,A);A()}}),[w,b,A,C,E]);const R=It((()=>({reference:x,floating:k,setReference:g,setFloating:y})),[g,y]),O=It((()=>({reference:w,floating:b})),[w,b]),L=It((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=Jl(O.floating,u.x),r=Jl(O.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Zl(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,O.floating,u.x,u.y]);return It((()=>({...u,update:A,refs:R,elements:O,floatingStyles:L})),[u,A,R,O,L])}({...e,elements:{...i,...s&&{reference:s}}}),f=Gt((e=>{const t=Ks(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),h=Gt((e=>{(Ks(e)||null===e)&&(u.current=e,a(e)),(Ks(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Ks(e))&&p.refs.setReference(e)}),[p.refs]),v=It((()=>({...p.refs,setReference:h,setPositionReference:f,domReference:u})),[p.refs,h,f]),m=It((()=>({...p.elements,domReference:c})),[p.elements,c]),_=It((()=>({...p,...r,refs:v,elements:m,nodeId:t})),[p,v,m,t,r]);return sc((()=>{r.dataRef.current.floatingContext=_;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=_)})),It((()=>({...p,context:_,refs:v,elements:m})),[p,v,m,_])}const _c="active",gc="selected";function yc(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[_c]:t,[gc]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[hc]:""},...o,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var a;i&&[_c,gc].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=o)})),e):e),{})}}function wc(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}function bc(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:s}=t,l=ac(s),c=Lt(!1),u=Lt(null),d=Lt(null);Rt((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,r=o.current.top>=-.5,i=o.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=n<0?-1:1,c=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!i&&n<0?(e.preventDefault(),Bn((()=>{l((e=>e+Math[c](n,a*s)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==a?void 0:a.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{u.current=t.scrollTop,null!=o.current&&(d.current={...o.current})})),()=>{u.current=null,d.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,r.floating,o,a,l]);const p=It((()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const e=(null==a?void 0:a.current)||r.floating;if(o.current&&e&&c.current){if(null!==u.current){const t=e.scrollTop-u.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&Bn((()=>l((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[r.floating,l,o,a]);return It((()=>i?{floating:p}:{}),[i,p])}let xc=at({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});xc.displayName="FloatingContext";let kc=at(null);kc.displayName="PlacementContext";function Sc({children:e,enabled:t=!0}){let[n,r]=At(null),[i,o]=At(0),a=Lt(null),[s,l]=At(null);!function(e){ba((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(s);let c=t&&null!==n&&null!==s,{to:u="bottom",gap:d=0,offset:p=0,padding:f=0,inner:h}=function(e,t){var n,r,i;let o=Ec(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=Ec(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=Ec(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:s}}(n,s),[v,m="center"]=u.split(" ");ba((()=>{c&&o(0)}),[c]);let{refs:_,floatingStyles:g,context:y}=mc({open:c,placement:"selection"===v?"center"===m?"bottom":`bottom-${m}`:"center"===m?`${v}`:`${v}-${m}`,strategy:"absolute",transform:!1,middleware:[tc({mainAxis:"selection"===v?0:d,crossAxis:p}),(k={padding:f},{...zl(k),options:[k,S]}),"selection"!==v&&nc({padding:f}),"selection"===v&&h?(x={...h,padding:f,overflowRef:a,offset:i,minItemsVisible:4,referenceOverflowThreshold:f,onFallbackChange(e){var t,n;if(!e)return;let r=y.elements.floating;if(!r)return;let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,a=Math.min(4,r.childElementCount),s=0,l=0;for(let o of null!=(n=null==(t=y.elements.floating)?void 0:t.childNodes)?n:[])if(o instanceof HTMLElement){let e=o.offsetTop,t=e+o.clientHeight+i,n=r.scrollTop,c=n+r.clientHeight;if(!(e>=n&&t<=c)){l=Math.max(0,Math.min(t,c)-Math.max(e,n)),s=o.clientHeight;break}a--}a>=1&&o((e=>{let t=s*a-l+i;return e>=t?e:t}))}},{name:"inner",options:x,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:i=0,index:o=0,minItemsVisible:a=4,referenceOverflowThreshold:s=0,scrollRef:l,...c}=ml(x,e),{rects:u,elements:{floating:d}}=e,p=t.current[o],f=(null==l?void 0:l.current)||d,h=d.clientTop||f.clientTop,v=0!==d.clientTop,m=0!==f.clientTop,_=d===f;if(!p)return{};const g={...e,...await tc(-p.offsetTop-d.clientTop-u.reference.height/2-p.offsetHeight/2-i).fn(e)},y=await Bl(wc(g,f.scrollHeight+h+d.clientTop),c),w=await Bl(g,{...c,elementContext:"reference"}),b=cl(0,y.top),k=g.y+b,S=f.scrollHeight>f.clientHeight,E=(S?e=>e:ul)(cl(0,f.scrollHeight+(v&&_||m?2*h:0)-b-cl(0,y.bottom)));if(f.style.maxHeight=E+"px",f.scrollTop=b,r){const e=S&&f.offsetHeight<p.offsetHeight*a-1||w.top>=-s||w.bottom>=-s;Bn((()=>r(e)))}return n&&(n.current=await Bl(wc({...g,y:k},f.offsetHeight+h+d.clientTop),c)),{y:k}}}):null,rc({padding:f,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:jl}),[w=v,b=m]=y.placement.split("-");var x,k,S;"selection"===v&&(w="selection");let E=It((()=>({anchor:[w,b].filter(Boolean).join(" ")})),[w,b]),C=bc(y,{overflowRef:a,onChange:o}),{getReferenceProps:P,getFloatingProps:T}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),i=Gt((t=>yc(t,e,"reference")),t),o=Gt((t=>yc(t,e,"floating")),n),a=Gt((t=>yc(t,e,"item")),r);return It((()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a})),[i,o,a])}([C]),A=ka((e=>{l(e),_.setFloating(e)}));return Ge(kc.Provider,{value:r},Ge(xc.Provider,{value:{setFloating:A,setReference:_.setReference,styles:g,getReferenceProps:P,getFloatingProps:T,slot:E}},e))}function Ec(e,t,n=void 0){let r=wa(),i=ka(((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let i=Pc(e,t);return[i,n=>{let o=Cc(e);{let a=o.map((e=>window.getComputedStyle(t).getPropertyValue(e)));r.requestAnimationFrame((function s(){r.nextFrame(s);let l=!1;for(let[e,n]of o.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,l=!0;break}}if(!l)return;let c=Pc(e,t);i!==c&&(n(c),i=c)}))}return r.dispose}]}return[n,null]})),o=It((()=>i(e,t)[0]),[e,t]),[a=o,s]=At();return ba((()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)}),[e,t]),a}function Cc(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...Cc(r)]:[n]}return[]}function Pc(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let Tc=at(null);Tc.displayName="OpenClosedContext";var Ac=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ac||{});function Mc({value:e,children:t}){return Jn.createElement(Tc.Provider,{value:e},t)}var Rc,Oc=((Rc=Oc||{})[Rc.First=0]="First",Rc[Rc.Previous=1]="Previous",Rc[Rc.Next=2]="Next",Rc[Rc.Last=3]="Last",Rc[Rc.Specific=4]="Specific",Rc[Rc.Nothing=5]="Nothing",Rc);function Lc(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===i&&(i=n.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function Fc(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in er&&(e=>e.useSyncExternalStore)(er)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=At(ma.isHandoffComplete);return t&&!1===ma.isHandoffComplete&&n(!1),Rt((()=>{!0!==t&&n(!0)}),[t]),Rt((()=>ma.handoff()),[]),!e&&t}let Ic=at(!1);function Gc(e){let t=Dt(Ic),n=Dt(Wc),r=Ms(e),[i,o]=At((()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(ma.isServer)return null;let i=null==r?void 0:r.getElementById("headlessui-portal-root");if(i)return i;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return Rt((()=>{null!==i&&(null!=r&&r.body.contains(i)||null==r||r.body.appendChild(i))}),[i,r]),Rt((()=>{t||null!==n&&o(n.current)}),[n,o,t]),i}let Dc=He,Nc=Da((function(e,t){let n=e,r=Lt(null),i=Ba(function(e,t=!0){return Object.assign(e,{[ja]:t})}((e=>{r.current=e})),t),o=Ms(r),a=Gc(r),[s]=At((()=>{var e;return ma.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null})),l=Dt($c),c=Fc();ba((()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))}),[a,s]),ba((()=>{if(s&&l)return l.register(s)}),[l,s]),function(e){let t=ka(e),n=Lt(!1);Rt((()=>(n.current=!1,()=>{n.current=!0,ga((()=>{n.current&&t()}))})),[t])}((()=>{var e;!a||!s||(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}));let u=Oa();return c&&a&&s?_n(u({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Dc,name:"Portal"}),s):null}));let Hc=He,Wc=at(null);let $c=at(null),Uc=Da((function(e,t){let n=Ba(t),{enabled:r=!0,...i}=e,o=Oa();return r?Jn.createElement(Nc,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Dc,name:"Portal"})})),jc=Da((function(e,t){let{target:n,...r}=e,i={ref:Ba(t)},o=Oa();return Jn.createElement(Wc.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Hc,name:"Popover.Group"}))})),Bc=Object.assign(Uc,{Group:jc});let qc=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function zc(e){var t,n;let r=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?null!=(n=i.innerText)?n:"":r;return qc.test(a)&&(a=a.replace(qc,"")),a}function Kc(e){let t=Lt(""),n=Lt("");return ka((()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():zc(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return zc(e).trim()}(r).trim().toLowerCase();return t.current=i,n.current=o,o}))}var Qc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Qc||{}),Vc=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Vc||{}),Yc=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(Yc||{});function Xc(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=Ss(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),i=n?r.indexOf(n):null;return-1===i&&(i=null),{items:r,activeItemIndex:i}}let Zc={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n,r,i,o,a;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===Oc.Nothing)return{...s,activeItemIndex:null};if(t.focus===Oc.Specific)return{...s,activeItemIndex:e.items.findIndex((e=>e.id===t.id))};if(t.focus===Oc.Previous){let n=e.activeItemIndex;if(null!==n){let o=e.items[n].dataRef.current.domRef,a=Lc(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.items[a].dataRef.current.domRef;if((null==(r=o.current)?void 0:r.previousElementSibling)===t.current||null===(null==(i=t.current)?void 0:i.previousElementSibling))return{...s,activeItemIndex:a}}}}else if(t.focus===Oc.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,i=Lc(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[i].dataRef.current.domRef;if((null==(o=r.current)?void 0:o.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...s,activeItemIndex:i}}}}let l=Xc(e),c=Lc(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeItemIndex:c}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled})),o=i?e.items.indexOf(i):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=Xc(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=Xc(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element}},Jc=at(null);function eu(e){let t=Dt(Jc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eu),t}return t}function tu(e,t){return Pa(t.type,Zc,e,t)}Jc.displayName="MenuContext";let nu=He;let ru=Ma.RenderStrategy|Ma.Static;let iu=He;let ou=Da((function(e,t){let{__demoMode:n=!1,...r}=e,i=Mt(tu,{__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:o,itemsElement:a,buttonElement:s},l]=i,c=Ba(t);As(0===o,[s,a],((e,t)=>{l({type:1}),ws(t,ys.Loose)||(e.preventDefault(),null==s||s.focus())}));let u=ka((()=>{l({type:1})})),d=It((()=>({open:0===o,close:u})),[o,u]),p={ref:c},f=Oa();return Jn.createElement(Sc,null,Jn.createElement(Jc.Provider,{value:i},Jn.createElement(Mc,{value:Pa(o,{0:Ac.Open,1:Ac.Closed})},f({ourProps:p,theirProps:r,slot:d,defaultTag:nu,name:"Menu"}))))})),au=Da((function(e,t){var n;let r=Ht(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:a=!1,...s}=e,[l,c]=eu("Menu.Button"),u=Dt(xc).getReferenceProps,d=Ba(t,Dt(xc).setReference,ka((e=>c({type:7,element:e})))),p=ka((e=>{switch(e.key){case Va.Space:case Va.Enter:case Va.ArrowDown:e.preventDefault(),e.stopPropagation(),Bn((()=>c({type:0}))),c({type:2,focus:Oc.First});break;case Va.ArrowUp:e.preventDefault(),e.stopPropagation(),Bn((()=>c({type:0}))),c({type:2,focus:Oc.Last})}})),f=ka((e=>{if(e.key===Va.Space)e.preventDefault()})),h=ka((e=>{var t;if(Ua(e.currentTarget))return e.preventDefault();o||(0===l.menuState?(Bn((()=>c({type:1}))),null==(t=l.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c({type:0})))})),{isFocusVisible:v,focusProps:m}=fa({autoFocus:a}),{isHovered:_,hoverProps:g}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=At(!1),s=Lt({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Rt(pa,[]);let{hoverProps:l,triggerHoverEnd:c}=It((()=>{let e=(e,r)=>{if(s.pointerType=r,i||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let o=e.currentTarget;s.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),a(!0)},o=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{la&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):(l.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||la||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:l,triggerHoverEnd:o}}),[t,n,r,i,s]);return Rt((()=>{i&&c({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:l,isHovered:o}}({isDisabled:o}),{pressed:y,pressProps:w}=function({disabled:e=!1}={}){let t=Lt(null),[n,r]=At(!1),i=wa(),o=ka((()=>{t.current=null,r(!1),i.dispose()})),a=ka((e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=_a(e.currentTarget);i.addEventListener(n,"pointerup",o,!1),i.addEventListener(n,"pointermove",(e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}}),!1),i.addEventListener(n,"pointercancel",o,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}({disabled:o}),b=It((()=>({open:0===l.menuState,active:y||0===l.menuState,disabled:o,hover:_,focus:v,autofocus:a})),[l,_,v,y,o,a]),x=Ga(u(),{ref:d,id:i,type:Rs(e,l.buttonElement),"aria-haspopup":"menu","aria-controls":null==(n=l.itemsElement)?void 0:n.id,"aria-expanded":0===l.menuState,disabled:o||void 0,autoFocus:a,onKeyDown:p,onKeyUp:f,onClick:h},m,g,w);return Oa()({ourProps:x,theirProps:s,slot:b,defaultTag:"button",name:"Menu.Button"})})),su=Da((function(e,t){var n,r;let i=Ht(),{id:o=`headlessui-menu-items-${i}`,anchor:a,portal:s=!1,modal:l=!0,transition:c=!1,...u}=e,d=function(e){return It((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(a),[p,f]=eu("Menu.Items"),[h,v]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=Dt(kc),n=It((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);ba((()=>{null==t||t(null!=n?n:null)}),[t,n]);let r=Dt(xc);return It((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}(d),m=function(){let{getFloatingProps:e,slot:t}=Dt(xc);return Gt(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}(),[_,g]=At(null),y=Ba(t,d?h:null,ka((e=>f({type:8,element:e}))),g),w=Ms(p.itemsElement);d&&(s=!0);let b=Dt(Tc),[x,k]=$s(c,_,null!==b?(b&Ac.Open)===Ac.Open:0===p.menuState);!function(e,t,n){let r=xa((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));Rt((()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let i=ya();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>r.current(n)));e.observe(n),i.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>r.current(n)));e.observe(n),i.add((()=>e.disconnect()))}return()=>i.dispose()}),[t,r,e])}(x,p.buttonElement,(()=>{f({type:1})})),Is(!p.__demoMode&&(l&&0===p.menuState),w),function(e,{allowed:t,disallowed:n}={}){let r=os(e,"inert-others");ba((()=>{var e,i;if(!r)return;let o=ya();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add(ls(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let t of a){if(!t)continue;let e=_a(t);if(!e)continue;let n=t.parentElement;for(;n&&n!==e.body;){for(let e of n.children)a.some((t=>e.contains(t)))||o.add(ls(e));n=n.parentElement}}return o.dispose}),[r,t,n])}(!p.__demoMode&&(l&&0===p.menuState),{allowed:Gt((()=>[p.buttonElement,p.itemsElement]),[p.buttonElement,p.itemsElement])});let S=!function(e,t){let n=Lt({left:0,top:0});if(ba((()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)}),[e,t]),null==t||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}(0!==p.menuState,p.buttonElement)&&x;Rt((()=>{let e=p.itemsElement;e&&0===p.menuState&&e!==(null==w?void 0:w.activeElement)&&e.focus({preventScroll:!0})}),[p.menuState,p.itemsElement,w]),function(e,{container:t,accept:n,walk:r}){let i=Lt(n),o=Lt(r);Rt((()=>{i.current=n,o.current=r}),[n,r]),ba((()=>{if(!t||!e)return;let n=_a(t);if(!n)return;let r=i.current,a=o.current,s=Object.assign((e=>r(e)),{acceptNode:r}),l=n.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)}),[t,e,i,o])}(0===p.menuState,{container:p.itemsElement,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let E=wa(),C=ka((e=>{var t,n,r;switch(E.dispose(),e.key){case Va.Space:if(""!==p.searchQuery)return e.preventDefault(),e.stopPropagation(),f({type:3,value:e.key});case Va.Enter:if(e.preventDefault(),e.stopPropagation(),f({type:1}),null!==p.activeItemIndex){let{dataRef:e}=p.items[p.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}bs(p.buttonElement);break;case Va.ArrowDown:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:Oc.Next});case Va.ArrowUp:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:Oc.Previous});case Va.Home:case Va.PageUp:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:Oc.First});case Va.End:case Va.PageDown:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:Oc.Last});case Va.Escape:e.preventDefault(),e.stopPropagation(),Bn((()=>f({type:1}))),null==(r=p.buttonElement)||r.focus({preventScroll:!0});break;case Va.Tab:e.preventDefault(),e.stopPropagation(),Bn((()=>f({type:1}))),Es(p.buttonElement,e.shiftKey?vs.Previous:vs.Next);break;default:1===e.key.length&&(f({type:3,value:e.key}),E.setTimeout((()=>f({type:4})),350))}})),P=ka((e=>{if(e.key===Va.Space)e.preventDefault()})),T=It((()=>({open:0===p.menuState})),[p.menuState]),A=Ga(d?m():{},{"aria-activedescendant":null===p.activeItemIndex||null==(n=p.items[p.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=p.buttonElement)?void 0:r.id,id:o,onKeyDown:C,onKeyUp:P,role:"menu",tabIndex:0===p.menuState?0:void 0,ref:y,style:{...u.style,...v,"--button-width":es(p.buttonElement,!0).width},...Ws(k)}),M=Oa();return Jn.createElement(Bc,{enabled:!!s&&(e.static||x)},M({ourProps:A,theirProps:u,slot:T,defaultTag:"div",features:ru,visible:S,name:"Menu.Items"}))})),lu=Da((function(e,t){let n=Ht(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,[a,s]=eu("Menu.Item"),l=null!==a.activeItemIndex&&a.items[a.activeItemIndex].id===r,c=Lt(null),u=Ba(t,c);ba((()=>{if(!a.__demoMode&&0===a.menuState&&l&&0!==a.activationTrigger)return ya().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=c.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[a.__demoMode,c,l,a.menuState,a.activationTrigger,a.activeItemIndex]);let d=Kc(c),p=Lt({disabled:i,domRef:c,get textValue(){return d()}});ba((()=>{p.current.disabled=i}),[p,i]),ba((()=>(s({type:5,id:r,dataRef:p}),()=>s({type:6,id:r}))),[p,r]);let f=ka((()=>{s({type:1})})),h=ka((e=>{if(i)return e.preventDefault();s({type:1}),bs(a.buttonElement)})),v=ka((()=>{if(i)return s({type:2,focus:Oc.Nothing});s({type:2,focus:Oc.Specific,id:r})})),m=function(){let e=Lt([-1,-1]);return{wasMoved(t){let n=Gs(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Gs(t)}}}(),_=ka((e=>{m.update(e),!i&&(l||s({type:2,focus:Oc.Specific,id:r,trigger:0}))})),g=ka((e=>{m.wasMoved(e)&&(i||l||s({type:2,focus:Oc.Specific,id:r,trigger:0}))})),y=ka((e=>{m.wasMoved(e)&&(i||l&&s({type:2,focus:Oc.Nothing}))})),[w,b]=Za(),[x,k]=function(){let[e,t]=At([]);return[e.length>0?e.join(" "):void 0,It((()=>function(e){let n=ka((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=It((()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value})),[n,e.slot,e.name,e.props,e.value]);return Jn.createElement(qa.Provider,{value:r},e.children)}),[t])]}(),S=It((()=>({active:l,focus:l,disabled:i,close:f})),[l,i,f]),E={id:r,ref:u,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":w,"aria-describedby":x,disabled:void 0,onClick:h,onFocus:v,onPointerEnter:_,onMouseEnter:_,onPointerMove:g,onMouseMove:g,onPointerLeave:y,onMouseLeave:y},C=Oa();return Jn.createElement(b,null,Jn.createElement(k,null,C({ourProps:E,theirProps:o,slot:S,defaultTag:iu,name:"Menu.Item"})))})),cu=Da((function(e,t){let[n,r]=Za(),i=e,o={ref:t,"aria-labelledby":n,role:"group"},a=Oa();return Jn.createElement(r,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Menu.Section"}))})),uu=Da((function(e,t){let n=Ht(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=Xa();ba((()=>o.register(r)),[r,o.register]);let a={id:r,ref:t,role:"presentation",...o.props};return Oa()({ourProps:a,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})})),du=Da((function(e,t){let n=e,r={ref:t,role:"separator"};return Oa()({ourProps:r,theirProps:n,slot:{},defaultTag:"div",name:"Menu.Separator"})})),pu=Object.assign(ou,{Button:au,Items:su,Item:lu,Section:cu,Heading:uu,Separator:du});const fu=e=>xo(vu,{children:ko(pu,{as:"div",children:[xo("div",{children:ko(au,{css:{display:"flex",alignItems:"center",borderRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))",":hover":{"--tw-text-opacity":"1",color:"rgb(75 85 99 / var(--tw-text-opacity))"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#f3f4f6"}},children:[xo("span",{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Open options"}),xo(Ro,{"aria-hidden":"true",css:{width:"1.25rem",height:"1.25rem"}})]})}),xo(su,{transition:!0,className:"right-45 w-30",css:{position:"fixed",zIndex:"10",marginTop:"0.5rem",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-color":"rgb(0 0 0 / 0.05)",transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"&[data-closed]":{"--tw-scale-x":".95","--tw-scale-y":".95",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))",opacity:"0"},"&[data-enter]":{transitionDuration:"100ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"},"&[data-leave]":{transitionDuration:"75ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"}},children:e.items.map(((t,n)=>xo(lu,{children:xo("button",{type:"button",css:{display:"block",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))","&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",outline:"2px solid transparent",outlineOffset:"2px"}},onClick:()=>{t.onClick(e.id)},children:t.label},n)},n)))})]})}),hu=e=>{const t=new Date(e.value);return ko(vu,{children:[t.toLocaleDateString(),xo("br",{}),t.toLocaleTimeString()]})},vu=mo.td`
|
|
1
|
+
var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError("Cannot "+n),__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,r)=>(__accessCheck(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),__privateMethod=(e,t,n)=>(__accessCheck(e,t,"access private method"),n),__privateWrapper=(e,t,n,r)=>({set _(r){__privateSet(e,t,r,n)},get _(){return __privateGet(e,t,r)}});!function(){"use strict";var e,t,n,r,i,o,a,s,l,c,u,d,p,f,h,v,m,_,g,y,w,b,x,k,S,E,C,P,T,A,M,R,O,L,F,I,G,D,N,H,W,$,U,j,B,q,z,K,Q,V,Y,X,Z,J,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,pe,fe,he,ve,me,_e,ge,ye,we,be,xe,ke,Se,Ee,Ce,Pe,Te,Ae,Me={},Re=[],Oe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Le=Array.isArray;function Fe(e,t){for(var n in t)e[n]=t[n];return e}function Ie(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ge(e,t,n){var r,i,o,a={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?ye.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return De(e,a,r,i,null)}function De(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++be:i,__i:-1,__u:0};return null==i&&null!=we.vnode&&we.vnode(o),o}function Ne(){return{current:null}}function He(e){return e.children}function We(e,t){this.props=e,this.context=t}function $e(e,t){if(null==t)return e.__?$e(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?$e(e):null}function Ue(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Ue(e)}}function je(e){(!e.__d&&(e.__d=!0)&&xe.push(e)&&!Be.__r++||ke!==we.debounceRendering)&&((ke=we.debounceRendering)||Se)(Be)}function Be(){var e,t,n,r,i,o,a,s;for(xe.sort(Ee);e=xe.shift();)e.__d&&(t=xe.length,r=void 0,o=(i=(n=e).__v).__e,a=[],s=[],n.__P&&((r=Fe({},i)).__v=i.__v+1,we.vnode&&we.vnode(r),Ze(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,a,null==o?$e(i):o,!!(32&i.__u),s),r.__v=i.__v,r.__.__k[r.__i]=r,Je(a,r,s),r.__e!=o&&Ue(r)),xe.length>t&&xe.sort(Ee));Be.__r=0}function qe(e,t,n,r,i,o,a,s,l,c,u){var d,p,f,h,v,m=r&&r.__k||Re,_=t.length;for(n.__d=l,function(e,t,n){var r,i,o,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)null!=(i=t[r])&&"boolean"!=typeof i&&"function"!=typeof i?(a=r+d,(i=e.__k[r]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?De(null,i,null,null,null):Le(i)?De(He,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?De(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,-1!==(s=i.__i=Qe(i,n,a,u))&&(u--,(o=n[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==a&&(s==a-1?d--:s==a+1?d++:(s>a?d--:d++,i.__u|=65536))):i=e.__k[r]=null;if(u)for(r=0;r<c;r++)null!=(o=n[r])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=$e(o)),tt(o,o))}(n,t,m),l=n.__d,d=0;d<_;d++)null!=(f=n.__k[d])&&(p=-1===f.__i?Me:m[f.__i]||Me,f.__i=d,Ze(e,f,p,i,o,a,s,l,c,u),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&et(p.ref,null,f),u.push(f.ref,f.__c||h,f)),null==v&&null!=h&&(v=h),65536&f.__u||p.__k===f.__k?l=ze(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:h&&(l=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=v}function ze(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=ze(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=$e(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function Ke(e,t){return t=t||[],null==e||"boolean"==typeof e||(Le(e)?e.some((function(e){Ke(e,t)})):t.push(e)),t}function Qe(e,t,n,r){var i=e.key,o=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if(r>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s++}}return-1}function Ve(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||Oe.test(t)?n:n+"px"}function Ye(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ve(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ve(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Ce,e.addEventListener(t,o?Te:Pe,o)):e.removeEventListener(t,o?Te:Pe,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function Xe(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=Ce++;else if(t.t<n.u)return;return n(we.event?we.event(t):t)}}}function Ze(e,t,n,r,i,o,a,s,l,c){var u,d,p,f,h,v,m,_,g,y,w,b,x,k,S,E,C=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(u=we.__b)&&u(t);e:if("function"==typeof C)try{if(_=t.props,g="prototype"in C&&C.prototype.render,y=(u=C.contextType)&&r[u.__c],w=u?y?y.props.value:u.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(g?t.__c=d=new C(_,w):(t.__c=d=new We(_,w),d.constructor=C,d.render=nt),y&&y.sub(d),d.props=_,d.state||(d.state={}),d.context=w,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),g&&null==d.__s&&(d.__s=d.state),g&&null!=C.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Fe({},d.__s)),Fe(d.__s,C.getDerivedStateFromProps(_,d.__s))),f=d.props,h=d.state,d.__v=t,p)g&&null==C.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),g&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(g&&null==C.getDerivedStateFromProps&&_!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,w)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,w),g&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,h,v)}))}if(d.context=w,d.props=_,d.__P=e,d.__e=!1,x=we.__r,k=0,g){for(d.state=d.__s,d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do{d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(r=Fe(Fe({},r),d.getChildContext())),g&&!p&&null!=d.getSnapshotBeforeUpdate&&(v=d.getSnapshotBeforeUpdate(f,h)),qe(e,Le(E=null!=u&&u.type===He&&null==u.key?u.props.children:u)?E:[E],t,n,r,i,o,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),m&&(d.__E=d.__=null)}catch(P){if(t.__v=null,l||null!=o){for(t.__u|=l?160:128;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;we.__e(P,t,n)}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,o,a,s,l){var c,u,d,p,f,h,v,m=n.props,_=t.props,g=t.type;if("svg"===g?i="http://www.w3.org/2000/svg":"math"===g?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=o)for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!g&&(g?f.localName===g:3===f.nodeType)){e=f,o[c]=null;break}if(null==e){if(null===g)return document.createTextNode(_);e=document.createElementNS(i,g,_.is&&_),s&&(we.__m&&we.__m(t,o),s=!1),o=null}if(null===g)m===_||s&&e.data===_||(e.data=_);else{if(o=o&&ye.call(e.childNodes),m=n.props||Me,!s&&null!=o)for(m={},c=0;c<e.attributes.length;c++)m[(f=e.attributes[c]).name]=f.value;for(c in m)if(f=m[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=f;else if(!(c in _)){if("value"==c&&"defaultValue"in _||"checked"==c&&"defaultChecked"in _)continue;Ye(e,c,null,f,i)}for(c in _)f=_[c],"children"==c?p=f:"dangerouslySetInnerHTML"==c?u=f:"value"==c?h=f:"checked"==c?v=f:s&&"function"!=typeof f||m[c]===f||Ye(e,c,f,m[c],i);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),qe(e,Le(p)?p:[p],t,n,r,"foreignObject"===g?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&$e(n,0),s,l),null!=o)for(c=o.length;c--;)Ie(o[c]);s||(c="value","progress"===g&&null==h?e.removeAttribute("value"):void 0!==h&&(h!==e[c]||"progress"===g&&!h||"option"===g&&h!==m[c])&&Ye(e,c,h,m[c],i),c="checked",void 0!==v&&v!==e[c]&&Ye(e,c,v,m[c],i))}return e}(n.__e,t,n,r,i,o,a,l,c);(u=we.diffed)&&u(t)}function Je(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)et(n[r],n[++r],n[++r]);we.__c&&we.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){we.__e(n,t.__v)}}))}function et(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(i){we.__e(i,n)}}function tt(e,t,n){var r,i;if(we.unmount&&we.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||et(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){we.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&tt(r[i],t,n||"function"!=typeof e.type);n||Ie(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function nt(e,t,n){return this.constructor(e,n)}function rt(e,t,n){var r,i,o,a;we.__&&we.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,o=[],a=[],Ze(t,e=(!r&&n||t).__k=Ge(He,null,[e]),i||Me,Me,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?ye.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,a),Je(o,e,a)}function it(e,t){rt(e,t,it)}function ot(e,t,n){var r,i,o,a,s=Fe({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=void 0===t[o]&&void 0!==a?a[o]:t[o];return arguments.length>2&&(s.children=arguments.length>3?ye.call(arguments,2):n),De(e.type,s,r||e.key,i||e.ref,null)}function at(e,t){var n={__c:t="__cC"+Ae++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,je(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function st(){return(st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}ye=Re.slice,we={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},be=0,We.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Fe({},this.state),"function"==typeof e&&(e=e(Fe({},n),this.props)),e&&Fe(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),je(this))},We.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),je(this))},We.prototype.render=He,xe=[],Se="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ee=function(e,t){return e.__v.__b-t.__v.__b},Be.__r=0,Ce=0,Pe=Xe(!1),Te=Xe(!0),Ae=0;var lt=["context","children"];function ct(e){return this.getChildContext=function(){return e.context},ot(e.children,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,lt))}function ut(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Ge(ct,st({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],i={},o=0,a=t.attributes,s=t.childNodes;for(o=a.length;o--;)"slot"!==a[o].name&&(i[a[o].name]=a[o].value,i[dt(a[o].name)]=a[o].value);for(o=s.length;o--;){var l=e(s[o],null),c=s[o].slot;c?i[c]=Ge(ht,{name:c},l):r[o]=l}var u=n?Ge(ht,null,r):r;return Ge(n||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?it:rt)(this._vdom,this._root)}function dt(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function pt(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[dt(e)]=n,this._vdom=ot(this._vdom,r),rt(this._vdom,this._root)}}function ft(){rt(this._vdom=null,this._root)}function ht(e,t){var n=this;return Ge("slot",st({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}var vt,mt,_t,gt,yt=0,wt=[],bt=we,xt=bt.__b,kt=bt.__r,St=bt.diffed,Et=bt.__c,Ct=bt.unmount,Pt=bt.__;function Tt(e,t){bt.__h&&bt.__h(mt,e,yt||t),yt=0;var n=mt.__H||(mt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function At(e){return yt=1,Mt(zt,e)}function Mt(e,t,n){var r=Tt(vt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):zt(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=mt,!mt.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};mt.u=!0;var o=mt.shouldComponentUpdate,a=mt.componentWillUpdate;mt.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}a&&a.call(this,e,t,n)},mt.shouldComponentUpdate=i}return r.__N||r.__}function Rt(e,t){var n=Tt(vt++,3);!bt.__s&&qt(n.__H,t)&&(n.__=e,n.i=t,mt.__H.__h.push(n))}function Ot(e,t){var n=Tt(vt++,4);!bt.__s&&qt(n.__H,t)&&(n.__=e,n.i=t,mt.__h.push(n))}function Lt(e){return yt=5,It((function(){return{current:e}}),[])}function Ft(e,t,n){yt=6,Ot((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function It(e,t){var n=Tt(vt++,7);return qt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Gt(e,t){return yt=8,It((function(){return e}),t)}function Dt(e){var t=mt.context[e.__c],n=Tt(vt++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(mt)),t.props.value):e.__}function Nt(e,t){bt.useDebugValue&&bt.useDebugValue(t?t(e):e)}function Ht(){var e=Tt(vt++,11);if(!e.__){for(var t=mt.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Wt(){for(var e;e=wt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(jt),e.__H.__h.forEach(Bt),e.__H.__h=[]}catch(ps){e.__H.__h=[],bt.__e(ps,e.__v)}}bt.__b=function(e){mt=null,xt&&xt(e)},bt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pt&&Pt(e,t)},bt.__r=function(e){kt&&kt(e),vt=0;var t=(mt=e.__c).__H;t&&(_t===mt?(t.__h=[],mt.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(jt),t.__h.forEach(Bt),t.__h=[],vt=0)),_t=mt},bt.diffed=function(e){St&&St(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==wt.push(t)&>===bt.requestAnimationFrame||((gt=bt.requestAnimationFrame)||Ut)(Wt)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),_t=mt=null},bt.__c=function(e,t){t.some((function(e){try{e.__h.forEach(jt),e.__h=e.__h.filter((function(e){return!e.__||Bt(e)}))}catch(Qa){t.some((function(e){e.__h&&(e.__h=[])})),t=[],bt.__e(Qa,e.__v)}})),Et&&Et(e,t)},bt.unmount=function(e){Ct&&Ct(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{jt(e)}catch(n){t=n}})),n.__H=void 0,t&&bt.__e(t,n.__v))};var $t="function"==typeof requestAnimationFrame;function Ut(e){var t,n=function(){clearTimeout(r),$t&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);$t&&(t=requestAnimationFrame(n))}function jt(e){var t=mt,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),mt=t}function Bt(e){var t=mt;e.__c=e.__(),mt=t}function qt(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function zt(e,t){return"function"==typeof t?t(e):t}class Kt extends Error{constructor(e,t){super(e),__publicField(this,"_response"),this._response=t,Object.setPrototypeOf(this,Kt.prototype)}get response(){return this._response}}const Qt=async(e,t,n,r)=>{const i=await fetch(e,{method:n,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.704",authorization:`Bearer ${t}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!i.ok)throw new Kt(`[API Error] Status: ${i.statusText}`,i);return i},Vt=async(e,t,n,r)=>{const i=await Qt(e,t,n,r);return await i.json()};let Yt;function Xt(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Zt(e,t){this.props=e,this.context=t}function Jt(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Xt(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Ge(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Zt.prototype=new We).isPureReactComponent=!0,Zt.prototype.shouldComponentUpdate=function(e,t){return Xt(this.props,e)||Xt(this.state,t)};var en=we.__b;we.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),en&&en(e)};var tn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function nn(e){function t(t){if(!("ref"in t))return e(t,null);var n=t.ref;delete t.ref;var r=e(t,n);return t.ref=n,r}return t.$$typeof=tn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var rn=function(e,t){return null==e?null:Ke(Ke(e).map(t))},on={map:rn,forEach:rn,count:function(e){return e?Ke(e).length:0},only:function(e){var t=Ke(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Ke},an=we.__e;we.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);an(e,t,n,r)};var sn=we.unmount;function ln(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return ln(e,t,n)}))),e}function cn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return cn(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function un(){this.__u=0,this.t=null,this.__b=null}function dn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function pn(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return Ge(n,i)}return i.displayName="Lazy",i.__f=!0,i}function fn(){this.u=null,this.o=null}we.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),sn&&sn(e)},(un.prototype=new We).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=dn(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=cn(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},un.prototype.componentWillUnmount=function(){this.t=[]},un.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ln(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&Ge(He,null,e.fallback);return i&&(i.__u&=-33),[Ge(He,null,t.__a?null:e.children),i]};var hn=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function vn(e){return this.getChildContext=function(){return e.context},e.children}function mn(e){var t=this,n=e.i;t.componentWillUnmount=function(){rt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),rt(Ge(vn,{context:t.context},e.__v),t.l)}function _n(e,t){var n=Ge(mn,{__v:e,i:t});return n.containerInfo=t,n}(fn.prototype=new We).__a=function(e){var t=this,n=dn(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),hn(t,e,r)):i()};n?n(o):o()}},fn.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ke(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},fn.prototype.componentDidUpdate=fn.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){hn(e,n,t)}))};var gn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,yn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,wn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,bn=/[A-Z0-9]/g,xn="undefined"!=typeof document,kn=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Sn(e,t,n){return null==t.__k&&(t.textContent=""),rt(e,t),"function"==typeof n&&n(),e?e.__c:null}function En(e,t,n){return it(e,t),"function"==typeof n&&n(),e?e.__c:null}We.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(We.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Cn=we.event;function Pn(){}function Tn(){return this.cancelBubble}function An(){return this.defaultPrevented}we.event=function(e){return Cn&&(e=Cn(e)),e.persist=Pn,e.isPropagationStopped=Tn,e.isDefaultPrevented=An,e.nativeEvent=e};var Mn,Rn={enumerable:!1,configurable:!0,get:function(){return this.class}},On=we.vnode;we.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||xn&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var s=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?o="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||kn(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":wn.test(o)&&(o=s):s=o="oninput":i&&yn.test(o)?o=o.replace(bn,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&r[o=s]&&(o="oninputCapture"),r[o]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=Ke(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=Ke(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",Rn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=gn,On&&On(e)};var Ln=we.__r;we.__r=function(e){Ln&&Ln(e),Mn=e.__c};var Fn=we.diffed;we.diffed=function(e){Fn&&Fn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),Mn=null};var In={ReactCurrentDispatcher:{current:{readContext:function(e){return Mn.__n[e.__c].props.value},useCallback:Gt,useContext:Dt,useDebugValue:Nt,useDeferredValue:Kn,useEffect:Rt,useId:Ht,useImperativeHandle:Ft,useInsertionEffect:Vn,useLayoutEffect:Ot,useMemo:It,useReducer:Mt,useRef:Lt,useState:At,useSyncExternalStore:Xn,useTransition:Qn}}};function Gn(e){return Ge.bind(null,e)}function Dn(e){return!!e&&e.$$typeof===gn}function Nn(e){return Dn(e)&&e.type===He}function Hn(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Wn(e){return Dn(e)?ot.apply(null,arguments):e}function $n(e){return!!e.__k&&(rt(null,e),!0)}function Un(e){return e&&(e.base||1===e.nodeType&&e)||null}var jn=function(e,t){return e(t)},Bn=function(e,t){return e(t)},qn=He;function zn(e){e()}function Kn(e){return e}function Qn(){return[!1,zn]}var Vn=Ot,Yn=Dn;function Xn(e,t){var n=t(),r=At({h:{__:n,v:t}}),i=r[0].h,o=r[1];return Ot((function(){i.__=n,i.v=t,Zn(i)&&o({h:i})}),[e,n,t]),Rt((function(){return Zn(i)&&o({h:i}),e((function(){Zn(i)&&o({h:i})}))}),[e]),n}function Zn(e){var t,n,r=e.v,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(a){return!0}}var Jn={useState:At,useId:Ht,useReducer:Mt,useEffect:Rt,useLayoutEffect:Ot,useInsertionEffect:Vn,useTransition:Qn,useDeferredValue:Kn,useSyncExternalStore:Xn,startTransition:zn,useRef:Lt,useImperativeHandle:Ft,useMemo:It,useCallback:Gt,useContext:Dt,useDebugValue:Nt,version:"18.3.1",Children:on,render:Sn,hydrate:En,unmountComponentAtNode:$n,createPortal:_n,createElement:Ge,createContext:at,createFactory:Gn,cloneElement:Wn,createRef:Ne,Fragment:He,isValidElement:Dn,isElement:Yn,isFragment:Nn,isMemo:Hn,findDOMNode:Un,Component:We,PureComponent:Zt,memo:Jt,forwardRef:nn,flushSync:Bn,unstable_batchedUpdates:jn,StrictMode:qn,Suspense:un,SuspenseList:fn,lazy:pn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:In};const er=Object.freeze(Object.defineProperty({__proto__:null,Children:on,Component:We,Fragment:He,PureComponent:Zt,StrictMode:qn,Suspense:un,SuspenseList:fn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:In,cloneElement:Wn,createContext:at,createElement:Ge,createFactory:Gn,createPortal:_n,createRef:Ne,default:Jn,findDOMNode:Un,flushSync:Bn,forwardRef:nn,hydrate:En,isElement:Yn,isFragment:Nn,isMemo:Hn,isValidElement:Dn,lazy:pn,memo:Jt,render:Sn,startTransition:zn,unmountComponentAtNode:$n,unstable_batchedUpdates:jn,useCallback:Gt,useContext:Dt,useDebugValue:Nt,useDeferredValue:Kn,useEffect:Rt,useErrorBoundary:function(e){var t=Tt(vt++,10),n=At();return t.__=e,mt.componentDidCatch||(mt.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Ht,useImperativeHandle:Ft,useInsertionEffect:Vn,useLayoutEffect:Ot,useMemo:It,useReducer:Mt,useRef:Lt,useState:At,useSyncExternalStore:Xn,useTransition:Qn,version:"18.3.1"},Symbol.toStringTag,{value:"Module"})),tr="/salary-packaging/admin/v1.0",nr=()=>{const e=Dt(Yt);return{checkProfileSearchAuthorization:It((()=>(e=>async()=>{const t=new URL(`${e.backend.url}${tr}/accounts/${e.account.accountId}/auth`);return Vt(t,e.backend.accessToken,"GET")})(e)),[e]),searchProfilesForAccount:It((()=>(e=>async t=>{const n=new URL(`${e.backend.url}${tr}/accounts/${e.account.accountId}/profile-search?search=${t}`);return Vt(n,e.backend.accessToken,"GET")})(e)),[e]),ingestClient:It((()=>(e=>async()=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const n=new Date;n.setUTCDate((new Date).getUTCDate()+2);const r=new URL(`${e.backend.url}${tr}/ingest/clients`);await Qt(r,e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:n.toISOString().split("T")[0]})})(e)),[e]),linkedProfilesForAccount:It((()=>(e=>async()=>{const t=new URL(`${e.backend.url}${tr}/accounts/${e.account.accountId}/profiles`);return Vt(t,e.backend.accessToken,"GET")})(e)),[e]),unlinkProfile:It((()=>(e=>async t=>{const n=new URL(`${e.backend.url}${tr}/accounts/${e.account.accountId}/profiles/${t}/unlink`);await Qt(n,e.backend.accessToken,"POST")})(e)),[e])}};class rr extends Error{}function ir(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}rr.prototype.name="InvalidTokenError";class or{constructor(e){__publicField(this,"roles"),__publicField(this,"isAuthorized"),this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(e){const t=e?function(e,t){if("string"!=typeof e)throw new rr("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new rr(`Invalid token specified: missing part #${n+1}`);let i;try{i=ir(r)}catch(Ta){throw new rr(`Invalid token specified: invalid base64 for part #${n+1} (${Ta.message})`)}try{return JSON.parse(i)}catch(Ta){throw new rr(`Invalid token specified: invalid json for part #${n+1} (${Ta.message})`)}}(e):{roles:[]};return new or(t.roles)}}function ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ar.apply(null,arguments)}function sr(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var lr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cr=sr((function(e){return lr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var ur=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(Ta){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),dr="-ms-",pr="-moz-",fr="-webkit-",hr="comm",vr="rule",mr="decl",_r="@keyframes",gr=Math.abs,yr=String.fromCharCode,wr=Object.assign;function br(e){return e.trim()}function xr(e,t,n){return e.replace(t,n)}function kr(e,t){return e.indexOf(t)}function Sr(e,t){return 0|e.charCodeAt(t)}function Er(e,t,n){return e.slice(t,n)}function Cr(e){return e.length}function Pr(e){return e.length}function Tr(e,t){return t.push(e),e}var Ar=1,Mr=1,Rr=0,Or=0,Lr=0,Fr="";function Ir(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Ar,column:Mr,length:a,return:""}}function Gr(e,t){return wr(Ir("",null,null,"",null,null,0),e,{length:-e.length},t)}function Dr(){return Lr=Or<Rr?Sr(Fr,Or++):0,Mr++,10===Lr&&(Mr=1,Ar++),Lr}function Nr(){return Sr(Fr,Or)}function Hr(){return Or}function Wr(e,t){return Er(Fr,e,t)}function $r(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ur(e){return Ar=Mr=1,Rr=Cr(Fr=e),Or=0,[]}function jr(e){return Fr="",e}function Br(e){return br(Wr(Or-1,Kr(91===e?e+2:40===e?e+1:e)))}function qr(e){for(;(Lr=Nr())&&Lr<33;)Dr();return $r(e)>2||$r(Lr)>3?"":" "}function zr(e,t){for(;--t&&Dr()&&!(Lr<48||Lr>102||Lr>57&&Lr<65||Lr>70&&Lr<97););return Wr(e,Hr()+(t<6&&32==Nr()&&32==Dr()))}function Kr(e){for(;Dr();)switch(Lr){case e:return Or;case 34:case 39:34!==e&&39!==e&&Kr(Lr);break;case 40:41===e&&Kr(e);break;case 92:Dr()}return Or}function Qr(e,t){for(;Dr()&&e+Lr!==57&&(e+Lr!==84||47!==Nr()););return"/*"+Wr(t,Or-1)+"*"+yr(47===e?e:Dr())}function Vr(e){for(;!$r(Nr());)Dr();return Wr(e,Or)}function Yr(e){return jr(Xr("",null,null,null,[""],e=Ur(e),0,[0],e))}function Xr(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,v=1,m=1,_=1,g=0,y="",w=i,b=o,x=r,k=y;m;)switch(h=g,g=Dr()){case 40:if(108!=h&&58==Sr(k,d-1)){-1!=kr(k+=xr(Br(g),"&","&\f"),"&\f")&&(_=-1);break}case 34:case 39:case 91:k+=Br(g);break;case 9:case 10:case 13:case 32:k+=qr(h);break;case 92:k+=zr(Hr()-1,7);continue;case 47:switch(Nr()){case 42:case 47:Tr(Jr(Qr(Dr(),Hr()),t,n),l);break;default:k+="/"}break;case 123*v:s[c++]=Cr(k)*_;case 125*v:case 59:case 0:switch(g){case 0:case 125:m=0;case 59+u:-1==_&&(k=xr(k,/\f/g,"")),f>0&&Cr(k)-d&&Tr(f>32?ei(k+";",r,n,d-1):ei(xr(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Tr(x=Zr(k,t,n,c,u,i,s,y,w=[],b=[],d),o),123===g)if(0===u)Xr(k,t,x,x,w,o,d,s,b);else switch(99===p&&110===Sr(k,3)?100:p){case 100:case 108:case 109:case 115:Xr(e,x,x,r&&Tr(Zr(e,x,x,0,0,i,s,y,i,w=[],d),b),i,b,d,s,r?w:b);break;default:Xr(k,x,x,x,[""],b,0,s,b)}}c=u=f=0,v=_=1,y=k="",d=a;break;case 58:d=1+Cr(k),f=h;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==(Lr=Or>0?Sr(Fr,--Or):0,Mr--,10===Lr&&(Mr=1,Ar--),Lr))continue;switch(k+=yr(g),g*v){case 38:_=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(Cr(k)-1)*_,_=1;break;case 64:45===Nr()&&(k+=Br(Dr())),p=Nr(),u=d=Cr(y=k+=Vr(Hr())),g++;break;case 45:45===h&&2==Cr(k)&&(v=0)}}return o}function Zr(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,p=0===i?o:[""],f=Pr(p),h=0,v=0,m=0;h<r;++h)for(var _=0,g=Er(e,d+1,d=gr(v=a[h])),y=e;_<f;++_)(y=br(v>0?p[_]+" "+g:xr(g,/&\f/g,p[_])))&&(l[m++]=y);return Ir(e,t,n,0===i?vr:s,l,c,u)}function Jr(e,t,n){return Ir(e,t,n,hr,yr(Lr),Er(e,2,-2),0)}function ei(e,t,n,r){return Ir(e,t,n,mr,Er(e,0,r),Er(e,r+1,-1),r)}function ti(e,t){for(var n="",r=Pr(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ni(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case mr:return e.return=e.return||e.value;case hr:return"";case _r:return e.return=e.value+"{"+ti(e.children,r)+"}";case vr:e.value=e.props.join(",")}return Cr(n=ti(e.children,r))?e.return=e.value+"{"+n+"}":""}var ri=function(e,t,n){for(var r=0,i=0;r=i,i=Nr(),38===r&&12===i&&(t[n]=1),!$r(i);)Dr();return Wr(e,Or)},ii=function(e,t){return jr(function(e,t){var n=-1,r=44;do{switch($r(r)){case 0:38===r&&12===Nr()&&(t[n]=1),e[n]+=ri(Or-1,t,n);break;case 2:e[n]+=Br(r);break;case 4:if(44===r){e[++n]=58===Nr()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=yr(r)}}while(r=Dr());return e}(Ur(e),t))},oi=new WeakMap,ai=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||oi.get(n))&&!r){oi.set(e,!0);for(var i=[],o=ii(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},si=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function li(e,t){switch(function(e,t){return 45^Sr(e,0)?(((t<<2^Sr(e,0))<<2^Sr(e,1))<<2^Sr(e,2))<<2^Sr(e,3):0}(e,t)){case 5103:return fr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return fr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fr+e+pr+e+dr+e+e;case 6828:case 4268:return fr+e+dr+e+e;case 6165:return fr+e+dr+"flex-"+e+e;case 5187:return fr+e+xr(e,/(\w+).+(:[^]+)/,fr+"box-$1$2"+dr+"flex-$1$2")+e;case 5443:return fr+e+dr+"flex-item-"+xr(e,/flex-|-self/,"")+e;case 4675:return fr+e+dr+"flex-line-pack"+xr(e,/align-content|flex-|-self/,"")+e;case 5548:return fr+e+dr+xr(e,"shrink","negative")+e;case 5292:return fr+e+dr+xr(e,"basis","preferred-size")+e;case 6060:return fr+"box-"+xr(e,"-grow","")+fr+e+dr+xr(e,"grow","positive")+e;case 4554:return fr+xr(e,/([^-])(transform)/g,"$1"+fr+"$2")+e;case 6187:return xr(xr(xr(e,/(zoom-|grab)/,fr+"$1"),/(image-set)/,fr+"$1"),e,"")+e;case 5495:case 3959:return xr(e,/(image-set\([^]*)/,fr+"$1$`$1");case 4968:return xr(xr(e,/(.+:)(flex-)?(.*)/,fr+"box-pack:$3"+dr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fr+e+e;case 4095:case 3583:case 4068:case 2532:return xr(e,/(.+)-inline(.+)/,fr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Cr(e)-1-t>6)switch(Sr(e,t+1)){case 109:if(45!==Sr(e,t+4))break;case 102:return xr(e,/(.+:)(.+)-([^]+)/,"$1"+fr+"$2-$3$1"+pr+(108==Sr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~kr(e,"stretch")?li(xr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Sr(e,t+1))break;case 6444:switch(Sr(e,Cr(e)-3-(~kr(e,"!important")&&10))){case 107:return xr(e,":",":"+fr)+e;case 101:return xr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fr+(45===Sr(e,14)?"inline-":"")+"box$3$1"+fr+"$2$3$1"+dr+"$2box$3")+e}break;case 5936:switch(Sr(e,t+11)){case 114:return fr+e+dr+xr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fr+e+dr+xr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fr+e+dr+xr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fr+e+dr+e+e}return e}var ci=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case mr:e.return=li(e.value,e.length);break;case _r:return ti([Gr(e,{value:xr(e.value,"@","@"+fr)})],r);case vr:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ti([Gr(e,{props:[xr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ti([Gr(e,{props:[xr(t,/:(plac\w+)/,":"+fr+"input-$1")]}),Gr(e,{props:[xr(t,/:(plac\w+)/,":-moz-$1")]}),Gr(e,{props:[xr(t,/:(plac\w+)/,dr+"input-$1")]})],r)}return""}))}}],ui=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||ci,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,p=[ni,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[ai,si].concat(o,p),u=Pr(c),function(e,t,n,r){for(var i="",o=0;o<u;o++)i+=c[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,ti(Yr(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ur({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h},di={exports:{}},pi={},fi="function"==typeof Symbol&&Symbol.for,hi=fi?Symbol.for("react.element"):60103,vi=fi?Symbol.for("react.portal"):60106,mi=fi?Symbol.for("react.fragment"):60107,_i=fi?Symbol.for("react.strict_mode"):60108,gi=fi?Symbol.for("react.profiler"):60114,yi=fi?Symbol.for("react.provider"):60109,wi=fi?Symbol.for("react.context"):60110,bi=fi?Symbol.for("react.async_mode"):60111,xi=fi?Symbol.for("react.concurrent_mode"):60111,ki=fi?Symbol.for("react.forward_ref"):60112,Si=fi?Symbol.for("react.suspense"):60113,Ei=fi?Symbol.for("react.suspense_list"):60120,Ci=fi?Symbol.for("react.memo"):60115,Pi=fi?Symbol.for("react.lazy"):60116,Ti=fi?Symbol.for("react.block"):60121,Ai=fi?Symbol.for("react.fundamental"):60117,Mi=fi?Symbol.for("react.responder"):60118,Ri=fi?Symbol.for("react.scope"):60119;function Oi(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case hi:switch(e=e.type){case bi:case xi:case mi:case gi:case _i:case Si:return e;default:switch(e=e&&e.$$typeof){case wi:case ki:case Pi:case Ci:case yi:return e;default:return t}}case vi:return t}}}function Li(e){return Oi(e)===xi}pi.AsyncMode=bi,pi.ConcurrentMode=xi,pi.ContextConsumer=wi,pi.ContextProvider=yi,pi.Element=hi,pi.ForwardRef=ki,pi.Fragment=mi,pi.Lazy=Pi,pi.Memo=Ci,pi.Portal=vi,pi.Profiler=gi,pi.StrictMode=_i,pi.Suspense=Si,pi.isAsyncMode=function(e){return Li(e)||Oi(e)===bi},pi.isConcurrentMode=Li,pi.isContextConsumer=function(e){return Oi(e)===wi},pi.isContextProvider=function(e){return Oi(e)===yi},pi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===hi},pi.isForwardRef=function(e){return Oi(e)===ki},pi.isFragment=function(e){return Oi(e)===mi},pi.isLazy=function(e){return Oi(e)===Pi},pi.isMemo=function(e){return Oi(e)===Ci},pi.isPortal=function(e){return Oi(e)===vi},pi.isProfiler=function(e){return Oi(e)===gi},pi.isStrictMode=function(e){return Oi(e)===_i},pi.isSuspense=function(e){return Oi(e)===Si},pi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===mi||e===xi||e===gi||e===_i||e===Si||e===Ei||"object"==typeof e&&null!==e&&(e.$$typeof===Pi||e.$$typeof===Ci||e.$$typeof===yi||e.$$typeof===wi||e.$$typeof===ki||e.$$typeof===Ai||e.$$typeof===Mi||e.$$typeof===Ri||e.$$typeof===Ti)},pi.typeOf=Oi,di.exports=pi;var Fi=di.exports,Ii={};Ii[Fi.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ii[Fi.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Gi(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Di=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ni=function(e,t,n){Di(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var Hi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wi=/[A-Z]|^ms/g,$i=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ui=function(e){return 45===e.charCodeAt(1)},ji=function(e){return null!=e&&"boolean"!=typeof e},Bi=sr((function(e){return Ui(e)?e:e.replace(Wi,"-$&").toLowerCase()})),qi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($i,(function(e,t,n){return Ki={name:t,styles:n,next:Ki},t}))}return 1===Hi[e]||Ui(e)||"number"!=typeof t||0===t?t:t+"px"};function zi(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return Ki={name:i.name,styles:i.styles,next:Ki},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)Ki={name:a.name,styles:a.styles,next:Ki},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=zi(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":ji(s)&&(r+=Bi(o)+":"+qi(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=zi(e,t,a);switch(o){case"animation":case"animationName":r+=Bi(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ji(a[c])&&(r+=Bi(o)+":"+qi(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Ki,l=n(e);return Ki=s,zi(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Ki,Qi=/label:\s*([^\s;{]+)\s*(;|$)/g;function Vi(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Ki=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=zi(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=zi(n,t,e[a]),r)i+=o[a]}Qi.lastIndex=0;for(var s,l="";null!==(s=Qi.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:Ki}}var Yi=!!er.useInsertionEffect&&er.useInsertionEffect,Xi=Yi||function(e){return e()},Zi=Yi||Ot,Ji=at("undefined"!=typeof HTMLElement?ui({key:"css"}):null),eo=Ji.Provider,to=function(e){return nn((function(t,n){var r=Dt(Ji);return e(t,r,n)}))},no=at({}),ro={}.hasOwnProperty,io="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",oo=function(e,t){var n={};for(var r in t)ro.call(t,r)&&(n[r]=t[r]);return n[io]=e,n},ao=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Di(t,n,r),Xi((function(){return Ni(t,n,r)})),null},so=to((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[io],o=[r],a="";"string"==typeof e.className?a=Gi(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=Vi(o,void 0,Dt(no));a+=t.key+"-"+s.name;var l={};for(var c in e)ro.call(e,c)&&"css"!==c&&c!==io&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),Ge(He,null,Ge(ao,{cache:t,serialized:s,isStringTag:"string"==typeof i}),Ge(i,l))})),lo=to((function(e,t){var n=Vi([e.styles],void 0,Dt(no)),r=Lt();return Zi((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),Zi((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Ni(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function co(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Vi(t)}var uo=cr,po=function(e){return"theme"!==e},fo=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?uo:po},ho=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},vo=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Di(t,n,r),Xi((function(){return Ni(t,n,r)})),null},mo=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=ho(t,n,o),l=s||fo(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=to((function(e,t,n){var r=c&&e.as||a,o="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=Dt(no)}"string"==typeof e.className?o=Gi(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var h=Vi(d.concat(u),t.registered,p);o+=t.key+"-"+h.name,void 0!==i&&(o+=" "+i);var v=c&&void 0===s?fo(r):l,m={};for(var _ in e)c&&"as"===_||v(_)&&(m[_]=e[_]);return m.className=o,n&&(m.ref=n),Ge(He,null,Ge(vo,{cache:t,serialized:h,isStringTag:"string"==typeof r}),Ge(r,m))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+i}}),h.withComponent=function(t,r){return e(t,ar({},n,r,{shouldForwardProp:ho(h,r,!0)})).apply(void 0,d)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){mo[e]=mo(e)}));const _o=mo.button({marginLeft:"0.75rem",display:"inline-flex",justifyContent:"center",borderRadius:"0.375rem",borderWidth:"1px",borderColor:"transparent","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(67 56 202 / var(--tw-bg-opacity))"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))","--tw-ring-offset-width":"2px"},":disabled":{cursor:"not-allowed","--tw-bg-opacity":"1",backgroundColor:"rgb(107 114 128 / var(--tw-bg-opacity))"}}),go=mo.div({height:"1.25rem",width:"1.25rem","@keyframes spin":{to:{transform:"rotate(360deg)"}},animation:"spin 1s linear infinite",borderRadius:"9999px",borderWidth:"2px",borderColor:"var(--fl-color-primary-600)",borderLeftColor:"transparent",borderTopColor:"transparent"});var yo=0;function wo(e,t,n,r,i,o){t||(t={});var a,s,l=t;"ref"in t&&(a=t.ref,delete t.ref);var c={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--yo,__i:-1,__u:0,__source:i,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===l[s]&&(l[s]=a[s]);return we.vnode&&we.vnode(c),c}var bo=He;function xo(e,t,n){return ro.call(t,"css")?wo(so,oo(e,t),n):wo(e,t,n)}function ko(e,t,n){return ro.call(t,"css")?wo(so,oo(e,t),n):wo(e,t,n)}const So=e=>{const[t,n]=At(!1);((e,t)=>{const n=Lt();Rt((()=>{n.current=e}),[e]),Rt((()=>{if(t){const e=setInterval(((...e)=>{var t;return null==(t=null==n?void 0:n.current)?void 0:t.call(n,...e)}),t);return()=>clearInterval(e)}}),[t])})((async()=>{await e.onCheck()&&n(!1)}),t?e.checkInterval:void 0),Rt((()=>{if(t){const r=setTimeout((()=>{t&&e.onTimeout(),n(!1)}),e.timeout);return()=>clearTimeout(r)}}));return xo(_o,{onClick:async()=>{n(!0),await e.onClick()||n(!1)},disabled:t,children:t?ko(bo,{children:[xo(go,{}),xo("span",{css:{marginLeft:"0.5rem"},children:e.processingText})]}):xo(bo,{children:e.text})})},Eo=mo.a({cursor:"pointer",whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"},(({isCurrentTab:e})=>e?{"--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))"}:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700")),Co=mo.span({marginLeft:"0.25rem",display:"inline-flex",width:"1.25rem",alignItems:"center",justifyContent:"center",borderRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgb(55 65 81 / var(--tw-bg-opacity))",fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontWeight:"700","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}),Po=({tabs:e,currentTabId:t,onChange:n})=>{const r=It((()=>e.find((e=>e.id==t))),[e,t]);return ko("div",{children:[ko("div",{css:{"@media (min-width: 640px)":{display:"none"}},children:[xo("label",{htmlFor:"tabs",css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Select a tab"}),xo("select",{id:"tabs",name:"tabs",defaultValue:null==r?void 0:r.id,onChange:e=>n(e.currentTarget.value),css:{display:"block",width:"100%",borderRadius:"0.375rem","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.5rem",fontSize:"1rem",lineHeight:"1.5rem",":focus":{"--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))",outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}},children:e.map((e=>ko("option",{value:e.id,children:[e.displayName,void 0!==e.count&&` (${e.count})`]},e.id)))})]}),xo("div",{css:{display:"none","@media (min-width: 640px)":{display:"block"}},children:xo("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))"},children:xo("nav",{"aria-label":"Tabs",css:{marginBottom:"-1px",display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2rem * var(--tw-space-x-reverse))",marginLeft:"calc(2rem * calc(1 - var(--tw-space-x-reverse)))"}},children:e.map((e=>{return ko(Eo,{onClick:(t=e.id,()=>{n(t)}),"aria-current":e.id==(null==r?void 0:r.id)?"page":void 0,isCurrentTab:e.id==(null==r?void 0:r.id),children:[e.displayName,void 0!==e.count&&xo(Co,{children:e.count})]},e.id);var t}))})})})]})};function To({title:e,titleId:t,...n},r){return Ge("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Ge("title",{id:t},e):null,Ge("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const Ao=nn(To);function Mo({title:e,titleId:t,...n},r){return Ge("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Ge("title",{id:t},e):null,Ge("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Ro=nn(Mo);function Oo({title:e,titleId:t,...n},r){return Ge("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Ge("title",{id:t},e):null,Ge("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Lo=nn(Oo),Fo=e=>e.url?xo(mu,{children:ko(_u,{as:"a",href:e.url,target:"_blank",rel:"noopener noreferrer",css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(240 253 244 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(21 128 61 / var(--tw-text-opacity))","--tw-ring-color":"rgb(22 163 74 / 0.2)"},children:[xo("span",{css:{lineHeight:"1.25rem"},children:"Linked"}),xo(Ao,{css:{marginTop:"auto",marginBottom:"auto",marginLeft:"0.25rem",height:"0.75rem",width:"0.75rem"}})]})}):xo(mu,{children:xo(_u,{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(254 242 242 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(185 28 28 / var(--tw-text-opacity))","--tw-ring-color":"rgb(220 38 38 / 0.2)"},children:"Unlinked"})}),Io=e=>xo(mu,{children:xo("button",{as:"button",onClick:()=>e.onClick(e.id),css:{display:"inline-flex",alignItems:"center",fill:"var(--fl-color-primary-600)",paddingLeft:"0.25rem",paddingRight:"0.25rem"},children:e.children})}),Go=e=>xo(vu,{children:xo("ul",{css:{listStyleType:"none"},children:e.value.split(",").map((e=>xo("li",{children:e},e)))})}),Do="undefined"!=typeof document?Jn.useLayoutEffect:()=>{};const No=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Ho=e=>{if(e&&"window"in e&&e.window===e)return e;return No(e).defaultView||window};function Wo(e){let t=null;return()=>(null==t&&(t=e()),t)}const $o=Wo((function(){return e=/^Mac/i,"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform);var e,t})),Uo=Wo((function(){return e=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent));var e,t}));class jo{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Bo(e){let t=Lt({isFocused:!1,observer:null});Do((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=Lt(null);return Do((()=>{t.current=e}),[e]),Gt(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return Gt((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,i=e=>{t.current.isFocused=!1,r.disabled&&n(new jo("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let qo=null,zo=new Set,Ko=new Map,Qo=!1,Vo=!1;const Yo={Tab:!0,Escape:!0};function Xo(e,t){for(let n of zo)n(e,t)}function Zo(e){Qo=!0,function(e){return!(e.metaKey||!$o()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(qo="keyboard",Xo("keyboard",e))}function Jo(e){qo="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Qo=!0,Xo("pointer",e))}function ea(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(Uo()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(Qo=!0,qo="virtual")}function ta(e){e.target!==window&&e.target!==document&&(Qo||Vo||(qo="virtual",Xo("virtual",e)),Qo=!1,Vo=!1)}function na(){Qo=!1,Vo=!0}function ra(e){if("undefined"==typeof window||Ko.get(Ho(e)))return;const t=Ho(e),n=No(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Qo=!0,r.apply(this,arguments)},n.addEventListener("keydown",Zo,!0),n.addEventListener("keyup",Zo,!0),n.addEventListener("click",ea,!0),t.addEventListener("focus",ta,!0),t.addEventListener("blur",na,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",Jo,!0),n.addEventListener("pointermove",Jo,!0),n.addEventListener("pointerup",Jo,!0)):(n.addEventListener("mousedown",Jo,!0),n.addEventListener("mousemove",Jo,!0),n.addEventListener("mouseup",Jo,!0)),t.addEventListener("beforeunload",(()=>{ia(e)}),{once:!0}),Ko.set(t,{focus:r})}const ia=(e,t)=>{const n=Ho(e),r=No(e);t&&r.removeEventListener("DOMContentLoaded",t),Ko.has(n)&&(n.HTMLElement.prototype.focus=Ko.get(n).focus,r.removeEventListener("keydown",Zo,!0),r.removeEventListener("keyup",Zo,!0),r.removeEventListener("click",ea,!0),n.removeEventListener("focus",ta,!0),n.removeEventListener("blur",na,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",Jo,!0),r.removeEventListener("pointermove",Jo,!0),r.removeEventListener("pointerup",Jo,!0)):(r.removeEventListener("mousedown",Jo,!0),r.removeEventListener("mousemove",Jo,!0),r.removeEventListener("mouseup",Jo,!0)),Ko.delete(n))};function oa(){return"pointer"!==qo}"undefined"!=typeof document&&function(e){const t=No(e);let n;"loading"!==t.readyState?ra(e):(n=()=>{ra(e)},t.addEventListener("DOMContentLoaded",n))}();const aa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function sa(e,t,n){ra(),Rt((()=>{let t=(t,r)=>{(function(e,t,n){var r;const i="undefined"!=typeof window?Ho(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?Ho(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?Ho(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?Ho(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!aa.has(null==n||null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof o||(null==n?void 0:n.target)instanceof a&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof s&&!Yo[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(oa())};return zo.add(t),()=>{zo.delete(t)}}),t)}let la=!1,ca=0;function ua(){la=!0,setTimeout((()=>{la=!1}),50)}function da(e){"touch"===e.pointerType&&ua()}function pa(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",da):document.addEventListener("touchend",ua),ca++,()=>{ca--,ca>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",da):document.removeEventListener("touchend",ua))}}function fa(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=Lt({isFocused:!1,isFocusVisible:t||oa()}),[o,a]=At(!1),[s,l]=At((()=>i.current.isFocused&&i.current.isFocusVisible)),c=Gt((()=>l(i.current.isFocused&&i.current.isFocusVisible)),[]),u=Gt((e=>{i.current.isFocused=e,a(e),c()}),[c]);sa((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:d}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Gt((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),a=Bo(o),s=Gt((e=>{const t=No(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),i&&i(!0),a(e))}),[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:t||!r&&!i?void 0:o}}}({isDisabled:r,onFocusChange:u}),{focusWithinProps:p}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=Lt({isFocusWithin:!1}),a=Gt((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,o]),s=Bo(a),l=Gt((e=>{o.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,s(e))}),[r,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:r?p:d}}var ha=Object.defineProperty,va=(e,t,n)=>(((e,t,n)=>{t in e?ha(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let ma=new class{constructor(){va(this,"current",this.detect()),va(this,"handoffState","pending"),va(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function _a(e){return ma.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function ga(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function ya(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add((()=>e.removeEventListener(n,r,i)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return ga((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=ya();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function wa(){let[e]=At(ya);return Rt((()=>()=>e.dispose()),[e]),e}let ba=(e,t)=>{ma.isServer?Rt(e,t):Ot(e,t)};function xa(e){let t=Lt(e);return ba((()=>{t.current=e}),[e]),t}let ka=function(e){let t=xa(e);return Jn.useCallback(((...e)=>t.current(...e)),[t])};let Sa=at(void 0);function Ea(){return Dt(Sa)}function Ca(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function Pa(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Pa),r}var Ta,Aa,Ma=((Aa=Ma||{})[Aa.None=0]="None",Aa[Aa.RenderStrategy=1]="RenderStrategy",Aa[Aa.Static=2]="Static",Aa),Ra=((Ta=Ra||{})[Ta.Unmount=0]="Unmount",Ta[Ta.Hidden=1]="Hidden",Ta);function Oa(){let e=function(){let e=Lt([]),t=Gt((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return(...n)=>{if(!n.every((e=>null==e)))return e.current=n,t}}();return Gt((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:Fa;let l=Ia(t,e);if(o)return La(l,n,r,a,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=l;if(e)return La(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Pa(e?0:1,{0:()=>null,1:()=>La({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return La(l,n,r,a,s)}({mergeRefs:e,...t})),[e])}function La(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=Ha(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){d["data-headlessui-state"]=n.join(" ");for(let e of n)d[`data-${e}`]=""}}if(o===He&&(Object.keys(Na(l)).length>0||Object.keys(Na(d)).length>0)){if(Dn(u)&&!(Array.isArray(u)&&u.length>1)){let e=u.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>Ca(t(...e),l.className):Ca(t,l.className),r=n?{className:n}:{},o=Ia(u.props,Na(Ha(l,["ref"])));for(let i in d)i in o&&delete d[i];return Wn(u,Object.assign({},o,d,c,{ref:i(Wa(u),c.ref)},r))}if(Object.keys(Na(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Na(l)).concat(Object.keys(Na(d))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return Ge(o,Object.assign({},Ha(l,["ref"]),o!==He&&c,o!==He&&d),u)}function Fa(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function Ia(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let r in n)Object.assign(t,{[r](e,...t){let i=n[r];for(let n of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function Ga(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let r in n)Object.assign(t,{[r](...e){let t=n[r];for(let n of t)null==n||n(...e)}});return t}function Da(e){var t;return Object.assign(nn(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Na(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Ha(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Wa(e){return Jn.version.split(".")[0]>="19"?e.props.ref:e.ref}let $a=at(void 0);function Ua(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}let ja=Symbol();function Ba(...e){let t=Lt(e);Rt((()=>{t.current=e}),[e]);let n=ka((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[ja])))?void 0:n}let qa=at(null);function za(){let e=Dt(qa);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,za),e}return e}qa.displayName="DescriptionContext";let Ka=Da((function(e,t){let n=Ht(),r=Ea(),{id:i=`headlessui-description-${n}`,...o}=e,a=za(),s=Ba(t);ba((()=>a.register(i)),[i,a.register]);let l=r||!1,c=It((()=>({...a.slot,disabled:l})),[a.slot,l]),u={ref:s,...a.props,id:i};return Oa()({ourProps:u,theirProps:o,slot:c,defaultTag:"p",name:a.name||"Description"})}));Object.assign(Ka,{});var Qa,Va=((Qa=Va||{}).Space=" ",Qa.Enter="Enter",Qa.Escape="Escape",Qa.Backspace="Backspace",Qa.Delete="Delete",Qa.ArrowLeft="ArrowLeft",Qa.ArrowUp="ArrowUp",Qa.ArrowRight="ArrowRight",Qa.ArrowDown="ArrowDown",Qa.Home="Home",Qa.End="End",Qa.PageUp="PageUp",Qa.PageDown="PageDown",Qa.Tab="Tab",Qa);let Ya=at(null);function Xa(){let e=Dt(Ya);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Xa),e}return e}function Za({inherit:e=!1}={}){let t=function(){var e,t;let n=null!=(t=null==(e=Dt(Ya))?void 0:e.value)?t:void 0;return n}(),[n,r]=At([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,It((()=>function(e){let t=ka((e=>(r((t=>[...t,e])),()=>r((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=It((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return Jn.createElement(Ya.Provider,{value:n},e.children)}),[r])]}Ya.displayName="LabelContext";let Ja=Da((function(e,t){var n;let r=Ht(),i=Xa(),o=Dt($a),a=Ea(),{id:s=`headlessui-label-${r}`,htmlFor:l=(null!=o?o:null==(n=i.props)?void 0:n.htmlFor),passive:c=!1,...u}=e,d=Ba(t);ba((()=>i.register(s)),[s,i.register]);let p=ka((e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),f=a||!1,h=It((()=>({...i.slot,disabled:f})),[i.slot,f]),v={ref:d,...i.props,id:s,htmlFor:l,onClick:p};return c&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in u&&delete u.onClick),Oa()({ourProps:v,theirProps:u,slot:h,defaultTag:l?"label":"div",name:i.name||"Label"})}));function es(e,t=!1){let[n,r]=Mt((()=>({})),{}),i=It((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(e)),[e,n]);return ba((()=>{if(!e)return;let t=new ResizeObserver(r);return t.observe(e),()=>{t.disconnect()}}),[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}Object.assign(Ja,{});let ts=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}};function ns(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...i){let o=t[e].call(n,...i);o&&(n=o,r.forEach((e=>e())))}}}function rs(e){return Xn(e.subscribe,e.getSnapshot,e.getSnapshot)}let is=new ts((()=>ns((()=>[]),{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let n=this.slice();return n.splice(t,1),n}})));function os(e,t){let n=is.get(t),r=Ht(),i=rs(n);if(ba((()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)}),[n,e]),!e)return!1;let o=i.indexOf(r),a=i.length;return-1===o&&(o=a,a+=1),o===a-1}let as=new Map,ss=new Map;function ls(e){var t;let n=null!=(t=ss.get(e))?t:0;return ss.set(e,n+1),0!==n||(as.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>cs(e)}function cs(e){var t;let n=null!=(t=ss.get(e))?t:1;if(1===n?ss.delete(e):ss.set(e,n-1),1!==n)return;let r=as.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,as.delete(e))}let us=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),ds=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var ps,fs,hs,vs=((hs=vs||{})[hs.First=1]="First",hs[hs.Previous=2]="Previous",hs[hs.Next=4]="Next",hs[hs.Last=8]="Last",hs[hs.WrapAround=16]="WrapAround",hs[hs.NoScroll=32]="NoScroll",hs[hs.AutoFocus=64]="AutoFocus",hs),ms=((fs=ms||{})[fs.Error=0]="Error",fs[fs.Overflow=1]="Overflow",fs[fs.Success=2]="Success",fs[fs.Underflow=3]="Underflow",fs),_s=((ps=_s||{})[ps.Previous=-1]="Previous",ps[ps.Next=1]="Next",ps);function gs(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(us)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var ys=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ys||{});function ws(e,t=0){var n;return e!==(null==(n=_a(e))?void 0:n.body)&&Pa(t,{0:()=>e.matches(us),1(){let t=e;for(;null!==t;){if(t.matches(us))return!0;t=t.parentElement}return!1}})}function bs(e){let t=_a(e);ya().nextFrame((()=>{t&&!ws(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}var xs=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(xs||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let ks=["textarea","input"].join(",");function Ss(e,t=e=>e){return e.slice().sort(((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Es(e,t){return function(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?Ss(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ds)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):gs(e);i.length>0&&a.length>1&&(a=a.filter((e=>!i.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),r=null!=r?r:o.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==o.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,ks))&&n}(s)&&s.select(),2}(gs(),t,{relativeTo:e})}function Cs(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ps(){return Cs()||/Android/gi.test(window.navigator.userAgent)}function Ts(e,t,n,r){let i=xa(n);Rt((()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}function As(e,t,n){let r=os(e,"outside-click"),i=xa(n),o=Gt((function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null===r||!r.getRootNode().contains(r)||!r.isConnected)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of o)if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return!ws(r,ys.Loose)&&-1!==r.tabIndex&&e.preventDefault(),i.current(e,r)}),[i,t]),a=Lt(null);Ts(r,"pointerdown",(e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target}),!0),Ts(r,"mousedown",(e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target}),!0),Ts(r,"click",(e=>{Ps()||a.current&&(o(e,(()=>a.current)),a.current=null)}),!0);let s=Lt({x:0,y:0});Ts(r,"touchstart",(e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY}),!0),Ts(r,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-s.current.x)>=30||Math.abs(n-s.current.y)>=30))return o(e,(()=>e.target instanceof HTMLElement?e.target:null))}),!0),function(e,t,n,r){let i=xa(n);Rt((()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}(r,"blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function Ms(...e){return It((()=>_a(...e)),[...e])}function Rs(e,t){return It((()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function Os(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=null!=(n=t.defaultView)?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function Ls(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Fs=ns((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:ya(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Ls(n)},i=[Cs()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=ya();n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))}let i=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),a=e.querySelector(i);a&&!r(a)&&(o=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;i!==t&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}:{},Os(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];i.forEach((({before:e})=>null==e?void 0:e(r))),i.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Is(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=rs(Fs),i=t?r.get(t):void 0,o=!!i&&i.count>0;ba((()=>{if(t&&e)return Fs.dispatch("PUSH",t,n),()=>Fs.dispatch("POP",t,n)}),[e,t])}(os(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}function Gs(e){return[e.screenX,e.screenY]}Fs.subscribe((()=>{let e=Fs.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&Fs.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Fs.dispatch("TEARDOWN",n)}}));var Ds,Ns;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(Ds=null==process?void 0:{})?void 0:Ds.NODE_ENV)&&void 0===(null==(Ns=null==Element?void 0:Element.prototype)?void 0:Ns.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var Hs=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Hs||{});function Ws(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function $s(e,t,n,r){let[i,o]=At(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=At(e),r=Gt((e=>n(e)),[t]),i=Gt((e=>n((t=>t|e))),[t]),o=Gt((e=>(t&e)===e),[t]),a=Gt((e=>n((t=>t&~e))),[n]),s=Gt((e=>n((t=>t^e))),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}(e&&i?3:0),c=Lt(!1),u=Lt(!1),d=wa();return ba((()=>{if(e)return n&&o(!0),t?(null==void 0||undefined.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=ya();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:i}),o.nextFrame((()=>{n(),o.requestAnimationFrame((()=>{o.add(function(e,t){var n,r;let i=ya();if(!e)return i.dispose;let o=!1;i.add((()=>{o=!0}));let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter((e=>e instanceof CSSTransition)))?r:[];return 0===a.length?(t(),i.dispose):(Promise.allSettled(a.map((e=>e.finished))).then((()=>{o||t()})),i.dispose)}(e,r))}))})),o.dispose}(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){u.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){u.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(c.current=!1,l(7),n||o(!1),null==void 0||undefined.call(r,n))}})):void(n&&s(3))}),[e,n,t,d]),e?[i,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Us(){return"undefined"!=typeof window}function js(e){return zs(e)?(e.nodeName||"").toLowerCase():"#document"}function Bs(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function qs(e){var t;return null==(t=(zs(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function zs(e){return!!Us()&&(e instanceof Node||e instanceof Bs(e).Node)}function Ks(e){return!!Us()&&(e instanceof Element||e instanceof Bs(e).Element)}function Qs(e){return!!Us()&&(e instanceof HTMLElement||e instanceof Bs(e).HTMLElement)}function Vs(e){return!(!Us()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Bs(e).ShadowRoot)}function Ys(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=nl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Xs(e){return["table","td","th"].includes(js(e))}function Zs(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(Ta){return!1}}))}function Js(e){const t=el(),n=Ks(e)?nl(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function el(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function tl(e){return["html","body","#document"].includes(js(e))}function nl(e){return Bs(e).getComputedStyle(e)}function rl(e){return Ks(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function il(e){if("html"===js(e))return e;const t=e.assignedSlot||e.parentNode||Vs(e)&&e.host||qs(e);return Vs(t)?t.host:t}function ol(e){const t=il(e);return tl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qs(t)&&Ys(t)?t:ol(t)}function al(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=ol(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Bs(i);if(o){const e=sl(a);return t.concat(a,a.visualViewport||[],Ys(i)?i:[],e&&n?al(e):[])}return t.concat(i,al(i,[],n))}function sl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const ll=Math.min,cl=Math.max,ul=Math.round,dl=Math.floor,pl=e=>({x:e,y:e}),fl={left:"right",right:"left",bottom:"top",top:"bottom"},hl={start:"end",end:"start"};function vl(e,t,n){return cl(e,ll(t,n))}function ml(e,t){return"function"==typeof e?e(t):e}function _l(e){return e.split("-")[0]}function gl(e){return e.split("-")[1]}function yl(e){return"x"===e?"y":"x"}function wl(e){return"y"===e?"height":"width"}function bl(e){return["top","bottom"].includes(_l(e))?"y":"x"}function xl(e){return yl(bl(e))}function kl(e){return e.replace(/start|end/g,(e=>hl[e]))}function Sl(e){return e.replace(/left|right|bottom|top/g,(e=>fl[e]))}function El(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Cl(e,t,n){let{reference:r,floating:i}=e;const o=bl(t),a=xl(t),s=wl(a),l=_l(t),c="y"===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,p=r[s]/2-i[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-i.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(gl(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function Pl(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=ml(t,e),h=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(f),v=s[p?"floating"===d?"reference":"floating":d],m=El(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(v)))||n?v:v.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),_="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,g=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),y=await(null==o.isElement?void 0:o.isElement(g))&&await(null==o.getScale?void 0:o.getScale(g))||{x:1,y:1},w=El(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:g,strategy:l}):_);return{top:(m.top-w.top+h.top)/y.y,bottom:(w.bottom-m.bottom+h.bottom)/y.y,left:(m.left-w.left+h.left)/y.x,right:(w.right-m.right+h.right)/y.x}}function Tl(e){const t=nl(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Qs(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=ul(n)!==o||ul(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Al(e){return Ks(e)?e:e.contextElement}function Ml(e){const t=Al(e);if(!Qs(t))return pl(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Tl(t);let a=(o?ul(n.width):n.width)/r,s=(o?ul(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Rl=pl(0);function Ol(e){const t=Bs(e);return el()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Rl}function Ll(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Al(e);let a=pl(1);t&&(r?Ks(r)&&(a=Ml(r)):a=Ml(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Bs(e))&&t}(o,n,r)?Ol(o):pl(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const e=Bs(o),t=r&&Ks(r)?Bs(r):r;let n=e,i=sl(n);for(;i&&r&&t!==n;){const e=Ml(i),t=i.getBoundingClientRect(),r=nl(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=a,n=Bs(i),i=sl(n)}}return El({width:u,height:d,x:l,y:c})}function Fl(e,t){const n=rl(e).scrollLeft;return t?t.left+n:Ll(qs(e)).left+n}function Il(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Fl(e,r)),y:r.top+t.scrollTop}}function Gl(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Bs(e),r=qs(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=el();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=qs(e),n=rl(e),r=e.ownerDocument.body,i=cl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=cl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Fl(e);const s=-n.scrollTop;return"rtl"===nl(r).direction&&(a+=cl(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(qs(e));else if(Ks(t))r=function(e,t){const n=Ll(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Qs(e)?Ml(e):pl(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=Ol(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return El(r)}function Dl(e,t){const n=il(e);return!(n===t||!Ks(n)||tl(n))&&("fixed"===nl(n).position||Dl(n,t))}function Nl(e,t,n){const r=Qs(t),i=qs(t),o="fixed"===n,a=Ll(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=pl(0);if(r||!r&&!o)if(("body"!==js(t)||Ys(i))&&(s=rl(t)),r){const e=Ll(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=Fl(i));const c=!i||r||o?pl(0):Il(i,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function Hl(e){return"static"===nl(e).position}function Wl(e,t){if(!Qs(e)||"fixed"===nl(e).position)return null;if(t)return t(e);let n=e.offsetParent;return qs(e)===n&&(n=n.ownerDocument.body),n}function $l(e,t){const n=Bs(e);if(Zs(e))return n;if(!Qs(e)){let t=il(e);for(;t&&!tl(t);){if(Ks(t)&&!Hl(t))return t;t=il(t)}return n}let r=Wl(e,t);for(;r&&Xs(r)&&Hl(r);)r=Wl(r,t);return r&&tl(r)&&Hl(r)&&!Js(r)?n:r||function(e){let t=il(e);for(;Qs(t)&&!tl(t);){if(Js(t))return t;if(Zs(t))return null;t=il(t)}return null}(e)||n}const Ul={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=qs(r),s=!!t&&Zs(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=pl(1);const u=pl(0),d=Qs(r);if((d||!d&&!o)&&(("body"!==js(r)||Ys(a))&&(l=rl(r)),Qs(r))){const e=Ll(r);c=Ml(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||o?pl(0):Il(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:qs,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?Zs(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=al(e,[],!1).filter((e=>Ks(e)&&"body"!==js(e))),i=null;const o="fixed"===nl(e).position;let a=o?il(e):e;for(;Ks(a)&&!tl(a);){const t=nl(a),n=Js(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||Ys(a)&&!n&&Dl(e,a))?r=r.filter((e=>e!==a)):i=t,a=il(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=Gl(t,n,i);return e.top=cl(r.top,e.top),e.right=ll(r.right,e.right),e.bottom=ll(r.bottom,e.bottom),e.left=cl(r.left,e.left),e}),Gl(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:$l,getElementRects:async function(e){const t=this.getOffsetParent||$l,n=this.getDimensions,r=await n(e.floating);return{reference:Nl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Tl(e);return{width:t,height:n}},getScale:Ml,isElement:Ks,isRTL:function(e){return"rtl"===nl(e).direction}};function jl(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Al(e),u=i||o?[...c?al(c):[],...al(t)]:[];u.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const i=qs(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-dl(u)+"px "+-dl(i.clientWidth-(c+d))+"px "+-dl(i.clientHeight-(u+p))+"px "+-dl(c)+"px",threshold:cl(0,ll(1,l))||1};let h=!0;function v(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(v,{...f,root:i.ownerDocument})}catch(Ta){r=new IntersectionObserver(v,f)}r.observe(e)}(!0),o}(c,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let v=l?Ll(e):null;return l&&function t(){const r=Ll(e);!v||r.x===v.x&&r.y===v.y&&r.width===v.width&&r.height===v.height||n();v=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const Bl=Pl,ql=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=_l(n),s=gl(n),l="y"===bl(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,d=ml(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},zl=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ml(e,t),c={x:n,y:r},u=await Pl(t,l),d=bl(_l(i)),p=yl(d);let f=c[p],h=c[d];if(o){const e="y"===p?"bottom":"right";f=vl(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=vl(h+u["y"===d?"top":"left"],h,h-u[e])}const v=s.fn({...t,[p]:f,[d]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:o,[d]:a}}}}}},Kl=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...m}=ml(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const _=_l(i),g=bl(s),y=_l(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=p||(y||!v?[Sl(s)]:function(e){const t=Sl(e);return[kl(e),t,kl(t)]}(s)),x="none"!==h;!p&&x&&b.push(...function(e,t,n,r){const i=gl(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(_l(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(kl)))),o}(s,v,h,w));const k=[s,...b],S=await Pl(t,m),E=[];let C=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[_]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=gl(e),i=xl(e),o=wl(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Sl(a)),[a,Sl(a)]}(i,a,w);E.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:i,overflows:E}],!E.every((e=>e<=0))){var P,T;const e=((null==(P=o.flip)?void 0:P.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(T=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(f){case"bestFit":{var A;const e=null==(A=C.filter((e=>{if(x){const t=bl(e.placement);return t===g||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},Ql=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...c}=ml(e,t),u=await Pl(t,c),d=_l(i),p=gl(i),f="y"===bl(i),{width:h,height:v}=o.floating;let m,_;"top"===d||"bottom"===d?(m=d,_=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(_=d,m="end"===p?"top":"bottom");const g=v-u.top-u.bottom,y=h-u.left-u.right,w=ll(v-u[m],g),b=ll(h-u[_],y),x=!t.middlewareData.shift;let k=w,S=b;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=y),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=g),x&&!p){const e=cl(u.left,0),t=cl(u.right,0),n=cl(u.top,0),r=cl(u.bottom,0);f?S=h-2*(0!==e||0!==t?e+t:cl(u.left,u.right)):k=v-2*(0!==n||0!==r?n+r:cl(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:k});const E=await a.getDimensions(s.floating);return h!==E.width||v!==E.height?{reset:{rects:!0}}:{}}}},Vl=(e,t,n)=>{const r=new Map,i={platform:Ul,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Cl(c,r,l),p=r,f={},h=0;for(let v=0;v<s.length;v++){const{name:n,fn:o}=s[v],{x:m,y:_,data:g,reset:y}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=_?_:d,f={...f,[n]:{...f[n],...g}},y&&h<=50&&(h++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):y.rects),({x:u,y:d}=Cl(c,p,l))),v=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:f}})(e,t,{...i,platform:o})};var Yl="undefined"!=typeof document?Ot:Rt;function Xl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Xl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!Xl(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Zl(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jl(e,t){const n=Zl(e);return Math.round(t*n)/n}function ec(e){const t=Lt(e);return Yl((()=>{t.current=e})),t}const tc=(e,t)=>({...ql(e),options:[e,t]}),nc=(e,t)=>({...Kl(e),options:[e,t]}),rc=(e,t)=>({...Ql(e),options:[e,t]}),ic={...er},oc=ic.useInsertionEffect||(e=>e());function ac(e){const t=Lt((()=>{}));return oc((()=>{t.current=e})),Gt((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var sc="undefined"!=typeof document?Ot:Rt;let lc=!1,cc=0;const uc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+cc++;const dc=ic.useId||function(){const[e,t]=At((()=>lc?uc():void 0));return sc((()=>{null==e&&t(uc())}),[]),Rt((()=>{lc=!0}),[]),e};const pc=at(null),fc=at(null),hc="data-floating-ui-focusable";function vc(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=dc(),o=Lt({}),[a]=At((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=((null==(l=Dt(pc))?void 0:l.id)||null);var l;const[c,u]=At(r.reference),d=ac(((e,t,r)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),p=It((()=>({setPositionReference:u})),[]),f=It((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return It((()=>({dataRef:o,open:t,onOpenChange:d,elements:f,events:a,floatingId:i,refs:p})),[t,d,f,a,i,p])}function mc(e){void 0===e&&(e={});const{nodeId:t}=e,n=vc({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=At(null),[s,l]=At(null),c=(null==i?void 0:i.domReference)||o,u=Lt(null),d=Dt(fc);sc((()=>{c&&(u.current=c)}),[c]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=At({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=At(r);Xl(p,r)||f(r);const[h,v]=At(null),[m,_]=At(null),g=Gt((e=>{e!==x.current&&(x.current=e,v(e))}),[]),y=Gt((e=>{e!==k.current&&(k.current=e,_(e))}),[]),w=o||h,b=a||m,x=Lt(null),k=Lt(null),S=Lt(u),E=null!=l,C=ec(l),P=ec(i),T=ec(c),A=Gt((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),Vl(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};M.current&&!Xl(S.current,t)&&(S.current=t,Bn((()=>{d(t)})))}))}),[p,t,n,P,T]);Yl((()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const M=Lt(!1);Yl((()=>(M.current=!0,()=>{M.current=!1})),[]),Yl((()=>{if(w&&(x.current=w),b&&(k.current=b),w&&b){if(C.current)return C.current(w,b,A);A()}}),[w,b,A,C,E]);const R=It((()=>({reference:x,floating:k,setReference:g,setFloating:y})),[g,y]),O=It((()=>({reference:w,floating:b})),[w,b]),L=It((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=Jl(O.floating,u.x),r=Jl(O.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Zl(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,O.floating,u.x,u.y]);return It((()=>({...u,update:A,refs:R,elements:O,floatingStyles:L})),[u,A,R,O,L])}({...e,elements:{...i,...s&&{reference:s}}}),f=Gt((e=>{const t=Ks(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),h=Gt((e=>{(Ks(e)||null===e)&&(u.current=e,a(e)),(Ks(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Ks(e))&&p.refs.setReference(e)}),[p.refs]),v=It((()=>({...p.refs,setReference:h,setPositionReference:f,domReference:u})),[p.refs,h,f]),m=It((()=>({...p.elements,domReference:c})),[p.elements,c]),_=It((()=>({...p,...r,refs:v,elements:m,nodeId:t})),[p,v,m,t,r]);return sc((()=>{r.dataRef.current.floatingContext=_;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=_)})),It((()=>({...p,context:_,refs:v,elements:m})),[p,v,m,_])}const _c="active",gc="selected";function yc(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[_c]:t,[gc]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[hc]:""},...o,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var a;i&&[_c,gc].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=o)})),e):e),{})}}function wc(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}function bc(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:s}=t,l=ac(s),c=Lt(!1),u=Lt(null),d=Lt(null);Rt((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,r=o.current.top>=-.5,i=o.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=n<0?-1:1,c=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!i&&n<0?(e.preventDefault(),Bn((()=>{l((e=>e+Math[c](n,a*s)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==a?void 0:a.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{u.current=t.scrollTop,null!=o.current&&(d.current={...o.current})})),()=>{u.current=null,d.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,r.floating,o,a,l]);const p=It((()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const e=(null==a?void 0:a.current)||r.floating;if(o.current&&e&&c.current){if(null!==u.current){const t=e.scrollTop-u.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&Bn((()=>l((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[r.floating,l,o,a]);return It((()=>i?{floating:p}:{}),[i,p])}let xc=at({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});xc.displayName="FloatingContext";let kc=at(null);kc.displayName="PlacementContext";function Sc({children:e,enabled:t=!0}){let[n,r]=At(null),[i,o]=At(0),a=Lt(null),[s,l]=At(null);!function(e){ba((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(s);let c=t&&null!==n&&null!==s,{to:u="bottom",gap:d=0,offset:p=0,padding:f=0,inner:h}=function(e,t){var n,r,i;let o=Ec(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=Ec(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=Ec(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:s}}(n,s),[v,m="center"]=u.split(" ");ba((()=>{c&&o(0)}),[c]);let{refs:_,floatingStyles:g,context:y}=mc({open:c,placement:"selection"===v?"center"===m?"bottom":`bottom-${m}`:"center"===m?`${v}`:`${v}-${m}`,strategy:"absolute",transform:!1,middleware:[tc({mainAxis:"selection"===v?0:d,crossAxis:p}),(k={padding:f},{...zl(k),options:[k,S]}),"selection"!==v&&nc({padding:f}),"selection"===v&&h?(x={...h,padding:f,overflowRef:a,offset:i,minItemsVisible:4,referenceOverflowThreshold:f,onFallbackChange(e){var t,n;if(!e)return;let r=y.elements.floating;if(!r)return;let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,a=Math.min(4,r.childElementCount),s=0,l=0;for(let o of null!=(n=null==(t=y.elements.floating)?void 0:t.childNodes)?n:[])if(o instanceof HTMLElement){let e=o.offsetTop,t=e+o.clientHeight+i,n=r.scrollTop,c=n+r.clientHeight;if(!(e>=n&&t<=c)){l=Math.max(0,Math.min(t,c)-Math.max(e,n)),s=o.clientHeight;break}a--}a>=1&&o((e=>{let t=s*a-l+i;return e>=t?e:t}))}},{name:"inner",options:x,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:i=0,index:o=0,minItemsVisible:a=4,referenceOverflowThreshold:s=0,scrollRef:l,...c}=ml(x,e),{rects:u,elements:{floating:d}}=e,p=t.current[o],f=(null==l?void 0:l.current)||d,h=d.clientTop||f.clientTop,v=0!==d.clientTop,m=0!==f.clientTop,_=d===f;if(!p)return{};const g={...e,...await tc(-p.offsetTop-d.clientTop-u.reference.height/2-p.offsetHeight/2-i).fn(e)},y=await Bl(wc(g,f.scrollHeight+h+d.clientTop),c),w=await Bl(g,{...c,elementContext:"reference"}),b=cl(0,y.top),k=g.y+b,S=f.scrollHeight>f.clientHeight,E=(S?e=>e:ul)(cl(0,f.scrollHeight+(v&&_||m?2*h:0)-b-cl(0,y.bottom)));if(f.style.maxHeight=E+"px",f.scrollTop=b,r){const e=S&&f.offsetHeight<p.offsetHeight*a-1||w.top>=-s||w.bottom>=-s;Bn((()=>r(e)))}return n&&(n.current=await Bl(wc({...g,y:k},f.offsetHeight+h+d.clientTop),c)),{y:k}}}):null,rc({padding:f,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:jl}),[w=v,b=m]=y.placement.split("-");var x,k,S;"selection"===v&&(w="selection");let E=It((()=>({anchor:[w,b].filter(Boolean).join(" ")})),[w,b]),C=bc(y,{overflowRef:a,onChange:o}),{getReferenceProps:P,getFloatingProps:T}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),i=Gt((t=>yc(t,e,"reference")),t),o=Gt((t=>yc(t,e,"floating")),n),a=Gt((t=>yc(t,e,"item")),r);return It((()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a})),[i,o,a])}([C]),A=ka((e=>{l(e),_.setFloating(e)}));return Ge(kc.Provider,{value:r},Ge(xc.Provider,{value:{setFloating:A,setReference:_.setReference,styles:g,getReferenceProps:P,getFloatingProps:T,slot:E}},e))}function Ec(e,t,n=void 0){let r=wa(),i=ka(((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let i=Pc(e,t);return[i,n=>{let o=Cc(e);{let a=o.map((e=>window.getComputedStyle(t).getPropertyValue(e)));r.requestAnimationFrame((function s(){r.nextFrame(s);let l=!1;for(let[e,n]of o.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,l=!0;break}}if(!l)return;let c=Pc(e,t);i!==c&&(n(c),i=c)}))}return r.dispose}]}return[n,null]})),o=It((()=>i(e,t)[0]),[e,t]),[a=o,s]=At();return ba((()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)}),[e,t]),a}function Cc(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...Cc(r)]:[n]}return[]}function Pc(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let Tc=at(null);Tc.displayName="OpenClosedContext";var Ac=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ac||{});function Mc({value:e,children:t}){return Jn.createElement(Tc.Provider,{value:e},t)}var Rc,Oc=((Rc=Oc||{})[Rc.First=0]="First",Rc[Rc.Previous=1]="Previous",Rc[Rc.Next=2]="Next",Rc[Rc.Last=3]="Last",Rc[Rc.Specific=4]="Specific",Rc[Rc.Nothing=5]="Nothing",Rc);function Lc(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===i&&(i=n.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function Fc(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in er&&(e=>e.useSyncExternalStore)(er)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=At(ma.isHandoffComplete);return t&&!1===ma.isHandoffComplete&&n(!1),Rt((()=>{!0!==t&&n(!0)}),[t]),Rt((()=>ma.handoff()),[]),!e&&t}let Ic=at(!1);function Gc(e){let t=Dt(Ic),n=Dt(Wc),r=Ms(e),[i,o]=At((()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(ma.isServer)return null;let i=null==r?void 0:r.getElementById("headlessui-portal-root");if(i)return i;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return Rt((()=>{null!==i&&(null!=r&&r.body.contains(i)||null==r||r.body.appendChild(i))}),[i,r]),Rt((()=>{t||null!==n&&o(n.current)}),[n,o,t]),i}let Dc=He,Nc=Da((function(e,t){let n=e,r=Lt(null),i=Ba(function(e,t=!0){return Object.assign(e,{[ja]:t})}((e=>{r.current=e})),t),o=Ms(r),a=Gc(r),[s]=At((()=>{var e;return ma.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null})),l=Dt($c),c=Fc();ba((()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))}),[a,s]),ba((()=>{if(s&&l)return l.register(s)}),[l,s]),function(e){let t=ka(e),n=Lt(!1);Rt((()=>(n.current=!1,()=>{n.current=!0,ga((()=>{n.current&&t()}))})),[t])}((()=>{var e;!a||!s||(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}));let u=Oa();return c&&a&&s?_n(u({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Dc,name:"Portal"}),s):null}));let Hc=He,Wc=at(null);let $c=at(null),Uc=Da((function(e,t){let n=Ba(t),{enabled:r=!0,...i}=e,o=Oa();return r?Jn.createElement(Nc,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Dc,name:"Portal"})})),jc=Da((function(e,t){let{target:n,...r}=e,i={ref:Ba(t)},o=Oa();return Jn.createElement(Wc.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Hc,name:"Popover.Group"}))})),Bc=Object.assign(Uc,{Group:jc});let qc=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function zc(e){var t,n;let r=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?null!=(n=i.innerText)?n:"":r;return qc.test(a)&&(a=a.replace(qc,"")),a}function Kc(e){let t=Lt(""),n=Lt("");return ka((()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():zc(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return zc(e).trim()}(r).trim().toLowerCase();return t.current=i,n.current=o,o}))}var Qc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Qc||{}),Vc=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Vc||{}),Yc=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(Yc||{});function Xc(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=Ss(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),i=n?r.indexOf(n):null;return-1===i&&(i=null),{items:r,activeItemIndex:i}}let Zc={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n,r,i,o,a;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===Oc.Nothing)return{...s,activeItemIndex:null};if(t.focus===Oc.Specific)return{...s,activeItemIndex:e.items.findIndex((e=>e.id===t.id))};if(t.focus===Oc.Previous){let n=e.activeItemIndex;if(null!==n){let o=e.items[n].dataRef.current.domRef,a=Lc(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.items[a].dataRef.current.domRef;if((null==(r=o.current)?void 0:r.previousElementSibling)===t.current||null===(null==(i=t.current)?void 0:i.previousElementSibling))return{...s,activeItemIndex:a}}}}else if(t.focus===Oc.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,i=Lc(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[i].dataRef.current.domRef;if((null==(o=r.current)?void 0:o.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...s,activeItemIndex:i}}}}let l=Xc(e),c=Lc(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeItemIndex:c}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled})),o=i?e.items.indexOf(i):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=Xc(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=Xc(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element}},Jc=at(null);function eu(e){let t=Dt(Jc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eu),t}return t}function tu(e,t){return Pa(t.type,Zc,e,t)}Jc.displayName="MenuContext";let nu=He;let ru=Ma.RenderStrategy|Ma.Static;let iu=He;let ou=Da((function(e,t){let{__demoMode:n=!1,...r}=e,i=Mt(tu,{__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:o,itemsElement:a,buttonElement:s},l]=i,c=Ba(t);As(0===o,[s,a],((e,t)=>{l({type:1}),ws(t,ys.Loose)||(e.preventDefault(),null==s||s.focus())}));let u=ka((()=>{l({type:1})})),d=It((()=>({open:0===o,close:u})),[o,u]),p={ref:c},f=Oa();return Jn.createElement(Sc,null,Jn.createElement(Jc.Provider,{value:i},Jn.createElement(Mc,{value:Pa(o,{0:Ac.Open,1:Ac.Closed})},f({ourProps:p,theirProps:r,slot:d,defaultTag:nu,name:"Menu"}))))})),au=Da((function(e,t){var n;let r=Ht(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:a=!1,...s}=e,[l,c]=eu("Menu.Button"),u=Dt(xc).getReferenceProps,d=Ba(t,Dt(xc).setReference,ka((e=>c({type:7,element:e})))),p=ka((e=>{switch(e.key){case Va.Space:case Va.Enter:case Va.ArrowDown:e.preventDefault(),e.stopPropagation(),Bn((()=>c({type:0}))),c({type:2,focus:Oc.First});break;case Va.ArrowUp:e.preventDefault(),e.stopPropagation(),Bn((()=>c({type:0}))),c({type:2,focus:Oc.Last})}})),f=ka((e=>{if(e.key===Va.Space)e.preventDefault()})),h=ka((e=>{var t;if(Ua(e.currentTarget))return e.preventDefault();o||(0===l.menuState?(Bn((()=>c({type:1}))),null==(t=l.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c({type:0})))})),{isFocusVisible:v,focusProps:m}=fa({autoFocus:a}),{isHovered:_,hoverProps:g}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=At(!1),s=Lt({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Rt(pa,[]);let{hoverProps:l,triggerHoverEnd:c}=It((()=>{let e=(e,r)=>{if(s.pointerType=r,i||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let o=e.currentTarget;s.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),a(!0)},o=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{la&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):(l.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||la||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:l,triggerHoverEnd:o}}),[t,n,r,i,s]);return Rt((()=>{i&&c({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:l,isHovered:o}}({isDisabled:o}),{pressed:y,pressProps:w}=function({disabled:e=!1}={}){let t=Lt(null),[n,r]=At(!1),i=wa(),o=ka((()=>{t.current=null,r(!1),i.dispose()})),a=ka((e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=_a(e.currentTarget);i.addEventListener(n,"pointerup",o,!1),i.addEventListener(n,"pointermove",(e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}}),!1),i.addEventListener(n,"pointercancel",o,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}({disabled:o}),b=It((()=>({open:0===l.menuState,active:y||0===l.menuState,disabled:o,hover:_,focus:v,autofocus:a})),[l,_,v,y,o,a]),x=Ga(u(),{ref:d,id:i,type:Rs(e,l.buttonElement),"aria-haspopup":"menu","aria-controls":null==(n=l.itemsElement)?void 0:n.id,"aria-expanded":0===l.menuState,disabled:o||void 0,autoFocus:a,onKeyDown:p,onKeyUp:f,onClick:h},m,g,w);return Oa()({ourProps:x,theirProps:s,slot:b,defaultTag:"button",name:"Menu.Button"})})),su=Da((function(e,t){var n,r;let i=Ht(),{id:o=`headlessui-menu-items-${i}`,anchor:a,portal:s=!1,modal:l=!0,transition:c=!1,...u}=e,d=function(e){return It((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(a),[p,f]=eu("Menu.Items"),[h,v]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=Dt(kc),n=It((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);ba((()=>{null==t||t(null!=n?n:null)}),[t,n]);let r=Dt(xc);return It((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}(d),m=function(){let{getFloatingProps:e,slot:t}=Dt(xc);return Gt(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}(),[_,g]=At(null),y=Ba(t,d?h:null,ka((e=>f({type:8,element:e}))),g),w=Ms(p.itemsElement);d&&(s=!0);let b=Dt(Tc),[x,k]=$s(c,_,null!==b?(b&Ac.Open)===Ac.Open:0===p.menuState);!function(e,t,n){let r=xa((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));Rt((()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let i=ya();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>r.current(n)));e.observe(n),i.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>r.current(n)));e.observe(n),i.add((()=>e.disconnect()))}return()=>i.dispose()}),[t,r,e])}(x,p.buttonElement,(()=>{f({type:1})})),Is(!p.__demoMode&&(l&&0===p.menuState),w),function(e,{allowed:t,disallowed:n}={}){let r=os(e,"inert-others");ba((()=>{var e,i;if(!r)return;let o=ya();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add(ls(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let t of a){if(!t)continue;let e=_a(t);if(!e)continue;let n=t.parentElement;for(;n&&n!==e.body;){for(let e of n.children)a.some((t=>e.contains(t)))||o.add(ls(e));n=n.parentElement}}return o.dispose}),[r,t,n])}(!p.__demoMode&&(l&&0===p.menuState),{allowed:Gt((()=>[p.buttonElement,p.itemsElement]),[p.buttonElement,p.itemsElement])});let S=!function(e,t){let n=Lt({left:0,top:0});if(ba((()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)}),[e,t]),null==t||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}(0!==p.menuState,p.buttonElement)&&x;Rt((()=>{let e=p.itemsElement;e&&0===p.menuState&&e!==(null==w?void 0:w.activeElement)&&e.focus({preventScroll:!0})}),[p.menuState,p.itemsElement,w]),function(e,{container:t,accept:n,walk:r}){let i=Lt(n),o=Lt(r);Rt((()=>{i.current=n,o.current=r}),[n,r]),ba((()=>{if(!t||!e)return;let n=_a(t);if(!n)return;let r=i.current,a=o.current,s=Object.assign((e=>r(e)),{acceptNode:r}),l=n.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)}),[t,e,i,o])}(0===p.menuState,{container:p.itemsElement,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let E=wa(),C=ka((e=>{var t,n,r;switch(E.dispose(),e.key){case Va.Space:if(""!==p.searchQuery)return e.preventDefault(),e.stopPropagation(),f({type:3,value:e.key});case Va.Enter:if(e.preventDefault(),e.stopPropagation(),f({type:1}),null!==p.activeItemIndex){let{dataRef:e}=p.items[p.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}bs(p.buttonElement);break;case Va.ArrowDown:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:Oc.Next});case Va.ArrowUp:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:Oc.Previous});case Va.Home:case Va.PageUp:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:Oc.First});case Va.End:case Va.PageDown:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:Oc.Last});case Va.Escape:e.preventDefault(),e.stopPropagation(),Bn((()=>f({type:1}))),null==(r=p.buttonElement)||r.focus({preventScroll:!0});break;case Va.Tab:e.preventDefault(),e.stopPropagation(),Bn((()=>f({type:1}))),Es(p.buttonElement,e.shiftKey?vs.Previous:vs.Next);break;default:1===e.key.length&&(f({type:3,value:e.key}),E.setTimeout((()=>f({type:4})),350))}})),P=ka((e=>{if(e.key===Va.Space)e.preventDefault()})),T=It((()=>({open:0===p.menuState})),[p.menuState]),A=Ga(d?m():{},{"aria-activedescendant":null===p.activeItemIndex||null==(n=p.items[p.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=p.buttonElement)?void 0:r.id,id:o,onKeyDown:C,onKeyUp:P,role:"menu",tabIndex:0===p.menuState?0:void 0,ref:y,style:{...u.style,...v,"--button-width":es(p.buttonElement,!0).width},...Ws(k)}),M=Oa();return Jn.createElement(Bc,{enabled:!!s&&(e.static||x)},M({ourProps:A,theirProps:u,slot:T,defaultTag:"div",features:ru,visible:S,name:"Menu.Items"}))})),lu=Da((function(e,t){let n=Ht(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,[a,s]=eu("Menu.Item"),l=null!==a.activeItemIndex&&a.items[a.activeItemIndex].id===r,c=Lt(null),u=Ba(t,c);ba((()=>{if(!a.__demoMode&&0===a.menuState&&l&&0!==a.activationTrigger)return ya().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=c.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[a.__demoMode,c,l,a.menuState,a.activationTrigger,a.activeItemIndex]);let d=Kc(c),p=Lt({disabled:i,domRef:c,get textValue(){return d()}});ba((()=>{p.current.disabled=i}),[p,i]),ba((()=>(s({type:5,id:r,dataRef:p}),()=>s({type:6,id:r}))),[p,r]);let f=ka((()=>{s({type:1})})),h=ka((e=>{if(i)return e.preventDefault();s({type:1}),bs(a.buttonElement)})),v=ka((()=>{if(i)return s({type:2,focus:Oc.Nothing});s({type:2,focus:Oc.Specific,id:r})})),m=function(){let e=Lt([-1,-1]);return{wasMoved(t){let n=Gs(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Gs(t)}}}(),_=ka((e=>{m.update(e),!i&&(l||s({type:2,focus:Oc.Specific,id:r,trigger:0}))})),g=ka((e=>{m.wasMoved(e)&&(i||l||s({type:2,focus:Oc.Specific,id:r,trigger:0}))})),y=ka((e=>{m.wasMoved(e)&&(i||l&&s({type:2,focus:Oc.Nothing}))})),[w,b]=Za(),[x,k]=function(){let[e,t]=At([]);return[e.length>0?e.join(" "):void 0,It((()=>function(e){let n=ka((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=It((()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value})),[n,e.slot,e.name,e.props,e.value]);return Jn.createElement(qa.Provider,{value:r},e.children)}),[t])]}(),S=It((()=>({active:l,focus:l,disabled:i,close:f})),[l,i,f]),E={id:r,ref:u,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":w,"aria-describedby":x,disabled:void 0,onClick:h,onFocus:v,onPointerEnter:_,onMouseEnter:_,onPointerMove:g,onMouseMove:g,onPointerLeave:y,onMouseLeave:y},C=Oa();return Jn.createElement(b,null,Jn.createElement(k,null,C({ourProps:E,theirProps:o,slot:S,defaultTag:iu,name:"Menu.Item"})))})),cu=Da((function(e,t){let[n,r]=Za(),i=e,o={ref:t,"aria-labelledby":n,role:"group"},a=Oa();return Jn.createElement(r,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Menu.Section"}))})),uu=Da((function(e,t){let n=Ht(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=Xa();ba((()=>o.register(r)),[r,o.register]);let a={id:r,ref:t,role:"presentation",...o.props};return Oa()({ourProps:a,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})})),du=Da((function(e,t){let n=e,r={ref:t,role:"separator"};return Oa()({ourProps:r,theirProps:n,slot:{},defaultTag:"div",name:"Menu.Separator"})})),pu=Object.assign(ou,{Button:au,Items:su,Item:lu,Section:cu,Heading:uu,Separator:du});const fu=e=>xo(vu,{children:ko(pu,{as:"div",children:[xo("div",{children:ko(au,{css:{display:"flex",alignItems:"center",borderRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))",":hover":{"--tw-text-opacity":"1",color:"rgb(75 85 99 / var(--tw-text-opacity))"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#f3f4f6"}},children:[xo("span",{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Open options"}),xo(Ro,{"aria-hidden":"true",css:{width:"1.25rem",height:"1.25rem"}})]})}),xo(su,{transition:!0,className:"right-45 w-30",css:{position:"fixed",zIndex:"10",marginTop:"0.5rem",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-color":"rgb(0 0 0 / 0.05)",transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"&[data-closed]":{"--tw-scale-x":".95","--tw-scale-y":".95",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))",opacity:"0"},"&[data-enter]":{transitionDuration:"100ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"},"&[data-leave]":{transitionDuration:"75ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"}},children:e.items.map(((t,n)=>xo(lu,{children:xo("button",{type:"button",css:{display:"block",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))","&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",outline:"2px solid transparent",outlineOffset:"2px"}},onClick:()=>{t.onClick(e.id)},children:t.label},n)},n)))})]})}),hu=e=>{const t=new Date(e.value);return ko(vu,{children:[t.toLocaleDateString(),xo("br",{}),t.toLocaleTimeString()]})},vu=mo.td`
|
|
2
2
|
${{whiteSpace:"nowrap",paddingTop:"1rem",paddingBottom:"1rem",paddingLeft:"1rem",paddingRight:"0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}}
|
|
3
3
|
`,mu=mo.td`
|
|
4
4
|
${{whiteSpace:"nowrap",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flarehr/superhero-salpac-profile-admin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.704",
|
|
4
4
|
"description": "Flare Superhero Profile Admin",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
|
-
"dev": "vite",
|
|
17
|
+
"dev": "vite --port 8080",
|
|
18
18
|
"build": "tsc && vite build",
|
|
19
|
-
"preview": "npm run build && vite preview",
|
|
19
|
+
"preview": "npm run build && vite preview --port 8080",
|
|
20
20
|
"test": "jest",
|
|
21
21
|
"analyze": "npx vite-bundle-visualizer",
|
|
22
22
|
"lint": "eslint src/**/*.{js,jsx,ts,tsx}",
|
package/dist/index.html
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<!-- This file is used for dev only. Does not get included in built files. -->
|
|
2
|
-
<!DOCTYPE html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<title>Superhero: Salpac Profile Admin</title>
|
|
7
|
-
<style>
|
|
8
|
-
body {
|
|
9
|
-
margin: 0;
|
|
10
|
-
}
|
|
11
|
-
</style>
|
|
12
|
-
<script type="module" crossorigin src="/superhero-salpac-profile-admin.js"></script>
|
|
13
|
-
</head>
|
|
14
|
-
<body>
|
|
15
|
-
<superhero-salpac-profile-admin
|
|
16
|
-
account-Id="F7ACA523-BF06-42B9-83DE-31535261AA58"
|
|
17
|
-
backend-url="http://localhost:5173"
|
|
18
|
-
access-token="">
|
|
19
|
-
</superhero-salpac-profile-admin>
|
|
20
|
-
</body>
|
|
21
|
-
</html>
|