@flarehr/promoted-benefits-admin 1.4.53550 → 1.4.53817
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/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError("Cannot "+n),__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,r)=>(__accessCheck(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),__privateMethod=(e,t,n)=>(__accessCheck(e,t,"access private method"),n),__privateWrapper=(e,t,n,r)=>({set _(r){__privateSet(e,t,r,n)},get _(){return __privateGet(e,t,r)}});!function(){"use strict";var e,t,n,r,i,o,s,a,l,u,c,d,h,p,f,m,v,g,y,_,b,w,x,S,k,E,P,T,A,C,R,O,F,M,L,D,V,I,j,B,N,U,G,W,H,$,z,q,K,Y,Q,X,Z,J,ee,te,ne,re,ie,oe,se,ae,le,ue,ce,de,he,pe,fe,me,ve,ge,ye,_e,be,we,xe,Se,ke,Ee,Pe,Te,Ae,Ce={},Re=[],Oe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Fe=Array.isArray;function Me(e,t){for(var n in t)e[n]=t[n];return e}function Le(e){var t=e.parentNode;t&&t.removeChild(e)}function De(e,t,n){var r,i,o,s={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?ye.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return Ve(e,s,r,i,null)}function Ve(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++be:i,__i:-1,__u:0};return null==i&&null!=_e.vnode&&_e.vnode(o),o}function Ie(){return{current:null}}function je(e){return e.children}function Be(e,t){this.props=e,this.context=t}function Ne(e,t){if(null==t)return e.__?Ne(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Ne(e):null}function Ue(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Ue(e)}}function Ge(e){(!e.__d&&(e.__d=!0)&&we.push(e)&&!We.__r++||xe!==_e.debounceRendering)&&((xe=_e.debounceRendering)||Se)(We)}function We(){var e,t,n,r,i,o,s,a;for(we.sort(ke);e=we.shift();)e.__d&&(t=we.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=Me({},i)).__v=i.__v+1,_e.vnode&&_e.vnode(r),Xe(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,null==o?Ne(i):o,!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,Ze(s,r,a),r.__e!=o&&Ue(r)),we.length>t&&we.sort(ke));We.__r=0}function He(e,t,n,r,i,o,s,a,l,u,c){var d,h,p,f,m,v=r&&r.__k||Re,g=t.length;for(n.__d=l,function(e,t,n){var r,i,o,s,a,l=t.length,u=n.length,c=u,d=0;for(e.__k=[],r=0;r<l;r++)s=r+d,null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?Ve(null,i,null,null,null):Fe(i)?Ve(je,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?Ve(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,a=qe(i,n,s,c),i.__i=a,o=null,-1!==a&&(c--,(o=n[a])&&(o.__u|=131072)),null==o||null===o.__v?(-1==a&&d--,"function"!=typeof i.type&&(i.__u|=65536)):a!==s&&(a==s-1?d--:a==s+1?d++:a>s?c>l-s?d+=a-s:d--:a<s&&(a==s-d?d-=a-s:d++),a!==r+d&&(i.__u|=65536))):(o=n[s])&&null==o.key&&o.__e&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=Ne(o)),et(o,o,!1),n[s]=null,c--);if(c)for(r=0;r<u;r++)null!=(o=n[r])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=Ne(o)),et(o,o))}(n,t,v),l=n.__d,d=0;d<g;d++)null!=(p=n.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(h=-1===p.__i?Ce:v[p.__i]||Ce,p.__i=d,Xe(e,p,h,i,o,s,a,l,u,c),f=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&Je(h.ref,null,p),c.push(p.ref,p.__c||f,p)),null==m&&null!=f&&(m=f),65536&p.__u||h.__k===p.__k?l=$e(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:f&&(l=f.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=m}function $e(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=$e(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Ne(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function ze(e,t){return t=t||[],null==e||"boolean"==typeof e||(Fe(e)?e.some((function(e){ze(e,t)})):t.push(e)),t}function qe(e,t,n,r){var i=e.key,o=e.type,s=n-1,a=n+1,l=t[n];if(null===l||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if(r>(null==l||131072&l.__u?0:1))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a++}}return-1}function Ke(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||Oe.test(t)?n:n+"px"}function Ye(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ke(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ke(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Ee,e.addEventListener(t,o?Te:Pe,o)):e.removeEventListener(t,o?Te:Pe,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(s){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function Qe(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=Ee++;else if(t.t<n.u)return;return n(_e.event?_e.event(t):t)}}}function Xe(e,t,n,r,i,o,s,a,l,u){var c,d,h,p,f,m,v,g,y,_,b,w,x,S,k,E,P=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(c=_e.__b)&&c(t);e:if("function"==typeof P)try{if(g=t.props,y="prototype"in P&&P.prototype.render,_=(c=P.contextType)&&r[c.__c],b=c?_?_.props.value:c.__:r,n.__c?v=(d=t.__c=n.__c).__=d.__E:(y?t.__c=d=new P(g,b):(t.__c=d=new Be(g,b),d.constructor=P,d.render=tt),_&&_.sub(d),d.props=g,d.state||(d.state={}),d.context=b,d.__n=r,h=d.__d=!0,d.__h=[],d._sb=[]),y&&null==d.__s&&(d.__s=d.state),y&&null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Me({},d.__s)),Me(d.__s,P.getDerivedStateFromProps(g,d.__s))),p=d.props,f=d.state,d.__v=t,h)y&&null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==P.getDerivedStateFromProps&&g!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,b)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=g,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),w=0;w<d._sb.length;w++)d.__h.push(d._sb[w]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,b),y&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,f,m)}))}if(d.context=b,d.props=g,d.__P=e,d.__e=!1,x=_e.__r,S=0,y){for(d.state=d.__s,d.__d=!1,x&&x(t),c=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else do{d.__d=!1,x&&x(t),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++S<25);d.state=d.__s,null!=d.getChildContext&&(r=Me(Me({},r),d.getChildContext())),y&&!h&&null!=d.getSnapshotBeforeUpdate&&(m=d.getSnapshotBeforeUpdate(p,f)),He(e,Fe(E=null!=c&&c.type===je&&null==c.key?c.props.children:c)?E:[E],t,n,r,i,o,s,a,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),v&&(d.__E=d.__=null)}catch(T){if(t.__v=null,l||null!=o){for(t.__u|=l?160:32;a&&8===a.nodeType&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;_e.__e(T,t,n)}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,o,s,a,l){var u,c,d,h,p,f,m,v=n.props,g=t.props,y=t.type;if("svg"===y?i="http://www.w3.org/2000/svg":"math"===y?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=o)for(u=0;u<o.length;u++)if((p=o[u])&&"setAttribute"in p==!!y&&(y?p.localName===y:3===p.nodeType)){e=p,o[u]=null;break}if(null==e){if(null===y)return document.createTextNode(g);e=document.createElementNS(i,y,g.is&&g),o=null,a=!1}if(null===y)v===g||a&&e.data===g||(e.data=g);else{if(o=o&&ye.call(e.childNodes),v=n.props||Ce,!a&&null!=o)for(v={},u=0;u<e.attributes.length;u++)v[(p=e.attributes[u]).name]=p.value;for(u in v)if(p=v[u],"children"==u);else if("dangerouslySetInnerHTML"==u)d=p;else if("key"!==u&&!(u in g)){if("value"==u&&"defaultValue"in g||"checked"==u&&"defaultChecked"in g)continue;Ye(e,u,null,p,i)}for(u in g)p=g[u],"children"==u?h=p:"dangerouslySetInnerHTML"==u?c=p:"value"==u?f=p:"checked"==u?m=p:"key"===u||a&&"function"!=typeof p||v[u]===p||Ye(e,u,p,v[u],i);if(c)a||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),He(e,Fe(h)?h:[h],t,n,r,"foreignObject"===y?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&Ne(n,0),a,l),null!=o)for(u=o.length;u--;)null!=o[u]&&Le(o[u]);a||(u="value",void 0!==f&&(f!==e[u]||"progress"===y&&!f||"option"===y&&f!==v[u])&&Ye(e,u,f,v[u],i),u="checked",void 0!==m&&m!==e[u]&&Ye(e,u,m,v[u],i))}return e}(n.__e,t,n,r,i,o,s,l,u);(c=_e.diffed)&&c(t)}function Ze(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Je(n[r],n[++r],n[++r]);_e.__c&&_e.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){_e.__e(n,t.__v)}}))}function Je(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(i){_e.__e(i,n)}}function et(e,t,n){var r,i;if(_e.unmount&&_e.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Je(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){_e.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&et(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||Le(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function tt(e,t,n){return this.constructor(e,n)}function nt(e,t,n){var r,i,o,s;_e.__&&_e.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,o=[],s=[],Xe(t,e=(!r&&n||t).__k=De(je,null,[e]),i||Ce,Ce,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?ye.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),Ze(o,e,s)}function rt(e,t){nt(e,t,rt)}function it(e,t,n){var r,i,o,s,a=Me({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==o?r=t[o]:"ref"==o?i=t[o]:a[o]=void 0===t[o]&&void 0!==s?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?ye.call(arguments,2):n),Ve(e.type,a,r||e.key,i||e.ref,null)}function ot(e,t){var n={__c:t="__cC"+Ae++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,Ge(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function st(){return(st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}ye=Re.slice,_e={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},be=0,Be.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Me({},this.state),"function"==typeof e&&(e=e(Me({},n),this.props)),e&&Me(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Ge(this))},Be.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ge(this))},Be.prototype.render=je,we=[],Se="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ke=function(e,t){return e.__v.__b-t.__v.__b},We.__r=0,Ee=0,Pe=Qe(!1),Te=Qe(!0),Ae=0;var at=["context","children"];function lt(e){return this.getChildContext=function(){return e.context},it(e.children,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,at))}function ut(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=De(lt,st({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],i={},o=0,s=t.attributes,a=t.childNodes;for(o=s.length;o--;)"slot"!==s[o].name&&(i[s[o].name]=s[o].value,i[ct(s[o].name)]=s[o].value);for(o=a.length;o--;){var l=e(a[o],null),u=a[o].slot;u?i[u]=De(pt,{name:u},l):r[o]=l}var c=n?De(pt,null,r):r;return De(n||t.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?rt:nt)(this._vdom,this._root)}function ct(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function dt(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[ct(e)]=n,this._vdom=it(this._vdom,r),nt(this._vdom,this._root)}}function ht(){nt(this._vdom=null,this._root)}function pt(e,t){var n=this;return De("slot",st({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}var ft=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(Gy){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),mt="-ms-",vt="-moz-",gt="-webkit-",yt="comm",_t="rule",bt="decl",wt="@keyframes",xt=Math.abs,St=String.fromCharCode,kt=Object.assign;function Et(e){return e.trim()}function Pt(e,t,n){return e.replace(t,n)}function Tt(e,t){return e.indexOf(t)}function At(e,t){return 0|e.charCodeAt(t)}function Ct(e,t,n){return e.slice(t,n)}function Rt(e){return e.length}function Ot(e){return e.length}function Ft(e,t){return t.push(e),e}var Mt=1,Lt=1,Dt=0,Vt=0,It=0,jt="";function Bt(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Mt,column:Lt,length:s,return:""}}function Nt(e,t){return kt(Bt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ut(){return It=Vt<Dt?At(jt,Vt++):0,Lt++,10===It&&(Lt=1,Mt++),It}function Gt(){return At(jt,Vt)}function Wt(){return Vt}function Ht(e,t){return Ct(jt,e,t)}function $t(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 zt(e){return Mt=Lt=1,Dt=Rt(jt=e),Vt=0,[]}function qt(e){return jt="",e}function Kt(e){return Et(Ht(Vt-1,Xt(91===e?e+2:40===e?e+1:e)))}function Yt(e){for(;(It=Gt())&&It<33;)Ut();return $t(e)>2||$t(It)>3?"":" "}function Qt(e,t){for(;--t&&Ut()&&!(It<48||It>102||It>57&&It<65||It>70&&It<97););return Ht(e,Wt()+(t<6&&32==Gt()&&32==Ut()))}function Xt(e){for(;Ut();)switch(It){case e:return Vt;case 34:case 39:34!==e&&39!==e&&Xt(It);break;case 40:41===e&&Xt(e);break;case 92:Ut()}return Vt}function Zt(e,t){for(;Ut()&&e+It!==57&&(e+It!==84||47!==Gt()););return"/*"+Ht(t,Vt-1)+"*"+St(47===e?e:Ut())}function Jt(e){for(;!$t(Gt());)Ut();return Ht(e,Vt)}function en(e){return qt(tn("",null,null,null,[""],e=zt(e),0,[0],e))}function tn(e,t,n,r,i,o,s,a,l){for(var u=0,c=0,d=s,h=0,p=0,f=0,m=1,v=1,g=1,y=0,_="",b=i,w=o,x=r,S=_;v;)switch(f=y,y=Ut()){case 40:if(108!=f&&58==At(S,d-1)){-1!=Tt(S+=Pt(Kt(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=Kt(y);break;case 9:case 10:case 13:case 32:S+=Yt(f);break;case 92:S+=Qt(Wt()-1,7);continue;case 47:switch(Gt()){case 42:case 47:Ft(rn(Zt(Ut(),Wt()),t,n),l);break;default:S+="/"}break;case 123*m:a[u++]=Rt(S)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==g&&(S=Pt(S,/\f/g,"")),p>0&&Rt(S)-d&&Ft(p>32?on(S+";",r,n,d-1):on(Pt(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Ft(x=nn(S,t,n,u,c,i,a,_,b=[],w=[],d),o),123===y)if(0===c)tn(S,t,x,x,b,o,d,a,w);else switch(99===h&&110===At(S,3)?100:h){case 100:case 108:case 109:case 115:tn(e,x,x,r&&Ft(nn(e,x,x,0,0,i,a,_,i,b=[],d),w),i,w,d,a,r?b:w);break;default:tn(S,x,x,x,[""],w,0,a,w)}}u=c=p=0,m=g=1,_=S="",d=s;break;case 58:d=1+Rt(S),p=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(It=Vt>0?At(jt,--Vt):0,Lt--,10===It&&(Lt=1,Mt--),It))continue;switch(S+=St(y),y*m){case 38:g=c>0?1:(S+="\f",-1);break;case 44:a[u++]=(Rt(S)-1)*g,g=1;break;case 64:45===Gt()&&(S+=Kt(Ut())),h=Gt(),c=d=Rt(_=S+=Jt(Wt())),y++;break;case 45:45===f&&2==Rt(S)&&(m=0)}}return o}function nn(e,t,n,r,i,o,s,a,l,u,c){for(var d=i-1,h=0===i?o:[""],p=Ot(h),f=0,m=0,v=0;f<r;++f)for(var g=0,y=Ct(e,d+1,d=xt(m=s[f])),_=e;g<p;++g)(_=Et(m>0?h[g]+" "+y:Pt(y,/&\f/g,h[g])))&&(l[v++]=_);return Bt(e,t,n,0===i?_t:a,l,u,c)}function rn(e,t,n){return Bt(e,t,n,yt,St(It),Ct(e,2,-2),0)}function on(e,t,n,r){return Bt(e,t,n,bt,Ct(e,0,r),Ct(e,r+1,-1),r)}function sn(e,t){for(var n="",r=Ot(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function an(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case bt:return e.return=e.return||e.value;case yt:return"";case wt:return e.return=e.value+"{"+sn(e.children,r)+"}";case _t:e.value=e.props.join(",")}return Rt(n=sn(e.children,r))?e.return=e.value+"{"+n+"}":""}function ln(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var un=function(e,t,n){for(var r=0,i=0;r=i,i=Gt(),38===r&&12===i&&(t[n]=1),!$t(i);)Ut();return Ht(e,Vt)},cn=function(e,t){return qt(function(e,t){var n=-1,r=44;do{switch($t(r)){case 0:38===r&&12===Gt()&&(t[n]=1),e[n]+=un(Vt-1,t,n);break;case 2:e[n]+=Kt(r);break;case 4:if(44===r){e[++n]=58===Gt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=St(r)}}while(r=Ut());return e}(zt(e),t))},dn=new WeakMap,hn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||dn.get(n))&&!r){dn.set(e,!0);for(var i=[],o=cn(t,i),s=n.props,a=0,l=0;a<o.length;a++)for(var u=0;u<s.length;u++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[u]):s[u]+" "+o[a]}}},pn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function fn(e,t){switch(function(e,t){return 45^At(e,0)?(((t<<2^At(e,0))<<2^At(e,1))<<2^At(e,2))<<2^At(e,3):0}(e,t)){case 5103:return gt+"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 gt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+vt+e+mt+e+e;case 6828:case 4268:return gt+e+mt+e+e;case 6165:return gt+e+mt+"flex-"+e+e;case 5187:return gt+e+Pt(e,/(\w+).+(:[^]+)/,gt+"box-$1$2"+mt+"flex-$1$2")+e;case 5443:return gt+e+mt+"flex-item-"+Pt(e,/flex-|-self/,"")+e;case 4675:return gt+e+mt+"flex-line-pack"+Pt(e,/align-content|flex-|-self/,"")+e;case 5548:return gt+e+mt+Pt(e,"shrink","negative")+e;case 5292:return gt+e+mt+Pt(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+Pt(e,"-grow","")+gt+e+mt+Pt(e,"grow","positive")+e;case 4554:return gt+Pt(e,/([^-])(transform)/g,"$1"+gt+"$2")+e;case 6187:return Pt(Pt(Pt(e,/(zoom-|grab)/,gt+"$1"),/(image-set)/,gt+"$1"),e,"")+e;case 5495:case 3959:return Pt(e,/(image-set\([^]*)/,gt+"$1$`$1");case 4968:return Pt(Pt(e,/(.+:)(flex-)?(.*)/,gt+"box-pack:$3"+mt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gt+e+e;case 4095:case 3583:case 4068:case 2532:return Pt(e,/(.+)-inline(.+)/,gt+"$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(Rt(e)-1-t>6)switch(At(e,t+1)){case 109:if(45!==At(e,t+4))break;case 102:return Pt(e,/(.+:)(.+)-([^]+)/,"$1"+gt+"$2-$3$1"+vt+(108==At(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Tt(e,"stretch")?fn(Pt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==At(e,t+1))break;case 6444:switch(At(e,Rt(e)-3-(~Tt(e,"!important")&&10))){case 107:return Pt(e,":",":"+gt)+e;case 101:return Pt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gt+(45===At(e,14)?"inline-":"")+"box$3$1"+gt+"$2$3$1"+mt+"$2box$3")+e}break;case 5936:switch(At(e,t+11)){case 114:return gt+e+mt+Pt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+mt+Pt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+mt+Pt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gt+e+mt+e+e}return e}var mn,vn,gn,yn,_n=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case bt:e.return=fn(e.value,e.length);break;case wt:return sn([Nt(e,{value:Pt(e.value,"@","@"+gt)})],r);case _t:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sn([Nt(e,{props:[Pt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return sn([Nt(e,{props:[Pt(t,/:(plac\w+)/,":"+gt+"input-$1")]}),Nt(e,{props:[Pt(t,/:(plac\w+)/,":-moz-$1")]}),Nt(e,{props:[Pt(t,/:(plac\w+)/,mt+"input-$1")]})],r)}return""}))}}],bn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||_n,s={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,u,c,d,h=[an,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[hn,pn].concat(o,h),c=Ot(u),function(e,t,n,r){for(var i="",o=0;o<c;o++)i+=u[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,sn(en(e?e+"{"+t.styles+"}":t.styles),p),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new ft({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return f.sheet.hydrate(a),f},wn=0,xn=[],Sn=_e,kn=Sn.__b,En=Sn.__r,Pn=Sn.diffed,Tn=Sn.__c,An=Sn.unmount,Cn=Sn.__;function Rn(e,t){Sn.__h&&Sn.__h(vn,e,wn||t),wn=0;var n=vn.__H||(vn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function On(e){return wn=1,Fn(Kn,e)}function Fn(e,t,n){var r=Rn(mn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Kn(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=vn,!vn.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var s=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};vn.u=!0;var o=vn.shouldComponentUpdate,s=vn.componentWillUpdate;vn.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}s&&s.call(this,e,t,n)},vn.shouldComponentUpdate=i}return r.__N||r.__}function Mn(e,t){var n=Rn(mn++,3);!Sn.__s&&qn(n.__H,t)&&(n.__=e,n.i=t,vn.__H.__h.push(n))}function Ln(e,t){var n=Rn(mn++,4);!Sn.__s&&qn(n.__H,t)&&(n.__=e,n.i=t,vn.__h.push(n))}function Dn(e){return wn=5,In((function(){return{current:e}}),[])}function Vn(e,t,n){wn=6,Ln((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function In(e,t){var n=Rn(mn++,7);return qn(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function jn(e,t){return wn=8,In((function(){return e}),t)}function Bn(e){var t=vn.context[e.__c],n=Rn(mn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(vn)),t.props.value):e.__}function Nn(e,t){Sn.useDebugValue&&Sn.useDebugValue(t?t(e):e)}function Un(){var e=Rn(mn++,11);if(!e.__){for(var t=vn.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Gn(){for(var e;e=xn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach($n),e.__H.__h.forEach(zn),e.__H.__h=[]}catch(z_){e.__H.__h=[],Sn.__e(z_,e.__v)}}Sn.__b=function(e){vn=null,kn&&kn(e)},Sn.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Cn&&Cn(e,t)},Sn.__r=function(e){En&&En(e),mn=0;var t=(vn=e.__c).__H;t&&(gn===vn?(t.__h=[],vn.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach($n),t.__h.forEach(zn),t.__h=[],mn=0)),gn=vn},Sn.diffed=function(e){Pn&&Pn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==xn.push(t)&&yn===Sn.requestAnimationFrame||((yn=Sn.requestAnimationFrame)||Hn)(Gn)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),gn=vn=null},Sn.__c=function(e,t){t.some((function(e){try{e.__h.forEach($n),e.__h=e.__h.filter((function(e){return!e.__||zn(e)}))}catch(E_){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Sn.__e(E_,e.__v)}})),Tn&&Tn(e,t)},Sn.unmount=function(e){An&&An(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{$n(e)}catch(n){t=n}})),n.__H=void 0,t&&Sn.__e(t,n.__v))};var Wn="function"==typeof requestAnimationFrame;function Hn(e){var t,n=function(){clearTimeout(r),Wn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Wn&&(t=requestAnimationFrame(n))}function $n(e){var t=vn,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),vn=t}function zn(e){var t=vn;e.__c=e.__(),vn=t}function qn(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Kn(e,t){return"function"==typeof t?t(e):t}function Yn(e,t){for(var n in t)e[n]=t[n];return e}function Qn(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Xn(e,t){this.props=e,this.context=t}function Zn(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Qn(this.props,e)}function r(t){return this.shouldComponentUpdate=n,De(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Xn.prototype=new Be).isPureReactComponent=!0,Xn.prototype.shouldComponentUpdate=function(e,t){return Qn(this.props,e)||Qn(this.state,t)};var Jn=_e.__b;_e.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Jn&&Jn(e)};var er="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function tr(e){function t(t){var n=Yn({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=er,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var nr=function(e,t){return null==e?null:ze(ze(e).map(t))},rr={map:nr,forEach:nr,count:function(e){return e?ze(e).length:0},only:function(e){var t=ze(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:ze},ir=_e.__e;_e.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);ir(e,t,n,r)};var or=_e.unmount;function sr(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=Yn({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return sr(e,t,n)}))),e}function ar(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return ar(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function lr(){this.__u=0,this.t=null,this.__b=null}function ur(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function cr(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return De(n,i)}return i.displayName="Lazy",i.__f=!0,i}function dr(){this.u=null,this.o=null}_e.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),or&&or(e)},(lr.prototype=new Be).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=ur(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=ar(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},lr.prototype.componentWillUnmount=function(){this.t=[]},lr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=sr(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&De(je,null,e.fallback);return i&&(i.__u&=-33),[De(je,null,t.__a?null:e.children),i]};var hr=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function pr(e){return this.getChildContext=function(){return e.context},e.children}function fr(e){var t=this,n=e.i;t.componentWillUnmount=function(){nt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),nt(De(pr,{context:t.context},e.__v),t.l)}function mr(e,t){var n=De(fr,{__v:e,i:t});return n.containerInfo=t,n}(dr.prototype=new Be).__a=function(e){var t=this,n=ur(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),hr(t,e,r)):i()};n?n(o):o()}},dr.prototype.render=function(e){this.u=null,this.o=new Map;var t=ze(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},dr.prototype.componentDidUpdate=dr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){hr(e,n,t)}))};var vr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,gr=/^(?: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]/,yr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,_r=/[A-Z0-9]/g,br="undefined"!=typeof document,wr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function xr(e,t,n){return null==t.__k&&(t.textContent=""),nt(e,t),"function"==typeof n&&n(),e?e.__c:null}function Sr(e,t,n){return rt(e,t),"function"==typeof n&&n(),e?e.__c:null}Be.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Be.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var kr=_e.event;function Er(){}function Pr(){return this.cancelBubble}function Tr(){return this.defaultPrevented}_e.event=function(e){return kr&&(e=kr(e)),e.persist=Er,e.isPropagationStopped=Pr,e.isDefaultPrevented=Tr,e.nativeEvent=e};var Ar,Cr={enumerable:!1,configurable:!0,get:function(){return this.class}},Rr=_e.vnode;_e.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var o in t){var s=t[o];if(!("value"===o&&"defaultValue"in t&&null==s||br&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===s?s="":"translate"===a&&"no"===s?s=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||wr(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":yr.test(o)&&(o=a):a=o="oninput":i&&gr.test(o)?o=o.replace(_r,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=s}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=ze(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=ze(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",Cr)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=vr,Rr&&Rr(e)};var Or=_e.__r;_e.__r=function(e){Or&&Or(e),Ar=e.__c};var Fr=_e.diffed;_e.diffed=function(e){Fr&&Fr(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),Ar=null};var Mr={ReactCurrentDispatcher:{current:{readContext:function(e){return Ar.__n[e.__c].props.value},useCallback:jn,useContext:Bn,useDebugValue:Nn,useDeferredValue:$r,useEffect:Mn,useId:Un,useImperativeHandle:Vn,useInsertionEffect:qr,useLayoutEffect:Ln,useMemo:In,useReducer:Fn,useRef:Dn,useState:On,useSyncExternalStore:Yr,useTransition:zr}}};function Lr(e){return De.bind(null,e)}function Dr(e){return!!e&&e.$$typeof===vr}function Vr(e){return Dr(e)&&e.type===je}function Ir(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function jr(e){return Dr(e)?it.apply(null,arguments):e}function Br(e){return!!e.__k&&(nt(null,e),!0)}function Nr(e){return e&&(e.base||1===e.nodeType&&e)||null}var Ur=function(e,t){return e(t)},Gr=function(e,t){return e(t)},Wr=je;function Hr(e){e()}function $r(e){return e}function zr(){return[!1,Hr]}var qr=Ln,Kr=Dr;function Yr(e,t){var n=t(),r=On({h:{__:n,v:t}}),i=r[0].h,o=r[1];return Ln((function(){i.__=n,i.v=t,Qr(i)&&o({h:i})}),[e,n,t]),Mn((function(){return Qr(i)&&o({h:i}),e((function(){Qr(i)&&o({h:i})}))}),[e]),n}function Qr(e){var t,n,r=e.v,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(s){return!0}}var Xr={useState:On,useId:Un,useReducer:Fn,useEffect:Mn,useLayoutEffect:Ln,useInsertionEffect:qr,useTransition:zr,useDeferredValue:$r,useSyncExternalStore:Yr,startTransition:Hr,useRef:Dn,useImperativeHandle:Vn,useMemo:In,useCallback:jn,useContext:Bn,useDebugValue:Nn,version:"17.0.2",Children:rr,render:xr,hydrate:Sr,unmountComponentAtNode:Br,createPortal:mr,createElement:De,createContext:ot,createFactory:Lr,cloneElement:jr,createRef:Ie,Fragment:je,isValidElement:Dr,isElement:Kr,isFragment:Vr,isMemo:Ir,findDOMNode:Nr,Component:Be,PureComponent:Xn,memo:Zn,forwardRef:tr,flushSync:Gr,unstable_batchedUpdates:Ur,StrictMode:Wr,Suspense:lr,SuspenseList:dr,lazy:cr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Mr};const Zr=Object.freeze(Object.defineProperty({__proto__:null,Children:rr,Component:Be,Fragment:je,PureComponent:Xn,StrictMode:Wr,Suspense:lr,SuspenseList:dr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Mr,cloneElement:jr,createContext:ot,createElement:De,createFactory:Lr,createPortal:mr,createRef:Ie,default:Xr,findDOMNode:Nr,flushSync:Gr,forwardRef:tr,hydrate:Sr,isElement:Kr,isFragment:Vr,isMemo:Ir,isValidElement:Dr,lazy:cr,memo:Zn,render:xr,startTransition:Hr,unmountComponentAtNode:Br,unstable_batchedUpdates:Ur,useCallback:jn,useContext:Bn,useDebugValue:Nn,useDeferredValue:$r,useEffect:Mn,useErrorBoundary:function(e){var t=Rn(mn++,10),n=On();return t.__=e,vn.componentDidCatch||(vn.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Un,useImperativeHandle:Vn,useInsertionEffect:qr,useLayoutEffect:Ln,useMemo:In,useReducer:Fn,useRef:Dn,useState:On,useSyncExternalStore:Yr,useTransition:zr,version:"17.0.2"},Symbol.toStringTag,{value:"Module"}));function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jr.apply(null,arguments)}var ei={exports:{}},ti={},ni="function"==typeof Symbol&&Symbol.for,ri=ni?Symbol.for("react.element"):60103,ii=ni?Symbol.for("react.portal"):60106,oi=ni?Symbol.for("react.fragment"):60107,si=ni?Symbol.for("react.strict_mode"):60108,ai=ni?Symbol.for("react.profiler"):60114,li=ni?Symbol.for("react.provider"):60109,ui=ni?Symbol.for("react.context"):60110,ci=ni?Symbol.for("react.async_mode"):60111,di=ni?Symbol.for("react.concurrent_mode"):60111,hi=ni?Symbol.for("react.forward_ref"):60112,pi=ni?Symbol.for("react.suspense"):60113,fi=ni?Symbol.for("react.suspense_list"):60120,mi=ni?Symbol.for("react.memo"):60115,vi=ni?Symbol.for("react.lazy"):60116,gi=ni?Symbol.for("react.block"):60121,yi=ni?Symbol.for("react.fundamental"):60117,_i=ni?Symbol.for("react.responder"):60118,bi=ni?Symbol.for("react.scope"):60119;function wi(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ri:switch(e=e.type){case ci:case di:case oi:case ai:case si:case pi:return e;default:switch(e=e&&e.$$typeof){case ui:case hi:case vi:case mi:case li:return e;default:return t}}case ii:return t}}}function xi(e){return wi(e)===di}ti.AsyncMode=ci,ti.ConcurrentMode=di,ti.ContextConsumer=ui,ti.ContextProvider=li,ti.Element=ri,ti.ForwardRef=hi,ti.Fragment=oi,ti.Lazy=vi,ti.Memo=mi,ti.Portal=ii,ti.Profiler=ai,ti.StrictMode=si,ti.Suspense=pi,ti.isAsyncMode=function(e){return xi(e)||wi(e)===ci},ti.isConcurrentMode=xi,ti.isContextConsumer=function(e){return wi(e)===ui},ti.isContextProvider=function(e){return wi(e)===li},ti.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ri},ti.isForwardRef=function(e){return wi(e)===hi},ti.isFragment=function(e){return wi(e)===oi},ti.isLazy=function(e){return wi(e)===vi},ti.isMemo=function(e){return wi(e)===mi},ti.isPortal=function(e){return wi(e)===ii},ti.isProfiler=function(e){return wi(e)===ai},ti.isStrictMode=function(e){return wi(e)===si},ti.isSuspense=function(e){return wi(e)===pi},ti.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===oi||e===di||e===ai||e===si||e===pi||e===fi||"object"==typeof e&&null!==e&&(e.$$typeof===vi||e.$$typeof===mi||e.$$typeof===li||e.$$typeof===ui||e.$$typeof===hi||e.$$typeof===yi||e.$$typeof===_i||e.$$typeof===bi||e.$$typeof===gi)},ti.typeOf=wi,ei.exports=ti;var Si=ei.exports,ki={};ki[Si.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ki[Si.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Ei(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Pi=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ti=function(e,t,n){Pi(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var Ai={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ci=!1,Ri=/[A-Z]|^ms/g,Oi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fi=function(e){return 45===e.charCodeAt(1)},Mi=function(e){return null!=e&&"boolean"!=typeof e},Li=ln((function(e){return Fi(e)?e:e.replace(Ri,"-$&").toLowerCase()})),Di=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Oi,(function(e,t,n){return ji={name:t,styles:n,next:ji},t}))}return 1===Ai[e]||Fi(e)||"number"!=typeof t||0===t?t:t+"px"},Vi="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ii(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return ji={name:i.name,styles:i.styles,next:ji},i.name;var o=n;if(void 0!==o.styles){var s=o.next;if(void 0!==s)for(;void 0!==s;)ji={name:s.name,styles:s.styles,next:ji},s=s.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ii(e,t,n[i])+";";else for(var o in n){var s=n[o];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":Mi(a)&&(r+=Li(o)+":"+Di(o,a)+";")}else{if("NO_COMPONENT_SELECTOR"===o&&Ci)throw new Error(Vi);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=Ii(e,t,s);switch(o){case"animation":case"animationName":r+=Li(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var u=0;u<s.length;u++)Mi(s[u])&&(r+=Li(o)+":"+Di(o,s[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=ji,l=n(e);return ji=a,Ii(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var ji,Bi=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function Ni(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";ji=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=Ii(n,t,o)):i+=o[0];for(var s=1;s<e.length;s++){if(i+=Ii(n,t,e[s]),r)i+=o[s]}Bi.lastIndex=0;for(var a,l="";null!==(a=Bi.exec(i));)l+="-"+a[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:ji}}var Ui=!!Zr.useInsertionEffect&&Zr.useInsertionEffect,Gi=Ui||function(e){return e()},Wi=Ui||Ln,Hi=ot("undefined"!=typeof HTMLElement?bn({key:"css"}):null),$i=Hi.Provider,zi=function(e){return tr((function(t,n){var r=Bn(Hi);return e(t,r,n)}))},qi=ot({}),Ki={}.hasOwnProperty,Yi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Qi=function(e,t){var n={};for(var r in t)Ki.call(t,r)&&(n[r]=t[r]);return n[Yi]=e,n},Xi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Pi(t,n,r),Gi((function(){return Ti(t,n,r)})),null},Zi=zi((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Yi],o=[r],s="";"string"==typeof e.className?s=Ei(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var a=Ni(o,void 0,Bn(qi));s+=t.key+"-"+a.name;var l={};for(var u in e)Ki.call(e,u)&&"css"!==u&&u!==Yi&&(l[u]=e[u]);return l.className=s,n&&(l.ref=n),De(je,null,De(Xi,{cache:t,serialized:a,isStringTag:"string"==typeof i}),De(i,l))})),Ji=zi((function(e,t){var n=Ni([e.styles],void 0,Bn(qi)),r=Dn();return Wi((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,s=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==s&&(o=!0,s.setAttribute("data-emotion",e),i.hydrate([s])),r.current=[i,o],function(){i.flush()}}),[t]),Wi((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Ti(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function eo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ni(t)}var to=0;function no(e,t,n,r,i,o){t||(t={});var s,a,l=t;if("ref"in l)for(a in l={},t)"ref"==a?s=t[a]:l[a]=t[a];var u={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--to,__i:-1,__u:0,__source:i,__self:o};if("function"==typeof e&&(s=e.defaultProps))for(a in s)void 0===l[a]&&(l[a]=s[a]);return _e.vnode&&_e.vnode(u),u}var ro=je;function io(e,t,n){return Ki.call(t,"css")?no(Zi,Qi(e,t),n):no(e,t,n)}function oo(e,t,n){return Ki.call(t,"css")?no(Zi,Qi(e,t),n):no(e,t,n)}const so=eo({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},":host":{"--fl-color-primary-900":"#000563","--fl-color-primary-800":"#031495","--fl-color-primary-700":"#1033c6","--fl-color-primary-600":"#2e66f7","--fl-color-primary-500":"#5786f8","--fl-color-primary-400":"#88abfa","--fl-color-primary-300":"#b5cbfb","--fl-color-primary-200":"#d6e2fc","--fl-color-primary-100":"#eaf0fe","--fl-color-primary-50":"#f2f6ff","--kit-font-family":"Inter, 'Source Sans Pro', sans-serif",fontFamily:"Inter, 'Source Sans Pro', sans-serif"}}),ao=()=>oo(je,{children:[io(Ji,{styles:eo`
|
|
2
2
|
${{"*, ::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"}}}
|
|
3
|
-
`}),io(Ji,{styles:so})]});let lo;const uo=()=>Bn(lo);class co extends Error{constructor(e,t){super(e),__publicField(this,"response"),this.response=t}}const ho=async(e,t,n,r)=>{await po(e,t,n,r,!0)},po=async(e,t,n,r,i)=>{const o=await fetch(e,{method:n,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.4.53550",authorization:`Bearer ${t}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!o.ok)throw new co(`[API Error] Status: ${o.statusText}. Response: ${await o.text()}`,o);return i?{}:await o.json()},fo=()=>{const e=uo();return{getAllPromotions:In((()=>{return t=e.backend,async()=>{const e=new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion`);return po(e,t.accessToken,"GET")};var t}),[e.backend]),createPromotion:In((()=>{return t=e.backend,async e=>{const n=new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion`);return ho(n,t.accessToken,"POST",e)};var t}),[e.backend]),updatePromotion:In((()=>{return t=e.backend,e=>async n=>{const r=new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion/${e}`);return ho(r,t.accessToken,"PUT",n)};var t}),[e.backend])}};var mo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},vo="undefined"==typeof window||"Deno"in globalThis;function go(){}function yo(e){return"number"==typeof e&&e>=0&&e!==1/0}function _o(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bo(e,t){return"function"==typeof e?e(t):e}function wo(e,t){return"function"==typeof e?e(t):e}function xo(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s)if(r){if(t.queryHash!==ko(s,t.options))return!1}else if(!Po(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function So(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Eo(t.options.mutationKey)!==Eo(o))return!1}else if(!Po(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function ko(e,t){return((null==t?void 0:t.queryKeyHashFn)||Eo)(e)}function Eo(e){return JSON.stringify(e,((e,t)=>Ro(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Po(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Po(e[n],t[n]))))}function To(e,t){if(e===t)return e;const n=Co(e)&&Co(t);if(n||Ro(e)&&Ro(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const i=n?u:o[u];(!n&&r.includes(i)||n)&&void 0===e[i]&&void 0===t[i]?(a[i]=void 0,l++):(a[i]=To(e[i],t[i]),a[i]===e[i]&&void 0!==e[i]&&l++)}return i===s&&l===i?e:a}return t}function Ao(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Co(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ro(e){if(!Oo(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Oo(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function Oo(e){return"[object Object]"===Object.prototype.toString.call(e)}function Fo(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?To(e,t):t}function Mo(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Lo(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Do=Symbol();function Vo(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==Do?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var Io=new(r=class extends mo{constructor(){super(),__privateAdd(this,e),__privateAdd(this,t),__privateAdd(this,n),__privateSet(this,n,(e=>{if(!vo&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){__privateGet(this,t)||this.setEventListener(__privateGet(this,n))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,t))||e.call(this),__privateSet(this,t,void 0))}setEventListener(e){var r;__privateSet(this,n,e),null==(r=__privateGet(this,t))||r.call(this),__privateSet(this,t,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})))}setFocused(t){__privateGet(this,e)!==t&&(__privateSet(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var t;return"boolean"==typeof __privateGet(this,e)?__privateGet(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,n=new WeakMap,r),jo=new(a=class extends mo{constructor(){super(),__privateAdd(this,i,!0),__privateAdd(this,o),__privateAdd(this,s),__privateSet(this,s,(e=>{if(!vo&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}))}onSubscribe(){__privateGet(this,o)||this.setEventListener(__privateGet(this,s))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,o))||e.call(this),__privateSet(this,o,void 0))}setEventListener(e){var t;__privateSet(this,s,e),null==(t=__privateGet(this,o))||t.call(this),__privateSet(this,o,e(this.setOnline.bind(this)))}setOnline(e){__privateGet(this,i)!==e&&(__privateSet(this,i,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return __privateGet(this,i)}},i=new WeakMap,o=new WeakMap,s=new WeakMap,a);function Bo(e){return Math.min(1e3*2**e,3e4)}function No(e){return"online"!==(e??"online")||jo.isOnline()}var Uo=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function Go(e){return e instanceof Uo}function Wo(e){let t,n,r,i=!1,o=0,s=!1;const a=new Promise(((e,t)=>{n=e,r=t})),l=()=>Io.isFocused()&&("always"===e.networkMode||jo.isOnline())&&e.canRun(),u=()=>No(e.networkMode)&&e.canRun(),c=r=>{var i;s||(s=!0,null==(i=e.onSuccess)||i.call(e,r),null==t||t(),n(r))},d=n=>{var i;s||(s=!0,null==(i=e.onError)||i.call(e,n),null==t||t(),r(n))},h=()=>new Promise((n=>{var r;t=e=>{(s||l())&&n(e)},null==(r=e.onPause)||r.call(e)})).then((()=>{var n;t=void 0,s||null==(n=e.onContinue)||n.call(e)})),p=()=>{if(s)return;let t;const n=0===o?e.initialPromise:void 0;try{t=n??e.fn()}catch(r){t=Promise.reject(r)}Promise.resolve(t).then(c).catch((t=>{var n;if(s)return;const r=e.retry??(vo?0:3),a=e.retryDelay??Bo,u="function"==typeof a?a(o,t):a,c=!0===r||"number"==typeof r&&o<r||"function"==typeof r&&r(o,t);var f;!i&&c?(o++,null==(n=e.onFail)||n.call(e,o,t),(f=u,new Promise((e=>{setTimeout(e,f)}))).then((()=>l()?void 0:h())).then((()=>{i?d(t):p()}))):d(t)}))};return{promise:a,cancel:t=>{var n;s||(d(new Uo(t)),null==(n=e.abort)||n.call(e))},continue:()=>(null==t||t(),a),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:u,start:()=>(u()?p():h().then(p),a)}}var Ho=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0);const o=r=>{t?e.push(r):i((()=>{n(r)}))};return{batch:o=>{let s;t++;try{s=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return s},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),$o=(u=class{constructor(){__privateAdd(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yo(this.gcTime)&&__privateSet(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vo?1/0:3e5))}clearGcTimeout(){__privateGet(this,l)&&(clearTimeout(__privateGet(this,l)),__privateSet(this,l,void 0))}},l=new WeakMap,u),zo=(y=class extends $o{constructor(e){super(),__privateAdd(this,v),__privateAdd(this,c),__privateAdd(this,d),__privateAdd(this,h),__privateAdd(this,p),__privateAdd(this,f),__privateAdd(this,m),__privateSet(this,m,!1),__privateSet(this,f,e.defaultOptions),this.setOptions(e.options),this.observers=[],__privateSet(this,h,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,__privateSet(this,c,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??__privateGet(this,c),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=__privateGet(this,p))?void 0:e.promise}setOptions(e){this.options={...__privateGet(this,f),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||__privateGet(this,h).remove(this)}setData(e,t){const n=Fo(this.state.data,e,this.options);return __privateMethod(this,v,g).call(this,{data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){__privateMethod(this,v,g).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null==(t=__privateGet(this,p))?void 0:t.promise;return null==(n=__privateGet(this,p))||n.cancel(e),r?r.then(go).catch(go):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(__privateGet(this,c))}isActive(){return this.observers.some((e=>!1!==wo(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!_o(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,p))||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,p))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),__privateGet(this,h).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(__privateGet(this,p)&&(__privateGet(this,m)?__privateGet(this,p).cancel({revert:!0}):__privateGet(this,p).cancelRetry()),this.scheduleGc()),__privateGet(this,h).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||__privateMethod(this,v,g).call(this,{type:"invalidate"})}fetch(e,t){var n,r,i;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(__privateGet(this,p))return __privateGet(this,p).continueRetry(),__privateGet(this,p).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const o=new AbortController,s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(__privateSet(this,m,!0),o.signal)})},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=Vo(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return s(n),__privateSet(this,m,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};s(a),null==(n=this.options.behavior)||n.onFetch(a,this),__privateSet(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(r=a.fetchOptions)?void 0:r.meta)||__privateMethod(this,v,g).call(this,{type:"fetch",meta:null==(i=a.fetchOptions)?void 0:i.meta});const l=e=>{var t,n,r,i;Go(e)&&e.silent||__privateMethod(this,v,g).call(this,{type:"error",error:e}),Go(e)||(null==(n=(t=__privateGet(this,h).config).onError)||n.call(t,e,this),null==(i=(r=__privateGet(this,h).config).onSettled)||i.call(r,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return __privateSet(this,p,Wo({initialPromise:null==t?void 0:t.initialPromise,fn:a.fetchFn,abort:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;if(void 0!==e){try{this.setData(e)}catch(o){return void l(o)}null==(n=(t=__privateGet(this,h).config).onSuccess)||n.call(t,e,this),null==(i=(r=__privateGet(this,h).config).onSettled)||i.call(r,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{__privateMethod(this,v,g).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,v,g).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,v,g).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),__privateGet(this,p).start()}},c=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,v=new WeakSet,g=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...qo(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return Go(n)&&n.revert&&__privateGet(this,d)?{...__privateGet(this,d),fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Ho.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),__privateGet(this,h).notify({query:this,type:"updated",action:e})}))},y);function qo(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:No(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Ko=(b=class extends mo{constructor(e={}){super(),__privateAdd(this,_),this.config=e,__privateSet(this,_,new Map)}build(e,t,n){const r=t.queryKey,i=t.queryHash??ko(r,t);let o=this.get(i);return o||(o=new zo({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){__privateGet(this,_).has(e.queryHash)||(__privateGet(this,_).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=__privateGet(this,_).get(e.queryHash);t&&(e.destroy(),t===e&&__privateGet(this,_).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ho.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return __privateGet(this,_).get(e)}getAll(){return[...__privateGet(this,_).values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>xo(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>xo(e,t))):t}notify(e){Ho.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Ho.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Ho.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},_=new WeakMap,b),Yo=(P=class extends $o{constructor(e){super(),__privateAdd(this,k),__privateAdd(this,w),__privateAdd(this,x),__privateAdd(this,S),this.mutationId=e.mutationId,__privateSet(this,x,e.mutationCache),__privateSet(this,w,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){__privateGet(this,w).includes(e)||(__privateGet(this,w).push(e),this.clearGcTimeout(),__privateGet(this,x).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){__privateSet(this,w,__privateGet(this,w).filter((t=>t!==e))),this.scheduleGc(),__privateGet(this,x).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){__privateGet(this,w).length||("pending"===this.state.status?this.scheduleGc():__privateGet(this,x).remove(this))}continue(){var e;return(null==(e=__privateGet(this,S))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,i,o,s,a,l,u,c,d,h,p,f,m,v,g,y,_,b;__privateSet(this,S,Wo({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{__privateMethod(this,k,E).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,k,E).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,k,E).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>__privateGet(this,x).canRun(this)}));const w="pending"===this.state.status,P=!__privateGet(this,S).canStart();try{if(!w){__privateMethod(this,k,E).call(this,{type:"pending",variables:e,isPaused:P}),await(null==(n=(t=__privateGet(this,x).config).onMutate)?void 0:n.call(t,e,this));const o=await(null==(i=(r=this.options).onMutate)?void 0:i.call(r,e));o!==this.state.context&&__privateMethod(this,k,E).call(this,{type:"pending",context:o,variables:e,isPaused:P})}const p=await __privateGet(this,S).start();return await(null==(s=(o=__privateGet(this,x).config).onSuccess)?void 0:s.call(o,p,e,this.state.context,this)),await(null==(l=(a=this.options).onSuccess)?void 0:l.call(a,p,e,this.state.context)),await(null==(c=(u=__privateGet(this,x).config).onSettled)?void 0:c.call(u,p,null,this.state.variables,this.state.context,this)),await(null==(h=(d=this.options).onSettled)?void 0:h.call(d,p,null,e,this.state.context)),__privateMethod(this,k,E).call(this,{type:"success",data:p}),p}catch(T){try{throw await(null==(f=(p=__privateGet(this,x).config).onError)?void 0:f.call(p,T,e,this.state.context,this)),await(null==(v=(m=this.options).onError)?void 0:v.call(m,T,e,this.state.context)),await(null==(y=(g=__privateGet(this,x).config).onSettled)?void 0:y.call(g,void 0,T,this.state.variables,this.state.context,this)),await(null==(b=(_=this.options).onSettled)?void 0:b.call(_,void 0,T,e,this.state.context)),T}finally{__privateMethod(this,k,E).call(this,{type:"error",error:T})}}finally{__privateGet(this,x).runNext(this)}}},w=new WeakMap,x=new WeakMap,S=new WeakMap,k=new WeakSet,E=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Ho.batch((()=>{__privateGet(this,w).forEach((t=>{t.onMutationUpdate(e)})),__privateGet(this,x).notify({mutation:this,type:"updated",action:e})}))},P);var Qo=(C=class extends mo{constructor(e={}){super(),__privateAdd(this,T),__privateAdd(this,A),this.config=e,__privateSet(this,T,new Map),__privateSet(this,A,Date.now())}build(e,t,n){const r=new Yo({mutationCache:this,mutationId:++__privateWrapper(this,A)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=Xo(e),n=__privateGet(this,T).get(t)??[];n.push(e),__privateGet(this,T).set(t,n),this.notify({type:"added",mutation:e})}remove(e){var t;const n=Xo(e);if(__privateGet(this,T).has(n)){const r=null==(t=__privateGet(this,T).get(n))?void 0:t.filter((t=>t!==e));r&&(0===r.length?__privateGet(this,T).delete(n):__privateGet(this,T).set(n,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null==(t=__privateGet(this,T).get(Xo(e)))?void 0:t.find((e=>"pending"===e.state.status));return!n||n===e}runNext(e){var t;const n=null==(t=__privateGet(this,T).get(Xo(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return(null==n?void 0:n.continue())??Promise.resolve()}clear(){Ho.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...__privateGet(this,T).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>So(t,e)))}findAll(e={}){return this.getAll().filter((t=>So(e,t)))}notify(e){Ho.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Ho.batch((()=>Promise.all(e.map((e=>e.continue().catch(go))))))}},T=new WeakMap,A=new WeakMap,C);function Xo(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function Zo(e){return{onFetch:(t,n)=>{var r,i,o,s,a;const l=t.options,u=null==(o=null==(i=null==(r=t.fetchOptions)?void 0:r.meta)?void 0:i.fetchMore)?void 0:o.direction,c=(null==(s=t.state.data)?void 0:s.pages)||[],d=(null==(a=t.state.data)?void 0:a.pageParams)||[];let h={pages:[],pageParams:[]},p=0;const f=async()=>{let n=!1;const r=Vo(t.options,t.fetchOptions),i=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);const s={queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};var a;a=s,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)});const l=await r(s),{maxPages:u}=t.options,c=o?Lo:Mo;return{pages:c(e.pages,l,u),pageParams:c(e.pageParams,i,u)}};if(u&&c.length){const e="backward"===u,t={pages:c,pageParams:d},n=(e?es:Jo)(l,t);h=await i(t,n,e)}else{const t=e??c.length;do{const e=0===p?d[0]??l.initialPageParam:Jo(l,h);if(p>0&&null==e)break;h=await i(h,e),p++}while(p<t)}return h};t.options.persister?t.fetchFn=()=>{var e,r;return null==(r=(e=t.options).persister)?void 0:r.call(e,f,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function Jo(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function es(e,{pages:t,pageParams:n}){var r;return t.length>0?null==(r=e.getPreviousPageParam)?void 0:r.call(e,t[0],t,n[0],n):void 0}var ts=(j=class{constructor(e={}){__privateAdd(this,R),__privateAdd(this,O),__privateAdd(this,F),__privateAdd(this,M),__privateAdd(this,L),__privateAdd(this,D),__privateAdd(this,V),__privateAdd(this,I),__privateSet(this,R,e.queryCache||new Ko),__privateSet(this,O,e.mutationCache||new Qo),__privateSet(this,F,e.defaultOptions||{}),__privateSet(this,M,new Map),__privateSet(this,L,new Map),__privateSet(this,D,0)}mount(){__privateWrapper(this,D)._++,1===__privateGet(this,D)&&(__privateSet(this,V,Io.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,R).onFocus())}))),__privateSet(this,I,jo.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,R).onOnline())}))))}unmount(){var e,t;__privateWrapper(this,D)._--,0===__privateGet(this,D)&&(null==(e=__privateGet(this,V))||e.call(this),__privateSet(this,V,void 0),null==(t=__privateGet(this,I))||t.call(this),__privateSet(this,I,void 0))}isFetching(e){return __privateGet(this,R).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return __privateGet(this,O).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,R).get(n.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=__privateGet(this,R).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(bo(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return __privateGet(this,R).findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=__privateGet(this,R).get(r.queryHash),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==i?void 0:i.state.data);if(void 0!==o)return __privateGet(this,R).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ho.batch((()=>__privateGet(this,R).findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,R).get(n.queryHash))?void 0:t.state}removeQueries(e){const t=__privateGet(this,R);Ho.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=__privateGet(this,R),r={type:"active",...e};return Ho.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ho.batch((()=>__privateGet(this,R).findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(go).catch(go)}invalidateQueries(e={},t={}){return Ho.batch((()=>{if(__privateGet(this,R).findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)}))}refetchQueries(e={},t){const n={...t,cancelRefetch:(null==t?void 0:t.cancelRefetch)??!0},r=Ho.batch((()=>__privateGet(this,R).findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(go)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(go)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=__privateGet(this,R).build(this,t);return n.isStaleByTime(bo(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(go).catch(go)}fetchInfiniteQuery(e){return e.behavior=Zo(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(go).catch(go)}ensureInfiniteQueryData(e){return e.behavior=Zo(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return jo.isOnline()?__privateGet(this,O).resumePausedMutations():Promise.resolve()}getQueryCache(){return __privateGet(this,R)}getMutationCache(){return __privateGet(this,O)}getDefaultOptions(){return __privateGet(this,F)}setDefaultOptions(e){__privateSet(this,F,e)}setQueryDefaults(e,t){__privateGet(this,M).set(Eo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...__privateGet(this,M).values()];let n={};return t.forEach((t=>{Po(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){__privateGet(this,L).set(Eo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...__privateGet(this,L).values()];let n={};return t.forEach((t=>{Po(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...__privateGet(this,F).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ko(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===Do&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...__privateGet(this,F).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){__privateGet(this,R).clear(),__privateGet(this,O).clear()}},R=new WeakMap,O=new WeakMap,F=new WeakMap,M=new WeakMap,L=new WeakMap,D=new WeakMap,V=new WeakMap,I=new WeakMap,j),ns=(ue=class extends mo{constructor(e,t){super(),__privateAdd(this,J),__privateAdd(this,B),__privateAdd(this,N),__privateAdd(this,U),__privateAdd(this,G),__privateAdd(this,W),__privateAdd(this,H),__privateAdd(this,$),__privateAdd(this,z),__privateAdd(this,q),__privateAdd(this,K),__privateAdd(this,Y),__privateAdd(this,Q),__privateAdd(this,X),__privateAdd(this,Z,new Set),this.options=t,__privateSet(this,B,e),__privateSet(this,$,null),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(__privateGet(this,N).addObserver(this),rs(__privateGet(this,N),this.options)?__privateMethod(this,J,ee).call(this):this.updateResult(),__privateMethod(this,J,ie).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return is(__privateGet(this,N),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return is(__privateGet(this,N),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,__privateMethod(this,J,oe).call(this),__privateMethod(this,J,se).call(this),__privateGet(this,N).removeObserver(this)}setOptions(e,t){const n=this.options,r=__privateGet(this,N);if(this.options=__privateGet(this,B).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof wo(this.options.enabled,__privateGet(this,N)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");__privateMethod(this,J,ae).call(this),__privateGet(this,N).setOptions(this.options),n._defaulted&&!Ao(this.options,n)&&__privateGet(this,B).getQueryCache().notify({type:"observerOptionsUpdated",query:__privateGet(this,N),observer:this});const i=this.hasListeners();i&&os(__privateGet(this,N),r,this.options,n)&&__privateMethod(this,J,ee).call(this),this.updateResult(t),!i||__privateGet(this,N)===r&&wo(this.options.enabled,__privateGet(this,N))===wo(n.enabled,__privateGet(this,N))&&bo(this.options.staleTime,__privateGet(this,N))===bo(n.staleTime,__privateGet(this,N))||__privateMethod(this,J,te).call(this);const o=__privateMethod(this,J,ne).call(this);!i||__privateGet(this,N)===r&&wo(this.options.enabled,__privateGet(this,N))===wo(n.enabled,__privateGet(this,N))&&o===__privateGet(this,X)||__privateMethod(this,J,re).call(this,o)}getOptimisticResult(e){const t=__privateGet(this,B).getQueryCache().build(__privateGet(this,B),e),n=this.createResult(t,e);return function(e,t){if(!Ao(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(__privateSet(this,G,n),__privateSet(this,H,this.options),__privateSet(this,W,__privateGet(this,N).state)),n}getCurrentResult(){return __privateGet(this,G)}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),null==t||t(r),e[r])})})),n}trackProp(e){__privateGet(this,Z).add(e)}getCurrentQuery(){return __privateGet(this,N)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=__privateGet(this,B).defaultQueryOptions(e),n=__privateGet(this,B).getQueryCache().build(__privateGet(this,B),t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return __privateMethod(this,J,ee).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),__privateGet(this,G))))}createResult(e,t){var n;const r=__privateGet(this,N),i=this.options,o=__privateGet(this,G),s=__privateGet(this,W),a=__privateGet(this,H),l=e!==r?e.state:__privateGet(this,U),{state:u}=e;let c,d={...u},h=!1;if(t._optimisticResults){const n=this.hasListeners(),o=!n&&rs(e,t),s=n&&os(e,r,t,i);(o||s)&&(d={...d,...qo(u.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:p,errorUpdatedAt:f,status:m}=d;if(t.select&&void 0!==d.data)if(o&&d.data===(null==s?void 0:s.data)&&t.select===__privateGet(this,z))c=__privateGet(this,q);else try{__privateSet(this,z,t.select),c=t.select(d.data),c=Fo(null==o?void 0:o.data,c,t),__privateSet(this,q,c),__privateSet(this,$,null)}catch(w){__privateSet(this,$,w)}else c=d.data;if(void 0!==t.placeholderData&&void 0===c&&"pending"===m){let e;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==a?void 0:a.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(null==(n=__privateGet(this,K))?void 0:n.state.data,__privateGet(this,K)):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),__privateSet(this,$,null)}catch(w){__privateSet(this,$,w)}void 0!==e&&(m="success",c=Fo(null==o?void 0:o.data,e,t),h=!0)}__privateGet(this,$)&&(p=__privateGet(this,$),c=__privateGet(this,q),f=Date.now(),m="error");const v="fetching"===d.fetchStatus,g="pending"===m,y="error"===m,_=g&&v,b=void 0!==c;return{status:m,fetchStatus:d.fetchStatus,isPending:g,isSuccess:"success"===m,isError:y,isInitialLoading:_,isLoading:_,data:c,dataUpdatedAt:d.dataUpdatedAt,error:p,errorUpdatedAt:f,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!g,isLoadingError:y&&!b,isPaused:"paused"===d.fetchStatus,isPlaceholderData:h,isRefetchError:y&&b,isStale:ss(e,t),refetch:this.refetch}}updateResult(e){const t=__privateGet(this,G),n=this.createResult(__privateGet(this,N),this.options);if(__privateSet(this,W,__privateGet(this,N).state),__privateSet(this,H,this.options),void 0!==__privateGet(this,W).data&&__privateSet(this,K,__privateGet(this,N)),Ao(n,t))return;__privateSet(this,G,n);const r={};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!__privateGet(this,Z).size)return!0;const r=new Set(n??__privateGet(this,Z));return this.options.throwOnError&&r.add("error"),Object.keys(__privateGet(this,G)).some((e=>{const n=e;return __privateGet(this,G)[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),__privateMethod(this,J,le).call(this,{...r,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&__privateMethod(this,J,ie).call(this)}},B=new WeakMap,N=new WeakMap,U=new WeakMap,G=new WeakMap,W=new WeakMap,H=new WeakMap,$=new WeakMap,z=new WeakMap,q=new WeakMap,K=new WeakMap,Y=new WeakMap,Q=new WeakMap,X=new WeakMap,Z=new WeakMap,J=new WeakSet,ee=function(e){__privateMethod(this,J,ae).call(this);let t=__privateGet(this,N).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(go)),t},te=function(){__privateMethod(this,J,oe).call(this);const e=bo(this.options.staleTime,__privateGet(this,N));if(vo||__privateGet(this,G).isStale||!yo(e))return;const t=_o(__privateGet(this,G).dataUpdatedAt,e);__privateSet(this,Y,setTimeout((()=>{__privateGet(this,G).isStale||this.updateResult()}),t+1))},ne=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(__privateGet(this,N)):this.options.refetchInterval)??!1},re=function(e){__privateMethod(this,J,se).call(this),__privateSet(this,X,e),!vo&&!1!==wo(this.options.enabled,__privateGet(this,N))&&yo(__privateGet(this,X))&&0!==__privateGet(this,X)&&__privateSet(this,Q,setInterval((()=>{(this.options.refetchIntervalInBackground||Io.isFocused())&&__privateMethod(this,J,ee).call(this)}),__privateGet(this,X)))},ie=function(){__privateMethod(this,J,te).call(this),__privateMethod(this,J,re).call(this,__privateMethod(this,J,ne).call(this))},oe=function(){__privateGet(this,Y)&&(clearTimeout(__privateGet(this,Y)),__privateSet(this,Y,void 0))},se=function(){__privateGet(this,Q)&&(clearInterval(__privateGet(this,Q)),__privateSet(this,Q,void 0))},ae=function(){const e=__privateGet(this,B).getQueryCache().build(__privateGet(this,B),this.options);if(e===__privateGet(this,N))return;const t=__privateGet(this,N);__privateSet(this,N,e),__privateSet(this,U,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))},le=function(e){Ho.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(__privateGet(this,G))})),__privateGet(this,B).getQueryCache().notify({query:__privateGet(this,N),type:"observerResultsUpdated"})}))},ue);function rs(e,t){return function(e,t){return!1!==wo(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&is(e,t,t.refetchOnMount)}function is(e,t,n){if(!1!==wo(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&ss(e,t)}return!1}function os(e,t,n,r){return(e!==t||!1===wo(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&ss(e,n)}function ss(e,t){return!1!==wo(t.enabled,e)&&e.isStaleByTime(bo(t.staleTime,e))}var as=(ge=class extends mo{constructor(e,t){super(),__privateAdd(this,fe),__privateAdd(this,ce),__privateAdd(this,de),__privateAdd(this,he),__privateAdd(this,pe),__privateSet(this,ce,e),this.setOptions(t),this.bindMethods(),__privateMethod(this,fe,me).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=__privateGet(this,ce).defaultMutationOptions(e),Ao(this.options,n)||__privateGet(this,ce).getMutationCache().notify({type:"observerOptionsUpdated",mutation:__privateGet(this,he),observer:this}),(null==n?void 0:n.mutationKey)&&this.options.mutationKey&&Eo(n.mutationKey)!==Eo(this.options.mutationKey)?this.reset():"pending"===(null==(t=__privateGet(this,he))?void 0:t.state.status)&&__privateGet(this,he).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=__privateGet(this,he))||e.removeObserver(this)}onMutationUpdate(e){__privateMethod(this,fe,me).call(this),__privateMethod(this,fe,ve).call(this,e)}getCurrentResult(){return __privateGet(this,de)}reset(){var e;null==(e=__privateGet(this,he))||e.removeObserver(this),__privateSet(this,he,void 0),__privateMethod(this,fe,me).call(this),__privateMethod(this,fe,ve).call(this)}mutate(e,t){var n;return __privateSet(this,pe,t),null==(n=__privateGet(this,he))||n.removeObserver(this),__privateSet(this,he,__privateGet(this,ce).getMutationCache().build(__privateGet(this,ce),this.options)),__privateGet(this,he).addObserver(this),__privateGet(this,he).execute(e)}},ce=new WeakMap,de=new WeakMap,he=new WeakMap,pe=new WeakMap,fe=new WeakSet,me=function(){var e;const t=(null==(e=__privateGet(this,he))?void 0:e.state)??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};__privateSet(this,de,{...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset})},ve=function(e){Ho.batch((()=>{var t,n,r,i,o,s,a,l;if(__privateGet(this,pe)&&this.hasListeners()){const u=__privateGet(this,de).variables,c=__privateGet(this,de).context;"success"===(null==e?void 0:e.type)?(null==(n=(t=__privateGet(this,pe)).onSuccess)||n.call(t,e.data,u,c),null==(i=(r=__privateGet(this,pe)).onSettled)||i.call(r,e.data,null,u,c)):"error"===(null==e?void 0:e.type)&&(null==(s=(o=__privateGet(this,pe)).onError)||s.call(o,e.error,u,c),null==(l=(a=__privateGet(this,pe)).onSettled)||l.call(a,void 0,e.error,u,c))}this.listeners.forEach((e=>{e(__privateGet(this,de))}))}))},ge),ls=ot(void 0),us=e=>{const t=Bn(ls);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},cs=({client:e,children:t})=>(Mn((()=>(e.mount(),()=>{e.unmount()})),[e]),no(ls.Provider,{value:e,children:t})),ds=ot(!1),hs=()=>Bn(ds);ds.Provider;var ps=ot(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),fs=()=>Bn(ps);function ms(e,t){return"function"==typeof e?e(...t):!!e}function vs(){}var gs=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},ys=e=>{Mn((()=>{e.clearReset()}),[e])},_s=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&ms(n,[e.error,r]),bs=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},ws=(e,t)=>(null==e?void 0:e.suspense)&&t.isPending,xs=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function Ss(e,t){return function(e,t){var n,r,i,o;const s=us(),a=hs(),l=fs(),u=s.defaultQueryOptions(e);null==(r=null==(n=s.getDefaultOptions().queries)?void 0:n._experimental_beforeQuery)||r.call(n,u),u._optimisticResults=a?"isRestoring":"optimistic",bs(u),gs(u,l),ys(l);const[c]=On((()=>new t(s,u))),d=c.getOptimisticResult(u);if(Yr(jn((e=>{const t=a?()=>{}:c.subscribe(Ho.batchCalls(e));return c.updateResult(),t}),[c,a]),(()=>c.getCurrentResult())),Mn((()=>{c.setOptions(u,{listeners:!1})}),[u,c]),ws(u,d))throw xs(u,c,l);if(_s({result:d,errorResetBoundary:l,throwOnError:u.throwOnError,query:s.getQueryCache().get(u.queryHash)}))throw d.error;return null==(o=null==(i=s.getDefaultOptions().queries)?void 0:i._experimental_afterQuery)||o.call(i,u,d),u.notifyOnChangeProps?d:c.trackResult(d)}(e,ns)}var ks=/^((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)-.*))$/,Es=ln((function(e){return ks.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ps=function(e){return"theme"!==e},Ts=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Es:Ps},As=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Cs=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Pi(t,n,r),Gi((function(){return Ti(t,n,r)})),null},Rs=function e(t,n){var r,i,o=t.__emotion_real===t,s=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var a=As(t,n,o),l=a||Ts(s),u=!l("as");return function(){var c=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var h=c.length,p=1;p<h;p++)d.push(c[p],c[0][p])}var f=zi((function(e,t,n){var r=u&&e.as||s,o="",c=[],h=e;if(null==e.theme){for(var p in h={},e)h[p]=e[p];h.theme=Bn(qi)}"string"==typeof e.className?o=Ei(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var f=Ni(d.concat(c),t.registered,h);o+=t.key+"-"+f.name,void 0!==i&&(o+=" "+i);var m=u&&void 0===a?Ts(r):l,v={};for(var g in e)u&&"as"===g||m(g)&&(v[g]=e[g]);return v.className=o,n&&(v.ref=n),De(je,null,De(Cs,{cache:t,serialized:f,isStringTag:"string"==typeof r}),De(r,v))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=s,f.__emotion_styles=d,f.__emotion_forwardProp=a,Object.defineProperty(f,"toString",{value:function(){return"."+i}}),f.withComponent=function(t,r){return e(t,Jr({},n,r,{shouldForwardProp:As(f,r,!0)})).apply(void 0,d)},f}}.bind();function Os({title:e,titleId:t,...n},r){return De("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?De("title",{id:t},e):null,De("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Rs[e]=Rs(e)}));const Fs=tr(Os);function Ms({title:e,titleId:t,...n},r){return De("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?De("title",{id:t},e):null,De("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Ls=tr(Ms),Ds=Rs.td`
|
|
3
|
+
`}),io(Ji,{styles:so})]});let lo;const uo=()=>Bn(lo);class co extends Error{constructor(e,t){super(e),__publicField(this,"response"),this.response=t}}const ho=async(e,t,n,r)=>{await po(e,t,n,r,!0)},po=async(e,t,n,r,i)=>{const o=await fetch(e,{method:n,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.4.53817",authorization:`Bearer ${t}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!o.ok)throw new co(`[API Error] Status: ${o.statusText}. Response: ${await o.text()}`,o);return i?{}:await o.json()},fo=()=>{const e=uo();return{getAllPromotions:In((()=>{return t=e.backend,async()=>{const e=new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion`);return po(e,t.accessToken,"GET")};var t}),[e.backend]),createPromotion:In((()=>{return t=e.backend,async e=>{const n=new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion`);return ho(n,t.accessToken,"POST",e)};var t}),[e.backend]),updatePromotion:In((()=>{return t=e.backend,e=>async n=>{const r=new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion/${e}`);return ho(r,t.accessToken,"PUT",n)};var t}),[e.backend])}};var mo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},vo="undefined"==typeof window||"Deno"in globalThis;function go(){}function yo(e){return"number"==typeof e&&e>=0&&e!==1/0}function _o(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bo(e,t){return"function"==typeof e?e(t):e}function wo(e,t){return"function"==typeof e?e(t):e}function xo(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s)if(r){if(t.queryHash!==ko(s,t.options))return!1}else if(!Po(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function So(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Eo(t.options.mutationKey)!==Eo(o))return!1}else if(!Po(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function ko(e,t){return((null==t?void 0:t.queryKeyHashFn)||Eo)(e)}function Eo(e){return JSON.stringify(e,((e,t)=>Ro(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Po(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Po(e[n],t[n]))))}function To(e,t){if(e===t)return e;const n=Co(e)&&Co(t);if(n||Ro(e)&&Ro(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const i=n?u:o[u];(!n&&r.includes(i)||n)&&void 0===e[i]&&void 0===t[i]?(a[i]=void 0,l++):(a[i]=To(e[i],t[i]),a[i]===e[i]&&void 0!==e[i]&&l++)}return i===s&&l===i?e:a}return t}function Ao(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Co(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ro(e){if(!Oo(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Oo(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function Oo(e){return"[object Object]"===Object.prototype.toString.call(e)}function Fo(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?To(e,t):t}function Mo(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Lo(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Do=Symbol();function Vo(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==Do?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var Io=new(r=class extends mo{constructor(){super(),__privateAdd(this,e),__privateAdd(this,t),__privateAdd(this,n),__privateSet(this,n,(e=>{if(!vo&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){__privateGet(this,t)||this.setEventListener(__privateGet(this,n))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,t))||e.call(this),__privateSet(this,t,void 0))}setEventListener(e){var r;__privateSet(this,n,e),null==(r=__privateGet(this,t))||r.call(this),__privateSet(this,t,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})))}setFocused(t){__privateGet(this,e)!==t&&(__privateSet(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var t;return"boolean"==typeof __privateGet(this,e)?__privateGet(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,n=new WeakMap,r),jo=new(a=class extends mo{constructor(){super(),__privateAdd(this,i,!0),__privateAdd(this,o),__privateAdd(this,s),__privateSet(this,s,(e=>{if(!vo&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}))}onSubscribe(){__privateGet(this,o)||this.setEventListener(__privateGet(this,s))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,o))||e.call(this),__privateSet(this,o,void 0))}setEventListener(e){var t;__privateSet(this,s,e),null==(t=__privateGet(this,o))||t.call(this),__privateSet(this,o,e(this.setOnline.bind(this)))}setOnline(e){__privateGet(this,i)!==e&&(__privateSet(this,i,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return __privateGet(this,i)}},i=new WeakMap,o=new WeakMap,s=new WeakMap,a);function Bo(e){return Math.min(1e3*2**e,3e4)}function No(e){return"online"!==(e??"online")||jo.isOnline()}var Uo=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function Go(e){return e instanceof Uo}function Wo(e){let t,n,r,i=!1,o=0,s=!1;const a=new Promise(((e,t)=>{n=e,r=t})),l=()=>Io.isFocused()&&("always"===e.networkMode||jo.isOnline())&&e.canRun(),u=()=>No(e.networkMode)&&e.canRun(),c=r=>{var i;s||(s=!0,null==(i=e.onSuccess)||i.call(e,r),null==t||t(),n(r))},d=n=>{var i;s||(s=!0,null==(i=e.onError)||i.call(e,n),null==t||t(),r(n))},h=()=>new Promise((n=>{var r;t=e=>{(s||l())&&n(e)},null==(r=e.onPause)||r.call(e)})).then((()=>{var n;t=void 0,s||null==(n=e.onContinue)||n.call(e)})),p=()=>{if(s)return;let t;const n=0===o?e.initialPromise:void 0;try{t=n??e.fn()}catch(r){t=Promise.reject(r)}Promise.resolve(t).then(c).catch((t=>{var n;if(s)return;const r=e.retry??(vo?0:3),a=e.retryDelay??Bo,u="function"==typeof a?a(o,t):a,c=!0===r||"number"==typeof r&&o<r||"function"==typeof r&&r(o,t);var f;!i&&c?(o++,null==(n=e.onFail)||n.call(e,o,t),(f=u,new Promise((e=>{setTimeout(e,f)}))).then((()=>l()?void 0:h())).then((()=>{i?d(t):p()}))):d(t)}))};return{promise:a,cancel:t=>{var n;s||(d(new Uo(t)),null==(n=e.abort)||n.call(e))},continue:()=>(null==t||t(),a),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:u,start:()=>(u()?p():h().then(p),a)}}var Ho=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0);const o=r=>{t?e.push(r):i((()=>{n(r)}))};return{batch:o=>{let s;t++;try{s=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return s},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),$o=(u=class{constructor(){__privateAdd(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yo(this.gcTime)&&__privateSet(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vo?1/0:3e5))}clearGcTimeout(){__privateGet(this,l)&&(clearTimeout(__privateGet(this,l)),__privateSet(this,l,void 0))}},l=new WeakMap,u),zo=(y=class extends $o{constructor(e){super(),__privateAdd(this,v),__privateAdd(this,c),__privateAdd(this,d),__privateAdd(this,h),__privateAdd(this,p),__privateAdd(this,f),__privateAdd(this,m),__privateSet(this,m,!1),__privateSet(this,f,e.defaultOptions),this.setOptions(e.options),this.observers=[],__privateSet(this,h,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,__privateSet(this,c,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??__privateGet(this,c),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=__privateGet(this,p))?void 0:e.promise}setOptions(e){this.options={...__privateGet(this,f),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||__privateGet(this,h).remove(this)}setData(e,t){const n=Fo(this.state.data,e,this.options);return __privateMethod(this,v,g).call(this,{data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){__privateMethod(this,v,g).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null==(t=__privateGet(this,p))?void 0:t.promise;return null==(n=__privateGet(this,p))||n.cancel(e),r?r.then(go).catch(go):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(__privateGet(this,c))}isActive(){return this.observers.some((e=>!1!==wo(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!_o(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,p))||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,p))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),__privateGet(this,h).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(__privateGet(this,p)&&(__privateGet(this,m)?__privateGet(this,p).cancel({revert:!0}):__privateGet(this,p).cancelRetry()),this.scheduleGc()),__privateGet(this,h).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||__privateMethod(this,v,g).call(this,{type:"invalidate"})}fetch(e,t){var n,r,i;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(__privateGet(this,p))return __privateGet(this,p).continueRetry(),__privateGet(this,p).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const o=new AbortController,s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(__privateSet(this,m,!0),o.signal)})},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=Vo(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return s(n),__privateSet(this,m,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};s(a),null==(n=this.options.behavior)||n.onFetch(a,this),__privateSet(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(r=a.fetchOptions)?void 0:r.meta)||__privateMethod(this,v,g).call(this,{type:"fetch",meta:null==(i=a.fetchOptions)?void 0:i.meta});const l=e=>{var t,n,r,i;Go(e)&&e.silent||__privateMethod(this,v,g).call(this,{type:"error",error:e}),Go(e)||(null==(n=(t=__privateGet(this,h).config).onError)||n.call(t,e,this),null==(i=(r=__privateGet(this,h).config).onSettled)||i.call(r,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return __privateSet(this,p,Wo({initialPromise:null==t?void 0:t.initialPromise,fn:a.fetchFn,abort:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;if(void 0!==e){try{this.setData(e)}catch(o){return void l(o)}null==(n=(t=__privateGet(this,h).config).onSuccess)||n.call(t,e,this),null==(i=(r=__privateGet(this,h).config).onSettled)||i.call(r,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{__privateMethod(this,v,g).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,v,g).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,v,g).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),__privateGet(this,p).start()}},c=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,v=new WeakSet,g=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...qo(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return Go(n)&&n.revert&&__privateGet(this,d)?{...__privateGet(this,d),fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Ho.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),__privateGet(this,h).notify({query:this,type:"updated",action:e})}))},y);function qo(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:No(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Ko=(b=class extends mo{constructor(e={}){super(),__privateAdd(this,_),this.config=e,__privateSet(this,_,new Map)}build(e,t,n){const r=t.queryKey,i=t.queryHash??ko(r,t);let o=this.get(i);return o||(o=new zo({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){__privateGet(this,_).has(e.queryHash)||(__privateGet(this,_).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=__privateGet(this,_).get(e.queryHash);t&&(e.destroy(),t===e&&__privateGet(this,_).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ho.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return __privateGet(this,_).get(e)}getAll(){return[...__privateGet(this,_).values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>xo(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>xo(e,t))):t}notify(e){Ho.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Ho.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Ho.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},_=new WeakMap,b),Yo=(P=class extends $o{constructor(e){super(),__privateAdd(this,k),__privateAdd(this,w),__privateAdd(this,x),__privateAdd(this,S),this.mutationId=e.mutationId,__privateSet(this,x,e.mutationCache),__privateSet(this,w,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){__privateGet(this,w).includes(e)||(__privateGet(this,w).push(e),this.clearGcTimeout(),__privateGet(this,x).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){__privateSet(this,w,__privateGet(this,w).filter((t=>t!==e))),this.scheduleGc(),__privateGet(this,x).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){__privateGet(this,w).length||("pending"===this.state.status?this.scheduleGc():__privateGet(this,x).remove(this))}continue(){var e;return(null==(e=__privateGet(this,S))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,i,o,s,a,l,u,c,d,h,p,f,m,v,g,y,_,b;__privateSet(this,S,Wo({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{__privateMethod(this,k,E).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,k,E).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,k,E).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>__privateGet(this,x).canRun(this)}));const w="pending"===this.state.status,P=!__privateGet(this,S).canStart();try{if(!w){__privateMethod(this,k,E).call(this,{type:"pending",variables:e,isPaused:P}),await(null==(n=(t=__privateGet(this,x).config).onMutate)?void 0:n.call(t,e,this));const o=await(null==(i=(r=this.options).onMutate)?void 0:i.call(r,e));o!==this.state.context&&__privateMethod(this,k,E).call(this,{type:"pending",context:o,variables:e,isPaused:P})}const p=await __privateGet(this,S).start();return await(null==(s=(o=__privateGet(this,x).config).onSuccess)?void 0:s.call(o,p,e,this.state.context,this)),await(null==(l=(a=this.options).onSuccess)?void 0:l.call(a,p,e,this.state.context)),await(null==(c=(u=__privateGet(this,x).config).onSettled)?void 0:c.call(u,p,null,this.state.variables,this.state.context,this)),await(null==(h=(d=this.options).onSettled)?void 0:h.call(d,p,null,e,this.state.context)),__privateMethod(this,k,E).call(this,{type:"success",data:p}),p}catch(T){try{throw await(null==(f=(p=__privateGet(this,x).config).onError)?void 0:f.call(p,T,e,this.state.context,this)),await(null==(v=(m=this.options).onError)?void 0:v.call(m,T,e,this.state.context)),await(null==(y=(g=__privateGet(this,x).config).onSettled)?void 0:y.call(g,void 0,T,this.state.variables,this.state.context,this)),await(null==(b=(_=this.options).onSettled)?void 0:b.call(_,void 0,T,e,this.state.context)),T}finally{__privateMethod(this,k,E).call(this,{type:"error",error:T})}}finally{__privateGet(this,x).runNext(this)}}},w=new WeakMap,x=new WeakMap,S=new WeakMap,k=new WeakSet,E=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Ho.batch((()=>{__privateGet(this,w).forEach((t=>{t.onMutationUpdate(e)})),__privateGet(this,x).notify({mutation:this,type:"updated",action:e})}))},P);var Qo=(C=class extends mo{constructor(e={}){super(),__privateAdd(this,T),__privateAdd(this,A),this.config=e,__privateSet(this,T,new Map),__privateSet(this,A,Date.now())}build(e,t,n){const r=new Yo({mutationCache:this,mutationId:++__privateWrapper(this,A)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=Xo(e),n=__privateGet(this,T).get(t)??[];n.push(e),__privateGet(this,T).set(t,n),this.notify({type:"added",mutation:e})}remove(e){var t;const n=Xo(e);if(__privateGet(this,T).has(n)){const r=null==(t=__privateGet(this,T).get(n))?void 0:t.filter((t=>t!==e));r&&(0===r.length?__privateGet(this,T).delete(n):__privateGet(this,T).set(n,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null==(t=__privateGet(this,T).get(Xo(e)))?void 0:t.find((e=>"pending"===e.state.status));return!n||n===e}runNext(e){var t;const n=null==(t=__privateGet(this,T).get(Xo(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return(null==n?void 0:n.continue())??Promise.resolve()}clear(){Ho.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...__privateGet(this,T).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>So(t,e)))}findAll(e={}){return this.getAll().filter((t=>So(e,t)))}notify(e){Ho.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Ho.batch((()=>Promise.all(e.map((e=>e.continue().catch(go))))))}},T=new WeakMap,A=new WeakMap,C);function Xo(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function Zo(e){return{onFetch:(t,n)=>{var r,i,o,s,a;const l=t.options,u=null==(o=null==(i=null==(r=t.fetchOptions)?void 0:r.meta)?void 0:i.fetchMore)?void 0:o.direction,c=(null==(s=t.state.data)?void 0:s.pages)||[],d=(null==(a=t.state.data)?void 0:a.pageParams)||[];let h={pages:[],pageParams:[]},p=0;const f=async()=>{let n=!1;const r=Vo(t.options,t.fetchOptions),i=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);const s={queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};var a;a=s,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)});const l=await r(s),{maxPages:u}=t.options,c=o?Lo:Mo;return{pages:c(e.pages,l,u),pageParams:c(e.pageParams,i,u)}};if(u&&c.length){const e="backward"===u,t={pages:c,pageParams:d},n=(e?es:Jo)(l,t);h=await i(t,n,e)}else{const t=e??c.length;do{const e=0===p?d[0]??l.initialPageParam:Jo(l,h);if(p>0&&null==e)break;h=await i(h,e),p++}while(p<t)}return h};t.options.persister?t.fetchFn=()=>{var e,r;return null==(r=(e=t.options).persister)?void 0:r.call(e,f,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function Jo(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function es(e,{pages:t,pageParams:n}){var r;return t.length>0?null==(r=e.getPreviousPageParam)?void 0:r.call(e,t[0],t,n[0],n):void 0}var ts=(j=class{constructor(e={}){__privateAdd(this,R),__privateAdd(this,O),__privateAdd(this,F),__privateAdd(this,M),__privateAdd(this,L),__privateAdd(this,D),__privateAdd(this,V),__privateAdd(this,I),__privateSet(this,R,e.queryCache||new Ko),__privateSet(this,O,e.mutationCache||new Qo),__privateSet(this,F,e.defaultOptions||{}),__privateSet(this,M,new Map),__privateSet(this,L,new Map),__privateSet(this,D,0)}mount(){__privateWrapper(this,D)._++,1===__privateGet(this,D)&&(__privateSet(this,V,Io.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,R).onFocus())}))),__privateSet(this,I,jo.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,R).onOnline())}))))}unmount(){var e,t;__privateWrapper(this,D)._--,0===__privateGet(this,D)&&(null==(e=__privateGet(this,V))||e.call(this),__privateSet(this,V,void 0),null==(t=__privateGet(this,I))||t.call(this),__privateSet(this,I,void 0))}isFetching(e){return __privateGet(this,R).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return __privateGet(this,O).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,R).get(n.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=__privateGet(this,R).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(bo(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return __privateGet(this,R).findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=__privateGet(this,R).get(r.queryHash),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==i?void 0:i.state.data);if(void 0!==o)return __privateGet(this,R).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ho.batch((()=>__privateGet(this,R).findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,R).get(n.queryHash))?void 0:t.state}removeQueries(e){const t=__privateGet(this,R);Ho.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=__privateGet(this,R),r={type:"active",...e};return Ho.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ho.batch((()=>__privateGet(this,R).findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(go).catch(go)}invalidateQueries(e={},t={}){return Ho.batch((()=>{if(__privateGet(this,R).findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)}))}refetchQueries(e={},t){const n={...t,cancelRefetch:(null==t?void 0:t.cancelRefetch)??!0},r=Ho.batch((()=>__privateGet(this,R).findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(go)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(go)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=__privateGet(this,R).build(this,t);return n.isStaleByTime(bo(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(go).catch(go)}fetchInfiniteQuery(e){return e.behavior=Zo(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(go).catch(go)}ensureInfiniteQueryData(e){return e.behavior=Zo(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return jo.isOnline()?__privateGet(this,O).resumePausedMutations():Promise.resolve()}getQueryCache(){return __privateGet(this,R)}getMutationCache(){return __privateGet(this,O)}getDefaultOptions(){return __privateGet(this,F)}setDefaultOptions(e){__privateSet(this,F,e)}setQueryDefaults(e,t){__privateGet(this,M).set(Eo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...__privateGet(this,M).values()];let n={};return t.forEach((t=>{Po(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){__privateGet(this,L).set(Eo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...__privateGet(this,L).values()];let n={};return t.forEach((t=>{Po(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...__privateGet(this,F).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ko(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===Do&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...__privateGet(this,F).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){__privateGet(this,R).clear(),__privateGet(this,O).clear()}},R=new WeakMap,O=new WeakMap,F=new WeakMap,M=new WeakMap,L=new WeakMap,D=new WeakMap,V=new WeakMap,I=new WeakMap,j),ns=(ue=class extends mo{constructor(e,t){super(),__privateAdd(this,J),__privateAdd(this,B),__privateAdd(this,N),__privateAdd(this,U),__privateAdd(this,G),__privateAdd(this,W),__privateAdd(this,H),__privateAdd(this,$),__privateAdd(this,z),__privateAdd(this,q),__privateAdd(this,K),__privateAdd(this,Y),__privateAdd(this,Q),__privateAdd(this,X),__privateAdd(this,Z,new Set),this.options=t,__privateSet(this,B,e),__privateSet(this,$,null),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(__privateGet(this,N).addObserver(this),rs(__privateGet(this,N),this.options)?__privateMethod(this,J,ee).call(this):this.updateResult(),__privateMethod(this,J,ie).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return is(__privateGet(this,N),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return is(__privateGet(this,N),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,__privateMethod(this,J,oe).call(this),__privateMethod(this,J,se).call(this),__privateGet(this,N).removeObserver(this)}setOptions(e,t){const n=this.options,r=__privateGet(this,N);if(this.options=__privateGet(this,B).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof wo(this.options.enabled,__privateGet(this,N)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");__privateMethod(this,J,ae).call(this),__privateGet(this,N).setOptions(this.options),n._defaulted&&!Ao(this.options,n)&&__privateGet(this,B).getQueryCache().notify({type:"observerOptionsUpdated",query:__privateGet(this,N),observer:this});const i=this.hasListeners();i&&os(__privateGet(this,N),r,this.options,n)&&__privateMethod(this,J,ee).call(this),this.updateResult(t),!i||__privateGet(this,N)===r&&wo(this.options.enabled,__privateGet(this,N))===wo(n.enabled,__privateGet(this,N))&&bo(this.options.staleTime,__privateGet(this,N))===bo(n.staleTime,__privateGet(this,N))||__privateMethod(this,J,te).call(this);const o=__privateMethod(this,J,ne).call(this);!i||__privateGet(this,N)===r&&wo(this.options.enabled,__privateGet(this,N))===wo(n.enabled,__privateGet(this,N))&&o===__privateGet(this,X)||__privateMethod(this,J,re).call(this,o)}getOptimisticResult(e){const t=__privateGet(this,B).getQueryCache().build(__privateGet(this,B),e),n=this.createResult(t,e);return function(e,t){if(!Ao(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(__privateSet(this,G,n),__privateSet(this,H,this.options),__privateSet(this,W,__privateGet(this,N).state)),n}getCurrentResult(){return __privateGet(this,G)}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),null==t||t(r),e[r])})})),n}trackProp(e){__privateGet(this,Z).add(e)}getCurrentQuery(){return __privateGet(this,N)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=__privateGet(this,B).defaultQueryOptions(e),n=__privateGet(this,B).getQueryCache().build(__privateGet(this,B),t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return __privateMethod(this,J,ee).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),__privateGet(this,G))))}createResult(e,t){var n;const r=__privateGet(this,N),i=this.options,o=__privateGet(this,G),s=__privateGet(this,W),a=__privateGet(this,H),l=e!==r?e.state:__privateGet(this,U),{state:u}=e;let c,d={...u},h=!1;if(t._optimisticResults){const n=this.hasListeners(),o=!n&&rs(e,t),s=n&&os(e,r,t,i);(o||s)&&(d={...d,...qo(u.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:p,errorUpdatedAt:f,status:m}=d;if(t.select&&void 0!==d.data)if(o&&d.data===(null==s?void 0:s.data)&&t.select===__privateGet(this,z))c=__privateGet(this,q);else try{__privateSet(this,z,t.select),c=t.select(d.data),c=Fo(null==o?void 0:o.data,c,t),__privateSet(this,q,c),__privateSet(this,$,null)}catch(w){__privateSet(this,$,w)}else c=d.data;if(void 0!==t.placeholderData&&void 0===c&&"pending"===m){let e;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==a?void 0:a.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(null==(n=__privateGet(this,K))?void 0:n.state.data,__privateGet(this,K)):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),__privateSet(this,$,null)}catch(w){__privateSet(this,$,w)}void 0!==e&&(m="success",c=Fo(null==o?void 0:o.data,e,t),h=!0)}__privateGet(this,$)&&(p=__privateGet(this,$),c=__privateGet(this,q),f=Date.now(),m="error");const v="fetching"===d.fetchStatus,g="pending"===m,y="error"===m,_=g&&v,b=void 0!==c;return{status:m,fetchStatus:d.fetchStatus,isPending:g,isSuccess:"success"===m,isError:y,isInitialLoading:_,isLoading:_,data:c,dataUpdatedAt:d.dataUpdatedAt,error:p,errorUpdatedAt:f,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!g,isLoadingError:y&&!b,isPaused:"paused"===d.fetchStatus,isPlaceholderData:h,isRefetchError:y&&b,isStale:ss(e,t),refetch:this.refetch}}updateResult(e){const t=__privateGet(this,G),n=this.createResult(__privateGet(this,N),this.options);if(__privateSet(this,W,__privateGet(this,N).state),__privateSet(this,H,this.options),void 0!==__privateGet(this,W).data&&__privateSet(this,K,__privateGet(this,N)),Ao(n,t))return;__privateSet(this,G,n);const r={};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!__privateGet(this,Z).size)return!0;const r=new Set(n??__privateGet(this,Z));return this.options.throwOnError&&r.add("error"),Object.keys(__privateGet(this,G)).some((e=>{const n=e;return __privateGet(this,G)[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),__privateMethod(this,J,le).call(this,{...r,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&__privateMethod(this,J,ie).call(this)}},B=new WeakMap,N=new WeakMap,U=new WeakMap,G=new WeakMap,W=new WeakMap,H=new WeakMap,$=new WeakMap,z=new WeakMap,q=new WeakMap,K=new WeakMap,Y=new WeakMap,Q=new WeakMap,X=new WeakMap,Z=new WeakMap,J=new WeakSet,ee=function(e){__privateMethod(this,J,ae).call(this);let t=__privateGet(this,N).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(go)),t},te=function(){__privateMethod(this,J,oe).call(this);const e=bo(this.options.staleTime,__privateGet(this,N));if(vo||__privateGet(this,G).isStale||!yo(e))return;const t=_o(__privateGet(this,G).dataUpdatedAt,e);__privateSet(this,Y,setTimeout((()=>{__privateGet(this,G).isStale||this.updateResult()}),t+1))},ne=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(__privateGet(this,N)):this.options.refetchInterval)??!1},re=function(e){__privateMethod(this,J,se).call(this),__privateSet(this,X,e),!vo&&!1!==wo(this.options.enabled,__privateGet(this,N))&&yo(__privateGet(this,X))&&0!==__privateGet(this,X)&&__privateSet(this,Q,setInterval((()=>{(this.options.refetchIntervalInBackground||Io.isFocused())&&__privateMethod(this,J,ee).call(this)}),__privateGet(this,X)))},ie=function(){__privateMethod(this,J,te).call(this),__privateMethod(this,J,re).call(this,__privateMethod(this,J,ne).call(this))},oe=function(){__privateGet(this,Y)&&(clearTimeout(__privateGet(this,Y)),__privateSet(this,Y,void 0))},se=function(){__privateGet(this,Q)&&(clearInterval(__privateGet(this,Q)),__privateSet(this,Q,void 0))},ae=function(){const e=__privateGet(this,B).getQueryCache().build(__privateGet(this,B),this.options);if(e===__privateGet(this,N))return;const t=__privateGet(this,N);__privateSet(this,N,e),__privateSet(this,U,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))},le=function(e){Ho.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(__privateGet(this,G))})),__privateGet(this,B).getQueryCache().notify({query:__privateGet(this,N),type:"observerResultsUpdated"})}))},ue);function rs(e,t){return function(e,t){return!1!==wo(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&is(e,t,t.refetchOnMount)}function is(e,t,n){if(!1!==wo(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&ss(e,t)}return!1}function os(e,t,n,r){return(e!==t||!1===wo(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&ss(e,n)}function ss(e,t){return!1!==wo(t.enabled,e)&&e.isStaleByTime(bo(t.staleTime,e))}var as=(ge=class extends mo{constructor(e,t){super(),__privateAdd(this,fe),__privateAdd(this,ce),__privateAdd(this,de),__privateAdd(this,he),__privateAdd(this,pe),__privateSet(this,ce,e),this.setOptions(t),this.bindMethods(),__privateMethod(this,fe,me).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=__privateGet(this,ce).defaultMutationOptions(e),Ao(this.options,n)||__privateGet(this,ce).getMutationCache().notify({type:"observerOptionsUpdated",mutation:__privateGet(this,he),observer:this}),(null==n?void 0:n.mutationKey)&&this.options.mutationKey&&Eo(n.mutationKey)!==Eo(this.options.mutationKey)?this.reset():"pending"===(null==(t=__privateGet(this,he))?void 0:t.state.status)&&__privateGet(this,he).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=__privateGet(this,he))||e.removeObserver(this)}onMutationUpdate(e){__privateMethod(this,fe,me).call(this),__privateMethod(this,fe,ve).call(this,e)}getCurrentResult(){return __privateGet(this,de)}reset(){var e;null==(e=__privateGet(this,he))||e.removeObserver(this),__privateSet(this,he,void 0),__privateMethod(this,fe,me).call(this),__privateMethod(this,fe,ve).call(this)}mutate(e,t){var n;return __privateSet(this,pe,t),null==(n=__privateGet(this,he))||n.removeObserver(this),__privateSet(this,he,__privateGet(this,ce).getMutationCache().build(__privateGet(this,ce),this.options)),__privateGet(this,he).addObserver(this),__privateGet(this,he).execute(e)}},ce=new WeakMap,de=new WeakMap,he=new WeakMap,pe=new WeakMap,fe=new WeakSet,me=function(){var e;const t=(null==(e=__privateGet(this,he))?void 0:e.state)??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};__privateSet(this,de,{...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset})},ve=function(e){Ho.batch((()=>{var t,n,r,i,o,s,a,l;if(__privateGet(this,pe)&&this.hasListeners()){const u=__privateGet(this,de).variables,c=__privateGet(this,de).context;"success"===(null==e?void 0:e.type)?(null==(n=(t=__privateGet(this,pe)).onSuccess)||n.call(t,e.data,u,c),null==(i=(r=__privateGet(this,pe)).onSettled)||i.call(r,e.data,null,u,c)):"error"===(null==e?void 0:e.type)&&(null==(s=(o=__privateGet(this,pe)).onError)||s.call(o,e.error,u,c),null==(l=(a=__privateGet(this,pe)).onSettled)||l.call(a,void 0,e.error,u,c))}this.listeners.forEach((e=>{e(__privateGet(this,de))}))}))},ge),ls=ot(void 0),us=e=>{const t=Bn(ls);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},cs=({client:e,children:t})=>(Mn((()=>(e.mount(),()=>{e.unmount()})),[e]),no(ls.Provider,{value:e,children:t})),ds=ot(!1),hs=()=>Bn(ds);ds.Provider;var ps=ot(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),fs=()=>Bn(ps);function ms(e,t){return"function"==typeof e?e(...t):!!e}function vs(){}var gs=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},ys=e=>{Mn((()=>{e.clearReset()}),[e])},_s=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&ms(n,[e.error,r]),bs=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},ws=(e,t)=>(null==e?void 0:e.suspense)&&t.isPending,xs=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function Ss(e,t){return function(e,t){var n,r,i,o;const s=us(),a=hs(),l=fs(),u=s.defaultQueryOptions(e);null==(r=null==(n=s.getDefaultOptions().queries)?void 0:n._experimental_beforeQuery)||r.call(n,u),u._optimisticResults=a?"isRestoring":"optimistic",bs(u),gs(u,l),ys(l);const[c]=On((()=>new t(s,u))),d=c.getOptimisticResult(u);if(Yr(jn((e=>{const t=a?()=>{}:c.subscribe(Ho.batchCalls(e));return c.updateResult(),t}),[c,a]),(()=>c.getCurrentResult())),Mn((()=>{c.setOptions(u,{listeners:!1})}),[u,c]),ws(u,d))throw xs(u,c,l);if(_s({result:d,errorResetBoundary:l,throwOnError:u.throwOnError,query:s.getQueryCache().get(u.queryHash)}))throw d.error;return null==(o=null==(i=s.getDefaultOptions().queries)?void 0:i._experimental_afterQuery)||o.call(i,u,d),u.notifyOnChangeProps?d:c.trackResult(d)}(e,ns)}var ks=/^((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)-.*))$/,Es=ln((function(e){return ks.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ps=function(e){return"theme"!==e},Ts=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Es:Ps},As=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Cs=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Pi(t,n,r),Gi((function(){return Ti(t,n,r)})),null},Rs=function e(t,n){var r,i,o=t.__emotion_real===t,s=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var a=As(t,n,o),l=a||Ts(s),u=!l("as");return function(){var c=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var h=c.length,p=1;p<h;p++)d.push(c[p],c[0][p])}var f=zi((function(e,t,n){var r=u&&e.as||s,o="",c=[],h=e;if(null==e.theme){for(var p in h={},e)h[p]=e[p];h.theme=Bn(qi)}"string"==typeof e.className?o=Ei(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var f=Ni(d.concat(c),t.registered,h);o+=t.key+"-"+f.name,void 0!==i&&(o+=" "+i);var m=u&&void 0===a?Ts(r):l,v={};for(var g in e)u&&"as"===g||m(g)&&(v[g]=e[g]);return v.className=o,n&&(v.ref=n),De(je,null,De(Cs,{cache:t,serialized:f,isStringTag:"string"==typeof r}),De(r,v))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=s,f.__emotion_styles=d,f.__emotion_forwardProp=a,Object.defineProperty(f,"toString",{value:function(){return"."+i}}),f.withComponent=function(t,r){return e(t,Jr({},n,r,{shouldForwardProp:As(f,r,!0)})).apply(void 0,d)},f}}.bind();function Os({title:e,titleId:t,...n},r){return De("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?De("title",{id:t},e):null,De("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Rs[e]=Rs(e)}));const Fs=tr(Os);function Ms({title:e,titleId:t,...n},r){return De("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?De("title",{id:t},e):null,De("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Ls=tr(Ms),Ds=Rs.td`
|
|
4
4
|
${{whiteSpace:"nowrap",paddingTop:"1rem",paddingBottom:"1rem",paddingLeft:"1rem",paddingRight:"0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}}
|
|
5
5
|
`,Vs=Rs.td`
|
|
6
6
|
${{whiteSpace:"nowrap",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}}
|