@flarehr/superhero-salpac-profile-admin 1.0.1186 → 1.0.1191
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,26 +1,16 @@
|
|
|
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,h,f,v,m,g,y,_,w,b,x,k,S,E,C,T,R,P,A,O,L,M,F,I,D,G,$,N,W,H,U,j,B,z,q,K,V,Q,Y,X,J,Z,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,pe,he,fe,ve,me,ge,ye,_e,we,be,xe,ke,Se,Ee,Ce,Te,Re,Pe,Ae={},Oe=[],Le=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Me=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 De(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?_e.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 Ge(e,a,r,i,null)}function Ge(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 $e(){return{current:null}}function Ne(e){return e.children}function We(e,t){this.props=e,this.context=t}function He(e,t){if(null==t)return e.__?He(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?He(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),Je(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,a,null==o?He(i):o,!!(32&i.__u),s),r.__v=i.__v,r.__.__k[r.__i]=r,Ze(a,r,s),r.__e!=o&&Ue(r)),xe.length>t&&xe.sort(Ee));Be.__r=0}function ze(e,t,n,r,i,o,a,s,l,c,u){var d,p,h,f,v,m=r&&r.__k||Oe,g=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?Ge(null,i,null,null,null):Me(i)?Ge(Ne,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?Ge(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=Ve(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=He(o)),tt(o,o))}(n,t,m),l=n.__d,d=0;d<g;d++)null!=(h=n.__k[d])&&(p=-1===h.__i?Ae:m[h.__i]||Ae,h.__i=d,Je(e,h,p,i,o,a,s,l,c,u),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&et(p.ref,null,h),u.push(h.ref,h.__c||f,h)),null==v&&null!=f&&(v=f),65536&h.__u||p.__k===h.__k?l=qe(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:f&&(l=f.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=v}function qe(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=qe(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=He(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||(Me(e)?e.some((function(e){Ke(e,t)})):t.push(e)),t}function Ve(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 Qe(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||Le.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||Qe(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Qe(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?Re:Te,o)):e.removeEventListener(t,o?Re:Te,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 Je(e,t,n,r,i,o,a,s,l,c){var u,d,p,h,f,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(g=t.props,y="prototype"in C&&C.prototype.render,_=(u=C.contextType)&&r[u.__c],w=u?_?_.props.value:u.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(y?t.__c=d=new C(g,w):(t.__c=d=new We(g,w),d.constructor=C,d.render=nt),_&&_.sub(d),d.props=g,d.state||(d.state={}),d.context=w,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),y&&null==d.__s&&(d.__s=d.state),y&&null!=C.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Fe({},d.__s)),Fe(d.__s,C.getDerivedStateFromProps(g,d.__s))),h=d.props,f=d.state,d.__v=t,p)y&&null==C.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==C.getDerivedStateFromProps&&g!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,w)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=g,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(g,d.__s,w),y&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,f,v)}))}if(d.context=w,d.props=g,d.__P=e,d.__e=!1,x=we.__r,k=0,y){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())),y&&!p&&null!=d.getSnapshotBeforeUpdate&&(v=d.getSnapshotBeforeUpdate(h,f)),ze(e,Me(E=null!=u&&u.type===Ne&&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(T){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(T,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,h,f,v,m=n.props,g=t.props,y=t.type;if("svg"===y?i="http://www.w3.org/2000/svg":"math"===y?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((h=o[c])&&"setAttribute"in h==!!y&&(y?h.localName===y:3===h.nodeType)){e=h,o[c]=null;break}if(null==e){if(null===y)return document.createTextNode(g);e=document.createElementNS(i,y,g.is&&g),s&&(we.__m&&we.__m(t,o),s=!1),o=null}if(null===y)m===g||s&&e.data===g||(e.data=g);else{if(o=o&&_e.call(e.childNodes),m=n.props||Ae,!s&&null!=o)for(m={},c=0;c<e.attributes.length;c++)m[(h=e.attributes[c]).name]=h.value;for(c in m)if(h=m[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=h;else if(!(c in g)){if("value"==c&&"defaultValue"in g||"checked"==c&&"defaultChecked"in g)continue;Ye(e,c,null,h,i)}for(c in g)h=g[c],"children"==c?p=h:"dangerouslySetInnerHTML"==c?u=h:"value"==c?f=h:"checked"==c?v=h:s&&"function"!=typeof h||m[c]===h||Ye(e,c,h,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=""),ze(e,Me(p)?p:[p],t,n,r,"foreignObject"===y?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&He(n,0),s,l),null!=o)for(c=o.length;c--;)Ie(o[c]);s||(c="value","progress"===y&&null==f?e.removeAttribute("value"):void 0!==f&&(f!==e[c]||"progress"===y&&!f||"option"===y&&f!==m[c])&&Ye(e,c,f,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 Ze(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=[],Je(t,e=(!r&&n||t).__k=De(Ne,null,[e]),i||Ae,Ae,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?_e.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,a),Ze(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?_e.call(arguments,2):n),Ge(e.type,s,r||e.key,i||e.ref,null)}function at(e,t){var n={__c:t="__cC"+Pe++,__: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)}_e=Oe.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=Ne,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,Te=Xe(!1),Re=Xe(!0),Pe=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=De(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]=De(ft,{name:c},l):r[o]=l}var u=n?De(ft,null,r):r;return De(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 ht(){rt(this._vdom=null,this._root)}function ft(e,t){var n=this;return De("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,gt,yt,_t=0,wt=[],bt=we,xt=bt.__b,kt=bt.__r,St=bt.diffed,Et=bt.__c,Ct=bt.unmount,Tt=bt.__;function Rt(e,t){bt.__h&&bt.__h(mt,e,_t||t),_t=0;var n=mt.__H||(mt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Pt(e){return _t=1,At(qt,e)}function At(e,t,n){var r=Rt(vt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):qt(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 Ot(e,t){var n=Rt(vt++,3);!bt.__s&&zt(n.__H,t)&&(n.__=e,n.i=t,mt.__H.__h.push(n))}function Lt(e,t){var n=Rt(vt++,4);!bt.__s&&zt(n.__H,t)&&(n.__=e,n.i=t,mt.__h.push(n))}function Mt(e){return _t=5,It((function(){return{current:e}}),[])}function Ft(e,t,n){_t=6,Lt((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=Rt(vt++,7);return zt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Dt(e,t){return _t=8,It((function(){return e}),t)}function Gt(e){var t=mt.context[e.__c],n=Rt(vt++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(mt)),t.props.value):e.__}function $t(e,t){bt.useDebugValue&&bt.useDebugValue(t?t(e):e)}function Nt(){var e=Rt(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(wu){e.__H.__h=[],bt.__e(wu,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),Tt&&Tt(e,t)},bt.__r=function(e){kt&&kt(e),vt=0;var t=(mt=e.__c).__H;t&&(gt===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)),gt=mt},bt.diffed=function(e){St&&St(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==wt.push(t)&&yt===bt.requestAnimationFrame||((yt=bt.requestAnimationFrame)||Ut)(Wt)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),gt=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(nu){t.some((function(e){e.__h&&(e.__h=[])})),t=[],bt.__e(nu,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 Ht="function"==typeof requestAnimationFrame;function Ut(e){var t,n=function(){clearTimeout(r),Ht&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ht&&(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 zt(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function qt(e,t){return"function"==typeof t?t(e):t}class Kt extends Error{}function Vt(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)}}Kt.prototype.name="InvalidTokenError";class Qt{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 Kt("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 Kt(`Invalid token specified: missing part #${n+1}`);let i;try{i=Vt(r)}catch(Dc){throw new Kt(`Invalid token specified: invalid base64 for part #${n+1} (${Dc.message})`)}try{return JSON.parse(i)}catch(Dc){throw new Kt(`Invalid token specified: invalid json for part #${n+1} (${Dc.message})`)}}(e):{roles:[]};return new Qt(t.roles)}}var Yt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xt="undefined"==typeof window||"Deno"in globalThis;function Jt(){}function Zt(e){return"number"==typeof e&&e>=0&&e!==1/0}function en(e,t){return Math.max(e+(t||0)-Date.now(),0)}function tn(e,t){return"function"==typeof e?e(t):e}function nn(e,t){return"function"==typeof e?e(t):e}function rn(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a)if(r){if(t.queryHash!==an(a,t.options))return!1}else if(!ln(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function on(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(sn(t.options.mutationKey)!==sn(o))return!1}else if(!ln(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function an(e,t){return((null==t?void 0:t.queryKeyHashFn)||sn)(e)}function sn(e){return JSON.stringify(e,((e,t)=>pn(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function ln(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!ln(e[n],t[n]))))}function cn(e,t){if(e===t)return e;const n=dn(e)&&dn(t);if(n||pn(e)&&pn(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let c=0;c<a;c++){const i=n?c:o[c];(!n&&r.includes(i)||n)&&void 0===e[i]&&void 0===t[i]?(s[i]=void 0,l++):(s[i]=cn(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===a&&l===i?e:s}return t}function un(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function dn(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pn(e){if(!hn(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!hn(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function hn(e){return"[object Object]"===Object.prototype.toString.call(e)}function fn(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?cn(e,t):t}function vn(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function mn(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var gn=Symbol();function yn(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==gn?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var _n=new(r=class extends Yt{constructor(){super(),__privateAdd(this,e),__privateAdd(this,t),__privateAdd(this,n),__privateSet(this,n,(e=>{if(!Xt&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){__privateGet(this,t)||this.setEventListener(__privateGet(this,n))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,t))||e.call(this),__privateSet(this,t,void 0))}setEventListener(e){var r;__privateSet(this,n,e),null==(r=__privateGet(this,t))||r.call(this),__privateSet(this,t,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})))}setFocused(t){__privateGet(this,e)!==t&&(__privateSet(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var t;return"boolean"==typeof __privateGet(this,e)?__privateGet(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,n=new WeakMap,r),wn=new(s=class extends Yt{constructor(){super(),__privateAdd(this,i,!0),__privateAdd(this,o),__privateAdd(this,a),__privateSet(this,a,(e=>{if(!Xt&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}))}onSubscribe(){__privateGet(this,o)||this.setEventListener(__privateGet(this,a))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,o))||e.call(this),__privateSet(this,o,void 0))}setEventListener(e){var t;__privateSet(this,a,e),null==(t=__privateGet(this,o))||t.call(this),__privateSet(this,o,e(this.setOnline.bind(this)))}setOnline(e){__privateGet(this,i)!==e&&(__privateSet(this,i,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return __privateGet(this,i)}},i=new WeakMap,o=new WeakMap,a=new WeakMap,s);function bn(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch((()=>{})),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function xn(e){return Math.min(1e3*2**e,3e4)}function kn(e){return"online"!==(e??"online")||wn.isOnline()}var Sn=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function En(e){return e instanceof Sn}function Cn(e){let t,n=!1,r=0,i=!1;const o=bn(),a=()=>_n.isFocused()&&("always"===e.networkMode||wn.isOnline())&&e.canRun(),s=()=>kn(e.networkMode)&&e.canRun(),l=n=>{var r;i||(i=!0,null==(r=e.onSuccess)||r.call(e,n),null==t||t(),o.resolve(n))},c=n=>{var r;i||(i=!0,null==(r=e.onError)||r.call(e,n),null==t||t(),o.reject(n))},u=()=>new Promise((n=>{var r;t=e=>{(i||a())&&n(e)},null==(r=e.onPause)||r.call(e)})).then((()=>{var n;t=void 0,i||null==(n=e.onContinue)||n.call(e)})),d=()=>{if(i)return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch((t=>{var o;if(i)return;const s=e.retry??(Xt?0:3),l=e.retryDelay??xn,p="function"==typeof l?l(r,t):l,h=!0===s||"number"==typeof s&&r<s||"function"==typeof s&&s(r,t);var f;!n&&h?(r++,null==(o=e.onFail)||o.call(e,r,t),(f=p,new Promise((e=>{setTimeout(e,f)}))).then((()=>a()?void 0:u())).then((()=>{n?c(t):d()}))):c(t)}))};return{promise:o,cancel:t=>{var n;i||(c(new Sn(t)),null==(n=e.abort)||n.call(e))},continue:()=>(null==t||t(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var Tn=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0);const o=r=>{t?e.push(r):i((()=>{n(r)}))};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),Rn=(c=class{constructor(){__privateAdd(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zt(this.gcTime)&&__privateSet(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xt?1/0:3e5))}clearGcTimeout(){__privateGet(this,l)&&(clearTimeout(__privateGet(this,l)),__privateSet(this,l,void 0))}},l=new WeakMap,c),Pn=(y=class extends Rn{constructor(e){super(),__privateAdd(this,m),__privateAdd(this,u),__privateAdd(this,d),__privateAdd(this,p),__privateAdd(this,h),__privateAdd(this,f),__privateAdd(this,v),__privateSet(this,v,!1),__privateSet(this,f,e.defaultOptions),this.setOptions(e.options),this.observers=[],__privateSet(this,p,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,__privateSet(this,u,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??__privateGet(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=__privateGet(this,h))?void 0:e.promise}setOptions(e){this.options={...__privateGet(this,f),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||__privateGet(this,p).remove(this)}setData(e,t){const n=fn(this.state.data,e,this.options);return __privateMethod(this,m,g).call(this,{data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){__privateMethod(this,m,g).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null==(t=__privateGet(this,h))?void 0:t.promise;return null==(n=__privateGet(this,h))||n.cancel(e),r?r.then(Jt).catch(Jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(__privateGet(this,u))}isActive(){return this.observers.some((e=>!1!==nn(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!en(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,h))||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,h))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),__privateGet(this,p).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(__privateGet(this,h)&&(__privateGet(this,v)?__privateGet(this,h).cancel({revert:!0}):__privateGet(this,h).cancelRetry()),this.scheduleGc()),__privateGet(this,p).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||__privateMethod(this,m,g).call(this,{type:"invalidate"})}fetch(e,t){var n,r,i;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(__privateGet(this,h))return __privateGet(this,h).continueRetry(),__privateGet(this,h).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const o=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(__privateSet(this,v,!0),o.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=yn(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return a(n),__privateSet(this,v,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};a(s),null==(n=this.options.behavior)||n.onFetch(s,this),__privateSet(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(r=s.fetchOptions)?void 0:r.meta)||__privateMethod(this,m,g).call(this,{type:"fetch",meta:null==(i=s.fetchOptions)?void 0:i.meta});const l=e=>{var t,n,r,i;En(e)&&e.silent||__privateMethod(this,m,g).call(this,{type:"error",error:e}),En(e)||(null==(n=(t=__privateGet(this,p).config).onError)||n.call(t,e,this),null==(i=(r=__privateGet(this,p).config).onSettled)||i.call(r,this.state.data,e,this)),this.scheduleGc()};return __privateSet(this,h,Cn({initialPromise:null==t?void 0:t.initialPromise,fn:s.fetchFn,abort:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;if(void 0!==e){try{this.setData(e)}catch(o){return void l(o)}null==(n=(t=__privateGet(this,p).config).onSuccess)||n.call(t,e,this),null==(i=(r=__privateGet(this,p).config).onSettled)||i.call(r,e,this.state.error,this),this.scheduleGc()}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{__privateMethod(this,m,g).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,m,g).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,m,g).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),__privateGet(this,h).start()}},u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,v=new WeakMap,m=new WeakSet,g=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...An(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return En(n)&&n.revert&&__privateGet(this,d)?{...__privateGet(this,d),fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Tn.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),__privateGet(this,p).notify({query:this,type:"updated",action:e})}))},y);function An(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kn(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var On=(w=class extends Yt{constructor(e={}){super(),__privateAdd(this,_),this.config=e,__privateSet(this,_,new Map)}build(e,t,n){const r=t.queryKey,i=t.queryHash??an(r,t);let o=this.get(i);return o||(o=new Pn({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){__privateGet(this,_).has(e.queryHash)||(__privateGet(this,_).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=__privateGet(this,_).get(e.queryHash);t&&(e.destroy(),t===e&&__privateGet(this,_).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Tn.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return __privateGet(this,_).get(e)}getAll(){return[...__privateGet(this,_).values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>rn(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>rn(e,t))):t}notify(e){Tn.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Tn.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Tn.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},_=new WeakMap,w),Ln=(C=class extends Rn{constructor(e){super(),__privateAdd(this,S),__privateAdd(this,b),__privateAdd(this,x),__privateAdd(this,k),this.mutationId=e.mutationId,__privateSet(this,x,e.mutationCache),__privateSet(this,b,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){__privateGet(this,b).includes(e)||(__privateGet(this,b).push(e),this.clearGcTimeout(),__privateGet(this,x).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){__privateSet(this,b,__privateGet(this,b).filter((t=>t!==e))),this.scheduleGc(),__privateGet(this,x).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){__privateGet(this,b).length||("pending"===this.state.status?this.scheduleGc():__privateGet(this,x).remove(this))}continue(){var e;return(null==(e=__privateGet(this,k))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,i,o,a,s,l,c,u,d,p,h,f,v,m,g,y,_,w;__privateSet(this,k,Cn({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{__privateMethod(this,S,E).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,S,E).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,S,E).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>__privateGet(this,x).canRun(this)}));const b="pending"===this.state.status,C=!__privateGet(this,k).canStart();try{if(!b){__privateMethod(this,S,E).call(this,{type:"pending",variables:e,isPaused:C}),await(null==(n=(t=__privateGet(this,x).config).onMutate)?void 0:n.call(t,e,this));const o=await(null==(i=(r=this.options).onMutate)?void 0:i.call(r,e));o!==this.state.context&&__privateMethod(this,S,E).call(this,{type:"pending",context:o,variables:e,isPaused:C})}const h=await __privateGet(this,k).start();return await(null==(a=(o=__privateGet(this,x).config).onSuccess)?void 0:a.call(o,h,e,this.state.context,this)),await(null==(l=(s=this.options).onSuccess)?void 0:l.call(s,h,e,this.state.context)),await(null==(u=(c=__privateGet(this,x).config).onSettled)?void 0:u.call(c,h,null,this.state.variables,this.state.context,this)),await(null==(p=(d=this.options).onSettled)?void 0:p.call(d,h,null,e,this.state.context)),__privateMethod(this,S,E).call(this,{type:"success",data:h}),h}catch(T){try{throw await(null==(f=(h=__privateGet(this,x).config).onError)?void 0:f.call(h,T,e,this.state.context,this)),await(null==(m=(v=this.options).onError)?void 0:m.call(v,T,e,this.state.context)),await(null==(y=(g=__privateGet(this,x).config).onSettled)?void 0:y.call(g,void 0,T,this.state.variables,this.state.context,this)),await(null==(w=(_=this.options).onSettled)?void 0:w.call(_,void 0,T,e,this.state.context)),T}finally{__privateMethod(this,S,E).call(this,{type:"error",error:T})}}finally{__privateGet(this,x).runNext(this)}}},b=new WeakMap,x=new WeakMap,k=new WeakMap,S=new WeakSet,E=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Tn.batch((()=>{__privateGet(this,b).forEach((t=>{t.onMutationUpdate(e)})),__privateGet(this,x).notify({mutation:this,type:"updated",action:e})}))},C);var Mn=(P=class extends Yt{constructor(e={}){super(),__privateAdd(this,T),__privateAdd(this,R),this.config=e,__privateSet(this,T,new Map),__privateSet(this,R,Date.now())}build(e,t,n){const r=new Ln({mutationCache:this,mutationId:++__privateWrapper(this,R)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=Fn(e),n=__privateGet(this,T).get(t)??[];n.push(e),__privateGet(this,T).set(t,n),this.notify({type:"added",mutation:e})}remove(e){var t;const n=Fn(e);if(__privateGet(this,T).has(n)){const r=null==(t=__privateGet(this,T).get(n))?void 0:t.filter((t=>t!==e));r&&(0===r.length?__privateGet(this,T).delete(n):__privateGet(this,T).set(n,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null==(t=__privateGet(this,T).get(Fn(e)))?void 0:t.find((e=>"pending"===e.state.status));return!n||n===e}runNext(e){var t;const n=null==(t=__privateGet(this,T).get(Fn(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return(null==n?void 0:n.continue())??Promise.resolve()}clear(){Tn.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...__privateGet(this,T).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>on(t,e)))}findAll(e={}){return this.getAll().filter((t=>on(e,t)))}notify(e){Tn.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Tn.batch((()=>Promise.all(e.map((e=>e.continue().catch(Jt))))))}},T=new WeakMap,R=new WeakMap,P);function Fn(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function In(e){return{onFetch:(t,n)=>{var r,i,o,a,s;const l=t.options,c=null==(o=null==(i=null==(r=t.fetchOptions)?void 0:r.meta)?void 0:i.fetchMore)?void 0:o.direction,u=(null==(a=t.state.data)?void 0:a.pages)||[],d=(null==(s=t.state.data)?void 0:s.pageParams)||[];let p={pages:[],pageParams:[]},h=0;const f=async()=>{let n=!1;const r=yn(t.options,t.fetchOptions),i=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);const a={queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};var s;s=a,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)});const l=await r(a),{maxPages:c}=t.options,u=o?mn:vn;return{pages:u(e.pages,l,c),pageParams:u(e.pageParams,i,c)}};if(c&&u.length){const e="backward"===c,t={pages:u,pageParams:d},n=(e?Gn:Dn)(l,t);p=await i(t,n,e)}else{const t=e??u.length;do{const e=0===h?d[0]??l.initialPageParam:Dn(l,p);if(h>0&&null==e)break;p=await i(p,e),h++}while(h<t)}return p};t.options.persister?t.fetchFn=()=>{var e,r;return null==(r=(e=t.options).persister)?void 0:r.call(e,f,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function Dn(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Gn(e,{pages:t,pageParams:n}){var r;return t.length>0?null==(r=e.getPreviousPageParam)?void 0:r.call(e,t[0],t,n[0],n):void 0}var $n=($=class{constructor(e={}){__privateAdd(this,A),__privateAdd(this,O),__privateAdd(this,L),__privateAdd(this,M),__privateAdd(this,F),__privateAdd(this,I),__privateAdd(this,D),__privateAdd(this,G),__privateSet(this,A,e.queryCache||new On),__privateSet(this,O,e.mutationCache||new Mn),__privateSet(this,L,e.defaultOptions||{}),__privateSet(this,M,new Map),__privateSet(this,F,new Map),__privateSet(this,I,0)}mount(){__privateWrapper(this,I)._++,1===__privateGet(this,I)&&(__privateSet(this,D,_n.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,A).onFocus())}))),__privateSet(this,G,wn.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,A).onOnline())}))))}unmount(){var e,t;__privateWrapper(this,I)._--,0===__privateGet(this,I)&&(null==(e=__privateGet(this,D))||e.call(this),__privateSet(this,D,void 0),null==(t=__privateGet(this,G))||t.call(this),__privateSet(this,G,void 0))}isFetching(e){return __privateGet(this,A).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return __privateGet(this,O).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,A).get(n.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=__privateGet(this,A).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(tn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return __privateGet(this,A).findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=__privateGet(this,A).get(r.queryHash),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==i?void 0:i.state.data);if(void 0!==o)return __privateGet(this,A).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Tn.batch((()=>__privateGet(this,A).findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,A).get(n.queryHash))?void 0:t.state}removeQueries(e){const t=__privateGet(this,A);Tn.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=__privateGet(this,A),r={type:"active",...e};return Tn.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Tn.batch((()=>__privateGet(this,A).findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(Jt).catch(Jt)}invalidateQueries(e={},t={}){return Tn.batch((()=>{if(__privateGet(this,A).findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)}))}refetchQueries(e={},t){const n={...t,cancelRefetch:(null==t?void 0:t.cancelRefetch)??!0},r=Tn.batch((()=>__privateGet(this,A).findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Jt)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(Jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=__privateGet(this,A).build(this,t);return n.isStaleByTime(tn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Jt).catch(Jt)}fetchInfiniteQuery(e){return e.behavior=In(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Jt).catch(Jt)}ensureInfiniteQueryData(e){return e.behavior=In(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return wn.isOnline()?__privateGet(this,O).resumePausedMutations():Promise.resolve()}getQueryCache(){return __privateGet(this,A)}getMutationCache(){return __privateGet(this,O)}getDefaultOptions(){return __privateGet(this,L)}setDefaultOptions(e){__privateSet(this,L,e)}setQueryDefaults(e,t){__privateGet(this,M).set(sn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...__privateGet(this,M).values()];let n={};return t.forEach((t=>{ln(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){__privateGet(this,F).set(sn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...__privateGet(this,F).values()];let n={};return t.forEach((t=>{ln(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...__privateGet(this,L).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=an(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===gn&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...__privateGet(this,L).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){__privateGet(this,A).clear(),__privateGet(this,O).clear()}},A=new WeakMap,O=new WeakMap,L=new WeakMap,M=new WeakMap,F=new WeakMap,I=new WeakMap,D=new WeakMap,G=new WeakMap,$),Nn=(ue=class extends Yt{constructor(e,t){super(),__privateAdd(this,ee),__privateAdd(this,N),__privateAdd(this,W),__privateAdd(this,H),__privateAdd(this,U),__privateAdd(this,j),__privateAdd(this,B),__privateAdd(this,z),__privateAdd(this,q),__privateAdd(this,K),__privateAdd(this,V),__privateAdd(this,Q),__privateAdd(this,Y),__privateAdd(this,X),__privateAdd(this,J),__privateAdd(this,Z,new Set),this.options=t,__privateSet(this,N,e),__privateSet(this,q,null),__privateSet(this,z,bn()),this.options.experimental_prefetchInRender||__privateGet(this,z).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(__privateGet(this,W).addObserver(this),Wn(__privateGet(this,W),this.options)?__privateMethod(this,ee,te).call(this):this.updateResult(),__privateMethod(this,ee,oe).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hn(__privateGet(this,W),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hn(__privateGet(this,W),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,__privateMethod(this,ee,ae).call(this),__privateMethod(this,ee,se).call(this),__privateGet(this,W).removeObserver(this)}setOptions(e,t){const n=this.options,r=__privateGet(this,W);if(this.options=__privateGet(this,N).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof nn(this.options.enabled,__privateGet(this,W)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");__privateMethod(this,ee,le).call(this),__privateGet(this,W).setOptions(this.options),n._defaulted&&!un(this.options,n)&&__privateGet(this,N).getQueryCache().notify({type:"observerOptionsUpdated",query:__privateGet(this,W),observer:this});const i=this.hasListeners();i&&Un(__privateGet(this,W),r,this.options,n)&&__privateMethod(this,ee,te).call(this),this.updateResult(t),!i||__privateGet(this,W)===r&&nn(this.options.enabled,__privateGet(this,W))===nn(n.enabled,__privateGet(this,W))&&tn(this.options.staleTime,__privateGet(this,W))===tn(n.staleTime,__privateGet(this,W))||__privateMethod(this,ee,ne).call(this);const o=__privateMethod(this,ee,re).call(this);!i||__privateGet(this,W)===r&&nn(this.options.enabled,__privateGet(this,W))===nn(n.enabled,__privateGet(this,W))&&o===__privateGet(this,J)||__privateMethod(this,ee,ie).call(this,o)}getOptimisticResult(e){const t=__privateGet(this,N).getQueryCache().build(__privateGet(this,N),e),n=this.createResult(t,e);return function(e,t){if(!un(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(__privateSet(this,U,n),__privateSet(this,B,this.options),__privateSet(this,j,__privateGet(this,W).state)),n}getCurrentResult(){return __privateGet(this,U)}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),null==t||t(r),e[r])})})),n}trackProp(e){__privateGet(this,Z).add(e)}getCurrentQuery(){return __privateGet(this,W)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=__privateGet(this,N).defaultQueryOptions(e),n=__privateGet(this,N).getQueryCache().build(__privateGet(this,N),t);return n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return __privateMethod(this,ee,te).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),__privateGet(this,U))))}createResult(e,t){var n;const r=__privateGet(this,W),i=this.options,o=__privateGet(this,U),a=__privateGet(this,j),s=__privateGet(this,B),l=e!==r?e.state:__privateGet(this,H),{state:c}=e;let u,d={...c},p=!1;if(t._optimisticResults){const n=this.hasListeners(),o=!n&&Wn(e,t),a=n&&Un(e,r,t,i);(o||a)&&(d={...d,...An(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:f,status:v}=d;if(t.select&&void 0!==d.data)if(o&&d.data===(null==a?void 0:a.data)&&t.select===__privateGet(this,K))u=__privateGet(this,V);else try{__privateSet(this,K,t.select),u=t.select(d.data),u=fn(null==o?void 0:o.data,u,t),__privateSet(this,V,u),__privateSet(this,q,null)}catch(x){__privateSet(this,q,x)}else u=d.data;if(void 0!==t.placeholderData&&void 0===u&&"pending"===v){let e;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==s?void 0:s.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(null==(n=__privateGet(this,Q))?void 0:n.state.data,__privateGet(this,Q)):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),__privateSet(this,q,null)}catch(x){__privateSet(this,q,x)}void 0!==e&&(v="success",u=fn(null==o?void 0:o.data,e,t),p=!0)}__privateGet(this,q)&&(h=__privateGet(this,q),u=__privateGet(this,V),f=Date.now(),v="error");const m="fetching"===d.fetchStatus,g="pending"===v,y="error"===v,_=g&&m,w=void 0!==u,b={status:v,fetchStatus:d.fetchStatus,isPending:g,isSuccess:"success"===v,isError:y,isInitialLoading:_,isLoading:_,data:u,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:f,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&!g,isLoadingError:y&&!w,isPaused:"paused"===d.fetchStatus,isPlaceholderData:p,isRefetchError:y&&w,isStale:jn(e,t),refetch:this.refetch,promise:__privateGet(this,z)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===b.status?e.reject(b.error):void 0!==b.data&&e.resolve(b.data)},n=()=>{const e=__privateSet(this,z,b.promise=bn());t(e)},i=__privateGet(this,z);switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":"error"!==b.status&&b.data===i.value||n();break;case"rejected":"error"===b.status&&b.error===i.reason||n()}}return b}updateResult(e){const t=__privateGet(this,U),n=this.createResult(__privateGet(this,W),this.options);if(__privateSet(this,j,__privateGet(this,W).state),__privateSet(this,B,this.options),void 0!==__privateGet(this,j).data&&__privateSet(this,Q,__privateGet(this,W)),un(n,t))return;__privateSet(this,U,n);const r={};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!__privateGet(this,Z).size)return!0;const r=new Set(n??__privateGet(this,Z));return this.options.throwOnError&&r.add("error"),Object.keys(__privateGet(this,U)).some((e=>{const n=e;return __privateGet(this,U)[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),__privateMethod(this,ee,ce).call(this,{...r,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&__privateMethod(this,ee,oe).call(this)}},N=new WeakMap,W=new WeakMap,H=new WeakMap,U=new WeakMap,j=new WeakMap,B=new WeakMap,z=new WeakMap,q=new WeakMap,K=new WeakMap,V=new WeakMap,Q=new WeakMap,Y=new WeakMap,X=new WeakMap,J=new WeakMap,Z=new WeakMap,ee=new WeakSet,te=function(e){__privateMethod(this,ee,le).call(this);let t=__privateGet(this,W).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(Jt)),t},ne=function(){__privateMethod(this,ee,ae).call(this);const e=tn(this.options.staleTime,__privateGet(this,W));if(Xt||__privateGet(this,U).isStale||!Zt(e))return;const t=en(__privateGet(this,U).dataUpdatedAt,e);__privateSet(this,Y,setTimeout((()=>{__privateGet(this,U).isStale||this.updateResult()}),t+1))},re=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(__privateGet(this,W)):this.options.refetchInterval)??!1},ie=function(e){__privateMethod(this,ee,se).call(this),__privateSet(this,J,e),!Xt&&!1!==nn(this.options.enabled,__privateGet(this,W))&&Zt(__privateGet(this,J))&&0!==__privateGet(this,J)&&__privateSet(this,X,setInterval((()=>{(this.options.refetchIntervalInBackground||_n.isFocused())&&__privateMethod(this,ee,te).call(this)}),__privateGet(this,J)))},oe=function(){__privateMethod(this,ee,ne).call(this),__privateMethod(this,ee,ie).call(this,__privateMethod(this,ee,re).call(this))},ae=function(){__privateGet(this,Y)&&(clearTimeout(__privateGet(this,Y)),__privateSet(this,Y,void 0))},se=function(){__privateGet(this,X)&&(clearInterval(__privateGet(this,X)),__privateSet(this,X,void 0))},le=function(){const e=__privateGet(this,N).getQueryCache().build(__privateGet(this,N),this.options);if(e===__privateGet(this,W))return;const t=__privateGet(this,W);__privateSet(this,W,e),__privateSet(this,H,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))},ce=function(e){Tn.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(__privateGet(this,U))})),__privateGet(this,N).getQueryCache().notify({query:__privateGet(this,W),type:"observerResultsUpdated"})}))},ue);function Wn(e,t){return function(e,t){return!1!==nn(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Hn(e,t,t.refetchOnMount)}function Hn(e,t,n){if(!1!==nn(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&jn(e,t)}return!1}function Un(e,t,n,r){return(e!==t||!1===nn(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&jn(e,n)}function jn(e,t){return!1!==nn(t.enabled,e)&&e.isStaleByTime(tn(t.staleTime,e))}var Bn=(ye=class extends Yt{constructor(e,t){super(),__privateAdd(this,ve),__privateAdd(this,de),__privateAdd(this,pe),__privateAdd(this,he),__privateAdd(this,fe),__privateSet(this,de,e),this.setOptions(t),this.bindMethods(),__privateMethod(this,ve,me).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=__privateGet(this,de).defaultMutationOptions(e),un(this.options,n)||__privateGet(this,de).getMutationCache().notify({type:"observerOptionsUpdated",mutation:__privateGet(this,he),observer:this}),(null==n?void 0:n.mutationKey)&&this.options.mutationKey&&sn(n.mutationKey)!==sn(this.options.mutationKey)?this.reset():"pending"===(null==(t=__privateGet(this,he))?void 0:t.state.status)&&__privateGet(this,he).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=__privateGet(this,he))||e.removeObserver(this)}onMutationUpdate(e){__privateMethod(this,ve,me).call(this),__privateMethod(this,ve,ge).call(this,e)}getCurrentResult(){return __privateGet(this,pe)}reset(){var e;null==(e=__privateGet(this,he))||e.removeObserver(this),__privateSet(this,he,void 0),__privateMethod(this,ve,me).call(this),__privateMethod(this,ve,ge).call(this)}mutate(e,t){var n;return __privateSet(this,fe,t),null==(n=__privateGet(this,he))||n.removeObserver(this),__privateSet(this,he,__privateGet(this,de).getMutationCache().build(__privateGet(this,de),this.options)),__privateGet(this,he).addObserver(this),__privateGet(this,he).execute(e)}},de=new WeakMap,pe=new WeakMap,he=new WeakMap,fe=new WeakMap,ve=new WeakSet,me=function(){var e;const t=(null==(e=__privateGet(this,he))?void 0:e.state)??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};__privateSet(this,pe,{...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset})},ge=function(e){Tn.batch((()=>{var t,n,r,i,o,a,s,l;if(__privateGet(this,fe)&&this.hasListeners()){const c=__privateGet(this,pe).variables,u=__privateGet(this,pe).context;"success"===(null==e?void 0:e.type)?(null==(n=(t=__privateGet(this,fe)).onSuccess)||n.call(t,e.data,c,u),null==(i=(r=__privateGet(this,fe)).onSettled)||i.call(r,e.data,null,c,u)):"error"===(null==e?void 0:e.type)&&(null==(a=(o=__privateGet(this,fe)).onError)||a.call(o,e.error,c,u),null==(l=(s=__privateGet(this,fe)).onSettled)||l.call(s,void 0,e.error,c,u))}this.listeners.forEach((e=>{e(__privateGet(this,pe))}))}))},ye);function zn(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 qn(e,t){this.props=e,this.context=t}function Kn(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:zn(this.props,e)}function r(t){return this.shouldComponentUpdate=n,De(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(qn.prototype=new We).isPureReactComponent=!0,qn.prototype.shouldComponentUpdate=function(e,t){return zn(this.props,e)||zn(this.state,t)};var Vn=we.__b;we.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Vn&&Vn(e)};var Qn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Yn(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=Qn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Xn=function(e,t){return null==e?null:Ke(Ke(e).map(t))},Jn={map:Xn,forEach:Xn,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},Zn=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);Zn(e,t,n,r)};var er=we.unmount;function tr(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 tr(e,t,n)}))),e}function nr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return nr(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 rr(){this.__u=0,this.t=null,this.__b=null}function ir(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function or(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 De(n,i)}return i.displayName="Lazy",i.__f=!0,i}function ar(){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),er&&er(e)},(rr.prototype=new We).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=ir(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]=nr(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)},rr.prototype.componentWillUnmount=function(){this.t=[]},rr.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]=tr(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&De(Ne,null,e.fallback);return i&&(i.__u&=-33),[De(Ne,null,t.__a?null:e.children),i]};var sr=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 lr(e){return this.getChildContext=function(){return e.context},e.children}function cr(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(De(lr,{context:t.context},e.__v),t.l)}function ur(e,t){var n=De(cr,{__v:e,i:t});return n.containerInfo=t,n}(ar.prototype=new We).__a=function(e){var t=this,n=ir(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),sr(t,e,r)):i()};n?n(o):o()}},ar.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},ar.prototype.componentDidUpdate=ar.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){sr(e,n,t)}))};var dr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,pr=/^(?: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]/,hr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,fr=/[A-Z0-9]/g,vr="undefined"!=typeof document,mr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function gr(e,t,n){return null==t.__k&&(t.textContent=""),rt(e,t),"function"==typeof n&&n(),e?e.__c:null}function yr(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 _r=we.event;function wr(){}function br(){return this.cancelBubble}function xr(){return this.defaultPrevented}we.event=function(e){return _r&&(e=_r(e)),e.persist=wr,e.isPropagationStopped=br,e.isDefaultPrevented=xr,e.nativeEvent=e};var kr,Sr={enumerable:!1,configurable:!0,get:function(){return this.class}},Er=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||vr&&"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||mr(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":hr.test(o)&&(o=s):s=o="oninput":i&&pr.test(o)?o=o.replace(fr,"-$&").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",Sr)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=dr,Er&&Er(e)};var Cr=we.__r;we.__r=function(e){Cr&&Cr(e),kr=e.__c};var Tr=we.diffed;we.diffed=function(e){Tr&&Tr(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),kr=null};var Rr={ReactCurrentDispatcher:{current:{readContext:function(e){return kr.__n[e.__c].props.value},useCallback:Dt,useContext:Gt,useDebugValue:$t,useDeferredValue:Wr,useEffect:Ot,useId:Nt,useImperativeHandle:Ft,useInsertionEffect:Ur,useLayoutEffect:Lt,useMemo:It,useReducer:At,useRef:Mt,useState:Pt,useSyncExternalStore:Br,useTransition:Hr}}};function Pr(e){return De.bind(null,e)}function Ar(e){return!!e&&e.$$typeof===dr}function Or(e){return Ar(e)&&e.type===Ne}function Lr(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Mr(e){return Ar(e)?ot.apply(null,arguments):e}function Fr(e){return!!e.__k&&(rt(null,e),!0)}function Ir(e){return e&&(e.base||1===e.nodeType&&e)||null}var Dr=function(e,t){return e(t)},Gr=function(e,t){return e(t)},$r=Ne;function Nr(e){e()}function Wr(e){return e}function Hr(){return[!1,Nr]}var Ur=Lt,jr=Ar;function Br(e,t){var n=t(),r=Pt({h:{__:n,v:t}}),i=r[0].h,o=r[1];return Lt((function(){i.__=n,i.v=t,zr(i)&&o({h:i})}),[e,n,t]),Ot((function(){return zr(i)&&o({h:i}),e((function(){zr(i)&&o({h:i})}))}),[e]),n}function zr(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 qr={useState:Pt,useId:Nt,useReducer:At,useEffect:Ot,useLayoutEffect:Lt,useInsertionEffect:Ur,useTransition:Hr,useDeferredValue:Wr,useSyncExternalStore:Br,startTransition:Nr,useRef:Mt,useImperativeHandle:Ft,useMemo:It,useCallback:Dt,useContext:Gt,useDebugValue:$t,version:"18.3.1",Children:Jn,render:gr,hydrate:yr,unmountComponentAtNode:Fr,createPortal:ur,createElement:De,createContext:at,createFactory:Pr,cloneElement:Mr,createRef:$e,Fragment:Ne,isValidElement:Ar,isElement:jr,isFragment:Or,isMemo:Lr,findDOMNode:Ir,Component:We,PureComponent:qn,memo:Kn,forwardRef:Yn,flushSync:Gr,unstable_batchedUpdates:Dr,StrictMode:$r,Suspense:rr,SuspenseList:ar,lazy:or,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Rr};const Kr=Object.freeze(Object.defineProperty({__proto__:null,Children:Jn,Component:We,Fragment:Ne,PureComponent:qn,StrictMode:$r,Suspense:rr,SuspenseList:ar,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Rr,cloneElement:Mr,createContext:at,createElement:De,createFactory:Pr,createPortal:ur,createRef:$e,default:qr,findDOMNode:Ir,flushSync:Gr,forwardRef:Yn,hydrate:yr,isElement:jr,isFragment:Or,isMemo:Lr,isValidElement:Ar,lazy:or,memo:Kn,render:gr,startTransition:Nr,unmountComponentAtNode:Fr,unstable_batchedUpdates:Dr,useCallback:Dt,useContext:Gt,useDebugValue:$t,useDeferredValue:Wr,useEffect:Ot,useErrorBoundary:function(e){var t=Rt(vt++,10),n=Pt();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:Nt,useImperativeHandle:Ft,useInsertionEffect:Ur,useLayoutEffect:Lt,useMemo:It,useReducer:At,useRef:Mt,useState:Pt,useSyncExternalStore:Br,useTransition:Hr,version:"18.3.1"},Symbol.toStringTag,{value:"Module"}));var Vr=0;function Qr(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:--Vr,__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 Yr=at(void 0),Xr=e=>{const t=Gt(Yr);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Jr=({client:e,children:t})=>(Ot((()=>(e.mount(),()=>{e.unmount()})),[e]),Qr(Yr.Provider,{value:e,children:t})),Zr=at(!1);Zr.Provider;var ei=at(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function ti(e,t){return"function"==typeof e?e(...t):!!e}function ni(){}var ri=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function ii(e,t,n){var r,i,o,a,s;const l=Xr(),c=Gt(Zr),u=Gt(ei),d=l.defaultQueryOptions(e);null==(i=null==(r=l.getDefaultOptions().queries)?void 0:r._experimental_beforeQuery)||i.call(r,d),d._optimisticResults=c?"isRestoring":"optimistic",(e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(d),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(d,u),(e=>{Ot((()=>{e.clearReset()}),[e])})(u);const p=!l.getQueryCache().get(d.queryHash),[h]=Pt((()=>new t(l,d))),f=h.getOptimisticResult(d);if(Br(Dt((e=>{const t=c?ni:h.subscribe(Tn.batchCalls(e));return h.updateResult(),t}),[h,c]),(()=>h.getCurrentResult())),Ot((()=>{h.setOptions(d,{listeners:!1})}),[d,h]),((e,t)=>(null==e?void 0:e.suspense)&&t.isPending)(d,f))throw ri(d,h,u);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&ti(n,[e.error,r]))({result:f,errorResetBoundary:u,throwOnError:d.throwOnError,query:l.getQueryCache().get(d.queryHash)}))throw f.error;if(null==(a=null==(o=l.getDefaultOptions().queries)?void 0:o._experimental_afterQuery)||a.call(o,d,f),d.experimental_prefetchInRender&&!Xt&&((e,t)=>e.isLoading&&e.isFetching&&!t)(f,c)){const e=p?ri(d,h,u):null==(s=l.getQueryCache().get(d.queryHash))?void 0:s.promise;null==e||e.catch(ni).finally((()=>{h.updateResult()}))}return d.notifyOnChangeProps?f:h.trackResult(f)}function oi(e,t){return ii(e,Nn)}const ai=at({account:{accountId:""},backend:{url:"",accessToken:""}}),si=()=>Gt(ai);class li extends Error{constructor(e,t){super(e),__publicField(this,"_response"),this._response=t,Object.setPrototypeOf(this,li.prototype)}get response(){return this._response}}const ci=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.1186",authorization:`Bearer ${t}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!i.ok)throw new li(`[API Error] Status: ${i.status}, ${i.statusText}`,i);return i},ui=async(e,t,n,r)=>{const i=await ci(e,t,n,r);return await i.json()},di=e=>{const t=si();return It((()=>e(t)),[e,t])};let pi;const hi=()=>{if(pi)return pi;return pi=new $n({defaultOptions:{queries:{retry:(e,t)=>{var n;return t instanceof li&&![401,403].includes((null==(n=t.response)?void 0:n.status)||0)}}}}),pi},fi="linkedAccount",vi="linkedProfilesForAccount",mi="salaryPackagedItem",gi="checkProfileSearchAuthorization",yi="payrollAdvice",_i="invoices",wi="/salary-packaging/admin/v1.0",bi=e=>async()=>{const t=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/auth`);return ui(t,e.backend.accessToken,"GET")},xi=e=>async t=>{const n=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profile-search?search=${t}`);return ui(n,e.backend.accessToken,"GET")},ki=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}${wi}/ingest/clients`);await ci(r,e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:n.toISOString().split("T")[0]})},Si=e=>async()=>{const t=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}`);return ui(t,e.backend.accessToken,"GET")},Ei=e=>async()=>{const t=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profiles`);return ui(t,e.backend.accessToken,"GET")},Ci=e=>async t=>{const n=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profiles/${t}/unlink`);await ci(n,e.backend.accessToken,"POST")},Ti=e=>async(t,n)=>{const r=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profiles/${t}/items/${n}`);return ui(r,e.backend.accessToken,"GET")},Ri=e=>async t=>{const n=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profiles/${t}/payroll-advice`);return ui(n,e.backend.accessToken,"GET")},Pi=e=>async()=>{const t=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/invoices`);return ui(t,e.backend.accessToken,"GET")},Ai=()=>({checkProfileSearchAuthorization:di(bi),searchProfilesForAccount:di(xi),ingestClient:di(ki),linkedAccount:di(Si),linkedProfilesForAccount:di(Ei),unlinkProfile:di(Ci),salaryPackagedItem:di(Ti),payrollAdvice:di(Ri),invoices:di(Pi)})
|
|
2
|
-
/**
|
|
3
|
-
* react-router v7.12.0
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Remix Software Inc.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
9
|
-
*
|
|
10
|
-
* @license MIT
|
|
11
|
-
*/;var Oi="popstate";function Li(e={}){return function(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s="POP",l=null,c=u();null==c&&(c=0,a.replaceState({...a.state,idx:c},""));function u(){return(a.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:v.location,delta:t})}function p(e,t){s="PUSH";let r=Di(v.location,e,t);n&&n(r,e),c=u()+1;let d=Ii(r,c),p=v.createHref(r);try{a.pushState(d,"",p)}catch(h){if(h instanceof DOMException&&"DataCloneError"===h.name)throw h;i.location.assign(p)}o&&l&&l({action:s,location:v.location,delta:1})}function h(e,t){s="REPLACE";let r=Di(v.location,e,t);n&&n(r,e),c=u();let i=Ii(r,c),d=v.createHref(r);a.replaceState(i,"",d),o&&l&&l({action:s,location:v.location,delta:0})}function f(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href);Mi(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:Gi(e);r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r);return new URL(r,n)}(e)}let v={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Oi,d),l=e,()=>{i.removeEventListener(Oi,d),l=null}},createHref:e=>t(i,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:p,replace:h,go:e=>a.go(e)};return v}((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=$i(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),Di("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:Gi(t))}),(function(e,t){Fi("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function Mi(e,t){if(!1===e||null==e)throw new Error(t)}function Fi(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(Dc){}}}function Ii(e,t){return{usr:e.state,key:e.key,idx:t}}function Di(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?$i(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function Gi({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function $i(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Ni(e,t,n="/"){return function(e,t,n,r){let i="string"==typeof t?$i(t):t,o=Zi(i.pathname||"/",n);if(null==o)return null;let a=Wi(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let s=null;for(let l=0;null==s&&l<a.length;++l){let e=Ji(o);s=Yi(a[l],e,r)}return s}(e,t,n,!1)}function Wi(e,t=[],n=[],r="",i=!1){let o=(e,o,a=i,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&a)return;Mi(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let c=ao([r,l.relativePath]),u=n.concat(l);e.children&&e.children.length>0&&(Mi(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Wi(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:Qi(c,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&(null==(n=e.path)?void 0:n.includes("?")))for(let r of Hi(e.path))o(e,t,!0,r);else o(e,t)})),t}function Hi(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=Hi(r.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}var Ui=/^:[\w-]+$/,ji=3,Bi=2,zi=1,qi=10,Ki=-2,Vi=e=>"*"===e;function Qi(e,t){let n=e.split("/"),r=n.length;return n.some(Vi)&&(r+=Ki),t&&(r+=Bi),n.filter((e=>!Vi(e))).reduce(((e,t)=>e+(Ui.test(t)?ji:""===t?zi:qi)),r)}function Yi(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let e=r[s],l=s===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=Xi({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=Xi({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),a.push({params:i,pathname:ao([o,u.pathname]),pathnameBase:so(ao([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=ao([o,u.pathnameBase]))}return a}function Xi(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){Fi("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"))).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const i=s[r];return e[t]=n&&!i?void 0:(i||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function Ji(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return Fi(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Zi(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var eo=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function to(e,t="/"){let n,{pathname:r,search:i="",hash:o=""}="string"==typeof e?$i(e):e;if(r)if(a=r,eo.test(a))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),Fi(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${r}`)}n=r.startsWith("/")?no(r.substring(1),"/"):no(r,t)}else n=t;var a;return{pathname:n,search:lo(i),hash:co(o)}}function no(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function ro(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function io(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function oo(e,t,n,r=!1){let i;"string"==typeof e?i=$i(e):(i={...e},Mi(!i.pathname||!i.pathname.includes("?"),ro("?","pathname","search",i)),Mi(!i.pathname||!i.pathname.includes("#"),ro("#","pathname","hash",i)),Mi(!i.search||!i.search.includes("#"),ro("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=to(i,o),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var ao=e=>e.join("/").replace(/\/\/+/g,"/"),so=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),lo=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",co=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",uo=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function po(e){return e.map((e=>e.route.path)).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ho="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function fo(e,t){let n=e;if("string"!=typeof n||!eo.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(ho)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),o=Zi(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:i=!0}catch(Dc){Fi(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var vo=["POST","PUT","PATCH","DELETE"];new Set(vo);var mo=["GET",...vo];new Set(mo);var go=at(null);go.displayName="DataRouter";var yo=at(null);yo.displayName="DataRouterState";var _o=at(!1),wo=at({isTransitioning:!1});wo.displayName="ViewTransition",at(new Map).displayName="Fetchers",at(null).displayName="Await";var bo=at(null);bo.displayName="Navigation";var xo=at(null);xo.displayName="Location";var ko=at({outlet:null,matches:[],isDataRoute:!1});ko.displayName="Route";var So=at(null);So.displayName="RouteError";var Eo="REACT_ROUTER_ERROR";function Co(){return null!=Gt(xo)}function To(){return Mi(Co(),"useLocation() may be used only in the context of a <Router> component."),Gt(xo).location}var Ro="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Po(e){Gt(bo).static||Lt(e)}function Ao(){let{isDataRoute:e}=Gt(ko);return e?function(){let{router:e}=function(e){let t=Gt(go);return Mi(t,Ho(e)),t}("useNavigate"),t=Uo("useNavigate"),n=Mt(!1);return Po((()=>{n.current=!0})),Dt((async(r,i={})=>{Fi(n.current,Ro),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))}),[e,t])}():function(){Mi(Co(),"useNavigate() may be used only in the context of a <Router> component.");let e=Gt(go),{basename:t,navigator:n}=Gt(bo),{matches:r}=Gt(ko),{pathname:i}=To(),o=JSON.stringify(io(r)),a=Mt(!1);return Po((()=>{a.current=!0})),Dt(((r,s={})=>{if(Fi(a.current,Ro),!a.current)return;if("number"==typeof r)return void n.go(r);let l=oo(r,JSON.parse(o),i,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:ao([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)}),[t,n,o,i,e])}()}var Oo=at(null);function Lo(e){let t=Gt(ko).outlet;return It((()=>t&&De(Oo.Provider,{value:e},t)),[t,e])}function Mo(e,{relative:t}={}){let{matches:n}=Gt(ko),{pathname:r}=To(),i=JSON.stringify(io(n));return It((()=>oo(e,JSON.parse(i),r,"path"===t)),[e,i,r,t])}function Fo(e,t,n,r,i){var o;Mi(Co(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=Gt(bo),{matches:s}=Gt(ko),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",p=l&&l.route;{let e=p&&p.path||"";Bo(u,!p||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,f=To();if(t){let e="string"==typeof t?$i(t):t;Mi("/"===d||(null==(o=e.pathname)?void 0:o.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=f;let v=h.pathname||"/",m=v;if("/"!==d){let e=d.replace(/^\//,"").split("/");m="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=Ni(e,{pathname:m});Fi(p||null!=g,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Fi(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=function(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,o=null==n?void 0:n.errors;if(null!=o){let e=i.findIndex((e=>e.route.id&&void 0!==(null==o?void 0:o[e.route.id])));Mi(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let a=!1,s=-1;if(n)for(let c=0;c<i.length;c++){let e=i[c];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(s=c),e.route.id){let{loaderData:t,errors:r}=n,o=e.route.loader&&!t.hasOwnProperty(e.route.id)&&(!r||void 0===r[e.route.id]);if(e.route.lazy||o){a=!0,i=s>=0?i.slice(0,s+1):[i[0]];break}}}let l=n&&r?(e,t)=>{var i,o;r(e,{location:n.location,params:(null==(o=null==(i=n.matches)?void 0:i[0])?void 0:o.params)??{},unstable_pattern:po(n.matches),errorInfo:t})}:void 0;return i.reduceRight(((e,r,c)=>{let u,d=!1,p=null,h=null;n&&(u=o&&r.route.id?o[r.route.id]:void 0,p=r.route.errorElement||Do,a&&(s<0&&0===c?(Bo("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,h=null):s===c&&(d=!0,h=r.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,c+1)),v=()=>{let t;return t=u?p:d?h:r.route.Component?De(r.route.Component,null):r.route.element?r.route.element:e,De(Wo,{match:r,routeContext:{outlet:e,matches:f,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===c)?De(Go,{location:n.location,revalidation:n.revalidation,component:p,error:u,children:v(),routeContext:{outlet:null,matches:f,isDataRoute:!0},onError:l}):v()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:ao([d,a.encodeLocation?a.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:ao([d,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),s,n,r,i);return t&&y?De(xo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},y):y}function Io(){let e=function(){var e;let t=Gt(So),n=function(e){let t=Gt(yo);return Mi(t,Ho(e)),t}("useRouteError"),r=Uo("useRouteError");if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=De(Ne,null,De("p",null,"💿 Hey developer 👋"),De("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",De("code",{style:o},"ErrorBoundary")," or"," ",De("code",{style:o},"errorElement")," prop on your route.")),De(Ne,null,De("h2",null,"Unexpected Application Error!"),De("h3",{style:{fontStyle:"italic"}},t),n?De("pre",{style:i},n):null,a)}var Do=De(Io,null),Go=class extends We{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${Eo}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new uo(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?De(ko.Provider,{value:this.props.routeContext},De(So.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?De(No,{error:e},t):t}};Go.contextType=_o;var $o=new WeakMap;function No({children:e,error:t}){let{basename:n}=Gt(bo);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Eo}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=$o.get(t);if(r)throw r;let i=fo(e.location,n);if(ho&&!$o.get(t)){if(!i.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace})));throw $o.set(t,n),n}window.location.href=i.absoluteURL||i.to}return De("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Wo({routeContext:e,match:t,children:n}){let r=Gt(go);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),De(ko.Provider,{value:e},n)}function Ho(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Uo(e){let t=function(e){let t=Gt(ko);return Mi(t,Ho(e)),t}(e),n=t.matches[t.matches.length-1];return Mi(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var jo={};function Bo(e,t,n){t||jo[e]||(jo[e]=!0,Fi(!1,n))}function zo({to:e,replace:t,state:n,relative:r}){Mi(Co(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=Gt(bo);Fi(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=Gt(ko),{pathname:a}=To(),s=Ao(),l=oo(e,io(o),a,"path"===r),c=JSON.stringify(l);return Ot((()=>{s(JSON.parse(c),{replace:t,state:n,relative:r})}),[s,c,r,t,n]),null}function qo(e){return Lo(e.context)}function Ko(e){Mi(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Vo({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1,unstable_useTransitions:a}){Mi(!Co(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=It((()=>({basename:s,navigator:i,static:o,unstable_useTransitions:a,future:{}})),[s,i,o,a]);"string"==typeof n&&(n=$i(n));let{pathname:c="/",search:u="",hash:d="",state:p=null,key:h="default"}=n,f=It((()=>{let e=Zi(c,s);return null==e?null:{location:{pathname:e,search:u,hash:d,state:p,key:h},navigationType:r}}),[s,c,u,d,p,h,r]);return Fi(null!=f,`<Router basename="${s}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==f?null:De(bo.Provider,{value:l},De(xo.Provider,{children:t,value:f}))}function Qo({children:e,location:t}){return Fo(Yo(e),t)}function Yo(e,t=[]){let n=[];return Jn.forEach(e,((e,r)=>{if(!Ar(e))return;let i=[...t,r];if(e.type===Ne)return void n.push.apply(n,Yo(e.props.children,i));Mi(e.type===Ko,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Mi(!e.props.index||!e.props.children,"An index route cannot have child routes.");let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=Yo(e.props.children,i)),n.push(o)})),n}Kn((function({routes:e,future:t,state:n,onError:r}){return Fo(e,void 0,n,r,t)}));var Xo="get",Jo="application/x-www-form-urlencoded";function Zo(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var ea=null;var ta=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function na(e){return null==e||ta.has(e)?e:(Fi(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Jo}"`),null)}function ra(e,t){let n,r,i,o,a;if(Zo(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?Zi(a,t):null,n=e.getAttribute("method")||Xo,i=na(e.getAttribute("enctype"))||Jo,o=new FormData(e)}else if(function(e){return Zo(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Zo(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?Zi(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Xo,i=na(e.getAttribute("formenctype"))||na(a.getAttribute("enctype"))||Jo,o=new FormData(a,e),!function(){if(null===ea)try{new FormData(document.createElement("form"),0),ea=!1}catch(Dc){ea=!0}return ea}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if(Zo(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xo,r=null,i=Jo,a=e}var s;return o&&"text/plain"===i&&(a=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:a}}function ia(e,t){if(!1===e||null==e)throw new Error(t)}function oa(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function aa(e,t,n){return function(e,t){let n=new Set;return new Set(t),e.reduce(((e,t)=>{let r=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(t));return n.has(r)||(n.add(r),e.push({key:r,link:t})),e}),[])}((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(oa).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}function sa(e,t,n,r,i,o){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>{var r;return n[t].pathname!==e.pathname||(null==(r=n[t].route.path)?void 0:r.endsWith("*"))&&n[t].params["*"]!==e.params["*"]};return"assets"===o?t.filter(((e,t)=>a(e,t)||s(e,t))):"data"===o?t.filter(((t,o)=>{var l;let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(a(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:(null==(l=n[0])?void 0:l.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function la(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i})).flat(1),[...new Set(r)];var r}function ca(){let e=Gt(go);return ia(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ua=at(void 0);function da(){let e=Gt(ua);return ia(e,"You must render this element inside a <HydratedRouter> element"),e}function pa(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ha({page:e,...t}){let{router:n}=ca(),r=It((()=>Ni(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?De(fa,{page:e,matches:r,...t}):null}function fa({page:e,matches:t,...n}){let r=To(),{future:i,manifest:o,routeModules:a}=da(),{basename:s}=ca(),{loaderData:l,matches:c}=function(){let e=Gt(yo);return ia(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),u=It((()=>sa(e,t,c,o,r,"data")),[e,t,c,o,r]),d=It((()=>sa(e,t,c,o,r,"assets")),[e,t,c,o,r]),p=It((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,c=!1;if(t.forEach((e=>{var t;let r=o.routes[e.route.id];r&&r.hasLoader&&(!u.some((t=>t.route.id===e.route.id))&&e.route.id in l&&(null==(t=a[e.route.id])?void 0:t.shouldRevalidate)||r.hasClientLoader?c=!0:n.add(e.route.id))})),0===n.size)return[];let d=function(e,t,n,r){let i="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:"/"===i.pathname?i.pathname=`_root.${r}`:t&&"/"===Zi(i.pathname,t)?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}(e,s,i.unstable_trailingSlashAwareDataRequests,"data");return c&&n.size>0&&d.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[d.pathname+d.search]}),[s,i.unstable_trailingSlashAwareDataRequests,l,r,o,u,t,e,a]),h=It((()=>la(d,o)),[d,o]),f=function(e){let{manifest:t,routeModules:n}=da(),[r,i]=Pt([]);return Ot((()=>{let r=!1;return aa(e,t,n).then((e=>{r||i(e)})),()=>{r=!0}}),[e,t,n]),r}(d);return De(Ne,null,p.map((e=>De("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),h.map((e=>De("link",{key:e,rel:"modulepreload",href:e,...n}))),f.map((({key:e,link:t})=>De("link",{key:e,nonce:n.nonce,...t}))))}function va(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}ua.displayName="FrameworkContext";var ma="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{ma&&(window.__reactRouterVersion="7.12.0")}catch(Dc){}function ga({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=Mt();null==i.current&&(i.current=Li({window:r,v5Compat:!0}));let o=i.current,[a,s]=Pt({action:o.action,location:o.location}),l=Dt((e=>{!1===n?s(e):Nr((()=>s(e)))}),[n]);return Lt((()=>o.listen(l)),[o,l]),De(Vo,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:o,unstable_useTransitions:n})}var ya=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_a=Yn((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:o,state:a,target:s,to:l,preventScrollReset:c,viewTransition:u,unstable_defaultShouldRevalidate:d,...p},h){let{basename:f,unstable_useTransitions:v}=Gt(bo),m="string"==typeof l&&ya.test(l),g=fo(l,f),y=function(e,{relative:t}={}){Mi(Co(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=Gt(bo),{hash:i,pathname:o,search:a}=Mo(e,{relative:t}),s=o;return"/"!==n&&(s="/"===o?n:ao([n,o])),r.createHref({pathname:s,search:a,hash:i})}(l=g.to,{relative:r}),[_,w,b]=function(e,t){let n=Gt(ua),[r,i]=Pt(!1),[o,a]=Pt(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,p=Mt(null);Ot((()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{a(e.isIntersecting)}))}),{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}}),[e]),Ot((()=>{if(r){let e=setTimeout((()=>{a(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{i(!0)},f=()=>{i(!1),a(!1)};return n?"intent"!==e?[o,p,{}]:[o,p,{onFocus:pa(s,h),onBlur:pa(l,f),onMouseEnter:pa(c,h),onMouseLeave:pa(u,f),onTouchStart:pa(d,h)}]:[!1,p,{}]}(n,p),x=function(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:a,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let c=Ao(),u=To(),d=Mo(e,{relative:o});return Dt((p=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(p,t)){p.preventDefault();let t=void 0!==n?n:Gi(u)===Gi(d),h=()=>c(e,{replace:t,state:r,preventScrollReset:i,relative:o,viewTransition:a,unstable_defaultShouldRevalidate:s});l?Nr((()=>h())):h()}}),[u,c,d,n,r,t,e,i,o,a,s,l])}(l,{replace:o,state:a,target:s,preventScrollReset:c,relative:r,viewTransition:u,unstable_defaultShouldRevalidate:d,unstable_useTransitions:v});let k=De("a",{...p,...b,href:g.absoluteURL||y,onClick:g.isExternal||i?e:function(t){e&&e(t),t.defaultPrevented||x(t)},ref:va(h,w),target:s,"data-discover":m||"render"!==t?void 0:"true"});return _&&!m?De(Ne,null,k,De(ha,{page:y})):k}));_a.displayName="Link";var wa=Yn((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:i,to:o,viewTransition:a,children:s,...l},c){let u=Mo(o,{relative:l.relative}),d=To(),p=Gt(yo),{navigator:h,basename:f}=Gt(bo),v=null!=p&&function(e,{relative:t}={}){let n=Gt(wo);Mi(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ba("useViewTransitionState"),i=Mo(e,{relative:t});if(!n.isTransitioning)return!1;let o=Zi(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Zi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=Xi(i.pathname,a)||null!=Xi(i.pathname,o)}(u)&&!0===a,m=h.encodeLocation?h.encodeLocation(u).pathname:u.pathname,g=d.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(g=g.toLowerCase(),y=y?y.toLowerCase():null,m=m.toLowerCase()),y&&f&&(y=Zi(y,f)||y);const _="/"!==m&&m.endsWith("/")?m.length-1:m.length;let w,b=g===m||!r&&g.startsWith(m)&&"/"===g.charAt(_),x=null!=y&&(y===m||!r&&y.startsWith(m)&&"/"===y.charAt(m.length)),k={isActive:b,isPending:x,isTransitioning:v},S=b?e:void 0;w="function"==typeof n?n(k):[n,b?"active":null,x?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof i?i(k):i;return De(_a,{...l,"aria-current":S,className:w,ref:c,style:E,to:o,viewTransition:a},"function"==typeof s?s(k):s)}));function ba(e){let t=Gt(go);return Mi(t,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}wa.displayName="NavLink",Yn((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:a=Xo,action:s,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:p,...h},f)=>{let{unstable_useTransitions:v}=Gt(bo),m=function(){let{router:e}=ba("useSubmit"),{basename:t}=Gt(bo),n=Uo("useRouteId"),r=e.fetch,i=e.navigate;return Dt((async(e,o={})=>{let{action:a,method:s,encType:l,formData:c,body:u}=ra(e,t);if(!1===o.navigate){let e=o.fetcherKey||ka();await r(e,n,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else await i(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[r,i,t,n])}(),g=function(e,{relative:t}={}){let{basename:n}=Gt(bo),r=Gt(ko);Mi(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Mo(e||".",{relative:t})},a=To();if(null==e){o.search=a.search;let e=new URLSearchParams(o.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();o.search=n?`?${n}`:""}}e&&"."!==e||!i.route.index||(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(o.pathname="/"===o.pathname?n:ao([n,o.pathname]));return Gi(o)}(s,{relative:c}),y="get"===a.toLowerCase()?"get":"post",_="string"==typeof s&&ya.test(s);return De("form",{ref:f,method:y,action:g,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=(null==r?void 0:r.getAttribute("formmethod"))||a,h=()=>m(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:o,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:p});v&&!1!==n?Nr((()=>h())):h()},...h,"data-discover":_||"render"!==e?void 0:"true"})})).displayName="Form";var xa=0,ka=()=>`__${String(++xa)}__`;function Sa(){return Sa=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},Sa.apply(null,arguments)}var Ea=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(Dc){}}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}(),Ca="-ms-",Ta="-moz-",Ra="-webkit-",Pa="comm",Aa="rule",Oa="decl",La="@keyframes",Ma=Math.abs,Fa=String.fromCharCode,Ia=Object.assign;function Da(e){return e.trim()}function Ga(e,t,n){return e.replace(t,n)}function $a(e,t){return e.indexOf(t)}function Na(e,t){return 0|e.charCodeAt(t)}function Wa(e,t,n){return e.slice(t,n)}function Ha(e){return e.length}function Ua(e){return e.length}function ja(e,t){return t.push(e),e}var Ba=1,za=1,qa=0,Ka=0,Va=0,Qa="";function Ya(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Ba,column:za,length:a,return:""}}function Xa(e,t){return Ia(Ya("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ja(){return Va=Ka<qa?Na(Qa,Ka++):0,za++,10===Va&&(za=1,Ba++),Va}function Za(){return Na(Qa,Ka)}function es(){return Ka}function ts(e,t){return Wa(Qa,e,t)}function ns(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 rs(e){return Ba=za=1,qa=Ha(Qa=e),Ka=0,[]}function is(e){return Qa="",e}function os(e){return Da(ts(Ka-1,ls(91===e?e+2:40===e?e+1:e)))}function as(e){for(;(Va=Za())&&Va<33;)Ja();return ns(e)>2||ns(Va)>3?"":" "}function ss(e,t){for(;--t&&Ja()&&!(Va<48||Va>102||Va>57&&Va<65||Va>70&&Va<97););return ts(e,es()+(t<6&&32==Za()&&32==Ja()))}function ls(e){for(;Ja();)switch(Va){case e:return Ka;case 34:case 39:34!==e&&39!==e&&ls(Va);break;case 40:41===e&&ls(e);break;case 92:Ja()}return Ka}function cs(e,t){for(;Ja()&&e+Va!==57&&(e+Va!==84||47!==Za()););return"/*"+ts(t,Ka-1)+"*"+Fa(47===e?e:Ja())}function us(e){for(;!ns(Za());)Ja();return ts(e,Ka)}function ds(e){return is(ps("",null,null,null,[""],e=rs(e),0,[0],e))}function ps(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,f=0,v=1,m=1,g=1,y=0,_="",w=i,b=o,x=r,k=_;m;)switch(f=y,y=Ja()){case 40:if(108!=f&&58==Na(k,d-1)){-1!=$a(k+=Ga(os(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:k+=os(y);break;case 9:case 10:case 13:case 32:k+=as(f);break;case 92:k+=ss(es()-1,7);continue;case 47:switch(Za()){case 42:case 47:ja(fs(cs(Ja(),es()),t,n),l);break;default:k+="/"}break;case 123*v:s[c++]=Ha(k)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:-1==g&&(k=Ga(k,/\f/g,"")),h>0&&Ha(k)-d&&ja(h>32?vs(k+";",r,n,d-1):vs(Ga(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(ja(x=hs(k,t,n,c,u,i,s,_,w=[],b=[],d),o),123===y)if(0===u)ps(k,t,x,x,w,o,d,s,b);else switch(99===p&&110===Na(k,3)?100:p){case 100:case 108:case 109:case 115:ps(e,x,x,r&&ja(hs(e,x,x,0,0,i,s,_,i,w=[],d),b),i,b,d,s,r?w:b);break;default:ps(k,x,x,x,[""],b,0,s,b)}}c=u=h=0,v=g=1,_=k="",d=a;break;case 58:d=1+Ha(k),h=f;default:if(v<1)if(123==y)--v;else if(125==y&&0==v++&&125==(Va=Ka>0?Na(Qa,--Ka):0,za--,10===Va&&(za=1,Ba--),Va))continue;switch(k+=Fa(y),y*v){case 38:g=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(Ha(k)-1)*g,g=1;break;case 64:45===Za()&&(k+=os(Ja())),p=Za(),u=d=Ha(_=k+=us(es())),y++;break;case 45:45===f&&2==Ha(k)&&(v=0)}}return o}function hs(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,p=0===i?o:[""],h=Ua(p),f=0,v=0,m=0;f<r;++f)for(var g=0,y=Wa(e,d+1,d=Ma(v=a[f])),_=e;g<h;++g)(_=Da(v>0?p[g]+" "+y:Ga(y,/&\f/g,p[g])))&&(l[m++]=_);return Ya(e,t,n,0===i?Aa:s,l,c,u)}function fs(e,t,n){return Ya(e,t,n,Pa,Fa(Va),Wa(e,2,-2),0)}function vs(e,t,n,r){return Ya(e,t,n,Oa,Wa(e,0,r),Wa(e,r+1,-1),r)}function ms(e,t){for(var n="",r=Ua(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function gs(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Oa:return e.return=e.return||e.value;case Pa:return"";case La:return e.return=e.value+"{"+ms(e.children,r)+"}";case Aa:e.value=e.props.join(",")}return Ha(n=ms(e.children,r))?e.return=e.value+"{"+n+"}":""}function ys(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var _s=function(e,t,n){for(var r=0,i=0;r=i,i=Za(),38===r&&12===i&&(t[n]=1),!ns(i);)Ja();return ts(e,Ka)},ws=function(e,t){return is(function(e,t){var n=-1,r=44;do{switch(ns(r)){case 0:38===r&&12===Za()&&(t[n]=1),e[n]+=_s(Ka-1,t,n);break;case 2:e[n]+=os(r);break;case 4:if(44===r){e[++n]=58===Za()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Fa(r)}}while(r=Ja());return e}(rs(e),t))},bs=new WeakMap,xs=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)||bs.get(n))&&!r){bs.set(e,!0);for(var i=[],o=ws(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]}}},ks=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ss(e,t){switch(function(e,t){return 45^Na(e,0)?(((t<<2^Na(e,0))<<2^Na(e,1))<<2^Na(e,2))<<2^Na(e,3):0}(e,t)){case 5103:return Ra+"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 Ra+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ra+e+Ta+e+Ca+e+e;case 6828:case 4268:return Ra+e+Ca+e+e;case 6165:return Ra+e+Ca+"flex-"+e+e;case 5187:return Ra+e+Ga(e,/(\w+).+(:[^]+)/,Ra+"box-$1$2"+Ca+"flex-$1$2")+e;case 5443:return Ra+e+Ca+"flex-item-"+Ga(e,/flex-|-self/,"")+e;case 4675:return Ra+e+Ca+"flex-line-pack"+Ga(e,/align-content|flex-|-self/,"")+e;case 5548:return Ra+e+Ca+Ga(e,"shrink","negative")+e;case 5292:return Ra+e+Ca+Ga(e,"basis","preferred-size")+e;case 6060:return Ra+"box-"+Ga(e,"-grow","")+Ra+e+Ca+Ga(e,"grow","positive")+e;case 4554:return Ra+Ga(e,/([^-])(transform)/g,"$1"+Ra+"$2")+e;case 6187:return Ga(Ga(Ga(e,/(zoom-|grab)/,Ra+"$1"),/(image-set)/,Ra+"$1"),e,"")+e;case 5495:case 3959:return Ga(e,/(image-set\([^]*)/,Ra+"$1$`$1");case 4968:return Ga(Ga(e,/(.+:)(flex-)?(.*)/,Ra+"box-pack:$3"+Ca+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ra+e+e;case 4095:case 3583:case 4068:case 2532:return Ga(e,/(.+)-inline(.+)/,Ra+"$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(Ha(e)-1-t>6)switch(Na(e,t+1)){case 109:if(45!==Na(e,t+4))break;case 102:return Ga(e,/(.+:)(.+)-([^]+)/,"$1"+Ra+"$2-$3$1"+Ta+(108==Na(e,t+3)?"$3":"$2-$3"))+e;case 115:return~$a(e,"stretch")?Ss(Ga(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Na(e,t+1))break;case 6444:switch(Na(e,Ha(e)-3-(~$a(e,"!important")&&10))){case 107:return Ga(e,":",":"+Ra)+e;case 101:return Ga(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ra+(45===Na(e,14)?"inline-":"")+"box$3$1"+Ra+"$2$3$1"+Ca+"$2box$3")+e}break;case 5936:switch(Na(e,t+11)){case 114:return Ra+e+Ca+Ga(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ra+e+Ca+Ga(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ra+e+Ca+Ga(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ra+e+Ca+e+e}return e}var Es=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Oa:e.return=Ss(e.value,e.length);break;case La:return ms([Xa(e,{value:Ga(e.value,"@","@"+Ra)})],r);case Aa: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 ms([Xa(e,{props:[Ga(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ms([Xa(e,{props:[Ga(t,/:(plac\w+)/,":"+Ra+"input-$1")]}),Xa(e,{props:[Ga(t,/:(plac\w+)/,":-moz-$1")]}),Xa(e,{props:[Ga(t,/:(plac\w+)/,Ca+"input-$1")]})],r)}return""}))}}],Cs=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||Es,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=[gs,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[xs,ks].concat(o,p),u=Ua(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,ms(ds(e?e+"{"+t.styles+"}":t.styles),h),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Ea({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 f.sheet.hydrate(s),f},Ts={exports:{}},Rs={},Ps="function"==typeof Symbol&&Symbol.for,As=Ps?Symbol.for("react.element"):60103,Os=Ps?Symbol.for("react.portal"):60106,Ls=Ps?Symbol.for("react.fragment"):60107,Ms=Ps?Symbol.for("react.strict_mode"):60108,Fs=Ps?Symbol.for("react.profiler"):60114,Is=Ps?Symbol.for("react.provider"):60109,Ds=Ps?Symbol.for("react.context"):60110,Gs=Ps?Symbol.for("react.async_mode"):60111,$s=Ps?Symbol.for("react.concurrent_mode"):60111,Ns=Ps?Symbol.for("react.forward_ref"):60112,Ws=Ps?Symbol.for("react.suspense"):60113,Hs=Ps?Symbol.for("react.suspense_list"):60120,Us=Ps?Symbol.for("react.memo"):60115,js=Ps?Symbol.for("react.lazy"):60116,Bs=Ps?Symbol.for("react.block"):60121,zs=Ps?Symbol.for("react.fundamental"):60117,qs=Ps?Symbol.for("react.responder"):60118,Ks=Ps?Symbol.for("react.scope"):60119;function Vs(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case As:switch(e=e.type){case Gs:case $s:case Ls:case Fs:case Ms:case Ws:return e;default:switch(e=e&&e.$$typeof){case Ds:case Ns:case js:case Us:case Is:return e;default:return t}}case Os:return t}}}function Qs(e){return Vs(e)===$s}Rs.AsyncMode=Gs,Rs.ConcurrentMode=$s,Rs.ContextConsumer=Ds,Rs.ContextProvider=Is,Rs.Element=As,Rs.ForwardRef=Ns,Rs.Fragment=Ls,Rs.Lazy=js,Rs.Memo=Us,Rs.Portal=Os,Rs.Profiler=Fs,Rs.StrictMode=Ms,Rs.Suspense=Ws,Rs.isAsyncMode=function(e){return Qs(e)||Vs(e)===Gs},Rs.isConcurrentMode=Qs,Rs.isContextConsumer=function(e){return Vs(e)===Ds},Rs.isContextProvider=function(e){return Vs(e)===Is},Rs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===As},Rs.isForwardRef=function(e){return Vs(e)===Ns},Rs.isFragment=function(e){return Vs(e)===Ls},Rs.isLazy=function(e){return Vs(e)===js},Rs.isMemo=function(e){return Vs(e)===Us},Rs.isPortal=function(e){return Vs(e)===Os},Rs.isProfiler=function(e){return Vs(e)===Fs},Rs.isStrictMode=function(e){return Vs(e)===Ms},Rs.isSuspense=function(e){return Vs(e)===Ws},Rs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ls||e===$s||e===Fs||e===Ms||e===Ws||e===Hs||"object"==typeof e&&null!==e&&(e.$$typeof===js||e.$$typeof===Us||e.$$typeof===Is||e.$$typeof===Ds||e.$$typeof===Ns||e.$$typeof===zs||e.$$typeof===qs||e.$$typeof===Ks||e.$$typeof===Bs)},Rs.typeOf=Vs,Ts.exports=Rs;var Ys=Ts.exports,Xs={};Xs[Ys.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Xs[Ys.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Js(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Zs=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},el=function(e,t,n){Zs(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 tl={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},nl=/[A-Z]|^ms/g,rl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,il=function(e){return 45===e.charCodeAt(1)},ol=function(e){return null!=e&&"boolean"!=typeof e},al=ys((function(e){return il(e)?e:e.replace(nl,"-$&").toLowerCase()})),sl=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(rl,(function(e,t,n){return cl={name:t,styles:n,next:cl},t}))}return 1===tl[e]||il(e)||"number"!=typeof t||0===t?t:t+"px"};function ll(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 cl={name:i.name,styles:i.styles,next:cl},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)cl={name:a.name,styles:a.styles,next:cl},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+=ll(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]+"}":ol(s)&&(r+=al(o)+":"+sl(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=ll(e,t,a);switch(o){case"animation":case"animationName":r+=al(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ol(a[c])&&(r+=al(o)+":"+sl(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=cl,l=n(e);return cl=s,ll(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var cl,ul=/label:\s*([^\s;{]+)\s*(;|$)/g;function dl(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="";cl=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=ll(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=ll(n,t,e[a]),r)i+=o[a]}ul.lastIndex=0;for(var s,l="";null!==(s=ul.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:cl}}var pl,hl,fl=!!Kr.useInsertionEffect&&Kr.useInsertionEffect,vl=fl||function(e){return e()},ml=fl||Lt,gl=at("undefined"!=typeof HTMLElement?Cs({key:"css"}):null),yl=gl.Provider,_l=function(e){return Yn((function(t,n){var r=Gt(gl);return e(t,r,n)}))},wl=at({}),bl={}.hasOwnProperty,xl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",kl=function(e,t){var n={};for(var r in t)bl.call(t,r)&&(n[r]=t[r]);return n[xl]=e,n},Sl=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Zs(t,n,r),vl((function(){return el(t,n,r)})),null},El=_l((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[xl],o=[r],a="";"string"==typeof e.className?a=Js(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=dl(o,void 0,Gt(wl));a+=t.key+"-"+s.name;var l={};for(var c in e)bl.call(e,c)&&"css"!==c&&c!==xl&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),De(Ne,null,De(Sl,{cache:t,serialized:s,isStringTag:"string"==typeof i}),De(i,l))})),Cl=function(e,t){var n=arguments;if(null==t||!bl.call(t,"css"))return De.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=El,i[1]=kl(e,t);for(var o=2;o<r;o++)i[o]=n[o];return De.apply(null,i)};pl=Cl||(Cl={}),hl||(hl=pl.JSX||(pl.JSX={}));var Tl=_l((function(e,t){var n=dl([e.styles],void 0,Gt(wl)),r=Mt();return ml((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]),ml((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&el(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 Rl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return dl(t)}var Pl=/^((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)-.*))$/,Al=ys((function(e){return Pl.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ol=function(e){return"theme"!==e},Ll=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Al:Ol},Ml=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},Fl=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Zs(t,n,r),vl((function(){return el(t,n,r)})),null},Il=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=Ml(t,n,o),l=s||Ll(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{var p=u[0];d.push(p[0]);for(var h=u.length,f=1;f<h;f++)d.push(u[f],p[f])}var v=_l((function(e,t,n){var r=c&&e.as||a,o="",u=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=Gt(wl)}"string"==typeof e.className?o=Js(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var f=dl(d.concat(u),t.registered,p);o+=t.key+"-"+f.name,void 0!==i&&(o+=" "+i);var v=c&&void 0===s?Ll(r):l,m={};for(var g in e)c&&"as"===g||v(g)&&(m[g]=e[g]);return m.className=o,n&&(m.ref=n),De(Ne,null,De(Fl,{cache:t,serialized:f,isStringTag:"string"==typeof r}),De(r,m))}));return v.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=a,v.__emotion_styles=d,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(t,r){return e(t,Sa({},n,r,{shouldForwardProp:Ml(v,r,!0)})).apply(void 0,d)},v}}.bind(null);["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){Il[e]=Il(e)}));const Dl=Il.span({whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"},(({isActive:e})=>e?{cursor:"default","--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))"}:{cursor:"pointer",borderColor:"transparent","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))",":hover":{"--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}})),Gl=Il.span({marginLeft:"0.25rem",display:"inline-flex",width:"1.25rem",alignItems:"center",justifyContent:"center",borderRadius:"9999px",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))"},(({isActive:e})=>e?{"--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))"}:{"--tw-bg-opacity":"1",backgroundColor:"rgb(107 114 128 / var(--tw-bg-opacity))",".group:hover &":{"--tw-bg-opacity":"1",backgroundColor:"rgb(55 65 81 / var(--tw-bg-opacity))"}}));var $l=Ne,Nl=function(e,t,n){return bl.call(t,"css")?Qr(El,kl(e,t),n):Qr(e,t,n)},Wl=function(e,t,n){return bl.call(t,"css")?Qr(El,kl(e,t),n):Qr(e,t,n)};const Hl=({tabs:e})=>Nl("div",{css:{display:"block"},children:Nl("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))",paddingBottom:"1rem"},children:Nl("nav",{"aria-label":"Tabs",css:{marginBottom:"-2px",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)))"},paddingTop:"1rem"},children:e.map((e=>Nl(wa,{to:e.id,children:({isActive:t})=>Wl(Dl,{className:"group",isActive:t,children:[e.displayName,void 0!==e.count&&Nl(Gl,{isActive:t,children:e.count})]})},e.id)))})})}),Ul=e=>{var t,n;const{linkedProfilesForAccount:r,checkProfileSearchAuthorization:i,linkedAccount:o}=Ai(),a=oi({queryKey:[fi],queryFn:o}),s=oi({queryKey:[vi],queryFn:r}),l=oi({queryKey:[gi],queryFn:i});Ot((()=>{l.error&&e.onError(l.error.message),s.error&&e.onError(s.error.message)}),[l.error,s.error,e]);const c=It((()=>{var e;return[{id:"search",displayName:"Search"},{id:"profiles",displayName:"Linked Profiles",count:null==(e=s.data)?void 0:e.length},{id:"invoices",displayName:"Invoices"}]}),[s.data]);return l.isSuccess&&"Linked"!==l.data.status?Nl(zo,{to:"unlinked",replace:!0}):l.isSuccess?Wl("div",{children:[Wl("dl",{css:{marginLeft:"0.25rem",paddingTop:"1rem"},children:[Wl("div",{css:{display:"flex",gap:"0.5rem"},children:[Nl("dt",{css:{width:"5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Account"}),Nl("dd",{css:{marginLeft:"-1px",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:null==(t=a.data)?void 0:t.id})]}),Wl("div",{css:{display:"flex",gap:"0.5rem"},children:[Nl("dt",{css:{width:"5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Client"}),Nl("dd",{css:{marginLeft:"-1px",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:null==(n=a.data)?void 0:n.catchEClientId})]})]}),Nl(Hl,{tabs:c}),Nl("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:Nl(qo,{})})]}):Nl("div",{children:"Loading..."})},jl=e=>Nl(Bh,{children:Nl("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})}),Bl=e=>Nl(jh,{children:Nl("ul",{css:{listStyleType:"none"},children:e.value.split(",").map((t=>Nl("li",{children:e.navTo?Nl(wa,{css:{"--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))",textDecorationLine:"underline"},to:e.navTo,children:t}):t},t)))})}),zl="undefined"!=typeof document?qr.useLayoutEffect:()=>{};const ql=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Kl=e=>{if(e&&"window"in e&&e.window===e)return e;return ql(e).defaultView||window};function Vl(e){let t=null;return()=>(null==t&&(t=e()),t)}const Ql=Vl((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})),Yl=Vl((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 Xl{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 Jl(e){let t=Mt({isFocused:!1,observer:null});zl((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=Mt(null);return zl((()=>{t.current=e}),[e]),Dt(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return Dt((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 Xl("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 Zl=null,ec=new Set,tc=new Map,nc=!1,rc=!1;const ic={Tab:!0,Escape:!0};function oc(e,t){for(let n of ec)n(e,t)}function ac(e){nc=!0,function(e){return!(e.metaKey||!Ql()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Zl="keyboard",oc("keyboard",e))}function sc(e){Zl="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(nc=!0,oc("pointer",e))}function lc(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(Yl()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(nc=!0,Zl="virtual")}function cc(e){e.target!==window&&e.target!==document&&(nc||rc||(Zl="virtual",oc("virtual",e)),nc=!1,rc=!1)}function uc(){nc=!1,rc=!0}function dc(e){if("undefined"==typeof window||tc.get(Kl(e)))return;const t=Kl(e),n=ql(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){nc=!0,r.apply(this,arguments)},n.addEventListener("keydown",ac,!0),n.addEventListener("keyup",ac,!0),n.addEventListener("click",lc,!0),t.addEventListener("focus",cc,!0),t.addEventListener("blur",uc,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",sc,!0),n.addEventListener("pointermove",sc,!0),n.addEventListener("pointerup",sc,!0)):(n.addEventListener("mousedown",sc,!0),n.addEventListener("mousemove",sc,!0),n.addEventListener("mouseup",sc,!0)),t.addEventListener("beforeunload",(()=>{pc(e)}),{once:!0}),tc.set(t,{focus:r})}const pc=(e,t)=>{const n=Kl(e),r=ql(e);t&&r.removeEventListener("DOMContentLoaded",t),tc.has(n)&&(n.HTMLElement.prototype.focus=tc.get(n).focus,r.removeEventListener("keydown",ac,!0),r.removeEventListener("keyup",ac,!0),r.removeEventListener("click",lc,!0),n.removeEventListener("focus",cc,!0),n.removeEventListener("blur",uc,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",sc,!0),r.removeEventListener("pointermove",sc,!0),r.removeEventListener("pointerup",sc,!0)):(r.removeEventListener("mousedown",sc,!0),r.removeEventListener("mousemove",sc,!0),r.removeEventListener("mouseup",sc,!0)),tc.delete(n))};function hc(){return"pointer"!==Zl}"undefined"!=typeof document&&function(e){const t=ql(e);let n;"loading"!==t.readyState?dc(e):(n=()=>{dc(e)},t.addEventListener("DOMContentLoaded",n))}();const fc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function vc(e,t,n){dc(),Ot((()=>{let t=(t,r)=>{(function(e,t,n){var r;const i="undefined"!=typeof window?Kl(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?Kl(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?Kl(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?Kl(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!fc.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&&!ic[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(hc())};return ec.add(t),()=>{ec.delete(t)}}),t)}let mc=!1,gc=0;function yc(){mc=!0,setTimeout((()=>{mc=!1}),50)}function _c(e){"touch"===e.pointerType&&yc()}function wc(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",_c):document.addEventListener("touchend",yc),gc++,()=>{gc--,gc>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",_c):document.removeEventListener("touchend",yc))}}function bc(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=Mt({isFocused:!1,isFocusVisible:t||hc()}),[o,a]=Pt(!1),[s,l]=Pt((()=>i.current.isFocused&&i.current.isFocusVisible)),c=Dt((()=>l(i.current.isFocused&&i.current.isFocusVisible)),[]),u=Dt((e=>{i.current.isFocused=e,a(e),c()}),[c]);vc((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=Dt((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),a=Jl(o),s=Dt((e=>{const t=ql(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=Mt({isFocusWithin:!1}),a=Dt((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,o]),s=Jl(a),l=Dt((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 xc=Object.defineProperty,kc=(e,t,n)=>(((e,t,n)=>{t in e?xc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let Sc=new class{constructor(){kc(this,"current",this.detect()),kc(this,"handoffState","pending"),kc(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 Ec(e){return Sc.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Cc(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Tc(){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 Cc((()=>{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=Tc();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 Rc(){let[e]=Pt(Tc);return Ot((()=>()=>e.dispose()),[e]),e}let Pc=(e,t)=>{Sc.isServer?Ot(e,t):Lt(e,t)};function Ac(e){let t=Mt(e);return Pc((()=>{t.current=e}),[e]),t}let Oc=function(e){let t=Ac(e);return qr.useCallback(((...e)=>t.current(...e)),[t])};let Lc=at(void 0);function Mc(){return Gt(Lc)}function Fc(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function Ic(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,Ic),r}var Dc,Gc,$c=((Gc=$c||{})[Gc.None=0]="None",Gc[Gc.RenderStrategy=1]="RenderStrategy",Gc[Gc.Static=2]="Static",Gc),Nc=((Dc=Nc||{})[Dc.Unmount=0]="Unmount",Dc[Dc.Hidden=1]="Hidden",Dc);function Wc(){let e=function(){let e=Mt([]),t=Dt((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 Dt((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:Uc;let l=jc(t,e);if(o)return Hc(l,n,r,a,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Hc(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Ic(e?0:1,{0:()=>null,1:()=>Hc({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Hc(l,n,r,a,s)}({mergeRefs:e,...t})),[e])}function Hc(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=Kc(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===Ne&&(Object.keys(qc(l)).length>0||Object.keys(qc(d)).length>0)){if(Ar(u)&&!(Array.isArray(u)&&u.length>1)){let e=u.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>Fc(t(...e),l.className):Fc(t,l.className),r=n?{className:n}:{},o=jc(u.props,qc(Kc(l,["ref"])));for(let i in d)i in o&&delete d[i];return Mr(u,Object.assign({},o,d,c,{ref:i(Vc(u),c.ref)},r))}if(Object.keys(qc(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(qc(l)).concat(Object.keys(qc(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 De(o,Object.assign({},Kc(l,["ref"]),o!==Ne&&c,o!==Ne&&d),u)}function Uc(...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 jc(...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 Bc(...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 zc(e){var t;return Object.assign(Yn(e),{displayName:null!=(t=e.displayName)?t:e.name})}function qc(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Kc(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Vc(e){return qr.version.split(".")[0]>="19"?e.props.ref:e.ref}let Qc=at(void 0);function Yc(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 Xc=Symbol();function Jc(...e){let t=Mt(e);Ot((()=>{t.current=e}),[e]);let n=Oc((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[Xc])))?void 0:n}let Zc=at(null);function eu(){let e=Gt(Zc);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,eu),e}return e}Zc.displayName="DescriptionContext";let tu=zc((function(e,t){let n=Nt(),r=Mc(),{id:i=`headlessui-description-${n}`,...o}=e,a=eu(),s=Jc(t);Pc((()=>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 Wc()({ourProps:u,theirProps:o,slot:c,defaultTag:"p",name:a.name||"Description"})}));Object.assign(tu,{});var nu,ru=((nu=ru||{}).Space=" ",nu.Enter="Enter",nu.Escape="Escape",nu.Backspace="Backspace",nu.Delete="Delete",nu.ArrowLeft="ArrowLeft",nu.ArrowUp="ArrowUp",nu.ArrowRight="ArrowRight",nu.ArrowDown="ArrowDown",nu.Home="Home",nu.End="End",nu.PageUp="PageUp",nu.PageDown="PageDown",nu.Tab="Tab",nu);let iu=at(null);function ou(){let e=Gt(iu);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,ou),e}return e}function au({inherit:e=!1}={}){let t=function(){var e,t;let n=null!=(t=null==(e=Gt(iu))?void 0:e.value)?t:void 0;return n}(),[n,r]=Pt([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,It((()=>function(e){let t=Oc((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 qr.createElement(iu.Provider,{value:n},e.children)}),[r])]}iu.displayName="LabelContext";let su=zc((function(e,t){var n;let r=Nt(),i=ou(),o=Gt(Qc),a=Mc(),{id:s=`headlessui-label-${r}`,htmlFor:l=(null!=o?o:null==(n=i.props)?void 0:n.htmlFor),passive:c=!1,...u}=e,d=Jc(t);Pc((()=>i.register(s)),[s,i.register]);let p=Oc((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})}}})),h=a||!1,f=It((()=>({...i.slot,disabled:h})),[i.slot,h]),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),Wc()({ourProps:v,theirProps:u,slot:f,defaultTag:l?"label":"div",name:i.name||"Label"})}));function lu(e,t=!1){let[n,r]=At((()=>({})),{}),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 Pc((()=>{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(su,{});let cu=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 uu(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 du(e){return Br(e.subscribe,e.getSnapshot,e.getSnapshot)}let pu=new cu((()=>uu((()=>[]),{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 hu(e,t){let n=pu.get(t),r=Nt(),i=du(n);if(Pc((()=>{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 fu=new Map,vu=new Map;function mu(e){var t;let n=null!=(t=vu.get(e))?t:0;return vu.set(e,n+1),0!==n||(fu.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>gu(e)}function gu(e){var t;let n=null!=(t=vu.get(e))?t:1;if(1===n?vu.delete(e):vu.set(e,n-1),1!==n)return;let r=fu.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,fu.delete(e))}let yu=["[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(","),_u=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var wu,bu,xu,ku=((xu=ku||{})[xu.First=1]="First",xu[xu.Previous=2]="Previous",xu[xu.Next=4]="Next",xu[xu.Last=8]="Last",xu[xu.WrapAround=16]="WrapAround",xu[xu.NoScroll=32]="NoScroll",xu[xu.AutoFocus=64]="AutoFocus",xu),Su=((bu=Su||{})[bu.Error=0]="Error",bu[bu.Overflow=1]="Overflow",bu[bu.Success=2]="Success",bu[bu.Underflow=3]="Underflow",bu),Eu=((wu=Eu||{})[wu.Previous=-1]="Previous",wu[wu.Next=1]="Next",wu);function Cu(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(yu)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var Tu=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Tu||{});function Ru(e,t=0){var n;return e!==(null==(n=Ec(e))?void 0:n.body)&&Ic(t,{0:()=>e.matches(yu),1(){let t=e;for(;null!==t;){if(t.matches(yu))return!0;t=t.parentElement}return!1}})}function Pu(e){let t=Ec(e);Tc().nextFrame((()=>{t&&!Ru(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}var Au=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Au||{});"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 Ou=["textarea","input"].join(",");function Lu(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 Mu(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?Lu(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(_u)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):Cu(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,Ou))&&n}(s)&&s.select(),2}(Cu(),t,{relativeTo:e})}function Fu(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Iu(){return Fu()||/Android/gi.test(window.navigator.userAgent)}function Du(e,t,n,r){let i=Ac(n);Ot((()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}function Gu(e,t,n){let r=hu(e,"outside-click"),i=Ac(n),o=Dt((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!Ru(r,Tu.Loose)&&-1!==r.tabIndex&&e.preventDefault(),i.current(e,r)}),[i,t]),a=Mt(null);Du(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),Du(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),Du(r,"click",(e=>{Iu()||a.current&&(o(e,(()=>a.current)),a.current=null)}),!0);let s=Mt({x:0,y:0});Du(r,"touchstart",(e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY}),!0),Du(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=Ac(n);Ot((()=>{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 $u(...e){return It((()=>Ec(...e)),[...e])}function Nu(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 Wu(){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 Hu(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Uu=uu((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:Tc(),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:Hu(n)},i=[Fu()?{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=Tc();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)}))}))}}:{},Wu(),{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 ju(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=du(Uu),i=t?r.get(t):void 0,o=!!i&&i.count>0;Pc((()=>{if(t&&e)return Uu.dispatch("PUSH",t,n),()=>Uu.dispatch("POP",t,n)}),[e,t])}(hu(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}function Bu(e){return[e.screenX,e.screenY]}Uu.subscribe((()=>{let e=Uu.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)&&Uu.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Uu.dispatch("TEARDOWN",n)}}));var zu,qu;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(zu=null==process?void 0:{})?void 0:zu.NODE_ENV)&&void 0===(null==(qu=null==Element?void 0:Element.prototype)?void 0:qu.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 Ku=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Ku||{});function Vu(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function Qu(e,t,n,r){let[i,o]=Pt(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=Pt(e),r=Dt((e=>n(e)),[t]),i=Dt((e=>n((t=>t|e))),[t]),o=Dt((e=>(t&e)===e),[t]),a=Dt((e=>n((t=>t&~e))),[n]),s=Dt((e=>n((t=>t^e))),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}(e&&i?3:0),c=Mt(!1),u=Mt(!1),d=Rc();return Pc((()=>{var i;if(e)return n&&o(!0),t?(null==(i=null==r?void 0:r.start)||i.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Tc();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=Tc();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(){var e;u.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(c.current=!1,l(7),n||o(!1),null==(e=null==r?void 0:r.end)||e.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 Yu(){return"undefined"!=typeof window}function Xu(e){return ed(e)?(e.nodeName||"").toLowerCase():"#document"}function Ju(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Zu(e){var t;return null==(t=(ed(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ed(e){return!!Yu()&&(e instanceof Node||e instanceof Ju(e).Node)}function td(e){return!!Yu()&&(e instanceof Element||e instanceof Ju(e).Element)}function nd(e){return!!Yu()&&(e instanceof HTMLElement||e instanceof Ju(e).HTMLElement)}function rd(e){return!(!Yu()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ju(e).ShadowRoot)}function id(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ud(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function od(e){return["table","td","th"].includes(Xu(e))}function ad(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(Dc){return!1}}))}function sd(e){const t=ld(),n=td(e)?ud(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 ld(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function cd(e){return["html","body","#document"].includes(Xu(e))}function ud(e){return Ju(e).getComputedStyle(e)}function dd(e){return td(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pd(e){if("html"===Xu(e))return e;const t=e.assignedSlot||e.parentNode||rd(e)&&e.host||Zu(e);return rd(t)?t.host:t}function hd(e){const t=pd(e);return cd(t)?e.ownerDocument?e.ownerDocument.body:e.body:nd(t)&&id(t)?t:hd(t)}function fd(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=hd(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Ju(i);if(o){const e=vd(a);return t.concat(a,a.visualViewport||[],id(i)?i:[],e&&n?fd(e):[])}return t.concat(i,fd(i,[],n))}function vd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const md=Math.min,gd=Math.max,yd=Math.round,_d=Math.floor,wd=e=>({x:e,y:e}),bd={left:"right",right:"left",bottom:"top",top:"bottom"},xd={start:"end",end:"start"};function kd(e,t,n){return gd(e,md(t,n))}function Sd(e,t){return"function"==typeof e?e(t):e}function Ed(e){return e.split("-")[0]}function Cd(e){return e.split("-")[1]}function Td(e){return"x"===e?"y":"x"}function Rd(e){return"y"===e?"height":"width"}function Pd(e){return["top","bottom"].includes(Ed(e))?"y":"x"}function Ad(e){return Td(Pd(e))}function Od(e){return e.replace(/start|end/g,(e=>xd[e]))}function Ld(e){return e.replace(/left|right|bottom|top/g,(e=>bd[e]))}function Md(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 Fd(e,t,n){let{reference:r,floating:i}=e;const o=Pd(t),a=Ad(t),s=Rd(a),l=Ed(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 h;switch(l){case"top":h={x:u,y:r.y-i.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Cd(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function Id(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:h=0}=Sd(t,e),f=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}}(h),v=s[p?"floating"===d?"reference":"floating":d],m=Md(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})),g="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),_=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},w=Md(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:l}):g);return{top:(m.top-w.top+f.top)/_.y,bottom:(w.bottom-m.bottom+f.bottom)/_.y,left:(m.left-w.left+f.left)/_.x,right:(w.right-m.right+f.right)/_.x}}function Dd(e){const t=ud(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=nd(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=yd(n)!==o||yd(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Gd(e){return td(e)?e:e.contextElement}function $d(e){const t=Gd(e);if(!nd(t))return wd(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Dd(t);let a=(o?yd(n.width):n.width)/r,s=(o?yd(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Nd=wd(0);function Wd(e){const t=Ju(e);return ld()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Nd}function Hd(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Gd(e);let a=wd(1);t&&(r?td(r)&&(a=$d(r)):a=$d(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ju(e))&&t}(o,n,r)?Wd(o):wd(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=Ju(o),t=r&&td(r)?Ju(r):r;let n=e,i=vd(n);for(;i&&r&&t!==n;){const e=$d(i),t=i.getBoundingClientRect(),r=ud(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=Ju(i),i=vd(n)}}return Md({width:u,height:d,x:l,y:c})}function Ud(e,t){const n=dd(e).scrollLeft;return t?t.left+n:Hd(Zu(e)).left+n}function jd(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Ud(e,r)),y:r.top+t.scrollTop}}function Bd(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ju(e),r=Zu(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=ld();(!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=Zu(e),n=dd(e),r=e.ownerDocument.body,i=gd(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=gd(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ud(e);const s=-n.scrollTop;return"rtl"===ud(r).direction&&(a+=gd(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(Zu(e));else if(td(t))r=function(e,t){const n=Hd(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=nd(e)?$d(e):wd(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=Wd(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Md(r)}function zd(e,t){const n=pd(e);return!(n===t||!td(n)||cd(n))&&("fixed"===ud(n).position||zd(n,t))}function qd(e,t,n){const r=nd(t),i=Zu(t),o="fixed"===n,a=Hd(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=wd(0);if(r||!r&&!o)if(("body"!==Xu(t)||id(i))&&(s=dd(t)),r){const e=Hd(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=Ud(i));const c=!i||r||o?wd(0):jd(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 Kd(e){return"static"===ud(e).position}function Vd(e,t){if(!nd(e)||"fixed"===ud(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Zu(e)===n&&(n=n.ownerDocument.body),n}function Qd(e,t){const n=Ju(e);if(ad(e))return n;if(!nd(e)){let t=pd(e);for(;t&&!cd(t);){if(td(t)&&!Kd(t))return t;t=pd(t)}return n}let r=Vd(e,t);for(;r&&od(r)&&Kd(r);)r=Vd(r,t);return r&&cd(r)&&Kd(r)&&!sd(r)?n:r||function(e){let t=pd(e);for(;nd(t)&&!cd(t);){if(sd(t))return t;if(ad(t))return null;t=pd(t)}return null}(e)||n}const Yd={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=Zu(r),s=!!t&&ad(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=wd(1);const u=wd(0),d=nd(r);if((d||!d&&!o)&&(("body"!==Xu(r)||id(a))&&(l=dd(r)),nd(r))){const e=Hd(r);c=$d(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||o?wd(0):jd(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:Zu,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?ad(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=fd(e,[],!1).filter((e=>td(e)&&"body"!==Xu(e))),i=null;const o="fixed"===ud(e).position;let a=o?pd(e):e;for(;td(a)&&!cd(a);){const t=ud(a),n=sd(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||id(a)&&!n&&zd(e,a))?r=r.filter((e=>e!==a)):i=t,a=pd(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=Bd(t,n,i);return e.top=gd(r.top,e.top),e.right=md(r.right,e.right),e.bottom=md(r.bottom,e.bottom),e.left=gd(r.left,e.left),e}),Bd(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Qd,getElementRects:async function(e){const t=this.getOffsetParent||Qd,n=this.getDimensions,r=await n(e.floating);return{reference:qd(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}=Dd(e);return{width:t,height:n}},getScale:$d,isElement:td,isRTL:function(e){return"rtl"===ud(e).direction}};function Xd(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=Gd(e),u=i||o?[...c?fd(c):[],...fd(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=Zu(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 h={rootMargin:-_d(u)+"px "+-_d(i.clientWidth-(c+d))+"px "+-_d(i.clientHeight-(u+p))+"px "+-_d(c)+"px",threshold:gd(0,md(1,l))||1};let f=!0;function v(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}f=!1}try{r=new IntersectionObserver(v,{...h,root:i.ownerDocument})}catch(Dc){r=new IntersectionObserver(v,h)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;a&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let v=l?Hd(e):null;return l&&function t(){const r=Hd(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=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Jd=Id,Zd=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=Ed(n),s=Cd(n),l="y"===Pd(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,d=Sd(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*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}}}}},ep=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}=Sd(e,t),c={x:n,y:r},u=await Id(t,l),d=Pd(Ed(i)),p=Td(d);let h=c[p],f=c[d];if(o){const e="y"===p?"bottom":"right";h=kd(h+u["y"===p?"top":"left"],h,h-u[e])}if(a){const e="y"===d?"bottom":"right";f=kd(f+u["y"===d?"top":"left"],f,f-u[e])}const v=s.fn({...t,[p]:h,[d]:f});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:o,[d]:a}}}}}},tp=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:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:v=!0,...m}=Sd(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const g=Ed(i),y=Pd(s),_=Ed(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=p||(_||!v?[Ld(s)]:function(e){const t=Ld(e);return[Od(e),t,Od(t)]}(s)),x="none"!==f;!p&&x&&b.push(...function(e,t,n,r){const i=Cd(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[]}}(Ed(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(Od)))),o}(s,v,f,w));const k=[s,...b],S=await Id(t,m),E=[];let C=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Cd(e),i=Ad(e),o=Rd(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Ld(a)),[a,Ld(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 T,R;const e=((null==(T=o.flip)?void 0:T.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(R=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:R.placement;if(!n)switch(h){case"bestFit":{var P;const e=null==(P=C.filter((e=>{if(x){const t=Pd(e.placement);return t===y||"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:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},np=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}=Sd(e,t),u=await Id(t,c),d=Ed(i),p=Cd(i),h="y"===Pd(i),{width:f,height:v}=o.floating;let m,g;"top"===d||"bottom"===d?(m=d,g=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,m="end"===p?"top":"bottom");const y=v-u.top-u.bottom,_=f-u.left-u.right,w=md(v-u[m],y),b=md(f-u[g],_),x=!t.middlewareData.shift;let k=w,S=b;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=_),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=y),x&&!p){const e=gd(u.left,0),t=gd(u.right,0),n=gd(u.top,0),r=gd(u.bottom,0);h?S=f-2*(0!==e||0!==t?e+t:gd(u.left,u.right)):k=v-2*(0!==n||0!==r?n+r:gd(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:k});const E=await a.getDimensions(s.floating);return f!==E.width||v!==E.height?{reset:{rects:!0}}:{}}}},rp=(e,t,n)=>{const r=new Map,i={platform:Yd,...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}=Fd(c,r,l),p=r,h={},f=0;for(let v=0;v<s.length;v++){const{name:n,fn:o}=s[v],{x:m,y:g,data:y,reset:_}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=g?g:d,h={...h,[n]:{...h[n],...y}},_&&f<=50&&(f++,"object"==typeof _&&(_.placement&&(p=_.placement),_.rects&&(c=!0===_.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):_.rects),({x:u,y:d}=Fd(c,p,l))),v=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:h}})(e,t,{...i,platform:o})};var ip="undefined"!=typeof document?Lt:Ot;function op(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(!op(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)&&!op(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ap(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sp(e,t){const n=ap(e);return Math.round(t*n)/n}function lp(e){const t=Mt(e);return ip((()=>{t.current=e})),t}const cp=(e,t)=>({...Zd(e),options:[e,t]}),up=(e,t)=>({...tp(e),options:[e,t]}),dp=(e,t)=>({...np(e),options:[e,t]}),pp={...Kr},hp=pp.useInsertionEffect||(e=>e());function fp(e){const t=Mt((()=>{}));return hp((()=>{t.current=e})),Dt((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 vp="undefined"!=typeof document?Lt:Ot;let mp=!1,gp=0;const yp=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+gp++;const _p=pp.useId||function(){const[e,t]=Pt((()=>mp?yp():void 0));return vp((()=>{null==e&&t(yp())}),[]),Ot((()=>{mp=!0}),[]),e};const wp=at(null),bp=at(null),xp="data-floating-ui-focusable";function kp(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=_p(),o=Mt({}),[a]=Pt((()=>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=Gt(wp))?void 0:l.id)||null);var l;const[c,u]=Pt(r.reference),d=fp(((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})),[]),h=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:h,events:a,floatingId:i,refs:p})),[t,d,h,a,i,p])}function Sp(e){void 0===e&&(e={});const{nodeId:t}=e,n=kp({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Pt(null),[s,l]=Pt(null),c=(null==i?void 0:i.domReference)||o,u=Mt(null),d=Gt(bp);vp((()=>{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]=Pt({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=Pt(r);op(p,r)||h(r);const[f,v]=Pt(null),[m,g]=Pt(null),y=Dt((e=>{e!==x.current&&(x.current=e,v(e))}),[]),_=Dt((e=>{e!==k.current&&(k.current=e,g(e))}),[]),w=o||f,b=a||m,x=Mt(null),k=Mt(null),S=Mt(u),E=null!=l,C=lp(l),T=lp(i),R=lp(c),P=Dt((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),rp(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};A.current&&!op(S.current,t)&&(S.current=t,Gr((()=>{d(t)})))}))}),[p,t,n,T,R]);ip((()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const A=Mt(!1);ip((()=>(A.current=!0,()=>{A.current=!1})),[]),ip((()=>{if(w&&(x.current=w),b&&(k.current=b),w&&b){if(C.current)return C.current(w,b,P);P()}}),[w,b,P,C,E]);const O=It((()=>({reference:x,floating:k,setReference:y,setFloating:_})),[y,_]),L=It((()=>({reference:w,floating:b})),[w,b]),M=It((()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=sp(L.floating,u.x),r=sp(L.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ap(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,L.floating,u.x,u.y]);return It((()=>({...u,update:P,refs:O,elements:L,floatingStyles:M})),[u,P,O,L,M])}({...e,elements:{...i,...s&&{reference:s}}}),h=Dt((e=>{const t=td(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),f=Dt((e=>{(td(e)||null===e)&&(u.current=e,a(e)),(td(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!td(e))&&p.refs.setReference(e)}),[p.refs]),v=It((()=>({...p.refs,setReference:f,setPositionReference:h,domReference:u})),[p.refs,f,h]),m=It((()=>({...p.elements,domReference:c})),[p.elements,c]),g=It((()=>({...p,...r,refs:v,elements:m,nodeId:t})),[p,v,m,t,r]);return vp((()=>{r.dataRef.current.floatingContext=g;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=g)})),It((()=>({...p,context:g,refs:v,elements:m})),[p,v,m,g])}const Ep="active",Cp="selected";function Tp(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[Ep]:t,[Cp]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[xp]:""},...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&&[Ep,Cp].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 Rp(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}function Pp(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:s}=t,l=fp(s),c=Mt(!1),u=Mt(null),d=Mt(null);Ot((()=>{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(),Gr((()=>{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)&&Gr((()=>l((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[r.floating,l,o,a]);return It((()=>i?{floating:p}:{}),[i,p])}let Ap=at({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Ap.displayName="FloatingContext";let Op=at(null);Op.displayName="PlacementContext";function Lp({children:e,enabled:t=!0}){let[n,r]=Pt(null),[i,o]=Pt(0),a=Mt(null),[s,l]=Pt(null);!function(e){Pc((()=>{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:h=0,inner:f}=function(e,t){var n,r,i;let o=Mp(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=Mp(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=Mp(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(" ");Pc((()=>{c&&o(0)}),[c]);let{refs:g,floatingStyles:y,context:_}=Sp({open:c,placement:"selection"===v?"center"===m?"bottom":`bottom-${m}`:"center"===m?`${v}`:`${v}-${m}`,strategy:"absolute",transform:!1,middleware:[cp({mainAxis:"selection"===v?0:d,crossAxis:p}),(k={padding:h},{...ep(k),options:[k,S]}),"selection"!==v&&up({padding:h}),"selection"===v&&f?(x={...f,padding:h,overflowRef:a,offset:i,minItemsVisible:4,referenceOverflowThreshold:h,onFallbackChange(e){var t,n;if(!e)return;let r=_.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=_.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}=Sd(x,e),{rects:u,elements:{floating:d}}=e,p=t.current[o],h=(null==l?void 0:l.current)||d,f=d.clientTop||h.clientTop,v=0!==d.clientTop,m=0!==h.clientTop,g=d===h;if(!p)return{};const y={...e,...await cp(-p.offsetTop-d.clientTop-u.reference.height/2-p.offsetHeight/2-i).fn(e)},_=await Jd(Rp(y,h.scrollHeight+f+d.clientTop),c),w=await Jd(y,{...c,elementContext:"reference"}),b=gd(0,_.top),k=y.y+b,S=h.scrollHeight>h.clientHeight,E=(S?e=>e:yd)(gd(0,h.scrollHeight+(v&&g||m?2*f:0)-b-gd(0,_.bottom)));if(h.style.maxHeight=E+"px",h.scrollTop=b,r){const e=S&&h.offsetHeight<p.offsetHeight*a-1||w.top>=-s||w.bottom>=-s;Gr((()=>r(e)))}return n&&(n.current=await Jd(Rp({...y,y:k},h.offsetHeight+f+d.clientTop),c)),{y:k}}}):null,dp({padding:h,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:Xd}),[w=v,b=m]=_.placement.split("-");var x,k,S;"selection"===v&&(w="selection");let E=It((()=>({anchor:[w,b].filter(Boolean).join(" ")})),[w,b]),C=Pp(_,{overflowRef:a,onChange:o}),{getReferenceProps:T,getFloatingProps:R}=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=Dt((t=>Tp(t,e,"reference")),t),o=Dt((t=>Tp(t,e,"floating")),n),a=Dt((t=>Tp(t,e,"item")),r);return It((()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a})),[i,o,a])}([C]),P=Oc((e=>{l(e),g.setFloating(e)}));return De(Op.Provider,{value:r},De(Ap.Provider,{value:{setFloating:P,setReference:g.setReference,styles:y,getReferenceProps:T,getFloatingProps:R,slot:E}},e))}function Mp(e,t,n=void 0){let r=Rc(),i=Oc(((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=Ip(e,t);return[i,n=>{let o=Fp(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=Ip(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]=Pt();return Pc((()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)}),[e,t]),a}function Fp(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,...Fp(r)]:[n]}return[]}function Ip(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 Dp=at(null);Dp.displayName="OpenClosedContext";var Gp=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Gp||{});function $p(){return Gt(Dp)}function Np({value:e,children:t}){return qr.createElement(Dp.Provider,{value:e},t)}var Wp,Hp=((Wp=Hp||{})[Wp.First=0]="First",Wp[Wp.Previous=1]="Previous",Wp[Wp.Next=2]="Next",Wp[Wp.Last=3]="Last",Wp[Wp.Specific=4]="Specific",Wp[Wp.Nothing=5]="Nothing",Wp);function Up(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 jp(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Kr&&(e=>e.useSyncExternalStore)(Kr)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=Pt(Sc.isHandoffComplete);return t&&!1===Sc.isHandoffComplete&&n(!1),Ot((()=>{!0!==t&&n(!0)}),[t]),Ot((()=>Sc.handoff()),[]),!e&&t}let Bp=at(!1);function zp(e){let t=Gt(Bp),n=Gt(Qp),r=$u(e),[i,o]=Pt((()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(Sc.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 Ot((()=>{null!==i&&(null!=r&&r.body.contains(i)||null==r||r.body.appendChild(i))}),[i,r]),Ot((()=>{t||null!==n&&o(n.current)}),[n,o,t]),i}let qp=Ne,Kp=zc((function(e,t){let n=e,r=Mt(null),i=Jc(function(e,t=!0){return Object.assign(e,{[Xc]:t})}((e=>{r.current=e})),t),o=$u(r),a=zp(r),[s]=Pt((()=>{var e;return Sc.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null})),l=Gt(Yp),c=jp();Pc((()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))}),[a,s]),Pc((()=>{if(s&&l)return l.register(s)}),[l,s]),function(e){let t=Oc(e),n=Mt(!1);Ot((()=>(n.current=!1,()=>{n.current=!0,Cc((()=>{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=Wc();return c&&a&&s?ur(u({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:qp,name:"Portal"}),s):null}));let Vp=Ne,Qp=at(null);let Yp=at(null),Xp=zc((function(e,t){let n=Jc(t),{enabled:r=!0,...i}=e,o=Wc();return r?qr.createElement(Kp,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:qp,name:"Portal"})})),Jp=zc((function(e,t){let{target:n,...r}=e,i={ref:Jc(t)},o=Wc();return qr.createElement(Qp.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Vp,name:"Popover.Group"}))})),Zp=Object.assign(Xp,{Group:Jp});function eh(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:ah)!==Ne||1===qr.Children.count(e.children)}let th=at(null);th.displayName="TransitionContext";var nh=(e=>(e.Visible="visible",e.Hidden="hidden",e))(nh||{});let rh=at(null);function ih(e){return"children"in e?ih(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function oh(e,t){let n=Ac(e),r=Mt([]),i=function(){let e=Mt(!1);return Pc((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),o=Rc(),a=Oc(((e,t=Nc.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(Ic(t,{[Nc.Unmount](){r.current.splice(a,1)},[Nc.Hidden](){r.current[a].state="hidden"}}),o.microTask((()=>{var e;!ih(r)&&i.current&&(null==(e=n.current)||e.call(n))})))})),s=Oc((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,Nc.Unmount)})),l=Mt([]),c=Mt(Promise.resolve()),u=Mt({enter:[],leave:[]}),d=Oc(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(u.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=Oc(((e,t,n)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return It((()=>({children:r,register:s,unregister:a,onStart:d,onStop:p,wait:c,chains:u})),[s,a,r,d,p,u,c])}rh.displayName="NestingContext";let ah=Ne,sh=$c.RenderStrategy;let lh=zc((function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,a=Mt(null),s=Jc(...eh(e)?[a,t]:null===t?[]:[t]);jp();let l=$p();if(void 0===n&&null!==l&&(n=(l&Gp.Open)===Gp.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=Pt(n?"visible":"hidden"),d=oh((()=>{n||u("hidden")})),[p,h]=Pt(!0),f=Mt([n]);Pc((()=>{!1!==p&&f.current[f.current.length-1]!==n&&(f.current.push(n),h(!1))}),[f,n]);let v=It((()=>({show:n,appear:r,initial:p})),[n,r,p]);Pc((()=>{n?u("visible"):!ih(d)&&null!==a.current&&u("hidden")}),[n,d]);let m={unmount:i},g=Oc((()=>{var t;p&&h(!1),null==(t=e.beforeEnter)||t.call(e)})),y=Oc((()=>{var t;p&&h(!1),null==(t=e.beforeLeave)||t.call(e)})),_=Wc();return qr.createElement(rh.Provider,{value:d},qr.createElement(th.Provider,{value:v},_({ourProps:{...m,as:Ne,children:qr.createElement(ch,{ref:s,...m,...o,beforeEnter:g,beforeLeave:y})},theirProps:{},defaultTag:Ne,features:sh,visible:"visible"===c,name:"Transition"})))})),ch=zc((function(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:a,beforeLeave:s,afterLeave:l,enter:c,enterFrom:u,enterTo:d,entered:p,leave:h,leaveFrom:f,leaveTo:v,...m}=e,[g,y]=Pt(null),_=Mt(null),w=eh(e),b=Jc(...w?[_,t,y]:null===t?[]:[t]),x=null==(n=m.unmount)||n?Nc.Unmount:Nc.Hidden,{show:k,appear:S,initial:E}=function(){let e=Gt(th);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[C,T]=Pt(k?"visible":"hidden"),R=function(){let e=Gt(rh);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:P,unregister:A}=R;Pc((()=>P(_)),[P,_]),Pc((()=>{if(x===Nc.Hidden&&_.current)return k&&"visible"!==C?void T("visible"):Ic(C,{hidden:()=>A(_),visible:()=>P(_)})}),[C,_,P,A,k,x]);let O=jp();Pc((()=>{if(w&&O&&"visible"===C&&null===_.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[_,C,O,w]);let L=E&&!S,M=S&&k&&E,F=Mt(!1),I=oh((()=>{F.current||(T("hidden"),A(_))}),R),D=Oc((e=>{F.current=!0;let t=e?"enter":"leave";I.onStart(_,t,(e=>{"enter"===e?null==o||o():"leave"===e&&(null==s||s())}))})),G=Oc((e=>{let t=e?"enter":"leave";F.current=!1,I.onStop(_,t,(e=>{"enter"===e?null==a||a():"leave"===e&&(null==l||l())})),"leave"===t&&!ih(I)&&(T("hidden"),A(_))}));Ot((()=>{w&&i||(D(k),G(k))}),[k,w,i]);let $=(()=>!(!i||!w||!O||L))(),[,N]=Qu($,g,k,{start:D,end:G}),W=qc({ref:b,className:(null==(r=Fc(m.className,M&&c,M&&u,N.enter&&c,N.enter&&N.closed&&u,N.enter&&!N.closed&&d,N.leave&&h,N.leave&&!N.closed&&f,N.leave&&N.closed&&v,!N.transition&&k&&p))?void 0:r.trim())||void 0,...Vu(N)}),H=0;"visible"===C&&(H|=Gp.Open),"hidden"===C&&(H|=Gp.Closed),N.enter&&(H|=Gp.Opening),N.leave&&(H|=Gp.Closing);let U=Wc();return qr.createElement(rh.Provider,{value:I},qr.createElement(Np,{value:H},U({ourProps:W,theirProps:m,defaultTag:ah,features:sh,visible:"visible"===C,name:"Transition.Child"})))})),uh=zc((function(e,t){let n=null!==Gt(th),r=null!==$p();return qr.createElement(qr.Fragment,null,!n&&r?qr.createElement(lh,{ref:t,...e}):qr.createElement(ch,{ref:t,...e}))})),dh=Object.assign(lh,{Child:uh,Root:lh});let ph=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function hh(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 ph.test(a)&&(a=a.replace(ph,"")),a}function fh(e){let t=Mt(""),n=Mt("");return Oc((()=>{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():hh(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return hh(e).trim()}(r).trim().toLowerCase();return t.current=i,n.current=o,o}))}var vh=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(vh||{}),mh=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(mh||{}),gh=(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))(gh||{});function yh(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=Lu(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 _h={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===Hp.Nothing)return{...s,activeItemIndex:null};if(t.focus===Hp.Specific)return{...s,activeItemIndex:e.items.findIndex((e=>e.id===t.id))};if(t.focus===Hp.Previous){let n=e.activeItemIndex;if(null!==n){let o=e.items[n].dataRef.current.domRef,a=Up(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===Hp.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,i=Up(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=yh(e),c=Up(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=yh(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=yh(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}},wh=at(null);function bh(e){let t=Gt(wh);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,bh),t}return t}function xh(e,t){return Ic(t.type,_h,e,t)}wh.displayName="MenuContext";let kh=Ne;let Sh=$c.RenderStrategy|$c.Static;let Eh=Ne;let Ch=zc((function(e,t){let{__demoMode:n=!1,...r}=e,i=At(xh,{__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=Jc(t);Gu(0===o,[s,a],((e,t)=>{l({type:1}),Ru(t,Tu.Loose)||(e.preventDefault(),null==s||s.focus())}));let u=Oc((()=>{l({type:1})})),d=It((()=>({open:0===o,close:u})),[o,u]),p={ref:c},h=Wc();return qr.createElement(Lp,null,qr.createElement(wh.Provider,{value:i},qr.createElement(Np,{value:Ic(o,{0:Gp.Open,1:Gp.Closed})},h({ourProps:p,theirProps:r,slot:d,defaultTag:kh,name:"Menu"}))))})),Th=zc((function(e,t){var n;let r=Nt(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:a=!1,...s}=e,[l,c]=bh("Menu.Button"),u=Gt(Ap).getReferenceProps,d=Jc(t,Gt(Ap).setReference,Oc((e=>c({type:7,element:e})))),p=Oc((e=>{switch(e.key){case ru.Space:case ru.Enter:case ru.ArrowDown:e.preventDefault(),e.stopPropagation(),Gr((()=>c({type:0}))),c({type:2,focus:Hp.First});break;case ru.ArrowUp:e.preventDefault(),e.stopPropagation(),Gr((()=>c({type:0}))),c({type:2,focus:Hp.Last})}})),h=Oc((e=>{if(e.key===ru.Space)e.preventDefault()})),f=Oc((e=>{var t;if(Yc(e.currentTarget))return e.preventDefault();o||(0===l.menuState?(Gr((()=>c({type:1}))),null==(t=l.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c({type:0})))})),{isFocusVisible:v,focusProps:m}=bc({autoFocus:a}),{isHovered:g,hoverProps:y}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=Pt(!1),s=Mt({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Ot(wc,[]);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=>{mc&&"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||mc||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 Ot((()=>{i&&c({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:l,isHovered:o}}({isDisabled:o}),{pressed:_,pressProps:w}=function({disabled:e=!1}={}){let t=Mt(null),[n,r]=Pt(!1),i=Rc(),o=Oc((()=>{t.current=null,r(!1),i.dispose()})),a=Oc((e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=Ec(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:_||0===l.menuState,disabled:o,hover:g,focus:v,autofocus:a})),[l,g,v,_,o,a]),x=Bc(u(),{ref:d,id:i,type:Nu(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:h,onClick:f},m,y,w);return Wc()({ourProps:x,theirProps:s,slot:b,defaultTag:"button",name:"Menu.Button"})})),Rh=zc((function(e,t){var n,r;let i=Nt(),{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,h]=bh("Menu.Items"),[f,v]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=Gt(Op),n=It((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);Pc((()=>{null==t||t(null!=n?n:null)}),[t,n]);let r=Gt(Ap);return It((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}(d),m=function(){let{getFloatingProps:e,slot:t}=Gt(Ap);return Dt(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}(),[g,y]=Pt(null),_=Jc(t,d?f:null,Oc((e=>h({type:8,element:e}))),y),w=$u(p.itemsElement);d&&(s=!0);let b=$p(),[x,k]=Qu(c,g,null!==b?(b&Gp.Open)===Gp.Open:0===p.menuState);!function(e,t,n){let r=Ac((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));Ot((()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let i=Tc();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,(()=>{h({type:1})})),ju(!p.__demoMode&&(l&&0===p.menuState),w),function(e,{allowed:t,disallowed:n}={}){let r=hu(e,"inert-others");Pc((()=>{var e,i;if(!r)return;let o=Tc();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add(mu(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let t of a){if(!t)continue;let e=Ec(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(mu(e));n=n.parentElement}}return o.dispose}),[r,t,n])}(!p.__demoMode&&(l&&0===p.menuState),{allowed:Dt((()=>[p.buttonElement,p.itemsElement]),[p.buttonElement,p.itemsElement])});let S=!function(e,t){let n=Mt({left:0,top:0});if(Pc((()=>{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;Ot((()=>{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=Mt(n),o=Mt(r);Ot((()=>{i.current=n,o.current=r}),[n,r]),Pc((()=>{if(!t||!e)return;let n=Ec(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=Rc(),C=Oc((e=>{var t,n,r;switch(E.dispose(),e.key){case ru.Space:if(""!==p.searchQuery)return e.preventDefault(),e.stopPropagation(),h({type:3,value:e.key});case ru.Enter:if(e.preventDefault(),e.stopPropagation(),h({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()}Pu(p.buttonElement);break;case ru.ArrowDown:return e.preventDefault(),e.stopPropagation(),h({type:2,focus:Hp.Next});case ru.ArrowUp:return e.preventDefault(),e.stopPropagation(),h({type:2,focus:Hp.Previous});case ru.Home:case ru.PageUp:return e.preventDefault(),e.stopPropagation(),h({type:2,focus:Hp.First});case ru.End:case ru.PageDown:return e.preventDefault(),e.stopPropagation(),h({type:2,focus:Hp.Last});case ru.Escape:e.preventDefault(),e.stopPropagation(),Gr((()=>h({type:1}))),null==(r=p.buttonElement)||r.focus({preventScroll:!0});break;case ru.Tab:e.preventDefault(),e.stopPropagation(),Gr((()=>h({type:1}))),Mu(p.buttonElement,e.shiftKey?ku.Previous:ku.Next);break;default:1===e.key.length&&(h({type:3,value:e.key}),E.setTimeout((()=>h({type:4})),350))}})),T=Oc((e=>{if(e.key===ru.Space)e.preventDefault()})),R=It((()=>({open:0===p.menuState})),[p.menuState]),P=Bc(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:T,role:"menu",tabIndex:0===p.menuState?0:void 0,ref:_,style:{...u.style,...v,"--button-width":lu(p.buttonElement,!0).width},...Vu(k)}),A=Wc();return qr.createElement(Zp,{enabled:!!s&&(e.static||x)},A({ourProps:P,theirProps:u,slot:R,defaultTag:"div",features:Sh,visible:S,name:"Menu.Items"}))})),Ph=zc((function(e,t){let n=Nt(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,[a,s]=bh("Menu.Item"),l=null!==a.activeItemIndex&&a.items[a.activeItemIndex].id===r,c=Mt(null),u=Jc(t,c);Pc((()=>{if(!a.__demoMode&&0===a.menuState&&l&&0!==a.activationTrigger)return Tc().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=fh(c),p=Mt({disabled:i,domRef:c,get textValue(){return d()}});Pc((()=>{p.current.disabled=i}),[p,i]),Pc((()=>(s({type:5,id:r,dataRef:p}),()=>s({type:6,id:r}))),[p,r]);let h=Oc((()=>{s({type:1})})),f=Oc((e=>{if(i)return e.preventDefault();s({type:1}),Pu(a.buttonElement)})),v=Oc((()=>{if(i)return s({type:2,focus:Hp.Nothing});s({type:2,focus:Hp.Specific,id:r})})),m=function(){let e=Mt([-1,-1]);return{wasMoved(t){let n=Bu(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Bu(t)}}}(),g=Oc((e=>{m.update(e),!i&&(l||s({type:2,focus:Hp.Specific,id:r,trigger:0}))})),y=Oc((e=>{m.wasMoved(e)&&(i||l||s({type:2,focus:Hp.Specific,id:r,trigger:0}))})),_=Oc((e=>{m.wasMoved(e)&&(i||l&&s({type:2,focus:Hp.Nothing}))})),[w,b]=au(),[x,k]=function(){let[e,t]=Pt([]);return[e.length>0?e.join(" "):void 0,It((()=>function(e){let n=Oc((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 qr.createElement(Zc.Provider,{value:r},e.children)}),[t])]}(),S=It((()=>({active:l,focus:l,disabled:i,close:h})),[l,i,h]),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:f,onFocus:v,onPointerEnter:g,onMouseEnter:g,onPointerMove:y,onMouseMove:y,onPointerLeave:_,onMouseLeave:_},C=Wc();return qr.createElement(b,null,qr.createElement(k,null,C({ourProps:E,theirProps:o,slot:S,defaultTag:Eh,name:"Menu.Item"})))})),Ah=zc((function(e,t){let[n,r]=au(),i=e,o={ref:t,"aria-labelledby":n,role:"group"},a=Wc();return qr.createElement(r,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Menu.Section"}))})),Oh=zc((function(e,t){let n=Nt(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=ou();Pc((()=>o.register(r)),[r,o.register]);let a={id:r,ref:t,role:"presentation",...o.props};return Wc()({ourProps:a,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})})),Lh=zc((function(e,t){let n=e,r={ref:t,role:"separator"};return Wc()({ourProps:r,theirProps:n,slot:{},defaultTag:"div",name:"Menu.Separator"})})),Mh=Object.assign(Ch,{Button:Th,Items:Rh,Item:Ph,Section:Ah,Heading:Oh,Separator:Lh});function Fh({title:e,titleId:t,...n},r){return De("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?De("title",{id:t},e):null,De("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 Ih=Yn(Fh);function Dh({title:e,titleId:t,...n},r){return De("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?De("title",{id:t},e):null,De("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 Gh=Yn(Dh),$h=e=>Nl(jh,{children:Wl(Mh,{as:"div",children:[Nl("div",{children:Wl(Th,{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:[Nl("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"}),Nl(Ih,{"aria-hidden":"true",css:{width:"1.25rem",height:"1.25rem"}})]})}),Nl(Rh,{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)=>Nl(Ph,{children:Nl("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)))})]})}),Nh=e=>e&&new Date(e).toLocaleDateString("en-AU")||void 0,Wh=e=>void 0!==e&&`$ ${Number(e).toLocaleString("en-US")}`||void 0,Hh=e=>Wl(jh,{children:[Nh(e.value),Nl("br",{}),Nh(e.value)]}),Uh=e=>{const[t,n]=Pt(!1);return Wl(jh,{css:{position:"relative"},children:[Nl(dh,{show:t,children:Nl("div",{css:{position:"absolute",bottom:"3rem",display:"flex",height:"2rem",width:"4.313rem",flexDirection:"row",alignItems:"flex-start",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(17 24 39 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",opacity:"0.9","--tw-shadow":"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms","&[data-closed]":{opacity:"0"},"&[data-enter]":{transitionDuration:"100ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"},"&[data-leave]":{transitionDuration:"500ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"}},children:Nl("p",{css:{order:"0",height:"1rem",width:"2.813rem",flex:"none",flexGrow:"0",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500",fontStyle:"normal","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},children:"Copied"})})}),Nl("button",{onClick:async()=>{await(async e=>{await navigator.clipboard.writeText(e)})(e.value),n(!0),setTimeout((()=>{n(!1)}),3e3)},type:"button",css:{display:"block",flexShrink:"1",borderRadius:"0.375rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",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))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-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"}},children:e.value})]})},jh=Il.td`
|
|
1
|
+
!function(){var e,t,n,r,i,o,a,s,l,c,u,d=Object.create,f=Object.defineProperty,p=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,m=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty,v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{let n={};for(var r in e)f(n,r,{get:e[r],enumerable:!0});return t||f(n,Symbol.toStringTag,{value:"Module"}),n},w=(e,t,n)=>(n=null!=e?d(m(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,o=h(t),a=0,s=o.length;a<s;a++)i=o[a],g.call(e,i)||i===n||f(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=p(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?n:f(n,"default",{value:e,enumerable:!0}),e)),b={},_=[],x=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,k=Array.isArray;function S(e,t){for(var n in t)e[n]=t[n];return e}function E(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function C(t,n,r){var i,o,a,s={};for(a in n)"key"==a?i=n[a]:"ref"==a?o=n[a]:s[a]=n[a];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return T(t,s,i,o,null)}function T(e,r,i,o,a){var s={type:e,props:r,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++n:a,__i:-1,__u:0};return null==a&&null!=t.vnode&&t.vnode(s),s}function R(){return{current:null}}function P(e){return e.children}function O(e,t){this.props=e,this.context=t}function L(e,t){if(null==t)return e.__?L(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?L(e):null}function A(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 A(e)}}function I(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!F.__r++||i!==t.debounceRendering)&&((i=t.debounceRendering)||o)(F)}function F(){var e,n,i,o,s,l,c,u;for(r.sort(a);e=r.shift();)e.__d&&(n=r.length,o=void 0,l=(s=(i=e).__v).__e,c=[],u=[],i.__P&&((o=S({},s)).__v=s.__v+1,t.vnode&&t.vnode(o),U(i.__P,o,s,i.__n,i.__P.namespaceURI,32&s.__u?[l]:null,c,null==l?L(s):l,!!(32&s.__u),u),o.__v=s.__v,o.__.__k[o.__i]=o,q(c,o,u),o.__e!=l&&A(o)),r.length>n&&r.sort(a));F.__r=0}function D(e,t,n,r,i,o,a,s,l,c,u){var d,f,p,h,m,g=r&&r.__k||_,v=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?T(null,i,null,null,null):k(i)?T(P,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?T(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=$(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=L(o)),z(o,o))}(n,t,g),l=n.__d,d=0;d<v;d++)null!=(p=n.__k[d])&&(f=-1===p.__i?b:g[p.__i]||b,p.__i=d,U(e,p,f,i,o,a,s,l,c,u),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&B(f.ref,null,p),u.push(p.ref,p.__c||h,p)),null==m&&null!=h&&(m=h),65536&p.__u||f.__k===p.__k?l=M(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:h&&(l=h.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=m}function M(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=M(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=L(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function N(e,t){return t=t||[],null==e||"boolean"==typeof e||(k(e)?e.some((function(e){N(e,t)})):t.push(e)),t}function $(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 H(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||x.test(t)?n:n+"px"}function j(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||H(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||H(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=s,e.addEventListener(t,o?c:l,o)):e.removeEventListener(t,o?c:l,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(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function W(e){return function(n){if(this.l){var r=this.l[n.type+e];if(null==n.t)n.t=s++;else if(n.t<r.u)return;return r(t.event?t.event(n):n)}}}function U(n,r,i,o,a,s,l,c,u,d){var f,p,h,m,g,v,y,w,_,x,C,T,R,A,I,F,M=r.type;if(void 0!==r.constructor)return null;128&i.__u&&(u=!!(32&i.__u),s=[c=r.__e=i.__e]),(f=t.__b)&&f(r);e:if("function"==typeof M)try{if(w=r.props,_="prototype"in M&&M.prototype.render,x=(f=M.contextType)&&o[f.__c],C=f?x?x.props.value:f.__:o,i.__c?y=(p=r.__c=i.__c).__=p.__E:(_?r.__c=p=new M(w,C):(r.__c=p=new O(w,C),p.constructor=M,p.render=Q),x&&x.sub(p),p.props=w,p.state||(p.state={}),p.context=C,p.__n=o,h=p.__d=!0,p.__h=[],p._sb=[]),_&&null==p.__s&&(p.__s=p.state),_&&null!=M.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=S({},p.__s)),S(p.__s,M.getDerivedStateFromProps(w,p.__s))),m=p.props,g=p.state,p.__v=r,h)_&&null==M.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),_&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(_&&null==M.getDerivedStateFromProps&&w!==m&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(w,C),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(w,p.__s,C)||r.__v===i.__v)){for(r.__v!==i.__v&&(p.props=w,p.state=p.__s,p.__d=!1),r.__e=i.__e,r.__k=i.__k,r.__k.some((function(e){e&&(e.__=r)})),T=0;T<p._sb.length;T++)p.__h.push(p._sb[T]);p._sb=[],p.__h.length&&l.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(w,p.__s,C),_&&null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(m,g,v)}))}if(p.context=C,p.props=w,p.__P=n,p.__e=!1,R=t.__r,A=0,_){for(p.state=p.__s,p.__d=!1,R&&R(r),f=p.render(p.props,p.state,p.context),I=0;I<p._sb.length;I++)p.__h.push(p._sb[I]);p._sb=[]}else do{p.__d=!1,R&&R(r),f=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++A<25);p.state=p.__s,null!=p.getChildContext&&(o=S(S({},o),p.getChildContext())),_&&!h&&null!=p.getSnapshotBeforeUpdate&&(v=p.getSnapshotBeforeUpdate(m,g)),D(n,k(F=null!=f&&f.type===P&&null==f.key?f.props.children:f)?F:[F],r,i,o,a,s,l,c,u,d),p.base=r.__e,r.__u&=-161,p.__h.length&&l.push(p),y&&(p.__E=p.__=null)}catch(n){if(r.__v=null,u||null!=s){for(r.__u|=u?160:128;c&&8===c.nodeType&&c.nextSibling;)c=c.nextSibling;s[s.indexOf(c)]=null,r.__e=c}else r.__e=i.__e,r.__k=i.__k;t.__e(n,r,i)}else null==s&&r.__v===i.__v?(r.__k=i.__k,r.__e=i.__e):r.__e=function(n,r,i,o,a,s,l,c,u){var d,f,p,h,m,g,v,y=i.props,w=r.props,_=r.type;if("svg"===_?a="http://www.w3.org/2000/svg":"math"===_?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s)for(d=0;d<s.length;d++)if((m=s[d])&&"setAttribute"in m==!!_&&(_?m.localName===_:3===m.nodeType)){n=m,s[d]=null;break}if(null==n){if(null===_)return document.createTextNode(w);n=document.createElementNS(a,_,w.is&&w),c&&(t.__m&&t.__m(r,s),c=!1),s=null}if(null===_)y===w||c&&n.data===w||(n.data=w);else{if(s=s&&e.call(n.childNodes),y=i.props||b,!c&&null!=s)for(y={},d=0;d<n.attributes.length;d++)y[(m=n.attributes[d]).name]=m.value;for(d in y)if(m=y[d],"children"==d);else if("dangerouslySetInnerHTML"==d)p=m;else if(!(d in w)){if("value"==d&&"defaultValue"in w||"checked"==d&&"defaultChecked"in w)continue;j(n,d,null,m,a)}for(d in w)m=w[d],"children"==d?h=m:"dangerouslySetInnerHTML"==d?f=m:"value"==d?g=m:"checked"==d?v=m:c&&"function"!=typeof m||y[d]===m||j(n,d,m,y[d],a);if(f)c||p&&(f.__html===p.__html||f.__html===n.innerHTML)||(n.innerHTML=f.__html),r.__k=[];else if(p&&(n.innerHTML=""),D(n,k(h)?h:[h],r,i,o,"foreignObject"===_?"http://www.w3.org/1999/xhtml":a,s,l,s?s[0]:i.__k&&L(i,0),c,u),null!=s)for(d=s.length;d--;)E(s[d]);c||(d="value","progress"===_&&null==g?n.removeAttribute("value"):void 0!==g&&(g!==n[d]||"progress"===_&&!g||"option"===_&&g!==y[d])&&j(n,d,g,y[d],a),d="checked",void 0!==v&&v!==n[d]&&j(n,d,v,y[d],a))}return n}(i.__e,r,i,o,a,s,l,u,d);(f=t.diffed)&&f(r)}function q(e,n,r){n.__d=void 0;for(var i=0;i<r.length;i++)B(r[i],r[++i],r[++i]);t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function B(e,n,r){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==n||(e.__u=e(n))}else e.current=n}catch(e){t.__e(e,r)}}function z(e,n,r){var i,o;if(t.unmount&&t.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||B(i,null,n)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){t.__e(e,n)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&z(i[o],n,r||"function"!=typeof e.type);r||E(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Q(e,t,n){return this.constructor(e,n)}function K(n,r,i){var o,a,s,l;t.__&&t.__(n,r),a=(o="function"==typeof i)?null:i&&i.__k||r.__k,s=[],l=[],U(r,n=(!o&&i||r).__k=C(P,null,[n]),a||b,b,r.namespaceURI,!o&&i?[i]:a?null:r.firstChild?e.call(r.childNodes):null,s,!o&&i?i:a?a.__e:r.firstChild,o,l),q(s,n,l)}function V(e,t){K(e,t,V)}function G(t,n,r){var i,o,a,s,l=S({},t.props);for(a in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),n)"key"==a?i=n[a]:"ref"==a?o=n[a]:l[a]=void 0===n[a]&&void 0!==s?s[a]:n[a];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):r),T(t.type,l,i||t.key,o||t.ref,null)}function Y(e,t){var n={__c:t="__cC"+u++,__: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,I(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 X(){return(X=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)}e=_.slice,t={__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(t){e=t}throw e}},n=0,O.prototype.setState=function(e,t){var n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=S({},this.state);"function"==typeof e&&(e=e(S({},n),this.props)),e&&S(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),I(this))},O.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),I(this))},O.prototype.render=P,r=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(e,t){return e.__v.__b-t.__v.__b},F.__r=0,s=0,l=W(!1),c=W(!0),u=0;var J=["context","children"];function Z(e){return this.getChildContext=function(){return e.context},G(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,J))}function ee(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=C(Z,X({},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[te(a[o].name)]=a[o].value);for(o=s.length;o--;){var l=e(s[o],null),c=s[o].slot;c?i[c]=C(ie,{name:c},l):r[o]=l}var u=n?C(ie,null,r):r;return C(n||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:K)(this._vdom,this._root)}function te(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function ne(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[te(e)]=n,this._vdom=G(this._vdom,r),K(this._vdom,this._root)}}function re(){K(this._vdom=null,this._root)}function ie(e,t){var n=this;return C("slot",X({},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 oe,ae,se,le,ce=0,ue=[],de=t,fe=de.__b,pe=de.__r,he=de.diffed,me=de.__c,ge=de.unmount,ve=de.__;function ye(e,t){de.__h&&de.__h(ae,e,ce||t),ce=0;var n=ae.__H||(ae.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function we(e){return ce=1,be(Ne,e)}function be(e,t,n){var r=ye(oe++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ne(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=ae,!ae.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))};ae.u=!0;var o=ae.shouldComponentUpdate,a=ae.componentWillUpdate;ae.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)},ae.shouldComponentUpdate=i}return r.__N||r.__}function _e(e,t){var n=ye(oe++,3);!de.__s&&Me(n.__H,t)&&(n.__=e,n.i=t,ae.__H.__h.push(n))}function xe(e,t){var n=ye(oe++,4);!de.__s&&Me(n.__H,t)&&(n.__=e,n.i=t,ae.__h.push(n))}function ke(e){return ce=5,Ee((function(){return{current:e}}),[])}function Se(e,t,n){ce=6,xe((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 Ee(e,t){var n=ye(oe++,7);return Me(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ce(e,t){return ce=8,Ee((function(){return e}),t)}function Te(e){var t=ae.context[e.__c],n=ye(oe++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(ae)),t.props.value):e.__}function Re(e,t){de.useDebugValue&&de.useDebugValue(t?t(e):e)}function Pe(e){var t=ye(oe++,10),n=we();return t.__=e,ae.componentDidCatch||(ae.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function Oe(){var e=ye(oe++,11);if(!e.__){for(var t=ae.__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 Le(){for(var e;e=ue.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Fe),e.__H.__h.forEach(De),e.__H.__h=[]}catch(xc){e.__H.__h=[],de.__e(xc,e.__v)}}de.__b=function(e){ae=null,fe&&fe(e)},de.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ve&&ve(e,t)},de.__r=function(e){pe&&pe(e),oe=0;var t=(ae=e.__c).__H;t&&(se===ae?(t.__h=[],ae.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(Fe),t.__h.forEach(De),t.__h=[],oe=0)),se=ae},de.diffed=function(e){he&&he(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ue.push(t)&&le===de.requestAnimationFrame||((le=de.requestAnimationFrame)||Ie)(Le)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),se=ae=null},de.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Fe),e.__h=e.__h.filter((function(e){return!e.__||De(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],de.__e(n,e.__v)}})),me&&me(e,t)},de.unmount=function(e){ge&&ge(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Fe(e)}catch(e){t=e}})),n.__H=void 0,t&&de.__e(t,n.__v))};var Ae="function"==typeof requestAnimationFrame;function Ie(e){var t,n=function(){clearTimeout(r),Ae&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ae&&(t=requestAnimationFrame(n))}function Fe(e){var t=ae,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),ae=t}function De(e){var t=ae;e.__c=e.__(),ae=t}function Me(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ne(e,t){return"function"==typeof t?t(e):t}var $e=class extends Error{};function He(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)}}$e.prototype.name="InvalidTokenError";var je=class e{roles;isAuthorized;constructor(e){this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(t){return new e((t?function(e,t){if("string"!=typeof e)throw new $e("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 $e(`Invalid token specified: missing part #${n+1}`);let i;try{i=He(r)}catch(_d){throw new $e(`Invalid token specified: invalid base64 for part #${n+1} (${_d.message})`)}try{return JSON.parse(i)}catch(_d){throw new $e(`Invalid token specified: invalid json for part #${n+1} (${_d.message})`)}}(t):{roles:[]}).roles)}},We=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ue="undefined"==typeof window||"Deno"in globalThis;function qe(){}function Be(e){return"number"==typeof e&&e>=0&&e!==1/0}function ze(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qe(e,t){return"function"==typeof e?e(t):e}function Ke(e,t){return"function"==typeof e?e(t):e}function Ve(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a)if(r){if(t.queryHash!==Ye(a,t.options))return!1}else if(!Je(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function Ge(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Xe(t.options.mutationKey)!==Xe(o))return!1}else if(!Je(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function Ye(e,t){return(t?.queryKeyHashFn||Xe)(e)}function Xe(e){return JSON.stringify(e,((e,t)=>nt(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Je(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Je(e[n],t[n]))))}function Ze(e,t){if(e===t)return e;const n=tt(e)&&tt(t);if(n||nt(e)&&nt(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let c=0;c<a;c++){const i=n?c:o[c];(!n&&r.includes(i)||n)&&void 0===e[i]&&void 0===t[i]?(s[i]=void 0,l++):(s[i]=Ze(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===a&&l===i?e:s}return t}function et(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function tt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nt(e){if(!rt(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!rt(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function rt(e){return"[object Object]"===Object.prototype.toString.call(e)}function it(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Ze(e,t):t}function ot(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function at(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var st=Symbol();function lt(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==st?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var ct=new class extends We{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Ue&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},ut=new class extends We{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Ue&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#r}};function dt(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch((()=>{})),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function ft(e){return Math.min(1e3*2**e,3e4)}function pt(e){return"online"!==(e??"online")||ut.isOnline()}var ht=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function mt(e){return e instanceof ht}function gt(e){let t,n=!1,r=0,i=!1;const o=dt(),a=()=>ct.isFocused()&&("always"===e.networkMode||ut.isOnline())&&e.canRun(),s=()=>pt(e.networkMode)&&e.canRun(),l=n=>{i||(i=!0,e.onSuccess?.(n),t?.(),o.resolve(n))},c=n=>{i||(i=!0,e.onError?.(n),t?.(),o.reject(n))},u=()=>new Promise((n=>{t=e=>{(i||a())&&n(e)},e.onPause?.()})).then((()=>{t=void 0,i||e.onContinue?.()})),d=()=>{if(i)return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch((t=>{if(i)return;const o=e.retry??(Ue?0:3),s=e.retryDelay??ft,l="function"==typeof s?s(r,t):s,f=!0===o||"number"==typeof o&&r<o||"function"==typeof o&&o(r,t);!n&&f?(r++,e.onFail?.(r,t),function(e){return new Promise((t=>{setTimeout(t,e)}))}(l).then((()=>a()?void 0:u())).then((()=>{n?c(t):d()}))):c(t)}))};return{promise:o,cancel:t=>{i||(c(new ht(t)),e.abort?.())},continue:()=>(t?.(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var vt=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0);const o=r=>{t?e.push(r):i((()=>{n(r)}))};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),yt=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Be(this.gcTime)&&(this.#i=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ue?1/0:3e5))}clearGcTimeout(){this.#i&&(clearTimeout(this.#i),this.#i=void 0)}},wt=class extends yt{#o;#a;#s;#l;#c;#u;constructor(e){super(),this.#u=!1,this.#c=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#s.remove(this)}setData(e,t){const n=it(this.state.data,e,this.options);return this.#d({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#d({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#l?.promise;return this.#l?.cancel(e),t?t.then(qe).catch(qe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#o)}isActive(){return this.observers.some((e=>!1!==Ke(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===st||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!ze(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find((e=>e.shouldFetchOnWindowFocus()))?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find((e=>e.shouldFetchOnReconnect()))?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.#l&&(this.#u?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#u=!0,n.signal)})},i={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=lt(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return r(n),this.#u=!1,this.options.persister?this.options.persister(e,n,this):e(n)}};r(i),this.options.behavior?.onFetch(i,this),this.#a=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#d({type:"fetch",meta:i.fetchOptions?.meta});const o=e=>{mt(e)&&e.silent||this.#d({type:"error",error:e}),mt(e)||(this.#s.config.onError?.(e,this),this.#s.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#l=gt({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0!==e){try{this.setData(e)}catch(t){return void o(t)}this.#s.config.onSuccess?.(e,this),this.#s.config.onSettled?.(e,this.state.error,this),this.scheduleGc()}else o(new Error(`${this.queryHash} data is undefined`))},onError:o,onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),this.#l.start()}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...bt(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return mt(n)&&n.revert&&this.#a?{...this.#a,fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),vt.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),this.#s.notify({query:this,type:"updated",action:e})}))}};function bt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pt(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var _t=class extends We{constructor(e={}){super(),this.config=e,this.#f=new Map}#f;build(e,t,n){const r=t.queryKey,i=t.queryHash??Ye(r,t);let o=this.get(i);return o||(o=new wt({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#f.has(e.queryHash)||(this.#f.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#f.get(e.queryHash);t&&(e.destroy(),t===e&&this.#f.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){vt.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#f.get(e)}getAll(){return[...this.#f.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Ve(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>Ve(e,t))):t}notify(e){vt.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){vt.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){vt.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},xt=class extends yt{#p;#h;#l;constructor(e){super(),this.mutationId=e.mutationId,this.#h=e.mutationCache,this.#p=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#p.includes(e)||(this.#p.push(e),this.clearGcTimeout(),this.#h.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#p=this.#p.filter((t=>t!==e)),this.scheduleGc(),this.#h.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#p.length||("pending"===this.state.status?this.scheduleGc():this.#h.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(e){this.#l=gt({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#h.canRun(this)});const t="pending"===this.state.status,n=!this.#l.canStart();try{if(!t){this.#d({type:"pending",variables:e,isPaused:n}),await(this.#h.config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:n})}const r=await this.#l.start();return await(this.#h.config.onSuccess?.(r,e,this.state.context,this)),await(this.options.onSuccess?.(r,e,this.state.context)),await(this.#h.config.onSettled?.(r,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(r,null,e,this.state.context)),this.#d({type:"success",data:r}),r}catch(r){try{throw await(this.#h.config.onError?.(r,e,this.state.context,this)),await(this.options.onError?.(r,e,this.state.context)),await(this.#h.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,r,e,this.state.context)),r}finally{this.#d({type:"error",error:r})}}finally{this.#h.runNext(this)}}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),vt.batch((()=>{this.#p.forEach((t=>{t.onMutationUpdate(e)})),this.#h.notify({mutation:this,type:"updated",action:e})}))}};var kt=class extends We{constructor(e={}){super(),this.config=e,this.#m=new Map,this.#g=Date.now()}#m;#g;build(e,t,n){const r=new xt({mutationCache:this,mutationId:++this.#g,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=St(e),n=this.#m.get(t)??[];n.push(e),this.#m.set(t,n),this.notify({type:"added",mutation:e})}remove(e){const t=St(e);if(this.#m.has(t)){const n=this.#m.get(t)?.filter((t=>t!==e));n&&(0===n.length?this.#m.delete(t):this.#m.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){const t=this.#m.get(St(e))?.find((e=>"pending"===e.state.status));return!t||t===e}runNext(e){return(this.#m.get(St(e))?.find((t=>t!==e&&t.state.isPaused)))?.continue()??Promise.resolve()}clear(){vt.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...this.#m.values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Ge(t,e)))}findAll(e={}){return this.getAll().filter((t=>Ge(e,t)))}notify(e){vt.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return vt.batch((()=>Promise.all(e.map((e=>e.continue().catch(qe))))))}};function St(e){return e.options.scope?.id??String(e.mutationId)}function Et(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let n=!1;const c=lt(t.options,t.fetchOptions),u=async(e,r,i)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const o={queryKey:t.queryKey,pageParam:r,direction:i?"backward":"forward",meta:t.options.meta};var a;a=o,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)});const s=await c(o),{maxPages:l}=t.options,u=i?at:ot;return{pages:u(e.pages,s,l),pageParams:u(e.pageParams,r,l)}};if(i&&o.length){const e="backward"===i,t=e?Tt:Ct,n={pages:o,pageParams:a};s=await u(n,t(r,n),e)}else{const t=e??o.length;do{const e=0===l?a[0]??r.initialPageParam:Ct(r,s);if(l>0&&null==e)break;s=await u(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function Ct(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Tt(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Rt=class{#v;#h;#c;#y;#w;#b;#_;#x;constructor(e={}){this.#v=e.queryCache||new _t,this.#h=e.mutationCache||new kt,this.#c=e.defaultOptions||{},this.#y=new Map,this.#w=new Map,this.#b=0}mount(){this.#b++,1===this.#b&&(this.#_=ct.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#v.onFocus())})),this.#x=ut.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#v.onOnline())})))}unmount(){this.#b--,0===this.#b&&(this.#_?.(),this.#_=void 0,this.#x?.(),this.#x=void 0)}isFetching(e){return this.#v.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#h.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#v.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=this.#v.build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Qe(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#v.findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#v.get(r.queryHash)?.state.data,o=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==o)return this.#v.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return vt.batch((()=>this.#v.findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#v.get(t.queryHash)?.state}removeQueries(e){const t=this.#v;vt.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=this.#v,r={type:"active",...e};return vt.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=vt.batch((()=>this.#v.findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(qe).catch(qe)}invalidateQueries(e={},t={}){return vt.batch((()=>{if(this.#v.findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)}))}refetchQueries(e={},t){const n={...t,cancelRefetch:t?.cancelRefetch??!0},r=vt.batch((()=>this.#v.findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(qe)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(qe)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#v.build(this,t);return n.isStaleByTime(Qe(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qe).catch(qe)}fetchInfiniteQuery(e){return e.behavior=Et(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qe).catch(qe)}ensureInfiniteQueryData(e){return e.behavior=Et(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ut.isOnline()?this.#h.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#v}getMutationCache(){return this.#h}getDefaultOptions(){return this.#c}setDefaultOptions(e){this.#c=e}setQueryDefaults(e,t){this.#y.set(Xe(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#y.values()];let n={};return t.forEach((t=>{Je(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){this.#w.set(Xe(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#w.values()];let n={};return t.forEach((t=>{Je(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#c.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ye(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===st&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#c.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#v.clear(),this.#h.clear()}},Pt=class extends We{constructor(e,t){super(),this.options=t,this.#k=e,this.#S=null,this.#E=dt(),this.options.experimental_prefetchInRender||this.#E.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#k;#C=void 0;#T=void 0;#R=void 0;#P;#O;#E;#S;#L;#A;#I;#F;#D;#M;#N=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#C.addObserver(this),Ot(this.#C,this.options)?this.#$():this.updateResult(),this.#H())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lt(this.#C,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lt(this.#C,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#j(),this.#W(),this.#C.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.#C;if(this.options=this.#k.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Ke(this.options.enabled,this.#C))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#U(),this.#C.setOptions(this.options),n._defaulted&&!et(this.options,n)&&this.#k.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#C,observer:this});const i=this.hasListeners();i&&At(this.#C,r,this.options,n)&&this.#$(),this.updateResult(t),!i||this.#C===r&&Ke(this.options.enabled,this.#C)===Ke(n.enabled,this.#C)&&Qe(this.options.staleTime,this.#C)===Qe(n.staleTime,this.#C)||this.#q();const o=this.#B();!i||this.#C===r&&Ke(this.options.enabled,this.#C)===Ke(n.enabled,this.#C)&&o===this.#M||this.#z(o)}getOptimisticResult(e){const t=this.#k.getQueryCache().build(this.#k,e),n=this.createResult(t,e);var r;return r=n,et(this.getCurrentResult(),r)||(this.#R=n,this.#O=this.options,this.#P=this.#C.state),n}getCurrentResult(){return this.#R}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})})),n}trackProp(e){this.#N.add(e)}getCurrentQuery(){return this.#C}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#k.defaultQueryOptions(e),n=this.#k.getQueryCache().build(this.#k,t);return n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return this.#$({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#R)))}#$(e){this.#U();let t=this.#C.fetch(this.options,e);return e?.throwOnError||(t=t.catch(qe)),t}#q(){this.#j();const e=Qe(this.options.staleTime,this.#C);if(Ue||this.#R.isStale||!Be(e))return;const t=ze(this.#R.dataUpdatedAt,e)+1;this.#F=setTimeout((()=>{this.#R.isStale||this.updateResult()}),t)}#B(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#C):this.options.refetchInterval)??!1}#z(e){this.#W(),this.#M=e,!Ue&&!1!==Ke(this.options.enabled,this.#C)&&Be(this.#M)&&0!==this.#M&&(this.#D=setInterval((()=>{(this.options.refetchIntervalInBackground||ct.isFocused())&&this.#$()}),this.#M))}#H(){this.#q(),this.#z(this.#B())}#j(){this.#F&&(clearTimeout(this.#F),this.#F=void 0)}#W(){this.#D&&(clearInterval(this.#D),this.#D=void 0)}createResult(e,t){const n=this.#C,r=this.options,i=this.#R,o=this.#P,a=this.#O,s=e!==n?e.state:this.#T,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&Ot(e,t),a=i&&At(e,n,t,r);(o||a)&&(u={...u,...bt(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:h}=u;if(t.select&&void 0!==u.data)if(i&&u.data===o?.data&&t.select===this.#L)c=this.#A;else try{this.#L=t.select,c=t.select(u.data),c=it(i?.data,c,t),this.#A=c,this.#S=null}catch(_){this.#S=_}else c=u.data;if(void 0!==t.placeholderData&&void 0===c&&"pending"===h){let e;if(i?.isPlaceholderData&&t.placeholderData===a?.placeholderData)e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#I?.state.data,this.#I):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#S=null}catch(_){this.#S=_}void 0!==e&&(h="success",c=it(i?.data,e,t),d=!0)}this.#S&&(f=this.#S,c=this.#A,p=Date.now(),h="error");const m="fetching"===u.fetchStatus,g="pending"===h,v="error"===h,y=g&&m,w=void 0!==c,b={status:h,fetchStatus:u.fetchStatus,isPending:g,isSuccess:"success"===h,isError:v,isInitialLoading:y,isLoading:y,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:m,isRefetching:m&&!g,isLoadingError:v&&!w,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:v&&w,isStale:It(e,t),refetch:this.refetch,promise:this.#E};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===b.status?e.reject(b.error):void 0!==b.data&&e.resolve(b.data)},r=()=>{t(this.#E=b.promise=dt())},i=this.#E;switch(i.status){case"pending":e.queryHash===n.queryHash&&t(i);break;case"fulfilled":"error"!==b.status&&b.data===i.value||r();break;case"rejected":"error"===b.status&&b.error===i.reason||r()}}return b}updateResult(e){const t=this.#R,n=this.createResult(this.#C,this.options);if(this.#P=this.#C.state,this.#O=this.options,void 0!==this.#P.data&&(this.#I=this.#C),et(n,t))return;this.#R=n;const r={};!1!==e?.listeners&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#N.size)return!0;const r=new Set(n??this.#N);return this.options.throwOnError&&r.add("error"),Object.keys(this.#R).some((e=>{const n=e;return this.#R[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.#Q({...r,...e})}#U(){const e=this.#k.getQueryCache().build(this.#k,this.options);if(e===this.#C)return;const t=this.#C;this.#C=e,this.#T=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#H()}#Q(e){vt.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#R)})),this.#k.getQueryCache().notify({query:this.#C,type:"observerResultsUpdated"})}))}};function Ot(e,t){return function(e,t){return!1!==Ke(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Lt(e,t,t.refetchOnMount)}function Lt(e,t,n){if(!1!==Ke(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&It(e,t)}return!1}function At(e,t,n,r){return(e!==t||!1===Ke(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&It(e,n)}function It(e,t){return!1!==Ke(t.enabled,e)&&e.isStaleByTime(Qe(t.staleTime,e))}var Ft=class extends We{#k;#R=void 0;#K;#V;constructor(e,t){super(),this.#k=e,this.setOptions(t),this.bindMethods(),this.#G()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#k.defaultMutationOptions(e),et(this.options,t)||this.#k.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#K,observer:this}),t?.mutationKey&&this.options.mutationKey&&Xe(t.mutationKey)!==Xe(this.options.mutationKey)?this.reset():"pending"===this.#K?.state.status&&this.#K.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#K?.removeObserver(this)}onMutationUpdate(e){this.#G(),this.#Q(e)}getCurrentResult(){return this.#R}reset(){this.#K?.removeObserver(this),this.#K=void 0,this.#G(),this.#Q()}mutate(e,t){return this.#V=t,this.#K?.removeObserver(this),this.#K=this.#k.getMutationCache().build(this.#k,this.options),this.#K.addObserver(this),this.#K.execute(e)}#G(){const e=this.#K?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#R={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#Q(e){vt.batch((()=>{if(this.#V&&this.hasListeners()){const t=this.#R.variables,n=this.#R.context;"success"===e?.type?(this.#V.onSuccess?.(e.data,t,n),this.#V.onSettled?.(e.data,null,t,n)):"error"===e?.type&&(this.#V.onError?.(e.error,t,n),this.#V.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach((e=>{e(this.#R)}))}))}},Dt=y({Children:()=>qt,Component:()=>O,Fragment:()=>P,PureComponent:()=>Nt,StrictMode:()=>Ln,Suspense:()=>Vt,SuspenseList:()=>Xt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>bn,cloneElement:()=>Cn,createContext:()=>Y,createElement:()=>C,createFactory:()=>xn,createPortal:()=>tn,createRef:()=>R,default:()=>Hn,findDOMNode:()=>Rn,flushSync:()=>On,forwardRef:()=>Wt,hydrate:()=>un,isElement:()=>Mn,isFragment:()=>Sn,isMemo:()=>En,isValidElement:()=>kn,lazy:()=>Yt,memo:()=>$t,render:()=>cn,startTransition:()=>An,unmountComponentAtNode:()=>Tn,unstable_batchedUpdates:()=>Pn,useCallback:()=>Ce,useContext:()=>Te,useDebugValue:()=>Re,useDeferredValue:()=>In,useEffect:()=>_e,useErrorBoundary:()=>Pe,useId:()=>Oe,useImperativeHandle:()=>Se,useInsertionEffect:()=>Dn,useLayoutEffect:()=>xe,useMemo:()=>Ee,useReducer:()=>be,useRef:()=>ke,useState:()=>we,useSyncExternalStore:()=>Nn,useTransition:()=>Fn,version:()=>_n});function Mt(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 Nt(e,t){this.props=e,this.context=t}function $t(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:Mt(this.props,e)}function r(t){return this.shouldComponentUpdate=n,C(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Nt.prototype=new O).isPureReactComponent=!0,Nt.prototype.shouldComponentUpdate=function(e,t){return Mt(this.props,e)||Mt(this.state,t)};var Ht=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ht&&Ht(e)};var jt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Wt(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=jt,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ut=function(e,t){return null==e?null:N(N(e).map(t))},qt={map:Ut,forEach:Ut,count:function(e){return e?N(e).length:0},only:function(e){var t=N(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:N},Bt=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Bt(e,t,n,r)};var zt=t.unmount;function Qt(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 Qt(e,t,n)}))),e}function Kt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Kt(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 Vt(){this.__u=0,this.t=null,this.__b=null}function Gt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Yt(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 C(n,i)}return i.displayName="Lazy",i.__f=!0,i}function Xt(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),zt&&zt(e)},(Vt.prototype=new O).__c=function(e,t){var n=t.__c,r=this;r.t??=[],r.t.push(n);var i=Gt(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]=Kt(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)},Vt.prototype.componentWillUnmount=function(){this.t=[]},Vt.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]=Qt(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&C(P,null,e.fallback);return i&&(i.__u&=-33),[C(P,null,t.__a?null:e.children),i]};var Jt=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 Zt(e){return this.getChildContext=function(){return e.context},e.children}function en(e){var t=this,n=e.i;t.componentWillUnmount=function(){K(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)}}),K(C(Zt,{context:t.context},e.__v),t.l)}function tn(e,t){var n=C(en,{__v:e,i:t});return n.containerInfo=t,n}(Xt.prototype=new O).__a=function(e){var t=this,n=Gt(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Jt(t,e,r)):i()};n?n(o):o()}},Xt.prototype.render=function(e){this.u=null,this.o=new Map;var t=N(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},Xt.prototype.componentDidUpdate=Xt.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Jt(e,n,t)}))};var nn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,rn=/^(?: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]/,on=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,an=/[A-Z0-9]/g,sn="undefined"!=typeof document,ln=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function cn(e,t,n){return t.__k??(t.textContent=""),K(e,t),"function"==typeof n&&n(),e?e.__c:null}function un(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}O.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(O.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var dn=t.event;function fn(){}function pn(){return this.cancelBubble}function hn(){return this.defaultPrevented}t.event=function(e){return dn&&(e=dn(e)),e.persist=fn,e.isPropagationStopped=pn,e.isDefaultPrevented=hn,e.nativeEvent=e};var mn,gn={enumerable:!1,configurable:!0,get:function(){return this.class}},vn=t.vnode;t.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||sn&&"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||ln(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":on.test(o)&&(o=s):s=o="oninput":i&&rn.test(o)?o=o.replace(an,"-$&").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=N(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=N(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",gn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=nn,vn&&vn(e)};var yn=t.__r;t.__r=function(e){yn&&yn(e),mn=e.__c};var wn=t.diffed;t.diffed=function(e){wn&&wn(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 bn={ReactCurrentDispatcher:{current:{readContext:function(e){return mn.__n[e.__c].props.value},useCallback:Ce,useContext:Te,useDebugValue:Re,useDeferredValue:In,useEffect:_e,useId:Oe,useImperativeHandle:Se,useInsertionEffect:Dn,useLayoutEffect:xe,useMemo:Ee,useReducer:be,useRef:ke,useState:we,useSyncExternalStore:Nn,useTransition:Fn}}},_n="18.3.1";function xn(e){return C.bind(null,e)}function kn(e){return!!e&&e.$$typeof===nn}function Sn(e){return kn(e)&&e.type===P}function En(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Cn(e){return kn(e)?G.apply(null,arguments):e}function Tn(e){return!!e.__k&&(K(null,e),!0)}function Rn(e){return e&&(e.base||1===e.nodeType&&e)||null}var Pn=function(e,t){return e(t)},On=function(e,t){return e(t)},Ln=P;function An(e){e()}function In(e){return e}function Fn(){return[!1,An]}var Dn=xe,Mn=kn;function Nn(e,t){var n=t(),r=we({h:{__:n,v:t}}),i=r[0].h,o=r[1];return xe((function(){i.__=n,i.v=t,$n(i)&&o({h:i})}),[e,n,t]),_e((function(){return $n(i)&&o({h:i}),e((function(){$n(i)&&o({h:i})}))}),[e]),n}function $n(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(e){return!0}}var Hn={useState:we,useId:Oe,useReducer:be,useEffect:_e,useLayoutEffect:xe,useInsertionEffect:Dn,useTransition:Fn,useDeferredValue:In,useSyncExternalStore:Nn,startTransition:An,useRef:ke,useImperativeHandle:Se,useMemo:Ee,useCallback:Ce,useContext:Te,useDebugValue:Re,version:"18.3.1",Children:qt,render:cn,hydrate:un,unmountComponentAtNode:Tn,createPortal:tn,createElement:C,createContext:Y,createFactory:xn,cloneElement:Cn,createRef:R,Fragment:P,isValidElement:kn,isElement:Mn,isFragment:Sn,isMemo:En,findDOMNode:Rn,Component:O,PureComponent:Nt,memo:$t,forwardRef:Wt,flushSync:On,unstable_batchedUpdates:Pn,StrictMode:Ln,Suspense:Vt,SuspenseList:Xt,lazy:Yt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:bn},jn=0;Array.isArray;function Wn(e,n,r,i,o,a){n||(n={});var s,l,c=n;"ref"in n&&(s=n.ref,delete n.ref);var u={type:e,props:c,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--jn,__i:-1,__u:0,__source:o,__self:a};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return t.vnode&&t.vnode(u),u}var Un=Y(void 0),qn=e=>{const t=Te(Un);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Bn=({client:e,children:t})=>(_e((()=>(e.mount(),()=>{e.unmount()})),[e]),Wn(Un.Provider,{value:e,children:t})),zn=Y(!1);zn.Provider;var Qn=Y(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Kn(e,t){return"function"==typeof e?e(...t):!!e}function Vn(){}var Gn=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function Yn(e,t,n){const r=qn(n),i=Te(zn),o=Te(Qn),a=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=i?"isRestoring":"optimistic",(e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(a),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(a,o),(e=>{_e((()=>{e.clearReset()}),[e])})(o);const s=!r.getQueryCache().get(a.queryHash),[l]=we((()=>new t(r,a))),c=l.getOptimisticResult(a);if(Nn(Ce((e=>{const t=i?Vn:l.subscribe(vt.batchCalls(e));return l.updateResult(),t}),[l,i]),(()=>l.getCurrentResult())),_e((()=>{l.setOptions(a,{listeners:!1})}),[a,l]),((e,t)=>e?.suspense&&t.isPending)(a,c))throw Gn(a,l,o);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Kn(n,[e.error,r]))({result:c,errorResetBoundary:o,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw c.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(a,c),a.experimental_prefetchInRender&&!Ue&&((e,t)=>e.isLoading&&e.isFetching&&!t)(c,i)&&(s?Gn(a,l,o):r.getQueryCache().get(a.queryHash)?.promise)?.catch(Vn).finally((()=>{l.updateResult()})),a.notifyOnChangeProps?c:l.trackResult(c)}function Xn(e,t){return Yn(e,Pt,t)}function Jn(e,t){const n=qn(t),[r]=we((()=>new Ft(n,e)));_e((()=>{r.setOptions(e)}),[r,e]);const i=Nn(Ce((e=>r.subscribe(vt.batchCalls(e))),[r]),(()=>r.getCurrentResult())),o=Ce(((e,t)=>{r.mutate(e,t).catch(Vn)}),[r]);if(i.error&&Kn(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}var Zn,er=Y({account:{accountId:""},backend:{url:"",accessToken:""}}),tr=()=>Te(er),nr=class e extends Error{_response;get response(){return this._response}constructor(t,n){super(t),this._response=n,Object.setPrototypeOf(this,e.prototype)}},rr=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.1191",authorization:`Bearer ${t}`},signal:AbortSignal?.timeout&&AbortSignal.timeout(15e3)});if(!i.ok)throw new nr(`[API Error] Status: ${i.status}, ${i.statusText}`,i);return i},ir=async(e,t,n,r)=>await(await rr(e,t,n,r)).json(),or=e=>{const t=tr();return Ee((()=>e(t)),[e,t])},ar="linkedAccount",sr="linkedProfilesForAccount",lr="salaryPackagedItem",cr="checkProfileSearchAuthorization",ur="payrollAdvice",dr="invoices",fr="/salary-packaging/admin/v1.0",pr=e=>async()=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/auth`),e.backend.accessToken,"GET"),hr=e=>async t=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profile-search?search=${t}`),e.backend.accessToken,"GET"),mr=e=>async()=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const n=new Date;n.setUTCDate((new Date).getUTCDate()+2),await rr(new URL(`${e.backend.url}${fr}/ingest/clients`),e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:n.toISOString().split("T")[0]})},gr=e=>async()=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}`),e.backend.accessToken,"GET"),vr=e=>async()=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profiles`),e.backend.accessToken,"GET"),yr=e=>async t=>{await rr(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profiles/${t}/unlink`),e.backend.accessToken,"POST")},wr=e=>async(t,n)=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profiles/${t}/items/${n}`),e.backend.accessToken,"GET"),br=e=>async t=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profiles/${t}/payroll-advice`),e.backend.accessToken,"GET"),_r=e=>async()=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/invoices`),e.backend.accessToken,"GET"),xr=()=>({checkProfileSearchAuthorization:or(pr),searchProfilesForAccount:or(hr),ingestClient:or(mr),linkedAccount:or(gr),linkedProfilesForAccount:or(vr),unlinkProfile:or(yr),salaryPackagedItem:or(wr),payrollAdvice:or(br),invoices:or(_r)}),kr="popstate";function Sr(e={}){return function(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s="POP",l=null,c=u();null==c&&(c=0,a.replaceState({...a.state,idx:c},""));function u(){return(a.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:m.location,delta:t})}function f(e,t){s="PUSH";let r=Rr(m.location,e,t);n&&n(r,e),c=u()+1;let d=Tr(r,c),f=m.createHref(r);try{a.pushState(d,"",f)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;i.location.assign(f)}o&&l&&l({action:s,location:m.location,delta:1})}function p(e,t){s="REPLACE";let r=Rr(m.location,e,t);n&&n(r,e),c=u();let i=Tr(r,c),d=m.createHref(r);a.replaceState(i,"",d),o&&l&&l({action:s,location:m.location,delta:0})}function h(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href);Er(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:Pr(e);r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r);return new URL(r,n)}(e)}let m={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(kr,d),l=e,()=>{i.removeEventListener(kr,d),l=null}},createHref:e=>t(i,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go:e=>a.go(e)};return m}((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=Or(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),Rr("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:Pr(t))}),(function(e,t){Cr("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function Er(e,t){if(!1===e||null==e)throw new Error(t)}function Cr(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(_d){}}}function Tr(e,t){return{usr:e.state,key:e.key,idx:t}}function Rr(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?Or(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function Pr({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function Or(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Lr(e,t,n="/"){return function(e,t,n,r){let i=zr(("string"==typeof t?Or(t):t).pathname||"/",n);if(null==i)return null;let o=Ar(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let s=0;null==a&&s<o.length;++s){let e=Br(i);a=Ur(o[s],e,r)}return a}(e,t,n,!1)}function Ar(e,t=[],n=[],r="",i=!1){let o=(e,o,a=i,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&a)return;Er(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let c=Jr([r,l.relativePath]),u=n.concat(l);e.children&&e.children.length>0&&(Er(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Ar(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:Wr(c,e.index),routesMeta:u})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of Ir(e.path))o(e,t,!0,n);else o(e,t)})),t}function Ir(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=Ir(r.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}var Fr=/^:[\w-]+$/,Dr=3,Mr=2,Nr=1,$r=10,Hr=-2,jr=e=>"*"===e;function Wr(e,t){let n=e.split("/"),r=n.length;return n.some(jr)&&(r+=Hr),t&&(r+=Mr),n.filter((e=>!jr(e))).reduce(((e,t)=>e+(Fr.test(t)?Dr:""===t?Nr:$r)),r)}function Ur(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let e=r[s],l=s===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=qr({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=qr({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),a.push({params:i,pathname:Jr([o,u.pathname]),pathnameBase:Zr(Jr([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=Jr([o,u.pathnameBase]))}return a}function qr(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){Cr("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"))).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");return[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const i=s[r];return e[t]=n&&!i?void 0:(i||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function Br(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return Cr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function zr(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var Qr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Kr(e,t="/"){let n,{pathname:r,search:i="",hash:o=""}="string"==typeof e?Or(e):e;if(r)if(a=r,Qr.test(a))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),Cr(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${r}`)}n=r.startsWith("/")?Vr(r.substring(1),"/"):Vr(r,t)}else n=t;var a;return{pathname:n,search:ei(i),hash:ti(o)}}function Vr(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function Gr(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Yr(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function Xr(e,t,n,r=!1){let i;"string"==typeof e?i=Or(e):(i={...e},Er(!i.pathname||!i.pathname.includes("?"),Gr("?","pathname","search",i)),Er(!i.pathname||!i.pathname.includes("#"),Gr("#","pathname","hash",i)),Er(!i.search||!i.search.includes("#"),Gr("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=Kr(i,o),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var Jr=e=>e.join("/").replace(/\/\/+/g,"/"),Zr=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ei=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",ti=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",ni=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function ri(e){return e.map((e=>e.route.path)).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ii="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function oi(e,t){let n=e;if("string"!=typeof n||!Qr.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(ii)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),o=zr(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:i=!0}catch(_d){Cr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ai=["POST","PUT","PATCH","DELETE"],si=(new Set(ai),["GET",...ai]),li=(new Set(si),Y(null));li.displayName="DataRouter";var ci=Y(null);ci.displayName="DataRouterState";var ui=Y(!1),di=Y({isTransitioning:!1});di.displayName="ViewTransition",Y(new Map).displayName="Fetchers",Y(null).displayName="Await";var fi=Y(null);fi.displayName="Navigation";var pi=Y(null);pi.displayName="Location";var hi=Y({outlet:null,matches:[],isDataRoute:!1});hi.displayName="Route";var mi=Y(null);mi.displayName="RouteError";var gi="REACT_ROUTER_ERROR";function vi(){return null!=Te(pi)}function yi(){return Er(vi(),"useLocation() may be used only in the context of a <Router> component."),Te(pi).location}var wi="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bi(e){Te(fi).static||xe(e)}function _i(){let{isDataRoute:e}=Te(hi);return e?function(){let{router:e}=function(e){let t=Te(li);return Er(t,Ai(e)),t}("useNavigate"),t=Fi("useNavigate"),n=ke(!1);return bi((()=>{n.current=!0})),Ce((async(r,i={})=>{Cr(n.current,wi),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))}),[e,t])}():function(){Er(vi(),"useNavigate() may be used only in the context of a <Router> component.");let e=Te(li),{basename:t,navigator:n}=Te(fi),{matches:r}=Te(hi),{pathname:i}=yi(),o=JSON.stringify(Yr(r)),a=ke(!1);return bi((()=>{a.current=!0})),Ce(((r,s={})=>{if(Cr(a.current,wi),!a.current)return;if("number"==typeof r)return void n.go(r);let l=Xr(r,JSON.parse(o),i,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Jr([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)}),[t,n,o,i,e])}()}var xi=Y(null);function ki(e){let t=Te(hi).outlet;return Ee((()=>t&&C(xi.Provider,{value:e},t)),[t,e])}function Si(e,{relative:t}={}){let{matches:n}=Te(hi),{pathname:r}=yi(),i=JSON.stringify(Yr(n));return Ee((()=>Xr(e,JSON.parse(i),r,"path"===t)),[e,i,r,t])}function Ei(e,t,n,r,i){Er(vi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=Te(fi),{matches:a}=Te(hi),s=a[a.length-1],l=s?s.params:{},c=s?s.pathname:"/",u=s?s.pathnameBase:"/",d=s&&s.route;{let e=d&&d.path||"";Mi(c,!d||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let f,p=yi();if(t){let e="string"==typeof t?Or(t):t;Er("/"===u||e.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=p;let h=f.pathname||"/",m=h;if("/"!==u){let e=u.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=Lr(e,{pathname:m});Cr(d||null!=g,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),Cr(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=function(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,o=n?.errors;if(null!=o){let e=i.findIndex((e=>e.route.id&&void 0!==o?.[e.route.id]));Er(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let a=!1,s=-1;if(n)for(let c=0;c<i.length;c++){let e=i[c];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(s=c),e.route.id){let{loaderData:t,errors:r}=n,o=e.route.loader&&!t.hasOwnProperty(e.route.id)&&(!r||void 0===r[e.route.id]);if(e.route.lazy||o){a=!0,i=s>=0?i.slice(0,s+1):[i[0]];break}}}let l=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:ri(n.matches),errorInfo:t})}:void 0;return i.reduceRight(((e,r,c)=>{let u,d=!1,f=null,p=null;n&&(u=o&&r.route.id?o[r.route.id]:void 0,f=r.route.errorElement||Ti,a&&(s<0&&0===c?(Mi("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=r.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,c+1)),m=()=>{let t;return t=u?f:d?p:r.route.Component?C(r.route.Component,null):r.route.element?r.route.element:e,C(Li,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===c)?C(Ri,{location:n.location,revalidation:n.revalidation,component:f,error:u,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:l}):m()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:Jr([u,o.encodeLocation?o.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:Jr([u,o.encodeLocation?o.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),a,n,r,i);return t&&v?C(pi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},v):v}function Ci(){let e=function(){let e=Te(mi),t=Ii("useRouteError"),n=Fi("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=C(P,null,C("p",null,"💿 Hey developer 👋"),C("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C("code",{style:o},"ErrorBoundary")," or"," ",C("code",{style:o},"errorElement")," prop on your route.")),C(P,null,C("h2",null,"Unexpected Application Error!"),C("h3",{style:{fontStyle:"italic"}},t),n?C("pre",{style:i},n):null,a)}var Ti=C(Ci,null),Ri=class extends O{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${gi}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new ni(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?C(hi.Provider,{value:this.props.routeContext},C(mi.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?C(Oi,{error:e},t):t}};Ri.contextType=ui;var Pi=new WeakMap;function Oi({children:e,error:t}){let{basename:n}=Te(fi);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${gi}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=Pi.get(t);if(r)throw r;let i=oi(e.location,n);if(ii&&!Pi.get(t)){if(!i.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace})));throw Pi.set(t,n),n}window.location.href=i.absoluteURL||i.to}return C("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Li({routeContext:e,match:t,children:n}){let r=Te(li);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C(hi.Provider,{value:e},n)}function Ai(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ii(e){let t=Te(ci);return Er(t,Ai(e)),t}function Fi(e){let t=function(e){let t=Te(hi);return Er(t,Ai(e)),t}(e),n=t.matches[t.matches.length-1];return Er(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var Di={};function Mi(e,t,n){t||Di[e]||(Di[e]=!0,Cr(!1,n))}$t((function({routes:e,future:t,state:n,onError:r}){return Ei(e,void 0,n,r,t)}));function Ni({to:e,replace:t,state:n,relative:r}){Er(vi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=Te(fi);Cr(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=Te(hi),{pathname:a}=yi(),s=_i(),l=Xr(e,Yr(o),a,"path"===r),c=JSON.stringify(l);return _e((()=>{s(JSON.parse(c),{replace:t,state:n,relative:r})}),[s,c,r,t,n]),null}function $i(e){return ki(e.context)}function Hi(e){Er(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ji({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1,unstable_useTransitions:a}){Er(!vi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=Ee((()=>({basename:s,navigator:i,static:o,unstable_useTransitions:a,future:{}})),[s,i,o,a]);"string"==typeof n&&(n=Or(n));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:p="default"}=n,h=Ee((()=>{let e=zr(c,s);return null==e?null:{location:{pathname:e,search:u,hash:d,state:f,key:p},navigationType:r}}),[s,c,u,d,f,p,r]);return Cr(null!=h,`<Router basename="${s}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==h?null:C(fi.Provider,{value:l},C(pi.Provider,{children:t,value:h}))}function Wi({children:e,location:t}){return Ei(Ui(e),t)}function Ui(e,t=[]){let n=[];return qt.forEach(e,((e,r)=>{if(!kn(e))return;let i=[...t,r];if(e.type===P)return void n.push.apply(n,Ui(e.props.children,i));Er(e.type===Hi,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Er(!e.props.index||!e.props.children,"An index route cannot have child routes.");let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=Ui(e.props.children,i)),n.push(o)})),n}var qi="get",Bi="application/x-www-form-urlencoded";function zi(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Qi=null;var Ki=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vi(e){return null==e||Ki.has(e)?e:(Cr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Bi}"`),null)}function Gi(e,t){let n,r,i,o,a;if(zi(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?zr(a,t):null,n=e.getAttribute("method")||qi,i=Vi(e.getAttribute("enctype"))||Bi,o=new FormData(e)}else if(function(e){return zi(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return zi(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?zr(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||qi,i=Vi(e.getAttribute("formenctype"))||Vi(a.getAttribute("enctype"))||Bi,o=new FormData(a,e),!function(){if(null===Qi)try{new FormData(document.createElement("form"),0),Qi=!1}catch(_d){Qi=!0}return Qi}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if(zi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=qi,r=null,i=Bi,a=e}var s;return o&&"text/plain"===i&&(a=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Yi(e,t){if(!1===e||null==e)throw new Error(t)}async function Xi(e,t){if(e.id in t)return t[e.id];try{let n=await function(e){function t(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return Promise.resolve().then((n=>{for(const e of n||[])"rejected"===e.status&&t(e.reason);return e().catch(t)}))}((()=>import(e.module)));return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Ji(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function Zi(e,t,n){return function(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,i)=>{if(t&&(null==(o=i)||"string"!=typeof o.page)&&"script"===i.as&&i.href&&r.has(i.href))return e;var o;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e}),[])}((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Xi(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Ji).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}function eo(e,t,n,r,i,o){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter(((e,t)=>a(e,t)||s(e,t))):"data"===o?t.filter(((t,o)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function to(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i})).flat(1),[...new Set(r)];var r}function no(){let e=Te(li);return Yi(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}var ro=Y(void 0);function io(){let e=Te(ro);return Yi(e,"You must render this element inside a <HydratedRouter> element"),e}function oo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ao({page:e,...t}){let{router:n}=no(),r=Ee((()=>Lr(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?C(so,{page:e,matches:r,...t}):null}function so({page:e,matches:t,...n}){let r=yi(),{future:i,manifest:o,routeModules:a}=io(),{basename:s}=no(),{loaderData:l,matches:c}=function(){let e=Te(ci);return Yi(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),u=Ee((()=>eo(e,t,c,o,r,"data")),[e,t,c,o,r]),d=Ee((()=>eo(e,t,c,o,r,"assets")),[e,t,c,o,r]),f=Ee((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,c=!1;if(t.forEach((e=>{let t=o.routes[e.route.id];t&&t.hasLoader&&(!u.some((t=>t.route.id===e.route.id))&&e.route.id in l&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?c=!0:n.add(e.route.id))})),0===n.size)return[];let d=function(e,t,n,r){let i="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:"/"===i.pathname?i.pathname=`_root.${r}`:t&&"/"===zr(i.pathname,t)?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}(e,s,i.unstable_trailingSlashAwareDataRequests,"data");return c&&n.size>0&&d.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[d.pathname+d.search]}),[s,i.unstable_trailingSlashAwareDataRequests,l,r,o,u,t,e,a]),p=Ee((()=>to(d,o)),[d,o]),h=function(e){let{manifest:t,routeModules:n}=io(),[r,i]=we([]);return _e((()=>{let r=!1;return Zi(e,t,n).then((e=>{r||i(e)})),()=>{r=!0}}),[e,t,n]),r}(d);return C(P,null,f.map((e=>C("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),p.map((e=>C("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>C("link",{key:e,nonce:n.nonce,...t}))))}function lo(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}ro.displayName="FrameworkContext";var co="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{co&&(window.__reactRouterVersion="7.12.0")}catch(_d){}function uo({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=ke();null==i.current&&(i.current=Sr({window:r,v5Compat:!0}));let o=i.current,[a,s]=we({action:o.action,location:o.location}),l=Ce((e=>{!1===n?s(e):An((()=>s(e)))}),[n]);return xe((()=>o.listen(l)),[o,l]),C(ji,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:o,unstable_useTransitions:n})}var fo=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,po=Wt((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:o,state:a,target:s,to:l,preventScrollReset:c,viewTransition:u,unstable_defaultShouldRevalidate:d,...f},p){let{basename:h,unstable_useTransitions:m}=Te(fi),g="string"==typeof l&&fo.test(l),v=oi(l,h),y=function(e,{relative:t}={}){Er(vi(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=Te(fi),{hash:i,pathname:o,search:a}=Si(e,{relative:t}),s=o;return"/"!==n&&(s="/"===o?n:Jr([n,o])),r.createHref({pathname:s,search:a,hash:i})}(l=v.to,{relative:r}),[w,b,_]=function(e,t){let n=Te(ro),[r,i]=we(!1),[o,a]=we(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,f=ke(null);_e((()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{a(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),_e((()=>{if(r){let e=setTimeout((()=>{a(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let p=()=>{i(!0)},h=()=>{i(!1),a(!1)};return n?"intent"!==e?[o,f,{}]:[o,f,{onFocus:oo(s,p),onBlur:oo(l,h),onMouseEnter:oo(c,p),onMouseLeave:oo(u,h),onTouchStart:oo(d,p)}]:[!1,f,{}]}(n,f),x=function(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:a,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let c=_i(),u=yi(),d=Si(e,{relative:o});return Ce((f=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(f,t)){f.preventDefault();let t=void 0!==n?n:Pr(u)===Pr(d),p=()=>c(e,{replace:t,state:r,preventScrollReset:i,relative:o,viewTransition:a,unstable_defaultShouldRevalidate:s});l?An((()=>p())):p()}}),[u,c,d,n,r,t,e,i,o,a,s,l])}(l,{replace:o,state:a,target:s,preventScrollReset:c,relative:r,viewTransition:u,unstable_defaultShouldRevalidate:d,unstable_useTransitions:m});let k=C("a",{...f,..._,href:v.absoluteURL||y,onClick:v.isExternal||i?e:function(t){e&&e(t),t.defaultPrevented||x(t)},ref:lo(p,b),target:s,"data-discover":g||"render"!==t?void 0:"true"});return w&&!g?C(P,null,k,C(ao,{page:y})):k}));po.displayName="Link";var ho=Wt((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:i,to:o,viewTransition:a,children:s,...l},c){let u=Si(o,{relative:l.relative}),d=yi(),f=Te(ci),{navigator:p,basename:h}=Te(fi),m=null!=f&&function(e,{relative:t}={}){let n=Te(di);Er(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=vo("useViewTransitionState"),i=Si(e,{relative:t});if(!n.isTransitioning)return!1;let o=zr(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=zr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=qr(i.pathname,a)||null!=qr(i.pathname,o)}(u)&&!0===a,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&h&&(y=zr(y,h)||y);const w="/"!==g&&g.endsWith("/")?g.length-1:g.length;let b,_=v===g||!r&&v.startsWith(g)&&"/"===v.charAt(w),x=null!=y&&(y===g||!r&&y.startsWith(g)&&"/"===y.charAt(g.length)),k={isActive:_,isPending:x,isTransitioning:m},S=_?e:void 0;b="function"==typeof n?n(k):[n,_?"active":null,x?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof i?i(k):i;return C(po,{...l,"aria-current":S,className:b,ref:c,style:E,to:o,viewTransition:a},"function"==typeof s?s(k):s)}));ho.displayName="NavLink";var mo=Wt((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:a=qi,action:s,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f,...p},h)=>{let{unstable_useTransitions:m}=Te(fi),g=function(){let{router:e}=vo("useSubmit"),{basename:t}=Te(fi),n=Fi("useRouteId"),r=e.fetch,i=e.navigate;return Ce((async(e,o={})=>{let{action:a,method:s,encType:l,formData:c,body:u}=Gi(e,t);!1===o.navigate?await r(o.fetcherKey||wo(),n,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync}):await i(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[r,i,t,n])}(),v=function(e,{relative:t}={}){let{basename:n}=Te(fi),r=Te(hi);Er(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Si(e||".",{relative:t})},a=yi();if(null==e){o.search=a.search;let e=new URLSearchParams(o.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();o.search=n?`?${n}`:""}}e&&"."!==e||!i.route.index||(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(o.pathname="/"===o.pathname?n:Jr([n,o.pathname]));return Pr(o)}(s,{relative:c}),y="get"===a.toLowerCase()?"get":"post",w="string"==typeof s&&fo.test(s);return C("form",{ref:h,method:y,action:v,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute("formmethod")||a,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:o,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f});m&&!1!==n?An((()=>p())):p()},...p,"data-discover":w||"render"!==e?void 0:"true"})}));function go(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vo(e){let t=Te(li);return Er(t,go(e)),t}mo.displayName="Form";var yo=0,wo=()=>`__${String(++yo)}__`;function bo(){return bo=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},bo.apply(null,arguments)}var _o=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(_d){}}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}(),xo="-ms-",ko="-moz-",So="-webkit-",Eo="comm",Co="rule",To="decl",Ro="@keyframes",Po=Math.abs,Oo=String.fromCharCode,Lo=Object.assign;function Ao(e){return e.trim()}function Io(e,t,n){return e.replace(t,n)}function Fo(e,t){return e.indexOf(t)}function Do(e,t){return 0|e.charCodeAt(t)}function Mo(e,t,n){return e.slice(t,n)}function No(e){return e.length}function $o(e){return e.length}function Ho(e,t){return t.push(e),e}var jo=1,Wo=1,Uo=0,qo=0,Bo=0,zo="";function Qo(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:jo,column:Wo,length:a,return:""}}function Ko(e,t){return Lo(Qo("",null,null,"",null,null,0),e,{length:-e.length},t)}function Vo(){return Bo=qo>0?Do(zo,--qo):0,Wo--,10===Bo&&(Wo=1,jo--),Bo}function Go(){return Bo=qo<Uo?Do(zo,qo++):0,Wo++,10===Bo&&(Wo=1,jo++),Bo}function Yo(){return Do(zo,qo)}function Xo(){return qo}function Jo(e,t){return Mo(zo,e,t)}function Zo(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 ea(e){return jo=Wo=1,Uo=No(zo=e),qo=0,[]}function ta(e){return zo="",e}function na(e){return Ao(Jo(qo-1,oa(91===e?e+2:40===e?e+1:e)))}function ra(e){for(;(Bo=Yo())&&Bo<33;)Go();return Zo(e)>2||Zo(Bo)>3?"":" "}function ia(e,t){for(;--t&&Go()&&!(Bo<48||Bo>102||Bo>57&&Bo<65||Bo>70&&Bo<97););return Jo(e,Xo()+(t<6&&32==Yo()&&32==Go()))}function oa(e){for(;Go();)switch(Bo){case e:return qo;case 34:case 39:34!==e&&39!==e&&oa(Bo);break;case 40:41===e&&oa(e);break;case 92:Go()}return qo}function aa(e,t){for(;Go()&&e+Bo!==57&&(e+Bo!==84||47!==Yo()););return"/*"+Jo(t,qo-1)+"*"+Oo(47===e?e:Go())}function sa(e){for(;!Zo(Yo());)Go();return Jo(e,qo)}function la(e){return ta(ca("",null,null,null,[""],e=ea(e),0,[0],e))}function ca(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,w="",b=i,_=o,x=r,k=w;g;)switch(h=y,y=Go()){case 40:if(108!=h&&58==Do(k,d-1)){-1!=Fo(k+=Io(na(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=na(y);break;case 9:case 10:case 13:case 32:k+=ra(h);break;case 92:k+=ia(Xo()-1,7);continue;case 47:switch(Yo()){case 42:case 47:Ho(da(aa(Go(),Xo()),t,n),l);break;default:k+="/"}break;case 123*m:s[c++]=No(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=Io(k,/\f/g,"")),p>0&&No(k)-d&&Ho(p>32?fa(k+";",r,n,d-1):fa(Io(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Ho(x=ua(k,t,n,c,u,i,s,w,b=[],_=[],d),o),123===y)if(0===u)ca(k,t,x,x,b,o,d,s,_);else switch(99===f&&110===Do(k,3)?100:f){case 100:case 108:case 109:case 115:ca(e,x,x,r&&Ho(ua(e,x,x,0,0,i,s,w,i,b=[],d),_),i,_,d,s,r?b:_);break;default:ca(k,x,x,x,[""],_,0,s,_)}}c=u=p=0,m=v=1,w=k="",d=a;break;case 58:d=1+No(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Vo())continue;switch(k+=Oo(y),y*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(No(k)-1)*v,v=1;break;case 64:45===Yo()&&(k+=na(Go())),f=Yo(),u=d=No(w=k+=sa(Xo())),y++;break;case 45:45===h&&2==No(k)&&(m=0)}}return o}function ua(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],p=$o(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Mo(e,d+1,d=Po(m=a[h])),w=e;v<p;++v)(w=Ao(m>0?f[v]+" "+y:Io(y,/&\f/g,f[v])))&&(l[g++]=w);return Qo(e,t,n,0===i?Co:s,l,c,u)}function da(e,t,n){return Qo(e,t,n,Eo,Oo(Bo),Mo(e,2,-2),0)}function fa(e,t,n,r){return Qo(e,t,n,To,Mo(e,0,r),Mo(e,r+1,-1),r)}function pa(e,t){for(var n="",r=$o(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ha(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case To:return e.return=e.return||e.value;case Eo:return"";case Ro:return e.return=e.value+"{"+pa(e.children,r)+"}";case Co:e.value=e.props.join(",")}return No(n=pa(e.children,r))?e.return=e.value+"{"+n+"}":""}function ma(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ga=function(e,t,n){for(var r=0,i=0;r=i,i=Yo(),38===r&&12===i&&(t[n]=1),!Zo(i);)Go();return Jo(e,qo)},va=function(e,t){return ta(function(e,t){var n=-1,r=44;do{switch(Zo(r)){case 0:38===r&&12===Yo()&&(t[n]=1),e[n]+=ga(qo-1,t,n);break;case 2:e[n]+=na(r);break;case 4:if(44===r){e[++n]=58===Yo()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Oo(r)}}while(r=Go());return e}(ea(e),t))},ya=new WeakMap,wa=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)||ya.get(n))&&!r){ya.set(e,!0);for(var i=[],o=va(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]}}},ba=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function _a(e,t){switch(function(e,t){return 45^Do(e,0)?(((t<<2^Do(e,0))<<2^Do(e,1))<<2^Do(e,2))<<2^Do(e,3):0}(e,t)){case 5103:return So+"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 So+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return So+e+ko+e+xo+e+e;case 6828:case 4268:return So+e+xo+e+e;case 6165:return So+e+xo+"flex-"+e+e;case 5187:return So+e+Io(e,/(\w+).+(:[^]+)/,So+"box-$1$2"+xo+"flex-$1$2")+e;case 5443:return So+e+xo+"flex-item-"+Io(e,/flex-|-self/,"")+e;case 4675:return So+e+xo+"flex-line-pack"+Io(e,/align-content|flex-|-self/,"")+e;case 5548:return So+e+xo+Io(e,"shrink","negative")+e;case 5292:return So+e+xo+Io(e,"basis","preferred-size")+e;case 6060:return So+"box-"+Io(e,"-grow","")+So+e+xo+Io(e,"grow","positive")+e;case 4554:return So+Io(e,/([^-])(transform)/g,"$1"+So+"$2")+e;case 6187:return Io(Io(Io(e,/(zoom-|grab)/,So+"$1"),/(image-set)/,So+"$1"),e,"")+e;case 5495:case 3959:return Io(e,/(image-set\([^]*)/,So+"$1$`$1");case 4968:return Io(Io(e,/(.+:)(flex-)?(.*)/,So+"box-pack:$3"+xo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+So+e+e;case 4095:case 3583:case 4068:case 2532:return Io(e,/(.+)-inline(.+)/,So+"$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(No(e)-1-t>6)switch(Do(e,t+1)){case 109:if(45!==Do(e,t+4))break;case 102:return Io(e,/(.+:)(.+)-([^]+)/,"$1"+So+"$2-$3$1"+ko+(108==Do(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Fo(e,"stretch")?_a(Io(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Do(e,t+1))break;case 6444:switch(Do(e,No(e)-3-(~Fo(e,"!important")&&10))){case 107:return Io(e,":",":"+So)+e;case 101:return Io(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+So+(45===Do(e,14)?"inline-":"")+"box$3$1"+So+"$2$3$1"+xo+"$2box$3")+e}break;case 5936:switch(Do(e,t+11)){case 114:return So+e+xo+Io(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return So+e+xo+Io(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return So+e+xo+Io(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return So+e+xo+e+e}return e}var xa=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case To:e.return=_a(e.value,e.length);break;case Ro:return pa([Ko(e,{value:Io(e.value,"@","@"+So)})],r);case Co: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 pa([Ko(e,{props:[Io(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return pa([Ko(e,{props:[Io(t,/:(plac\w+)/,":"+So+"input-$1")]}),Ko(e,{props:[Io(t,/:(plac\w+)/,":-moz-$1")]}),Ko(e,{props:[Io(t,/:(plac\w+)/,xo+"input-$1")]})],r)}return""}))}}],ka=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||xa,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=[ha,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=$o(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([wa,ba].concat(o,u));i=function(e,t,n,r){l=n,pa(la(e?e+"{"+t.styles+"}":t.styles),d),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new _o({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 f.sheet.hydrate(s),f},Sa=v((e=>{var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case u:case i:case a:case o:case f:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case h:case s:return e;default:return t}}case r:return t}}}function _(e){return b(e)===u}e.AsyncMode=c,e.ConcurrentMode=u,e.ContextConsumer=l,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=m,e.Memo=h,e.Portal=r,e.Profiler=a,e.StrictMode=o,e.Suspense=f,e.isAsyncMode=function(e){return _(e)||b(e)===c},e.isConcurrentMode=_,e.isContextConsumer=function(e){return b(e)===l},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===m},e.isMemo=function(e){return b(e)===h},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===a},e.isStrictMode=function(e){return b(e)===o},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===a||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===g)},e.typeOf=b})),Ea=v(((e,t)=>{t.exports=Sa()})),Ca=v(((e,t)=>{var n=Ea(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function s(e){return n.isMemo(e)?o:a[e.$$typeof]||r}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var l=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=f(n);o&&o!==p&&e(t,o,r)}var a=c(n);u&&(a=a.concat(u(n)));for(var h=s(t),m=s(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||h&&h[v])){var y=d(n,v);try{l(t,v,y)}catch(_d){}}}}return t}}));function Ta(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Ra=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Pa=function(e,t,n){Ra(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)}};function Oa(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)}var La={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},Aa=/[A-Z]|^ms/g,Ia=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fa=function(e){return 45===e.charCodeAt(1)},Da=function(e){return null!=e&&"boolean"!=typeof e},Ma=ma((function(e){return Fa(e)?e:e.replace(Aa,"-$&").toLowerCase()})),Na=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ia,(function(e,t,n){return Ha={name:t,styles:n,next:Ha},t}))}return 1===La[e]||Fa(e)||"number"!=typeof t||0===t?t:t+"px"};function $a(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 Ha={name:i.name,styles:i.styles,next:Ha},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)Ha={name:a.name,styles:a.styles,next:Ha},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+=$a(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]+"}":Da(s)&&(r+=Ma(o)+":"+Na(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=$a(e,t,a);switch(o){case"animation":case"animationName":r+=Ma(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Da(a[c])&&(r+=Ma(o)+":"+Na(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Ha,l=n(e);return Ha=s,$a(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Ha,ja=/label:\s*([^\s;{]+)\s*(;|$)/g;function Wa(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="";Ha=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=$a(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=$a(n,t,e[a]),r&&(i+=o[a]);ja.lastIndex=0;for(var s,l="";null!==(s=ja.exec(i));)l+="-"+s[1];return{name:Oa(i)+l,styles:i,next:Ha}}var Ua,qa,Ba=Dn||!1,za=Ba||function(e){return e()},Qa=Ba||xe,Ka=Y("undefined"!=typeof HTMLElement?ka({key:"css"}):null),Va=Ka.Provider,Ga=function(e){return Wt((function(t,n){return e(t,Te(Ka),n)}))},Ya=Y({}),Xa={}.hasOwnProperty,Ja="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Za=function(e,t){var n={};for(var r in t)Xa.call(t,r)&&(n[r]=t[r]);return n[Ja]=e,n},es=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ra(t,n,r),za((function(){return Pa(t,n,r)})),null},ts=Ga((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Ja],o=[r],a="";"string"==typeof e.className?a=Ta(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=Wa(o,void 0,Te(Ya));a+=t.key+"-"+s.name;var l={};for(var c in e)Xa.call(e,c)&&"css"!==c&&c!==Ja&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),C(P,null,C(es,{cache:t,serialized:s,isStringTag:"string"==typeof i}),C(i,l))})),ns=(Ca(),function(e,t){var n=arguments;if(null==t||!Xa.call(t,"css"))return C.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=ts,i[1]=Za(e,t);for(var o=2;o<r;o++)i[o]=n[o];return C.apply(null,i)});Ua=ns||(ns={}),qa||(qa=Ua.JSX||(Ua.JSX={}));var rs=Ga((function(e,t){var n=Wa([e.styles],void 0,Te(Ya)),r=ke();return Qa((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]),Qa((function(){var e=r.current,i=e[0];e[1]?e[1]=!1:(void 0!==n.next&&Pa(t,n.next,!0),i.tags.length&&(i.before=i.tags[i.tags.length-1].nextElementSibling,i.flush()),t.insert("",n,i,!1))}),[t,n.name]),null}));function is(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Wa(t)}var os=/^((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)-.*))$/,as=ma((function(e){return os.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),ss=function(e){return"theme"!==e},ls=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?as:ss},cs=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},us=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ra(t,n,r),za((function(){return Pa(t,n,r)})),null},ds=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=cs(t,n,o),l=s||ls(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{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var m=Ga((function(e,t,n){var r=c&&e.as||a,o="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=Te(Ya)}"string"==typeof e.className?o=Ta(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var h=Wa(d.concat(u),t.registered,f);o+=t.key+"-"+h.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?ls(r):l,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=o,n&&(g.ref=n),C(P,null,C(us,{cache:t,serialized:h,isStringTag:"string"==typeof r}),C(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,r){return e(t,bo({},n,r,{shouldForwardProp:cs(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["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){ds[e]=ds(e)}));var fs=ds.span({whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"},(({isActive:e})=>e?{cursor:"default","--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))"}:{cursor:"pointer",borderColor:"transparent","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))",":hover":{"--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}})),ps=ds.span({marginLeft:"0.25rem",display:"inline-flex",width:"1.25rem",alignItems:"center",justifyContent:"center",borderRadius:"9999px",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))"},(({isActive:e})=>e?{"--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))"}:{"--tw-bg-opacity":"1",backgroundColor:"rgb(107 114 128 / var(--tw-bg-opacity))",".group:hover &":{"--tw-bg-opacity":"1",backgroundColor:"rgb(55 65 81 / var(--tw-bg-opacity))"}})),hs=P,ms=function(e,t,n){return Xa.call(t,"css")?Wn(ts,Za(e,t),n):Wn(e,t,n)},gs=function(e,t,n){return Xa.call(t,"css")?Wn(ts,Za(e,t),n):Wn(e,t,n)},vs=({tabs:e})=>ms("div",{css:{display:"block"},children:ms("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))",paddingBottom:"1rem"},children:ms("nav",{"aria-label":"Tabs",css:{marginBottom:"-2px",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)))"},paddingTop:"1rem"},children:e.map((e=>ms(ho,{to:e.id,children:({isActive:t})=>gs(fs,{className:"group",isActive:t,children:[e.displayName,void 0!==e.count&&ms(ps,{isActive:t,children:e.count})]})},e.id)))})})}),ys=e=>{const{linkedProfilesForAccount:t,checkProfileSearchAuthorization:n,linkedAccount:r}=xr(),i=Xn({queryKey:[ar],queryFn:r}),o=Xn({queryKey:[sr],queryFn:t}),a=Xn({queryKey:[cr],queryFn:n});_e((()=>{a.error&&e.onError(a.error.message),o.error&&e.onError(o.error.message)}),[a.error,o.error,e]);const s=Ee((()=>[{id:"search",displayName:"Search"},{id:"profiles",displayName:"Linked Profiles",count:o.data?.length},{id:"invoices",displayName:"Invoices"}]),[o.data]);return a.isSuccess&&"Linked"!==a.data.status?ms(Ni,{to:"unlinked",replace:!0}):a.isSuccess?gs("div",{children:[gs("dl",{css:{marginLeft:"0.25rem",paddingTop:"1rem"},children:[gs("div",{css:{display:"flex",gap:"0.5rem"},children:[ms("dt",{css:{width:"5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Account"}),ms("dd",{css:{marginLeft:"-1px",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:i.data?.id})]}),gs("div",{css:{display:"flex",gap:"0.5rem"},children:[ms("dt",{css:{width:"5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Client"}),ms("dd",{css:{marginLeft:"-1px",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:i.data?.catchEClientId})]})]}),ms(vs,{tabs:s}),ms("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:ms($i,{})})]}):ms("div",{children:"Loading..."})},ws=e=>ms(xf,{children:ms("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})}),bs=e=>ms(_f,{children:ms("ul",{css:{listStyleType:"none"},children:e.value.split(",").map((t=>ms("li",{children:e.navTo?ms(ho,{css:{"--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))",textDecorationLine:"underline"},to:e.navTo,children:t}):t},t)))})}),_s="undefined"!=typeof document?Hn.useLayoutEffect:()=>{};var xs=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},ks=e=>e&&"window"in e&&e.window===e?e:xs(e).defaultView||window;function Ss(e){var t;return"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))}function Es(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Cs(e){let t=null;return()=>(null==t&&(t=e()),t)}var Ts=Cs((function(){return Es(/^Mac/i)})),Rs=Cs((function(){return Es(/^iPhone/i)})),Ps=Cs((function(){return Es(/^iPad/i)||Ts()&&navigator.maxTouchPoints>1})),Os=Cs((function(){return Rs()||Ps()})),Ls=(Cs((function(){return Ts()||Os()})),Cs((function(){return Ss(/AppleWebKit/i)&&!Ls()})),Cs((function(){return Ss(/Chrome/i)}))),As=Cs((function(){return Ss(/Android/i)}));Cs((function(){return Ss(/Firefox/i)}));var Is=class{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 Fs(e){let t=ke({isFocused:!1,observer:null});_s((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=ke(null);return _s((()=>{t.current=e}),[e]),Ce(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return Ce((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 Is("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])}var Ds=null,Ms=new Set,Ns=new Map,$s=!1,Hs=!1,js={Tab:!0,Escape:!0};function Ws(e,t){for(let n of Ms)n(e,t)}function Us(e){$s=!0,function(e){return!(e.metaKey||!Ts()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Ds="keyboard",Ws("keyboard",e))}function qs(e){Ds="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||($s=!0,Ws("pointer",e))}function Bs(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(As()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&($s=!0,Ds="virtual")}function zs(e){e.target!==window&&e.target!==document&&($s||Hs||(Ds="virtual",Ws("virtual",e)),$s=!1,Hs=!1)}function Qs(){$s=!1,Hs=!0}function Ks(e){if("undefined"==typeof window||Ns.get(ks(e)))return;const t=ks(e),n=xs(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){$s=!0,r.apply(this,arguments)},n.addEventListener("keydown",Us,!0),n.addEventListener("keyup",Us,!0),n.addEventListener("click",Bs,!0),t.addEventListener("focus",zs,!0),t.addEventListener("blur",Qs,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",qs,!0),n.addEventListener("pointermove",qs,!0),n.addEventListener("pointerup",qs,!0)):(n.addEventListener("mousedown",qs,!0),n.addEventListener("mousemove",qs,!0),n.addEventListener("mouseup",qs,!0)),t.addEventListener("beforeunload",(()=>{Vs(e)}),{once:!0}),Ns.set(t,{focus:r})}var Vs=(e,t)=>{const n=ks(e),r=xs(e);t&&r.removeEventListener("DOMContentLoaded",t),Ns.has(n)&&(n.HTMLElement.prototype.focus=Ns.get(n).focus,r.removeEventListener("keydown",Us,!0),r.removeEventListener("keyup",Us,!0),r.removeEventListener("click",Bs,!0),n.removeEventListener("focus",zs,!0),n.removeEventListener("blur",Qs,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",qs,!0),r.removeEventListener("pointermove",qs,!0),r.removeEventListener("pointerup",qs,!0)):(r.removeEventListener("mousedown",qs,!0),r.removeEventListener("mousemove",qs,!0),r.removeEventListener("mouseup",qs,!0)),Ns.delete(n))};function Gs(){return"pointer"!==Ds}"undefined"!=typeof document&&function(e){const t=xs(e);let n;"loading"!==t.readyState?Ks(e):(n=()=>{Ks(e)},t.addEventListener("DOMContentLoaded",n))}();var Ys=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Xs(e,t,n){Ks(),_e((()=>{let t=(t,r)=>{(function(e,t,n){var r;const i="undefined"!=typeof window?ks(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?ks(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?ks(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?ks(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!Ys.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&&!js[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(Gs())};return Ms.add(t),()=>{Ms.delete(t)}}),t)}var Js=!1,Zs=0;function el(){Js=!0,setTimeout((()=>{Js=!1}),50)}function tl(e){"touch"===e.pointerType&&el()}function nl(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",tl):document.addEventListener("touchend",el),Zs++,()=>{--Zs>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",tl):document.removeEventListener("touchend",el))}}function rl(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=ke({isFocused:!1,isFocusVisible:t||Gs()}),[o,a]=we(!1),[s,l]=we((()=>i.current.isFocused&&i.current.isFocusVisible)),c=Ce((()=>l(i.current.isFocused&&i.current.isFocusVisible)),[]),u=Ce((e=>{i.current.isFocused=e,a(e),c()}),[c]);Xs((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=Ce((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),a=Fs(o),s=Ce((e=>{const t=xs(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:f}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=ke({isFocusWithin:!1}),a=Ce((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,o]),s=Fs(a),l=Ce((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?f:d}}var il=Object.defineProperty,ol=(e,t,n)=>(((e,t,n)=>{t in e?il(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),al=new class{constructor(){ol(this,"current",this.detect()),ol(this,"handoffState","pending"),ol(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 sl(e){return al.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function ll(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function cl(){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 ll((()=>{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=cl();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 ul(){let[e]=we(cl);return _e((()=>()=>e.dispose()),[e]),e}var dl=(e,t)=>{al.isServer?_e(e,t):xe(e,t)};function fl(e){let t=ke(e);return dl((()=>{t.current=e}),[e]),t}var pl=function(e){let t=fl(e);return Hn.useCallback(((...e)=>t.current(...e)),[t])};var hl=Y(void 0);function ml(){return Te(hl)}function gl(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function vl(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,vl),r}var yl=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(yl||{}),wl=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(wl||{});function bl(){let e=function(){let e=ke([]),t=Ce((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 Ce((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:xl;let l=kl(t,e);if(o)return _l(l,n,r,a,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=l;if(e)return _l(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return vl(e?0:1,{0:()=>null,1:()=>_l({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return _l(l,n,r,a,s)}({mergeRefs:e,...t})),[e])}function _l(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=Tl(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===P&&(Object.keys(Cl(l)).length>0||Object.keys(Cl(d)).length>0)){if(kn(u)&&!(Array.isArray(u)&&u.length>1)){let e=u.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>gl(t(...e),l.className):gl(t,l.className),r=n?{className:n}:{},o=kl(u.props,Cl(Tl(l,["ref"])));for(let i in d)i in o&&delete d[i];return Cn(u,Object.assign({},o,d,c,{ref:i(Rl(u),c.ref)},r))}if(Object.keys(Cl(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(Cl(l)).concat(Object.keys(Cl(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 C(o,Object.assign({},Tl(l,["ref"]),o!==P&&c,o!==P&&d),u)}function xl(...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 kl(...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]?(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 Sl(...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]?(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)n?.(...e)}});return t}function El(e){var t;return Object.assign(Wt(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Cl(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Tl(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Rl(e){return Hn.version.split(".")[0]>="19"?e.props.ref:e.ref}var Pl=Y(void 0);function Ol(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}var Ll=Symbol();function Al(...e){let t=ke(e);_e((()=>{t.current=e}),[e]);let n=pl((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[Ll])))?void 0:n}var Il=Y(null);function Fl(){let e=Te(Il);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,Fl),e}return e}Il.displayName="DescriptionContext";var Dl=El((function(e,t){let n=Oe(),r=ml(),{id:i=`headlessui-description-${n}`,...o}=e,a=Fl(),s=Al(t);dl((()=>a.register(i)),[i,a.register]);let l=r||!1,c=Ee((()=>({...a.slot,disabled:l})),[a.slot,l]),u={ref:s,...a.props,id:i};return bl()({ourProps:u,theirProps:o,slot:c,defaultTag:"p",name:a.name||"Description"})})),Ml=(Object.assign(Dl,{}),(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ml||{})),Nl=Y(null);function $l(){let e=Te(Nl);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,$l),e}return e}function Hl({inherit:e=!1}={}){let t=function(e){var t,n,r;let i=null!=(n=null==(t=Te(Nl))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[i,...e].filter(Boolean).join(" "):i}(),[n,r]=we([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,Ee((()=>function(e){let t=pl((e=>(r((t=>[...t,e])),()=>r((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=Ee((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return Hn.createElement(Nl.Provider,{value:n},e.children)}),[r])]}Nl.displayName="LabelContext";var jl=El((function(e,t){var n;let r=Oe(),i=$l(),o=Te(Pl),a=ml(),{id:s=`headlessui-label-${r}`,htmlFor:l=(null!=o?o:null==(n=i.props)?void 0:n.htmlFor),passive:c=!1,...u}=e,d=Al(t);dl((()=>i.register(s)),[s,i.register]);let f=pl((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})}}})),p=a||!1,h=Ee((()=>({...i.slot,disabled:p})),[i.slot,p]),m={ref:d,...i.props,id:s,htmlFor:l,onClick:f};return c&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in u&&delete u.onClick),bl()({ourProps:m,theirProps:u,slot:h,defaultTag:l?"label":"div",name:i.name||"Label"})}));Object.assign(jl,{});function Wl(e,t=!1){let[n,r]=be((()=>({})),{}),i=Ee((()=>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 dl((()=>{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}var Ul=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 ql(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 Bl(e){return Nn(e.subscribe,e.getSnapshot,e.getSnapshot)}var zl=new Ul((()=>ql((()=>[]),{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 Ql(e,t){let n=zl.get(t),r=Oe(),i=Bl(n);if(dl((()=>{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}var Kl=new Map,Vl=new Map;function Gl(e){var t;let n=null!=(t=Vl.get(e))?t:0;return Vl.set(e,n+1),0!==n||(Kl.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>Yl(e)}function Yl(e){var t;let n=null!=(t=Vl.get(e))?t:1;if(1===n?Vl.delete(e):Vl.set(e,n-1),1!==n)return;let r=Kl.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Kl.delete(e))}var Xl=["[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(","),Jl=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),Zl=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(Zl||{}),ec=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ec||{}),tc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(tc||{});function nc(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Xl)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var rc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(rc||{});function ic(e,t=0){var n;return e!==(null==(n=sl(e))?void 0:n.body)&&vl(t,{0:()=>e.matches(Xl),1(){let t=e;for(;null!==t;){if(t.matches(Xl))return!0;t=t.parentElement}return!1}})}function oc(e){let t=sl(e);cl().nextFrame((()=>{t&&!ic(t.activeElement,0)&&function(e){e?.focus({preventScroll:!0})}(e)}))}var ac=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ac||{});"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));var sc=["textarea","input"].join(",");function lc(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 cc(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?lc(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Jl)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):nc(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,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}s=a[e],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,sc))&&n}(s)&&s.select(),2}(nc(),t,{relativeTo:e})}function uc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function dc(){return uc()||/Android/gi.test(window.navigator.userAgent)}function fc(e,t,n,r){let i=fl(n);_e((()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}function pc(e,t,n){let r=Ql(e,"outside-click"),i=fl(n),o=Ce((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!ic(r,rc.Loose)&&-1!==r.tabIndex&&e.preventDefault(),i.current(e,r)}),[i,t]),a=ke(null);fc(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),fc(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),fc(r,"click",(e=>{dc()||a.current&&(o(e,(()=>a.current)),a.current=null)}),!0);let s=ke({x:0,y:0});fc(r,"touchstart",(e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY}),!0),fc(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=fl(n);_e((()=>{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 hc(...e){return Ee((()=>sl(...e)),[...e])}function mc(e,t){return Ee((()=>{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 gc(){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 vc(e){let t={};for(let n of e)Object.assign(t,n(t));return t}var yc,wc,bc=ql((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:cl(),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:vc(n)},i=[uc()?{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=cl();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;i!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}:{},gc(),{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 _c(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=Bl(bc),i=t?r.get(t):void 0,o=!!i&&i.count>0;dl((()=>{if(t&&e)return bc.dispatch("PUSH",t,n),()=>bc.dispatch("POP",t,n)}),[e,t])}(Ql(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}function xc(e){return[e.screenX,e.screenY]}function kc(){let e=ke([-1,-1]);return{wasMoved(t){let n=xc(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=xc(t)}}}bc.subscribe((()=>{let e=bc.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)&&bc.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&bc.dispatch("TEARDOWN",n)}})),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(yc=null==process?void 0:{})?void 0:yc.NODE_ENV)&&void 0===(null==(wc=null==Element?void 0:Element.prototype)?void 0:wc.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 Sc=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Sc||{});function Ec(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function Cc(e,t,n,r){let[i,o]=we(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=we(e);return{flags:t,setFlag:Ce((e=>n(e)),[t]),addFlag:Ce((e=>n((t=>t|e))),[t]),hasFlag:Ce((e=>(t&e)===e),[t]),removeFlag:Ce((e=>n((t=>t&~e))),[n]),toggleFlag:Ce((e=>n((t=>t^e))),[n])}}(e&&i?3:0),c=ke(!1),u=ke(!1);return dl((()=>{var i;if(e)return n&&o(!0),t?(null==(i=null==r?void 0:r.start)||i.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=cl();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=cl();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(){var e;u.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(c.current=!1,l(7),n||o(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):void(n&&s(3))}),[e,n,t,ul()]),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 Tc(){return"undefined"!=typeof window}function Rc(e){return Lc(e)?(e.nodeName||"").toLowerCase():"#document"}function Pc(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Oc(e){var t;return null==(t=(Lc(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Lc(e){return!!Tc()&&(e instanceof Node||e instanceof Pc(e).Node)}function Ac(e){return!!Tc()&&(e instanceof Element||e instanceof Pc(e).Element)}function Ic(e){return!!Tc()&&(e instanceof HTMLElement||e instanceof Pc(e).HTMLElement)}function Fc(e){return!(!Tc()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Pc(e).ShadowRoot)}function Dc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Wc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Mc(e){return["table","td","th"].includes(Rc(e))}function Nc(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(_d){return!1}}))}function $c(e){const t=Hc(),n=Ac(e)?Wc(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 Hc(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function jc(e){return["html","body","#document"].includes(Rc(e))}function Wc(e){return Pc(e).getComputedStyle(e)}function Uc(e){return Ac(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qc(e){if("html"===Rc(e))return e;const t=e.assignedSlot||e.parentNode||Fc(e)&&e.host||Oc(e);return Fc(t)?t.host:t}function Bc(e){const t=qc(e);return jc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ic(t)&&Dc(t)?t:Bc(t)}function zc(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Bc(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Pc(i);if(o){const e=Qc(a);return t.concat(a,a.visualViewport||[],Dc(i)?i:[],e&&n?zc(e):[])}return t.concat(i,zc(i,[],n))}function Qc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Kc=Math.min,Vc=Math.max,Gc=Math.round,Yc=Math.floor,Xc=e=>({x:e,y:e}),Jc={left:"right",right:"left",bottom:"top",top:"bottom"},Zc={start:"end",end:"start"};function eu(e,t,n){return Vc(e,Kc(t,n))}function tu(e,t){return"function"==typeof e?e(t):e}function nu(e){return e.split("-")[0]}function ru(e){return e.split("-")[1]}function iu(e){return"x"===e?"y":"x"}function ou(e){return"y"===e?"height":"width"}function au(e){return["top","bottom"].includes(nu(e))?"y":"x"}function su(e){return iu(au(e))}function lu(e){return e.replace(/start|end/g,(e=>Zc[e]))}function cu(e){return e.replace(/left|right|bottom|top/g,(e=>Jc[e]))}function uu(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 du(e,t,n){let{reference:r,floating:i}=e;const o=au(t),a=su(t),s=ou(a),l=nu(t),c="y"===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-i.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ru(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function fu(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:f=!1,padding:p=0}=tu(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}}(p),m=s[f?"floating"===d?"reference":"floating":d],g=uu(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),w=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},b=uu(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-b.top+h.top)/w.y,bottom:(b.bottom-g.bottom+h.bottom)/w.y,left:(g.left-b.left+h.left)/w.x,right:(b.right-g.right+h.right)/w.x}}function pu(e){const t=Wc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ic(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Gc(n)!==o||Gc(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function hu(e){return Ac(e)?e:e.contextElement}function mu(e){const t=hu(e);if(!Ic(t))return Xc(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=pu(t);let a=(o?Gc(n.width):n.width)/r,s=(o?Gc(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}var gu=Xc(0);function vu(e){const t=Pc(e);return Hc()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:gu}function yu(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=hu(e);let a=Xc(1);t&&(r?Ac(r)&&(a=mu(r)):a=mu(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Pc(e))&&t}(o,n,r)?vu(o):Xc(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=Pc(o),t=r&&Ac(r)?Pc(r):r;let n=e,i=Qc(n);for(;i&&r&&t!==n;){const e=mu(i),t=i.getBoundingClientRect(),r=Wc(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=Pc(i),i=Qc(n)}}return uu({width:u,height:d,x:l,y:c})}function wu(e,t){const n=Uc(e).scrollLeft;return t?t.left+n:yu(Oc(e)).left+n}function bu(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:wu(e,r)),y:r.top+t.scrollTop}}function _u(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Pc(e),r=Oc(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=Hc();(!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=Oc(e),n=Uc(e),r=e.ownerDocument.body,i=Vc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Vc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+wu(e);const s=-n.scrollTop;return"rtl"===Wc(r).direction&&(a+=Vc(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(Oc(e));else if(Ac(t))r=function(e,t){const n=yu(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ic(e)?mu(e):Xc(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=vu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return uu(r)}function xu(e,t){const n=qc(e);return!(n===t||!Ac(n)||jc(n))&&("fixed"===Wc(n).position||xu(n,t))}function ku(e,t){const n=t.get(e);if(n)return n;let r=zc(e,[],!1).filter((e=>Ac(e)&&"body"!==Rc(e))),i=null;const o="fixed"===Wc(e).position;let a=o?qc(e):e;for(;Ac(a)&&!jc(a);){const t=Wc(a),n=$c(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||Dc(a)&&!n&&xu(e,a))?r=r.filter((e=>e!==a)):i=t,a=qc(a)}return t.set(e,r),r}function Su(e,t,n){const r=Ic(t),i=Oc(t),o="fixed"===n,a=yu(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Xc(0);if(r||!r&&!o)if(("body"!==Rc(t)||Dc(i))&&(s=Uc(t)),r){const e=yu(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=wu(i));const c=!i||r||o?Xc(0):bu(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 Eu(e){return"static"===Wc(e).position}function Cu(e,t){if(!Ic(e)||"fixed"===Wc(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Oc(e)===n&&(n=n.ownerDocument.body),n}function Tu(e,t){const n=Pc(e);if(Nc(e))return n;if(!Ic(e)){let t=qc(e);for(;t&&!jc(t);){if(Ac(t)&&!Eu(t))return t;t=qc(t)}return n}let r=Cu(e,t);for(;r&&Mc(r)&&Eu(r);)r=Cu(r,t);return r&&jc(r)&&Eu(r)&&!$c(r)?n:r||function(e){let t=qc(e);for(;Ic(t)&&!jc(t);){if($c(t))return t;if(Nc(t))return null;t=qc(t)}return null}(e)||n}var Ru={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=Oc(r),s=!!t&&Nc(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Xc(1);const u=Xc(0),d=Ic(r);if((d||!d&&!o)&&(("body"!==Rc(r)||Dc(a))&&(l=Uc(r)),Ic(r))){const e=yu(r);c=mu(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||o?Xc(0):bu(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+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Oc,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?Nc(t)?[]:ku(t,this._c):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=_u(t,n,i);return e.top=Vc(r.top,e.top),e.right=Kc(r.right,e.right),e.bottom=Kc(r.bottom,e.bottom),e.left=Vc(r.left,e.left),e}),_u(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Tu,getElementRects:async function(e){const t=this.getOffsetParent||Tu,n=this.getDimensions,r=await n(e.floating);return{reference:Su(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}=pu(e);return{width:t,height:n}},getScale:mu,isElement:Ac,isRTL:function(e){return"rtl"===Wc(e).direction}};function Pu(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=hu(e),u=i||o?[...c?zc(c):[],...zc(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=Oc(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:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Yc(u)+"px "+-Yc(i.clientWidth-(c+d))+"px "+-Yc(i.clientHeight-(u+f))+"px "+-Yc(c)+"px",threshold:Vc(0,Kc(1,l))||1};let h=!0;function m(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(m,{...p,root:i.ownerDocument})}catch(_d){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),o}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?yu(e):null;return l&&function t(){const r=yu(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),d?.(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}var Ou=fu,Lu=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=nu(n),s=ru(n),l="y"===au(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,d=tu(t,e);let{mainAxis:f,crossAxis:p,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&&(p="end"===s?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*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}}}}},Au=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}=tu(e,t),c={x:n,y:r},u=await fu(t,l),d=au(nu(i)),f=iu(d);let p=c[f],h=c[d];if(o){const e="y"===f?"bottom":"right";p=eu(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";h=eu(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:o,[d]:a}}}}}},Iu=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:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=tu(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=nu(i),y=au(s),w=nu(s)===s,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),_=f||(w||!m?[cu(s)]:function(e){const t=cu(e);return[lu(e),t,lu(t)]}(s)),x="none"!==h;!f&&x&&_.push(...function(e,t,n,r){const i=ru(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[]}}(nu(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(lu)))),o}(s,m,h,b));const k=[s,..._],S=await fu(t,g),E=[];let C=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ru(e),i=su(e),o=ou(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=cu(a)),[a,cu(a)]}(i,a,b);E.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:i,overflows:E}],!E.every((e=>e<=0))){var T,R;const e=((null==(T=o.flip)?void 0:T.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(R=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:R.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=C.filter((e=>{if(x){const t=au(e.placement);return t===y||"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:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},Fu=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}=tu(e,t),u=await fu(t,c),d=nu(i),f=ru(i),p="y"===au(i),{width:h,height:m}=o.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=m-u.top-u.bottom,w=h-u.left-u.right,b=Kc(m-u[g],y),_=Kc(h-u[v],w),x=!t.middlewareData.shift;let k=b,S=_;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=y),x&&!f){const e=Vc(u.left,0),t=Vc(u.right,0),n=Vc(u.top,0),r=Vc(u.bottom,0);p?S=h-2*(0!==e||0!==t?e+t:Vc(u.left,u.right)):k=m-2*(0!==n||0!==r?n+r:Vc(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:k});const E=await a.getDimensions(s.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}},Du=(e,t,n)=>{const r=new Map,i={platform:Ru,...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}=du(c,r,l),f=r,p={},h=0;for(let m=0;m<s.length;m++){const{name:n,fn:o}=s[m],{x:g,y:v,data:y,reset:w}=await o({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[n]:{...p[n],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:u,y:d}=du(c,f,l))),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}})(e,t,{...i,platform:o})},Mu="undefined"!=typeof document?xe:_e;function Nu(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(!Nu(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)&&!Nu(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function $u(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hu(e,t){const n=$u(e);return Math.round(t*n)/n}function ju(e){const t=ke(e);return Mu((()=>{t.current=e})),t}var Wu=(e,t)=>({...Lu(e),options:[e,t]}),Uu=(e,t)=>({...Iu(e),options:[e,t]}),qu=(e,t)=>({...Fu(e),options:[e,t]}),Bu={...Dt},zu=Bu.useInsertionEffect||(e=>e());function Qu(e){const t=ke((()=>{}));return zu((()=>{t.current=e})),Ce((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 Ku="undefined"!=typeof document?xe:_e,Vu=!1,Gu=0,Yu=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Gu++;var Xu=Bu.useId||function(){const[e,t]=we((()=>Vu?Yu():void 0));return Ku((()=>{null==e&&t(Yu())}),[]),_e((()=>{Vu=!0}),[]),e};var Ju=Y(null),Zu=Y(null),ed="data-floating-ui-focusable";function td(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Xu(),o=ke({}),[a]=we((()=>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=Te(Ju))?void 0:l.id)||null);var l;const[c,u]=we(r.reference),d=Qu(((e,t,r)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)})),f=Ee((()=>({setPositionReference:u})),[]),p=Ee((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return Ee((()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:a,floatingId:i,refs:f})),[t,d,p,a,i,f])}function nd(e){void 0===e&&(e={});const{nodeId:t}=e,n=td({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=we(null),[s,l]=we(null),c=(null==i?void 0:i.domReference)||o,u=ke(null),d=Te(Zu);Ku((()=>{c&&(u.current=c)}),[c]);const f=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]=we({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=we(r);Nu(f,r)||p(r);const[h,m]=we(null),[g,v]=we(null),y=Ce((e=>{e!==x.current&&(x.current=e,m(e))}),[]),w=Ce((e=>{e!==k.current&&(k.current=e,v(e))}),[]),b=o||h,_=a||g,x=ke(null),k=ke(null),S=ke(u),E=null!=l,C=ju(l),T=ju(i),R=ju(c),P=Ce((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:f};T.current&&(e.platform=T.current),Du(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};O.current&&!Nu(S.current,t)&&(S.current=t,On((()=>{d(t)})))}))}),[f,t,n,T,R]);Mu((()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const O=ke(!1);Mu((()=>(O.current=!0,()=>{O.current=!1})),[]),Mu((()=>{if(b&&(x.current=b),_&&(k.current=_),b&&_){if(C.current)return C.current(b,_,P);P()}}),[b,_,P,C,E]);const L=Ee((()=>({reference:x,floating:k,setReference:y,setFloating:w})),[y,w]),A=Ee((()=>({reference:b,floating:_})),[b,_]),I=Ee((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=Hu(A.floating,u.x),r=Hu(A.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...$u(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,A.floating,u.x,u.y]);return Ee((()=>({...u,update:P,refs:L,elements:A,floatingStyles:I})),[u,P,L,A,I])}({...e,elements:{...i,...s&&{reference:s}}}),p=Ce((e=>{const t=Ac(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)}),[f.refs]),h=Ce((e=>{(Ac(e)||null===e)&&(u.current=e,a(e)),(Ac(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Ac(e))&&f.refs.setReference(e)}),[f.refs]),m=Ee((()=>({...f.refs,setReference:h,setPositionReference:p,domReference:u})),[f.refs,h,p]),g=Ee((()=>({...f.elements,domReference:c})),[f.elements,c]),v=Ee((()=>({...f,...r,refs:m,elements:g,nodeId:t})),[f,m,g,t,r]);return Ku((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),Ee((()=>({...f,context:v,refs:m,elements:g})),[f,m,g,v])}var rd="active",id="selected";function od(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[rd]:t,[id]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[ed]:""},...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&&[rd,id].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 ad(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}function sd(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:s}=t,l=Qu(s),c=ke(!1),u=ke(null),d=ke(null);_e((()=>{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(),On((()=>{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 f=Ee((()=>({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)&&On((()=>l((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[r.floating,l,o,a]);return Ee((()=>i?{floating:f}:{}),[i,f])}var ld=Y({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});ld.displayName="FloatingContext";var cd=Y(null);cd.displayName="PlacementContext";function ud({children:e,enabled:t=!0}){let[n,r]=we(null),[i,o]=we(0),a=ke(null),[s,l]=we(null);!function(e){dl((()=>{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:f=0,padding:p=0,inner:h}=function(e,t){var n,r,i;let o=dd(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=dd(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=dd(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:s}}(n,s),[m,g="center"]=u.split(" ");dl((()=>{c&&o(0)}),[c]);let{refs:v,floatingStyles:y,context:w}=nd({open:c,placement:"selection"===m?"center"===g?"bottom":`bottom-${g}`:"center"===g?`${m}`:`${m}-${g}`,strategy:"absolute",transform:!1,middleware:[Wu({mainAxis:"selection"===m?0:d,crossAxis:f}),(k={padding:p},{...Au(k),options:[k,S]}),"selection"!==m&&Uu({padding:p}),"selection"===m&&h?(x={...h,padding:p,overflowRef:a,offset:i,minItemsVisible:4,referenceOverflowThreshold:p,onFallbackChange(e){var t,n;if(!e)return;let r=w.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=w.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}=tu(x,e),{rects:u,elements:{floating:d}}=e,f=t.current[o],p=(null==l?void 0:l.current)||d,h=d.clientTop||p.clientTop,m=0!==d.clientTop,g=0!==p.clientTop,v=d===p;if(!f)return{};const y={...e,...await Wu(-f.offsetTop-d.clientTop-u.reference.height/2-f.offsetHeight/2-i).fn(e)},w=await Ou(ad(y,p.scrollHeight+h+d.clientTop),c),b=await Ou(y,{...c,elementContext:"reference"}),_=Vc(0,w.top),k=y.y+_,S=p.scrollHeight>p.clientHeight,E=(S?e=>e:Gc)(Vc(0,p.scrollHeight+(m&&v||g?2*h:0)-_-Vc(0,w.bottom)));if(p.style.maxHeight=E+"px",p.scrollTop=_,r){const e=S&&p.offsetHeight<f.offsetHeight*a-1||b.top>=-s||b.bottom>=-s;On((()=>r(e)))}return n&&(n.current=await Ou(ad({...y,y:k},p.offsetHeight+h+d.clientTop),c)),{y:k}}}):null,qu({padding:p,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:Pu}),[b=m,_=g]=w.placement.split("-");var x,k,S;"selection"===m&&(b="selection");let E=Ee((()=>({anchor:[b,_].filter(Boolean).join(" ")})),[b,_]),{getReferenceProps:T,getFloatingProps:R}=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=Ce((t=>od(t,e,"reference")),t),o=Ce((t=>od(t,e,"floating")),n),a=Ce((t=>od(t,e,"item")),r);return Ee((()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a})),[i,o,a])}([sd(w,{overflowRef:a,onChange:o})]),P=pl((e=>{l(e),v.setFloating(e)}));return C(cd.Provider,{value:r},C(ld.Provider,{value:{setFloating:P,setReference:v.setReference,styles:y,getReferenceProps:T,getFloatingProps:R,slot:E}},e))}function dd(e,t,n=void 0){let r=ul(),i=pl(((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=pd(e,t);return[i,n=>{let o=fd(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=pd(e,t);i!==c&&(n(c),i=c)}))}return r.dispose}]}return[n,null]})),o=Ee((()=>i(e,t)[0]),[e,t]),[a=o,s]=we();return dl((()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)}),[e,t]),a}function fd(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,...fd(r)]:[n]}return[]}function pd(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}var hd=Y(null);hd.displayName="OpenClosedContext";var md=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(md||{});function gd(){return Te(hd)}function vd({value:e,children:t}){return Hn.createElement(hd.Provider,{value:e},t)}var yd=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(yd||{});function wd(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 bd(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Dt&&(e=>e.useSyncExternalStore)(Dt)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=we(al.isHandoffComplete);return t&&!1===al.isHandoffComplete&&n(!1),_e((()=>{!0!==t&&n(!0)}),[t]),_e((()=>al.handoff()),[]),!e&&t}var _d=Y(!1);function xd(){return Te(_d)}var kd=P,Sd=El((function(e,t){let n=e,r=ke(null),i=Al(function(e,t=!0){return Object.assign(e,{[Ll]:t})}((e=>{r.current=e})),t),o=hc(r),a=function(e){let t=xd(),n=Te(Cd),r=hc(e),[i,o]=we((()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(al.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 _e((()=>{null!==i&&(null!=r&&r.body.contains(i)||null==r||r.body.appendChild(i))}),[i,r]),_e((()=>{t||null!==n&&o(n.current)}),[n,o,t]),i}(r),[s]=we((()=>{var e;return al.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null})),l=Te(Td),c=bd();dl((()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))}),[a,s]),dl((()=>{if(s&&l)return l.register(s)}),[l,s]),function(e){let t=pl(e),n=ke(!1);_e((()=>(n.current=!1,()=>{n.current=!0,ll((()=>{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=bl();return c&&a&&s?tn(u({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:kd,name:"Portal"}),s):null}));var Ed=P,Cd=Y(null);var Td=Y(null),Rd=El((function(e,t){let n=Al(t),{enabled:r=!0,...i}=e,o=bl();return r?Hn.createElement(Sd,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:kd,name:"Portal"})})),Pd=El((function(e,t){let{target:n,...r}=e,i={ref:Al(t)},o=bl();return Hn.createElement(Cd.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Ed,name:"Popover.Group"}))})),Od=Object.assign(Rd,{Group:Pd});function Ld(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:Nd)!==P||1===Hn.Children.count(e.children)}var Ad=Y(null);Ad.displayName="TransitionContext";var Id=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Id||{});var Fd=Y(null);function Dd(e){return"children"in e?Dd(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Md(e,t){let n=fl(e),r=ke([]),i=function(){let e=ke(!1);return dl((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),o=ul(),a=pl(((e,t=wl.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(vl(t,{[wl.Unmount](){r.current.splice(a,1)},[wl.Hidden](){r.current[a].state="hidden"}}),o.microTask((()=>{var e;!Dd(r)&&i.current&&(null==(e=n.current)||e.call(n))})))})),s=pl((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,wl.Unmount)})),l=ke([]),c=ke(Promise.resolve()),u=ke({enter:[],leave:[]}),d=pl(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),t?.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),t?.chains.current[n].push([e,new Promise((e=>{Promise.all(u.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),f=pl(((e,t,n)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return Ee((()=>({children:r,register:s,unregister:a,onStart:d,onStop:f,wait:c,chains:u})),[s,a,r,d,f,u,c])}Fd.displayName="NestingContext";var Nd=P,$d=yl.RenderStrategy;var Hd=El((function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,a=ke(null),s=Al(...Ld(e)?[a,t]:null===t?[]:[t]);bd();let l=gd();if(void 0===n&&null!==l&&(n=(l&md.Open)===md.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=we(n?"visible":"hidden"),d=Md((()=>{n||u("hidden")})),[f,p]=we(!0),h=ke([n]);dl((()=>{!1!==f&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))}),[h,n]);let m=Ee((()=>({show:n,appear:r,initial:f})),[n,r,f]);dl((()=>{n?u("visible"):!Dd(d)&&null!==a.current&&u("hidden")}),[n,d]);let g={unmount:i},v=pl((()=>{var t;f&&p(!1),null==(t=e.beforeEnter)||t.call(e)})),y=pl((()=>{var t;f&&p(!1),null==(t=e.beforeLeave)||t.call(e)})),w=bl();return Hn.createElement(Fd.Provider,{value:d},Hn.createElement(Ad.Provider,{value:m},w({ourProps:{...g,as:P,children:Hn.createElement(jd,{ref:s,...g,...o,beforeEnter:v,beforeLeave:y})},theirProps:{},defaultTag:P,features:$d,visible:"visible"===c,name:"Transition"})))})),jd=El((function(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:a,beforeLeave:s,afterLeave:l,enter:c,enterFrom:u,enterTo:d,entered:f,leave:p,leaveFrom:h,leaveTo:m,...g}=e,[v,y]=we(null),w=ke(null),b=Ld(e),_=Al(...b?[w,t,y]:null===t?[]:[t]),x=null==(n=g.unmount)||n?wl.Unmount:wl.Hidden,{show:k,appear:S,initial:E}=function(){let e=Te(Ad);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[C,T]=we(k?"visible":"hidden"),R=function(){let e=Te(Fd);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:P,unregister:O}=R;dl((()=>P(w)),[P,w]),dl((()=>{if(x===wl.Hidden&&w.current)return k&&"visible"!==C?void T("visible"):vl(C,{hidden:()=>O(w),visible:()=>P(w)})}),[C,w,P,O,k,x]);let L=bd();dl((()=>{if(b&&L&&"visible"===C&&null===w.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[w,C,L,b]);let A=E&&!S,I=S&&k&&E,F=ke(!1),D=Md((()=>{F.current||(T("hidden"),O(w))}),R),M=pl((e=>{F.current=!0;let t=e?"enter":"leave";D.onStart(w,t,(e=>{"enter"===e?o?.():"leave"===e&&s?.()}))})),N=pl((e=>{let t=e?"enter":"leave";F.current=!1,D.onStop(w,t,(e=>{"enter"===e?a?.():"leave"===e&&l?.()})),"leave"===t&&!Dd(D)&&(T("hidden"),O(w))}));_e((()=>{b&&i||(M(k),N(k))}),[k,b,i]);let[,$]=Cc(!(!i||!b||!L||A),v,k,{start:M,end:N}),H=Cl({ref:_,className:(null==(r=gl(g.className,I&&c,I&&u,$.enter&&c,$.enter&&$.closed&&u,$.enter&&!$.closed&&d,$.leave&&p,$.leave&&!$.closed&&h,$.leave&&$.closed&&m,!$.transition&&k&&f))?void 0:r.trim())||void 0,...Ec($)}),j=0;"visible"===C&&(j|=md.Open),"hidden"===C&&(j|=md.Closed),$.enter&&(j|=md.Opening),$.leave&&(j|=md.Closing);let W=bl();return Hn.createElement(Fd.Provider,{value:D},Hn.createElement(vd,{value:j},W({ourProps:H,theirProps:g,defaultTag:Nd,features:$d,visible:"visible"===C,name:"Transition.Child"})))})),Wd=El((function(e,t){let n=null!==Te(Ad),r=null!==gd();return Hn.createElement(Hn.Fragment,null,!n&&r?Hn.createElement(Hd,{ref:t,...e}):Hn.createElement(jd,{ref:t,...e}))})),Ud=Object.assign(Hd,{Child:Wd,Root:Hd});var qd=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Bd(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 qd.test(a)&&(a=a.replace(qd,"")),a}function zd(e){let t=ke(""),n=ke("");return pl((()=>{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():Bd(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return Bd(e).trim()}(r).trim().toLowerCase();return t.current=i,n.current=o,o}))}var Qd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Qd||{}),Kd=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Kd||{}),Vd=(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))(Vd||{});function Gd(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=lc(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}}var Yd={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===yd.Nothing)return{...s,activeItemIndex:null};if(t.focus===yd.Specific)return{...s,activeItemIndex:e.items.findIndex((e=>e.id===t.id))};if(t.focus===yd.Previous){let n=e.activeItemIndex;if(null!==n){let o=e.items[n].dataRef.current.domRef,a=wd(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===yd.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,i=wd(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=Gd(e),c=wd(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=Gd(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=Gd(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}},Xd=Y(null);function Jd(e){let t=Te(Xd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Jd),t}return t}function Zd(e,t){return vl(t.type,Yd,e,t)}Xd.displayName="MenuContext";var ef=P;var tf=yl.RenderStrategy|yl.Static;var nf=P;var rf=El((function(e,t){let{__demoMode:n=!1,...r}=e,i=be(Zd,{__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=Al(t);pc(0===o,[s,a],((e,t)=>{l({type:1}),ic(t,rc.Loose)||(e.preventDefault(),s?.focus())}));let u=pl((()=>{l({type:1})})),d=Ee((()=>({open:0===o,close:u})),[o,u]),f={ref:c},p=bl();return Hn.createElement(ud,null,Hn.createElement(Xd.Provider,{value:i},Hn.createElement(vd,{value:vl(o,{0:md.Open,1:md.Closed})},p({ourProps:f,theirProps:r,slot:d,defaultTag:ef,name:"Menu"}))))})),of=El((function(e,t){var n;let r=Oe(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:a=!1,...s}=e,[l,c]=Jd("Menu.Button"),u=Te(ld).getReferenceProps,d=Al(t,Te(ld).setReference,pl((e=>c({type:7,element:e})))),f=pl((e=>{switch(e.key){case Ml.Space:case Ml.Enter:case Ml.ArrowDown:e.preventDefault(),e.stopPropagation(),On((()=>c({type:0}))),c({type:2,focus:yd.First});break;case Ml.ArrowUp:e.preventDefault(),e.stopPropagation(),On((()=>c({type:0}))),c({type:2,focus:yd.Last})}})),p=pl((e=>{if(e.key===Ml.Space)e.preventDefault()})),h=pl((e=>{var t;if(Ol(e.currentTarget))return e.preventDefault();o||(0===l.menuState?(On((()=>c({type:1}))),null==(t=l.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c({type:0})))})),{isFocusVisible:m,focusProps:g}=rl({autoFocus:a}),{isHovered:v,hoverProps:y}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=we(!1),s=ke({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;_e(nl,[]);let{hoverProps:l,triggerHoverEnd:c}=Ee((()=>{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=>{Js&&"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||Js||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 _e((()=>{i&&c({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:l,isHovered:o}}({isDisabled:o}),{pressed:w,pressProps:b}=function({disabled:e=!1}={}){let t=ke(null),[n,r]=we(!1),i=ul(),o=pl((()=>{t.current=null,r(!1),i.dispose()})),a=pl((e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=sl(e.currentTarget);i.addEventListener(n,"pointerup",o,!1),i.addEventListener(n,"pointermove",(e=>{t.current&&r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(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),t.current.getBoundingClientRect()))}),!1),i.addEventListener(n,"pointercancel",o,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}({disabled:o}),_=Ee((()=>({open:0===l.menuState,active:w||0===l.menuState,disabled:o,hover:v,focus:m,autofocus:a})),[l,v,m,w,o,a]),x=Sl(u(),{ref:d,id:i,type:mc(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:f,onKeyUp:p,onClick:h},g,y,b);return bl()({ourProps:x,theirProps:s,slot:_,defaultTag:"button",name:"Menu.Button"})})),af=El((function(e,t){var n,r;let i=Oe(),{id:o=`headlessui-menu-items-${i}`,anchor:a,portal:s=!1,modal:l=!0,transition:c=!1,...u}=e,d=function(e){return Ee((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(a),[f,p]=Jd("Menu.Items"),[h,m]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=Te(cd),n=Ee((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);dl((()=>{t?.(null!=n?n:null)}),[t,n]);let r=Te(ld);return Ee((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}(d),g=function(){let{getFloatingProps:e,slot:t}=Te(ld);return Ce(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}(),[v,y]=we(null),w=Al(t,d?h:null,pl((e=>p({type:8,element:e}))),y),b=hc(f.itemsElement);d&&(s=!0);let _=gd(),[x,k]=Cc(c,v,null!==_?(_&md.Open)===md.Open:0===f.menuState);!function(e,t,n){let r=fl((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));_e((()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let i=cl();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,f.buttonElement,(()=>{p({type:1})})),_c(!f.__demoMode&&(l&&0===f.menuState),b),function(e,{allowed:t,disallowed:n}={}){let r=Ql(e,"inert-others");dl((()=>{var e,i;if(!r)return;let o=cl();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add(Gl(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let t of a){if(!t)continue;let e=sl(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(Gl(e));n=n.parentElement}}return o.dispose}),[r,t,n])}(!f.__demoMode&&(l&&0===f.menuState),{allowed:Ce((()=>[f.buttonElement,f.itemsElement]),[f.buttonElement,f.itemsElement])});let S=!function(e,t){let n=ke({left:0,top:0});if(dl((()=>{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!==f.menuState,f.buttonElement)&&x;_e((()=>{let e=f.itemsElement;e&&0===f.menuState&&e!==(null==b?void 0:b.activeElement)&&e.focus({preventScroll:!0})}),[f.menuState,f.itemsElement,b]),function(e,{container:t,accept:n,walk:r}){let i=ke(n),o=ke(r);_e((()=>{i.current=n,o.current=r}),[n,r]),dl((()=>{if(!t||!e)return;let n=sl(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===f.menuState,{container:f.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=ul(),C=pl((e=>{var t,n,r;switch(E.dispose(),e.key){case Ml.Space:if(""!==f.searchQuery)return e.preventDefault(),e.stopPropagation(),p({type:3,value:e.key});case Ml.Enter:if(e.preventDefault(),e.stopPropagation(),p({type:1}),null!==f.activeItemIndex){let{dataRef:e}=f.items[f.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}oc(f.buttonElement);break;case Ml.ArrowDown:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:yd.Next});case Ml.ArrowUp:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:yd.Previous});case Ml.Home:case Ml.PageUp:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:yd.First});case Ml.End:case Ml.PageDown:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:yd.Last});case Ml.Escape:e.preventDefault(),e.stopPropagation(),On((()=>p({type:1}))),null==(r=f.buttonElement)||r.focus({preventScroll:!0});break;case Ml.Tab:e.preventDefault(),e.stopPropagation(),On((()=>p({type:1}))),cc(f.buttonElement,e.shiftKey?Zl.Previous:Zl.Next);break;default:1===e.key.length&&(p({type:3,value:e.key}),E.setTimeout((()=>p({type:4})),350))}})),T=pl((e=>{if(e.key===Ml.Space)e.preventDefault()})),R=Ee((()=>({open:0===f.menuState})),[f.menuState]),P=Sl(d?g():{},{"aria-activedescendant":null===f.activeItemIndex||null==(n=f.items[f.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=f.buttonElement)?void 0:r.id,id:o,onKeyDown:C,onKeyUp:T,role:"menu",tabIndex:0===f.menuState?0:void 0,ref:w,style:{...u.style,...m,"--button-width":Wl(f.buttonElement,!0).width},...Ec(k)}),O=bl();return Hn.createElement(Od,{enabled:!!s&&(e.static||x)},O({ourProps:P,theirProps:u,slot:R,defaultTag:"div",features:tf,visible:S,name:"Menu.Items"}))})),sf=El((function(e,t){let n=Oe(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,[a,s]=Jd("Menu.Item"),l=null!==a.activeItemIndex&&a.items[a.activeItemIndex].id===r,c=ke(null),u=Al(t,c);dl((()=>{if(!a.__demoMode&&0===a.menuState&&l&&0!==a.activationTrigger)return cl().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=zd(c),f=ke({disabled:i,domRef:c,get textValue(){return d()}});dl((()=>{f.current.disabled=i}),[f,i]),dl((()=>(s({type:5,id:r,dataRef:f}),()=>s({type:6,id:r}))),[f,r]);let p=pl((()=>{s({type:1})})),h=pl((e=>{if(i)return e.preventDefault();s({type:1}),oc(a.buttonElement)})),m=pl((()=>{if(i)return s({type:2,focus:yd.Nothing});s({type:2,focus:yd.Specific,id:r})})),g=kc(),v=pl((e=>{g.update(e),!i&&(l||s({type:2,focus:yd.Specific,id:r,trigger:0}))})),y=pl((e=>{g.wasMoved(e)&&(i||l||s({type:2,focus:yd.Specific,id:r,trigger:0}))})),w=pl((e=>{g.wasMoved(e)&&(i||l&&s({type:2,focus:yd.Nothing}))})),[b,_]=Hl(),[x,k]=function(){let[e,t]=we([]);return[e.length>0?e.join(" "):void 0,Ee((()=>function(e){let n=pl((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=Ee((()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value})),[n,e.slot,e.name,e.props,e.value]);return Hn.createElement(Il.Provider,{value:r},e.children)}),[t])]}(),S=Ee((()=>({active:l,focus:l,disabled:i,close:p})),[l,i,p]),E={id:r,ref:u,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":b,"aria-describedby":x,disabled:void 0,onClick:h,onFocus:m,onPointerEnter:v,onMouseEnter:v,onPointerMove:y,onMouseMove:y,onPointerLeave:w,onMouseLeave:w},C=bl();return Hn.createElement(_,null,Hn.createElement(k,null,C({ourProps:E,theirProps:o,slot:S,defaultTag:nf,name:"Menu.Item"})))})),lf=El((function(e,t){let[n,r]=Hl(),i=e,o={ref:t,"aria-labelledby":n,role:"group"},a=bl();return Hn.createElement(r,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Menu.Section"}))})),cf=El((function(e,t){let n=Oe(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=$l();dl((()=>o.register(r)),[r,o.register]);let a={id:r,ref:t,role:"presentation",...o.props};return bl()({ourProps:a,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})})),uf=El((function(e,t){let n=e,r={ref:t,role:"separator"};return bl()({ourProps:r,theirProps:n,slot:{},defaultTag:"div",name:"Menu.Separator"})})),df=Object.assign(rf,{Button:of,Items:af,Item:sf,Section:lf,Heading:cf,Separator:uf});function ff({title:e,titleId:t,...n},r){return C("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?C("title",{id:t},e):null,C("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"}))}var pf=Wt(ff);function hf({title:e,titleId:t,...n},r){return C("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?C("title",{id:t},e):null,C("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"}))}var mf=Wt(hf),gf=e=>ms(_f,{children:gs(df,{as:"div",children:[ms("div",{children:gs(of,{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:[ms("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"}),ms(pf,{"aria-hidden":"true",css:{width:"1.25rem",height:"1.25rem"}})]})}),ms(af,{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)=>ms(sf,{children:ms("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)))})]})}),vf=e=>e&&new Date(e).toLocaleDateString("en-AU")||void 0,yf=e=>void 0!==e&&`$ ${Number(e).toLocaleString("en-US")}`||void 0,wf=e=>gs(_f,{children:[vf(e.value),ms("br",{}),vf(e.value)]}),bf=e=>{const[t,n]=we(!1);return gs(_f,{css:{position:"relative"},children:[ms(Ud,{show:t,children:ms("div",{css:{position:"absolute",bottom:"3rem",display:"flex",height:"2rem",width:"4.313rem",flexDirection:"row",alignItems:"flex-start",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(17 24 39 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",opacity:"0.9","--tw-shadow":"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms","&[data-closed]":{opacity:"0"},"&[data-enter]":{transitionDuration:"100ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"},"&[data-leave]":{transitionDuration:"500ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"}},children:ms("p",{css:{order:"0",height:"1rem",width:"2.813rem",flex:"none",flexGrow:"0",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500",fontStyle:"normal","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},children:"Copied"})})}),ms("button",{onClick:async()=>{await(async e=>{await navigator.clipboard.writeText(e)})(e.value),n(!0),setTimeout((()=>{n(!1)}),3e3)},type:"button",css:{display:"block",flexShrink:"1",borderRadius:"0.375rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",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))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-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"}},children:e.value})]})},_f=ds.td`
|
|
12
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))"}}
|
|
13
|
-
`,
|
|
3
|
+
`,xf=ds.td`
|
|
14
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))"}}
|
|
15
|
-
`,
|
|
5
|
+
`,kf=ds.span({display:"inline-flex",alignItems:"center",borderRadius:"0.375rem",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500","--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)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},(e=>e.className)),Sf=(e,t,n,r)=>{switch(r?.kind){case"status":return ms(xf,{children:ms(kf,{className:r.styleOverrides?.[t],children:t})});case"date":return ms(wf,{value:t});case"button":return ms(ws,{id:e,value:t,onClick:r.onClick,children:r.children});case"list":return ms(bs,{value:t,navTo:r.navTo&&r.navTo(n,t)});case"menu":return ms(gf,{id:e,items:r.items});case"copy":return ms(bf,{value:t});default:return ms(_f,{children:t})}};function Ef({title:e,titleId:t,...n},r){return C("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C("title",{id:t},e):null,C("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 0 1 .75.75v10.638l3.96-4.158a.75.75 0 1 1 1.08 1.04l-5.25 5.5a.75.75 0 0 1-1.08 0l-5.25-5.5a.75.75 0 1 1 1.08-1.04l3.96 4.158V3.75A.75.75 0 0 1 10 3Z",clipRule:"evenodd"}))}var Cf=Wt(Ef);function Tf({title:e,titleId:t,...n},r){return C("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C("title",{id:t},e):null,C("path",{fillRule:"evenodd",d:"M10 17a.75.75 0 0 1-.75-.75V5.612L5.29 9.77a.75.75 0 0 1-1.08-1.04l5.25-5.5a.75.75 0 0 1 1.08 0l5.25 5.5a.75.75 0 1 1-1.08 1.04l-3.96-4.158V16.25A.75.75 0 0 1 10 17Z",clipRule:"evenodd"}))}var Rf=Wt(Tf);function Pf({title:e,titleId:t,...n},r){return C("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C("title",{id:t},e):null,C("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 10 5Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}var Of=Wt(Pf),Lf=ds.button({marginRight:"1rem",display:"inline-flex",alignItems:"center",borderRadius:"0.375rem",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},(e=>e.className),(({isActive:e})=>e&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(229 231 235 / var(--tw-bg-opacity))"})),Af=ds.input`
|
|
16
6
|
${()=>({display:"block",minHeight:"2.25rem",width:"100%",borderRadius:"0.375rem",borderWidth:"0px",paddingTop:"0.375rem",paddingBottom:"0.375rem",paddingRight:"5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--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)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","::placeholder":{"--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},":focus":{"--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-inset":"inset"},":disabled":{"--tw-bg-opacity":"1",backgroundColor:"rgb(229 231 235 / var(--tw-bg-opacity))"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"}})}
|
|
17
7
|
|
|
18
8
|
${({prefix:e})=>e?{paddingLeft:"2.5rem"}:{paddingLeft:"0.75rem"}}
|
|
19
9
|
|
|
20
10
|
${({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}}
|
|
21
|
-
`;function tf({title:e,titleId:t,...n},r){return De("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?De("title",{id:t},e):null,De("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const nf=Yn(tf),rf=Yn((({label:e,id:t,type:n,icon:r,placeholder:i,setPlaceholderOnFocus:o,value:a,className:s,onChange:l,onBlur:c,onEnter:u,error:d,helperText:p,disabled:h,remove:f},v)=>Wl("div",{className:s,children:[e&&Nl("label",{htmlFor:t,css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:e}),Wl("div",{css:{position:"relative",marginTop:"0.5rem"},children:[r&&Nl("span",{css:{position:"absolute",marginLeft:"0.5rem",marginTop:"0.5rem"},children:r}),Wl("div",{css:{marginTop:"0.5rem",display:"flex",alignItems:"center"},children:[Nl(ef,{type:n,value:a,name:t,id:t,placeholder:i,onChange:e=>{const t=e;t.target instanceof HTMLInputElement&&l(t.target.value.trim())},onBlur:e=>{const t=e;t.target instanceof HTMLInputElement&&c&&c(t.target.value.trim())},onFocus:()=>{i&&o&&!(null==a?void 0:a.trim())&&l(i)},onKeyDown:e=>{"Enter"===e.key&&u&&u()},hasError:!!d,ref:v,disabled:h,prefix:!!r}),f&&Wl("button",{type:"button",children:[Nl(nf,{css:{marginLeft:"0.5rem",height:"1.25rem",width:"1.25rem"},onClick:()=>f()})," "]})]})]}),d&&Nl("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:d}),p&&Nl("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:p})]}))),of="asc",af="desc",sf=e=>{var t,n;const[r,i]=Pt(""),[o,a]=Pt([]),[s,l]=Pt(e.columns[0]),[c,u]=Pt(of),d=It((()=>s?[...e.data].sort(((e,t)=>{const n=s.sort?s.sort(e[s.field],t[s.field]):e[s.field].localeCompare(t[s.field]);return c===af?-1*n:n})):e.data),[e.data,s,c]),p=It((()=>{const t=o.reduce(((e,t)=>e.filter(t.filterFunction)),d);return r&&!e.searchButton?t.filter((e=>e.id.toLowerCase().includes(r.toLowerCase()))):t}),[d,r,o,e.searchButton]),h=It((()=>e.columns.filter((e=>e.filters&&e.filters.length>0)).length>0),[e.columns]),f=()=>{e.searchButton&&e.searchButton.onClick(r)},v=(e,t)=>{const n={name:e.name,filterFunction:n=>e.predicate(n[t.field])},r=o.filter((e=>e.name!==n.name));return()=>r.length<o.length?a([...r]):a([...r,n])};return Nl($l,{children:Wl("div",{css:{paddingLeft:"1rem",paddingRight:"1rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:[Wl("div",{css:{"@media (min-width: 640px)":{display:"flex",alignItems:"center"}},children:[Wl("div",{css:{"@media (min-width: 640px)":{flex:"1 1 auto"}},children:[Nl("h1",{css:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e.title}),e.subtitle&&Nl("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:e.subtitle}),Wl("div",{css:{marginTop:"0.5rem",display:"inline-flex"},children:[Nl(rf,{css:{marginTop:"auto",marginBottom:"auto",maxWidth:"20rem"},label:null==(t=e.searchButton)?void 0:t.text,icon:Nl(Gh,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"}}),id:"search",type:"text",error:null==(n=e.searchButton)?void 0:n.error,onChange:e=>i(e),onEnter:f}),e.searchButton&&Nl("div",{css:{marginLeft:"1rem",marginTop:"0.5rem"},children:Nl("button",{type:"button",onClick:f,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--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(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.searchButton.text})})]})]}),e.addButton&&Nl("div",{css:{marginTop:"1rem","@media (min-width: 640px)":{marginLeft:"4rem",marginTop:"0px",flex:"none"}},children:Nl("button",{type:"button",onClick:e.addButton.onClick,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--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(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.addButton.text})})]}),e.error&&Nl("div",{css:{marginBottom:"1rem",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(254 242 242 / var(--tw-bg-opacity))",padding:"1rem"},children:Wl("div",{css:{display:"flex"},children:[Nl("div",{css:{flexShrink:"0"},children:Nl(Jh,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(248 113 113 / var(--tw-text-opacity))"},"aria-hidden":"true"})}),Nl("div",{css:{marginLeft:"0.75rem"},children:Nl("h3",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(153 27 27 / var(--tw-text-opacity))"},children:e.error})})]})}),Nl("div",{css:{marginTop:"2rem",display:"flow-root"},children:Nl("div",{css:{marginLeft:"-1rem",marginRight:"-1rem",marginTop:"-0.5rem",marginBottom:"-0.5rem",overflowX:"auto","@media (min-width: 640px)":{marginLeft:"-1.5rem",marginRight:"-1.5rem"},"@media (min-width: 1024px)":{marginLeft:"-2rem",marginRight:"-2rem"}},children:Nl("div",{css:{display:"inline-block",minWidth:"100%",paddingTop:"0.5rem",paddingBottom:"0.5rem",verticalAlign:"middle","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:Nl("div",{css:{overflow:"hidden","--tw-shadow":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px 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-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))","@media (min-width: 640px)":{borderRadius:"0.5rem"}},children:Wl("table",{css:{minWidth:"100%","> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-divide-opacity))"}},children:[h&&Nl("thead",{children:Nl("tr",{children:Wl("td",{css:{padding:"1rem"},colSpan:e.columns.length,children:[Nl(Zh,{onClick:()=>a([]),isActive:0==o.length,children:"All"}),e.columns.map((e=>{var t;return null==(t=e.filters)?void 0:t.map((t=>Nl(Zh,{onClick:v(t,e),isActive:!!o.find((e=>e.name===t.name)),children:t.name},t.name)))}))]})})}),Nl("thead",{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))"},children:Nl("tr",{children:e.columns.map((e=>Nl("th",{scope:"col",css:{paddingTop:"0.875rem",paddingBottom:"0.875rem",paddingLeft:"1rem",paddingRight:"0.75rem",textAlign:"left",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:Wl("button",{disabled:!e.isSortable,onClick:()=>(e=>{s===e?u(c===of?af:of):(l(e),u(of))})(e),css:{display:"inline-flex"},children:[Nl("span",{children:e.name}),Wl("span",{css:{marginLeft:"0.5rem"},children:[s===e&&c===of&&Nl(Vh,{css:{height:"1.25rem",width:"1.25rem"}}),s===e&&c===af&&Nl(Yh,{css:{height:"1.25rem",width:"1.25rem"}}),s!==e&&Nl("svg",{css:{height:"1.25rem",width:"1.25rem"}})]})]})},e.field)))})}),Nl("tbody",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-divide-opacity))"},"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"},children:p.map(((t,n)=>Nl("tr",{children:e.columns.map(((e,r)=>Nl(Ne,{children:qh(t.id,t[e.field],t,e.type)},`${t[e.field]}-${n}-${r}`)))},`${t[e.columns[0].field]}-${n}`)))})]})})})})})]})})},lf=[{name:"Profile Id",field:"id",isSortable:!0,type:{kind:"copy"}},{name:"Name",field:"name",isSortable:!0},{name:"Email",field:"email",isSortable:!0},{name:"External Id",field:"externalId",isSortable:!0},{name:"Catch-E Driver Id",field:"catchEId",isSortable:!0}],cf=async e=>{if(!(e instanceof li))return"Unexpected error occurred";try{return(await e.response.json()).message||`${e.response.status} error occurred`}catch{return`${e.response.status} error occurred`}},uf=()=>{const[e,t]=Pt(""),[n,r]=Pt(""),{searchProfilesForAccount:i}=Ai(),o=["searchProfilesForAccount",si().account.accountId];const a=Xr(),{data:s,refetch:l,error:c,isFetched:u,isRefetching:d}=oi({queryKey:o,queryFn:()=>i(e),enabled:!1,retry:!1});Ot((()=>{e&&l()}),[e,l]),Ot((()=>{c?(async()=>{r(await cf(c))})():r("")}),[c]),Ot((()=>{u&&0===(null==s?void 0:s.length)&&r("No profiles found"),d&&r("")}),[d,u,s]),Ot((()=>()=>{a.removeQueries({queryKey:o})}),[a,o]);return Nl(sf,{columns:lf,data:s||[],title:"Profile Search",subtitle:"Search for a profile using name or email",searchButton:{onClick:e=>{t(e)},text:"Search",error:n}})},df=e=>({id:e.id,catchEDriverId:e.catchEDriverId,salaryPackagedItems:e.salaryPackagedItems.map((e=>e.catchEContractId)).join(",")}),pf=e=>[{name:"Profile Id",field:"id",isSortable:!0,type:{kind:"copy"}},{name:"Catch-E Driver Id",field:"catchEDriverId",isSortable:!0},{name:"Contracts",field:"salaryPackagedItems",isSortable:!0,type:{kind:"list",navTo:(e,t)=>`${e.id}/contracts/${t}`}},{name:"Actions",field:"menu",isSortable:!1,type:{kind:"menu",items:e}}],hf=Il.div((({isOpen:e})=>e?{display:"block"}:{display:"none"})),ff=e=>Wl(hf,{isOpen:e.isOpen,css:{position:"relative",zIndex:"10"},"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:[Nl("div",{css:{position:"fixed",inset:"0px",backgroundColor:"rgb(107 114 128 / 0.75)",transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"},"aria-hidden":"true"}),Nl("div",{css:{position:"fixed",inset:"0px",zIndex:"10",width:"100vw",overflowY:"auto"},children:Nl("div",{css:{display:"flex",minHeight:"100%",alignItems:"flex-end",justifyContent:"center",padding:"1rem",textAlign:"center","@media (min-width: 640px)":{alignItems:"center",padding:"0px"}},children:Wl("div",{css:{position:"relative",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))",overflow:"hidden",overflowWrap:"break-word",borderRadius:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",textAlign:"left","--tw-shadow":"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms","@media (min-width: 640px)":{marginTop:"2rem",marginBottom:"2rem",width:"100%",maxWidth:"24rem"}},children:[Nl("div",{children:e.children}),Nl("div",{css:{position:"absolute",right:"0px",top:"0px",padding:"0.5rem"},children:Nl("button",{type:"button",onClick:e.onClose,children:Nl(nf,{css:{height:"1.25rem",width:"1.25rem"}})})})]})})})]}),vf=()=>{const{linkedProfilesForAccount:e,unlinkProfile:t}=Ai(),[n,r]=Pt(""),i=Ao(),o=Lo(),a=Xr(),{data:s,error:l}=oi({queryKey:[vi],queryFn:e}),c=It((()=>null==s?void 0:s.map(df)),[s]),u=[{label:"Unlink",onClick:function(e){const t=Xr(),[n]=Pt((()=>new Bn(t,e)));Ot((()=>{n.setOptions(e)}),[n,e]);const r=Br(Dt((e=>n.subscribe(Tn.batchCalls(e))),[n]),(()=>n.getCurrentResult())),i=Dt(((e,t)=>{n.mutate(e,t).catch(ni)}),[n]);if(r.error&&ti(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:i,mutateAsync:r.mutate}}({mutationFn:t,onSuccess:()=>{a.invalidateQueries({queryKey:[vi]})},onError:async e=>{r(await cf(e))}}).mutate}];return Ot((()=>{l?(async()=>{r(await cf(l))})():r("")}),[l]),Wl($l,{children:[Nl(sf,{columns:pf(u),data:c||[],title:"Linked Profiles",subtitle:"Linked profiles for this account",error:n}),Nl(ff,{isOpen:null!==o,onClose:()=>i("/profiles"),children:Nl(qo,{})})]})},mf=Il.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))"}}),gf=Il.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"}),yf=e=>{const[t,n]=Pt(!1);((e,t)=>{const n=Mt();Ot((()=>{n.current=e}),[e]),Ot((()=>{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),Ot((()=>{if(t){const r=setTimeout((()=>{t&&e.onTimeout(),n(!1)}),e.timeout);return()=>clearTimeout(r)}}));return Nl(mf,{onClick:async()=>{n(!0),await e.onClick()||n(!1)},disabled:t,children:t?Wl($l,{children:[Nl(gf,{}),Nl("span",{css:{marginLeft:"0.5rem"},children:e.processingText})]}):Nl($l,{children:e.text})})},_f=e=>{var t;const n=Ao(),{ingestClient:r,checkProfileSearchAuthorization:i}=Ai(),o=oi({queryKey:[gi],queryFn:i});Ot((()=>{o.error&&e.onError(o.error.message)}),[e,o]),Ot((()=>{var e;"Linked"===(null==(e=o.data)?void 0:e.status)&&n("/")}),[o.data,n]);return Wl("div",{children:[Nl("h1",{css:{marginBottom:"1rem",marginLeft:"1rem","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:null==(t=null==o?void 0:o.data)?void 0:t.message}),Nl(yf,{onClick:async()=>{try{return await r(),!0}catch(t){return e.onError(await cf(t)),!1}},onCheck:async()=>(await o.refetch(),!1),onTimeout:()=>e.onError("Client sync took too long. Please confirm you have updated Catch-E correctly, refresh the page and try again."),checkInterval:5e3,timeout:3e4,text:"Sync Clients",processingText:"Syncing..."})]})},wf=Il.div`
|
|
11
|
+
`;function If({title:e,titleId:t,...n},r){return C("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C("title",{id:t},e):null,C("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}var Ff=Wt(If),Df=Wt((({label:e,id:t,type:n,icon:r,placeholder:i,setPlaceholderOnFocus:o,value:a,className:s,onChange:l,onBlur:c,onEnter:u,error:d,helperText:f,disabled:p,remove:h},m)=>gs("div",{className:s,children:[e&&ms("label",{htmlFor:t,css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:e}),gs("div",{css:{position:"relative",marginTop:"0.5rem"},children:[r&&ms("span",{css:{position:"absolute",marginLeft:"0.5rem",marginTop:"0.5rem"},children:r}),gs("div",{css:{marginTop:"0.5rem",display:"flex",alignItems:"center"},children:[ms(Af,{type:n,value:a,name:t,id:t,placeholder:i,onChange:e=>{const t=e;t.target instanceof HTMLInputElement&&l(t.target.value.trim())},onBlur:e=>{const t=e;t.target instanceof HTMLInputElement&&c&&c(t.target.value.trim())},onFocus:()=>{i&&o&&!a?.trim()&&l(i)},onKeyDown:e=>{"Enter"===e.key&&u&&u()},hasError:!!d,ref:m,disabled:p,prefix:!!r}),h&&gs("button",{type:"button",children:[ms(Ff,{css:{marginLeft:"0.5rem",height:"1.25rem",width:"1.25rem"},onClick:()=>h()})," "]})]})]}),d&&ms("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:d}),f&&ms("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:f})]}))),Mf="asc",Nf="desc",$f=e=>{const[t,n]=we(""),[r,i]=we([]),[o,a]=we(e.columns[0]),[s,l]=we(Mf),c=Ee((()=>o?[...e.data].sort(((e,t)=>{const n=o.sort?o.sort(e[o.field],t[o.field]):e[o.field].localeCompare(t[o.field]);return s===Nf?-1*n:n})):e.data),[e.data,o,s]),u=Ee((()=>{const n=r.reduce(((e,t)=>e.filter(t.filterFunction)),c);return t&&!e.searchButton?n.filter((e=>e.id.toLowerCase().includes(t.toLowerCase()))):n}),[c,t,r,e.searchButton]),d=Ee((()=>e.columns.filter((e=>e.filters&&e.filters.length>0)).length>0),[e.columns]),f=()=>{e.searchButton&&e.searchButton.onClick(t)},p=(e,t)=>{const n={name:e.name,filterFunction:n=>e.predicate(n[t.field])},o=r.filter((e=>e.name!==n.name));return()=>o.length<r.length?i([...o]):i([...o,n])};return ms(hs,{children:gs("div",{css:{paddingLeft:"1rem",paddingRight:"1rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:[gs("div",{css:{"@media (min-width: 640px)":{display:"flex",alignItems:"center"}},children:[gs("div",{css:{"@media (min-width: 640px)":{flex:"1 1 auto"}},children:[ms("h1",{css:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e.title}),e.subtitle&&ms("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:e.subtitle}),gs("div",{css:{marginTop:"0.5rem",display:"inline-flex"},children:[ms(Df,{css:{marginTop:"auto",marginBottom:"auto",maxWidth:"20rem"},label:e.searchButton?.text,icon:ms(mf,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"}}),id:"search",type:"text",error:e.searchButton?.error,onChange:e=>n(e),onEnter:f}),e.searchButton&&ms("div",{css:{marginLeft:"1rem",marginTop:"0.5rem"},children:ms("button",{type:"button",onClick:f,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--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(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.searchButton.text})})]})]}),e.addButton&&ms("div",{css:{marginTop:"1rem","@media (min-width: 640px)":{marginLeft:"4rem",marginTop:"0px",flex:"none"}},children:ms("button",{type:"button",onClick:e.addButton.onClick,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--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(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.addButton.text})})]}),e.error&&ms("div",{css:{marginBottom:"1rem",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(254 242 242 / var(--tw-bg-opacity))",padding:"1rem"},children:gs("div",{css:{display:"flex"},children:[ms("div",{css:{flexShrink:"0"},children:ms(Of,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(248 113 113 / var(--tw-text-opacity))"},"aria-hidden":"true"})}),ms("div",{css:{marginLeft:"0.75rem"},children:ms("h3",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(153 27 27 / var(--tw-text-opacity))"},children:e.error})})]})}),ms("div",{css:{marginTop:"2rem",display:"flow-root"},children:ms("div",{css:{marginLeft:"-1rem",marginRight:"-1rem",marginTop:"-0.5rem",marginBottom:"-0.5rem",overflowX:"auto","@media (min-width: 640px)":{marginLeft:"-1.5rem",marginRight:"-1.5rem"},"@media (min-width: 1024px)":{marginLeft:"-2rem",marginRight:"-2rem"}},children:ms("div",{css:{display:"inline-block",minWidth:"100%",paddingTop:"0.5rem",paddingBottom:"0.5rem",verticalAlign:"middle","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:ms("div",{css:{overflow:"hidden","--tw-shadow":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px 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-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))","@media (min-width: 640px)":{borderRadius:"0.5rem"}},children:gs("table",{css:{minWidth:"100%","> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-divide-opacity))"}},children:[d&&ms("thead",{children:ms("tr",{children:gs("td",{css:{padding:"1rem"},colSpan:e.columns.length,children:[ms(Lf,{onClick:()=>i([]),isActive:0==r.length,children:"All"}),e.columns.map((e=>e.filters?.map((t=>ms(Lf,{onClick:p(t,e),isActive:!!r.find((e=>e.name===t.name)),children:t.name},t.name)))))]})})}),ms("thead",{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))"},children:ms("tr",{children:e.columns.map((e=>ms("th",{scope:"col",css:{paddingTop:"0.875rem",paddingBottom:"0.875rem",paddingLeft:"1rem",paddingRight:"0.75rem",textAlign:"left",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:gs("button",{disabled:!e.isSortable,onClick:()=>(e=>{o===e?l(s===Mf?Nf:Mf):(a(e),l(Mf))})(e),css:{display:"inline-flex"},children:[ms("span",{children:e.name}),gs("span",{css:{marginLeft:"0.5rem"},children:[o===e&&s===Mf&&ms(Cf,{css:{height:"1.25rem",width:"1.25rem"}}),o===e&&s===Nf&&ms(Rf,{css:{height:"1.25rem",width:"1.25rem"}}),o!==e&&ms("svg",{css:{height:"1.25rem",width:"1.25rem"}})]})]})},e.field)))})}),ms("tbody",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-divide-opacity))"},"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"},children:u.map(((t,n)=>ms("tr",{children:e.columns.map(((e,r)=>ms(P,{children:Sf(t.id,t[e.field],t,e.type)},`${t[e.field]}-${n}-${r}`)))},`${t[e.columns[0].field]}-${n}`)))})]})})})})})]})})},Hf=[{name:"Profile Id",field:"id",isSortable:!0,type:{kind:"copy"}},{name:"Name",field:"name",isSortable:!0},{name:"Email",field:"email",isSortable:!0},{name:"External Id",field:"externalId",isSortable:!0},{name:"Catch-E Driver Id",field:"catchEId",isSortable:!0}],jf=async e=>{if(!(e instanceof nr))return"Unexpected error occurred";try{return(await e.response.json()).message||`${e.response.status} error occurred`}catch{return`${e.response.status} error occurred`}},Wf=()=>{const[e,t]=we(""),[n,r]=we(""),{searchProfilesForAccount:i}=xr(),o=["searchProfilesForAccount",tr().account.accountId];const a=qn(),{data:s,refetch:l,error:c,isFetched:u,isRefetching:d}=Xn({queryKey:o,queryFn:()=>i(e),enabled:!1,retry:!1});_e((()=>{e&&l()}),[e,l]),_e((()=>{c?(async()=>{r(await jf(c))})():r("")}),[c]),_e((()=>{u&&0===s?.length&&r("No profiles found"),d&&r("")}),[d,u,s]),_e((()=>()=>{a.removeQueries({queryKey:o})}),[a,o]);return ms($f,{columns:Hf,data:s||[],title:"Profile Search",subtitle:"Search for a profile using name or email",searchButton:{onClick:e=>{t(e)},text:"Search",error:n}})},Uf=e=>({id:e.id,catchEDriverId:e.catchEDriverId,salaryPackagedItems:e.salaryPackagedItems.map((e=>e.catchEContractId)).join(",")}),qf=e=>[{name:"Profile Id",field:"id",isSortable:!0,type:{kind:"copy"}},{name:"Catch-E Driver Id",field:"catchEDriverId",isSortable:!0},{name:"Contracts",field:"salaryPackagedItems",isSortable:!0,type:{kind:"list",navTo:(e,t)=>`${e.id}/contracts/${t}`}},{name:"Actions",field:"menu",isSortable:!1,type:{kind:"menu",items:e}}],Bf=ds.div((({isOpen:e})=>e?{display:"block"}:{display:"none"})),zf=e=>gs(Bf,{isOpen:e.isOpen,css:{position:"relative",zIndex:"10"},"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:[ms("div",{css:{position:"fixed",inset:"0px",backgroundColor:"rgb(107 114 128 / 0.75)",transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"},"aria-hidden":"true"}),ms("div",{css:{position:"fixed",inset:"0px",zIndex:"10",width:"100vw",overflowY:"auto"},children:ms("div",{css:{display:"flex",minHeight:"100%",alignItems:"flex-end",justifyContent:"center",padding:"1rem",textAlign:"center","@media (min-width: 640px)":{alignItems:"center",padding:"0px"}},children:gs("div",{css:{position:"relative",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))",overflow:"hidden",overflowWrap:"break-word",borderRadius:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",textAlign:"left","--tw-shadow":"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms","@media (min-width: 640px)":{marginTop:"2rem",marginBottom:"2rem",width:"100%",maxWidth:"24rem"}},children:[ms("div",{children:e.children}),ms("div",{css:{position:"absolute",right:"0px",top:"0px",padding:"0.5rem"},children:ms("button",{type:"button",onClick:e.onClose,children:ms(Ff,{css:{height:"1.25rem",width:"1.25rem"}})})})]})})})]}),Qf=()=>{const{linkedProfilesForAccount:e,unlinkProfile:t}=xr(),[n,r]=we(""),i=_i(),o=ki(),a=qn(),{data:s,error:l}=Xn({queryKey:[sr],queryFn:e}),c=Ee((()=>s?.map(Uf)),[s]),u=[{label:"Unlink",onClick:Jn({mutationFn:t,onSuccess:()=>{a.invalidateQueries({queryKey:[sr]})},onError:async e=>{r(await jf(e))}}).mutate}];return _e((()=>{l?(async()=>{r(await jf(l))})():r("")}),[l]),gs(hs,{children:[ms($f,{columns:qf(u),data:c||[],title:"Linked Profiles",subtitle:"Linked profiles for this account",error:n}),ms(zf,{isOpen:null!==o,onClose:()=>i("/profiles"),children:ms($i,{})})]})},Kf=ds.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))"}}),Vf=ds.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"}),Gf=e=>{const[t,n]=we(!1);((e,t)=>{const n=ke();_e((()=>{n.current=e}),[e]),_e((()=>{if(t){const e=setInterval(((...e)=>n?.current?.(...e)),t);return()=>clearInterval(e)}}),[t])})((async()=>{await e.onCheck()&&n(!1)}),t?e.checkInterval:void 0),_e((()=>{if(t){const r=setTimeout((()=>{t&&e.onTimeout(),n(!1)}),e.timeout);return()=>clearTimeout(r)}}));return ms(Kf,{onClick:async()=>{n(!0),await e.onClick()||n(!1)},disabled:t,children:t?gs(hs,{children:[ms(Vf,{}),ms("span",{css:{marginLeft:"0.5rem"},children:e.processingText})]}):ms(hs,{children:e.text})})},Yf=e=>{const t=_i(),{ingestClient:n,checkProfileSearchAuthorization:r}=xr(),i=Xn({queryKey:[cr],queryFn:r});_e((()=>{i.error&&e.onError(i.error.message)}),[e,i]),_e((()=>{"Linked"===i.data?.status&&t("/")}),[i.data,t]);return gs("div",{children:[ms("h1",{css:{marginBottom:"1rem",marginLeft:"1rem","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:i?.data?.message}),ms(Gf,{onClick:async()=>{try{return await n(),!0}catch(t){return e.onError(await jf(t)),!1}},onCheck:async()=>(await i.refetch(),!1),onTimeout:()=>e.onError("Client sync took too long. Please confirm you have updated Catch-E correctly, refresh the page and try again."),checkInterval:5e3,timeout:3e4,text:"Sync Clients",processingText:"Syncing..."})]})},Xf=ds.div`
|
|
22
12
|
width: ${({width:e})=>e?`${e}rem`:"100%"};
|
|
23
13
|
height: ${({height:e})=>e}rem;
|
|
24
|
-
`,
|
|
14
|
+
`,Jf=({height:e,width:t,className:n})=>ms("div",{className:n,children:ms("div",{css:{display:"flex",height:"100%","@keyframes pulse":{"50%":{opacity:".5"}},animation:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",flexDirection:"row"},children:ms(Xf,{width:t,height:e,css:{marginTop:"auto",marginBottom:"auto",borderRadius:"0.25rem","--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-opacity))"}})})}),Zf=()=>{const{salaryPackagedItem:e,linkedProfilesForAccount:t,payrollAdvice:n}=xr(),{profileId:r,contractId:i}=function(){let{matches:e}=Te(hi),t=e[e.length-1];return t?t.params:{}}(),[o,a]=we(""),s=Xn({queryKey:[sr],queryFn:t}),l=Xn({queryKey:[ur,r],queryFn:()=>r?n(r):Promise.resolve([])}),c=Ee((()=>s.data?.find((e=>e.id===r))?.salaryPackagedItems.find((e=>e.catchEContractId===i))?.itemId||""),[i,r,s.data]),u=Xn({queryKey:[lr,r,c],queryFn:()=>c&&r?e(r,c):Promise.resolve(void 0)});_e((()=>{u.error&&a(u.error.message),l.error&&a(l.error.message)}),[u.error,l.error]);const d=Ee((()=>{return s.isPending||u.isPending?void 0:(e=s.data?.find((e=>e.id===r)),t=u.data,{id:e?.salaryPackagedItems.find((e=>e.itemId===t?.itemId))?.catchEContractId||"",status:t?.status||"",start:t?.details.contractStart||"",end:t?.details.contractEnd||"",term:t?.details.termInMonths?`${t?.details.termInMonths} months`:"",vehicle:t?.details.vehicle.description||"",fbtValue:t?.details.vehicle.fbtCapitalValue.toString()||""});var e,t}),[s,u,r]),f=Ee((()=>l.data?.find((e=>"active"===e.status))),[l.data]);return{contractData:d,payrollAdviceData:f,contractPayrollAdviceData:Ee((()=>{const e=f?.salaryPackagedItems.find((e=>e.itemId===c));return e?{preTax:e.deduction.preTaxExGst,postTax:e.deduction.postTaxIncGst,luxuryCarCharge:e.deduction.luxuryCarCharge||0}:void 0}),[f,c]),error:o,isPayrollAdvicePending:l.isPending}},ep=({name:e,value:t})=>gs("div",{className:"=gap-4",css:{display:"grid",gridTemplateColumns:"repeat(5, minmax(0, 1fr))",paddingTop:"0.5rem",paddingBottom:"0.5rem"},children:[ms("dt",{css:{gridColumn:"span 2 / span 2",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e}),t?ms("dd",{css:{gridColumn:"span 3 / span 3",marginTop:"0px",fontSize:"0.875rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:t}):ms(Jf,{css:{gridColumn:"span 3 / span 3"},height:1,width:8})]}),tp=()=>{const{contractData:e,payrollAdviceData:t,contractPayrollAdviceData:n,error:r,isPayrollAdvicePending:i}=Zf();return ms(hs,{children:ms("div",r?{css:{"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:r}:{css:{"@media (min-width: 1024px)":{gridColumnStart:"3",gridRowEnd:"1"}},children:ms("div",{css:{borderRadius:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-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), 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(17 24 39 / 0.05)"},children:gs("dl",{css:{display:"flex",flexWrap:"wrap"},children:[gs("div",{css:{flex:"1 1 auto",paddingLeft:"1.5rem",paddingTop:"1.5rem"},children:[ms("dt",{css:{fontSize:"0.875rem",lineHeight:"1.5rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Contract"}),ms("dd",{css:{marginTop:"0.25rem",fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e?.id})]}),gs("div",{css:{flex:"none",alignSelf:"flex-end",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem"},children:[ms("dt",{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Status"}),ms("dd",{css:{display:"inline-flex",alignItems:"center",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(240 253 244 / var(--tw-bg-opacity))",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(21 128 61 / var(--tw-text-opacity))","--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)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","--tw-ring-color":"rgb(22 163 74 / 0.2)"},children:"active"===e?.status?"Active":e?.status})]}),ms("div",{css:{marginTop:"1.5rem",display:"flex",width:"100%",flex:"none",columnGap:"1rem",borderTopWidth:"1px",borderColor:"rgb(17 24 39 / 0.05)",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1.5rem"},children:gs("dl",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(243 244 246 / var(--tw-divide-opacity))"}},children:[ms(ep,{name:"Vehicle",value:e?.vehicle}),ms(ep,{name:"FBT Value",value:yf(e?.fbtValue)}),ms(ep,{name:"Period",value:e?`${vf(e.start)} to ${vf(e.end)}`:void 0}),ms(ep,{name:"Term",value:e?.term}),ms("div",{className:"=gap-4",css:{display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",paddingTop:"0.5rem",paddingBottom:"0.5rem"},children:gs("dt",{css:{gridColumn:"span 4 / span 4",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:["Deductions",i?"":` for ${vf(t?.fromDate)} to ${vf(t?.toDate)}`]})}),ms(ep,{name:"Pre-Tax Ex GST",value:yf(n?.preTax)}),ms(ep,{name:"Post-Tax Inc GST",value:yf(n?.postTax)}),ms(ep,{name:"Luxury Vehicle Adjustment",value:yf(n?.luxuryCarCharge)})]})})]})})})})},np=e=>({invoiceRef:e.invoiceRef,postedDate:e.postedDate,status:e.status,amountNet:yf(e.amountNet)||"$0",amountGst:yf(e.amountGst)||"$0",amountReceived:yf(e.amountRecieved)||"$0"}),rp=[{name:"Reference",field:"invoiceRef",isSortable:!0},{name:"Posted Date",field:"postedDate",isSortable:!0,type:{kind:"date"}},{name:"Status",field:"status",isSortable:!0,type:{kind:"status"}},{name:"Net",field:"amountNet",isSortable:!0},{name:"Gst",field:"amountGst",isSortable:!0},{name:"Received",field:"amountReceived",isSortable:!0}],ip=()=>{const{data:e,error:t}=(()=>{const{invoices:e}=xr(),[t,n]=we(""),r=Xn({queryKey:[dr],queryFn:e}),i=Ee((()=>r.data?.data.map(np)),[r]);return _e((()=>{r.isError?n(r.error.message):n("")}),[r]),{data:i,error:t}})();return ms($f,{columns:rp,data:e||[],title:"Invoices",subtitle:"Posted invoices for this account",error:t})},op=e=>{const[t]=we(je.create(e.accessToken)),n=Ee((()=>({account:{accountId:e.accountId},backend:{url:e.backendUrl.replace(/\/?$/,""),accessToken:e.accessToken}})),[e]),[r,i]=we(),o=_i();_e((()=>{t&&!t.isAuthorized&&(i("Access Denied"),o("error"))}),[t,o]);const a=e=>{i(e),o("error")};return ms(er.Provider,{value:n,children:gs(Wi,{children:[gs(Hi,{path:"",element:ms(ys,{onError:a}),children:[ms(Hi,{index:!0,element:ms(Ni,{to:"search",replace:!0})}),ms(Hi,{path:"search",element:ms(Wf,{})}),ms(Hi,{path:"profiles",element:ms(Qf,{}),children:ms(Hi,{path:":profileId/contracts/:contractId",element:ms(tp,{})})}),ms(Hi,{path:"invoices",element:ms(ip,{})})]}),ms(Hi,{path:"error",element:r?ms("h1",{css:{"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:r}):ms(Ni,{to:"/search",replace:!0})}),ms(Hi,{path:"unlinked",element:ms(Yf,{onError:a})}),ms(Hi,{path:"*",element:ms("h1",{css:{"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:"Page not found"})})]})})},ap=is({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},":host":{"--fl-color-primary-900":"#000563","--fl-color-primary-800":"#031495","--fl-color-primary-700":"#1033c6","--fl-color-primary-600":"#2e66f7","--fl-color-primary-500":"#5786f8","--fl-color-primary-400":"#88abfa","--fl-color-primary-300":"#b5cbfb","--fl-color-primary-200":"#d6e2fc","--fl-color-primary-100":"#eaf0fe","--fl-color-primary-50":"#f2f6ff","--kit-font-family":"Inter, 'Source Sans Pro', sans-serif",fontFamily:"Inter, 'Source Sans Pro', sans-serif"}}),sp=()=>gs(P,{children:[ms(rs,{styles:is`
|
|
25
15
|
${{"*, ::before, ::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"#e5e7eb","--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"::before, ::after":{"--tw-content":"''"},"html, :host":{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:"4",fontFamily:'Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontFeatureSettings:" normal",fontVariationSettings:" normal",WebkitTapHighlightColor:"transparent"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1, h2, h3, h4, h5, h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontFeatureSettings:" normal",fontVariationSettings:" normal",fontSize:"1em"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button, input, optgroup, select, textarea":{fontFamily:"inherit",fontFeatureSettings:"inherit",fontVariationSettings:"inherit",fontSize:"100%",fontWeight:"inherit",lineHeight:"inherit",letterSpacing:"inherit",color:"inherit",margin:"0",padding:"0"},"button, select":{textTransform:"none"},"button, input:where([type='button']), input:where([type='reset']), input:where([type='submit'])":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button, ::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol, ul, menu":{listStyle:"none",margin:"0",padding:"0"},dialog:{padding:"0"},textarea:{resize:"vertical"},"input::placeholder, textarea::placeholder":{opacity:"1",color:"#9ca3af"},'button, [role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},"img, video":{maxWidth:"100%",height:"auto"},'[hidden]:where(:not([hidden="until-found"]))':{display:"none"},"::backdrop":{"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select":{appearance:"none",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px",borderRadius:"0px",paddingTop:"0.5rem",paddingRight:"0.75rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-shadow":"0 0 #0000"},"[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--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)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)",borderColor:"#2563eb"},"input::placeholder,textarea::placeholder":{color:"#6b7280",opacity:"1"},"::-webkit-datetime-edit-fields-wrapper":{padding:"0"},"::-webkit-date-and-time-value":{minHeight:"1.5em",textAlign:"inherit"},"::-webkit-datetime-edit":{display:"inline-flex"},"::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field":{paddingTop:"0",paddingBottom:"0"},select:{backgroundImage:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\")",backgroundPosition:"right 0.5rem center",backgroundRepeat:"no-repeat",backgroundSize:"1.5em 1.5em",paddingRight:"2.5rem",printColorAdjust:"exact"},'[multiple],[size]:where(select:not([size="1"]))':{backgroundImage:"initial",backgroundPosition:"initial",backgroundRepeat:"unset",backgroundSize:"initial",paddingRight:"0.75rem",printColorAdjust:"unset"},"[type='checkbox'],[type='radio']":{appearance:"none",padding:"0",printColorAdjust:"exact",display:"inline-block",verticalAlign:"middle",backgroundOrigin:"border-box",userSelect:"none",flexShrink:"0",height:"1rem",width:"1rem",color:"#2563eb",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px","--tw-shadow":"0 0 #0000"},"[type='checkbox']":{borderRadius:"0px"},"[type='radio']":{borderRadius:"100%"},"[type='checkbox']:focus,[type='radio']:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--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)"},"[type='checkbox']:checked,[type='radio']:checked":{borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:checked":{backgroundImage:"url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e\")"},"@media (forced-colors: active)":{"[type='checkbox']:checked":{appearance:"auto"},"[type='radio']:checked":{appearance:"auto"},"[type='checkbox']:indeterminate":{appearance:"auto"}},"[type='radio']:checked":{backgroundImage:"url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e\")"},"[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='checkbox']:indeterminate":{backgroundImage:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e\")",borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='file']":{background:"unset",borderColor:"inherit",borderWidth:"0",borderRadius:"0",padding:"0",fontSize:"unset",lineHeight:"inherit"},"[type='file']:focus":{outline:"1px auto -webkit-focus-ring-color"}}}
|
|
26
|
-
`}),
|
|
16
|
+
`}),ms(rs,{styles:ap})]}),lp=()=>{const e=window.location.hash.split("#").pop()||"",t=e.lastIndexOf("/salary-packaging-configuration");return t>-1?e.substring(0,t+31):"/"};!function(e,t,n,r){function i(){var t=Reflect.construct(HTMLElement,[],i);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=ee,i.prototype.attributeChangedCallback=ne,i.prototype.disconnectedCallback=re,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach((function(e){Object.defineProperty(i.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,i)}((e=>{const t=ke(null),{EmotionProvider:n}=((e,t)=>{const[n,r]=we();return _e((()=>{const n=e=>{t&&t.current?e():requestAnimationFrame((()=>n(e)))};n((()=>{r(ka({container:t.current,key:e,speedy:!1}))}))}),[e,t]),{EmotionProvider:({children:e})=>n?ms(Va,{value:n,children:e}):ms(hs,{})}})("superhero-salpac-profile-admin",t);return gs(hs,{children:[ms("head",{ref:t}),gs(n,{children:[ms(sp,{}),ms(Bn,{client:Zn||(Zn=new Rt({defaultOptions:{queries:{retry:(e,t)=>t instanceof nr&&![401,403].includes(t.response?.status||0)}}})),children:ms(uo,{basename:lp(),children:ms("body",{children:ms(op,{backendUrl:e.backendUrl||"",accessToken:e.accessToken||"",accountId:e.accountId||""})})})})]})]})}),"superhero-salpac-profile-admin",["backend-url","access-token","account-id"],{shadow:!0})}();
|