@flarehr/salpac-finops-admin 1.0.479 → 1.0.481
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/salpac-finops-admin.js +41 -11
- package/package.json +8 -5
|
@@ -1,20 +1,50 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var er,B,as,gt,ei,ls,Pn,Yn,Fn,Ln,cs,Jt={},us=[],ll=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Vr=Array.isArray;function Xe(e,t){for(var r in t)e[r]=t[r];return e}function ds(e){var t=e.parentNode;t&&t.removeChild(e)}function K(e,t,r){var n,o,i,s={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?er.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return Wt(e,s,n,o,null)}function Wt(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++as,__i:-1,__u:0};return o==null&&B.vnode!=null&&B.vnode(i),i}function Qn(){return{current:null}}function Z(e){return e.children}function Ne(e,t){this.props=e,this.context=t}function xt(e,t){if(t==null)return e.__?xt(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?xt(e):null}function fs(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return fs(e)}}function $n(e){(!e.__d&&(e.__d=!0)&>.push(e)&&!Sr.__r++||ei!==B.debounceRendering)&&((ei=B.debounceRendering)||ls)(Sr)}function Sr(){var e,t,r,n,o,i,s,a;for(gt.sort(Pn);e=gt.shift();)e.__d&&(t=gt.length,n=void 0,i=(o=(r=e).__v).__e,s=[],a=[],r.__P&&((n=Xe({},o)).__v=o.__v+1,B.vnode&&B.vnode(n),Zn(r.__P,n,o,r.__n,r.__P.namespaceURI,32&o.__u?[i]:null,s,i??xt(o),!!(32&o.__u),a),n.__v=o.__v,n.__.__k[n.__i]=n,ms(s,n,a),n.__e!=i&&fs(n)),gt.length>t&>.sort(Pn));Sr.__r=0}function ps(e,t,r,n,o,i,s,a,c,d,u){var l,b,g,p,y,h=n&&n.__k||us,_=t.length;for(r.__d=c,cl(r,t,h),c=r.__d,l=0;l<_;l++)(g=r.__k[l])!=null&&typeof g!="boolean"&&typeof g!="function"&&(b=g.__i===-1?Jt:h[g.__i]||Jt,g.__i=l,Zn(e,g,b,o,i,s,a,c,d,u),p=g.__e,g.ref&&b.ref!=g.ref&&(b.ref&&eo(b.ref,null,g),u.push(g.ref,g.__c||p,g)),y==null&&p!=null&&(y=p),65536&g.__u||b.__k===g.__k?(c&&!c.isConnected&&(c=xt(b)),c=hs(g,c,e)):typeof g.type=="function"&&g.__d!==void 0?c=g.__d:p&&(c=p.nextSibling),g.__d=void 0,g.__u&=-196609);r.__d=c,r.__e=y}function cl(e,t,r){var n,o,i,s,a,c=t.length,d=r.length,u=d,l=0;for(e.__k=[],n=0;n<c;n++)s=n+l,(o=e.__k[n]=(o=t[n])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Wt(null,o,null,null,null):Vr(o)?Wt(Z,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Wt(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=ul(o,r,s,u),o.__i=a,i=null,a!==-1&&(u--,(i=r[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&l--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a===s+1?l++:a>s?u>c-s?l+=a-s:l--:a<s?a==s-1&&(l=a-s):l=0,a!==n+l&&(o.__u|=65536))):(i=r[s])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=xt(i)),Dn(i,i,!1),r[s]=null,u--);if(u)for(n=0;n<d;n++)(i=r[n])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=xt(i)),Dn(i,i))}function hs(e,t,r){var n,o;if(typeof e.type=="function"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=hs(n[o],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Ye(e,t){return t=t||[],e==null||typeof e=="boolean"||(Vr(e)?e.some(function(r){Ye(r,t)}):t.push(e)),t}function ul(e,t,r,n){var o=e.key,i=e.type,s=r-1,a=r+1,c=t[r];if(c===null||c&&o==c.key&&i===c.type&&!(131072&c.__u))return r;if(n>(c!=null&&!(131072&c.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&i===c.type)return s;s--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&i===c.type)return a;a++}}return-1}function ti(e,t,r){t[0]==="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||ll.test(t)?r:r+"px"}function cr(e,t,r,n,o){var i;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||ti(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||ti(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=Yn,e.addEventListener(t,i?Ln:Fn,i)):e.removeEventListener(t,i?Ln:Fn,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,r))}}function ri(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=Yn++;else if(t.t<r.u)return;return r(B.event?B.event(t):t)}}}function Zn(e,t,r,n,o,i,s,a,c,d){var u,l,b,g,p,y,h,_,S,E,L,F,A,O,V,U=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),i=[a=t.__e=r.__e]),(u=B.__b)&&u(t);e:if(typeof U=="function")try{if(_=t.props,S=(u=U.contextType)&&n[u.__c],E=u?S?S.props.value:u.__:n,r.__c?h=(l=t.__c=r.__c).__=l.__E:("prototype"in U&&U.prototype.render?t.__c=l=new U(_,E):(t.__c=l=new Ne(_,E),l.constructor=U,l.render=fl),S&&S.sub(l),l.props=_,l.state||(l.state={}),l.context=E,l.__n=n,b=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),U.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Xe({},l.__s)),Xe(l.__s,U.getDerivedStateFromProps(_,l.__s))),g=l.props,p=l.state,l.__v=t,b)U.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(U.getDerivedStateFromProps==null&&_!==g&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(_,E),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(_,l.__s,E)===!1||t.__v===r.__v)){for(t.__v!==r.__v&&(l.props=_,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(H){H&&(H.__=t)}),L=0;L<l._sb.length;L++)l.__h.push(l._sb[L]);l._sb=[],l.__h.length&&s.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(_,l.__s,E),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(g,p,y)})}if(l.context=E,l.props=_,l.__P=e,l.__e=!1,F=B.__r,A=0,"prototype"in U&&U.prototype.render){for(l.state=l.__s,l.__d=!1,F&&F(t),u=l.render(l.props,l.state,l.context),O=0;O<l._sb.length;O++)l.__h.push(l._sb[O]);l._sb=[]}else do l.__d=!1,F&&F(t),u=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++A<25);l.state=l.__s,l.getChildContext!=null&&(n=Xe(Xe({},n),l.getChildContext())),b||l.getSnapshotBeforeUpdate==null||(y=l.getSnapshotBeforeUpdate(g,p)),ps(e,Vr(V=u!=null&&u.type===Z&&u.key==null?u.props.children:u)?V:[V],t,r,n,o,i,s,a,c,d),l.base=t.__e,t.__u&=-161,l.__h.length&&s.push(l),h&&(l.__E=l.__=null)}catch(H){t.__v=null,c||i!=null?(t.__e=a,t.__u|=c?160:32,i[i.indexOf(a)]=null):(t.__e=r.__e,t.__k=r.__k),B.__e(H,t,r)}else i==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=dl(r.__e,t,r,n,o,i,s,c,d);(u=B.diffed)&&u(t)}function ms(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)eo(r[n],r[++n],r[++n]);B.__c&&B.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){B.__e(i,o.__v)}})}function dl(e,t,r,n,o,i,s,a,c){var d,u,l,b,g,p,y,h=r.props,_=t.props,S=t.type;if(S==="svg"?o="http://www.w3.org/2000/svg":S==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((g=i[d])&&"setAttribute"in g==!!S&&(S?g.localName===S:g.nodeType===3)){e=g,i[d]=null;break}}if(e==null){if(S===null)return document.createTextNode(_);e=document.createElementNS(o,S,_.is&&_),i=null,a=!1}if(S===null)h===_||a&&e.data===_||(e.data=_);else{if(i=i&&er.call(e.childNodes),h=r.props||Jt,!a&&i!=null)for(h={},d=0;d<e.attributes.length;d++)h[(g=e.attributes[d]).name]=g.value;for(d in h)if(g=h[d],d!="children"){if(d=="dangerouslySetInnerHTML")l=g;else if(d!=="key"&&!(d in _)){if(d=="value"&&"defaultValue"in _||d=="checked"&&"defaultChecked"in _)continue;cr(e,d,null,g,o)}}for(d in _)g=_[d],d=="children"?b=g:d=="dangerouslySetInnerHTML"?u=g:d=="value"?p=g:d=="checked"?y=g:d==="key"||a&&typeof g!="function"||h[d]===g||cr(e,d,g,h[d],o);if(u)a||l&&(u.__html===l.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(l&&(e.innerHTML=""),ps(e,Vr(b)?b:[b],t,r,n,S==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:r.__k&&xt(r,0),a,c),i!=null)for(d=i.length;d--;)i[d]!=null&&ds(i[d]);a||(d="value",p!==void 0&&(p!==e[d]||S==="progress"&&!p||S==="option"&&p!==h[d])&&cr(e,d,p,h[d],o),d="checked",y!==void 0&&y!==e[d]&&cr(e,d,y,h[d],o))}return e}function eo(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){B.__e(n,r)}}function Dn(e,t,r){var n,o;if(B.unmount&&B.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||eo(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){B.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Dn(n[o],t,r||typeof e.type!="function");r||e.__e==null||ds(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function fl(e,t,r){return this.constructor(e,r)}function ut(e,t,r){var n,o,i,s;B.__&&B.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],s=[],Zn(t,e=(!n&&r||t).__k=K(Z,null,[e]),o||Jt,Jt,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?er.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,s),ms(i,e,s)}function to(e,t){ut(e,t,to)}function ro(e,t,r){var n,o,i,s,a=Xe({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?er.call(arguments,2):r),Wt(e.type,a,n||e.key,o||e.ref,null)}function et(e,t){var r={__c:t="__cC"+cs++,__:e,Consumer:function(n,o){return n.children(o)},Provider:function(n){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(a){a.__e=!0,$n(a)})},this.sub=function(s){o.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),a&&a.call(s)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}er=us.slice,B={__e:function(e,t,r,n){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},as=0,Ne.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Xe({},this.state),typeof e=="function"&&(e=e(Xe({},r),this.props)),e&&Xe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),$n(this))},Ne.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),$n(this))},Ne.prototype.render=Z,gt=[],ls=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Pn=function(e,t){return e.__v.__b-t.__v.__b},Sr.__r=0,Yn=0,Fn=ri(!1),Ln=ri(!0),cs=0;function no(){return(no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var pl=["context","children"];function hl(e){this.getChildContext=function(){return e.context};var t=e.children,r=function(n,o){if(n==null)return{};var i,s,a={},c=Object.keys(n);for(s=0;s<c.length;s++)o.indexOf(i=c[s])>=0||(a[i]=n[i]);return a}(e,pl);return ro(t,r)}function ml(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=K(hl,no({},this._props,{context:e.detail.context}),function t(r,n){if(r.nodeType===3)return r.data;if(r.nodeType!==1)return null;var o=[],i={},s=0,a=r.attributes,c=r.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[gs(a[s].name)]=a[s].value);for(s=c.length;s--;){var d=t(c[s],null),u=c[s].slot;u?i[u]=K(ni,{name:u},d):o[s]=d}var l=n?K(ni,null,o):o;return K(n||r.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?to:ut)(this._vdom,this._root)}function gs(e){return e.replace(/-(\w)/g,function(t,r){return r?r.toUpperCase():""})}function gl(e,t,r){if(this._vdom){var n={};n[e]=r=r??void 0,n[gs(e)]=r,this._vdom=ro(this._vdom,n),ut(this._vdom,this._root)}}function yl(){ut(this._vdom=null,this._root)}function ni(e,t){var r=this;return K("slot",no({},e,{ref:function(n){n?(r.ref=n,r._listener||(r._listener=function(o){o.stopPropagation(),o.detail.context=t},n.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function vl(e,t,r,n){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=n&&n.shadow?i.attachShadow({mode:n.mode||"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=ml,o.prototype.attributeChangedCallback=gl,o.prototype.disconnectedCallback=yl,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=r,r.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t,o)}var Ze,Y,pn,oi,Ft=0,ys=[],hr=[],ne=B,ii=ne.__b,si=ne.__r,ai=ne.diffed,li=ne.__c,ci=ne.unmount,ui=ne.__;function Et(e,t){ne.__h&&ne.__h(Y,e,Ft||t),Ft=0;var r=Y.__H||(Y.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:hr}),r.__[e]}function ee(e){return Ft=1,tr(vs,e)}function tr(e,t,r){var n=Et(Ze++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):vs(void 0,t),function(a){var c=n.__N?n.__N[0]:n.__[0],d=n.t(c,a);c!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=Y,!Y.u)){var o=function(a,c,d){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(b){return!!b.__c});if(u.every(function(b){return!b.__N}))return!i||i.call(this,a,c,d);var l=!1;return u.forEach(function(b){if(b.__N){var g=b.__[0];b.__=b.__N,b.__N=void 0,g!==b.__[0]&&(l=!0)}}),!(!l&&n.__c.props===a)&&(!i||i.call(this,a,c,d))};Y.u=!0;var i=Y.shouldComponentUpdate,s=Y.componentWillUpdate;Y.componentWillUpdate=function(a,c,d){if(this.__e){var u=i;i=void 0,o(a,c,d),i=u}s&&s.call(this,a,c,d)},Y.shouldComponentUpdate=o}return n.__N||n.__}function te(e,t){var r=Et(Ze++,3);!ne.__s&&ao(r.__H,t)&&(r.__=e,r.i=t,Y.__H.__h.push(r))}function ft(e,t){var r=Et(Ze++,4);!ne.__s&&ao(r.__H,t)&&(r.__=e,r.i=t,Y.__h.push(r))}function z(e){return Ft=5,Se(function(){return{current:e}},[])}function oo(e,t,r){Ft=6,ft(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},r==null?r:r.concat(e))}function Se(e,t){var r=Et(Ze++,7);return ao(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function at(e,t){return Ft=8,Se(function(){return e},t)}function Fe(e){var t=Y.context[e.__c],r=Et(Ze++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Y)),t.props.value):e.__}function io(e,t){ne.useDebugValue&&ne.useDebugValue(t?t(e):e)}function bl(e){var t=Et(Ze++,10),r=ee();return t.__=e,Y.componentDidCatch||(Y.componentDidCatch=function(n,o){t.__&&t.__(n,o),r[1](n)}),[r[0],function(){r[1](void 0)}]}function so(){var e=Et(Ze++,11);if(!e.__){for(var t=Y.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function _l(){for(var e;e=ys.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(mr),e.__H.__h.forEach(Nn),e.__H.__h=[]}catch(t){e.__H.__h=[],ne.__e(t,e.__v)}}ne.__b=function(e){Y=null,ii&&ii(e)},ne.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ui&&ui(e,t)},ne.__r=function(e){si&&si(e),Ze=0;var t=(Y=e.__c).__H;t&&(pn===Y?(t.__h=[],Y.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=hr,r.__N=r.i=void 0})):(t.__h.forEach(mr),t.__h.forEach(Nn),t.__h=[],Ze=0)),pn=Y},ne.diffed=function(e){ai&&ai(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ys.push(t)!==1&&oi===ne.requestAnimationFrame||((oi=ne.requestAnimationFrame)||wl)(_l)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==hr&&(r.__=r.__V),r.i=void 0,r.__V=hr})),pn=Y=null},ne.__c=function(e,t){t.some(function(r){try{r.__h.forEach(mr),r.__h=r.__h.filter(function(n){return!n.__||Nn(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],ne.__e(n,r.__v)}}),li&&li(e,t)},ne.unmount=function(e){ci&&ci(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{mr(n)}catch(o){t=o}}),r.__H=void 0,t&&ne.__e(t,r.__v))};var di=typeof requestAnimationFrame=="function";function wl(e){var t,r=function(){clearTimeout(n),di&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);di&&(t=requestAnimationFrame(r))}function mr(e){var t=Y,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Y=t}function Nn(e){var t=Y;e.__c=e.__(),Y=t}function ao(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function vs(e,t){return typeof t=="function"?t(e):t}function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},In.apply(null,arguments)}function bs(e,t){for(var r in t)e[r]=t[r];return e}function Vn(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Er(e,t){this.props=e,this.context=t}function _s(e,t){function r(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:Vn(this.props,o)}function n(o){return this.shouldComponentUpdate=r,K(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(Er.prototype=new Ne).isPureReactComponent=!0,Er.prototype.shouldComponentUpdate=function(e,t){return Vn(this.props,e)||Vn(this.state,t)};var fi=B.__b;B.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),fi&&fi(e)};var xl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function tt(e){function t(r){var n=bs({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=xl,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var pi=function(e,t){return e==null?null:Ye(Ye(e).map(t))},ws={map:pi,forEach:pi,count:function(e){return e?Ye(e).length:0},only:function(e){var t=Ye(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ye},Sl=B.__e;B.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Sl(e,t,r,n)};var hi=B.unmount;function xs(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=bs({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return xs(n,t,r)})),e}function Ss(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ss(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function qt(){this.__u=0,this.t=null,this.__b=null}function Es(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ks(e){var t,r,n;function o(i){if(t||(t=e()).then(function(s){r=s.default||s},function(s){n=s}),n)throw n;if(!r)throw t;return K(r,i)}return o.displayName="Lazy",o.__f=!0,o}function Ot(){this.u=null,this.o=null}B.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),hi&&hi(e)},(qt.prototype=new Ne).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var o=Es(n.__v),i=!1,s=function(){i||(i=!0,r.__R=null,o?o(a):a())};r.__R=s;var a=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Ss(c,c.__c.__P,c.__c.__O)}var d;for(n.setState({__a:n.__b=null});d=n.t.pop();)d.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},qt.prototype.componentWillUnmount=function(){this.t=[]},qt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=xs(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&K(Z,null,e.fallback);return o&&(o.__u&=-33),[K(Z,null,t.__a?null:e.children),o]};var mi=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function El(e){return this.getChildContext=function(){return e.context},e.children}function kl(e){var t=this,r=e.i;t.componentWillUnmount=function(){ut(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n)},insertBefore:function(n,o){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),ut(K(El,{context:t.context},e.__v),t.l)}function Cs(e,t){var r=K(kl,{__v:e,i:t});return r.containerInfo=t,r}(Ot.prototype=new Ne).__a=function(e){var t=this,r=Es(t.__v),n=t.o.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),mi(t,e,n)):o()};r?r(i):i()}},Ot.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ye(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Ot.prototype.componentDidUpdate=Ot.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){mi(e,r,t)})};var Ts=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Cl=/^(?: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]/,Tl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Rl=/[A-Z0-9]/g,Ol=typeof document<"u",Al=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Rs(e,t,r){return t.__k==null&&(t.textContent=""),ut(e,t),typeof r=="function"&&r(),e?e.__c:null}function Os(e,t,r){return to(e,t),typeof r=="function"&&r(),e?e.__c:null}Ne.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ne.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var gi=B.event;function Pl(){}function Fl(){return this.cancelBubble}function Ll(){return this.defaultPrevented}B.event=function(e){return gi&&(e=gi(e)),e.persist=Pl,e.isPropagationStopped=Fl,e.isDefaultPrevented=Ll,e.nativeEvent=e};var lo,$l={enumerable:!1,configurable:!0,get:function(){return this.class}},yi=B.vnode;B.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={};for(var i in r){var s=r[i];if(!(i==="value"&&"defaultValue"in r&&s==null||Ol&&i==="children"&&n==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in r&&r.value==null?i="value":i==="download"&&s===!0?s="":a==="translate"&&s==="no"?s=!1:a==="ondoubleclick"?i="ondblclick":a!=="onchange"||n!=="input"&&n!=="textarea"||Al(r.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":Tl.test(i)?i=a:n.indexOf("-")===-1&&Cl.test(i)?i=i.replace(Rl,"-$&").toLowerCase():s===null&&(s=void 0):a=i="oninput",a==="oninput"&&o[i=a]&&(i="oninputCapture"),o[i]=s}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Ye(r.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Ye(r.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",$l)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=Ts,yi&&yi(e)};var vi=B.__r;B.__r=function(e){vi&&vi(e),lo=e.__c};var bi=B.diffed;B.diffed=function(e){bi&&bi(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),lo=null};var As={ReactCurrentDispatcher:{current:{readContext:function(e){return lo.__n[e.__c].props.value},useCallback:at,useContext:Fe,useDebugValue:io,useDeferredValue:fo,useEffect:te,useId:so,useImperativeHandle:oo,useInsertionEffect:ho,useLayoutEffect:ft,useMemo:Se,useReducer:tr,useRef:z,useState:ee,useSyncExternalStore:mo,useTransition:po}}},Dl="17.0.2";function Ps(e){return K.bind(null,e)}function Dt(e){return!!e&&e.$$typeof===Ts}function Fs(e){return Dt(e)&&e.type===Z}function Ls(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function co(e){return Dt(e)?ro.apply(null,arguments):e}function $s(e){return!!e.__k&&(ut(null,e),!0)}function Ds(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ns=function(e,t){return e(t)},Is=function(e,t){return e(t)},Vs=Z;function uo(e){e()}function fo(e){return e}function po(){return[!1,uo]}var ho=ft,Bs=Dt;function mo(e,t){var r=t(),n=ee({h:{__:r,v:t}}),o=n[0].h,i=n[1];return ft(function(){o.__=r,o.v=t,hn(o)&&i({h:o})},[e,r,t]),te(function(){return hn(o)&&i({h:o}),e(function(){hn(o)&&i({h:o})})},[e]),r}function hn(e){var t,r,n=e.v,o=e.__;try{var i=n();return!((t=o)===(r=i)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}var $={useState:ee,useId:so,useReducer:tr,useEffect:te,useLayoutEffect:ft,useInsertionEffect:ho,useTransition:po,useDeferredValue:fo,useSyncExternalStore:mo,startTransition:uo,useRef:z,useImperativeHandle:oo,useMemo:Se,useCallback:at,useContext:Fe,useDebugValue:io,version:"17.0.2",Children:ws,render:Rs,hydrate:Os,unmountComponentAtNode:$s,createPortal:Cs,createElement:K,createContext:et,createFactory:Ps,cloneElement:co,createRef:Qn,Fragment:Z,isValidElement:Dt,isElement:Bs,isFragment:Fs,isMemo:Ls,findDOMNode:Ds,Component:Ne,PureComponent:Er,memo:_s,forwardRef:tt,flushSync:Is,unstable_batchedUpdates:Ns,StrictMode:Vs,Suspense:qt,SuspenseList:Ot,lazy:ks,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:As};const kr=Object.freeze(Object.defineProperty({__proto__:null,Children:ws,Component:Ne,Fragment:Z,PureComponent:Er,StrictMode:Vs,Suspense:qt,SuspenseList:Ot,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:As,cloneElement:co,createContext:et,createElement:K,createFactory:Ps,createPortal:Cs,createRef:Qn,default:$,findDOMNode:Ds,flushSync:Is,forwardRef:tt,hydrate:Os,isElement:Bs,isFragment:Fs,isMemo:Ls,isValidElement:Dt,lazy:ks,memo:_s,render:Rs,startTransition:uo,unmountComponentAtNode:$s,unstable_batchedUpdates:Ns,useCallback:at,useContext:Fe,useDebugValue:io,useDeferredValue:fo,useEffect:te,useErrorBoundary:bl,useId:so,useImperativeHandle:oo,useInsertionEffect:ho,useLayoutEffect:ft,useMemo:Se,useReducer:tr,useRef:z,useState:ee,useSyncExternalStore:mo,useTransition:po,version:Dl},Symbol.toStringTag,{value:"Module"}));function Us(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Nl=/^((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|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)-.*))$/,Il=Us(function(e){return Nl.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Vl(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Bl(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ul=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Bl(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Vl(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),ye="-ms-",Cr="-moz-",W="-webkit-",Ms="comm",go="rule",yo="decl",Ml="@import",Hs="@keyframes",Hl="@layer",jl=Math.abs,Br=String.fromCharCode,zl=Object.assign;function Wl(e,t){return me(e,0)^45?(((t<<2^me(e,0))<<2^me(e,1))<<2^me(e,2))<<2^me(e,3):0}function js(e){return e.trim()}function ql(e,t){return(e=t.exec(e))?e[0]:e}function q(e,t,r){return e.replace(t,r)}function Bn(e,t){return e.indexOf(t)}function me(e,t){return e.charCodeAt(t)|0}function Xt(e,t,r){return e.slice(t,r)}function Ue(e){return e.length}function vo(e){return e.length}function ur(e,t){return t.push(e),e}function Gl(e,t){return e.map(t).join("")}var Ur=1,Lt=1,zs=0,ke=0,ce=0,Nt="";function Mr(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ur,column:Lt,length:s,return:""}}function Mt(e,t){return zl(Mr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Kl(){return ce}function Jl(){return ce=ke>0?me(Nt,--ke):0,Lt--,ce===10&&(Lt=1,Ur--),ce}function Oe(){return ce=ke<zs?me(Nt,ke++):0,Lt++,ce===10&&(Lt=1,Ur++),ce}function We(){return me(Nt,ke)}function gr(){return ke}function rr(e,t){return Xt(Nt,e,t)}function Yt(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 Ws(e){return Ur=Lt=1,zs=Ue(Nt=e),ke=0,[]}function qs(e){return Nt="",e}function yr(e){return js(rr(ke-1,Un(e===91?e+2:e===40?e+1:e)))}function Xl(e){for(;(ce=We())&&ce<33;)Oe();return Yt(e)>2||Yt(ce)>3?"":" "}function Yl(e,t){for(;--t&&Oe()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return rr(e,gr()+(t<6&&We()==32&&Oe()==32))}function Un(e){for(;Oe();)switch(ce){case e:return ke;case 34:case 39:e!==34&&e!==39&&Un(ce);break;case 40:e===41&&Un(e);break;case 92:Oe();break}return ke}function Ql(e,t){for(;Oe()&&e+ce!==57;)if(e+ce===84&&We()===47)break;return"/*"+rr(t,ke-1)+"*"+Br(e===47?e:Oe())}function Zl(e){for(;!Yt(We());)Oe();return rr(e,ke)}function ec(e){return qs(vr("",null,null,null,[""],e=Ws(e),0,[0],e))}function vr(e,t,r,n,o,i,s,a,c){for(var d=0,u=0,l=s,b=0,g=0,p=0,y=1,h=1,_=1,S=0,E="",L=o,F=i,A=n,O=E;h;)switch(p=S,S=Oe()){case 40:if(p!=108&&me(O,l-1)==58){Bn(O+=q(yr(S),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:O+=yr(S);break;case 9:case 10:case 13:case 32:O+=Xl(p);break;case 92:O+=Yl(gr()-1,7);continue;case 47:switch(We()){case 42:case 47:ur(tc(Ql(Oe(),gr()),t,r),c);break;default:O+="/"}break;case 123*y:a[d++]=Ue(O)*_;case 125*y:case 59:case 0:switch(S){case 0:case 125:h=0;case 59+u:_==-1&&(O=q(O,/\f/g,"")),g>0&&Ue(O)-l&&ur(g>32?wi(O+";",n,r,l-1):wi(q(O," ","")+";",n,r,l-2),c);break;case 59:O+=";";default:if(ur(A=_i(O,t,r,d,u,o,a,E,L=[],F=[],l),i),S===123)if(u===0)vr(O,t,A,A,L,i,l,a,F);else switch(b===99&&me(O,3)===110?100:b){case 100:case 108:case 109:case 115:vr(e,A,A,n&&ur(_i(e,A,A,0,0,o,a,E,o,L=[],l),F),o,F,l,a,n?L:F);break;default:vr(O,A,A,A,[""],F,0,a,F)}}d=u=g=0,y=_=1,E=O="",l=s;break;case 58:l=1+Ue(O),g=p;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&Jl()==125)continue}switch(O+=Br(S),S*y){case 38:_=u>0?1:(O+="\f",-1);break;case 44:a[d++]=(Ue(O)-1)*_,_=1;break;case 64:We()===45&&(O+=yr(Oe())),b=We(),u=l=Ue(E=O+=Zl(gr())),S++;break;case 45:p===45&&Ue(O)==2&&(y=0)}}return i}function _i(e,t,r,n,o,i,s,a,c,d,u){for(var l=o-1,b=o===0?i:[""],g=vo(b),p=0,y=0,h=0;p<n;++p)for(var _=0,S=Xt(e,l+1,l=jl(y=s[p])),E=e;_<g;++_)(E=js(y>0?b[_]+" "+S:q(S,/&\f/g,b[_])))&&(c[h++]=E);return Mr(e,t,r,o===0?go:a,c,d,u)}function tc(e,t,r){return Mr(e,t,r,Ms,Br(Kl()),Xt(e,2,-2),0)}function wi(e,t,r,n){return Mr(e,t,r,yo,Xt(e,0,n),Xt(e,n+1,-1),n)}function Pt(e,t){for(var r="",n=vo(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function rc(e,t,r,n){switch(e.type){case Hl:if(e.children.length)break;case Ml:case yo:return e.return=e.return||e.value;case Ms:return"";case Hs:return e.return=e.value+"{"+Pt(e.children,n)+"}";case go:e.value=e.props.join(",")}return Ue(r=Pt(e.children,n))?e.return=e.value+"{"+r+"}":""}function nc(e){var t=vo(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function oc(e){return function(t){t.root||(t=t.return)&&e(t)}}var ic=function(t,r,n){for(var o=0,i=0;o=i,i=We(),o===38&&i===12&&(r[n]=1),!Yt(i);)Oe();return rr(t,ke)},sc=function(t,r){var n=-1,o=44;do switch(Yt(o)){case 0:o===38&&We()===12&&(r[n]=1),t[n]+=ic(ke-1,r,n);break;case 2:t[n]+=yr(o);break;case 4:if(o===44){t[++n]=We()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Br(o)}while(o=Oe());return t},ac=function(t,r){return qs(sc(Ws(t),r))},xi=new WeakMap,lc=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!xi.get(n))&&!o){xi.set(t,!0);for(var i=[],s=ac(r,i),a=n.props,c=0,d=0;c<s.length;c++)for(var u=0;u<a.length;u++,d++)t.props[d]=i[c]?s[c].replace(/&\f/g,a[u]):a[u]+" "+s[c]}}},cc=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Gs(e,t){switch(Wl(e,t)){case 5103:return W+"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 W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+Cr+e+ye+e+e;case 6828:case 4268:return W+e+ye+e+e;case 6165:return W+e+ye+"flex-"+e+e;case 5187:return W+e+q(e,/(\w+).+(:[^]+)/,W+"box-$1$2"+ye+"flex-$1$2")+e;case 5443:return W+e+ye+"flex-item-"+q(e,/flex-|-self/,"")+e;case 4675:return W+e+ye+"flex-line-pack"+q(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+ye+q(e,"shrink","negative")+e;case 5292:return W+e+ye+q(e,"basis","preferred-size")+e;case 6060:return W+"box-"+q(e,"-grow","")+W+e+ye+q(e,"grow","positive")+e;case 4554:return W+q(e,/([^-])(transform)/g,"$1"+W+"$2")+e;case 6187:return q(q(q(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return q(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return q(q(e,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+ye+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return q(e,/(.+)-inline(.+)/,W+"$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(Ue(e)-1-t>6)switch(me(e,t+1)){case 109:if(me(e,t+4)!==45)break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+Cr+(me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bn(e,"stretch")?Gs(q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(me(e,t+1)!==115)break;case 6444:switch(me(e,Ue(e)-3-(~Bn(e,"!important")&&10))){case 107:return q(e,":",":"+W)+e;case 101:return q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(me(e,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+ye+"$2box$3")+e}break;case 5936:switch(me(e,t+11)){case 114:return W+e+ye+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+ye+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+ye+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+ye+e+e}return e}var uc=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case yo:t.return=Gs(t.value,t.length);break;case Hs:return Pt([Mt(t,{value:q(t.value,"@","@"+W)})],o);case go:if(t.length)return Gl(t.props,function(i){switch(ql(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pt([Mt(t,{props:[q(i,/:(read-\w+)/,":"+Cr+"$1")]})],o);case"::placeholder":return Pt([Mt(t,{props:[q(i,/:(plac\w+)/,":"+W+"input-$1")]}),Mt(t,{props:[q(i,/:(plac\w+)/,":"+Cr+"$1")]}),Mt(t,{props:[q(i,/:(plac\w+)/,ye+"input-$1")]})],o)}return""})}},dc=[uc],bo=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var h=y.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||dc,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var h=y.getAttribute("data-emotion").split(" "),_=1;_<h.length;_++)i[h[_]]=!0;a.push(y)});var c,d=[lc,cc];{var u,l=[rc,oc(function(y){u.insert(y)})],b=nc(d.concat(o,l)),g=function(h){return Pt(ec(h),b)};c=function(h,_,S,E){u=S,g(h?h+"{"+_.styles+"}":_.styles),E&&(p.inserted[_.name]=!0)}}var p={key:r,sheet:new Ul({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return p.sheet.hydrate(a),p},Ks={exports:{}},J={};/** @license React v16.13.1
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var er,B,ss,gt,Zo,as,Pn,Yn,Fn,$n,ls,Jt={},cs=[],cl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ir=Array.isArray;function Qe(e,t){for(var r in t)e[r]=t[r];return e}function us(e){var t=e.parentNode;t&&t.removeChild(e)}function X(e,t,r){var n,o,i,s={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?er.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return Wt(e,s,n,o,null)}function Wt(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++ss,__i:-1,__u:0};return o==null&&B.vnode!=null&&B.vnode(i),i}function Qn(){return{current:null}}function ee(e){return e.children}function Ie(e,t){this.props=e,this.context=t}function xt(e,t){if(t==null)return e.__?xt(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?xt(e):null}function ds(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return ds(e)}}function Ln(e){(!e.__d&&(e.__d=!0)&>.push(e)&&!Sr.__r++||Zo!==B.debounceRendering)&&((Zo=B.debounceRendering)||as)(Sr)}function Sr(){var e,t,r,n,o,i,s,a;for(gt.sort(Pn);e=gt.shift();)e.__d&&(t=gt.length,n=void 0,i=(o=(r=e).__v).__e,s=[],a=[],r.__P&&((n=Qe({},o)).__v=o.__v+1,B.vnode&&B.vnode(n),Zn(r.__P,n,o,r.__n,r.__P.namespaceURI,32&o.__u?[i]:null,s,i??xt(o),!!(32&o.__u),a),n.__v=o.__v,n.__.__k[n.__i]=n,hs(s,n,a),n.__e!=i&&ds(n)),gt.length>t&>.sort(Pn));Sr.__r=0}function fs(e,t,r,n,o,i,s,a,c,u,d){var l,v,g,p,y,h=n&&n.__k||cs,_=t.length;for(r.__d=c,ul(r,t,h),c=r.__d,l=0;l<_;l++)(g=r.__k[l])!=null&&typeof g!="boolean"&&typeof g!="function"&&(v=g.__i===-1?Jt:h[g.__i]||Jt,g.__i=l,Zn(e,g,v,o,i,s,a,c,u,d),p=g.__e,g.ref&&v.ref!=g.ref&&(v.ref&&eo(v.ref,null,g),d.push(g.ref,g.__c||p,g)),y==null&&p!=null&&(y=p),65536&g.__u||v.__k===g.__k?(c&&!c.isConnected&&(c=xt(v)),c=ps(g,c,e)):typeof g.type=="function"&&g.__d!==void 0?c=g.__d:p&&(c=p.nextSibling),g.__d=void 0,g.__u&=-196609);r.__d=c,r.__e=y}function ul(e,t,r){var n,o,i,s,a,c=t.length,u=r.length,d=u,l=0;for(e.__k=[],n=0;n<c;n++)s=n+l,(o=e.__k[n]=(o=t[n])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Wt(null,o,null,null,null):Ir(o)?Wt(ee,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Wt(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=dl(o,r,s,d),o.__i=a,i=null,a!==-1&&(d--,(i=r[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&l--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a===s+1?l++:a>s?d>c-s?l+=a-s:l--:a<s?a==s-1&&(l=a-s):l=0,a!==n+l&&(o.__u|=65536))):(i=r[s])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=xt(i)),Dn(i,i,!1),r[s]=null,d--);if(d)for(n=0;n<u;n++)(i=r[n])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=xt(i)),Dn(i,i))}function ps(e,t,r){var n,o;if(typeof e.type=="function"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=ps(n[o],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Ze(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ir(e)?e.some(function(r){Ze(r,t)}):t.push(e)),t}function dl(e,t,r,n){var o=e.key,i=e.type,s=r-1,a=r+1,c=t[r];if(c===null||c&&o==c.key&&i===c.type&&!(131072&c.__u))return r;if(n>(c!=null&&!(131072&c.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&i===c.type)return s;s--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&i===c.type)return a;a++}}return-1}function ei(e,t,r){t[0]==="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||cl.test(t)?r:r+"px"}function cr(e,t,r,n,o){var i;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||ei(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||ei(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=Yn,e.addEventListener(t,i?$n:Fn,i)):e.removeEventListener(t,i?$n:Fn,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,r))}}function ti(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=Yn++;else if(t.t<r.u)return;return r(B.event?B.event(t):t)}}}function Zn(e,t,r,n,o,i,s,a,c,u){var d,l,v,g,p,y,h,_,x,S,$,F,A,O,V,U=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),i=[a=t.__e=r.__e]),(d=B.__b)&&d(t);e:if(typeof U=="function")try{if(_=t.props,x=(d=U.contextType)&&n[d.__c],S=d?x?x.props.value:d.__:n,r.__c?h=(l=t.__c=r.__c).__=l.__E:("prototype"in U&&U.prototype.render?t.__c=l=new U(_,S):(t.__c=l=new Ie(_,S),l.constructor=U,l.render=pl),x&&x.sub(l),l.props=_,l.state||(l.state={}),l.context=S,l.__n=n,v=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),U.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Qe({},l.__s)),Qe(l.__s,U.getDerivedStateFromProps(_,l.__s))),g=l.props,p=l.state,l.__v=t,v)U.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(U.getDerivedStateFromProps==null&&_!==g&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(_,S),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(_,l.__s,S)===!1||t.__v===r.__v)){for(t.__v!==r.__v&&(l.props=_,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(H){H&&(H.__=t)}),$=0;$<l._sb.length;$++)l.__h.push(l._sb[$]);l._sb=[],l.__h.length&&s.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(_,l.__s,S),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(g,p,y)})}if(l.context=S,l.props=_,l.__P=e,l.__e=!1,F=B.__r,A=0,"prototype"in U&&U.prototype.render){for(l.state=l.__s,l.__d=!1,F&&F(t),d=l.render(l.props,l.state,l.context),O=0;O<l._sb.length;O++)l.__h.push(l._sb[O]);l._sb=[]}else do l.__d=!1,F&&F(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++A<25);l.state=l.__s,l.getChildContext!=null&&(n=Qe(Qe({},n),l.getChildContext())),v||l.getSnapshotBeforeUpdate==null||(y=l.getSnapshotBeforeUpdate(g,p)),fs(e,Ir(V=d!=null&&d.type===ee&&d.key==null?d.props.children:d)?V:[V],t,r,n,o,i,s,a,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&s.push(l),h&&(l.__E=l.__=null)}catch(H){t.__v=null,c||i!=null?(t.__e=a,t.__u|=c?160:32,i[i.indexOf(a)]=null):(t.__e=r.__e,t.__k=r.__k),B.__e(H,t,r)}else i==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=fl(r.__e,t,r,n,o,i,s,c,u);(d=B.diffed)&&d(t)}function hs(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)eo(r[n],r[++n],r[++n]);B.__c&&B.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){B.__e(i,o.__v)}})}function fl(e,t,r,n,o,i,s,a,c){var u,d,l,v,g,p,y,h=r.props,_=t.props,x=t.type;if(x==="svg"?o="http://www.w3.org/2000/svg":x==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((g=i[u])&&"setAttribute"in g==!!x&&(x?g.localName===x:g.nodeType===3)){e=g,i[u]=null;break}}if(e==null){if(x===null)return document.createTextNode(_);e=document.createElementNS(o,x,_.is&&_),i=null,a=!1}if(x===null)h===_||a&&e.data===_||(e.data=_);else{if(i=i&&er.call(e.childNodes),h=r.props||Jt,!a&&i!=null)for(h={},u=0;u<e.attributes.length;u++)h[(g=e.attributes[u]).name]=g.value;for(u in h)if(g=h[u],u!="children"){if(u=="dangerouslySetInnerHTML")l=g;else if(u!=="key"&&!(u in _)){if(u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _)continue;cr(e,u,null,g,o)}}for(u in _)g=_[u],u=="children"?v=g:u=="dangerouslySetInnerHTML"?d=g:u=="value"?p=g:u=="checked"?y=g:u==="key"||a&&typeof g!="function"||h[u]===g||cr(e,u,g,h[u],o);if(d)a||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),fs(e,Ir(v)?v:[v],t,r,n,x==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:r.__k&&xt(r,0),a,c),i!=null)for(u=i.length;u--;)i[u]!=null&&us(i[u]);a||(u="value",p!==void 0&&(p!==e[u]||x==="progress"&&!p||x==="option"&&p!==h[u])&&cr(e,u,p,h[u],o),u="checked",y!==void 0&&y!==e[u]&&cr(e,u,y,h[u],o))}return e}function eo(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){B.__e(n,r)}}function Dn(e,t,r){var n,o;if(B.unmount&&B.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||eo(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){B.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Dn(n[o],t,r||typeof e.type!="function");r||e.__e==null||us(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function pl(e,t,r){return this.constructor(e,r)}function dt(e,t,r){var n,o,i,s;B.__&&B.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],s=[],Zn(t,e=(!n&&r||t).__k=X(ee,null,[e]),o||Jt,Jt,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?er.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,s),hs(i,e,s)}function to(e,t){dt(e,t,to)}function ro(e,t,r){var n,o,i,s,a=Qe({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?er.call(arguments,2):r),Wt(e.type,a,n||e.key,o||e.ref,null)}function rt(e,t){var r={__c:t="__cC"+ls++,__:e,Consumer:function(n,o){return n.children(o)},Provider:function(n){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(a){a.__e=!0,Ln(a)})},this.sub=function(s){o.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),a&&a.call(s)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}er=cs.slice,B={__e:function(e,t,r,n){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},ss=0,Ie.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Qe({},this.state),typeof e=="function"&&(e=e(Qe({},r),this.props)),e&&Qe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ln(this))},Ie.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ln(this))},Ie.prototype.render=ee,gt=[],as=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Pn=function(e,t){return e.__v.__b-t.__v.__b},Sr.__r=0,Yn=0,Fn=ti(!1),$n=ti(!0),ls=0;function no(){return(no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var hl=["context","children"];function ml(e){this.getChildContext=function(){return e.context};var t=e.children,r=function(n,o){if(n==null)return{};var i,s,a={},c=Object.keys(n);for(s=0;s<c.length;s++)o.indexOf(i=c[s])>=0||(a[i]=n[i]);return a}(e,hl);return ro(t,r)}function gl(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=X(ml,no({},this._props,{context:e.detail.context}),function t(r,n){if(r.nodeType===3)return r.data;if(r.nodeType!==1)return null;var o=[],i={},s=0,a=r.attributes,c=r.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[ms(a[s].name)]=a[s].value);for(s=c.length;s--;){var u=t(c[s],null),d=c[s].slot;d?i[d]=X(ri,{name:d},u):o[s]=u}var l=n?X(ri,null,o):o;return X(n||r.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?to:dt)(this._vdom,this._root)}function ms(e){return e.replace(/-(\w)/g,function(t,r){return r?r.toUpperCase():""})}function yl(e,t,r){if(this._vdom){var n={};n[e]=r=r??void 0,n[ms(e)]=r,this._vdom=ro(this._vdom,n),dt(this._vdom,this._root)}}function vl(){dt(this._vdom=null,this._root)}function ri(e,t){var r=this;return X("slot",no({},e,{ref:function(n){n?(r.ref=n,r._listener||(r._listener=function(o){o.stopPropagation(),o.detail.context=t},n.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function bl(e,t,r,n){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=n&&n.shadow?i.attachShadow({mode:n.mode||"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=gl,o.prototype.attributeChangedCallback=yl,o.prototype.disconnectedCallback=vl,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=r,r.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t,o)}var tt,Q,pn,ni,Ft=0,gs=[],hr=[],oe=B,oi=oe.__b,ii=oe.__r,si=oe.diffed,ai=oe.__c,li=oe.unmount,ci=oe.__;function Et(e,t){oe.__h&&oe.__h(Q,e,Ft||t),Ft=0;var r=Q.__H||(Q.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:hr}),r.__[e]}function te(e){return Ft=1,tr(ys,e)}function tr(e,t,r){var n=Et(tt++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):ys(void 0,t),function(a){var c=n.__N?n.__N[0]:n.__[0],u=n.t(c,a);c!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=Q,!Q.u)){var o=function(a,c,u){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(v){return!!v.__c});if(d.every(function(v){return!v.__N}))return!i||i.call(this,a,c,u);var l=!1;return d.forEach(function(v){if(v.__N){var g=v.__[0];v.__=v.__N,v.__N=void 0,g!==v.__[0]&&(l=!0)}}),!(!l&&n.__c.props===a)&&(!i||i.call(this,a,c,u))};Q.u=!0;var i=Q.shouldComponentUpdate,s=Q.componentWillUpdate;Q.componentWillUpdate=function(a,c,u){if(this.__e){var d=i;i=void 0,o(a,c,u),i=d}s&&s.call(this,a,c,u)},Q.shouldComponentUpdate=o}return n.__N||n.__}function re(e,t){var r=Et(tt++,3);!oe.__s&&ao(r.__H,t)&&(r.__=e,r.i=t,Q.__H.__h.push(r))}function pt(e,t){var r=Et(tt++,4);!oe.__s&&ao(r.__H,t)&&(r.__=e,r.i=t,Q.__h.push(r))}function z(e){return Ft=5,Ee(function(){return{current:e}},[])}function oo(e,t,r){Ft=6,pt(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},r==null?r:r.concat(e))}function Ee(e,t){var r=Et(tt++,7);return ao(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function lt(e,t){return Ft=8,Ee(function(){return e},t)}function $e(e){var t=Q.context[e.__c],r=Et(tt++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Q)),t.props.value):e.__}function io(e,t){oe.useDebugValue&&oe.useDebugValue(t?t(e):e)}function _l(e){var t=Et(tt++,10),r=te();return t.__=e,Q.componentDidCatch||(Q.componentDidCatch=function(n,o){t.__&&t.__(n,o),r[1](n)}),[r[0],function(){r[1](void 0)}]}function so(){var e=Et(tt++,11);if(!e.__){for(var t=Q.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function wl(){for(var e;e=gs.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(mr),e.__H.__h.forEach(Nn),e.__H.__h=[]}catch(t){e.__H.__h=[],oe.__e(t,e.__v)}}oe.__b=function(e){Q=null,oi&&oi(e)},oe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ci&&ci(e,t)},oe.__r=function(e){ii&&ii(e),tt=0;var t=(Q=e.__c).__H;t&&(pn===Q?(t.__h=[],Q.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=hr,r.__N=r.i=void 0})):(t.__h.forEach(mr),t.__h.forEach(Nn),t.__h=[],tt=0)),pn=Q},oe.diffed=function(e){si&&si(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(gs.push(t)!==1&&ni===oe.requestAnimationFrame||((ni=oe.requestAnimationFrame)||xl)(wl)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==hr&&(r.__=r.__V),r.i=void 0,r.__V=hr})),pn=Q=null},oe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(mr),r.__h=r.__h.filter(function(n){return!n.__||Nn(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],oe.__e(n,r.__v)}}),ai&&ai(e,t)},oe.unmount=function(e){li&&li(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{mr(n)}catch(o){t=o}}),r.__H=void 0,t&&oe.__e(t,r.__v))};var ui=typeof requestAnimationFrame=="function";function xl(e){var t,r=function(){clearTimeout(n),ui&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);ui&&(t=requestAnimationFrame(r))}function mr(e){var t=Q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Q=t}function Nn(e){var t=Q;e.__c=e.__(),Q=t}function ao(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ys(e,t){return typeof t=="function"?t(e):t}function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},In.apply(null,arguments)}function vs(e,t){for(var r in t)e[r]=t[r];return e}function Vn(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Er(e,t){this.props=e,this.context=t}function bs(e,t){function r(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:Vn(this.props,o)}function n(o){return this.shouldComponentUpdate=r,X(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(Er.prototype=new Ie).isPureReactComponent=!0,Er.prototype.shouldComponentUpdate=function(e,t){return Vn(this.props,e)||Vn(this.state,t)};var di=B.__b;B.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),di&&di(e)};var Sl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function nt(e){function t(r){var n=vs({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=Sl,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var fi=function(e,t){return e==null?null:Ze(Ze(e).map(t))},_s={map:fi,forEach:fi,count:function(e){return e?Ze(e).length:0},only:function(e){var t=Ze(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ze},El=B.__e;B.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}El(e,t,r,n)};var pi=B.unmount;function ws(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=vs({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return ws(n,t,r)})),e}function xs(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return xs(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function qt(){this.__u=0,this.t=null,this.__b=null}function Ss(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Es(e){var t,r,n;function o(i){if(t||(t=e()).then(function(s){r=s.default||s},function(s){n=s}),n)throw n;if(!r)throw t;return X(r,i)}return o.displayName="Lazy",o.__f=!0,o}function Ot(){this.u=null,this.o=null}B.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),pi&&pi(e)},(qt.prototype=new Ie).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var o=Ss(n.__v),i=!1,s=function(){i||(i=!0,r.__R=null,o?o(a):a())};r.__R=s;var a=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=xs(c,c.__c.__P,c.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.t.pop();)u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},qt.prototype.componentWillUnmount=function(){this.t=[]},qt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=ws(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&X(ee,null,e.fallback);return o&&(o.__u&=-33),[X(ee,null,t.__a?null:e.children),o]};var hi=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function kl(e){return this.getChildContext=function(){return e.context},e.children}function Cl(e){var t=this,r=e.i;t.componentWillUnmount=function(){dt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n)},insertBefore:function(n,o){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),dt(X(kl,{context:t.context},e.__v),t.l)}function ks(e,t){var r=X(Cl,{__v:e,i:t});return r.containerInfo=t,r}(Ot.prototype=new Ie).__a=function(e){var t=this,r=Ss(t.__v),n=t.o.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),hi(t,e,n)):o()};r?r(i):i()}},Ot.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ze(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Ot.prototype.componentDidUpdate=Ot.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){hi(e,r,t)})};var Cs=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Tl=/^(?: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]/,Rl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ol=/[A-Z0-9]/g,Al=typeof document<"u",Pl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ts(e,t,r){return t.__k==null&&(t.textContent=""),dt(e,t),typeof r=="function"&&r(),e?e.__c:null}function Rs(e,t,r){return to(e,t),typeof r=="function"&&r(),e?e.__c:null}Ie.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ie.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var mi=B.event;function Fl(){}function $l(){return this.cancelBubble}function Ll(){return this.defaultPrevented}B.event=function(e){return mi&&(e=mi(e)),e.persist=Fl,e.isPropagationStopped=$l,e.isDefaultPrevented=Ll,e.nativeEvent=e};var lo,Dl={enumerable:!1,configurable:!0,get:function(){return this.class}},gi=B.vnode;B.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={};for(var i in r){var s=r[i];if(!(i==="value"&&"defaultValue"in r&&s==null||Al&&i==="children"&&n==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in r&&r.value==null?i="value":i==="download"&&s===!0?s="":a==="translate"&&s==="no"?s=!1:a==="ondoubleclick"?i="ondblclick":a!=="onchange"||n!=="input"&&n!=="textarea"||Pl(r.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":Rl.test(i)?i=a:n.indexOf("-")===-1&&Tl.test(i)?i=i.replace(Ol,"-$&").toLowerCase():s===null&&(s=void 0):a=i="oninput",a==="oninput"&&o[i=a]&&(i="oninputCapture"),o[i]=s}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Ze(r.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Ze(r.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",Dl)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=Cs,gi&&gi(e)};var yi=B.__r;B.__r=function(e){yi&&yi(e),lo=e.__c};var vi=B.diffed;B.diffed=function(e){vi&&vi(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),lo=null};var Os={ReactCurrentDispatcher:{current:{readContext:function(e){return lo.__n[e.__c].props.value},useCallback:lt,useContext:$e,useDebugValue:io,useDeferredValue:fo,useEffect:re,useId:so,useImperativeHandle:oo,useInsertionEffect:ho,useLayoutEffect:pt,useMemo:Ee,useReducer:tr,useRef:z,useState:te,useSyncExternalStore:mo,useTransition:po}}},Nl="17.0.2";function As(e){return X.bind(null,e)}function Dt(e){return!!e&&e.$$typeof===Cs}function Ps(e){return Dt(e)&&e.type===ee}function Fs(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function co(e){return Dt(e)?ro.apply(null,arguments):e}function $s(e){return!!e.__k&&(dt(null,e),!0)}function Ls(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ds=function(e,t){return e(t)},Ns=function(e,t){return e(t)},Is=ee;function uo(e){e()}function fo(e){return e}function po(){return[!1,uo]}var ho=pt,Vs=Dt;function mo(e,t){var r=t(),n=te({h:{__:r,v:t}}),o=n[0].h,i=n[1];return pt(function(){o.__=r,o.v=t,hn(o)&&i({h:o})},[e,r,t]),re(function(){return hn(o)&&i({h:o}),e(function(){hn(o)&&i({h:o})})},[e]),r}function hn(e){var t,r,n=e.v,o=e.__;try{var i=n();return!((t=o)===(r=i)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}var L={useState:te,useId:so,useReducer:tr,useEffect:re,useLayoutEffect:pt,useInsertionEffect:ho,useTransition:po,useDeferredValue:fo,useSyncExternalStore:mo,startTransition:uo,useRef:z,useImperativeHandle:oo,useMemo:Ee,useCallback:lt,useContext:$e,useDebugValue:io,version:"17.0.2",Children:_s,render:Ts,hydrate:Rs,unmountComponentAtNode:$s,createPortal:ks,createElement:X,createContext:rt,createFactory:As,cloneElement:co,createRef:Qn,Fragment:ee,isValidElement:Dt,isElement:Vs,isFragment:Ps,isMemo:Fs,findDOMNode:Ls,Component:Ie,PureComponent:Er,memo:bs,forwardRef:nt,flushSync:Ns,unstable_batchedUpdates:Ds,StrictMode:Is,Suspense:qt,SuspenseList:Ot,lazy:Es,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Os};const kr=Object.freeze(Object.defineProperty({__proto__:null,Children:_s,Component:Ie,Fragment:ee,PureComponent:Er,StrictMode:Is,Suspense:qt,SuspenseList:Ot,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Os,cloneElement:co,createContext:rt,createElement:X,createFactory:As,createPortal:ks,createRef:Qn,default:L,findDOMNode:Ls,flushSync:Ns,forwardRef:nt,hydrate:Rs,isElement:Vs,isFragment:Ps,isMemo:Fs,isValidElement:Dt,lazy:Es,memo:bs,render:Ts,startTransition:uo,unmountComponentAtNode:$s,unstable_batchedUpdates:Ds,useCallback:lt,useContext:$e,useDebugValue:io,useDeferredValue:fo,useEffect:re,useErrorBoundary:_l,useId:so,useImperativeHandle:oo,useInsertionEffect:ho,useLayoutEffect:pt,useMemo:Ee,useReducer:tr,useRef:z,useState:te,useSyncExternalStore:mo,useTransition:po,version:Nl},Symbol.toStringTag,{value:"Module"}));function Bs(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Il=/^((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|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)-.*))$/,Vl=Bs(function(e){return Il.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Bl(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ul(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ml=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ul(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Bl(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),ve="-ms-",Cr="-moz-",W="-webkit-",Us="comm",go="rule",yo="decl",Hl="@import",Ms="@keyframes",jl="@layer",zl=Math.abs,Vr=String.fromCharCode,Wl=Object.assign;function ql(e,t){return ge(e,0)^45?(((t<<2^ge(e,0))<<2^ge(e,1))<<2^ge(e,2))<<2^ge(e,3):0}function Hs(e){return e.trim()}function Gl(e,t){return(e=t.exec(e))?e[0]:e}function q(e,t,r){return e.replace(t,r)}function Bn(e,t){return e.indexOf(t)}function ge(e,t){return e.charCodeAt(t)|0}function Xt(e,t,r){return e.slice(t,r)}function Me(e){return e.length}function vo(e){return e.length}function ur(e,t){return t.push(e),e}function Kl(e,t){return e.map(t).join("")}var Br=1,$t=1,js=0,Ce=0,ue=0,Nt="";function Ur(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Br,column:$t,length:s,return:""}}function Mt(e,t){return Wl(Ur("",null,null,"",null,null,0),e,{length:-e.length},t)}function Jl(){return ue}function Xl(){return ue=Ce>0?ge(Nt,--Ce):0,$t--,ue===10&&($t=1,Br--),ue}function Ae(){return ue=Ce<js?ge(Nt,Ce++):0,$t++,ue===10&&($t=1,Br++),ue}function qe(){return ge(Nt,Ce)}function gr(){return Ce}function rr(e,t){return Xt(Nt,e,t)}function Yt(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 zs(e){return Br=$t=1,js=Me(Nt=e),Ce=0,[]}function Ws(e){return Nt="",e}function yr(e){return Hs(rr(Ce-1,Un(e===91?e+2:e===40?e+1:e)))}function Yl(e){for(;(ue=qe())&&ue<33;)Ae();return Yt(e)>2||Yt(ue)>3?"":" "}function Ql(e,t){for(;--t&&Ae()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return rr(e,gr()+(t<6&&qe()==32&&Ae()==32))}function Un(e){for(;Ae();)switch(ue){case e:return Ce;case 34:case 39:e!==34&&e!==39&&Un(ue);break;case 40:e===41&&Un(e);break;case 92:Ae();break}return Ce}function Zl(e,t){for(;Ae()&&e+ue!==57;)if(e+ue===84&&qe()===47)break;return"/*"+rr(t,Ce-1)+"*"+Vr(e===47?e:Ae())}function ec(e){for(;!Yt(qe());)Ae();return rr(e,Ce)}function tc(e){return Ws(vr("",null,null,null,[""],e=zs(e),0,[0],e))}function vr(e,t,r,n,o,i,s,a,c){for(var u=0,d=0,l=s,v=0,g=0,p=0,y=1,h=1,_=1,x=0,S="",$=o,F=i,A=n,O=S;h;)switch(p=x,x=Ae()){case 40:if(p!=108&&ge(O,l-1)==58){Bn(O+=q(yr(x),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:O+=yr(x);break;case 9:case 10:case 13:case 32:O+=Yl(p);break;case 92:O+=Ql(gr()-1,7);continue;case 47:switch(qe()){case 42:case 47:ur(rc(Zl(Ae(),gr()),t,r),c);break;default:O+="/"}break;case 123*y:a[u++]=Me(O)*_;case 125*y:case 59:case 0:switch(x){case 0:case 125:h=0;case 59+d:_==-1&&(O=q(O,/\f/g,"")),g>0&&Me(O)-l&&ur(g>32?_i(O+";",n,r,l-1):_i(q(O," ","")+";",n,r,l-2),c);break;case 59:O+=";";default:if(ur(A=bi(O,t,r,u,d,o,a,S,$=[],F=[],l),i),x===123)if(d===0)vr(O,t,A,A,$,i,l,a,F);else switch(v===99&&ge(O,3)===110?100:v){case 100:case 108:case 109:case 115:vr(e,A,A,n&&ur(bi(e,A,A,0,0,o,a,S,o,$=[],l),F),o,F,l,a,n?$:F);break;default:vr(O,A,A,A,[""],F,0,a,F)}}u=d=g=0,y=_=1,S=O="",l=s;break;case 58:l=1+Me(O),g=p;default:if(y<1){if(x==123)--y;else if(x==125&&y++==0&&Xl()==125)continue}switch(O+=Vr(x),x*y){case 38:_=d>0?1:(O+="\f",-1);break;case 44:a[u++]=(Me(O)-1)*_,_=1;break;case 64:qe()===45&&(O+=yr(Ae())),v=qe(),d=l=Me(S=O+=ec(gr())),x++;break;case 45:p===45&&Me(O)==2&&(y=0)}}return i}function bi(e,t,r,n,o,i,s,a,c,u,d){for(var l=o-1,v=o===0?i:[""],g=vo(v),p=0,y=0,h=0;p<n;++p)for(var _=0,x=Xt(e,l+1,l=zl(y=s[p])),S=e;_<g;++_)(S=Hs(y>0?v[_]+" "+x:q(x,/&\f/g,v[_])))&&(c[h++]=S);return Ur(e,t,r,o===0?go:a,c,u,d)}function rc(e,t,r){return Ur(e,t,r,Us,Vr(Jl()),Xt(e,2,-2),0)}function _i(e,t,r,n){return Ur(e,t,r,yo,Xt(e,0,n),Xt(e,n+1,-1),n)}function Pt(e,t){for(var r="",n=vo(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function nc(e,t,r,n){switch(e.type){case jl:if(e.children.length)break;case Hl:case yo:return e.return=e.return||e.value;case Us:return"";case Ms:return e.return=e.value+"{"+Pt(e.children,n)+"}";case go:e.value=e.props.join(",")}return Me(r=Pt(e.children,n))?e.return=e.value+"{"+r+"}":""}function oc(e){var t=vo(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function ic(e){return function(t){t.root||(t=t.return)&&e(t)}}var sc=function(t,r,n){for(var o=0,i=0;o=i,i=qe(),o===38&&i===12&&(r[n]=1),!Yt(i);)Ae();return rr(t,Ce)},ac=function(t,r){var n=-1,o=44;do switch(Yt(o)){case 0:o===38&&qe()===12&&(r[n]=1),t[n]+=sc(Ce-1,r,n);break;case 2:t[n]+=yr(o);break;case 4:if(o===44){t[++n]=qe()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Vr(o)}while(o=Ae());return t},lc=function(t,r){return Ws(ac(zs(t),r))},wi=new WeakMap,cc=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!wi.get(n))&&!o){wi.set(t,!0);for(var i=[],s=lc(r,i),a=n.props,c=0,u=0;c<s.length;c++)for(var d=0;d<a.length;d++,u++)t.props[u]=i[c]?s[c].replace(/&\f/g,a[d]):a[d]+" "+s[c]}}},uc=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function qs(e,t){switch(ql(e,t)){case 5103:return W+"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 W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+Cr+e+ve+e+e;case 6828:case 4268:return W+e+ve+e+e;case 6165:return W+e+ve+"flex-"+e+e;case 5187:return W+e+q(e,/(\w+).+(:[^]+)/,W+"box-$1$2"+ve+"flex-$1$2")+e;case 5443:return W+e+ve+"flex-item-"+q(e,/flex-|-self/,"")+e;case 4675:return W+e+ve+"flex-line-pack"+q(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+ve+q(e,"shrink","negative")+e;case 5292:return W+e+ve+q(e,"basis","preferred-size")+e;case 6060:return W+"box-"+q(e,"-grow","")+W+e+ve+q(e,"grow","positive")+e;case 4554:return W+q(e,/([^-])(transform)/g,"$1"+W+"$2")+e;case 6187:return q(q(q(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return q(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return q(q(e,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return q(e,/(.+)-inline(.+)/,W+"$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(Me(e)-1-t>6)switch(ge(e,t+1)){case 109:if(ge(e,t+4)!==45)break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+Cr+(ge(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bn(e,"stretch")?qs(q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ge(e,t+1)!==115)break;case 6444:switch(ge(e,Me(e)-3-(~Bn(e,"!important")&&10))){case 107:return q(e,":",":"+W)+e;case 101:return q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(ge(e,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+ve+"$2box$3")+e}break;case 5936:switch(ge(e,t+11)){case 114:return W+e+ve+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+ve+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+ve+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+ve+e+e}return e}var dc=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case yo:t.return=qs(t.value,t.length);break;case Ms:return Pt([Mt(t,{value:q(t.value,"@","@"+W)})],o);case go:if(t.length)return Kl(t.props,function(i){switch(Gl(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pt([Mt(t,{props:[q(i,/:(read-\w+)/,":"+Cr+"$1")]})],o);case"::placeholder":return Pt([Mt(t,{props:[q(i,/:(plac\w+)/,":"+W+"input-$1")]}),Mt(t,{props:[q(i,/:(plac\w+)/,":"+Cr+"$1")]}),Mt(t,{props:[q(i,/:(plac\w+)/,ve+"input-$1")]})],o)}return""})}},fc=[dc],bo=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var h=y.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||fc,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var h=y.getAttribute("data-emotion").split(" "),_=1;_<h.length;_++)i[h[_]]=!0;a.push(y)});var c,u=[cc,uc];{var d,l=[nc,ic(function(y){d.insert(y)})],v=oc(u.concat(o,l)),g=function(h){return Pt(tc(h),v)};c=function(h,_,x,S){d=x,g(h?h+"{"+_.styles+"}":_.styles),S&&(p.inserted[_.name]=!0)}}var p={key:r,sheet:new Ml({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return p.sheet.hydrate(a),p},Gs={exports:{}},K={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var he=typeof Symbol=="function"&&Symbol.for,_o=he?Symbol.for("react.element"):60103,wo=he?Symbol.for("react.portal"):60106,Hr=he?Symbol.for("react.fragment"):60107,jr=he?Symbol.for("react.strict_mode"):60108,zr=he?Symbol.for("react.profiler"):60114,Wr=he?Symbol.for("react.provider"):60109,qr=he?Symbol.for("react.context"):60110,xo=he?Symbol.for("react.async_mode"):60111,Gr=he?Symbol.for("react.concurrent_mode"):60111,Kr=he?Symbol.for("react.forward_ref"):60112,Jr=he?Symbol.for("react.suspense"):60113,fc=he?Symbol.for("react.suspense_list"):60120,Xr=he?Symbol.for("react.memo"):60115,Yr=he?Symbol.for("react.lazy"):60116,pc=he?Symbol.for("react.block"):60121,hc=he?Symbol.for("react.fundamental"):60117,mc=he?Symbol.for("react.responder"):60118,gc=he?Symbol.for("react.scope"):60119;function Le(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case _o:switch(e=e.type,e){case xo:case Gr:case Hr:case zr:case jr:case Jr:return e;default:switch(e=e&&e.$$typeof,e){case qr:case Kr:case Yr:case Xr:case Wr:return e;default:return t}}case wo:return t}}}function Js(e){return Le(e)===Gr}J.AsyncMode=xo;J.ConcurrentMode=Gr;J.ContextConsumer=qr;J.ContextProvider=Wr;J.Element=_o;J.ForwardRef=Kr;J.Fragment=Hr;J.Lazy=Yr;J.Memo=Xr;J.Portal=wo;J.Profiler=zr;J.StrictMode=jr;J.Suspense=Jr;J.isAsyncMode=function(e){return Js(e)||Le(e)===xo};J.isConcurrentMode=Js;J.isContextConsumer=function(e){return Le(e)===qr};J.isContextProvider=function(e){return Le(e)===Wr};J.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_o};J.isForwardRef=function(e){return Le(e)===Kr};J.isFragment=function(e){return Le(e)===Hr};J.isLazy=function(e){return Le(e)===Yr};J.isMemo=function(e){return Le(e)===Xr};J.isPortal=function(e){return Le(e)===wo};J.isProfiler=function(e){return Le(e)===zr};J.isStrictMode=function(e){return Le(e)===jr};J.isSuspense=function(e){return Le(e)===Jr};J.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hr||e===Gr||e===zr||e===jr||e===Jr||e===fc||typeof e=="object"&&e!==null&&(e.$$typeof===Yr||e.$$typeof===Xr||e.$$typeof===Wr||e.$$typeof===qr||e.$$typeof===Kr||e.$$typeof===hc||e.$$typeof===mc||e.$$typeof===gc||e.$$typeof===pc)};J.typeOf=Le;Ks.exports=J;var yc=Ks.exports,Xs=yc,vc={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ys={};Ys[Xs.ForwardRef]=vc;Ys[Xs.Memo]=bc;var _c=!0;function Qr(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var So=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||_c===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Zr=function(t,r,n){So(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function wc(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var xc={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,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},Sc=/[A-Z]|^ms/g,Ec=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qs=function(t){return t.charCodeAt(1)===45},Si=function(t){return t!=null&&typeof t!="boolean"},mn=Us(function(e){return Qs(e)?e:e.replace(Sc,"-$&").toLowerCase()}),Ei=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Ec,function(n,o,i){return Me={name:o,styles:i,next:Me},o})}return xc[t]!==1&&!Qs(t)&&typeof r=="number"&&r!==0?r+"px":r};function Qt(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Me={name:r.name,styles:r.styles,next:Me},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Me={name:n.name,styles:n.styles,next:Me},n=n.next;var o=r.styles+";";return o}return kc(e,t,r)}case"function":{if(e!==void 0){var i=Me,s=r(e);return Me=i,Qt(e,t,s)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function kc(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Qt(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":Si(s)&&(n+=mn(i)+":"+Ei(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)Si(s[a])&&(n+=mn(i)+":"+Ei(i,s[a])+";");else{var c=Qt(e,t,s);switch(i){case"animation":case"animationName":{n+=mn(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var ki=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Me,bt=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Me=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=Qt(n,r,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=Qt(n,r,t[a]),o&&(i+=s[a]);ki.lastIndex=0;for(var c="",d;(d=ki.exec(i))!==null;)c+="-"+d[1];var u=wc(i)+c;return{name:u,styles:i,next:Me}},Cc=function(t){return t()},Zs=kr.useInsertionEffect?kr.useInsertionEffect:!1,ea=Zs||Cc,Ci=Zs||ft,Eo={}.hasOwnProperty,ta=et(typeof HTMLElement<"u"?bo({key:"css"}):null),Tc=ta.Provider,ko=function(t){return tt(function(r,n){var o=Fe(ta);return t(r,o,n)})},Co=et({}),Mn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Rc=function(t,r){var n={};for(var o in r)Eo.call(r,o)&&(n[o]=r[o]);return n[Mn]=t,n},Oc=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return So(r,n,o),ea(function(){return Zr(r,n,o)}),null},Ac=ko(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Mn],i=[n],s="";typeof e.className=="string"?s=Qr(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=bt(i,void 0,Fe(Co));s+=t.key+"-"+a.name;var c={};for(var d in e)Eo.call(e,d)&&d!=="css"&&d!==Mn&&(c[d]=e[d]);return c.ref=r,c.className=s,K(Z,null,K(Oc,{cache:t,serialized:a,isStringTag:typeof o=="string"}),K(o,c))}),Pc=Ac,x=function(t,r){var n=arguments;if(r==null||!Eo.call(r,"css"))return K.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=Pc,i[1]=Rc(t,r);for(var s=2;s<o;s++)i[s]=n[s];return K.apply(null,i)},gn=ko(function(e,t){var r=e.styles,n=bt([r],void 0,Fe(Co)),o=z();return Ci(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),o.current=[s,a],function(){s.flush()}},[t]),Ci(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(n.next!==void 0&&Zr(t,n.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",n,s,!1)},[t,n.name]),null});function To(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return bt(t)}var Fc=Il,Lc=function(t){return t!=="theme"},Ti=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Fc:Lc},Ri=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},$c=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return So(r,n,o),ea(function(){return Zr(r,n,o)}),null},pt=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var a=Ri(t,r,n),c=a||Ti(o),d=!c("as");return function(){var u=arguments,l=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&l.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)l.push.apply(l,u);else{l.push(u[0][0]);for(var b=u.length,g=1;g<b;g++)l.push(u[g],u[0][g])}var p=ko(function(y,h,_){var S=d&&y.as||o,E="",L=[],F=y;if(y.theme==null){F={};for(var A in y)F[A]=y[A];F.theme=Fe(Co)}typeof y.className=="string"?E=Qr(h.registered,L,y.className):y.className!=null&&(E=y.className+" ");var O=bt(l.concat(L),h.registered,F);E+=h.key+"-"+O.name,s!==void 0&&(E+=" "+s);var V=d&&a===void 0?Ti(S):c,U={};for(var H in y)d&&H==="as"||V(H)&&(U[H]=y[H]);return U.className=E,U.ref=_,K(Z,null,K($c,{cache:h,serialized:O,isStringTag:typeof S=="string"}),K(S,U))});return p.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=l,p.__emotion_forwardProp=a,Object.defineProperty(p,"toString",{value:function(){return"."+s}}),p.withComponent=function(y,h){return e(y,In({},r,h,{shouldForwardProp:Ri(p,h,!0)})).apply(void 0,l)},p}};const Dc=pt("div",{target:"e6o9g7s0"})("input[type='file']::-webkit-file-upload-button,input[type='file']::file-selector-button{",{cursor:"pointer",borderWidth:"0px",backgroundColor:"var(--fl-color-primary-600)",paddingTop:"0.625rem",paddingBottom:"0.625rem",paddingLeft:"2rem",paddingRight:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))",":hover":{backgroundColor:"var(--fl-color-primary-700)"}},";margin-inline-start:-1rem;margin-inline-end:1rem;}"),Nc=tt(({onChange:e,error:t,inputLabel:r})=>{const n=o=>{const i=o.target;e(i.files&&i.files[0]||void 0)};return x(Dc,null,x("label",{css:{marginBottom:"0.5rem",display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},for:"upload_file"},r),x("input",{css:{display:"block",width:"100%",cursor:"pointer",borderRadius:"0.5rem",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",":focus":{outlineColor:"var(--fl-color-primary-600)"}},"aria-describedby":"upload_file",id:"upload_file",type:"file",onChange:n}),x("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"}},t==null?void 0:t.message))});var nr=e=>e.type==="checkbox",At=e=>e instanceof Date,be=e=>e==null;const ra=e=>typeof e=="object";var fe=e=>!be(e)&&!Array.isArray(e)&&ra(e)&&!At(e),na=e=>fe(e)&&e.target?nr(e.target)?e.target.checked:e.target.value:e,Ic=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,oa=(e,t)=>e.has(Ic(t)),Vc=e=>{const t=e.constructor&&e.constructor.prototype;return fe(t)&&t.hasOwnProperty("isPrototypeOf")},Ro=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function we(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Ro&&(e instanceof Blob||e instanceof FileList))&&(r||fe(e)))if(t=r?[]:{},!r&&!Vc(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=we(e[n]));else return e;return t}var or=e=>Array.isArray(e)?e.filter(Boolean):[],se=e=>e===void 0,C=(e,t,r)=>{if(!t||!fe(e))return r;const n=or(t.split(/[,[\].]+?/)).reduce((o,i)=>be(o)?o:o[i],e);return se(n)||n===e?se(e[t])?r:e[t]:n},je=e=>typeof e=="boolean",Oo=e=>/^\w*$/.test(e),ia=e=>or(e.replace(/["|']|\]/g,"").split(/\.|\[/)),X=(e,t,r)=>{let n=-1;const o=Oo(t)?[t]:ia(t),i=o.length,s=i-1;for(;++n<i;){const a=o[n];let c=r;if(n!==s){const d=e[a];c=fe(d)||Array.isArray(d)?d:isNaN(+o[n+1])?{}:[]}if(a==="__proto__")return;e[a]=c,e=e[a]}return e};const Tr={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},De={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Je={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Bc=$.createContext(null),Ao=()=>$.useContext(Bc);var sa=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==De.all&&(t._proxyFormState[s]=!n||De.all),r&&(r[s]=!0),e[s]}});return o},Te=e=>fe(e)&&!Object.keys(e).length,aa=(e,t,r,n)=>{r(e);const{name:o,...i}=e;return Te(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!n||De.all))},br=e=>Array.isArray(e)?e:[e],la=(e,t,r)=>!e||!t||e===t||br(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function Po(e){const t=$.useRef(e);t.current=e,$.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Uc(e){const t=Ao(),{control:r=t.control,disabled:n,name:o,exact:i}=e||{},[s,a]=$.useState(r._formState),c=$.useRef(!0),d=$.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=$.useRef(o);return u.current=o,Po({disabled:n,next:l=>c.current&&la(u.current,l.name,i)&&aa(l,d.current,r._updateFormState)&&a({...r._formState,...l}),subject:r._subjects.state}),$.useEffect(()=>(c.current=!0,d.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),sa(s,r,d.current,!1)}var ze=e=>typeof e=="string",ca=(e,t,r,n,o)=>ze(e)?(n&&t.watch.add(e),C(r,e,o)):Array.isArray(e)?e.map(i=>(n&&t.watch.add(i),C(r,i))):(n&&(t.watchAll=!0),r);function Mc(e){const t=Ao(),{control:r=t.control,name:n,defaultValue:o,disabled:i,exact:s}=e||{},a=$.useRef(n);a.current=n,Po({disabled:i,subject:r._subjects.values,next:u=>{la(a.current,u.name,s)&&d(we(ca(a.current,r._names,u.values||r._formValues,!1,o)))}});const[c,d]=$.useState(r._getWatch(n,o));return $.useEffect(()=>r._removeUnmounted()),c}function Hc(e){const t=Ao(),{name:r,disabled:n,control:o=t.control,shouldUnregister:i}=e,s=oa(o._names.array,r),a=Mc({control:o,name:r,defaultValue:C(o._formValues,r,C(o._defaultValues,r,e.defaultValue)),exact:!0}),c=Uc({control:o,name:r}),d=$.useRef(o.register(r,{...e.rules,value:a,...je(e.disabled)?{disabled:e.disabled}:{}}));return $.useEffect(()=>{const u=o._options.shouldUnregister||i,l=(b,g)=>{const p=C(o._fields,b);p&&p._f&&(p._f.mount=g)};if(l(r,!0),u){const b=we(C(o._options.defaultValues,r));X(o._defaultValues,r,b),se(C(o._formValues,r))&&X(o._formValues,r,b)}return()=>{(s?u&&!o._state.action:u)?o.unregister(r):l(r,!1)}},[r,o,s,i]),$.useEffect(()=>{C(o._fields,r)&&o._updateDisabledField({disabled:n,fields:o._fields,name:r,value:C(o._fields,r)._f.value})},[n,r,o]),{field:{name:r,value:a,...je(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:$.useCallback(u=>d.current.onChange({target:{value:na(u),name:r},type:Tr.CHANGE}),[r]),onBlur:$.useCallback(()=>d.current.onBlur({target:{value:C(o._formValues,r),name:r},type:Tr.BLUR}),[r,o]),ref:u=>{const l=C(o._fields,r);l&&u&&(l._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:b=>u.setCustomValidity(b),reportValidity:()=>u.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!C(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!C(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!C(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!C(c.validatingFields,r)},error:{enumerable:!0,get:()=>C(c.errors,r)}})}}const He=e=>e.render(Hc(e));var jc=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},Oi=e=>({isOnSubmit:!e||e===De.onSubmit,isOnBlur:e===De.onBlur,isOnChange:e===De.onChange,isOnAll:e===De.all,isOnTouch:e===De.onTouched}),Ai=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Gt=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const i=C(e,o);if(i){const{_f:s,...a}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!n)break;if(s.ref&&t(s.ref,s.name)&&!n)break;Gt(a,t)}else fe(a)&&Gt(a,t)}}};var zc=(e,t,r)=>{const n=or(C(e,r));return X(n,"root",t[r]),X(e,r,n),e},Fo=e=>e.type==="file",lt=e=>typeof e=="function",Rr=e=>{if(!Ro)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},_r=e=>ze(e),Lo=e=>e.type==="radio",Or=e=>e instanceof RegExp;const Pi={value:!1,isValid:!1},Fi={value:!0,isValid:!0};var ua=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!se(e[0].attributes.value)?se(e[0].value)||e[0].value===""?Fi:{value:e[0].value,isValid:!0}:Fi:Pi}return Pi};const Li={isValid:!1,value:null};var da=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,Li):Li;function $i(e,t,r="validate"){if(_r(e)||Array.isArray(e)&&e.every(_r)||je(e)&&!e)return{type:r,message:_r(e)?e:"",ref:t}}var Rt=e=>fe(e)&&!Or(e)?e:{value:e,message:""},Di=async(e,t,r,n,o)=>{const{ref:i,refs:s,required:a,maxLength:c,minLength:d,min:u,max:l,pattern:b,validate:g,name:p,valueAsNumber:y,mount:h,disabled:_}=e._f,S=C(t,p);if(!h||_)return{};const E=s?s[0]:i,L=D=>{n&&E.reportValidity&&(E.setCustomValidity(je(D)?"":D||""),E.reportValidity())},F={},A=Lo(i),O=nr(i),V=A||O,U=(y||Fo(i))&&se(i.value)&&se(S)||Rr(i)&&i.value===""||S===""||Array.isArray(S)&&!S.length,H=jc.bind(null,p,r,F),Be=(D,M,re,ae=Je.maxLength,ve=Je.minLength)=>{const ie=D?M:re;F[p]={type:D?ae:ve,message:ie,ref:i,...H(D?ae:ve,ie)}};if(o?!Array.isArray(S)||!S.length:a&&(!V&&(U||be(S))||je(S)&&!S||O&&!ua(s).isValid||A&&!da(s).isValid)){const{value:D,message:M}=_r(a)?{value:!!a,message:a}:Rt(a);if(D&&(F[p]={type:Je.required,message:M,ref:E,...H(Je.required,M)},!r))return L(M),F}if(!U&&(!be(u)||!be(l))){let D,M;const re=Rt(l),ae=Rt(u);if(!be(S)&&!isNaN(S)){const ve=i.valueAsNumber||S&&+S;be(re.value)||(D=ve>re.value),be(ae.value)||(M=ve<ae.value)}else{const ve=i.valueAsDate||new Date(S),ie=$e=>new Date(new Date().toDateString()+" "+$e),Ge=i.type=="time",Ke=i.type=="week";ze(re.value)&&S&&(D=Ge?ie(S)>ie(re.value):Ke?S>re.value:ve>new Date(re.value)),ze(ae.value)&&S&&(M=Ge?ie(S)<ie(ae.value):Ke?S<ae.value:ve<new Date(ae.value))}if((D||M)&&(Be(!!D,re.message,ae.message,Je.max,Je.min),!r))return L(F[p].message),F}if((c||d)&&!U&&(ze(S)||o&&Array.isArray(S))){const D=Rt(c),M=Rt(d),re=!be(D.value)&&S.length>+D.value,ae=!be(M.value)&&S.length<+M.value;if((re||ae)&&(Be(re,D.message,M.message),!r))return L(F[p].message),F}if(b&&!U&&ze(S)){const{value:D,message:M}=Rt(b);if(Or(D)&&!S.match(D)&&(F[p]={type:Je.pattern,message:M,ref:i,...H(Je.pattern,M)},!r))return L(M),F}if(g){if(lt(g)){const D=await g(S,t),M=$i(D,E);if(M&&(F[p]={...M,...H(Je.validate,M.message)},!r))return L(M.message),F}else if(fe(g)){let D={};for(const M in g){if(!Te(D)&&!r)break;const re=$i(await g[M](S,t),E,M);re&&(D={...re,...H(M,re.message)},L(re.message),r&&(F[p]=D))}if(!Te(D)&&(F[p]={ref:E,...D},!r))return F}}return L(!0),F};function Wc(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=se(e)?n++:e[t[n++]];return e}function qc(e){for(const t in e)if(e.hasOwnProperty(t)&&!se(e[t]))return!1;return!0}function de(e,t){const r=Array.isArray(t)?t:Oo(t)?[t]:ia(t),n=r.length===1?e:Wc(e,r),o=r.length-1,i=r[o];return n&&delete n[i],o!==0&&(fe(n)&&Te(n)||Array.isArray(n)&&qc(n))&&de(e,r.slice(0,-1)),e}var yn=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},Ar=e=>be(e)||!ra(e);function yt(e,t){if(Ar(e)||Ar(t))return e===t;if(At(e)&&At(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const i=e[o];if(!n.includes(o))return!1;if(o!=="ref"){const s=t[o];if(At(i)&&At(s)||fe(i)&&fe(s)||Array.isArray(i)&&Array.isArray(s)?!yt(i,s):i!==s)return!1}}return!0}var fa=e=>e.type==="select-multiple",Gc=e=>Lo(e)||nr(e),vn=e=>Rr(e)&&e.isConnected,pa=e=>{for(const t in e)if(lt(e[t]))return!0;return!1};function Pr(e,t={}){const r=Array.isArray(e);if(fe(e)||r)for(const n in e)Array.isArray(e[n])||fe(e[n])&&!pa(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Pr(e[n],t[n])):be(e[n])||(t[n]=!0);return t}function ha(e,t,r){const n=Array.isArray(e);if(fe(e)||n)for(const o in e)Array.isArray(e[o])||fe(e[o])&&!pa(e[o])?se(t)||Ar(r[o])?r[o]=Array.isArray(e[o])?Pr(e[o],[]):{...Pr(e[o])}:ha(e[o],be(t)?{}:t[o],r[o]):r[o]=!yt(e[o],t[o]);return r}var dr=(e,t)=>ha(e,t,Pr(t)),ma=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>se(e)?e:t?e===""?NaN:e&&+e:r&&ze(e)?new Date(e):n?n(e):e;function bn(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Fo(t)?t.files:Lo(t)?da(e.refs).value:fa(t)?[...t.selectedOptions].map(({value:r})=>r):nr(t)?ua(e.refs).value:ma(se(t.value)?e.ref.value:t.value,e)}var Kc=(e,t,r,n)=>{const o={};for(const i of e){const s=C(t,i);s&&X(o,i,s._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},Ht=e=>se(e)?e:Or(e)?e.source:fe(e)?Or(e.value)?e.value.source:e.value:e,Jc=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Ni(e,t,r){const n=C(e,r);if(n||Oo(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const i=o.join("."),s=C(t,i),a=C(e,i);if(s&&!Array.isArray(s)&&r!==i)return{name:r};if(a&&a.type)return{name:i,error:a};o.pop()}return{name:r}}var Xc=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,Yc=(e,t)=>!or(C(e,t)).length&&de(e,t);const Qc={mode:De.onSubmit,reValidateMode:De.onChange,shouldFocusError:!0};function Zc(e={}){let t={...Qc,...e},r={submitCount:0,isDirty:!1,isLoading:lt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=fe(t.defaultValues)||fe(t.values)?we(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:we(o),s={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},l={values:yn(),array:yn(),state:yn()},b=Oi(t.mode),g=Oi(t.reValidateMode),p=t.criteriaMode===De.all,y=f=>m=>{clearTimeout(d),d=setTimeout(f,m)},h=async f=>{if(u.isValid||f){const m=t.resolver?Te((await V()).errors):await H(n,!0);m!==r.isValid&&l.state.next({isValid:m})}},_=(f,m)=>{(u.isValidating||u.validatingFields)&&((f||Array.from(a.mount)).forEach(w=>{w&&(m?X(r.validatingFields,w,m):de(r.validatingFields,w))}),l.state.next({validatingFields:r.validatingFields,isValidating:!Te(r.validatingFields)}))},S=(f,m=[],w,R,T=!0,k=!0)=>{if(R&&w){if(s.action=!0,k&&Array.isArray(C(n,f))){const P=w(C(n,f),R.argA,R.argB);T&&X(n,f,P)}if(k&&Array.isArray(C(r.errors,f))){const P=w(C(r.errors,f),R.argA,R.argB);T&&X(r.errors,f,P),Yc(r.errors,f)}if(u.touchedFields&&k&&Array.isArray(C(r.touchedFields,f))){const P=w(C(r.touchedFields,f),R.argA,R.argB);T&&X(r.touchedFields,f,P)}u.dirtyFields&&(r.dirtyFields=dr(o,i)),l.state.next({name:f,isDirty:D(f,m),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else X(i,f,m)},E=(f,m)=>{X(r.errors,f,m),l.state.next({errors:r.errors})},L=f=>{r.errors=f,l.state.next({errors:r.errors,isValid:!1})},F=(f,m,w,R)=>{const T=C(n,f);if(T){const k=C(i,f,se(w)?C(o,f):w);se(k)||R&&R.defaultChecked||m?X(i,f,m?k:bn(T._f)):ae(f,k),s.mount&&h()}},A=(f,m,w,R,T)=>{let k=!1,P=!1;const G={name:f},le=!!(C(n,f)&&C(n,f)._f&&C(n,f)._f.disabled);if(!w||R){u.isDirty&&(P=r.isDirty,r.isDirty=G.isDirty=D(),k=P!==G.isDirty);const Ce=le||yt(C(o,f),m);P=!!(!le&&C(r.dirtyFields,f)),Ce||le?de(r.dirtyFields,f):X(r.dirtyFields,f,!0),G.dirtyFields=r.dirtyFields,k=k||u.dirtyFields&&P!==!Ce}if(w){const Ce=C(r.touchedFields,f);Ce||(X(r.touchedFields,f,w),G.touchedFields=r.touchedFields,k=k||u.touchedFields&&Ce!==w)}return k&&T&&l.state.next(G),k?G:{}},O=(f,m,w,R)=>{const T=C(r.errors,f),k=u.isValid&&je(m)&&r.isValid!==m;if(e.delayError&&w?(c=y(()=>E(f,w)),c(e.delayError)):(clearTimeout(d),c=null,w?X(r.errors,f,w):de(r.errors,f)),(w?!yt(T,w):T)||!Te(R)||k){const P={...R,...k&&je(m)?{isValid:m}:{},errors:r.errors,name:f};r={...r,...P},l.state.next(P)}},V=async f=>{_(f,!0);const m=await t.resolver(i,t.context,Kc(f||a.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return _(f),m},U=async f=>{const{errors:m}=await V(f);if(f)for(const w of f){const R=C(m,w);R?X(r.errors,w,R):de(r.errors,w)}else r.errors=m;return m},H=async(f,m,w={valid:!0})=>{for(const R in f){const T=f[R];if(T){const{_f:k,...P}=T;if(k){const G=a.array.has(k.name);_([R],!0);const le=await Di(T,i,p,t.shouldUseNativeValidation&&!m,G);if(_([R]),le[k.name]&&(w.valid=!1,m))break;!m&&(C(le,k.name)?G?zc(r.errors,le,k.name):X(r.errors,k.name,le[k.name]):de(r.errors,k.name))}P&&await H(P,m,w)}}return w.valid},Be=()=>{for(const f of a.unMount){const m=C(n,f);m&&(m._f.refs?m._f.refs.every(w=>!vn(w)):!vn(m._f.ref))&&ue(f)}a.unMount=new Set},D=(f,m)=>(f&&m&&X(i,f,m),!yt(nt(),o)),M=(f,m,w)=>ca(f,a,{...s.mount?i:se(m)?o:ze(f)?{[f]:m}:m},w,m),re=f=>or(C(s.mount?i:o,f,e.shouldUnregister?C(o,f,[]):[])),ae=(f,m,w={})=>{const R=C(n,f);let T=m;if(R){const k=R._f;k&&(!k.disabled&&X(i,f,ma(m,k)),T=Rr(k.ref)&&be(m)?"":m,fa(k.ref)?[...k.ref.options].forEach(P=>P.selected=T.includes(P.value)):k.refs?nr(k.ref)?k.refs.length>1?k.refs.forEach(P=>(!P.defaultChecked||!P.disabled)&&(P.checked=Array.isArray(T)?!!T.find(G=>G===P.value):T===P.value)):k.refs[0]&&(k.refs[0].checked=!!T):k.refs.forEach(P=>P.checked=P.value===T):Fo(k.ref)?k.ref.value="":(k.ref.value=T,k.ref.type||l.values.next({name:f,values:{...i}})))}(w.shouldDirty||w.shouldTouch)&&A(f,T,w.shouldTouch,w.shouldDirty,!0),w.shouldValidate&&$e(f)},ve=(f,m,w)=>{for(const R in m){const T=m[R],k=`${f}.${R}`,P=C(n,k);(a.array.has(f)||!Ar(T)||P&&!P._f)&&!At(T)?ve(k,T,w):ae(k,T,w)}},ie=(f,m,w={})=>{const R=C(n,f),T=a.array.has(f),k=we(m);X(i,f,k),T?(l.array.next({name:f,values:{...i}}),(u.isDirty||u.dirtyFields)&&w.shouldDirty&&l.state.next({name:f,dirtyFields:dr(o,i),isDirty:D(f,k)})):R&&!R._f&&!be(k)?ve(f,k,w):ae(f,k,w),Ai(f,a)&&l.state.next({...r}),l.values.next({name:s.mount?f:void 0,values:{...i}})},Ge=async f=>{s.mount=!0;const m=f.target;let w=m.name,R=!0;const T=C(n,w),k=()=>m.type?bn(T._f):na(f),P=G=>{R=Number.isNaN(G)||G===C(i,w,G)};if(T){let G,le;const Ce=k(),Tt=f.type===Tr.BLUR||f.type===Tr.FOCUS_OUT,il=!Jc(T._f)&&!t.resolver&&!C(r.errors,w)&&!T._f.deps||Xc(Tt,C(r.touchedFields,w),r.isSubmitted,g,b),dn=Ai(w,a,Tt);X(i,w,Ce),Tt?(T._f.onBlur&&T._f.onBlur(f),c&&c(0)):T._f.onChange&&T._f.onChange(f);const fn=A(w,Ce,Tt,!1),sl=!Te(fn)||dn;if(!Tt&&l.values.next({name:w,type:f.type,values:{...i}}),il)return u.isValid&&h(),sl&&l.state.next({name:w,...dn?{}:fn});if(!Tt&&dn&&l.state.next({...r}),t.resolver){const{errors:Qo}=await V([w]);if(P(Ce),R){const al=Ni(r.errors,n,w),Zo=Ni(Qo,n,al.name||w);G=Zo.error,w=Zo.name,le=Te(Qo)}}else _([w],!0),G=(await Di(T,i,p,t.shouldUseNativeValidation))[w],_([w]),P(Ce),R&&(G?le=!1:u.isValid&&(le=await H(n,!0)));R&&(T._f.deps&&$e(T._f.deps),O(w,le,G,fn))}},Ke=(f,m)=>{if(C(r.errors,m)&&f.focus)return f.focus(),1},$e=async(f,m={})=>{let w,R;const T=br(f);if(t.resolver){const k=await U(se(f)?f:T);w=Te(k),R=f?!T.some(P=>C(k,P)):w}else f?(R=(await Promise.all(T.map(async k=>{const P=C(n,k);return await H(P&&P._f?{[k]:P}:P)}))).every(Boolean),!(!R&&!r.isValid)&&h()):R=w=await H(n);return l.state.next({...!ze(f)||u.isValid&&w!==r.isValid?{}:{name:f},...t.resolver||!f?{isValid:w}:{},errors:r.errors}),m.shouldFocus&&!R&&Gt(n,Ke,f?T:a.mount),R},nt=f=>{const m={...s.mount?i:o};return se(f)?m:ze(f)?C(m,f):f.map(w=>C(m,w))},_e=(f,m)=>({invalid:!!C((m||r).errors,f),isDirty:!!C((m||r).dirtyFields,f),error:C((m||r).errors,f),isValidating:!!C(r.validatingFields,f),isTouched:!!C((m||r).touchedFields,f)}),Ut=f=>{f&&br(f).forEach(m=>de(r.errors,m)),l.state.next({errors:f?r.errors:{}})},N=(f,m,w)=>{const R=(C(n,f,{_f:{}})._f||{}).ref,T=C(r.errors,f)||{},{ref:k,message:P,type:G,...le}=T;X(r.errors,f,{...le,...m,ref:R}),l.state.next({name:f,errors:r.errors,isValid:!1}),w&&w.shouldFocus&&R&&R.focus&&R.focus()},Q=(f,m)=>lt(f)?l.values.subscribe({next:w=>f(M(void 0,m),w)}):M(f,m,!0),ue=(f,m={})=>{for(const w of f?br(f):a.mount)a.mount.delete(w),a.array.delete(w),m.keepValue||(de(n,w),de(i,w)),!m.keepError&&de(r.errors,w),!m.keepDirty&&de(r.dirtyFields,w),!m.keepTouched&&de(r.touchedFields,w),!m.keepIsValidating&&de(r.validatingFields,w),!t.shouldUnregister&&!m.keepDefaultValue&&de(o,w);l.values.next({values:{...i}}),l.state.next({...r,...m.keepDirty?{isDirty:D()}:{}}),!m.keepIsValid&&h()},mt=({disabled:f,name:m,field:w,fields:R,value:T})=>{if(je(f)&&s.mount||f){const k=f?void 0:se(T)?bn(w?w._f:C(R,m)._f):T;X(i,m,k),A(m,k,!1,!1,!0)}},Ct=(f,m={})=>{let w=C(n,f);const R=je(m.disabled);return X(n,f,{...w||{},_f:{...w&&w._f?w._f:{ref:{name:f}},name:f,mount:!0,...m}}),a.mount.add(f),w?mt({field:w,disabled:m.disabled,name:f,value:m.value}):F(f,!0,m.value),{...R?{disabled:m.disabled}:{},...t.progressive?{required:!!m.required,min:Ht(m.min),max:Ht(m.max),minLength:Ht(m.minLength),maxLength:Ht(m.maxLength),pattern:Ht(m.pattern)}:{},name:f,onChange:Ge,onBlur:Ge,ref:T=>{if(T){Ct(f,m),w=C(n,f);const k=se(T.value)&&T.querySelectorAll&&T.querySelectorAll("input,select,textarea")[0]||T,P=Gc(k),G=w._f.refs||[];if(P?G.find(le=>le===k):k===w._f.ref)return;X(n,f,{_f:{...w._f,...P?{refs:[...G.filter(vn),k,...Array.isArray(C(o,f))?[{}]:[]],ref:{type:k.type,name:f}}:{ref:k}}}),F(f,!1,void 0,k)}else w=C(n,f,{}),w._f&&(w._f.mount=!1),(t.shouldUnregister||m.shouldUnregister)&&!(oa(a.array,f)&&s.action)&&a.unMount.add(f)}}},Ko=()=>t.shouldFocusError&&Gt(n,Ke,a.mount),nl=f=>{je(f)&&(l.state.next({disabled:f}),Gt(n,(m,w)=>{const R=C(n,w);R&&(m.disabled=R._f.disabled||f,Array.isArray(R._f.refs)&&R._f.refs.forEach(T=>{T.disabled=R._f.disabled||f}))},0,!1))},Jo=(f,m)=>async w=>{let R;w&&(w.preventDefault&&w.preventDefault(),w.persist&&w.persist());let T=we(i);if(l.state.next({isSubmitting:!0}),t.resolver){const{errors:k,values:P}=await V();r.errors=k,T=P}else await H(n);if(de(r.errors,"root"),Te(r.errors)){l.state.next({errors:{}});try{await f(T,w)}catch(k){R=k}}else m&&await m({...r.errors},w),Ko(),setTimeout(Ko);if(l.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Te(r.errors)&&!R,submitCount:r.submitCount+1,errors:r.errors}),R)throw R},ol=(f,m={})=>{C(n,f)&&(se(m.defaultValue)?ie(f,we(C(o,f))):(ie(f,m.defaultValue),X(o,f,we(m.defaultValue))),m.keepTouched||de(r.touchedFields,f),m.keepDirty||(de(r.dirtyFields,f),r.isDirty=m.defaultValue?D(f,we(C(o,f))):D()),m.keepError||(de(r.errors,f),u.isValid&&h()),l.state.next({...r}))},Xo=(f,m={})=>{const w=f?we(f):o,R=we(w),T=Te(f),k=T?o:R;if(m.keepDefaultValues||(o=w),!m.keepValues){if(m.keepDirtyValues)for(const P of a.mount)C(r.dirtyFields,P)?X(k,P,C(i,P)):ie(P,C(k,P));else{if(Ro&&se(f))for(const P of a.mount){const G=C(n,P);if(G&&G._f){const le=Array.isArray(G._f.refs)?G._f.refs[0]:G._f.ref;if(Rr(le)){const Ce=le.closest("form");if(Ce){Ce.reset();break}}}}n={}}i=e.shouldUnregister?m.keepDefaultValues?we(o):{}:we(k),l.array.next({values:{...k}}),l.values.next({values:{...k}})}a={mount:m.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!m.keepIsValid||!!m.keepDirtyValues,s.watch=!!e.shouldUnregister,l.state.next({submitCount:m.keepSubmitCount?r.submitCount:0,isDirty:T?!1:m.keepDirty?r.isDirty:!!(m.keepDefaultValues&&!yt(f,o)),isSubmitted:m.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:T?[]:m.keepDirtyValues?m.keepDefaultValues&&i?dr(o,i):r.dirtyFields:m.keepDefaultValues&&f?dr(o,f):m.keepDirty?r.dirtyFields:{},touchedFields:m.keepTouched?r.touchedFields:{},errors:m.keepErrors?r.errors:{},isSubmitSuccessful:m.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Yo=(f,m)=>Xo(lt(f)?f(i):f,m);return{control:{register:Ct,unregister:ue,getFieldState:_e,handleSubmit:Jo,setError:N,_executeSchema:V,_getWatch:M,_getDirty:D,_updateValid:h,_removeUnmounted:Be,_updateFieldArray:S,_updateDisabledField:mt,_getFieldArray:re,_reset:Xo,_resetDefaultValues:()=>lt(t.defaultValues)&&t.defaultValues().then(f=>{Yo(f,t.resetOptions),l.state.next({isLoading:!1})}),_updateFormState:f=>{r={...r,...f}},_disableForm:nl,_subjects:l,_proxyFormState:u,_setErrors:L,get _fields(){return n},get _formValues(){return i},get _state(){return s},set _state(f){s=f},get _defaultValues(){return o},get _names(){return a},set _names(f){a=f},get _formState(){return r},set _formState(f){r=f},get _options(){return t},set _options(f){t={...t,...f}}},trigger:$e,register:Ct,handleSubmit:Jo,watch:Q,setValue:ie,getValues:nt,reset:Yo,resetField:ol,clearErrors:Ut,unregister:ue,setError:N,setFocus:(f,m={})=>{const w=C(n,f),R=w&&w._f;if(R){const T=R.refs?R.refs[0]:R.ref;T.focus&&(T.focus(),m.shouldSelect&&T.select())}},getFieldState:_e}}function $o(e={}){const t=$.useRef(),r=$.useRef(),[n,o]=$.useState({isDirty:!1,isValidating:!1,isLoading:lt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:lt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Zc(e),formState:n});const i=t.current.control;return i._options=e,Po({subject:i._subjects.state,next:s=>{aa(s,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),$.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),$.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==n.isDirty&&i._subjects.state.next({isDirty:s})}},[i,n.isDirty]),$.useEffect(()=>{e.values&&!yt(e.values,r.current)?(i._reset(e.values,i._options.resetOptions),r.current=e.values,o(s=>({...s}))):i._resetDefaultValues()},[e.values,i]),$.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),$.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),$.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=sa(n,i),t.current}function ga(e,t){return function(){return e.apply(t,arguments)}}const{toString:eu}=Object.prototype,{getPrototypeOf:Do}=Object,en=(e=>t=>{const r=eu.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ve=e=>(e=e.toLowerCase(),t=>en(t)===e),tn=e=>t=>typeof t===e,{isArray:It}=Array,Zt=tn("undefined");function tu(e){return e!==null&&!Zt(e)&&e.constructor!==null&&!Zt(e.constructor)&&Ae(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ya=Ve("ArrayBuffer");function ru(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ya(e.buffer),t}const nu=tn("string"),Ae=tn("function"),va=tn("number"),rn=e=>e!==null&&typeof e=="object",ou=e=>e===!0||e===!1,wr=e=>{if(en(e)!=="object")return!1;const t=Do(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},iu=Ve("Date"),su=Ve("File"),au=Ve("Blob"),lu=Ve("FileList"),cu=e=>rn(e)&&Ae(e.pipe),uu=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ae(e.append)&&((t=en(e))==="formdata"||t==="object"&&Ae(e.toString)&&e.toString()==="[object FormData]"))},du=Ve("URLSearchParams"),[fu,pu,hu,mu]=["ReadableStream","Request","Response","Headers"].map(Ve),gu=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ir(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),It(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function ba(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_a=e=>!Zt(e)&&e!==vt;function Hn(){const{caseless:e}=_a(this)&&this||{},t={},r=(n,o)=>{const i=e&&ba(t,o)||o;wr(t[i])&&wr(n)?t[i]=Hn(t[i],n):wr(n)?t[i]=Hn({},n):It(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&ir(arguments[n],r);return t}const yu=(e,t,r,{allOwnKeys:n}={})=>(ir(t,(o,i)=>{r&&Ae(o)?e[i]=ga(o,r):e[i]=o},{allOwnKeys:n}),e),vu=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bu=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},_u=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Do(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},wu=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},xu=e=>{if(!e)return null;if(It(e))return e;let t=e.length;if(!va(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Su=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Do(Uint8Array)),Eu=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},ku=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Cu=Ve("HTMLFormElement"),Tu=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ii=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ru=Ve("RegExp"),wa=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ir(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},Ou=e=>{wa(e,(t,r)=>{if(Ae(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ae(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Au=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return It(e)?n(e):n(String(e).split(t)),r},Pu=()=>{},Fu=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,_n="abcdefghijklmnopqrstuvwxyz",Vi="0123456789",xa={DIGIT:Vi,ALPHA:_n,ALPHA_DIGIT:_n+_n.toUpperCase()+Vi},Lu=(e=16,t=xa.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function $u(e){return!!(e&&Ae(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Du=e=>{const t=new Array(10),r=(n,o)=>{if(rn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=It(n)?[]:{};return ir(n,(s,a)=>{const c=r(s,o+1);!Zt(c)&&(i[a]=c)}),t[o]=void 0,i}}return n};return r(e,0)},Nu=Ve("AsyncFunction"),Iu=e=>e&&(rn(e)||Ae(e))&&Ae(e.then)&&Ae(e.catch),Sa=((e,t)=>e?setImmediate:t?((r,n)=>(vt.addEventListener("message",({source:o,data:i})=>{o===vt&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),vt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ae(vt.postMessage)),Vu=typeof queueMicrotask<"u"?queueMicrotask.bind(vt):typeof process<"u"&&process.nextTick||Sa,v={isArray:It,isArrayBuffer:ya,isBuffer:tu,isFormData:uu,isArrayBufferView:ru,isString:nu,isNumber:va,isBoolean:ou,isObject:rn,isPlainObject:wr,isReadableStream:fu,isRequest:pu,isResponse:hu,isHeaders:mu,isUndefined:Zt,isDate:iu,isFile:su,isBlob:au,isRegExp:Ru,isFunction:Ae,isStream:cu,isURLSearchParams:du,isTypedArray:Su,isFileList:lu,forEach:ir,merge:Hn,extend:yu,trim:gu,stripBOM:vu,inherits:bu,toFlatObject:_u,kindOf:en,kindOfTest:Ve,endsWith:wu,toArray:xu,forEachEntry:Eu,matchAll:ku,isHTMLForm:Cu,hasOwnProperty:Ii,hasOwnProp:Ii,reduceDescriptors:wa,freezeMethods:Ou,toObjectSet:Au,toCamelCase:Tu,noop:Pu,toFiniteNumber:Fu,findKey:ba,global:vt,isContextDefined:_a,ALPHABET:xa,generateString:Lu,isSpecCompliantForm:$u,toJSONObject:Du,isAsyncFn:Nu,isThenable:Iu,setImmediate:Sa,asap:Vu};function I(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}v.inherits(I,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ea=I.prototype,ka={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ka[e]={value:e}});Object.defineProperties(I,ka);Object.defineProperty(Ea,"isAxiosError",{value:!0});I.from=(e,t,r,n,o,i)=>{const s=Object.create(Ea);return v.toFlatObject(e,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),I.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Bu=null;function jn(e){return v.isPlainObject(e)||v.isArray(e)}function Ca(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function Bi(e,t,r){return e?e.concat(t).map(function(o,i){return o=Ca(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Uu(e){return v.isArray(e)&&!e.some(jn)}const Mu=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function nn(e,t,r){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!v.isUndefined(h[y])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(o))throw new TypeError("visitor must be a function");function d(p){if(p===null)return"";if(v.isDate(p))return p.toISOString();if(!c&&v.isBlob(p))throw new I("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(p)||v.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,y,h){let _=p;if(p&&!h&&typeof p=="object"){if(v.endsWith(y,"{}"))y=n?y:y.slice(0,-2),p=JSON.stringify(p);else if(v.isArray(p)&&Uu(p)||(v.isFileList(p)||v.endsWith(y,"[]"))&&(_=v.toArray(p)))return y=Ca(y),_.forEach(function(E,L){!(v.isUndefined(E)||E===null)&&t.append(s===!0?Bi([y],L,i):s===null?y:y+"[]",d(E))}),!1}return jn(p)?!0:(t.append(Bi(h,y,i),d(p)),!1)}const l=[],b=Object.assign(Mu,{defaultVisitor:u,convertValue:d,isVisitable:jn});function g(p,y){if(!v.isUndefined(p)){if(l.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));l.push(p),v.forEach(p,function(_,S){(!(v.isUndefined(_)||_===null)&&o.call(t,_,v.isString(S)?S.trim():S,y,b))===!0&&g(_,y?y.concat(S):[S])}),l.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ui(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function No(e,t){this._pairs=[],e&&nn(e,this,t)}const Ta=No.prototype;Ta.append=function(t,r){this._pairs.push([t,r])};Ta.toString=function(t){const r=t?function(n){return t.call(this,n,Ui)}:Ui;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Hu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ra(e,t,r){if(!t)return e;const n=r&&r.encode||Hu,o=r&&r.serialize;let i;if(o?i=o(t,r):i=v.isURLSearchParams(t)?t.toString():new No(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Mi{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Oa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ju=typeof URLSearchParams<"u"?URLSearchParams:No,zu=typeof FormData<"u"?FormData:null,Wu=typeof Blob<"u"?Blob:null,qu={isBrowser:!0,classes:{URLSearchParams:ju,FormData:zu,Blob:Wu},protocols:["http","https","file","blob","url","data"]},Io=typeof window<"u"&&typeof document<"u",Gu=(e=>Io&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ku=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ju=Io&&window.location.href||"http://localhost",Xu=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Io,hasStandardBrowserEnv:Gu,hasStandardBrowserWebWorkerEnv:Ku,origin:Ju},Symbol.toStringTag,{value:"Module"})),Ie={...Xu,...qu};function Yu(e,t){return nn(e,new Ie.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Ie.isNode&&v.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Qu(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Zu(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Aa(e){function t(r,n,o,i){let s=r[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=r.length;return s=!s&&v.isArray(o)?o.length:s,c?(v.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!v.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&v.isArray(o[s])&&(o[s]=Zu(o[s])),!a)}if(v.isFormData(e)&&v.isFunction(e.entries)){const r={};return v.forEachEntry(e,(n,o)=>{t(Qu(n),o,r,0)}),r}return null}function ed(e,t,r){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const sr={transitional:Oa,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=v.isObject(t);if(i&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return o?JSON.stringify(Aa(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Yu(t,this.formSerializer).toString();if((a=v.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return nn(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),ed(t)):t}],transformResponse:[function(t){const r=this.transitional||sr.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?I.from(a,I.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ie.classes.FormData,Blob:Ie.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{sr.headers[e]={}});const td=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rd=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
9
|
-
|
|
10
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Hi]=this[Hi]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=jt(s);n[a]||(sd(o,s),n[a]=!0)}return v.isArray(t)?t.forEach(i):i(t),this}}Ee.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(Ee.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});v.freezeMethods(Ee);function xn(e,t){const r=this||sr,n=t||r,o=Ee.from(n.headers);let i=n.data;return v.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Pa(e){return!!(e&&e.__CANCEL__)}function Vt(e,t,r){I.call(this,e??"canceled",I.ERR_CANCELED,t,r),this.name="CanceledError"}v.inherits(Vt,I,{__CANCEL__:!0});function Fa(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new I("Request failed with status code "+r.status,[I.ERR_BAD_REQUEST,I.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ad(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ld(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=n[i];s||(s=d),r[o]=c,n[o]=d;let l=i,b=0;for(;l!==o;)b+=r[l++],l=l%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),d-s<t)return;const g=u&&d-u;return g?Math.round(b*1e3/g):void 0}}function cd(e,t){let r=0,n=1e3/t,o,i;const s=(d,u=Date.now())=>{r=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,d)};return[(...d)=>{const u=Date.now(),l=u-r;l>=n?s(d,u):(o=d,i||(i=setTimeout(()=>{i=null,s(o)},n-l)))},()=>o&&s(o)]}const Fr=(e,t,r=3)=>{let n=0;const o=ld(50,250);return cd(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=s-n,d=o(c),u=s<=a;n=s;const l={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a&&u?(a-s)/d:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(l)},r)},ji=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},zi=e=>(...t)=>v.asap(()=>e(...t)),ud=Ie.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const a=v.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}(),dd=Ie.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];v.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),v.isString(n)&&s.push("path="+n),v.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function La(e,t){return e&&!fd(t)?pd(e,t):t}const Wi=e=>e instanceof Ee?{...e}:e;function St(e,t){t=t||{};const r={};function n(d,u,l){return v.isPlainObject(d)&&v.isPlainObject(u)?v.merge.call({caseless:l},d,u):v.isPlainObject(u)?v.merge({},u):v.isArray(u)?u.slice():u}function o(d,u,l){if(v.isUndefined(u)){if(!v.isUndefined(d))return n(void 0,d,l)}else return n(d,u,l)}function i(d,u){if(!v.isUndefined(u))return n(void 0,u)}function s(d,u){if(v.isUndefined(u)){if(!v.isUndefined(d))return n(void 0,d)}else return n(void 0,u)}function a(d,u,l){if(l in t)return n(d,u);if(l in e)return n(void 0,d)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(d,u)=>o(Wi(d),Wi(u),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(u){const l=c[u]||o,b=l(e[u],t[u],u);v.isUndefined(b)&&l!==a||(r[u]=b)}),r}const $a=e=>{const t=St({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=Ee.from(s),t.url=Ra(La(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(v.isFormData(r)){if(Ie.hasStandardBrowserEnv||Ie.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[d,...u]=c?c.split(";").map(l=>l.trim()).filter(Boolean):[];s.setContentType([d||"multipart/form-data",...u].join("; "))}}if(Ie.hasStandardBrowserEnv&&(n&&v.isFunction(n)&&(n=n(t)),n||n!==!1&&ud(t.url))){const d=o&&i&&dd.read(i);d&&s.set(o,d)}return t},hd=typeof XMLHttpRequest<"u",md=hd&&function(e){return new Promise(function(r,n){const o=$a(e);let i=o.data;const s=Ee.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:d}=o,u,l,b,g,p;function y(){g&&g(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function _(){if(!h)return;const E=Ee.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),F={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:E,config:e,request:h};Fa(function(O){r(O),y()},function(O){n(O),y()},F),h=null}"onloadend"in h?h.onloadend=_:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(_)},h.onabort=function(){h&&(n(new I("Request aborted",I.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new I("Network Error",I.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let L=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const F=o.transitional||Oa;o.timeoutErrorMessage&&(L=o.timeoutErrorMessage),n(new I(L,F.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,e,h)),h=null},i===void 0&&s.setContentType(null),"setRequestHeader"in h&&v.forEach(s.toJSON(),function(L,F){h.setRequestHeader(F,L)}),v.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),a&&a!=="json"&&(h.responseType=o.responseType),d&&([b,p]=Fr(d,!0),h.addEventListener("progress",b)),c&&h.upload&&([l,g]=Fr(c),h.upload.addEventListener("progress",l),h.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(u=E=>{h&&(n(!E||E.type?new Vt(null,e,h):E),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const S=ad(o.url);if(S&&Ie.protocols.indexOf(S)===-1){n(new I("Unsupported protocol "+S+":",I.ERR_BAD_REQUEST,e));return}h.send(i||null)})},gd=(e,t)=>{let r=new AbortController,n;const o=function(c){if(!n){n=!0,s();const d=c instanceof Error?c:this.reason;r.abort(d instanceof I?d:new Vt(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{o(new I(`timeout ${t} of ms exceeded`,I.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},yd=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},vd=async function*(e,t,r){for await(const n of e)yield*yd(ArrayBuffer.isView(n)?n:await r(String(n)),t)},qi=(e,t,r,n,o)=>{const i=vd(e,t,o);let s=0,a,c=d=>{a||(a=!0,n&&n(d))};return new ReadableStream({async pull(d){try{const{done:u,value:l}=await i.next();if(u){c(),d.close();return}let b=l.byteLength;if(r){let g=s+=b;r(g)}d.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(d){return c(d),i.return()}},{highWaterMark:2})},on=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Da=on&&typeof ReadableStream=="function",zn=on&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Na=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bd=Da&&Na(()=>{let e=!1;const t=new Request(Ie.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Gi=64*1024,Wn=Da&&Na(()=>v.isReadableStream(new Response("").body)),Lr={stream:Wn&&(e=>e.body)};on&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Lr[t]&&(Lr[t]=v.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new I(`Response type '${t}' is not supported`,I.ERR_NOT_SUPPORT,n)})})})(new Response);const _d=async e=>{if(e==null)return 0;if(v.isBlob(e))return e.size;if(v.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(v.isArrayBufferView(e)||v.isArrayBuffer(e))return e.byteLength;if(v.isURLSearchParams(e)&&(e=e+""),v.isString(e))return(await zn(e)).byteLength},wd=async(e,t)=>{const r=v.toFiniteNumber(e.getContentLength());return r??_d(t)},xd=on&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:d,headers:u,withCredentials:l="same-origin",fetchOptions:b}=$a(e);d=d?(d+"").toLowerCase():"text";let[g,p]=o||i||s?gd([o,i],s):[],y,h;const _=()=>{!y&&setTimeout(()=>{g&&g.unsubscribe()}),y=!0};let S;try{if(c&&bd&&r!=="get"&&r!=="head"&&(S=await wd(u,n))!==0){let A=new Request(t,{method:"POST",body:n,duplex:"half"}),O;if(v.isFormData(n)&&(O=A.headers.get("content-type"))&&u.setContentType(O),A.body){const[V,U]=ji(S,Fr(zi(c)));n=qi(A.body,Gi,V,U,zn)}}v.isString(l)||(l=l?"include":"omit"),h=new Request(t,{...b,signal:g,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:l});let E=await fetch(h);const L=Wn&&(d==="stream"||d==="response");if(Wn&&(a||L)){const A={};["status","statusText","headers"].forEach(H=>{A[H]=E[H]});const O=v.toFiniteNumber(E.headers.get("content-length")),[V,U]=a&&ji(O,Fr(zi(a),!0))||[];E=new Response(qi(E.body,Gi,V,()=>{U&&U(),L&&_()},zn),A)}d=d||"text";let F=await Lr[v.findKey(Lr,d)||"text"](E,e);return!L&&_(),p&&p(),await new Promise((A,O)=>{Fa(A,O,{data:F,headers:Ee.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:h})})}catch(E){throw _(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new I("Network Error",I.ERR_NETWORK,e,h),{cause:E.cause||E}):I.from(E,E&&E.code,e,h)}}),qn={http:Bu,xhr:md,fetch:xd};v.forEach(qn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ki=e=>`- ${e}`,Sd=e=>v.isFunction(e)||e===null||e===!1,Ia={getAdapter:e=>{e=v.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let s;if(n=r,!Sd(r)&&(n=qn[(s=String(r)).toLowerCase()],n===void 0))throw new I(`Unknown adapter '${s}'`);if(n)break;o[s||"#"+i]=n}if(!n){const i=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=St(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Gn.assertOptions(n,{silentJSONParsing:ot.transitional(ot.boolean),forcedJSONParsing:ot.transitional(ot.boolean),clarifyTimeoutError:ot.transitional(ot.boolean)},!1),o!=null&&(v.isFunction(o)?r.paramsSerializer={serialize:o}:Gn.assertOptions(o,{encode:ot.function,serialize:ot.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&v.merge(i.common,i[r.method]);i&&v.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=Ee.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(c=c&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let u,l=0,b;if(!c){const p=[Ji.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,d),b=p.length,u=Promise.resolve(r);l<b;)u=u.then(p[l++],p[l++]);return u}b=a.length;let g=r;for(l=0;l<b;){const p=a[l++],y=a[l++];try{g=p(g)}catch(h){y.call(this,h);break}}try{u=Ji.call(this,g)}catch(p){return Promise.reject(p)}for(l=0,b=d.length;l<b;)u=u.then(d[l++],d[l++]);return u}getUri(t){t=St(this.defaults,t);const r=La(t.baseURL,t.url);return Ra(r,t.params,t.paramsSerializer)}}v.forEach(["delete","get","head","options"],function(t){_t.prototype[t]=function(r,n){return this.request(St(n||{},{method:t,url:r,data:(n||{}).data}))}});v.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,a){return this.request(St(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}_t.prototype[t]=r(),_t.prototype[t+"Form"]=r(!0)});class Bo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new Vt(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Bo(function(o){t=o}),cancel:t}}}function kd(e){return function(r){return e.apply(null,r)}}function Cd(e){return v.isObject(e)&&e.isAxiosError===!0}const Kn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kn).forEach(([e,t])=>{Kn[t]=e});function Ba(e){const t=new _t(e),r=ga(_t.prototype.request,t);return v.extend(r,_t.prototype,t,{allOwnKeys:!0}),v.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Ba(St(e,o))},r}const oe=Ba(sr);oe.Axios=_t;oe.CanceledError=Vt;oe.CancelToken=Bo;oe.isCancel=Pa;oe.VERSION=Va;oe.toFormData=nn;oe.AxiosError=I;oe.Cancel=oe.CanceledError;oe.all=function(t){return Promise.all(t)};oe.spread=kd;oe.isAxiosError=Cd;oe.mergeConfig=St;oe.AxiosHeaders=Ee;oe.formToJSON=e=>Aa(v.isHTMLForm(e)?new FormData(e):e);oe.getAdapter=Ia.getAdapter;oe.HttpStatusCode=Kn;oe.default=oe;const Td=(e,{onRequest:t,onRequestError:r,onResponse:n,onResponseError:o})=>{e.interceptors.request.use(async i=>(t&&await t(i),i),async i=>{throw r&&await r(i),i}),e.interceptors.response.use(async i=>(n&&await n(i),i),async i=>{throw o&&await o(i),i})},Rd=({request:e})=>console.error("[API] Request error:",e),Od=({response:e})=>{if(e){const{status:t,request:r,data:n}=e;console.error("[API] Response error:",t,r.responseURL,JSON.stringify(n))}},Ua=async e=>{var t;try{const r=await((t=e.response)==null?void 0:t.data).text();return JSON.parse(r)}catch{return{}}},Ad=({response:e})=>{try{if(e){const{data:t}=e;return t}}catch{return{}}},Ma=e=>new Date(Date.now()+e*24*60*60*1e3).toISOString().split("T")[0];let Qe;const Pd="/salary-packaging/admin/v1.0/catche/receipt-batch",Fd=e=>`/salary-packaging/admin/v1.0/reports/${e.report}?startDate=${e.startDate}&endDate=${e.endDate}&groupCode=${e.groupCode}&clientId=${e.clientId}`,Ld=async(e,t)=>{const r=e==null?void 0:e.replace(/\/?$/,"");return Qe=oe.create({baseURL:`${r}`,timeout:15e3,headers:{Authorization:`Bearer ${t}`}}),Td(Qe,{onRequestError:Rd,onResponseError:Od}),Qe},$d=async e=>{if(!Qe)throw new Error("Api has not been initialized");const t=new FormData;return t.append("source",e.source),t.append("transactionFile",e.transactionsFile),(await Qe.post(`${Pd}`,t,{responseType:"blob"})).data},Dd=async e=>{if(!Qe)throw new Error("Api has not been initialized");return(await Qe.get(Fd(e),{responseType:"blob"})).data},Bt=async(e,t)=>{if(!Qe)throw new Error("Api has not been initialized");const r=Ma(2);await Qe.post(e,{startDate:t,endDate:r})},Nd=e=>Bt("/salary-packaging/admin/v1.0/ingest/clients",e),Id=e=>Bt("/salary-packaging/admin/v1.0/ingest/drivers",e),Vd=e=>Bt("/salary-packaging/admin/v1.0/ingest/contract-budgets",e),Bd=e=>Bt("/salary-packaging/admin/v1.0/ingest/invoice-items",e),Ud=e=>Bt("/salary-packaging/admin/v1.0/ingest/deleted-invoice-items",e),Md=e=>Bt("/salary-packaging/admin/v1.0/ingest/vehicle-contracts",e),Hd=pt("button",{target:"ev353g40"})({borderRadius:"0.375rem",backgroundColor:"var(--fl-color-primary-600)",paddingLeft:"0.875rem",paddingRight:"0.875rem",paddingTop:"0.625rem",paddingBottom:"0.625rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--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":{backgroundColor:"var(--fl-color-primary-700)"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"var(--fl-color-primary-600)"}}," ",({disabled:e})=>e&&{cursor:"not-allowed","--tw-bg-opacity":"1",backgroundColor:"rgb(156 163 175 / var(--tw-bg-opacity))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(156 163 175 / var(--tw-bg-opacity))"}},";"),sn=({as:e,download:t,href:r,disabled:n,children:o,onClick:i,type:s})=>x(Hd,{as:e||"button",download:t,href:r,type:s||"button",disabled:n,onClick:i},o),Ha=({blob:e,children:t,fileName:r})=>{const[n,o]=ee();return te(()=>{const i=URL.createObjectURL(e);return o(i),()=>{URL.revokeObjectURL(i),o(void 0)}},[e]),x(sn,{as:"a",href:n??"#",download:r},t)},ja=pt("div",{target:"e7dk6uz0"})(()=>({height:"1.5rem",width:"1.5rem","@keyframes spin":{to:{transform:"rotate(360deg)"}},animation:"spin 1s linear infinite",borderRadius:"9999px",borderWidth:"2px",borderColor:"var(--fl-color-primary-600)",borderLeftColor:"transparent",borderTopColor:"transparent"}),";");var jd=Object.defineProperty,zd=(e,t,r)=>t in e?jd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,En=(e,t,r)=>(zd(e,typeof t!="symbol"?t+"":t,r),r);let Wd=class{constructor(){En(this,"current",this.detect()),En(this,"handoffState","pending"),En(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},wt=new Wd,Pe=(e,t)=>{wt.isServer?te(e,t):ft(e,t)};function qe(e){let t=z(e);return Pe(()=>{t.current=e},[e]),t}function za(e,t){let[r,n]=ee(e),o=qe(e);return Pe(()=>n(o.current),[o,n,...t]),r}let j=function(e){let t=qe(e);return $.useCallback((...r)=>t.current(...r),[t])};function qd(e,t,r){let[n,o]=ee(r),i=e!==void 0,s=z(i),a=z(!1),c=z(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&s.current&&!c.current&&(c.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:n,j(d=>(i||o(d),t==null?void 0:t(d)))]}function Gd(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function dt(){let e=[],t={addEventListener(r,n,o,i){return r.addEventListener(n,o,i),t.add(()=>r.removeEventListener(n,o,i))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return Gd(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let i=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:i})})},group(r){let n=dt();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let o of e.splice(n,1))o()}},dispose(){for(let r of e.splice(0))r()}};return t}function $t(){let[e]=ee(dt);return te(()=>()=>e.dispose(),[e]),e}function Kd(){let e=typeof document>"u";return"useSyncExternalStore"in kr?(t=>t.useSyncExternalStore)(kr)(()=>()=>{},()=>!1,()=>!e):!1}function Uo(){let e=Kd(),[t,r]=ee(wt.isHandoffComplete);return t&&wt.isHandoffComplete===!1&&r(!1),te(()=>{t!==!0&&r(!0)},[t]),te(()=>wt.handoff(),[]),e?!1:t}var Yi;let an=(Yi=$.useId)!=null?Yi:function(){let e=Uo(),[t,r]=$.useState(e?()=>wt.nextId():null);return Pe(()=>{t===null&&r(wt.nextId())},[t]),t!=null?""+t:void 0};function ge(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ge),n}function Wa(e){return wt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Qi=["[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(",");var Jd=(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))(Jd||{}),Xd=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Xd||{}),Yd=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Yd||{}),Mo=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Mo||{});function qa(e,t=0){var r;return e===((r=Wa(e))==null?void 0:r.body)?!1:ge(t,{0(){return e.matches(Qi)},1(){let n=e;for(;n!==null;){if(n.matches(Qi))return!0;n=n.parentElement}return!1}})}var Qd=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Qd||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Zd(e,t=r=>r){return e.slice().sort((r,n)=>{let o=t(r),i=t(n);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ef(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function tf(){return/Android/gi.test(window.navigator.userAgent)}function rf(){return ef()||tf()}function fr(e,t,r){let n=qe(t);te(()=>{function o(i){n.current(i)}return document.addEventListener(e,o,r),()=>document.removeEventListener(e,o,r)},[e,r])}function nf(e,t,r){let n=qe(t);te(()=>{function o(i){n.current(i)}return window.addEventListener(e,o,r),()=>window.removeEventListener(e,o,r)},[e,r])}function of(e,t,r=!0){let n=z(!1);te(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function o(s,a){if(!n.current||s.defaultPrevented)return;let c=a(s);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let d=function u(l){return typeof l=="function"?u(l()):Array.isArray(l)||l instanceof Set?l:[l]}(e);for(let u of d){if(u===null)continue;let l=u instanceof HTMLElement?u:u.current;if(l!=null&&l.contains(c)||s.composed&&s.composedPath().includes(l))return}return!qa(c,Mo.Loose)&&c.tabIndex!==-1&&s.preventDefault(),t(s,c)}let i=z(null);fr("pointerdown",s=>{var a,c;n.current&&(i.current=((c=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:c[0])||s.target)},!0),fr("mousedown",s=>{var a,c;n.current&&(i.current=((c=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:c[0])||s.target)},!0),fr("click",s=>{rf()||i.current&&(o(s,()=>i.current),i.current=null)},!0),fr("touchend",s=>o(s,()=>s.target instanceof HTMLElement?s.target:null),!0),nf("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Zi(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function sf(e,t){let[r,n]=ee(()=>Zi(e));return Pe(()=>{n(Zi(e))},[e.type,e.as]),Pe(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}let af=Symbol();function kt(...e){let t=z(e);te(()=>{t.current=e},[e]);let r=j(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[af]))?void 0:r}function es(e){return[e.screenX,e.screenY]}function lf(){let e=z([-1,-1]);return{wasMoved(t){let r=es(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=es(t)}}}function $r(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Dr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Dr||{}),ct=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ct||{});function ht({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??cf;let c=Ga(t,e);if(i)return pr(c,r,n,s,a);let d=o??0;if(d&2){let{static:u=!1,...l}=c;if(u)return pr(l,r,n,s,a)}if(d&1){let{unmount:u=!0,...l}=c;return ge(u?0:1,{0(){return null},1(){return pr({...l,hidden:!0,style:{display:"none"}},r,n,s,a)}})}return pr(c,r,n,s,a)}function pr(e,t={},r,n,o){let{as:i=r,children:s,refName:a="ref",...c}=kn(e,["unmount","static"]),d=e.ref!==void 0?{[a]:e.ref}:{},u=typeof s=="function"?s(t):s;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t));let l={};if(t){let b=!1,g=[];for(let[p,y]of Object.entries(t))typeof y=="boolean"&&(b=!0),y===!0&&g.push(p);b&&(l["data-headlessui-state"]=g.join(" "))}if(i===Z&&Object.keys(Jn(c)).length>0){if(!Dt(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(y=>` - ${y}`).join(`
|
|
8
|
+
*/var me=typeof Symbol=="function"&&Symbol.for,_o=me?Symbol.for("react.element"):60103,wo=me?Symbol.for("react.portal"):60106,Mr=me?Symbol.for("react.fragment"):60107,Hr=me?Symbol.for("react.strict_mode"):60108,jr=me?Symbol.for("react.profiler"):60114,zr=me?Symbol.for("react.provider"):60109,Wr=me?Symbol.for("react.context"):60110,xo=me?Symbol.for("react.async_mode"):60111,qr=me?Symbol.for("react.concurrent_mode"):60111,Gr=me?Symbol.for("react.forward_ref"):60112,Kr=me?Symbol.for("react.suspense"):60113,pc=me?Symbol.for("react.suspense_list"):60120,Jr=me?Symbol.for("react.memo"):60115,Xr=me?Symbol.for("react.lazy"):60116,hc=me?Symbol.for("react.block"):60121,mc=me?Symbol.for("react.fundamental"):60117,gc=me?Symbol.for("react.responder"):60118,yc=me?Symbol.for("react.scope"):60119;function Le(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case _o:switch(e=e.type,e){case xo:case qr:case Mr:case jr:case Hr:case Kr:return e;default:switch(e=e&&e.$$typeof,e){case Wr:case Gr:case Xr:case Jr:case zr:return e;default:return t}}case wo:return t}}}function Ks(e){return Le(e)===qr}K.AsyncMode=xo;K.ConcurrentMode=qr;K.ContextConsumer=Wr;K.ContextProvider=zr;K.Element=_o;K.ForwardRef=Gr;K.Fragment=Mr;K.Lazy=Xr;K.Memo=Jr;K.Portal=wo;K.Profiler=jr;K.StrictMode=Hr;K.Suspense=Kr;K.isAsyncMode=function(e){return Ks(e)||Le(e)===xo};K.isConcurrentMode=Ks;K.isContextConsumer=function(e){return Le(e)===Wr};K.isContextProvider=function(e){return Le(e)===zr};K.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_o};K.isForwardRef=function(e){return Le(e)===Gr};K.isFragment=function(e){return Le(e)===Mr};K.isLazy=function(e){return Le(e)===Xr};K.isMemo=function(e){return Le(e)===Jr};K.isPortal=function(e){return Le(e)===wo};K.isProfiler=function(e){return Le(e)===jr};K.isStrictMode=function(e){return Le(e)===Hr};K.isSuspense=function(e){return Le(e)===Kr};K.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Mr||e===qr||e===jr||e===Hr||e===Kr||e===pc||typeof e=="object"&&e!==null&&(e.$$typeof===Xr||e.$$typeof===Jr||e.$$typeof===zr||e.$$typeof===Wr||e.$$typeof===Gr||e.$$typeof===mc||e.$$typeof===gc||e.$$typeof===yc||e.$$typeof===hc)};K.typeOf=Le;Gs.exports=K;var vc=Gs.exports,Js=vc,bc={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xs={};Xs[Js.ForwardRef]=bc;Xs[Js.Memo]=_c;var wc=!0;function Yr(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var So=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||wc===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Qr=function(t,r,n){So(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function xc(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Sc={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,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},Ec=/[A-Z]|^ms/g,kc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ys=function(t){return t.charCodeAt(1)===45},xi=function(t){return t!=null&&typeof t!="boolean"},mn=Bs(function(e){return Ys(e)?e:e.replace(Ec,"-$&").toLowerCase()}),Si=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(kc,function(n,o,i){return He={name:o,styles:i,next:He},o})}return Sc[t]!==1&&!Ys(t)&&typeof r=="number"&&r!==0?r+"px":r};function Qt(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return He={name:r.name,styles:r.styles,next:He},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)He={name:n.name,styles:n.styles,next:He},n=n.next;var o=r.styles+";";return o}return Cc(e,t,r)}case"function":{if(e!==void 0){var i=He,s=r(e);return He=i,Qt(e,t,s)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function Cc(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Qt(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":xi(s)&&(n+=mn(i)+":"+Si(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)xi(s[a])&&(n+=mn(i)+":"+Si(i,s[a])+";");else{var c=Qt(e,t,s);switch(i){case"animation":case"animationName":{n+=mn(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var Ei=/label:\s*([^\s;\n{]+)\s*(;|$)/g,He,bt=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";He=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=Qt(n,r,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=Qt(n,r,t[a]),o&&(i+=s[a]);Ei.lastIndex=0;for(var c="",u;(u=Ei.exec(i))!==null;)c+="-"+u[1];var d=xc(i)+c;return{name:d,styles:i,next:He}},Tc=function(t){return t()},Qs=kr.useInsertionEffect?kr.useInsertionEffect:!1,Zs=Qs||Tc,ki=Qs||pt,Zr={}.hasOwnProperty,ea=rt(typeof HTMLElement<"u"?bo({key:"css"}):null),Rc=ea.Provider,Eo=function(t){return nt(function(r,n){var o=$e(ea);return t(r,o,n)})},ko=rt({}),Mn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ta=function(t,r){var n={};for(var o in r)Zr.call(r,o)&&(n[o]=r[o]);return n[Mn]=t,n},Oc=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return So(r,n,o),Zs(function(){return Qr(r,n,o)}),null},Ac=Eo(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Mn],i=[n],s="";typeof e.className=="string"?s=Yr(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=bt(i,void 0,$e(ko));s+=t.key+"-"+a.name;var c={};for(var u in e)Zr.call(e,u)&&u!=="css"&&u!==Mn&&(c[u]=e[u]);return c.ref=r,c.className=s,X(ee,null,X(Oc,{cache:t,serialized:a,isStringTag:typeof o=="string"}),X(o,c))}),ra=Ac,gn=Eo(function(e,t){var r=e.styles,n=bt([r],void 0,$e(ko)),o=z();return ki(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),o.current=[s,a],function(){s.flush()}},[t]),ki(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(n.next!==void 0&&Qr(t,n.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",n,s,!1)},[t,n.name]),null});function Co(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return bt(t)}var Pc=Vl,Fc=function(t){return t!=="theme"},Ci=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Pc:Fc},Ti=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},$c=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return So(r,n,o),Zs(function(){return Qr(r,n,o)}),null},Lc=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var a=Ti(t,r,n),c=a||Ci(o),u=!c("as");return function(){var d=arguments,l=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&l.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)l.push.apply(l,d);else{l.push(d[0][0]);for(var v=d.length,g=1;g<v;g++)l.push(d[g],d[0][g])}var p=Eo(function(y,h,_){var x=u&&y.as||o,S="",$=[],F=y;if(y.theme==null){F={};for(var A in y)F[A]=y[A];F.theme=$e(ko)}typeof y.className=="string"?S=Yr(h.registered,$,y.className):y.className!=null&&(S=y.className+" ");var O=bt(l.concat($),h.registered,F);S+=h.key+"-"+O.name,s!==void 0&&(S+=" "+s);var V=u&&a===void 0?Ci(x):c,U={};for(var H in y)u&&H==="as"||V(H)&&(U[H]=y[H]);return U.className=S,U.ref=_,X(ee,null,X($c,{cache:h,serialized:O,isStringTag:typeof x=="string"}),X(x,U))});return p.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=l,p.__emotion_forwardProp=a,Object.defineProperty(p,"toString",{value:function(){return"."+s}}),p.withComponent=function(y,h){return e(y,In({},r,h,{shouldForwardProp:Ti(p,h,!0)})).apply(void 0,l)},p}},Dc=["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"],Ke=Lc.bind();Dc.forEach(function(e){Ke[e]=Ke(e)});const Nc=Ke.div`
|
|
9
|
+
input[type='file']::-webkit-file-upload-button,
|
|
10
|
+
input[type='file']::file-selector-button {
|
|
11
|
+
${{cursor:"pointer",borderWidth:"0px",backgroundColor:"var(--fl-color-primary-600)",paddingTop:"0.625rem",paddingBottom:"0.625rem",paddingLeft:"2rem",paddingRight:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))",":hover":{backgroundColor:"var(--fl-color-primary-700)"}}};
|
|
12
|
+
margin-inline-start: -1rem;
|
|
13
|
+
margin-inline-end: 1rem;
|
|
14
|
+
}
|
|
15
|
+
`;var Ic=0;function Tr(e,t,r,n,o,i){t||(t={});var s,a,c=t;if("ref"in c)for(a in c={},t)a=="ref"?s=t[a]:c[a]=t[a];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:--Ic,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)c[a]===void 0&&(c[a]=s[a]);return B.vnode&&B.vnode(u),u}function E(e,t,r){return Zr.call(t,"css")?Tr(ra,ta(e,t),r):Tr(e,t,r)}function J(e,t,r){return Zr.call(t,"css")?Tr(ra,ta(e,t),r):Tr(e,t,r)}const Vc=nt(({onChange:e,error:t,inputLabel:r})=>{const n=o=>{const i=o.target;e(i.files&&i.files[0]||void 0)};return J(Nc,{children:[E("label",{css:{marginBottom:"0.5rem",display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},for:"upload_file",children:r}),E("input",{css:{display:"block",width:"100%",cursor:"pointer",borderRadius:"0.5rem",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",":focus":{outlineColor:"var(--fl-color-primary-600)"}},"aria-describedby":"upload_file",id:"upload_file",type:"file",onChange:n}),E("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:t==null?void 0:t.message})]})});var nr=e=>e.type==="checkbox",At=e=>e instanceof Date,_e=e=>e==null;const na=e=>typeof e=="object";var pe=e=>!_e(e)&&!Array.isArray(e)&&na(e)&&!At(e),oa=e=>pe(e)&&e.target?nr(e.target)?e.target.checked:e.target.value:e,Bc=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ia=(e,t)=>e.has(Bc(t)),Uc=e=>{const t=e.constructor&&e.constructor.prototype;return pe(t)&&t.hasOwnProperty("isPrototypeOf")},To=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function xe(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(To&&(e instanceof Blob||e instanceof FileList))&&(r||pe(e)))if(t=r?[]:{},!r&&!Uc(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=xe(e[n]));else return e;return t}var or=e=>Array.isArray(e)?e.filter(Boolean):[],ae=e=>e===void 0,C=(e,t,r)=>{if(!t||!pe(e))return r;const n=or(t.split(/[,[\].]+?/)).reduce((o,i)=>_e(o)?o:o[i],e);return ae(n)||n===e?ae(e[t])?r:e[t]:n},ze=e=>typeof e=="boolean",Ro=e=>/^\w*$/.test(e),sa=e=>or(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Y=(e,t,r)=>{let n=-1;const o=Ro(t)?[t]:sa(t),i=o.length,s=i-1;for(;++n<i;){const a=o[n];let c=r;if(n!==s){const u=e[a];c=pe(u)||Array.isArray(u)?u:isNaN(+o[n+1])?{}:[]}if(a==="__proto__")return;e[a]=c,e=e[a]}return e};const Rr={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ne={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ye={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Mc=L.createContext(null),Oo=()=>L.useContext(Mc);var aa=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==Ne.all&&(t._proxyFormState[s]=!n||Ne.all),r&&(r[s]=!0),e[s]}});return o},Re=e=>pe(e)&&!Object.keys(e).length,la=(e,t,r,n)=>{r(e);const{name:o,...i}=e;return Re(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!n||Ne.all))},br=e=>Array.isArray(e)?e:[e],ca=(e,t,r)=>!e||!t||e===t||br(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function Ao(e){const t=L.useRef(e);t.current=e,L.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Hc(e){const t=Oo(),{control:r=t.control,disabled:n,name:o,exact:i}=e||{},[s,a]=L.useState(r._formState),c=L.useRef(!0),u=L.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=L.useRef(o);return d.current=o,Ao({disabled:n,next:l=>c.current&&ca(d.current,l.name,i)&&la(l,u.current,r._updateFormState)&&a({...r._formState,...l}),subject:r._subjects.state}),L.useEffect(()=>(c.current=!0,u.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),aa(s,r,u.current,!1)}var We=e=>typeof e=="string",ua=(e,t,r,n,o)=>We(e)?(n&&t.watch.add(e),C(r,e,o)):Array.isArray(e)?e.map(i=>(n&&t.watch.add(i),C(r,i))):(n&&(t.watchAll=!0),r);function jc(e){const t=Oo(),{control:r=t.control,name:n,defaultValue:o,disabled:i,exact:s}=e||{},a=L.useRef(n);a.current=n,Ao({disabled:i,subject:r._subjects.values,next:d=>{ca(a.current,d.name,s)&&u(xe(ua(a.current,r._names,d.values||r._formValues,!1,o)))}});const[c,u]=L.useState(r._getWatch(n,o));return L.useEffect(()=>r._removeUnmounted()),c}function zc(e){const t=Oo(),{name:r,disabled:n,control:o=t.control,shouldUnregister:i}=e,s=ia(o._names.array,r),a=jc({control:o,name:r,defaultValue:C(o._formValues,r,C(o._defaultValues,r,e.defaultValue)),exact:!0}),c=Hc({control:o,name:r}),u=L.useRef(o.register(r,{...e.rules,value:a,...ze(e.disabled)?{disabled:e.disabled}:{}}));return L.useEffect(()=>{const d=o._options.shouldUnregister||i,l=(v,g)=>{const p=C(o._fields,v);p&&p._f&&(p._f.mount=g)};if(l(r,!0),d){const v=xe(C(o._options.defaultValues,r));Y(o._defaultValues,r,v),ae(C(o._formValues,r))&&Y(o._formValues,r,v)}return()=>{(s?d&&!o._state.action:d)?o.unregister(r):l(r,!1)}},[r,o,s,i]),L.useEffect(()=>{C(o._fields,r)&&o._updateDisabledField({disabled:n,fields:o._fields,name:r,value:C(o._fields,r)._f.value})},[n,r,o]),{field:{name:r,value:a,...ze(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:L.useCallback(d=>u.current.onChange({target:{value:oa(d),name:r},type:Rr.CHANGE}),[r]),onBlur:L.useCallback(()=>u.current.onBlur({target:{value:C(o._formValues,r),name:r},type:Rr.BLUR}),[r,o]),ref:d=>{const l=C(o._fields,r);l&&d&&(l._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:v=>d.setCustomValidity(v),reportValidity:()=>d.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!C(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!C(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!C(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!C(c.validatingFields,r)},error:{enumerable:!0,get:()=>C(c.errors,r)}})}}const je=e=>e.render(zc(e));var Wc=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},Ri=e=>({isOnSubmit:!e||e===Ne.onSubmit,isOnBlur:e===Ne.onBlur,isOnChange:e===Ne.onChange,isOnAll:e===Ne.all,isOnTouch:e===Ne.onTouched}),Oi=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Gt=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const i=C(e,o);if(i){const{_f:s,...a}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!n)break;if(s.ref&&t(s.ref,s.name)&&!n)break;Gt(a,t)}else pe(a)&&Gt(a,t)}}};var qc=(e,t,r)=>{const n=or(C(e,r));return Y(n,"root",t[r]),Y(e,r,n),e},Po=e=>e.type==="file",ct=e=>typeof e=="function",Or=e=>{if(!To)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},_r=e=>We(e),Fo=e=>e.type==="radio",Ar=e=>e instanceof RegExp;const Ai={value:!1,isValid:!1},Pi={value:!0,isValid:!0};var da=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ae(e[0].attributes.value)?ae(e[0].value)||e[0].value===""?Pi:{value:e[0].value,isValid:!0}:Pi:Ai}return Ai};const Fi={isValid:!1,value:null};var fa=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,Fi):Fi;function $i(e,t,r="validate"){if(_r(e)||Array.isArray(e)&&e.every(_r)||ze(e)&&!e)return{type:r,message:_r(e)?e:"",ref:t}}var Rt=e=>pe(e)&&!Ar(e)?e:{value:e,message:""},Li=async(e,t,r,n,o)=>{const{ref:i,refs:s,required:a,maxLength:c,minLength:u,min:d,max:l,pattern:v,validate:g,name:p,valueAsNumber:y,mount:h,disabled:_}=e._f,x=C(t,p);if(!h||_)return{};const S=s?s[0]:i,$=D=>{n&&S.reportValidity&&(S.setCustomValidity(ze(D)?"":D||""),S.reportValidity())},F={},A=Fo(i),O=nr(i),V=A||O,U=(y||Po(i))&&ae(i.value)&&ae(x)||Or(i)&&i.value===""||x===""||Array.isArray(x)&&!x.length,H=Wc.bind(null,p,r,F),Ue=(D,M,ne,le=Ye.maxLength,be=Ye.minLength)=>{const se=D?M:ne;F[p]={type:D?le:be,message:se,ref:i,...H(D?le:be,se)}};if(o?!Array.isArray(x)||!x.length:a&&(!V&&(U||_e(x))||ze(x)&&!x||O&&!da(s).isValid||A&&!fa(s).isValid)){const{value:D,message:M}=_r(a)?{value:!!a,message:a}:Rt(a);if(D&&(F[p]={type:Ye.required,message:M,ref:S,...H(Ye.required,M)},!r))return $(M),F}if(!U&&(!_e(d)||!_e(l))){let D,M;const ne=Rt(l),le=Rt(d);if(!_e(x)&&!isNaN(x)){const be=i.valueAsNumber||x&&+x;_e(ne.value)||(D=be>ne.value),_e(le.value)||(M=be<le.value)}else{const be=i.valueAsDate||new Date(x),se=De=>new Date(new Date().toDateString()+" "+De),Je=i.type=="time",Xe=i.type=="week";We(ne.value)&&x&&(D=Je?se(x)>se(ne.value):Xe?x>ne.value:be>new Date(ne.value)),We(le.value)&&x&&(M=Je?se(x)<se(le.value):Xe?x<le.value:be<new Date(le.value))}if((D||M)&&(Ue(!!D,ne.message,le.message,Ye.max,Ye.min),!r))return $(F[p].message),F}if((c||u)&&!U&&(We(x)||o&&Array.isArray(x))){const D=Rt(c),M=Rt(u),ne=!_e(D.value)&&x.length>+D.value,le=!_e(M.value)&&x.length<+M.value;if((ne||le)&&(Ue(ne,D.message,M.message),!r))return $(F[p].message),F}if(v&&!U&&We(x)){const{value:D,message:M}=Rt(v);if(Ar(D)&&!x.match(D)&&(F[p]={type:Ye.pattern,message:M,ref:i,...H(Ye.pattern,M)},!r))return $(M),F}if(g){if(ct(g)){const D=await g(x,t),M=$i(D,S);if(M&&(F[p]={...M,...H(Ye.validate,M.message)},!r))return $(M.message),F}else if(pe(g)){let D={};for(const M in g){if(!Re(D)&&!r)break;const ne=$i(await g[M](x,t),S,M);ne&&(D={...ne,...H(M,ne.message)},$(ne.message),r&&(F[p]=D))}if(!Re(D)&&(F[p]={ref:S,...D},!r))return F}}return $(!0),F};function Gc(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=ae(e)?n++:e[t[n++]];return e}function Kc(e){for(const t in e)if(e.hasOwnProperty(t)&&!ae(e[t]))return!1;return!0}function fe(e,t){const r=Array.isArray(t)?t:Ro(t)?[t]:sa(t),n=r.length===1?e:Gc(e,r),o=r.length-1,i=r[o];return n&&delete n[i],o!==0&&(pe(n)&&Re(n)||Array.isArray(n)&&Kc(n))&&fe(e,r.slice(0,-1)),e}var yn=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},Pr=e=>_e(e)||!na(e);function yt(e,t){if(Pr(e)||Pr(t))return e===t;if(At(e)&&At(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const i=e[o];if(!n.includes(o))return!1;if(o!=="ref"){const s=t[o];if(At(i)&&At(s)||pe(i)&&pe(s)||Array.isArray(i)&&Array.isArray(s)?!yt(i,s):i!==s)return!1}}return!0}var pa=e=>e.type==="select-multiple",Jc=e=>Fo(e)||nr(e),vn=e=>Or(e)&&e.isConnected,ha=e=>{for(const t in e)if(ct(e[t]))return!0;return!1};function Fr(e,t={}){const r=Array.isArray(e);if(pe(e)||r)for(const n in e)Array.isArray(e[n])||pe(e[n])&&!ha(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Fr(e[n],t[n])):_e(e[n])||(t[n]=!0);return t}function ma(e,t,r){const n=Array.isArray(e);if(pe(e)||n)for(const o in e)Array.isArray(e[o])||pe(e[o])&&!ha(e[o])?ae(t)||Pr(r[o])?r[o]=Array.isArray(e[o])?Fr(e[o],[]):{...Fr(e[o])}:ma(e[o],_e(t)?{}:t[o],r[o]):r[o]=!yt(e[o],t[o]);return r}var dr=(e,t)=>ma(e,t,Fr(t)),ga=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>ae(e)?e:t?e===""?NaN:e&&+e:r&&We(e)?new Date(e):n?n(e):e;function bn(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Po(t)?t.files:Fo(t)?fa(e.refs).value:pa(t)?[...t.selectedOptions].map(({value:r})=>r):nr(t)?da(e.refs).value:ga(ae(t.value)?e.ref.value:t.value,e)}var Xc=(e,t,r,n)=>{const o={};for(const i of e){const s=C(t,i);s&&Y(o,i,s._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},Ht=e=>ae(e)?e:Ar(e)?e.source:pe(e)?Ar(e.value)?e.value.source:e.value:e,Yc=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Di(e,t,r){const n=C(e,r);if(n||Ro(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const i=o.join("."),s=C(t,i),a=C(e,i);if(s&&!Array.isArray(s)&&r!==i)return{name:r};if(a&&a.type)return{name:i,error:a};o.pop()}return{name:r}}var Qc=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,Zc=(e,t)=>!or(C(e,t)).length&&fe(e,t);const eu={mode:Ne.onSubmit,reValidateMode:Ne.onChange,shouldFocusError:!0};function tu(e={}){let t={...eu,...e},r={submitCount:0,isDirty:!1,isLoading:ct(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=pe(t.defaultValues)||pe(t.values)?xe(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:xe(o),s={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},l={values:yn(),array:yn(),state:yn()},v=Ri(t.mode),g=Ri(t.reValidateMode),p=t.criteriaMode===Ne.all,y=f=>m=>{clearTimeout(u),u=setTimeout(f,m)},h=async f=>{if(d.isValid||f){const m=t.resolver?Re((await V()).errors):await H(n,!0);m!==r.isValid&&l.state.next({isValid:m})}},_=(f,m)=>{(d.isValidating||d.validatingFields)&&((f||Array.from(a.mount)).forEach(w=>{w&&(m?Y(r.validatingFields,w,m):fe(r.validatingFields,w))}),l.state.next({validatingFields:r.validatingFields,isValidating:!Re(r.validatingFields)}))},x=(f,m=[],w,R,T=!0,k=!0)=>{if(R&&w){if(s.action=!0,k&&Array.isArray(C(n,f))){const P=w(C(n,f),R.argA,R.argB);T&&Y(n,f,P)}if(k&&Array.isArray(C(r.errors,f))){const P=w(C(r.errors,f),R.argA,R.argB);T&&Y(r.errors,f,P),Zc(r.errors,f)}if(d.touchedFields&&k&&Array.isArray(C(r.touchedFields,f))){const P=w(C(r.touchedFields,f),R.argA,R.argB);T&&Y(r.touchedFields,f,P)}d.dirtyFields&&(r.dirtyFields=dr(o,i)),l.state.next({name:f,isDirty:D(f,m),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Y(i,f,m)},S=(f,m)=>{Y(r.errors,f,m),l.state.next({errors:r.errors})},$=f=>{r.errors=f,l.state.next({errors:r.errors,isValid:!1})},F=(f,m,w,R)=>{const T=C(n,f);if(T){const k=C(i,f,ae(w)?C(o,f):w);ae(k)||R&&R.defaultChecked||m?Y(i,f,m?k:bn(T._f)):le(f,k),s.mount&&h()}},A=(f,m,w,R,T)=>{let k=!1,P=!1;const G={name:f},ce=!!(C(n,f)&&C(n,f)._f&&C(n,f)._f.disabled);if(!w||R){d.isDirty&&(P=r.isDirty,r.isDirty=G.isDirty=D(),k=P!==G.isDirty);const Te=ce||yt(C(o,f),m);P=!!(!ce&&C(r.dirtyFields,f)),Te||ce?fe(r.dirtyFields,f):Y(r.dirtyFields,f,!0),G.dirtyFields=r.dirtyFields,k=k||d.dirtyFields&&P!==!Te}if(w){const Te=C(r.touchedFields,f);Te||(Y(r.touchedFields,f,w),G.touchedFields=r.touchedFields,k=k||d.touchedFields&&Te!==w)}return k&&T&&l.state.next(G),k?G:{}},O=(f,m,w,R)=>{const T=C(r.errors,f),k=d.isValid&&ze(m)&&r.isValid!==m;if(e.delayError&&w?(c=y(()=>S(f,w)),c(e.delayError)):(clearTimeout(u),c=null,w?Y(r.errors,f,w):fe(r.errors,f)),(w?!yt(T,w):T)||!Re(R)||k){const P={...R,...k&&ze(m)?{isValid:m}:{},errors:r.errors,name:f};r={...r,...P},l.state.next(P)}},V=async f=>{_(f,!0);const m=await t.resolver(i,t.context,Xc(f||a.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return _(f),m},U=async f=>{const{errors:m}=await V(f);if(f)for(const w of f){const R=C(m,w);R?Y(r.errors,w,R):fe(r.errors,w)}else r.errors=m;return m},H=async(f,m,w={valid:!0})=>{for(const R in f){const T=f[R];if(T){const{_f:k,...P}=T;if(k){const G=a.array.has(k.name);_([R],!0);const ce=await Li(T,i,p,t.shouldUseNativeValidation&&!m,G);if(_([R]),ce[k.name]&&(w.valid=!1,m))break;!m&&(C(ce,k.name)?G?qc(r.errors,ce,k.name):Y(r.errors,k.name,ce[k.name]):fe(r.errors,k.name))}P&&await H(P,m,w)}}return w.valid},Ue=()=>{for(const f of a.unMount){const m=C(n,f);m&&(m._f.refs?m._f.refs.every(w=>!vn(w)):!vn(m._f.ref))&&de(f)}a.unMount=new Set},D=(f,m)=>(f&&m&&Y(i,f,m),!yt(it(),o)),M=(f,m,w)=>ua(f,a,{...s.mount?i:ae(m)?o:We(f)?{[f]:m}:m},w,m),ne=f=>or(C(s.mount?i:o,f,e.shouldUnregister?C(o,f,[]):[])),le=(f,m,w={})=>{const R=C(n,f);let T=m;if(R){const k=R._f;k&&(!k.disabled&&Y(i,f,ga(m,k)),T=Or(k.ref)&&_e(m)?"":m,pa(k.ref)?[...k.ref.options].forEach(P=>P.selected=T.includes(P.value)):k.refs?nr(k.ref)?k.refs.length>1?k.refs.forEach(P=>(!P.defaultChecked||!P.disabled)&&(P.checked=Array.isArray(T)?!!T.find(G=>G===P.value):T===P.value)):k.refs[0]&&(k.refs[0].checked=!!T):k.refs.forEach(P=>P.checked=P.value===T):Po(k.ref)?k.ref.value="":(k.ref.value=T,k.ref.type||l.values.next({name:f,values:{...i}})))}(w.shouldDirty||w.shouldTouch)&&A(f,T,w.shouldTouch,w.shouldDirty,!0),w.shouldValidate&&De(f)},be=(f,m,w)=>{for(const R in m){const T=m[R],k=`${f}.${R}`,P=C(n,k);(a.array.has(f)||!Pr(T)||P&&!P._f)&&!At(T)?be(k,T,w):le(k,T,w)}},se=(f,m,w={})=>{const R=C(n,f),T=a.array.has(f),k=xe(m);Y(i,f,k),T?(l.array.next({name:f,values:{...i}}),(d.isDirty||d.dirtyFields)&&w.shouldDirty&&l.state.next({name:f,dirtyFields:dr(o,i),isDirty:D(f,k)})):R&&!R._f&&!_e(k)?be(f,k,w):le(f,k,w),Oi(f,a)&&l.state.next({...r}),l.values.next({name:s.mount?f:void 0,values:{...i}})},Je=async f=>{s.mount=!0;const m=f.target;let w=m.name,R=!0;const T=C(n,w),k=()=>m.type?bn(T._f):oa(f),P=G=>{R=Number.isNaN(G)||G===C(i,w,G)};if(T){let G,ce;const Te=k(),Tt=f.type===Rr.BLUR||f.type===Rr.FOCUS_OUT,sl=!Yc(T._f)&&!t.resolver&&!C(r.errors,w)&&!T._f.deps||Qc(Tt,C(r.touchedFields,w),r.isSubmitted,g,v),dn=Oi(w,a,Tt);Y(i,w,Te),Tt?(T._f.onBlur&&T._f.onBlur(f),c&&c(0)):T._f.onChange&&T._f.onChange(f);const fn=A(w,Te,Tt,!1),al=!Re(fn)||dn;if(!Tt&&l.values.next({name:w,type:f.type,values:{...i}}),sl)return d.isValid&&h(),al&&l.state.next({name:w,...dn?{}:fn});if(!Tt&&dn&&l.state.next({...r}),t.resolver){const{errors:Yo}=await V([w]);if(P(Te),R){const ll=Di(r.errors,n,w),Qo=Di(Yo,n,ll.name||w);G=Qo.error,w=Qo.name,ce=Re(Yo)}}else _([w],!0),G=(await Li(T,i,p,t.shouldUseNativeValidation))[w],_([w]),P(Te),R&&(G?ce=!1:d.isValid&&(ce=await H(n,!0)));R&&(T._f.deps&&De(T._f.deps),O(w,ce,G,fn))}},Xe=(f,m)=>{if(C(r.errors,m)&&f.focus)return f.focus(),1},De=async(f,m={})=>{let w,R;const T=br(f);if(t.resolver){const k=await U(ae(f)?f:T);w=Re(k),R=f?!T.some(P=>C(k,P)):w}else f?(R=(await Promise.all(T.map(async k=>{const P=C(n,k);return await H(P&&P._f?{[k]:P}:P)}))).every(Boolean),!(!R&&!r.isValid)&&h()):R=w=await H(n);return l.state.next({...!We(f)||d.isValid&&w!==r.isValid?{}:{name:f},...t.resolver||!f?{isValid:w}:{},errors:r.errors}),m.shouldFocus&&!R&&Gt(n,Xe,f?T:a.mount),R},it=f=>{const m={...s.mount?i:o};return ae(f)?m:We(f)?C(m,f):f.map(w=>C(m,w))},we=(f,m)=>({invalid:!!C((m||r).errors,f),isDirty:!!C((m||r).dirtyFields,f),error:C((m||r).errors,f),isValidating:!!C(r.validatingFields,f),isTouched:!!C((m||r).touchedFields,f)}),Ut=f=>{f&&br(f).forEach(m=>fe(r.errors,m)),l.state.next({errors:f?r.errors:{}})},N=(f,m,w)=>{const R=(C(n,f,{_f:{}})._f||{}).ref,T=C(r.errors,f)||{},{ref:k,message:P,type:G,...ce}=T;Y(r.errors,f,{...ce,...m,ref:R}),l.state.next({name:f,errors:r.errors,isValid:!1}),w&&w.shouldFocus&&R&&R.focus&&R.focus()},Z=(f,m)=>ct(f)?l.values.subscribe({next:w=>f(M(void 0,m),w)}):M(f,m,!0),de=(f,m={})=>{for(const w of f?br(f):a.mount)a.mount.delete(w),a.array.delete(w),m.keepValue||(fe(n,w),fe(i,w)),!m.keepError&&fe(r.errors,w),!m.keepDirty&&fe(r.dirtyFields,w),!m.keepTouched&&fe(r.touchedFields,w),!m.keepIsValidating&&fe(r.validatingFields,w),!t.shouldUnregister&&!m.keepDefaultValue&&fe(o,w);l.values.next({values:{...i}}),l.state.next({...r,...m.keepDirty?{isDirty:D()}:{}}),!m.keepIsValid&&h()},mt=({disabled:f,name:m,field:w,fields:R,value:T})=>{if(ze(f)&&s.mount||f){const k=f?void 0:ae(T)?bn(w?w._f:C(R,m)._f):T;Y(i,m,k),A(m,k,!1,!1,!0)}},Ct=(f,m={})=>{let w=C(n,f);const R=ze(m.disabled);return Y(n,f,{...w||{},_f:{...w&&w._f?w._f:{ref:{name:f}},name:f,mount:!0,...m}}),a.mount.add(f),w?mt({field:w,disabled:m.disabled,name:f,value:m.value}):F(f,!0,m.value),{...R?{disabled:m.disabled}:{},...t.progressive?{required:!!m.required,min:Ht(m.min),max:Ht(m.max),minLength:Ht(m.minLength),maxLength:Ht(m.maxLength),pattern:Ht(m.pattern)}:{},name:f,onChange:Je,onBlur:Je,ref:T=>{if(T){Ct(f,m),w=C(n,f);const k=ae(T.value)&&T.querySelectorAll&&T.querySelectorAll("input,select,textarea")[0]||T,P=Jc(k),G=w._f.refs||[];if(P?G.find(ce=>ce===k):k===w._f.ref)return;Y(n,f,{_f:{...w._f,...P?{refs:[...G.filter(vn),k,...Array.isArray(C(o,f))?[{}]:[]],ref:{type:k.type,name:f}}:{ref:k}}}),F(f,!1,void 0,k)}else w=C(n,f,{}),w._f&&(w._f.mount=!1),(t.shouldUnregister||m.shouldUnregister)&&!(ia(a.array,f)&&s.action)&&a.unMount.add(f)}}},Go=()=>t.shouldFocusError&&Gt(n,Xe,a.mount),ol=f=>{ze(f)&&(l.state.next({disabled:f}),Gt(n,(m,w)=>{const R=C(n,w);R&&(m.disabled=R._f.disabled||f,Array.isArray(R._f.refs)&&R._f.refs.forEach(T=>{T.disabled=R._f.disabled||f}))},0,!1))},Ko=(f,m)=>async w=>{let R;w&&(w.preventDefault&&w.preventDefault(),w.persist&&w.persist());let T=xe(i);if(l.state.next({isSubmitting:!0}),t.resolver){const{errors:k,values:P}=await V();r.errors=k,T=P}else await H(n);if(fe(r.errors,"root"),Re(r.errors)){l.state.next({errors:{}});try{await f(T,w)}catch(k){R=k}}else m&&await m({...r.errors},w),Go(),setTimeout(Go);if(l.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Re(r.errors)&&!R,submitCount:r.submitCount+1,errors:r.errors}),R)throw R},il=(f,m={})=>{C(n,f)&&(ae(m.defaultValue)?se(f,xe(C(o,f))):(se(f,m.defaultValue),Y(o,f,xe(m.defaultValue))),m.keepTouched||fe(r.touchedFields,f),m.keepDirty||(fe(r.dirtyFields,f),r.isDirty=m.defaultValue?D(f,xe(C(o,f))):D()),m.keepError||(fe(r.errors,f),d.isValid&&h()),l.state.next({...r}))},Jo=(f,m={})=>{const w=f?xe(f):o,R=xe(w),T=Re(f),k=T?o:R;if(m.keepDefaultValues||(o=w),!m.keepValues){if(m.keepDirtyValues)for(const P of a.mount)C(r.dirtyFields,P)?Y(k,P,C(i,P)):se(P,C(k,P));else{if(To&&ae(f))for(const P of a.mount){const G=C(n,P);if(G&&G._f){const ce=Array.isArray(G._f.refs)?G._f.refs[0]:G._f.ref;if(Or(ce)){const Te=ce.closest("form");if(Te){Te.reset();break}}}}n={}}i=e.shouldUnregister?m.keepDefaultValues?xe(o):{}:xe(k),l.array.next({values:{...k}}),l.values.next({values:{...k}})}a={mount:m.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!m.keepIsValid||!!m.keepDirtyValues,s.watch=!!e.shouldUnregister,l.state.next({submitCount:m.keepSubmitCount?r.submitCount:0,isDirty:T?!1:m.keepDirty?r.isDirty:!!(m.keepDefaultValues&&!yt(f,o)),isSubmitted:m.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:T?[]:m.keepDirtyValues?m.keepDefaultValues&&i?dr(o,i):r.dirtyFields:m.keepDefaultValues&&f?dr(o,f):m.keepDirty?r.dirtyFields:{},touchedFields:m.keepTouched?r.touchedFields:{},errors:m.keepErrors?r.errors:{},isSubmitSuccessful:m.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Xo=(f,m)=>Jo(ct(f)?f(i):f,m);return{control:{register:Ct,unregister:de,getFieldState:we,handleSubmit:Ko,setError:N,_executeSchema:V,_getWatch:M,_getDirty:D,_updateValid:h,_removeUnmounted:Ue,_updateFieldArray:x,_updateDisabledField:mt,_getFieldArray:ne,_reset:Jo,_resetDefaultValues:()=>ct(t.defaultValues)&&t.defaultValues().then(f=>{Xo(f,t.resetOptions),l.state.next({isLoading:!1})}),_updateFormState:f=>{r={...r,...f}},_disableForm:ol,_subjects:l,_proxyFormState:d,_setErrors:$,get _fields(){return n},get _formValues(){return i},get _state(){return s},set _state(f){s=f},get _defaultValues(){return o},get _names(){return a},set _names(f){a=f},get _formState(){return r},set _formState(f){r=f},get _options(){return t},set _options(f){t={...t,...f}}},trigger:De,register:Ct,handleSubmit:Ko,watch:Z,setValue:se,getValues:it,reset:Xo,resetField:il,clearErrors:Ut,unregister:de,setError:N,setFocus:(f,m={})=>{const w=C(n,f),R=w&&w._f;if(R){const T=R.refs?R.refs[0]:R.ref;T.focus&&(T.focus(),m.shouldSelect&&T.select())}},getFieldState:we}}function $o(e={}){const t=L.useRef(),r=L.useRef(),[n,o]=L.useState({isDirty:!1,isValidating:!1,isLoading:ct(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ct(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...tu(e),formState:n});const i=t.current.control;return i._options=e,Ao({subject:i._subjects.state,next:s=>{la(s,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),L.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),L.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==n.isDirty&&i._subjects.state.next({isDirty:s})}},[i,n.isDirty]),L.useEffect(()=>{e.values&&!yt(e.values,r.current)?(i._reset(e.values,i._options.resetOptions),r.current=e.values,o(s=>({...s}))):i._resetDefaultValues()},[e.values,i]),L.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),L.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),L.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=aa(n,i),t.current}function ya(e,t){return function(){return e.apply(t,arguments)}}const{toString:ru}=Object.prototype,{getPrototypeOf:Lo}=Object,en=(e=>t=>{const r=ru.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Be=e=>(e=e.toLowerCase(),t=>en(t)===e),tn=e=>t=>typeof t===e,{isArray:It}=Array,Zt=tn("undefined");function nu(e){return e!==null&&!Zt(e)&&e.constructor!==null&&!Zt(e.constructor)&&Pe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const va=Be("ArrayBuffer");function ou(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&va(e.buffer),t}const iu=tn("string"),Pe=tn("function"),ba=tn("number"),rn=e=>e!==null&&typeof e=="object",su=e=>e===!0||e===!1,wr=e=>{if(en(e)!=="object")return!1;const t=Lo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},au=Be("Date"),lu=Be("File"),cu=Be("Blob"),uu=Be("FileList"),du=e=>rn(e)&&Pe(e.pipe),fu=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pe(e.append)&&((t=en(e))==="formdata"||t==="object"&&Pe(e.toString)&&e.toString()==="[object FormData]"))},pu=Be("URLSearchParams"),[hu,mu,gu,yu]=["ReadableStream","Request","Response","Headers"].map(Be),vu=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ir(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),It(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function _a(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wa=e=>!Zt(e)&&e!==vt;function Hn(){const{caseless:e}=wa(this)&&this||{},t={},r=(n,o)=>{const i=e&&_a(t,o)||o;wr(t[i])&&wr(n)?t[i]=Hn(t[i],n):wr(n)?t[i]=Hn({},n):It(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&ir(arguments[n],r);return t}const bu=(e,t,r,{allOwnKeys:n}={})=>(ir(t,(o,i)=>{r&&Pe(o)?e[i]=ya(o,r):e[i]=o},{allOwnKeys:n}),e),_u=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wu=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},xu=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Lo(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Su=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Eu=e=>{if(!e)return null;if(It(e))return e;let t=e.length;if(!ba(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},ku=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lo(Uint8Array)),Cu=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Tu=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Ru=Be("HTMLFormElement"),Ou=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ni=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Au=Be("RegExp"),xa=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ir(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},Pu=e=>{xa(e,(t,r)=>{if(Pe(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Pe(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Fu=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return It(e)?n(e):n(String(e).split(t)),r},$u=()=>{},Lu=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,_n="abcdefghijklmnopqrstuvwxyz",Ii="0123456789",Sa={DIGIT:Ii,ALPHA:_n,ALPHA_DIGIT:_n+_n.toUpperCase()+Ii},Du=(e=16,t=Sa.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Nu(e){return!!(e&&Pe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Iu=e=>{const t=new Array(10),r=(n,o)=>{if(rn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=It(n)?[]:{};return ir(n,(s,a)=>{const c=r(s,o+1);!Zt(c)&&(i[a]=c)}),t[o]=void 0,i}}return n};return r(e,0)},Vu=Be("AsyncFunction"),Bu=e=>e&&(rn(e)||Pe(e))&&Pe(e.then)&&Pe(e.catch),Ea=((e,t)=>e?setImmediate:t?((r,n)=>(vt.addEventListener("message",({source:o,data:i})=>{o===vt&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),vt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Pe(vt.postMessage)),Uu=typeof queueMicrotask<"u"?queueMicrotask.bind(vt):typeof process<"u"&&process.nextTick||Ea,b={isArray:It,isArrayBuffer:va,isBuffer:nu,isFormData:fu,isArrayBufferView:ou,isString:iu,isNumber:ba,isBoolean:su,isObject:rn,isPlainObject:wr,isReadableStream:hu,isRequest:mu,isResponse:gu,isHeaders:yu,isUndefined:Zt,isDate:au,isFile:lu,isBlob:cu,isRegExp:Au,isFunction:Pe,isStream:du,isURLSearchParams:pu,isTypedArray:ku,isFileList:uu,forEach:ir,merge:Hn,extend:bu,trim:vu,stripBOM:_u,inherits:wu,toFlatObject:xu,kindOf:en,kindOfTest:Be,endsWith:Su,toArray:Eu,forEachEntry:Cu,matchAll:Tu,isHTMLForm:Ru,hasOwnProperty:Ni,hasOwnProp:Ni,reduceDescriptors:xa,freezeMethods:Pu,toObjectSet:Fu,toCamelCase:Ou,noop:$u,toFiniteNumber:Lu,findKey:_a,global:vt,isContextDefined:wa,ALPHABET:Sa,generateString:Du,isSpecCompliantForm:Nu,toJSONObject:Iu,isAsyncFn:Vu,isThenable:Bu,setImmediate:Ea,asap:Uu};function I(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}b.inherits(I,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:b.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ka=I.prototype,Ca={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ca[e]={value:e}});Object.defineProperties(I,Ca);Object.defineProperty(ka,"isAxiosError",{value:!0});I.from=(e,t,r,n,o,i)=>{const s=Object.create(ka);return b.toFlatObject(e,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),I.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Mu=null;function jn(e){return b.isPlainObject(e)||b.isArray(e)}function Ta(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function Vi(e,t,r){return e?e.concat(t).map(function(o,i){return o=Ta(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Hu(e){return b.isArray(e)&&!e.some(jn)}const ju=b.toFlatObject(b,{},null,function(t){return/^is[A-Z]/.test(t)});function nn(e,t,r){if(!b.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=b.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!b.isUndefined(h[y])});const n=r.metaTokens,o=r.visitor||d,i=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(t);if(!b.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(b.isDate(p))return p.toISOString();if(!c&&b.isBlob(p))throw new I("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(p)||b.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,y,h){let _=p;if(p&&!h&&typeof p=="object"){if(b.endsWith(y,"{}"))y=n?y:y.slice(0,-2),p=JSON.stringify(p);else if(b.isArray(p)&&Hu(p)||(b.isFileList(p)||b.endsWith(y,"[]"))&&(_=b.toArray(p)))return y=Ta(y),_.forEach(function(S,$){!(b.isUndefined(S)||S===null)&&t.append(s===!0?Vi([y],$,i):s===null?y:y+"[]",u(S))}),!1}return jn(p)?!0:(t.append(Vi(h,y,i),u(p)),!1)}const l=[],v=Object.assign(ju,{defaultVisitor:d,convertValue:u,isVisitable:jn});function g(p,y){if(!b.isUndefined(p)){if(l.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));l.push(p),b.forEach(p,function(_,x){(!(b.isUndefined(_)||_===null)&&o.call(t,_,b.isString(x)?x.trim():x,y,v))===!0&&g(_,y?y.concat(x):[x])}),l.pop()}}if(!b.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Bi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Do(e,t){this._pairs=[],e&&nn(e,this,t)}const Ra=Do.prototype;Ra.append=function(t,r){this._pairs.push([t,r])};Ra.toString=function(t){const r=t?function(n){return t.call(this,n,Bi)}:Bi;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function zu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Oa(e,t,r){if(!t)return e;const n=r&&r.encode||zu,o=r&&r.serialize;let i;if(o?i=o(t,r):i=b.isURLSearchParams(t)?t.toString():new Do(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ui{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){b.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Aa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wu=typeof URLSearchParams<"u"?URLSearchParams:Do,qu=typeof FormData<"u"?FormData:null,Gu=typeof Blob<"u"?Blob:null,Ku={isBrowser:!0,classes:{URLSearchParams:Wu,FormData:qu,Blob:Gu},protocols:["http","https","file","blob","url","data"]},No=typeof window<"u"&&typeof document<"u",Ju=(e=>No&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Xu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Yu=No&&window.location.href||"http://localhost",Qu=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:No,hasStandardBrowserEnv:Ju,hasStandardBrowserWebWorkerEnv:Xu,origin:Yu},Symbol.toStringTag,{value:"Module"})),Ve={...Qu,...Ku};function Zu(e,t){return nn(e,new Ve.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Ve.isNode&&b.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ed(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function td(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Pa(e){function t(r,n,o,i){let s=r[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=r.length;return s=!s&&b.isArray(o)?o.length:s,c?(b.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!b.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&b.isArray(o[s])&&(o[s]=td(o[s])),!a)}if(b.isFormData(e)&&b.isFunction(e.entries)){const r={};return b.forEachEntry(e,(n,o)=>{t(ed(n),o,r,0)}),r}return null}function rd(e,t,r){if(b.isString(e))try{return(t||JSON.parse)(e),b.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const sr={transitional:Aa,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=b.isObject(t);if(i&&b.isHTMLForm(t)&&(t=new FormData(t)),b.isFormData(t))return o?JSON.stringify(Pa(t)):t;if(b.isArrayBuffer(t)||b.isBuffer(t)||b.isStream(t)||b.isFile(t)||b.isBlob(t)||b.isReadableStream(t))return t;if(b.isArrayBufferView(t))return t.buffer;if(b.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Zu(t,this.formSerializer).toString();if((a=b.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return nn(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),rd(t)):t}],transformResponse:[function(t){const r=this.transitional||sr.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(b.isResponse(t)||b.isReadableStream(t))return t;if(t&&b.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?I.from(a,I.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],e=>{sr.headers[e]={}});const nd=b.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),od=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
16
|
+
`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&nd[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Mi=Symbol("internals");function jt(e){return e&&String(e).trim().toLowerCase()}function xr(e){return e===!1||e==null?e:b.isArray(e)?e.map(xr):String(e)}function id(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const sd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wn(e,t,r,n,o){if(b.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!b.isString(t)){if(b.isString(n))return t.indexOf(n)!==-1;if(b.isRegExp(n))return n.test(t)}}function ad(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ld(e,t){const r=b.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}class ke{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,c,u){const d=jt(c);if(!d)throw new Error("header name must be a non-empty string");const l=b.findKey(o,d);(!l||o[l]===void 0||u===!0||u===void 0&&o[l]!==!1)&&(o[l||c]=xr(a))}const s=(a,c)=>b.forEach(a,(u,d)=>i(u,d,c));if(b.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(b.isString(t)&&(t=t.trim())&&!sd(t))s(od(t),r);else if(b.isHeaders(t))for(const[a,c]of t.entries())i(c,a,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=jt(t),t){const n=b.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return id(o);if(b.isFunction(r))return r.call(this,o,n);if(b.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=jt(t),t){const n=b.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||wn(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=jt(s),s){const a=b.findKey(n,s);a&&(!r||wn(n,n[a],a,r))&&(delete n[a],o=!0)}}return b.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||wn(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return b.forEach(this,(o,i)=>{const s=b.findKey(n,i);if(s){r[s]=xr(o),delete r[i];return}const a=t?ad(i):String(i).trim();a!==i&&delete r[i],r[a]=xr(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return b.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&b.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
17
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Mi]=this[Mi]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=jt(s);n[a]||(ld(o,s),n[a]=!0)}return b.isArray(t)?t.forEach(i):i(t),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(ke.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});b.freezeMethods(ke);function xn(e,t){const r=this||sr,n=t||r,o=ke.from(n.headers);let i=n.data;return b.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Fa(e){return!!(e&&e.__CANCEL__)}function Vt(e,t,r){I.call(this,e??"canceled",I.ERR_CANCELED,t,r),this.name="CanceledError"}b.inherits(Vt,I,{__CANCEL__:!0});function $a(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new I("Request failed with status code "+r.status,[I.ERR_BAD_REQUEST,I.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function cd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ud(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[i];s||(s=u),r[o]=c,n[o]=u;let l=i,v=0;for(;l!==o;)v+=r[l++],l=l%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s<t)return;const g=d&&u-d;return g?Math.round(v*1e3/g):void 0}}function dd(e,t){let r=0,n=1e3/t,o,i;const s=(u,d=Date.now())=>{r=d,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),l=d-r;l>=n?s(u,d):(o=u,i||(i=setTimeout(()=>{i=null,s(o)},n-l)))},()=>o&&s(o)]}const $r=(e,t,r=3)=>{let n=0;const o=ud(50,250);return dd(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=s-n,u=o(c),d=s<=a;n=s;const l={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-s)/u:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(l)},r)},Hi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},ji=e=>(...t)=>b.asap(()=>e(...t)),fd=Ve.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const a=b.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}(),pd=Ve.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];b.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),b.isString(n)&&s.push("path="+n),b.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function md(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function La(e,t){return e&&!hd(t)?md(e,t):t}const zi=e=>e instanceof ke?{...e}:e;function St(e,t){t=t||{};const r={};function n(u,d,l){return b.isPlainObject(u)&&b.isPlainObject(d)?b.merge.call({caseless:l},u,d):b.isPlainObject(d)?b.merge({},d):b.isArray(d)?d.slice():d}function o(u,d,l){if(b.isUndefined(d)){if(!b.isUndefined(u))return n(void 0,u,l)}else return n(u,d,l)}function i(u,d){if(!b.isUndefined(d))return n(void 0,d)}function s(u,d){if(b.isUndefined(d)){if(!b.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function a(u,d,l){if(l in t)return n(u,d);if(l in e)return n(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,d)=>o(zi(u),zi(d),!0)};return b.forEach(Object.keys(Object.assign({},e,t)),function(d){const l=c[d]||o,v=l(e[d],t[d],d);b.isUndefined(v)&&l!==a||(r[d]=v)}),r}const Da=e=>{const t=St({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=ke.from(s),t.url=Oa(La(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(b.isFormData(r)){if(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...d]=c?c.split(";").map(l=>l.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Ve.hasStandardBrowserEnv&&(n&&b.isFunction(n)&&(n=n(t)),n||n!==!1&&fd(t.url))){const u=o&&i&&pd.read(i);u&&s.set(o,u)}return t},gd=typeof XMLHttpRequest<"u",yd=gd&&function(e){return new Promise(function(r,n){const o=Da(e);let i=o.data;const s=ke.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=o,d,l,v,g,p;function y(){g&&g(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function _(){if(!h)return;const S=ke.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),F={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:S,config:e,request:h};$a(function(O){r(O),y()},function(O){n(O),y()},F),h=null}"onloadend"in h?h.onloadend=_:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(_)},h.onabort=function(){h&&(n(new I("Request aborted",I.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new I("Network Error",I.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let $=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const F=o.transitional||Aa;o.timeoutErrorMessage&&($=o.timeoutErrorMessage),n(new I($,F.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,e,h)),h=null},i===void 0&&s.setContentType(null),"setRequestHeader"in h&&b.forEach(s.toJSON(),function($,F){h.setRequestHeader(F,$)}),b.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),a&&a!=="json"&&(h.responseType=o.responseType),u&&([v,p]=$r(u,!0),h.addEventListener("progress",v)),c&&h.upload&&([l,g]=$r(c),h.upload.addEventListener("progress",l),h.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(d=S=>{h&&(n(!S||S.type?new Vt(null,e,h):S),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const x=cd(o.url);if(x&&Ve.protocols.indexOf(x)===-1){n(new I("Unsupported protocol "+x+":",I.ERR_BAD_REQUEST,e));return}h.send(i||null)})},vd=(e,t)=>{let r=new AbortController,n;const o=function(c){if(!n){n=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof I?u:new Vt(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{o(new I(`timeout ${t} of ms exceeded`,I.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},bd=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},_d=async function*(e,t,r){for await(const n of e)yield*bd(ArrayBuffer.isView(n)?n:await r(String(n)),t)},Wi=(e,t,r,n,o)=>{const i=_d(e,t,o);let s=0,a,c=u=>{a||(a=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:d,value:l}=await i.next();if(d){c(),u.close();return}let v=l.byteLength;if(r){let g=s+=v;r(g)}u.enqueue(new Uint8Array(l))}catch(d){throw c(d),d}},cancel(u){return c(u),i.return()}},{highWaterMark:2})},on=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Na=on&&typeof ReadableStream=="function",zn=on&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ia=(e,...t)=>{try{return!!e(...t)}catch{return!1}},wd=Na&&Ia(()=>{let e=!1;const t=new Request(Ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),qi=64*1024,Wn=Na&&Ia(()=>b.isReadableStream(new Response("").body)),Lr={stream:Wn&&(e=>e.body)};on&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Lr[t]&&(Lr[t]=b.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new I(`Response type '${t}' is not supported`,I.ERR_NOT_SUPPORT,n)})})})(new Response);const xd=async e=>{if(e==null)return 0;if(b.isBlob(e))return e.size;if(b.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(b.isArrayBufferView(e)||b.isArrayBuffer(e))return e.byteLength;if(b.isURLSearchParams(e)&&(e=e+""),b.isString(e))return(await zn(e)).byteLength},Sd=async(e,t)=>{const r=b.toFiniteNumber(e.getContentLength());return r??xd(t)},Ed=on&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:l="same-origin",fetchOptions:v}=Da(e);u=u?(u+"").toLowerCase():"text";let[g,p]=o||i||s?vd([o,i],s):[],y,h;const _=()=>{!y&&setTimeout(()=>{g&&g.unsubscribe()}),y=!0};let x;try{if(c&&wd&&r!=="get"&&r!=="head"&&(x=await Sd(d,n))!==0){let A=new Request(t,{method:"POST",body:n,duplex:"half"}),O;if(b.isFormData(n)&&(O=A.headers.get("content-type"))&&d.setContentType(O),A.body){const[V,U]=Hi(x,$r(ji(c)));n=Wi(A.body,qi,V,U,zn)}}b.isString(l)||(l=l?"include":"omit"),h=new Request(t,{...v,signal:g,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:l});let S=await fetch(h);const $=Wn&&(u==="stream"||u==="response");if(Wn&&(a||$)){const A={};["status","statusText","headers"].forEach(H=>{A[H]=S[H]});const O=b.toFiniteNumber(S.headers.get("content-length")),[V,U]=a&&Hi(O,$r(ji(a),!0))||[];S=new Response(Wi(S.body,qi,V,()=>{U&&U(),$&&_()},zn),A)}u=u||"text";let F=await Lr[b.findKey(Lr,u)||"text"](S,e);return!$&&_(),p&&p(),await new Promise((A,O)=>{$a(A,O,{data:F,headers:ke.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:h})})}catch(S){throw _(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new I("Network Error",I.ERR_NETWORK,e,h),{cause:S.cause||S}):I.from(S,S&&S.code,e,h)}}),qn={http:Mu,xhr:yd,fetch:Ed};b.forEach(qn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Gi=e=>`- ${e}`,kd=e=>b.isFunction(e)||e===null||e===!1,Va={getAdapter:e=>{e=b.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let s;if(n=r,!kd(r)&&(n=qn[(s=String(r)).toLowerCase()],n===void 0))throw new I(`Unknown adapter '${s}'`);if(n)break;o[s||"#"+i]=n}if(!n){const i=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
|
|
18
|
+
`+i.map(Gi).join(`
|
|
19
|
+
`):" "+Gi(i[0]):"as no adapter specified";throw new I("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:qn};function Sn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vt(null,e)}function Ki(e){return Sn(e),e.headers=ke.from(e.headers),e.data=xn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Va.getAdapter(e.adapter||sr.adapter)(e).then(function(n){return Sn(e),n.data=xn.call(e,e.transformResponse,n),n.headers=ke.from(n.headers),n},function(n){return Fa(n)||(Sn(e),n&&n.response&&(n.response.data=xn.call(e,e.transformResponse,n.response),n.response.headers=ke.from(n.response.headers))),Promise.reject(n)})}const Ba="1.7.4",Io={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Io[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ji={};Io.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Ba+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new I(o(s," has been removed"+(r?" in "+r:"")),I.ERR_DEPRECATED);return r&&!Ji[s]&&(Ji[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}};function Cd(e,t,r){if(typeof e!="object")throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const a=e[i],c=a===void 0||s(a,i,e);if(c!==!0)throw new I("option "+i+" must be "+c,I.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new I("Unknown option "+i,I.ERR_BAD_OPTION)}}const Gn={assertOptions:Cd,validators:Io},st=Gn.validators;class _t{constructor(t){this.defaults=t,this.interceptors={request:new Ui,response:new Ui}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
20
|
+
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=St(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Gn.assertOptions(n,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),o!=null&&(b.isFunction(o)?r.paramsSerializer={serialize:o}:Gn.assertOptions(o,{encode:st.function,serialize:st.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&b.merge(i.common,i[r.method]);i&&b.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=ke.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(c=c&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,l=0,v;if(!c){const p=[Ki.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,u),v=p.length,d=Promise.resolve(r);l<v;)d=d.then(p[l++],p[l++]);return d}v=a.length;let g=r;for(l=0;l<v;){const p=a[l++],y=a[l++];try{g=p(g)}catch(h){y.call(this,h);break}}try{d=Ki.call(this,g)}catch(p){return Promise.reject(p)}for(l=0,v=u.length;l<v;)d=d.then(u[l++],u[l++]);return d}getUri(t){t=St(this.defaults,t);const r=La(t.baseURL,t.url);return Oa(r,t.params,t.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(t){_t.prototype[t]=function(r,n){return this.request(St(n||{},{method:t,url:r,data:(n||{}).data}))}});b.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,a){return this.request(St(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}_t.prototype[t]=r(),_t.prototype[t+"Form"]=r(!0)});class Vo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new Vt(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Vo(function(o){t=o}),cancel:t}}}function Td(e){return function(r){return e.apply(null,r)}}function Rd(e){return b.isObject(e)&&e.isAxiosError===!0}const Kn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kn).forEach(([e,t])=>{Kn[t]=e});function Ua(e){const t=new _t(e),r=ya(_t.prototype.request,t);return b.extend(r,_t.prototype,t,{allOwnKeys:!0}),b.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Ua(St(e,o))},r}const ie=Ua(sr);ie.Axios=_t;ie.CanceledError=Vt;ie.CancelToken=Vo;ie.isCancel=Fa;ie.VERSION=Ba;ie.toFormData=nn;ie.AxiosError=I;ie.Cancel=ie.CanceledError;ie.all=function(t){return Promise.all(t)};ie.spread=Td;ie.isAxiosError=Rd;ie.mergeConfig=St;ie.AxiosHeaders=ke;ie.formToJSON=e=>Pa(b.isHTMLForm(e)?new FormData(e):e);ie.getAdapter=Va.getAdapter;ie.HttpStatusCode=Kn;ie.default=ie;const Od=(e,{onRequest:t,onRequestError:r,onResponse:n,onResponseError:o})=>{e.interceptors.request.use(async i=>(t&&await t(i),i),async i=>{throw r&&await r(i),i}),e.interceptors.response.use(async i=>(n&&await n(i),i),async i=>{throw o&&await o(i),i})},Ad=({request:e})=>console.error("[API] Request error:",e),Pd=({response:e})=>{if(e){const{status:t,request:r,data:n}=e;console.error("[API] Response error:",t,r.responseURL,JSON.stringify(n))}},Ma=async e=>{var t;try{const r=await((t=e.response)==null?void 0:t.data).text();return JSON.parse(r)}catch{return{}}},Fd=({response:e})=>{try{if(e){const{data:t}=e;return t}}catch{return{}}},Ha=e=>new Date(Date.now()+e*24*60*60*1e3).toISOString().split("T")[0];let et;const $d="/salary-packaging/admin/v1.0/catche/receipt-batch",Ld=e=>`/salary-packaging/admin/v1.0/reports/${e.report}?startDate=${e.startDate}&endDate=${e.endDate}&groupCode=${e.groupCode}&clientId=${e.clientId}`,Dd=async(e,t)=>{const r=e==null?void 0:e.replace(/\/?$/,"");return et=ie.create({baseURL:`${r}`,timeout:15e3,headers:{Authorization:`Bearer ${t}`}}),Od(et,{onRequestError:Ad,onResponseError:Pd}),et},Nd=async e=>{if(!et)throw new Error("Api has not been initialized");const t=new FormData;return t.append("source",e.source),t.append("transactionFile",e.transactionsFile),(await et.post(`${$d}`,t,{responseType:"blob"})).data},Id=async e=>{if(!et)throw new Error("Api has not been initialized");return(await et.get(Ld(e),{responseType:"blob"})).data},Bt=async(e,t)=>{if(!et)throw new Error("Api has not been initialized");const r=Ha(2);await et.post(e,{startDate:t,endDate:r})},Vd=e=>Bt("/salary-packaging/admin/v1.0/ingest/clients",e),Bd=e=>Bt("/salary-packaging/admin/v1.0/ingest/drivers",e),Ud=e=>Bt("/salary-packaging/admin/v1.0/ingest/contract-budgets",e),Md=e=>Bt("/salary-packaging/admin/v1.0/ingest/invoice-items",e),Hd=e=>Bt("/salary-packaging/admin/v1.0/ingest/deleted-invoice-items",e),jd=e=>Bt("/salary-packaging/admin/v1.0/ingest/vehicle-contracts",e),zd=Ke.button`
|
|
21
|
+
${{borderRadius:"0.375rem",backgroundColor:"var(--fl-color-primary-600)",paddingLeft:"0.875rem",paddingRight:"0.875rem",paddingTop:"0.625rem",paddingBottom:"0.625rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--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":{backgroundColor:"var(--fl-color-primary-700)"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"var(--fl-color-primary-600)"}}}
|
|
22
|
+
${({disabled:e})=>e&&{cursor:"not-allowed","--tw-bg-opacity":"1",backgroundColor:"rgb(156 163 175 / var(--tw-bg-opacity))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(156 163 175 / var(--tw-bg-opacity))"}}}
|
|
23
|
+
`,sn=({as:e,download:t,href:r,disabled:n,children:o,onClick:i,type:s})=>E(zd,{as:e||"button",download:t,href:r,type:s||"button",disabled:n,onClick:i,children:o}),ja=({blob:e,children:t,fileName:r})=>{const[n,o]=te();return re(()=>{const i=URL.createObjectURL(e);return o(i),()=>{URL.revokeObjectURL(i),o(void 0)}},[e]),E(sn,{as:"a",href:n??"#",download:r,children:t})},za=Ke.div`
|
|
24
|
+
${()=>({height:"1.5rem",width:"1.5rem","@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"})}
|
|
25
|
+
`;var Wd=Object.defineProperty,qd=(e,t,r)=>t in e?Wd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,En=(e,t,r)=>(qd(e,typeof t!="symbol"?t+"":t,r),r);let Gd=class{constructor(){En(this,"current",this.detect()),En(this,"handoffState","pending"),En(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},wt=new Gd,Fe=(e,t)=>{wt.isServer?re(e,t):pt(e,t)};function Ge(e){let t=z(e);return Fe(()=>{t.current=e},[e]),t}function Wa(e,t){let[r,n]=te(e),o=Ge(e);return Fe(()=>n(o.current),[o,n,...t]),r}let j=function(e){let t=Ge(e);return L.useCallback((...r)=>t.current(...r),[t])};function Kd(e,t,r){let[n,o]=te(r),i=e!==void 0,s=z(i),a=z(!1),c=z(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&s.current&&!c.current&&(c.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:n,j(u=>(i||o(u),t==null?void 0:t(u)))]}function Jd(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ft(){let e=[],t={addEventListener(r,n,o,i){return r.addEventListener(n,o,i),t.add(()=>r.removeEventListener(n,o,i))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return Jd(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let i=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:i})})},group(r){let n=ft();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let o of e.splice(n,1))o()}},dispose(){for(let r of e.splice(0))r()}};return t}function Lt(){let[e]=te(ft);return re(()=>()=>e.dispose(),[e]),e}function Xd(){let e=typeof document>"u";return"useSyncExternalStore"in kr?(t=>t.useSyncExternalStore)(kr)(()=>()=>{},()=>!1,()=>!e):!1}function Bo(){let e=Xd(),[t,r]=te(wt.isHandoffComplete);return t&&wt.isHandoffComplete===!1&&r(!1),re(()=>{t!==!0&&r(!0)},[t]),re(()=>wt.handoff(),[]),e?!1:t}var Xi;let an=(Xi=L.useId)!=null?Xi:function(){let e=Bo(),[t,r]=L.useState(e?()=>wt.nextId():null);return Fe(()=>{t===null&&r(wt.nextId())},[t]),t!=null?""+t:void 0};function ye(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ye),n}function qa(e){return wt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Yi=["[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(",");var Yd=(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))(Yd||{}),Qd=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Qd||{}),Zd=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Zd||{}),Uo=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Uo||{});function Ga(e,t=0){var r;return e===((r=qa(e))==null?void 0:r.body)?!1:ye(t,{0(){return e.matches(Yi)},1(){let n=e;for(;n!==null;){if(n.matches(Yi))return!0;n=n.parentElement}return!1}})}var ef=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ef||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function tf(e,t=r=>r){return e.slice().sort((r,n)=>{let o=t(r),i=t(n);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function rf(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function nf(){return/Android/gi.test(window.navigator.userAgent)}function of(){return rf()||nf()}function fr(e,t,r){let n=Ge(t);re(()=>{function o(i){n.current(i)}return document.addEventListener(e,o,r),()=>document.removeEventListener(e,o,r)},[e,r])}function sf(e,t,r){let n=Ge(t);re(()=>{function o(i){n.current(i)}return window.addEventListener(e,o,r),()=>window.removeEventListener(e,o,r)},[e,r])}function af(e,t,r=!0){let n=z(!1);re(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function o(s,a){if(!n.current||s.defaultPrevented)return;let c=a(s);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let u=function d(l){return typeof l=="function"?d(l()):Array.isArray(l)||l instanceof Set?l:[l]}(e);for(let d of u){if(d===null)continue;let l=d instanceof HTMLElement?d:d.current;if(l!=null&&l.contains(c)||s.composed&&s.composedPath().includes(l))return}return!Ga(c,Uo.Loose)&&c.tabIndex!==-1&&s.preventDefault(),t(s,c)}let i=z(null);fr("pointerdown",s=>{var a,c;n.current&&(i.current=((c=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:c[0])||s.target)},!0),fr("mousedown",s=>{var a,c;n.current&&(i.current=((c=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:c[0])||s.target)},!0),fr("click",s=>{of()||i.current&&(o(s,()=>i.current),i.current=null)},!0),fr("touchend",s=>o(s,()=>s.target instanceof HTMLElement?s.target:null),!0),sf("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Qi(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function lf(e,t){let[r,n]=te(()=>Qi(e));return Fe(()=>{n(Qi(e))},[e.type,e.as]),Fe(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}let cf=Symbol();function kt(...e){let t=z(e);re(()=>{t.current=e},[e]);let r=j(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[cf]))?void 0:r}function Zi(e){return[e.screenX,e.screenY]}function uf(){let e=z([-1,-1]);return{wasMoved(t){let r=Zi(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=Zi(t)}}}function Dr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Nr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Nr||{}),ut=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ut||{});function ht({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??df;let c=Ka(t,e);if(i)return pr(c,r,n,s,a);let u=o??0;if(u&2){let{static:d=!1,...l}=c;if(d)return pr(l,r,n,s,a)}if(u&1){let{unmount:d=!0,...l}=c;return ye(d?0:1,{0(){return null},1(){return pr({...l,hidden:!0,style:{display:"none"}},r,n,s,a)}})}return pr(c,r,n,s,a)}function pr(e,t={},r,n,o){let{as:i=r,children:s,refName:a="ref",...c}=kn(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},d=typeof s=="function"?s(t):s;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t));let l={};if(t){let v=!1,g=[];for(let[p,y]of Object.entries(t))typeof y=="boolean"&&(v=!0),y===!0&&g.push(p);v&&(l["data-headlessui-state"]=g.join(" "))}if(i===ee&&Object.keys(Jn(c)).length>0){if(!Dt(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(y=>` - ${y}`).join(`
|
|
14
26
|
`),"","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(y=>` - ${y}`).join(`
|
|
15
27
|
`)].join(`
|
|
16
|
-
`));let b=u.props,g=typeof(b==null?void 0:b.className)=="function"?(...y)=>$r(b==null?void 0:b.className(...y),c.className):$r(b==null?void 0:b.className,c.className),p=g?{className:g}:{};return co(u,Object.assign({},Ga(u.props,Jn(kn(c,["ref"]))),l,d,{ref:o(u.ref,d.ref)},p))}return K(i,Object.assign({},kn(c,["ref"]),i!==Z&&d,i!==Z&&l),u)}function cf(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function Ga(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](o,...i){let s=r[n];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function rt(e){var t;return Object.assign(tt(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Jn(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function kn(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let uf="div";var Ka=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ka||{});function df(e,t){var r;let{features:n=1,...o}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:(r=o["aria-hidden"])!=null?r:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return ht({ourProps:i,theirProps:o,slot:{},defaultTag:uf,name:"Hidden"})}let ff=rt(df),Ho=et(null);Ho.displayName="OpenClosedContext";var Re=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Re||{});function jo(){return Fe(Ho)}function Ja({value:e,children:t}){return $.createElement(Ho.Provider,{value:e},t)}function pf(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&hf(r)?!1:n}function hf(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function mf(e){throw new Error("Unexpected object: "+e)}var xe=(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))(xe||{});function gf(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),o=n??-1;switch(e.focus){case 0:{for(let i=0;i<r.length;++i)if(!t.resolveDisabled(r[i],i,r))return i;return n}case 1:{for(let i=o-1;i>=0;--i)if(!t.resolveDisabled(r[i],i,r))return i;return n}case 2:{for(let i=o+1;i<r.length;++i)if(!t.resolveDisabled(r[i],i,r))return i;return n}case 3:{for(let i=r.length-1;i>=0;--i)if(!t.resolveDisabled(r[i],i,r))return i;return n}case 4:{for(let i=0;i<r.length;++i)if(t.resolveId(r[i],i,r)===e.id)return i;return n}case 5:return null;default:mf(e)}}function Xa(e={},t=null,r=[]){for(let[n,o]of Object.entries(e))Qa(r,Ya(t,n),o);return r}function Ya(e,t){return e?e+"["+t+"]":t}function Qa(e,t,r){if(Array.isArray(r))for(let[n,o]of r.entries())Qa(e,Ya(t,n.toString()),o);else r instanceof Date?e.push([t,r.toISOString()]):typeof r=="boolean"?e.push([t,r?"1":"0"]):typeof r=="string"?e.push([t,r]):typeof r=="number"?e.push([t,`${r}`]):r==null?e.push([t,""]):Xa(r,t,e)}var pe=(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))(pe||{});function zo(){let e=z(!1);return Pe(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let ts=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function rs(e){var t,r;let n=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return n;let i=!1;for(let a of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),i=!0;let s=i?(r=o.innerText)!=null?r:"":n;return ts.test(s)&&(s=s.replace(ts,"")),s}function yf(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(o=>{let i=document.getElementById(o);if(i){let s=i.getAttribute("aria-label");return typeof s=="string"?s.trim():rs(i).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return rs(e).trim()}function vf(e){let t=z(""),r=z("");return j(()=>{let n=e.current;if(!n)return"";let o=n.innerText;if(t.current===o)return r.current;let i=yf(n).trim().toLowerCase();return t.current=o,r.current=i,i})}var bf=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(bf||{}),_f=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(_f||{}),wf=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(wf||{}),xf=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(xf||{});function Cn(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=Zd(t(e.options.slice()),i=>i.dataRef.current.domRef.current),o=r?n.indexOf(r):null;return o===-1&&(o=null),{options:n,activeOptionIndex:o}}let Sf={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(o=>r(o.dataRef.current.value));return n!==-1&&(t=n),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=Cn(e),o=gf(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:i=>i.id,resolveDisabled:i=>i.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:o,activationTrigger:(r=t.trigger)!=null?r:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),o=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(s=>{var a;return!s.dataRef.current.disabled&&((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(n))}),i=o?e.options.indexOf(o):-1;return i===-1||i===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:i,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=Cn(e,o=>[...o,r]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=Cn(e,n=>{let o=n.findIndex(i=>i.id===t.id);return o!==-1&&n.splice(o,1),n});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},Wo=et(null);Wo.displayName="ListboxActionsContext";function ar(e){let t=Fe(Wo);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ar),r}return t}let qo=et(null);qo.displayName="ListboxDataContext";function lr(e){let t=Fe(qo);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,lr),r}return t}function Ef(e,t){return ge(t.type,Sf,e,t)}let kf=Z;function Cf(e,t){let{value:r,defaultValue:n,form:o,name:i,onChange:s,by:a=(N,Q)=>N===Q,disabled:c=!1,horizontal:d=!1,multiple:u=!1,...l}=e;const b=d?"horizontal":"vertical";let g=kt(t),[p=u?[]:void 0,y]=qd(r,s,n),[h,_]=tr(Ef,{dataRef:Qn(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),S=z({static:!1,hold:!1}),E=z(null),L=z(null),F=z(null),A=j(typeof a=="string"?(N,Q)=>{let ue=a;return(N==null?void 0:N[ue])===(Q==null?void 0:Q[ue])}:a),O=at(N=>ge(V.mode,{1:()=>p.some(Q=>A(Q,N)),0:()=>A(p,N)}),[p]),V=Se(()=>({...h,value:p,disabled:c,mode:u?1:0,orientation:b,compare:A,isSelected:O,optionsPropsRef:S,labelRef:E,buttonRef:L,optionsRef:F}),[p,c,u,h]);Pe(()=>{h.dataRef.current=V},[V]),of([V.buttonRef,V.optionsRef],(N,Q)=>{var ue;_({type:1}),qa(Q,Mo.Loose)||(N.preventDefault(),(ue=V.buttonRef.current)==null||ue.focus())},V.listboxState===0);let U=Se(()=>({open:V.listboxState===0,disabled:c,value:p}),[V,c,p]),H=j(N=>{let Q=V.options.find(ue=>ue.id===N);Q&&ie(Q.dataRef.current.value)}),Be=j(()=>{if(V.activeOptionIndex!==null){let{dataRef:N,id:Q}=V.options[V.activeOptionIndex];ie(N.current.value),_({type:2,focus:xe.Specific,id:Q})}}),D=j(()=>_({type:0})),M=j(()=>_({type:1})),re=j((N,Q,ue)=>N===xe.Specific?_({type:2,focus:xe.Specific,id:Q,trigger:ue}):_({type:2,focus:N,trigger:ue})),ae=j((N,Q)=>(_({type:5,id:N,dataRef:Q}),()=>_({type:6,id:N}))),ve=j(N=>(_({type:7,id:N}),()=>_({type:7,id:null}))),ie=j(N=>ge(V.mode,{0(){return y==null?void 0:y(N)},1(){let Q=V.value.slice(),ue=Q.findIndex(mt=>A(mt,N));return ue===-1?Q.push(N):Q.splice(ue,1),y==null?void 0:y(Q)}})),Ge=j(N=>_({type:3,value:N})),Ke=j(()=>_({type:4})),$e=Se(()=>({onChange:ie,registerOption:ae,registerLabel:ve,goToOption:re,closeListbox:M,openListbox:D,selectActiveOption:Be,selectOption:H,search:Ge,clearSearch:Ke}),[]),nt={ref:g},_e=z(null),Ut=$t();return te(()=>{_e.current&&n!==void 0&&Ut.addEventListener(_e.current,"reset",()=>{y==null||y(n)})},[_e,y]),$.createElement(Wo.Provider,{value:$e},$.createElement(qo.Provider,{value:V},$.createElement(Ja,{value:ge(V.listboxState,{0:Re.Open,1:Re.Closed})},i!=null&&p!=null&&Xa({[i]:p}).map(([N,Q],ue)=>$.createElement(ff,{features:Ka.Hidden,ref:ue===0?mt=>{var Ct;_e.current=(Ct=mt==null?void 0:mt.closest("form"))!=null?Ct:null}:void 0,...Jn({key:N,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,disabled:c,name:N,value:Q})})),ht({ourProps:nt,theirProps:l,slot:U,defaultTag:kf,name:"Listbox"}))))}let Tf="button";function Rf(e,t){var r;let n=an(),{id:o=`headlessui-listbox-button-${n}`,...i}=e,s=lr("Listbox.Button"),a=ar("Listbox.Button"),c=kt(s.buttonRef,t),d=$t(),u=j(h=>{switch(h.key){case pe.Space:case pe.Enter:case pe.ArrowDown:h.preventDefault(),a.openListbox(),d.nextFrame(()=>{s.value||a.goToOption(xe.First)});break;case pe.ArrowUp:h.preventDefault(),a.openListbox(),d.nextFrame(()=>{s.value||a.goToOption(xe.Last)});break}}),l=j(h=>{switch(h.key){case pe.Space:h.preventDefault();break}}),b=j(h=>{if(pf(h.currentTarget))return h.preventDefault();s.listboxState===0?(a.closeListbox(),d.nextFrame(()=>{var _;return(_=s.buttonRef.current)==null?void 0:_.focus({preventScroll:!0})})):(h.preventDefault(),a.openListbox())}),g=za(()=>{if(s.labelId)return[s.labelId,o].join(" ")},[s.labelId,o]),p=Se(()=>({open:s.listboxState===0,disabled:s.disabled,value:s.value}),[s]),y={ref:c,id:o,type:sf(e,s.buttonRef),"aria-haspopup":"listbox","aria-controls":(r=s.optionsRef.current)==null?void 0:r.id,"aria-expanded":s.listboxState===0,"aria-labelledby":g,disabled:s.disabled,onKeyDown:u,onKeyUp:l,onClick:b};return ht({ourProps:y,theirProps:i,slot:p,defaultTag:Tf,name:"Listbox.Button"})}let Of="label";function Af(e,t){let r=an(),{id:n=`headlessui-listbox-label-${r}`,...o}=e,i=lr("Listbox.Label"),s=ar("Listbox.Label"),a=kt(i.labelRef,t);Pe(()=>s.registerLabel(n),[n]);let c=j(()=>{var u;return(u=i.buttonRef.current)==null?void 0:u.focus({preventScroll:!0})}),d=Se(()=>({open:i.listboxState===0,disabled:i.disabled}),[i]);return ht({ourProps:{ref:a,id:n,onClick:c},theirProps:o,slot:d,defaultTag:Of,name:"Listbox.Label"})}let Pf="ul",Ff=Dr.RenderStrategy|Dr.Static;function Lf(e,t){var r;let n=an(),{id:o=`headlessui-listbox-options-${n}`,...i}=e,s=lr("Listbox.Options"),a=ar("Listbox.Options"),c=kt(s.optionsRef,t),d=$t(),u=$t(),l=jo(),b=l!==null?(l&Re.Open)===Re.Open:s.listboxState===0;te(()=>{var _;let S=s.optionsRef.current;S&&s.listboxState===0&&S!==((_=Wa(S))==null?void 0:_.activeElement)&&S.focus({preventScroll:!0})},[s.listboxState,s.optionsRef]);let g=j(_=>{switch(u.dispose(),_.key){case pe.Space:if(s.searchQuery!=="")return _.preventDefault(),_.stopPropagation(),a.search(_.key);case pe.Enter:if(_.preventDefault(),_.stopPropagation(),s.activeOptionIndex!==null){let{dataRef:S}=s.options[s.activeOptionIndex];a.onChange(S.current.value)}s.mode===0&&(a.closeListbox(),dt().nextFrame(()=>{var S;return(S=s.buttonRef.current)==null?void 0:S.focus({preventScroll:!0})}));break;case ge(s.orientation,{vertical:pe.ArrowDown,horizontal:pe.ArrowRight}):return _.preventDefault(),_.stopPropagation(),a.goToOption(xe.Next);case ge(s.orientation,{vertical:pe.ArrowUp,horizontal:pe.ArrowLeft}):return _.preventDefault(),_.stopPropagation(),a.goToOption(xe.Previous);case pe.Home:case pe.PageUp:return _.preventDefault(),_.stopPropagation(),a.goToOption(xe.First);case pe.End:case pe.PageDown:return _.preventDefault(),_.stopPropagation(),a.goToOption(xe.Last);case pe.Escape:return _.preventDefault(),_.stopPropagation(),a.closeListbox(),d.nextFrame(()=>{var S;return(S=s.buttonRef.current)==null?void 0:S.focus({preventScroll:!0})});case pe.Tab:_.preventDefault(),_.stopPropagation();break;default:_.key.length===1&&(a.search(_.key),u.setTimeout(()=>a.clearSearch(),350));break}}),p=za(()=>{var _;return(_=s.buttonRef.current)==null?void 0:_.id},[s.buttonRef.current]),y=Se(()=>({open:s.listboxState===0}),[s]),h={"aria-activedescendant":s.activeOptionIndex===null||(r=s.options[s.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":s.mode===1?!0:void 0,"aria-labelledby":p,"aria-orientation":s.orientation,id:o,onKeyDown:g,role:"listbox",tabIndex:0,ref:c};return ht({ourProps:h,theirProps:i,slot:y,defaultTag:Pf,features:Ff,visible:b,name:"Listbox.Options"})}let $f="li";function Df(e,t){let r=an(),{id:n=`headlessui-listbox-option-${r}`,disabled:o=!1,value:i,...s}=e,a=lr("Listbox.Option"),c=ar("Listbox.Option"),d=a.activeOptionIndex!==null?a.options[a.activeOptionIndex].id===n:!1,u=a.isSelected(i),l=z(null),b=vf(l),g=qe({disabled:o,value:i,domRef:l,get textValue(){return b()}}),p=kt(t,l);Pe(()=>{if(a.listboxState!==0||!d||a.activationTrigger===0)return;let A=dt();return A.requestAnimationFrame(()=>{var O,V;(V=(O=l.current)==null?void 0:O.scrollIntoView)==null||V.call(O,{block:"nearest"})}),A.dispose},[l,d,a.listboxState,a.activationTrigger,a.activeOptionIndex]),Pe(()=>c.registerOption(n,g),[g,n]);let y=j(A=>{if(o)return A.preventDefault();c.onChange(i),a.mode===0&&(c.closeListbox(),dt().nextFrame(()=>{var O;return(O=a.buttonRef.current)==null?void 0:O.focus({preventScroll:!0})}))}),h=j(()=>{if(o)return c.goToOption(xe.Nothing);c.goToOption(xe.Specific,n)}),_=lf(),S=j(A=>_.update(A)),E=j(A=>{_.wasMoved(A)&&(o||d||c.goToOption(xe.Specific,n,0))}),L=j(A=>{_.wasMoved(A)&&(o||d&&c.goToOption(xe.Nothing))}),F=Se(()=>({active:d,selected:u,disabled:o}),[d,u,o]);return ht({ourProps:{id:n,ref:p,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":u,disabled:void 0,onClick:y,onFocus:h,onPointerEnter:S,onMouseEnter:S,onPointerMove:E,onMouseMove:E,onPointerLeave:L,onMouseLeave:L},theirProps:s,slot:F,defaultTag:$f,name:"Listbox.Option"})}let Nf=rt(Cf),If=rt(Rf),Vf=rt(Af),Bf=rt(Lf),Uf=rt(Df),Kt=Object.assign(Nf,{Button:If,Label:Vf,Options:Bf,Option:Uf});function Mf(e=0){let[t,r]=ee(e),n=zo(),o=at(c=>{n.current&&r(d=>d|c)},[t,n]),i=at(c=>!!(t&c),[t]),s=at(c=>{n.current&&r(d=>d&~c)},[r,n]),a=at(c=>{n.current&&r(d=>d^c)},[r]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}function Hf(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Tn(e,...t){e&&t.length>0&&e.classList.add(...t)}function Rn(e,...t){e&&t.length>0&&e.classList.remove(...t)}function jf(e,t){let r=dt();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[i,s]=[n,o].map(c=>{let[d=0]=c.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,l)=>l-u);return d}),a=i+s;if(a!==0){r.group(d=>{d.setTimeout(()=>{t(),d.dispose()},a),d.addEventListener(e,"transitionrun",u=>{u.target===u.currentTarget&&d.dispose()})});let c=r.addEventListener(e,"transitionend",d=>{d.target===d.currentTarget&&(t(),c())})}else t();return r.add(()=>t()),r.dispose}function zf(e,t,r,n){let o=r?"enter":"leave",i=dt(),s=n!==void 0?Hf(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=ge(o,{enter:()=>t.enter,leave:()=>t.leave}),c=ge(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),d=ge(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Rn(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Tn(e,...t.base,...a,...d),i.nextFrame(()=>{Rn(e,...t.base,...a,...d),Tn(e,...t.base,...a,...c),jf(e,()=>(Rn(e,...t.base,...a),Tn(e,...t.base,...t.entered),s()))}),i.dispose}function Wf({immediate:e,container:t,direction:r,classes:n,onStart:o,onStop:i}){let s=zo(),a=$t(),c=qe(r);Pe(()=>{e&&(c.current="enter")},[e]),Pe(()=>{let d=dt();a.add(d.dispose);let u=t.current;if(u&&c.current!=="idle"&&s.current)return d.dispose(),o.current(c.current),d.add(zf(u,n.current,c.current==="enter",()=>{d.dispose(),i.current(c.current)})),d.dispose},[r])}function it(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let ln=et(null);ln.displayName="TransitionContext";var qf=(e=>(e.Visible="visible",e.Hidden="hidden",e))(qf||{});function Gf(){let e=Fe(ln);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Kf(){let e=Fe(cn);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let cn=et(null);cn.displayName="NestingContext";function un(e){return"children"in e?un(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Za(e,t){let r=qe(e),n=z([]),o=zo(),i=$t(),s=j((g,p=ct.Hidden)=>{let y=n.current.findIndex(({el:h})=>h===g);y!==-1&&(ge(p,{[ct.Unmount](){n.current.splice(y,1)},[ct.Hidden](){n.current[y].state="hidden"}}),i.microTask(()=>{var h;!un(n)&&o.current&&((h=r.current)==null||h.call(r))}))}),a=j(g=>{let p=n.current.find(({el:y})=>y===g);return p?p.state!=="visible"&&(p.state="visible"):n.current.push({el:g,state:"visible"}),()=>s(g,ct.Unmount)}),c=z([]),d=z(Promise.resolve()),u=z({enter:[],leave:[],idle:[]}),l=j((g,p,y)=>{c.current.splice(0),t&&(t.chains.current[p]=t.chains.current[p].filter(([h])=>h!==g)),t==null||t.chains.current[p].push([g,new Promise(h=>{c.current.push(h)})]),t==null||t.chains.current[p].push([g,new Promise(h=>{Promise.all(u.current[p].map(([_,S])=>S)).then(()=>h())})]),p==="enter"?d.current=d.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(p)):y(p)}),b=j((g,p,y)=>{Promise.all(u.current[p].splice(0).map(([h,_])=>_)).then(()=>{var h;(h=c.current.shift())==null||h()}).then(()=>y(p))});return Se(()=>({children:n,register:a,unregister:s,onStart:l,onStop:b,wait:d,chains:u}),[a,s,n,l,b,u,d])}function Jf(){}let Xf=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ns(e){var t;let r={};for(let n of Xf)r[n]=(t=e[n])!=null?t:Jf;return r}function Yf(e){let t=z(ns(e));return te(()=>{t.current=ns(e)},[e]),t}let Qf="div",el=Dr.RenderStrategy;function Zf(e,t){var r,n;let{beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a,enter:c,enterFrom:d,enterTo:u,entered:l,leave:b,leaveFrom:g,leaveTo:p,...y}=e,h=z(null),_=kt(h,t),S=(r=y.unmount)==null||r?ct.Unmount:ct.Hidden,{show:E,appear:L,initial:F}=Gf(),[A,O]=ee(E?"visible":"hidden"),V=Kf(),{register:U,unregister:H}=V;te(()=>U(h),[U,h]),te(()=>{if(S===ct.Hidden&&h.current){if(E&&A!=="visible"){O("visible");return}return ge(A,{hidden:()=>H(h),visible:()=>U(h)})}},[A,h,U,H,E,S]);let Be=qe({base:it(y.className),enter:it(c),enterFrom:it(d),enterTo:it(u),entered:it(l),leave:it(b),leaveFrom:it(g),leaveTo:it(p)}),D=Yf({beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a}),M=Uo();te(()=>{if(M&&A==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,A,M]);let re=F&&!L,ae=L&&E&&F,ve=!M||re?"idle":E?"enter":"leave",ie=Mf(0),Ge=j(N=>ge(N,{enter:()=>{ie.addFlag(Re.Opening),D.current.beforeEnter()},leave:()=>{ie.addFlag(Re.Closing),D.current.beforeLeave()},idle:()=>{}})),Ke=j(N=>ge(N,{enter:()=>{ie.removeFlag(Re.Opening),D.current.afterEnter()},leave:()=>{ie.removeFlag(Re.Closing),D.current.afterLeave()},idle:()=>{}})),$e=Za(()=>{O("hidden"),H(h)},V),nt=z(!1);Wf({immediate:ae,container:h,classes:Be,direction:ve,onStart:qe(N=>{nt.current=!0,$e.onStart(h,N,Ge)}),onStop:qe(N=>{nt.current=!1,$e.onStop(h,N,Ke),N==="leave"&&!un($e)&&(O("hidden"),H(h))})});let _e=y,Ut={ref:_};return ae?_e={..._e,className:$r(y.className,...Be.current.enter,...Be.current.enterFrom)}:nt.current&&(_e.className=$r(y.className,(n=h.current)==null?void 0:n.className),_e.className===""&&delete _e.className),$.createElement(cn.Provider,{value:$e},$.createElement(Ja,{value:ge(A,{visible:Re.Open,hidden:Re.Closed})|ie.flags},ht({ourProps:Ut,theirProps:_e,defaultTag:Qf,features:el,visible:A==="visible",name:"Transition.Child"})))}function ep(e,t){let{show:r,appear:n=!1,unmount:o=!0,...i}=e,s=z(null),a=kt(s,t);Uo();let c=jo();if(r===void 0&&c!==null&&(r=(c&Re.Open)===Re.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,u]=ee(r?"visible":"hidden"),l=Za(()=>{u("hidden")}),[b,g]=ee(!0),p=z([r]);Pe(()=>{b!==!1&&p.current[p.current.length-1]!==r&&(p.current.push(r),g(!1))},[p,r]);let y=Se(()=>({show:r,appear:n,initial:b}),[r,n,b]);te(()=>{if(r)u("visible");else if(!un(l))u("hidden");else{let E=s.current;if(!E)return;let L=E.getBoundingClientRect();L.x===0&&L.y===0&&L.width===0&&L.height===0&&u("hidden")}},[r,l]);let h={unmount:o},_=j(()=>{var E;b&&g(!1),(E=e.beforeEnter)==null||E.call(e)}),S=j(()=>{var E;b&&g(!1),(E=e.beforeLeave)==null||E.call(e)});return $.createElement(cn.Provider,{value:l},$.createElement(ln.Provider,{value:y},ht({ourProps:{...h,as:Z,children:$.createElement(tl,{ref:a,...h,...i,beforeEnter:_,beforeLeave:S})},theirProps:{},defaultTag:Z,features:el,visible:d==="visible",name:"Transition"})))}function tp(e,t){let r=Fe(ln)!==null,n=jo()!==null;return $.createElement($.Fragment,null,!r&&n?$.createElement(Xn,{ref:t,...e}):$.createElement(tl,{ref:t,...e}))}let Xn=rt(ep),tl=rt(Zf),rp=rt(tp),np=Object.assign(Xn,{Child:rp,Root:Xn});const op=pt(Kt.Button,{target:"e12f85wo1"})(()=>({position:"relative",minHeight:"2.25rem",width:"100%",cursor:"pointer",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.5rem",textAlign:"left",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / 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), 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-inset":"inset",":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)"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"},"@media (min-width: 768px)":{paddingTop:"0.375rem",paddingBottom:"0.375rem"}})," ",({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)"}},";"),ip=pt(Kt.Label,{target:"e12f85wo0"})(({variant:e})=>e==="sm"?{position:"absolute",zIndex:"50",marginLeft:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingLeft:"0.25rem",paddingRight:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},";");function os(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function is(e,t,r){var n=[],o=Qr(e,n,r);return n.length<2?r:o+t(n)}var sp=function(t){var r=bo(t);r.sheet.speedy=function(a){this.isSpeedy=a},r.compat=!0;var n=function(){for(var c=arguments.length,d=new Array(c),u=0;u<c;u++)d[u]=arguments[u];var l=bt(d,r.registered,void 0);return Zr(r,l,!1),r.key+"-"+l.name},o=function(){for(var c=arguments.length,d=new Array(c),u=0;u<c;u++)d[u]=arguments[u];var l=bt(d,r.registered),b="animation-"+l.name;return os(r,{name:l.name,styles:"@keyframes "+b+"{"+l.styles+"}"}),b},i=function(){for(var c=arguments.length,d=new Array(c),u=0;u<c;u++)d[u]=arguments[u];var l=bt(d,r.registered);os(r,l)},s=function(){for(var c=arguments.length,d=new Array(c),u=0;u<c;u++)d[u]=arguments[u];return is(r.registered,n,ap(d))};return{css:n,cx:s,injectGlobal:i,keyframes:o,hydrate:function(c){c.forEach(function(d){r.inserted[d]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Qr.bind(null,r.registered),merge:is.bind(null,r.registered,n)}},ap=function e(t){for(var r="",n=0;n<t.length;n++){var o=t[n];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else{i="";for(var s in o)o[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=o}i&&(r&&(r+=" "),r+=i)}}return r},rl=sp({key:"css"}),On=rl.cx,An=rl.css;function lp({title:e,titleId:t,...r},n){return K("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?K("title",{id:t},e):null,K("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const cp=tt(lp);function up({title:e,titleId:t,...r},n){return K("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?K("title",{id:t},e):null,K("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))}const dp=tt(up),Go=tt(({inputLabel:e,items:t,value:r,className:n,onChange:o,error:i,helperText:s,variant:a},c)=>x("div",{className:n},x(Kt,{value:r||"",onChange:u=>{o(u)}},({open:u})=>{var l;return x(Z,null,x(ip,{variant:a},e),x("div",{css:{position:"relative",marginTop:"0.5rem"}},x(op,{as:"button",ref:c,hasError:!!i},x("span",{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"0.875rem",lineHeight:"1.25rem"}},((l=t.find(b=>b.key==r))==null?void 0:l.displayValue)??"Select"),x("span",{css:{pointerEvents:"none",position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"flex",alignItems:"center",paddingRight:"0.75rem"}},x(cp,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},"aria-hidden":"true"}))),x(np,{show:u,leave:On(An({name:"1sgcnq9",styles:"transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 1, 1);transition-duration:100ms"})),leaveFrom:On(An({name:"3ix1vd",styles:"opacity:1"})),leaveTo:On(An({name:"mws4fn",styles:"opacity:0"}))},x(Kt.Options,{css:{position:"absolute",zIndex:"10",marginTop:"0.25rem",maxHeight:"15rem",width:"100%",overflow:"auto",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"1rem",lineHeight:"1.5rem","--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-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}}},t.map(b=>x(Kt.Option,{key:b.key,css:{position:"relative",cursor:"default",userSelect:"none",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.25rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",'&[data-headlessui-state~="active"]':{backgroundColor:"var(--fl-color-primary-600)","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},':where([data-headlessui-state~="active"]) &':{backgroundColor:"var(--fl-color-primary-600)","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}},value:b.key},x("span",{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",'&[data-headlessui-state~="selected"]':{fontWeight:"600"},':where([data-headlessui-state~="selected"]) &':{fontWeight:"600"}}},b.displayValue),x("span",{css:{position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"none",alignItems:"center",paddingRight:"0.75rem",color:"var(--fl-color-primary-600)",'&[data-headlessui-state~="selected"]':{display:"flex"},':where([data-headlessui-state~="selected"]) &':{display:"flex"},'&[data-headlessui-state~="active"]':{"--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},':where([data-headlessui-state~="active"]) &':{"--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}}},x(dp,{css:{height:"1.25rem",width:"1.25rem"},"aria-hidden":"true"}))))))))}),(i==null?void 0:i.message)&&x("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))"}},i.message),s&&x("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}},s)));function Nr(){return Nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nr.apply(null,arguments)}const fp=[{key:"goCardless",displayValue:"GoCardless"},{key:"westpac",displayValue:"Westpac"}],pp=()=>{const[e,t]=ee(),[r,n]=ee(!1),[o,i]=ee(),{control:s,handleSubmit:a,watch:c}=$o({mode:"onChange",defaultValues:{source:"goCardless"}});te(()=>{const u=c(()=>{t(void 0),i(void 0)});return()=>u.unsubscribe()},[c]);const d=async u=>{i(void 0),n(!0);try{const l=await $d(u);t(l),n(!1)}catch(l){if(n(!1),oe.isAxiosError(l)){const b=await Ua(l);l.status===401?i("Authenticated session expired. Please refresh the page to start a new session."):i(`Something went wrong. Please ensure the uploaded file is valid and in the correct format. CorrelationId: ${b.correlationId??"Unknown"}`)}}};return x(Z,null,x("div",{css:{marginBottom:"1.25rem"}},x("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}},"Create Catch-E Receipt Batch")),x("div",{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))",borderStyle:"dashed","--tw-divide-opacity":"1",borderColor:"rgb(156 163 175 / var(--tw-divide-opacity))"}}},x("form",{onSubmit:a(d)},x(He,{name:"source",control:s,render:({field:u})=>x(Go,Nr({inputLabel:"Source",css:{marginBottom:"1rem"},items:fp},u))}),x(He,{name:"transactionsFile",control:s,rules:{validate:{validFile:u=>u.name.split(".")[1]==="csv"||"File must be a '.csv'"},required:"Please upload a csv"},render:({field:u,fieldState:l})=>x(Nc,Nr({inputLabel:"Transactions"},u,{error:l.error}))}),x("div",{css:{marginTop:"2rem"}},r?x(ja,null):x(sn,{type:"submit"},"Submit"))),x("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"}},o&&x("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"}},o),e&&x(Ha,{blob:e,fileName:"receipt_batch.zip"},"Download"))))},hp=pt("button",{target:"e1tl4qq20"})({whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600"}," ",({isCurrent:e})=>e?{borderColor:"var(--fl-color-primary-600)",color:"var(--fl-color-primary-700)"}:{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))"}},";"),mp=({tabs:e,currentTab:t,onChange:r,className:n})=>x("div",{className:n},x("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))"}},x("nav",{css:{marginBottom:"-1px",display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2rem * var(--tw-space-x-reverse))",marginLeft:"calc(2rem * calc(1 - var(--tw-space-x-reverse)))"}},"aria-label":"Tabs"},e.map(o=>x(hp,{key:o.displayName,type:"button",onClick:()=>r(o.id),"aria-current":o.id===t?"page":void 0,isCurrent:o.id===t},o.displayName))))),gp=({className:e,inputLabel:t,items:r,value:n,onChange:o})=>{const i=s=>{const a=s.target;o(a.id)};return x("div",{className:e},x("label",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}},t),x("fieldset",{css:{marginTop:"0.25rem"}},x("legend",{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},t),x("div",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":"0",marginTop:"calc(1rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(1rem * var(--tw-space-y-reverse))"},"@media (min-width: 640px)":{display:"flex",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2.5rem * var(--tw-space-x-reverse))",marginLeft:"calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))","--tw-space-y-reverse":"0",marginTop:"calc(0px * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(0px * var(--tw-space-y-reverse))"}}}},r.map(s=>x("div",{key:s.key,css:{display:"flex",alignItems:"center"}},x("input",{id:s.key,name:s.key,type:"radio",checked:n===s.key,onClick:i,css:{height:"1rem",width:"1rem","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))",color:"var(--fl-color-primary-600)",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}}),x("label",{htmlFor:s.key,css:{marginLeft:"0.75rem",display:"block",fontSize:"0.875rem",lineHeight:"1.5rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}},s.displayValue))))))},yp=pt("input",{target:"eiiy7i71"})(()=>({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"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"}})," ",({prefix:e})=>e?{paddingLeft:"1.75rem"}:{paddingLeft:"0.75rem"}," ",({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)"}},";"),vp=pt("div",{target:"eiiy7i70"})(({isHidden:e})=>e?{display:"none"}:{display:"block"},";"),zt=tt(({label:e,id:t,type:r,placeholder:n,value:o,className:i,onChange:s,onBlur:a,error:c,isHidden:d,min:u,max:l},b)=>{const g=y=>{y.target instanceof HTMLInputElement&&s(y.target.value.trim())},p=y=>{y.target instanceof HTMLInputElement&&a&&a(y.target.value.trim())};return x(vp,{isHidden:d,className:i},x("label",{htmlFor:t,css:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}},e),x("div",{css:{marginTop:"0.5rem"}},x(yp,{type:r,value:o,name:t,id:t,placeholder:n,onChange:g,onBlur:p,hasError:!!c,ref:b,min:u,max:l})),(c==null?void 0:c.message)&&x("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))"}},c.message))});function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},st.apply(null,arguments)}const bp=[{key:"GroupCode",displayValue:"Group code"},{key:"ClientId",displayValue:"Client Id"}],_p=[{key:"itc",displayValue:"Net ITC"},{key:"lcc",displayValue:"Luxury Car Charge"}],wp=(e,t)=>e&&t.endDate?new Date(e)<=new Date(t.endDate)||"Start must be before End":!0,xp=(e,t)=>e&&t.startDate?new Date(e)>=new Date(t.startDate)||"End must be after Start":!0,Sp=()=>{const[e,t]=ee(),[r,n]=ee(!1),[o,i]=ee(),{control:s,handleSubmit:a,watch:c}=$o({mode:"onBlur",defaultValues:{entityType:"GroupCode"}});te(()=>{const l=c(()=>{t(void 0),i(void 0)});return()=>l.unsubscribe()},[c]);const d=()=>c("entityType"),u=async l=>{i(void 0),n(!0);try{const b=await Dd(l);t({blob:b,inputs:l}),n(!1)}catch(b){if(n(!1),oe.isAxiosError(b)){const g=await Ua(b);b.status===401?i("Authenticated session expired. Please refresh the page to start a new session."):i(`Something went wrong. Please ensure the Group Code or Client Id provided is valid.. CorrelationId: ${g.correlationId??"Unknown"}`)}}};return x(Z,null,x("div",{css:{marginBottom:"1.25rem"}},x("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}},"Generate CatchE Report")),x("div",{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))",borderStyle:"dashed","--tw-divide-opacity":"1",borderColor:"rgb(156 163 175 / var(--tw-divide-opacity))"}}},x("form",{onSubmit:a(u)},x("div",{css:{marginBottom:"1rem",display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"1rem"}},x(He,{name:"report",control:s,render:({field:l})=>x(Go,st({inputLabel:"Report",css:{gridColumn:"span 2 / span 2"},items:_p},l))}),x(He,{name:"startDate",control:s,rules:{validate:{validateStartDate:wp}},render:({field:l,fieldState:b})=>x(zt,st({label:"Start Date",id:"startDate",css:{gridColumn:"span 1 / span 1"},type:"date",error:b.error},l))}),x(He,{name:"endDate",control:s,rules:{validate:{validateEndDate:xp}},render:({field:l,fieldState:b})=>x(zt,st({label:"End Date",id:"endDate",css:{gridColumn:"span 1 / span 1"},type:"date",error:b.error},l))})),x(He,{name:"entityType",control:s,render:({field:l})=>x(gp,st({inputLabel:"Identifier type",css:{marginBottom:"1rem"},items:bp},l))}),x(He,{name:"groupCode",control:s,rules:{validate:{requiresGroupCode:l=>d()!=="GroupCode"||!!l||"Group Code is required",validGroupCode:l=>d()!=="GroupCode"||/^[A-Z0-9]+$/.test(l)||"Group Code is not valid"}},render:({field:l,fieldState:b})=>x(zt,st({label:"Group code",id:"groupCode",type:"text",isHidden:d()!=="GroupCode",error:b.error},l))}),x(He,{name:"clientId",control:s,rules:{validate:{requiresClientId:l=>d()!=="ClientId"||!!l||"Client Id is required"}},render:({field:l,fieldState:b})=>x(zt,st({label:"Client Id",id:"clientId",type:"number",isHidden:d()!=="ClientId",error:b.error},l))}),x("div",{css:{marginTop:"1rem"}},r?x(ja,null):x(sn,{type:"submit"},"Submit"))),x("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"}},o&&x("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"}},o),(e==null?void 0:e.blob)&&x(Ha,{blob:e.blob,fileName:`${e.inputs.entityType==="GroupCode"?e.inputs.groupCode:e.inputs.clientId}_${e.inputs.report}.csv`},"Download"))))},Ep=e=>{const[t,r]=ee(e),n=z(null),o=()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{r(s=>s-1)},1e3)};return te(()=>(t>0&&n.current?n.current=setTimeout(()=>{r(s=>s-1)},1e3):n.current&&clearTimeout(n.current),()=>{n.current&&clearTimeout(n.current)}),[t]),{timeLeft:t,resetTimer:s=>{n.current&&clearTimeout(n.current),r(s),n.current=null},startTimer:o}};function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ir.apply(null,arguments)}const kp=[{displayValue:"Clients",key:"clients"},{displayValue:"Drivers",key:"drivers"},{displayValue:"Contract Budgets",key:"contractBudgets"},{displayValue:"Invoice Items",key:"invoiceItems"},{displayValue:"Deleted Invoice Items",key:"deletedInvoiceItems"},{displayValue:"Vehicle Contracts",key:"vehicleContracts"}],Cp=()=>{const e=new Date().toISOString().split("T")[0],t=Ma(-14),r=30,[n,o]=ee(),[i,s]=ee(!1),{timeLeft:a,resetTimer:c,startTimer:d}=Ep(r),{control:u,handleSubmit:l}=$o({mode:"onBlur",defaultValues:{ingestEndPoints:"clients"}});te(()=>{a===0&&(s(!1),c(r))},[a]);const b=async g=>{o(void 0),s(!0),d();try{switch(g.ingestEndPoints){case"clients":await Nd(g.startDate);break;case"drivers":await Id(g.startDate);break;case"contractBudgets":await Vd(g.startDate);break;case"invoiceItems":await Bd(g.startDate);break;case"deletedInvoiceItems":await Ud(g.startDate);break;case"vehicleContracts":await Md(g.startDate);break}}catch(p){if(s(!1),c(r),oe.isAxiosError(p)){const y=Ad(p);p.status===401?o("Authenticated session expired. Please refresh the page to start a new session."):o(`Something went wrong. Please wait for some time and try again.
|
|
17
|
-
|
|
28
|
+
`));let v=d.props,g=typeof(v==null?void 0:v.className)=="function"?(...y)=>Dr(v==null?void 0:v.className(...y),c.className):Dr(v==null?void 0:v.className,c.className),p=g?{className:g}:{};return co(d,Object.assign({},Ka(d.props,Jn(kn(c,["ref"]))),l,u,{ref:o(d.ref,u.ref)},p))}return X(i,Object.assign({},kn(c,["ref"]),i!==ee&&u,i!==ee&&l),d)}function df(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function Ka(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](o,...i){let s=r[n];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function ot(e){var t;return Object.assign(nt(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Jn(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function kn(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let ff="div";var Ja=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ja||{});function pf(e,t){var r;let{features:n=1,...o}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:(r=o["aria-hidden"])!=null?r:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return ht({ourProps:i,theirProps:o,slot:{},defaultTag:ff,name:"Hidden"})}let hf=ot(pf),Mo=rt(null);Mo.displayName="OpenClosedContext";var Oe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Oe||{});function Ho(){return $e(Mo)}function Xa({value:e,children:t}){return L.createElement(Mo.Provider,{value:e},t)}function mf(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&gf(r)?!1:n}function gf(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function yf(e){throw new Error("Unexpected object: "+e)}var Se=(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))(Se||{});function vf(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),o=n??-1;switch(e.focus){case 0:{for(let i=0;i<r.length;++i)if(!t.resolveDisabled(r[i],i,r))return i;return n}case 1:{for(let i=o-1;i>=0;--i)if(!t.resolveDisabled(r[i],i,r))return i;return n}case 2:{for(let i=o+1;i<r.length;++i)if(!t.resolveDisabled(r[i],i,r))return i;return n}case 3:{for(let i=r.length-1;i>=0;--i)if(!t.resolveDisabled(r[i],i,r))return i;return n}case 4:{for(let i=0;i<r.length;++i)if(t.resolveId(r[i],i,r)===e.id)return i;return n}case 5:return null;default:yf(e)}}function Ya(e={},t=null,r=[]){for(let[n,o]of Object.entries(e))Za(r,Qa(t,n),o);return r}function Qa(e,t){return e?e+"["+t+"]":t}function Za(e,t,r){if(Array.isArray(r))for(let[n,o]of r.entries())Za(e,Qa(t,n.toString()),o);else r instanceof Date?e.push([t,r.toISOString()]):typeof r=="boolean"?e.push([t,r?"1":"0"]):typeof r=="string"?e.push([t,r]):typeof r=="number"?e.push([t,`${r}`]):r==null?e.push([t,""]):Ya(r,t,e)}var he=(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))(he||{});function jo(){let e=z(!1);return Fe(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let es=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function ts(e){var t,r;let n=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return n;let i=!1;for(let a of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),i=!0;let s=i?(r=o.innerText)!=null?r:"":n;return es.test(s)&&(s=s.replace(es,"")),s}function bf(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(o=>{let i=document.getElementById(o);if(i){let s=i.getAttribute("aria-label");return typeof s=="string"?s.trim():ts(i).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return ts(e).trim()}function _f(e){let t=z(""),r=z("");return j(()=>{let n=e.current;if(!n)return"";let o=n.innerText;if(t.current===o)return r.current;let i=bf(n).trim().toLowerCase();return t.current=o,r.current=i,i})}var wf=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(wf||{}),xf=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(xf||{}),Sf=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Sf||{}),Ef=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(Ef||{});function Cn(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=tf(t(e.options.slice()),i=>i.dataRef.current.domRef.current),o=r?n.indexOf(r):null;return o===-1&&(o=null),{options:n,activeOptionIndex:o}}let kf={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(o=>r(o.dataRef.current.value));return n!==-1&&(t=n),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=Cn(e),o=vf(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:i=>i.id,resolveDisabled:i=>i.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:o,activationTrigger:(r=t.trigger)!=null?r:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),o=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(s=>{var a;return!s.dataRef.current.disabled&&((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(n))}),i=o?e.options.indexOf(o):-1;return i===-1||i===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:i,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=Cn(e,o=>[...o,r]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=Cn(e,n=>{let o=n.findIndex(i=>i.id===t.id);return o!==-1&&n.splice(o,1),n});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},zo=rt(null);zo.displayName="ListboxActionsContext";function ar(e){let t=$e(zo);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ar),r}return t}let Wo=rt(null);Wo.displayName="ListboxDataContext";function lr(e){let t=$e(Wo);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,lr),r}return t}function Cf(e,t){return ye(t.type,kf,e,t)}let Tf=ee;function Rf(e,t){let{value:r,defaultValue:n,form:o,name:i,onChange:s,by:a=(N,Z)=>N===Z,disabled:c=!1,horizontal:u=!1,multiple:d=!1,...l}=e;const v=u?"horizontal":"vertical";let g=kt(t),[p=d?[]:void 0,y]=Kd(r,s,n),[h,_]=tr(Cf,{dataRef:Qn(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),x=z({static:!1,hold:!1}),S=z(null),$=z(null),F=z(null),A=j(typeof a=="string"?(N,Z)=>{let de=a;return(N==null?void 0:N[de])===(Z==null?void 0:Z[de])}:a),O=lt(N=>ye(V.mode,{1:()=>p.some(Z=>A(Z,N)),0:()=>A(p,N)}),[p]),V=Ee(()=>({...h,value:p,disabled:c,mode:d?1:0,orientation:v,compare:A,isSelected:O,optionsPropsRef:x,labelRef:S,buttonRef:$,optionsRef:F}),[p,c,d,h]);Fe(()=>{h.dataRef.current=V},[V]),af([V.buttonRef,V.optionsRef],(N,Z)=>{var de;_({type:1}),Ga(Z,Uo.Loose)||(N.preventDefault(),(de=V.buttonRef.current)==null||de.focus())},V.listboxState===0);let U=Ee(()=>({open:V.listboxState===0,disabled:c,value:p}),[V,c,p]),H=j(N=>{let Z=V.options.find(de=>de.id===N);Z&&se(Z.dataRef.current.value)}),Ue=j(()=>{if(V.activeOptionIndex!==null){let{dataRef:N,id:Z}=V.options[V.activeOptionIndex];se(N.current.value),_({type:2,focus:Se.Specific,id:Z})}}),D=j(()=>_({type:0})),M=j(()=>_({type:1})),ne=j((N,Z,de)=>N===Se.Specific?_({type:2,focus:Se.Specific,id:Z,trigger:de}):_({type:2,focus:N,trigger:de})),le=j((N,Z)=>(_({type:5,id:N,dataRef:Z}),()=>_({type:6,id:N}))),be=j(N=>(_({type:7,id:N}),()=>_({type:7,id:null}))),se=j(N=>ye(V.mode,{0(){return y==null?void 0:y(N)},1(){let Z=V.value.slice(),de=Z.findIndex(mt=>A(mt,N));return de===-1?Z.push(N):Z.splice(de,1),y==null?void 0:y(Z)}})),Je=j(N=>_({type:3,value:N})),Xe=j(()=>_({type:4})),De=Ee(()=>({onChange:se,registerOption:le,registerLabel:be,goToOption:ne,closeListbox:M,openListbox:D,selectActiveOption:Ue,selectOption:H,search:Je,clearSearch:Xe}),[]),it={ref:g},we=z(null),Ut=Lt();return re(()=>{we.current&&n!==void 0&&Ut.addEventListener(we.current,"reset",()=>{y==null||y(n)})},[we,y]),L.createElement(zo.Provider,{value:De},L.createElement(Wo.Provider,{value:V},L.createElement(Xa,{value:ye(V.listboxState,{0:Oe.Open,1:Oe.Closed})},i!=null&&p!=null&&Ya({[i]:p}).map(([N,Z],de)=>L.createElement(hf,{features:Ja.Hidden,ref:de===0?mt=>{var Ct;we.current=(Ct=mt==null?void 0:mt.closest("form"))!=null?Ct:null}:void 0,...Jn({key:N,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,disabled:c,name:N,value:Z})})),ht({ourProps:it,theirProps:l,slot:U,defaultTag:Tf,name:"Listbox"}))))}let Of="button";function Af(e,t){var r;let n=an(),{id:o=`headlessui-listbox-button-${n}`,...i}=e,s=lr("Listbox.Button"),a=ar("Listbox.Button"),c=kt(s.buttonRef,t),u=Lt(),d=j(h=>{switch(h.key){case he.Space:case he.Enter:case he.ArrowDown:h.preventDefault(),a.openListbox(),u.nextFrame(()=>{s.value||a.goToOption(Se.First)});break;case he.ArrowUp:h.preventDefault(),a.openListbox(),u.nextFrame(()=>{s.value||a.goToOption(Se.Last)});break}}),l=j(h=>{switch(h.key){case he.Space:h.preventDefault();break}}),v=j(h=>{if(mf(h.currentTarget))return h.preventDefault();s.listboxState===0?(a.closeListbox(),u.nextFrame(()=>{var _;return(_=s.buttonRef.current)==null?void 0:_.focus({preventScroll:!0})})):(h.preventDefault(),a.openListbox())}),g=Wa(()=>{if(s.labelId)return[s.labelId,o].join(" ")},[s.labelId,o]),p=Ee(()=>({open:s.listboxState===0,disabled:s.disabled,value:s.value}),[s]),y={ref:c,id:o,type:lf(e,s.buttonRef),"aria-haspopup":"listbox","aria-controls":(r=s.optionsRef.current)==null?void 0:r.id,"aria-expanded":s.listboxState===0,"aria-labelledby":g,disabled:s.disabled,onKeyDown:d,onKeyUp:l,onClick:v};return ht({ourProps:y,theirProps:i,slot:p,defaultTag:Of,name:"Listbox.Button"})}let Pf="label";function Ff(e,t){let r=an(),{id:n=`headlessui-listbox-label-${r}`,...o}=e,i=lr("Listbox.Label"),s=ar("Listbox.Label"),a=kt(i.labelRef,t);Fe(()=>s.registerLabel(n),[n]);let c=j(()=>{var d;return(d=i.buttonRef.current)==null?void 0:d.focus({preventScroll:!0})}),u=Ee(()=>({open:i.listboxState===0,disabled:i.disabled}),[i]);return ht({ourProps:{ref:a,id:n,onClick:c},theirProps:o,slot:u,defaultTag:Pf,name:"Listbox.Label"})}let $f="ul",Lf=Nr.RenderStrategy|Nr.Static;function Df(e,t){var r;let n=an(),{id:o=`headlessui-listbox-options-${n}`,...i}=e,s=lr("Listbox.Options"),a=ar("Listbox.Options"),c=kt(s.optionsRef,t),u=Lt(),d=Lt(),l=Ho(),v=l!==null?(l&Oe.Open)===Oe.Open:s.listboxState===0;re(()=>{var _;let x=s.optionsRef.current;x&&s.listboxState===0&&x!==((_=qa(x))==null?void 0:_.activeElement)&&x.focus({preventScroll:!0})},[s.listboxState,s.optionsRef]);let g=j(_=>{switch(d.dispose(),_.key){case he.Space:if(s.searchQuery!=="")return _.preventDefault(),_.stopPropagation(),a.search(_.key);case he.Enter:if(_.preventDefault(),_.stopPropagation(),s.activeOptionIndex!==null){let{dataRef:x}=s.options[s.activeOptionIndex];a.onChange(x.current.value)}s.mode===0&&(a.closeListbox(),ft().nextFrame(()=>{var x;return(x=s.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})}));break;case ye(s.orientation,{vertical:he.ArrowDown,horizontal:he.ArrowRight}):return _.preventDefault(),_.stopPropagation(),a.goToOption(Se.Next);case ye(s.orientation,{vertical:he.ArrowUp,horizontal:he.ArrowLeft}):return _.preventDefault(),_.stopPropagation(),a.goToOption(Se.Previous);case he.Home:case he.PageUp:return _.preventDefault(),_.stopPropagation(),a.goToOption(Se.First);case he.End:case he.PageDown:return _.preventDefault(),_.stopPropagation(),a.goToOption(Se.Last);case he.Escape:return _.preventDefault(),_.stopPropagation(),a.closeListbox(),u.nextFrame(()=>{var x;return(x=s.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})});case he.Tab:_.preventDefault(),_.stopPropagation();break;default:_.key.length===1&&(a.search(_.key),d.setTimeout(()=>a.clearSearch(),350));break}}),p=Wa(()=>{var _;return(_=s.buttonRef.current)==null?void 0:_.id},[s.buttonRef.current]),y=Ee(()=>({open:s.listboxState===0}),[s]),h={"aria-activedescendant":s.activeOptionIndex===null||(r=s.options[s.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":s.mode===1?!0:void 0,"aria-labelledby":p,"aria-orientation":s.orientation,id:o,onKeyDown:g,role:"listbox",tabIndex:0,ref:c};return ht({ourProps:h,theirProps:i,slot:y,defaultTag:$f,features:Lf,visible:v,name:"Listbox.Options"})}let Nf="li";function If(e,t){let r=an(),{id:n=`headlessui-listbox-option-${r}`,disabled:o=!1,value:i,...s}=e,a=lr("Listbox.Option"),c=ar("Listbox.Option"),u=a.activeOptionIndex!==null?a.options[a.activeOptionIndex].id===n:!1,d=a.isSelected(i),l=z(null),v=_f(l),g=Ge({disabled:o,value:i,domRef:l,get textValue(){return v()}}),p=kt(t,l);Fe(()=>{if(a.listboxState!==0||!u||a.activationTrigger===0)return;let A=ft();return A.requestAnimationFrame(()=>{var O,V;(V=(O=l.current)==null?void 0:O.scrollIntoView)==null||V.call(O,{block:"nearest"})}),A.dispose},[l,u,a.listboxState,a.activationTrigger,a.activeOptionIndex]),Fe(()=>c.registerOption(n,g),[g,n]);let y=j(A=>{if(o)return A.preventDefault();c.onChange(i),a.mode===0&&(c.closeListbox(),ft().nextFrame(()=>{var O;return(O=a.buttonRef.current)==null?void 0:O.focus({preventScroll:!0})}))}),h=j(()=>{if(o)return c.goToOption(Se.Nothing);c.goToOption(Se.Specific,n)}),_=uf(),x=j(A=>_.update(A)),S=j(A=>{_.wasMoved(A)&&(o||u||c.goToOption(Se.Specific,n,0))}),$=j(A=>{_.wasMoved(A)&&(o||u&&c.goToOption(Se.Nothing))}),F=Ee(()=>({active:u,selected:d,disabled:o}),[u,d,o]);return ht({ourProps:{id:n,ref:p,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":d,disabled:void 0,onClick:y,onFocus:h,onPointerEnter:x,onMouseEnter:x,onPointerMove:S,onMouseMove:S,onPointerLeave:$,onMouseLeave:$},theirProps:s,slot:F,defaultTag:Nf,name:"Listbox.Option"})}let Vf=ot(Rf),Bf=ot(Af),Uf=ot(Ff),Mf=ot(Df),Hf=ot(If),Kt=Object.assign(Vf,{Button:Bf,Label:Uf,Options:Mf,Option:Hf});function jf(e=0){let[t,r]=te(e),n=jo(),o=lt(c=>{n.current&&r(u=>u|c)},[t,n]),i=lt(c=>!!(t&c),[t]),s=lt(c=>{n.current&&r(u=>u&~c)},[r,n]),a=lt(c=>{n.current&&r(u=>u^c)},[r]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}function zf(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Tn(e,...t){e&&t.length>0&&e.classList.add(...t)}function Rn(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Wf(e,t){let r=ft();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[i,s]=[n,o].map(c=>{let[u=0]=c.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,l)=>l-d);return u}),a=i+s;if(a!==0){r.group(u=>{u.setTimeout(()=>{t(),u.dispose()},a),u.addEventListener(e,"transitionrun",d=>{d.target===d.currentTarget&&u.dispose()})});let c=r.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),c())})}else t();return r.add(()=>t()),r.dispose}function qf(e,t,r,n){let o=r?"enter":"leave",i=ft(),s=n!==void 0?zf(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=ye(o,{enter:()=>t.enter,leave:()=>t.leave}),c=ye(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=ye(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Rn(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Tn(e,...t.base,...a,...u),i.nextFrame(()=>{Rn(e,...t.base,...a,...u),Tn(e,...t.base,...a,...c),Wf(e,()=>(Rn(e,...t.base,...a),Tn(e,...t.base,...t.entered),s()))}),i.dispose}function Gf({immediate:e,container:t,direction:r,classes:n,onStart:o,onStop:i}){let s=jo(),a=Lt(),c=Ge(r);Fe(()=>{e&&(c.current="enter")},[e]),Fe(()=>{let u=ft();a.add(u.dispose);let d=t.current;if(d&&c.current!=="idle"&&s.current)return u.dispose(),o.current(c.current),u.add(qf(d,n.current,c.current==="enter",()=>{u.dispose(),i.current(c.current)})),u.dispose},[r])}function at(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let ln=rt(null);ln.displayName="TransitionContext";var Kf=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Kf||{});function Jf(){let e=$e(ln);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Xf(){let e=$e(cn);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let cn=rt(null);cn.displayName="NestingContext";function un(e){return"children"in e?un(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function el(e,t){let r=Ge(e),n=z([]),o=jo(),i=Lt(),s=j((g,p=ut.Hidden)=>{let y=n.current.findIndex(({el:h})=>h===g);y!==-1&&(ye(p,{[ut.Unmount](){n.current.splice(y,1)},[ut.Hidden](){n.current[y].state="hidden"}}),i.microTask(()=>{var h;!un(n)&&o.current&&((h=r.current)==null||h.call(r))}))}),a=j(g=>{let p=n.current.find(({el:y})=>y===g);return p?p.state!=="visible"&&(p.state="visible"):n.current.push({el:g,state:"visible"}),()=>s(g,ut.Unmount)}),c=z([]),u=z(Promise.resolve()),d=z({enter:[],leave:[],idle:[]}),l=j((g,p,y)=>{c.current.splice(0),t&&(t.chains.current[p]=t.chains.current[p].filter(([h])=>h!==g)),t==null||t.chains.current[p].push([g,new Promise(h=>{c.current.push(h)})]),t==null||t.chains.current[p].push([g,new Promise(h=>{Promise.all(d.current[p].map(([_,x])=>x)).then(()=>h())})]),p==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(p)):y(p)}),v=j((g,p,y)=>{Promise.all(d.current[p].splice(0).map(([h,_])=>_)).then(()=>{var h;(h=c.current.shift())==null||h()}).then(()=>y(p))});return Ee(()=>({children:n,register:a,unregister:s,onStart:l,onStop:v,wait:u,chains:d}),[a,s,n,l,v,d,u])}function Yf(){}let Qf=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function rs(e){var t;let r={};for(let n of Qf)r[n]=(t=e[n])!=null?t:Yf;return r}function Zf(e){let t=z(rs(e));return re(()=>{t.current=rs(e)},[e]),t}let ep="div",tl=Nr.RenderStrategy;function tp(e,t){var r,n;let{beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a,enter:c,enterFrom:u,enterTo:d,entered:l,leave:v,leaveFrom:g,leaveTo:p,...y}=e,h=z(null),_=kt(h,t),x=(r=y.unmount)==null||r?ut.Unmount:ut.Hidden,{show:S,appear:$,initial:F}=Jf(),[A,O]=te(S?"visible":"hidden"),V=Xf(),{register:U,unregister:H}=V;re(()=>U(h),[U,h]),re(()=>{if(x===ut.Hidden&&h.current){if(S&&A!=="visible"){O("visible");return}return ye(A,{hidden:()=>H(h),visible:()=>U(h)})}},[A,h,U,H,S,x]);let Ue=Ge({base:at(y.className),enter:at(c),enterFrom:at(u),enterTo:at(d),entered:at(l),leave:at(v),leaveFrom:at(g),leaveTo:at(p)}),D=Zf({beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a}),M=Bo();re(()=>{if(M&&A==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,A,M]);let ne=F&&!$,le=$&&S&&F,be=!M||ne?"idle":S?"enter":"leave",se=jf(0),Je=j(N=>ye(N,{enter:()=>{se.addFlag(Oe.Opening),D.current.beforeEnter()},leave:()=>{se.addFlag(Oe.Closing),D.current.beforeLeave()},idle:()=>{}})),Xe=j(N=>ye(N,{enter:()=>{se.removeFlag(Oe.Opening),D.current.afterEnter()},leave:()=>{se.removeFlag(Oe.Closing),D.current.afterLeave()},idle:()=>{}})),De=el(()=>{O("hidden"),H(h)},V),it=z(!1);Gf({immediate:le,container:h,classes:Ue,direction:be,onStart:Ge(N=>{it.current=!0,De.onStart(h,N,Je)}),onStop:Ge(N=>{it.current=!1,De.onStop(h,N,Xe),N==="leave"&&!un(De)&&(O("hidden"),H(h))})});let we=y,Ut={ref:_};return le?we={...we,className:Dr(y.className,...Ue.current.enter,...Ue.current.enterFrom)}:it.current&&(we.className=Dr(y.className,(n=h.current)==null?void 0:n.className),we.className===""&&delete we.className),L.createElement(cn.Provider,{value:De},L.createElement(Xa,{value:ye(A,{visible:Oe.Open,hidden:Oe.Closed})|se.flags},ht({ourProps:Ut,theirProps:we,defaultTag:ep,features:tl,visible:A==="visible",name:"Transition.Child"})))}function rp(e,t){let{show:r,appear:n=!1,unmount:o=!0,...i}=e,s=z(null),a=kt(s,t);Bo();let c=Ho();if(r===void 0&&c!==null&&(r=(c&Oe.Open)===Oe.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=te(r?"visible":"hidden"),l=el(()=>{d("hidden")}),[v,g]=te(!0),p=z([r]);Fe(()=>{v!==!1&&p.current[p.current.length-1]!==r&&(p.current.push(r),g(!1))},[p,r]);let y=Ee(()=>({show:r,appear:n,initial:v}),[r,n,v]);re(()=>{if(r)d("visible");else if(!un(l))d("hidden");else{let S=s.current;if(!S)return;let $=S.getBoundingClientRect();$.x===0&&$.y===0&&$.width===0&&$.height===0&&d("hidden")}},[r,l]);let h={unmount:o},_=j(()=>{var S;v&&g(!1),(S=e.beforeEnter)==null||S.call(e)}),x=j(()=>{var S;v&&g(!1),(S=e.beforeLeave)==null||S.call(e)});return L.createElement(cn.Provider,{value:l},L.createElement(ln.Provider,{value:y},ht({ourProps:{...h,as:ee,children:L.createElement(rl,{ref:a,...h,...i,beforeEnter:_,beforeLeave:x})},theirProps:{},defaultTag:ee,features:tl,visible:u==="visible",name:"Transition"})))}function np(e,t){let r=$e(ln)!==null,n=Ho()!==null;return L.createElement(L.Fragment,null,!r&&n?L.createElement(Xn,{ref:t,...e}):L.createElement(rl,{ref:t,...e}))}let Xn=ot(rp),rl=ot(tp),op=ot(np),ip=Object.assign(Xn,{Child:op,Root:Xn});const sp=Ke(Kt.Button)`
|
|
29
|
+
${()=>({position:"relative",minHeight:"2.25rem",width:"100%",cursor:"pointer",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.5rem",textAlign:"left",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / 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), 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-inset":"inset",":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)"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"},"@media (min-width: 768px)":{paddingTop:"0.375rem",paddingBottom:"0.375rem"}})}
|
|
30
|
+
|
|
31
|
+
${({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)"}}}
|
|
32
|
+
`,ap=Ke(Kt.Label)`
|
|
33
|
+
${({variant:e})=>e==="sm"?{position:"absolute",zIndex:"50",marginLeft:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingLeft:"0.25rem",paddingRight:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}}
|
|
34
|
+
`;function ns(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function os(e,t,r){var n=[],o=Yr(e,n,r);return n.length<2?r:o+t(n)}var lp=function(t){var r=bo(t);r.sheet.speedy=function(a){this.isSpeedy=a},r.compat=!0;var n=function(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];var l=bt(u,r.registered,void 0);return Qr(r,l,!1),r.key+"-"+l.name},o=function(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];var l=bt(u,r.registered),v="animation-"+l.name;return ns(r,{name:l.name,styles:"@keyframes "+v+"{"+l.styles+"}"}),v},i=function(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];var l=bt(u,r.registered);ns(r,l)},s=function(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];return os(r.registered,n,cp(u))};return{css:n,cx:s,injectGlobal:i,keyframes:o,hydrate:function(c){c.forEach(function(u){r.inserted[u]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Yr.bind(null,r.registered),merge:os.bind(null,r.registered,n)}},cp=function e(t){for(var r="",n=0;n<t.length;n++){var o=t[n];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else{i="";for(var s in o)o[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=o}i&&(r&&(r+=" "),r+=i)}}return r},nl=lp({key:"css"}),On=nl.cx,An=nl.css;function up({title:e,titleId:t,...r},n){return X("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?X("title",{id:t},e):null,X("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const dp=nt(up);function fp({title:e,titleId:t,...r},n){return X("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?X("title",{id:t},e):null,X("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))}const pp=nt(fp),qo=nt(({inputLabel:e,items:t,value:r,className:n,onChange:o,error:i,helperText:s,variant:a},c)=>J("div",{className:n,children:[E(Kt,{value:r||"",onChange:d=>{o(d)},children:({open:d})=>{var l;return J(ee,{children:[E(ap,{variant:a,children:e}),J("div",{css:{position:"relative",marginTop:"0.5rem"},children:[J(sp,{as:"button",ref:c,hasError:!!i,children:[E("span",{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"0.875rem",lineHeight:"1.25rem"},children:((l=t.find(v=>v.key==r))==null?void 0:l.displayValue)??"Select"}),E("span",{css:{pointerEvents:"none",position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"flex",alignItems:"center",paddingRight:"0.75rem"},children:E(dp,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},"aria-hidden":"true"})})]}),E(ip,{show:d,leave:On(An({transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)",transitionDuration:"100ms"})),leaveFrom:On(An({opacity:"1"})),leaveTo:On(An({opacity:"0"})),children:E(Kt.Options,{css:{position:"absolute",zIndex:"10",marginTop:"0.25rem",maxHeight:"15rem",width:"100%",overflow:"auto",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"1rem",lineHeight:"1.5rem","--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-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}},children:t.map(v=>J(Kt.Option,{css:{position:"relative",cursor:"default",userSelect:"none",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.25rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",'&[data-headlessui-state~="active"]':{backgroundColor:"var(--fl-color-primary-600)","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},':where([data-headlessui-state~="active"]) &':{backgroundColor:"var(--fl-color-primary-600)","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}},value:v.key,children:[E("span",{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",'&[data-headlessui-state~="selected"]':{fontWeight:"600"},':where([data-headlessui-state~="selected"]) &':{fontWeight:"600"}},children:v.displayValue}),E("span",{css:{position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"none",alignItems:"center",paddingRight:"0.75rem",color:"var(--fl-color-primary-600)",'&[data-headlessui-state~="selected"]':{display:"flex"},':where([data-headlessui-state~="selected"]) &':{display:"flex"},'&[data-headlessui-state~="active"]':{"--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},':where([data-headlessui-state~="active"]) &':{"--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}},children:E(pp,{css:{height:"1.25rem",width:"1.25rem"},"aria-hidden":"true"})})]},v.key))})})]})]})}}),(i==null?void 0:i.message)&&E("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:i.message}),s&&E("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:s})]})),hp=[{key:"goCardless",displayValue:"GoCardless"},{key:"westpac",displayValue:"Westpac"}],mp=()=>{const[e,t]=te(),[r,n]=te(!1),[o,i]=te(),{control:s,handleSubmit:a,watch:c}=$o({mode:"onChange",defaultValues:{source:"goCardless"}});re(()=>{const d=c(()=>{t(void 0),i(void 0)});return()=>d.unsubscribe()},[c]);const u=async d=>{i(void 0),n(!0);try{const l=await Nd(d);t(l),n(!1)}catch(l){if(n(!1),ie.isAxiosError(l)){const v=await Ma(l);l.status===401?i("Authenticated session expired. Please refresh the page to start a new session."):i(`Something went wrong. Please ensure the uploaded file is valid and in the correct format. CorrelationId: ${v.correlationId??"Unknown"}`)}}};return J(ee,{children:[E("div",{css:{marginBottom:"1.25rem"},children:E("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Create Catch-E Receipt Batch"})}),J("div",{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))",borderStyle:"dashed","--tw-divide-opacity":"1",borderColor:"rgb(156 163 175 / var(--tw-divide-opacity))"}},children:[J("form",{onSubmit:a(u),children:[E(je,{name:"source",control:s,render:({field:d})=>E(qo,{inputLabel:"Source",css:{marginBottom:"1rem"},items:hp,...d})}),E(je,{name:"transactionsFile",control:s,rules:{validate:{validFile:d=>d.name.split(".")[1]==="csv"||"File must be a '.csv'"},required:"Please upload a csv"},render:({field:d,fieldState:l})=>E(Vc,{inputLabel:"Transactions",...d,error:l.error})}),E("div",{css:{marginTop:"2rem"},children:r?E(za,{}):E(sn,{type:"submit",children:"Submit"})})]}),J("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"},children:[o&&E("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:o}),e&&E(ja,{blob:e,fileName:"receipt_batch.zip",children:"Download"})]})]})]})},gp=Ke.button`
|
|
35
|
+
${{whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600"}}
|
|
36
|
+
|
|
37
|
+
${({isCurrent:e})=>e?{borderColor:"var(--fl-color-primary-600)",color:"var(--fl-color-primary-700)"}:{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))"}}}
|
|
38
|
+
`,yp=({tabs:e,currentTab:t,onChange:r,className:n})=>E("div",{className:n,children:E("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))"},children:E("nav",{css:{marginBottom:"-1px",display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2rem * var(--tw-space-x-reverse))",marginLeft:"calc(2rem * calc(1 - var(--tw-space-x-reverse)))"}},"aria-label":"Tabs",children:e.map(o=>E(gp,{type:"button",onClick:()=>r(o.id),"aria-current":o.id===t?"page":void 0,isCurrent:o.id===t,children:o.displayName},o.displayName))})})}),vp=({className:e,inputLabel:t,items:r,value:n,onChange:o})=>{const i=s=>{const a=s.target;o(a.id)};return J("div",{className:e,children:[E("label",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:t}),J("fieldset",{css:{marginTop:"0.25rem"},children:[E("legend",{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:t}),E("div",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":"0",marginTop:"calc(1rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(1rem * var(--tw-space-y-reverse))"},"@media (min-width: 640px)":{display:"flex",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2.5rem * var(--tw-space-x-reverse))",marginLeft:"calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))","--tw-space-y-reverse":"0",marginTop:"calc(0px * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(0px * var(--tw-space-y-reverse))"}}},children:r.map(s=>J("div",{css:{display:"flex",alignItems:"center"},children:[E("input",{id:s.key,name:s.key,type:"radio",checked:n===s.key,onClick:i,css:{height:"1rem",width:"1rem","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))",color:"var(--fl-color-primary-600)",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}}),E("label",{htmlFor:s.key,css:{marginLeft:"0.75rem",display:"block",fontSize:"0.875rem",lineHeight:"1.5rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:s.displayValue})]},s.key))})]})]})},bp=Ke.input`
|
|
39
|
+
${()=>({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"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"}})}
|
|
40
|
+
|
|
41
|
+
${({prefix:e})=>e?{paddingLeft:"1.75rem"}:{paddingLeft:"0.75rem"}}
|
|
42
|
+
|
|
43
|
+
${({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)"}}}
|
|
44
|
+
`,_p=Ke.div`
|
|
45
|
+
${({isHidden:e})=>e?{display:"none"}:{display:"block"}}
|
|
46
|
+
`,zt=nt(({label:e,id:t,type:r,placeholder:n,value:o,className:i,onChange:s,onBlur:a,error:c,isHidden:u,min:d,max:l},v)=>{const g=y=>{y.target instanceof HTMLInputElement&&s(y.target.value.trim())},p=y=>{y.target instanceof HTMLInputElement&&a&&a(y.target.value.trim())};return J(_p,{isHidden:u,className:i,children:[E("label",{htmlFor:t,css:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e}),E("div",{css:{marginTop:"0.5rem"},children:E(bp,{type:r,value:o,name:t,id:t,placeholder:n,onChange:g,onBlur:p,hasError:!!c,ref:v,min:d,max:l})}),(c==null?void 0:c.message)&&E("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:c.message})]})}),wp=[{key:"GroupCode",displayValue:"Group code"},{key:"ClientId",displayValue:"Client Id"}],xp=[{key:"itc",displayValue:"Net ITC"},{key:"lcc",displayValue:"Luxury Car Charge"}],Sp=(e,t)=>e&&t.endDate?new Date(e)<=new Date(t.endDate)||"Start must be before End":!0,Ep=(e,t)=>e&&t.startDate?new Date(e)>=new Date(t.startDate)||"End must be after Start":!0,kp=()=>{const[e,t]=te(),[r,n]=te(!1),[o,i]=te(),{control:s,handleSubmit:a,watch:c}=$o({mode:"onBlur",defaultValues:{entityType:"GroupCode"}});re(()=>{const l=c(()=>{t(void 0),i(void 0)});return()=>l.unsubscribe()},[c]);const u=()=>c("entityType"),d=async l=>{i(void 0),n(!0);try{const v=await Id(l);t({blob:v,inputs:l}),n(!1)}catch(v){if(n(!1),ie.isAxiosError(v)){const g=await Ma(v);v.status===401?i("Authenticated session expired. Please refresh the page to start a new session."):i(`Something went wrong. Please ensure the Group Code or Client Id provided is valid.. CorrelationId: ${g.correlationId??"Unknown"}`)}}};return J(ee,{children:[E("div",{css:{marginBottom:"1.25rem"},children:E("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Generate CatchE Report"})}),J("div",{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))",borderStyle:"dashed","--tw-divide-opacity":"1",borderColor:"rgb(156 163 175 / var(--tw-divide-opacity))"}},children:[J("form",{onSubmit:a(d),children:[J("div",{css:{marginBottom:"1rem",display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"1rem"},children:[E(je,{name:"report",control:s,rules:{required:"Report is required"},render:({field:l,fieldState:v})=>E(qo,{inputLabel:"Report",css:{gridColumn:"span 2 / span 2"},items:xp,error:v.error,...l})}),E(je,{name:"startDate",control:s,rules:{required:"Start Date is required",validate:{validateStartDate:Sp}},render:({field:l,fieldState:v})=>E(zt,{label:"Start Date",id:"startDate",css:{gridColumn:"span 1 / span 1"},type:"date",error:v.error,...l})}),E(je,{name:"endDate",control:s,rules:{required:"End Date is required",validate:{validateEndDate:Ep}},render:({field:l,fieldState:v})=>E(zt,{label:"End Date",id:"endDate",css:{gridColumn:"span 1 / span 1"},type:"date",error:v.error,...l})})]}),E(je,{name:"entityType",control:s,render:({field:l})=>E(vp,{inputLabel:"Identifier type",css:{marginBottom:"1rem"},items:wp,...l})}),E(je,{name:"groupCode",control:s,rules:{validate:{requiresGroupCode:l=>u()!=="GroupCode"||!!l||"Group Code is required",validGroupCode:l=>u()!=="GroupCode"||/^[A-Z0-9]+$/.test(l)||"Group Code is not valid"}},render:({field:l,fieldState:v})=>E(zt,{label:"Group code",id:"groupCode",type:"text",isHidden:u()!=="GroupCode",error:v.error,...l})}),E(je,{name:"clientId",control:s,rules:{validate:{requiresClientId:l=>u()!=="ClientId"||!!l||"Client Id is required"}},render:({field:l,fieldState:v})=>E(zt,{label:"Client Id",id:"clientId",type:"number",isHidden:u()!=="ClientId",error:v.error,...l})}),E("div",{css:{marginTop:"1rem"},children:r?E(za,{}):E(sn,{type:"submit",children:"Submit"})})]}),J("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"},children:[o&&E("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:o}),(e==null?void 0:e.blob)&&E(ja,{blob:e.blob,fileName:`${e.inputs.entityType==="GroupCode"?e.inputs.groupCode:e.inputs.clientId}_${e.inputs.report}.csv`,children:"Download"})]})]})]})},Cp=e=>{const[t,r]=te(e),n=z(null),o=()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{r(s=>s-1)},1e3)};return re(()=>(t>0&&n.current?n.current=setTimeout(()=>{r(s=>s-1)},1e3):n.current&&clearTimeout(n.current),()=>{n.current&&clearTimeout(n.current)}),[t]),{timeLeft:t,resetTimer:s=>{n.current&&clearTimeout(n.current),r(s),n.current=null},startTimer:o}},Tp=[{displayValue:"Clients",key:"clients"},{displayValue:"Drivers",key:"drivers"},{displayValue:"Contract Budgets",key:"contractBudgets"},{displayValue:"Invoice Items",key:"invoiceItems"},{displayValue:"Deleted Invoice Items",key:"deletedInvoiceItems"},{displayValue:"Vehicle Contracts",key:"vehicleContracts"}],Rp=()=>{const e=new Date().toISOString().split("T")[0],t=Ha(-14),r=30,[n,o]=te(),[i,s]=te(!1),{timeLeft:a,resetTimer:c,startTimer:u}=Cp(r),{control:d,handleSubmit:l}=$o({mode:"onBlur",defaultValues:{ingestEndPoints:"clients"}});re(()=>{a===0&&(s(!1),c(r))},[a]);const v=async g=>{o(void 0),s(!0),u();try{switch(g.ingestEndPoints){case"clients":await Vd(g.startDate);break;case"drivers":await Bd(g.startDate);break;case"contractBudgets":await Ud(g.startDate);break;case"invoiceItems":await Md(g.startDate);break;case"deletedInvoiceItems":await Hd(g.startDate);break;case"vehicleContracts":await jd(g.startDate);break}}catch(p){if(s(!1),c(r),ie.isAxiosError(p)){const y=Fd(p);p.status===401?o("Authenticated session expired. Please refresh the page to start a new session."):o(`Something went wrong. Please wait for some time and try again.
|
|
47
|
+
CorrelationId: ${(y==null?void 0:y.correlationId)??"Unknown"}`)}}};return J(ee,{children:[E("div",{css:{marginBottom:"1.25rem"},children:E("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Data Ingestion"})}),J("div",{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))",borderStyle:"dashed","--tw-divide-opacity":"1",borderColor:"rgb(156 163 175 / var(--tw-divide-opacity))"}},children:[J("form",{onSubmit:l(v),children:[J("div",{css:{marginBottom:"1rem",display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"1rem"},children:[E(je,{name:"ingestEndPoints",control:d,render:({field:g})=>E(qo,{inputLabel:"",css:{gridColumn:"span 2 / span 2"},items:Tp,...g})}),E(je,{name:"startDate",control:d,rules:{required:"Start Date is required"},render:({field:g,fieldState:p})=>E(zt,{label:"Start Date",id:"startDate",css:{gridColumn:"span 1 / span 1"},type:"date",min:t,max:e,error:p.error,...g})})]}),i&&J("p",{css:{fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:["Ingestion has started. Please wait ",a," before starting another ingestion."]}),E("div",{css:{marginTop:"1rem"},children:E(sn,{type:"submit",disabled:i,children:"Start"})})]}),E("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"},children:n&&E("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:n})})]})]})},is=[{id:"receiptBatch",displayName:"Receipt Batch"},{id:"catchEReport",displayName:"CatchE Report"},{id:"dataIngestion",displayName:"Data Ingestion"}],Op=e=>{switch(e){case"receiptBatch":return E(mp,{});case"catchEReport":return E(kp,{});case"dataIngestion":return E(Rp,{});default:return E(ee,{})}},Ap=()=>{const[e,t]=te(is[0].id),r=Op(e);return J("div",{css:{maxWidth:"28rem",borderRadius:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","--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, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},children:[E("div",{css:{paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.25rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"}},children:E(yp,{tabs:is,currentTab:e,onChange:t})}),E("div",{css:{paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","@media (min-width: 640px)":{padding:"1.5rem"}},children:r})]})},Pp=(e,t)=>{const[r,n]=te();return re(()=>{if(t&&t.current){const i=s=>{document.getElementsByTagName(e).length>0?s():requestAnimationFrame(()=>i(s))};i(()=>{n(bo({container:t.current,key:e}))})}},[e,t]),{EmotionProvider:({children:i})=>r?E(Rc,{value:r,children:i}):E(ee,{})}},Fp=Co({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}),$p=Co`
|
|
18
48
|
:host {
|
|
19
49
|
--fl-color-primary-900: #000563;
|
|
20
50
|
--fl-color-primary-800: #031495;
|
|
@@ -30,6 +60,6 @@
|
|
|
30
60
|
|
|
31
61
|
font-family: Inter, 'Source Sans Pro', sans-serif;
|
|
32
62
|
}
|
|
33
|
-
`,
|
|
63
|
+
`,Lp=()=>J(ee,{children:[E(gn,{styles:Co`
|
|
34
64
|
${{"*, ::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]":{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"}}}
|
|
35
|
-
`}),
|
|
65
|
+
`}),E(gn,{styles:Fp}),E(gn,{styles:$p})]}),Dp=e=>{const t=z(null),{EmotionProvider:r}=Pp("salpac-finops",t);return re(()=>{Dd(e["backend-url"],e["access-token"])},[e]),J(ee,{children:[E("head",{ref:t}),J(r,{children:[E(Lp,{}),E("body",{children:E(Ap,{})})]})]})};bl(Dp,"salpac-finops",["backend-url","access-token"],{shadow:!0});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flarehr/salpac-finops-admin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.481",
|
|
4
4
|
"description": "Salpac FinOps Admin",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
"dev": "vite",
|
|
17
17
|
"build": "tsc && vite build",
|
|
18
18
|
"preview": "vite preview",
|
|
19
|
-
"test": "
|
|
20
|
-
"test:watch": "vitest",
|
|
19
|
+
"test": "jest",
|
|
21
20
|
"analyze": "npx vite-bundle-visualizer",
|
|
22
21
|
"lint": "eslint src/**/*.{js,jsx,ts,tsx}",
|
|
23
22
|
"lint:fix": "eslint src/**/*.{js,jsx,ts,tsx} --fix",
|
|
@@ -46,23 +45,27 @@
|
|
|
46
45
|
"@testing-library/jest-dom": "^6.4.6",
|
|
47
46
|
"@testing-library/preact": "^3.2.4",
|
|
48
47
|
"@types/axios": "^0.14.0",
|
|
48
|
+
"@types/jest": "^29.5.14",
|
|
49
49
|
"@types/preact-custom-element": "^4.0.4",
|
|
50
50
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
51
51
|
"@typescript-eslint/parser": "^6.21.0",
|
|
52
52
|
"babel-plugin-macros": "^3.1.0",
|
|
53
|
+
"babel-plugin-twin": "^1.1.0",
|
|
53
54
|
"eslint": "^8.57.0",
|
|
54
55
|
"eslint-config-preact": "^1.4.0",
|
|
55
56
|
"eslint-config-prettier": "^9.1.0",
|
|
56
57
|
"eslint-plugin-jest": "^27.9.0",
|
|
57
58
|
"eslint-plugin-prettier": "^5.1.3",
|
|
58
59
|
"husky": "^8.0.3",
|
|
60
|
+
"jest": "^29.7.0",
|
|
61
|
+
"jest-preset-preact": "^4.1.1",
|
|
59
62
|
"jsdom": "^24.1.0",
|
|
60
63
|
"prettier": "^3.3.2",
|
|
61
64
|
"tailwindcss": "^3.4.4",
|
|
65
|
+
"ts-jest": "^29.2.5",
|
|
62
66
|
"twin.macro": "^3.4.1",
|
|
63
67
|
"typescript": "^5.5.2",
|
|
64
68
|
"vite": "^5.3.1",
|
|
65
|
-
"vite-plugin-svgr": "^4.2.0"
|
|
66
|
-
"vitest": "^1.6.0"
|
|
69
|
+
"vite-plugin-svgr": "^4.2.0"
|
|
67
70
|
}
|
|
68
71
|
}
|