@flarehr/promoted-benefits-admin 1.3.1677 → 1.3.1697

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