@qratilabs/qrati-connect 2.32.2 → 2.33.0

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 (72) hide show
  1. package/element/B60TJHpn.js +1 -0
  2. package/element/{DiQrTagI2.js → BX09gwBu.js} +1 -1
  3. package/element/{BZSy_Rh42.js → BgmJHB_q.js} +18 -18
  4. package/element/{CDBzc1CZ.js → BhPQW37y.js} +1 -1
  5. package/element/BhUO8wHu.js +16 -0
  6. package/element/BhYfK52W.js +207 -0
  7. package/element/BjDK8Ljd.js +85 -0
  8. package/element/Bjbk1Zhj.js +1 -0
  9. package/element/BlsbPO0-.js +1 -0
  10. package/element/{DFRMtMLz.js → Bpjf4eY9.js} +1 -1
  11. package/element/{DUS9pix12.js → BtLTtkX8.js} +1 -1
  12. package/element/{CaTxtEbg.js → BuT9kfma.js} +1 -1
  13. package/element/Bx-BFs7B.js +4 -0
  14. package/element/{DtBnBN-i.js → BzXQkPAW.js} +1 -1
  15. package/element/{D-U23_J5.js → CGJtMtq6.js} +36 -36
  16. package/element/CVlMw3Vf.js +3 -0
  17. package/element/CYHy0vN3.js +1 -0
  18. package/element/CZJLtvF9.js +4 -0
  19. package/element/CfNXbM5H.js +2 -0
  20. package/element/ChW2P7vL.js +2 -0
  21. package/element/CrZvMeF8.js +8 -0
  22. package/element/{DdQWa3ny.js → Crg6P9Om.js} +1 -1
  23. package/element/{BOsbbHJ0.js → D9jzGMeN.js} +3 -3
  24. package/element/DExU6-v2.js +5 -0
  25. package/element/{CmcA5dp5.js → DMAkdDxr.js} +32 -32
  26. package/element/DMPvw0Jw.js +3 -0
  27. package/element/DjFlbVE4.js +8 -0
  28. package/element/{DO2-BnvU.js → DjKx2bl9.js} +3 -2
  29. package/element/{DRD9__VZ.js → DkrE1H9J.js} +1 -1
  30. package/element/DnrkqfsH.js +14 -0
  31. package/element/ILtcTVir.js +93 -0
  32. package/element/{BOweSM9Y.js → PxjP9VKW.js} +1 -1
  33. package/element/{DjOFnmwA.js → RLxieWpc.js} +1 -1
  34. package/element/{GwDdmgYd.js → SAPFe3AV.js} +1 -1
  35. package/element/ThvpIBOm.js +4 -0
  36. package/element/X8kQCV14.js +5 -0
  37. package/element/{CoARa5_i.js → ZWATOkpE.js} +1 -1
  38. package/element/{CE0UwtGX.js → k9JmIPl-.js} +7 -7
  39. package/element/{iDDlbtVI.js → pRu0r7dI.js} +1 -1
  40. package/element/plowVrDm.js +4 -0
  41. package/element/{XVFdeOm22.js → qTO-oPOF.js} +1 -1
  42. package/element/web.es.js +1 -1
  43. package/element/x3_URwMQ.js +3 -0
  44. package/element/{BeaTNG7m.js → xPFFaUda.js} +1 -1
  45. package/embed/embed.js +1 -1
  46. package/package.json +1 -1
  47. package/element/3CNVs83G2.js +0 -4
  48. package/element/B2ryYFFr.js +0 -4
  49. package/element/BNHdfdME.js +0 -1
  50. package/element/BP08t9Jp2.js +0 -8
  51. package/element/BRwZXuo82.js +0 -3
  52. package/element/BiCaKAmb.js +0 -4
  53. package/element/Bv4TkNQ42.js +0 -85
  54. package/element/BypLxR3J.js +0 -16
  55. package/element/C7zv6hcG.js +0 -1
  56. package/element/CD73UkPZ.js +0 -2
  57. package/element/CGlyix6P.js +0 -93
  58. package/element/Cr5o77zq.js +0 -199
  59. package/element/D3OYeY482.js +0 -8
  60. package/element/DVo8WBwP2.js +0 -4
  61. package/element/DXFmV-Ty2.js +0 -14
  62. package/element/Da6CorI52.js +0 -5
  63. package/element/DdACKOZr.js +0 -1
  64. package/element/DnnkdZ6w2.js +0 -3
  65. package/element/DsU4DxSM.js +0 -3
  66. package/element/OnH8Izqn.js +0 -1
  67. package/element/_d0Pbeg3.js +0 -5
  68. package/element/cjsXyqlO2.js +0 -1
  69. package/element/tvCSWnLG.js +0 -2
  70. /package/element/{BUDCYszs2.js → BUDCYszs.js} +0 -0
  71. /package/element/{CfMNBPpx2.js → CfMNBPpx.js} +0 -0
  72. /package/element/{DnIueBGr2.js → DnIueBGr.js} +0 -0
@@ -0,0 +1,207 @@
1
+ import{n as t}from"./BlsbPO0-.js";var e,r,o,a,n,i,s,l,c,d,u,h,p,f,m,g={},y=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function w(t,e){for(var r in e)t[r]=e[r];return t}function _(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function x(t,r,o){var a,n,i,s={};for(i in r)"key"==i?a=r[i]:"ref"==i?n=r[i]:s[i]=r[i];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===s[i]&&(s[i]=t.defaultProps[i]);return k(t,s,a,n,null)}function k(t,e,a,n,i){var s={type:t,props:e,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==i?++o:i,__i:-1,__u:0};return null==i&&null!=r.vnode&&r.vnode(s),s}function T(t){return t.children}function E(t,e){this.props=t,this.context=e}function S(t,e){if(null==e)return t.__?S(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?S(t):null}function C(t){if(t.__P&&t.__d){var e=t.__v,o=e.__e,a=[],n=[],i=w({},e);i.__v=e.__v+1,r.vnode&&r.vnode(i),D(t.__P,i,e,t.__n,t.__P.namespaceURI,32&e.__u?[o]:null,a,null==o?S(e):o,!!(32&e.__u),n),i.__v=e.__v,i.__.__k[i.__i]=i,F(a,i,n),e.__e=e.__=null,i.__e!=o&&I(i)}}function I(t){if(null!=(t=t.__)&&null!=t.__c)return t.__e=t.__c.base=null,t.__k.some(function(e){if(null!=e&&null!=e.__e)return t.__e=t.__c.base=e.__e}),I(t)}function N(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!R.__r++||n!=r.debounceRendering)&&((n=r.debounceRendering)||i)(R)}function R(){try{for(var t,e=1;a.length;)a.length>e&&a.sort(s),t=a.shift(),e=a.length,C(t)}finally{a.length=R.__r=0}}function O(t,e,r,o,a,n,i,s,l,c,d){var u,h,p,f,m,v,w,_=o&&o.__k||y,x=e.length;for(l=function(t,e,r,o,a){var n,i,s,l,c,d=r.length,u=d,h=0;for(t.__k=new Array(a),n=0;n<a;n++)null!=(i=e[n])&&"boolean"!=typeof i&&"function"!=typeof i?("string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?i=t.__k[n]=k(null,i,null,null,null):b(i)?i=t.__k[n]=k(T,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?i=t.__k[n]=k(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):t.__k[n]=i,l=n+h,i.__=t,i.__b=t.__b+1,s=null,-1!=(c=i.__i=q(i,r,l,u))&&(u--,(s=r[c])&&(s.__u|=2)),null==s||null==s.__v?(-1==c&&(a>d?h--:a<d&&h++),"function"!=typeof i.type&&(i.__u|=4)):c!=l&&(c==l-1?h--:c==l+1?h++:(c>l?h--:h++,i.__u|=4))):t.__k[n]=null;if(u)for(n=0;n<d;n++)null!=(s=r[n])&&!(2&s.__u)&&(s.__e==o&&(o=S(s)),H(s,s));return o}(r,e,_,l,x),u=0;u<x;u++)null!=(p=r.__k[u])&&(h=-1!=p.__i&&_[p.__i]||g,p.__i=u,v=D(t,p,h,a,n,i,s,l,c,d),f=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&B(h.ref,null,p),d.push(p.ref,p.__c||f,p)),null==m&&null!=f&&(m=f),(w=!!(4&p.__u))||h.__k===p.__k?(l=A(p,l,t,w),w&&h.__e&&(h.__e=null)):"function"==typeof p.type&&void 0!==v?l=v:f&&(l=f.nextSibling),p.__u&=-7);return r.__e=m,l}function A(t,e,r,o){var a,n;if("function"==typeof t.type){for(a=t.__k,n=0;a&&n<a.length;n++)a[n]&&(a[n].__=t,e=A(a[n],e,r,o));return e}t.__e!=e&&(o&&(e&&t.type&&!e.parentNode&&(e=S(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function P(t,e){return e=e||[],null==t||"boolean"==typeof t||(b(t)?t.some(function(t){P(t,e)}):e.push(t)),e}function q(t,e,r,o){var a,n,i,s=t.key,l=t.type,c=e[r],d=null!=c&&!(2&c.__u);if(null===c&&null==s||d&&s==c.key&&l==c.type)return r;if(o>(d?1:0))for(a=r-1,n=r+1;a>=0||n<e.length;)if(null!=(c=e[i=a>=0?a--:n++])&&!(2&c.__u)&&s==c.key&&l==c.type)return i;return-1}function z(t,e,r){"-"==e[0]?t.setProperty(e,null==r?"":r):t[e]=null==r?"":"number"!=typeof r||v.test(e)?r:r+"px"}function M(t,e,r,o,a){var n,i;t:if("style"==e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)r&&e in r||z(t.style,e,"");if(r)for(e in r)o&&r[e]==o[e]||z(t.style,e,r[e])}else if("o"==e[0]&&"n"==e[1])n=e!=(e=e.replace(u,"$1")),i=e.toLowerCase(),e=i in t||"onFocusOut"==e||"onFocusIn"==e?i.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+n]=r,r?o?r[d]=o[d]:(r[d]=h,t.addEventListener(e,n?f:p,n)):t.removeEventListener(e,n?f:p,n);else{if("http://www.w3.org/2000/svg"==a)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==r?"":r;break t}catch(t){}"function"==typeof r||(null==r||!1===r&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==r?"":r))}}function L(t){return function(e){if(this.l){var o=this.l[e.type+t];if(null==e[c])e[c]=h++;else if(e[c]<o[d])return;return o(r.event?r.event(e):e)}}}function D(t,e,o,a,n,i,s,l,c,d){var u,h,p,f,m,g,v,x,k,S,C,I,N,R,A,P,q=e.type;if(void 0!==e.constructor)return null;128&o.__u&&(c=!!(32&o.__u),i=[l=e.__e=o.__e]),(u=r.__b)&&u(e);t:if("function"==typeof q){h=s.length;try{if(k=e.props,S=q.prototype&&q.prototype.render,C=(u=q.contextType)&&a[u.__c],I=u?C?C.props.value:u.__:a,o.__c?x=(p=e.__c=o.__c).__=p.__E:(S?e.__c=p=new q(k,I):(e.__c=p=new E(k,I),p.constructor=q,p.render=V),C&&C.sub(p),p.state||(p.state={}),p.__n=a,f=p.__d=!0,p.__h=[],p._sb=[]),S&&null==p.__s&&(p.__s=p.state),S&&null!=q.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=w({},p.__s)),w(p.__s,q.getDerivedStateFromProps(k,p.__s))),m=p.props,g=p.state,p.__v=e,f)S&&null==q.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),S&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(S&&null==q.getDerivedStateFromProps&&k!==m&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(k,I),e.__v==o.__v||!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(k,p.__s,I)){e.__v!=o.__v&&(p.props=k,p.state=p.__s,p.__d=!1),e.__e=o.__e,e.__k=o.__k,e.__k.some(function(t){t&&(t.__=e)}),y.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&s.push(p);break t}null!=p.componentWillUpdate&&p.componentWillUpdate(k,p.__s,I),S&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(m,g,v)})}if(p.context=I,p.props=k,p.__P=t,p.__e=!1,N=r.__r,R=0,S)p.state=p.__s,p.__d=!1,N&&N(e),u=p.render(p.props,p.state,p.context),y.push.apply(p.__h,p._sb),p._sb=[];else do{p.__d=!1,N&&N(e),u=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++R<25);p.state=p.__s,null!=p.getChildContext&&(a=w(w({},a),p.getChildContext())),S&&!f&&null!=p.getSnapshotBeforeUpdate&&(v=p.getSnapshotBeforeUpdate(m,g)),A=null!=u&&u.type===T&&null==u.key?j(u.props.children):u,l=O(t,b(A)?A:[A],e,o,a,n,i,s,l,c,d),p.base=e.__e,e.__u&=-161,p.__h.length&&s.push(p),x&&(p.__E=p.__=null)}catch(t){if(s.length=h,e.__v=null,c||null!=i){if(t.then){for(e.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;null!=i&&(i[i.indexOf(l)]=null),e.__e=l}else if(null!=i)for(P=i.length;P--;)_(i[P])}else e.__e=o.__e;e.__k??=o.__k||[],t.then||U(e),r.__e(t,e,o)}}else null==i&&e.__v==o.__v?(e.__k=o.__k,e.__e=o.__e):l=e.__e=$(o.__e,e,o,a,n,i,s,c,d);return(u=r.diffed)&&u(e),128&e.__u?void 0:l}function U(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(U))}function F(t,e,o){for(var a=0;a<o.length;a++)B(o[a],o[++a],o[++a]);r.__c&&r.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){r.__e(t,e.__v)}})}function j(t){return"object"!=typeof t||null==t||t.__b>0?t:b(t)?t.map(j):void 0!==t.constructor?null:w({},t)}function $(t,o,a,n,i,s,l,c,d){var u,h,p,f,m,y,v,w=a.props||g,x=o.props,k=o.type;if("svg"==k?i="http://www.w3.org/2000/svg":"math"==k?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=s)for(u=0;u<s.length;u++)if((m=s[u])&&"setAttribute"in m==!!k&&(k?m.localName==k:3==m.nodeType)){t=m,s[u]=null;break}if(null==t){if(null==k)return document.createTextNode(x);t=document.createElementNS(i,k,x.is&&x),c&&(r.__m&&r.__m(o,s),c=!1),s=null}if(null==k)w===x||c&&t.data==x||(t.data=x);else{if(s="textarea"==k&&null!=x.defaultValue?null:s&&e.call(t.childNodes),!c&&null!=s)for(w={},u=0;u<t.attributes.length;u++)w[(m=t.attributes[u]).name]=m.value;for(u in w)m=w[u],"dangerouslySetInnerHTML"==u?p=m:"children"==u||u in x||"value"==u&&"defaultValue"in x||"checked"==u&&"defaultChecked"in x||M(t,u,null,m,i);for(u in x)m=x[u],"children"==u?f=m:"dangerouslySetInnerHTML"==u?h=m:"value"==u?y=m:"checked"==u?v=m:c&&"function"!=typeof m||w[u]===m||M(t,u,m,w[u],i);if(h)c||p&&(h.__html==p.__html||h.__html==t.innerHTML)||(t.innerHTML=h.__html),o.__k=[];else if(p&&(t.innerHTML=""),O("template"==o.type?t.content:t,b(f)?f:[f],o,a,n,"foreignObject"==k?"http://www.w3.org/1999/xhtml":i,s,l,s?s[0]:a.__k&&S(a,0),c,d),null!=s)for(u=s.length;u--;)_(s[u]);c&&"textarea"!=k||(u="value","progress"==k&&null==y?t.removeAttribute("value"):null!=y&&(y!==t[u]||"progress"==k&&!y||"option"==k&&y!=w[u])&&M(t,u,y,w[u],i),u="checked",null!=v&&v!=t[u]&&M(t,u,v,w[u],i))}return t}function B(t,e,o){try{if("function"==typeof t){var a="function"==typeof t.__u;a&&t.__u(),a&&null==e||(t.__u=t(e))}else t.current=e}catch(t){r.__e(t,o)}}function H(t,e,o){var a,n;if(r.unmount&&r.unmount(t),(a=t.ref)&&(a.current&&a.current!=t.__e||B(a,null,e)),null!=(a=t.__c)){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(t){r.__e(t,e)}a.base=a.__P=a.__n=null}if(a=t.__k)for(n=0;n<a.length;n++)a[n]&&H(a[n],e,o||"function"!=typeof t.type);o||_(t.__e),t.__c=t.__=t.__e=void 0}function V(t,e,r){return this.constructor(t,r)}function Q(t,o,a){var n,i,s,l;o==document&&(o=document.documentElement),r.__&&r.__(t,o),i=(n="function"==typeof a)?null:a&&a.__k||o.__k,s=[],l=[],D(o,t=(!n&&a||o).__k=x(T,null,[t]),i||g,g,o.namespaceURI,!n&&a?[a]:i?null:o.firstChild?e.call(o.childNodes):null,s,!n&&a?a:i?i.__e:o.firstChild,n,l),F(s,t,l),t.props.children=null}function G(t,e){Q(t,e,G)}function W(t,r,o){var a,n,i,s,l=w({},t.props);for(i in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),r)"key"==i?a=r[i]:"ref"==i?n=r[i]:l[i]=void 0===r[i]&&null!=s?s[i]:r[i];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):o),k(t.type,l,a||t.key,n||t.ref,null)}function Z(t){function e(t){var r,o;return this.getChildContext||(r=/* @__PURE__ */new Set,(o={})[e.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&r.forEach(function(t){t.__e=!0,N(t)})},this.sub=function(t){r.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r&&r.delete(t),e&&e.call(t)}}),t.children}return e.__c="__cC"+m++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e,e}e=y.slice,r={__e:function(t,e,r,o){for(var a,n,i;e=e.__;)if((a=e.__c)&&!a.__)try{if((n=a.constructor)&&null!=n.getDerivedStateFromError&&(a.setState(n.getDerivedStateFromError(t)),i=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(t,o||{}),i=a.__d),i)return a.__E=a}catch(e){t=e}throw t}},o=0,E.prototype.setState=function(t,e){var r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w({},this.state);"function"==typeof t&&(t=t(w({},r),this.props)),t&&w(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),N(this))},E.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),N(this))},E.prototype.render=T,a=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,s=function(t,e){return t.__v.__b-e.__v.__b},R.__r=0,l=Math.random().toString(8),c="__d"+l,d="__a"+l,u=/(PointerCapture)$|Capture$/i,h=0,p=L(!1),f=L(!0),m=0;var Y,K,J,X,tt=0,et=[],rt=r,ot=rt.__b,at=rt.__r,nt=rt.diffed,it=rt.__c,st=rt.unmount,lt=rt.__;function ct(t,e){rt.__h&&rt.__h(K,t,tt||e),tt=0;var r=K.__H||(K.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function dt(t){return tt=1,ut(Ct,t)}function ut(t,e,r){var o=ct(Y++,2);if(o.t=t,!o.__c&&(o.__=[r?r(e):Ct(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],r=o.t(e,t);e!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=K,!K.__f)){var a=function(t,e,r){if(!o.__c.__H)return!0;var a=!1,i=o.__c.props!==t;if(o.__c.__H.__.some(function(t){if(t.__N){a=!0;var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}}),n){var s=n.call(this,t,e,r);return a?s||i:s}return!a||i};K.__f=!0;var n=K.shouldComponentUpdate,i=K.componentWillUpdate;K.componentWillUpdate=function(t,e,r){if(this.__e){var o=n;n=void 0,a(t,e,r),n=o}i&&i.call(this,t,e,r)},K.shouldComponentUpdate=a}return o.__N||o.__}function ht(t,e){var r=ct(Y++,3);!rt.__s&&St(r.__H,e)&&(r.__=t,r.u=e,K.__H.__h.push(r))}function pt(t,e){var r=ct(Y++,4);!rt.__s&&St(r.__H,e)&&(r.__=t,r.u=e,K.__h.push(r))}function ft(t){return tt=5,gt(function(){return{current:t}},[])}function mt(t,e,r){tt=6,pt(function(){if("function"==typeof t){var r=t(e());return function(){t(null),r&&"function"==typeof r&&r()}}if(t)return t.current=e(),function(){return t.current=null}},null==r?r:r.concat(t))}function gt(t,e){var r=ct(Y++,7);return St(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function yt(t,e){return tt=8,gt(function(){return t},e)}function vt(t){var e=K.context[t.__c],r=ct(Y++,9);return r.c=t,e?(r.__??(r.__=!0,e.sub(K)),e.props.value):t.__}function bt(t,e){rt.useDebugValue&&rt.useDebugValue(e?e(t):t)}function wt(){var t=ct(Y++,11);if(!t.__){for(var e=K.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__}function _t(){for(var t;t=et.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(Tt),e.__h.some(Et),e.__h=[]}catch(an){e.__h=[],rt.__e(an,t.__v)}}}rt.__b=function(t){K=null,ot&&ot(t)},rt.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),lt&&lt(t,e)},rt.__r=function(t){at&&at(t),Y=0;var e=(K=t.__c).__H;e&&(J===K?(e.__h=[],K.__h=[],e.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.some(Tt),e.__h.some(Et),e.__h=[],Y=0)),J=K},rt.diffed=function(t){nt&&nt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==et.push(e)&&X===rt.requestAnimationFrame||((X=rt.requestAnimationFrame)||kt)(_t)),e.__H.__.some(function(t){t.u&&(t.__H=t.u,t.u=void 0)})),J=K=null},rt.__c=function(t,e){e.some(function(t){try{t.__h.some(Tt),t.__h=t.__h.filter(function(t){return!t.__||Et(t)})}catch(an){e.some(function(t){t.__h&&(t.__h=[])}),e=[],rt.__e(an,t.__v)}}),it&&it(t,e)},rt.unmount=function(t){st&&st(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.some(function(t){try{Tt(t)}catch(t){e=t}}),r.__H=void 0,e&&rt.__e(e,r.__v))};var xt="function"==typeof requestAnimationFrame;function kt(t){var e,r=function(){clearTimeout(o),xt&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(r,35);xt&&(e=requestAnimationFrame(r))}function Tt(t){var e=K,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),K=e}function Et(t){var e=K;t.__c=t.__(),K=e}function St(t,e){return!t||t.length!==e.length||e.some(function(e,r){return e!==t[r]})}function Ct(t,e){return"function"==typeof e?e(t):e}function It(t,e){for(var r in e)t[r]=e[r];return t}function Nt(t,e){for(var r in t)if("__source"!==r&&!(r in e))return!0;for(var o in e)if("__source"!==o&&t[o]!==e[o])return!0;return!1}function Rt(t,e){var r=e(),o=dt({t:{__:r,u:e}}),a=o[0].t,n=o[1];return pt(function(){a.__=r,a.u=e,Ot(a)&&n({t:a})},[t,r,e]),ht(function(){return Ot(a)&&n({t:a}),t(function(){Ot(a)&&n({t:a})})},[t]),r}function Ot(t){try{return!((e=t.__)===(r=t.u())&&(0!==e||1/e==1/r)||e!=e&&r!=r)}catch(t){return!0}var e,r}function At(t){t()}function Pt(t){return t}function qt(){return[!1,At]}var zt=pt;function Mt(t,e){this.props=t,this.context=e}function Lt(t,e){function r(t){var r=this.props.ref;return r!=t.ref&&r&&("function"==typeof r?r(null):r.current=null),e?!e(this.props,t)||r!=t.ref:Nt(this.props,t)}function o(e){return this.shouldComponentUpdate=r,x(t,e)}return o.displayName="Memo("+(t.displayName||t.name)+")",o.__f=o.prototype.isReactComponent=!0,o.type=t,o}(Mt.prototype=new E).isPureReactComponent=!0,Mt.prototype.shouldComponentUpdate=function(t,e){return Nt(this.props,t)||Nt(this.state,e)};var Dt=r.__b;r.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Dt&&Dt(t)};var Ut="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ft(t){function e(e){var r=It({},e);return delete r.ref,t(r,e.ref||null)}return e.$$typeof=Ut,e.render=t,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var jt=function(t,e){return null==t?null:P(P(t).map(e))},$t={map:jt,forEach:jt,count:function(t){return t?P(t).length:0},only:function(t){var e=P(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:P},Bt=r.__e;r.__e=function(t,e,r,o){if(t.then)for(var a,n=e;n=n.__;)if((a=n.__c)&&a.__c)return e.__e??(e.__e=r.__e,e.__k=r.__k||[]),a.__c(t,e);Bt(t,e,r,o)};var Ht=r.unmount;function Vt(t,e,r){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=It({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=e),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return Vt(t,e,r)})),t}function Qt(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return Qt(t,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}function Gt(){this.__u=0,this.o=null,this.__b=null}function Wt(t){var e=t.__&&t.__.__c;return e&&e.__a&&e.__a(t)}function Zt(t){var e,r,o,a=null;function n(n){if(e||(e=t()).then(function(t){t&&(a=t.default||t),o=!0},function(t){r=t,o=!0}),r)throw r;if(!o)throw e;return a?x(a,n):null}return n.displayName="Lazy",n.__f=!0,n}function Yt(){this.i=null,this.l=null}r.unmount=function(t){var e=t.__c;e&&(e.__z=!0),e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Ht&&Ht(t)},(Gt.prototype=new E).__c=function(t,e){var r=e.__c,o=this;o.o??=[],o.o.push(r);var a=Wt(o.__v),n=!1,i=function(){n||o.__z||(n=!0,r.__R=null,a?a(l):l())};r.__R=i;var s=r.__P;r.__P=null;var l=function(){if(! --o.__u){if(o.state.__a){var t=o.state.__a;o.__v.__k[0]=Qt(t,t.__c.__P,t.__c.__O)}var e;for(o.setState({__a:o.__b=null});e=o.o.pop();)e.__P=s,e.forceUpdate()}};o.__u++||32&e.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(i,i)},Gt.prototype.componentWillUnmount=function(){this.o=[]},Gt.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Vt(this.__b,r,o.__O=o.__P)}this.__b=null}var a=e.__a&&x(T,null,t.fallback);return a&&(a.__u&=-33),[x(T,null,e.__a?null:t.children),a]};var Kt=function(t,e,r){if(++r[1]===r[0]&&t.l.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.l.size))for(r=t.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.i=r=r[2]}};function Jt(t){return this.getChildContext=function(){return t.context},t.children}function Xt(t){var e=this,r=t.h;if(e.componentWillUnmount=function(){Q(null,e.v),e.v=null,e.h=null},e.h&&e.h!==r&&e.componentWillUnmount(),!e.v){for(var o=e.__v;null!==o&&!o.__m&&null!==o.__;)o=o.__;e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:o.__m},contains:function(){return!0},namespaceURI:r.namespaceURI,insertBefore:function(t,r){this.childNodes.push(t),e.h.insertBefore(t,r)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.h.removeChild(t)}}}Q(x(Jt,{context:e.context},t.__v),e.v)}function te(t,e){var r=x(Xt,{__v:t,h:e});return r.containerInfo=e,r}(Yt.prototype=new E).__a=function(t){var e=this,r=Wt(e.__v),o=e.l.get(t);return o[0]++,function(a){var n=function(){e.props.revealOrder?(o.push(a),Kt(e,t,o)):a()};r?r(n):n()}},Yt.prototype.render=function(t){this.i=null,this.l=/* @__PURE__ */new Map;var e=P(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var r=e.length;r--;)this.l.set(e[r],this.i=[1,0,this.i]);return t.children},Yt.prototype.componentDidUpdate=Yt.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,r){Kt(t,r,e)})};var ee="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,re=/^(?: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]/,oe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ae=/[A-Z0-9]/g,ne="undefined"!=typeof document,ie=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};E.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(E.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var se,le=r.event;r.event=function(t){return le&&(t=le(t)),t.persist=function(){},t.isPropagationStopped=function(){return this.cancelBubble},t.isDefaultPrevented=function(){return this.defaultPrevented},t.nativeEvent=t};var ce={configurable:!0,get:function(){return this.class}},de=r.vnode;r.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,r=t.type,o={},a=-1==r.indexOf("-");for(var n in e){var i=e[n];if(!("value"===n&&"defaultValue"in e&&null==i||ne&&"children"===n&&"noscript"===r||"class"===n||"className"===n)){var s=n.toLowerCase();"defaultValue"===n&&"value"in e&&null==e.value?n="value":"download"===n&&!0===i?i="":"translate"===s&&"no"===i?i=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?n="ondblclick":"onchange"!==s||"input"!==r&&"textarea"!==r||ie(e.type)?"onfocus"===s?n="onfocusin":"onblur"===s?n="onfocusout":oe.test(n)&&(n=s):s=n="oninput":a&&re.test(n)?n=n.replace(ae,"-$&").toLowerCase():null===i&&(i=void 0),"oninput"===s&&o[n=s]&&(n="oninputCapture"),o[n]=i}}"select"==r&&(o.multiple&&Array.isArray(o.value)&&(o.value=P(e.children).forEach(function(t){t.props.selected=-1!=o.value.indexOf(t.props.value)})),null!=o.defaultValue&&(o.value=P(e.children).forEach(function(t){t.props.selected=o.multiple?-1!=o.defaultValue.indexOf(t.props.value):o.defaultValue==t.props.value}))),e.class&&!e.className?(o.class=e.class,Object.defineProperty(o,"className",ce)):e.className&&(o.class=o.className=e.className),t.props=o}(t),t.$$typeof=ee,de&&de(t)};var ue=r.__r;r.__r=function(t){ue&&ue(t),se=t.__c};var he=r.diffed;r.diffed=function(t){he&&he(t);var e=t.props,r=t.__e;null!=r&&"textarea"===t.type&&"value"in e&&e.value!==r.value&&(r.value=null==e.value?"":e.value),se=null};var pe={ReactCurrentDispatcher:{current:{readContext:function(t){return se.__n[t.__c].props.value},useCallback:yt,useContext:vt,useDebugValue:bt,useDeferredValue:Pt,useEffect:ht,useId:wt,useImperativeHandle:mt,useInsertionEffect:zt,useLayoutEffect:pt,useMemo:gt,useReducer:ut,useRef:ft,useState:dt,useSyncExternalStore:Rt,useTransition:qt}}};function fe(t){return!!t&&t.$$typeof===ee}function me(t){return fe(t)?W.apply(null,arguments):t}var ge={useState:dt,useId:wt,useReducer:ut,useEffect:ht,useLayoutEffect:pt,useInsertionEffect:zt,useTransition:qt,useDeferredValue:Pt,useSyncExternalStore:Rt,startTransition:At,useRef:ft,useImperativeHandle:mt,useMemo:gt,useCallback:yt,useContext:vt,useDebugValue:bt,version:"18.3.1",Children:$t,render:function(t,e,r){return e.__k??(e.textContent=""),Q(t,e),"function"==typeof r&&r(),t?t.__c:null},hydrate:function(t,e,r){return G(t,e),"function"==typeof r&&r(),t?t.__c:null},unmountComponentAtNode:function(t){return!!t.__k&&(Q(null,t),!0)},createPortal:te,createElement:x,createContext:Z,createFactory:function(t){return x.bind(null,t)},cloneElement:me,createRef:function(){return{current:null}},Fragment:T,isValidElement:fe,isElement:fe,isFragment:function(t){return fe(t)&&t.type===T},isMemo:function(t){return!!t&&"string"==typeof t.displayName&&0==t.displayName.indexOf("Memo(")},findDOMNode:function(t){return t&&(t.base||1===t.nodeType&&t)||null},Component:E,PureComponent:Mt,memo:Lt,forwardRef:Ft,flushSync:function(t,e){var o=r.debounceRendering;r.debounceRendering=function(t){return t()};var a=t(e);return r.debounceRendering=o,a},unstable_batchedUpdates:function(t,e){return t(e)},StrictMode:T,Suspense:Gt,SuspenseList:Yt,lazy:Zt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pe},ye=0;function ve(t,e,o,a,n,i){e||(e={});var s,l,c=e;if("ref"in c)for(l in c={},e)"ref"==l?s=e[l]:c[l]=e[l];var d={type:t,props:c,key:o,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--ye,__i:-1,__u:0,__source:n,__self:i};if("function"==typeof t&&(s=t.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return r.vnode&&r.vnode(d),d}Array.isArray;var be=Z(void 0),we=t=>{const e=vt(be);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},_e=({client:t,children:e})=>(ht(()=>(t.mount(),()=>{t.unmount()}),[t]),/* @__PURE__ */ve(be.Provider,{value:t,children:e})),xe={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},ke=new class{#t=xe;#e=!1;setTimeoutProvider(t){this.#t=t}setTimeout(t,e){return this.#t.setTimeout(t,e)}clearTimeout(t){this.#t.clearTimeout(t)}setInterval(t,e){return this.#t.setInterval(t,e)}clearInterval(t){this.#t.clearInterval(t)}},Te="undefined"==typeof window||"Deno"in globalThis;function Ee(){}function Se(t){return"number"==typeof t&&t>=0&&t!==1/0}function Ce(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Ie(t,e){return"function"==typeof t?t(e):t}function Ne(t,e){const{type:r="all",exact:o,fetchStatus:a,predicate:n,queryKey:i,stale:s}=t;if(i)if(o){if(e.queryHash!==Oe(i,e.options))return!1}else if(!Pe(e.queryKey,i))return!1;if("all"!==r){const t=e.isActive();if("active"===r&&!t)return!1;if("inactive"===r&&t)return!1}return!("boolean"==typeof s&&e.isStale()!==s||a&&a!==e.state.fetchStatus||n&&!n(e))}function Re(t,e){const{exact:r,status:o,predicate:a,mutationKey:n}=t;if(n){if(!e.options.mutationKey)return!1;if(r){if(Ae(e.options.mutationKey)!==Ae(n))return!1}else if(!Pe(e.options.mutationKey,n))return!1}return!(o&&e.state.status!==o||a&&!a(e))}function Oe(t,e){return(e?.queryKeyHashFn||Ae)(t)}function Ae(t){return JSON.stringify(t,(t,e)=>De(e)?Object.keys(e).sort().reduce((t,r)=>(t[r]=e[r],t),{}):e)}function Pe(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(Array.isArray(t)&&Array.isArray(e)){if(e.length>t.length)return!1;for(let r=0;r<e.length;r++)if(!Pe(t[r],e[r]))return!1;return!0}const r=Object.keys(e);for(const o of r)if(!Pe(t[o],e[o]))return!1;return!0}return!1}var qe=Object.prototype.hasOwnProperty;function ze(t,e,r=0){if(t===e)return t;if(r>500)return e;const o=Le(t)&&Le(e);if(!(o||De(t)&&De(e)))return e;const a=(o?t:Object.keys(t)).length,n=o?e:Object.keys(e),i=n.length,s=o?new Array(i):{};let l=0;for(let c=0;c<i;c++){const i=o?c:n[c],d=t[i],u=e[i];if(d===u){s[i]=d,(o?c<a:qe.call(t,i))&&l++;continue}if(null===d||null===u||"object"!=typeof d||"object"!=typeof u){s[i]=u;continue}const h=ze(d,u,r+1);s[i]=h,h===d&&l++}return a===i&&l===a?t:s}function Me(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(t[r]!==e[r])return!1;return!0}function Le(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function De(t){if(!Ue(t))return!1;const e=Object.getPrototypeOf(t),r=e?.constructor;if(void 0===r)return!0;if("function"!=typeof r)return!1;const o=r.prototype;return!!Ue(o)&&!!o.hasOwnProperty("isPrototypeOf")&&e===Object.prototype}function Ue(t){return"[object Object]"===Object.prototype.toString.call(t)}function Fe(t,e,r){return"function"==typeof r.structuralSharing?r.structuralSharing(t,e):!1!==r.structuralSharing?ze(t,e):e}function je(t,e,r=0){const o=[...t,e];return r&&o.length>r?o.slice(1):o}function $e(t,e,r=0){const o=[e,...t];return r&&o.length>r?o.slice(0,-1):o}var Be=Symbol();function He(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:t.queryFn&&t.queryFn!==Be?t.queryFn:()=>Promise.reject(/* @__PURE__ */new Error(`Missing queryFn: '${t.queryHash}'`))}function Ve(t,e){return"function"==typeof t?t(...e):!!t}var Qe=()=>Te,Ge=class{constructor(){this.listeners=/* @__PURE__ */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(){}},We=new class extends Ge{#r;#o;#a;constructor(){super(),this.#a=t=>{if("undefined"!=typeof window&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#o||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#o?.(),this.#o=void 0)}setEventListener(t){this.#a=t,this.#o?.(),this.#o=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.#r!==t&&(this.#r=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return"boolean"==typeof this.#r?this.#r:"hidden"!==globalThis.document?.visibilityState}},Ze=function(t){setTimeout(t,0)},Ye=function(){let t=[],e=0,r=t=>{t()},o=t=>{t()},a=Ze;const n=o=>{e?t.push(o):a(()=>{r(o)})};return{batch:n=>{let i;e++;try{i=n()}finally{e--,e||(()=>{const e=t;t=[],e.length&&a(()=>{o(()=>{e.forEach(t=>{r(t)})})})})()}return i},batchCalls:t=>(...e)=>{n(()=>{t(...e)})},schedule:n,setNotifyFunction:t=>{r=t},setBatchNotifyFunction:t=>{o=t},setScheduler:t=>{a=t}}}(),Ke=new class extends Ge{#n=!0;#o;#a;constructor(){super(),this.#a=t=>{if("undefined"!=typeof window&&window.addEventListener){const e=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#o||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#o?.(),this.#o=void 0)}setEventListener(t){this.#a=t,this.#o?.(),this.#o=t(this.setOnline.bind(this))}setOnline(t){this.#n!==t&&(this.#n=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#n}};function Je(t){return Math.min(1e3*2**t,3e4)}function Xe(t){return"online"!==(t??"online")||Ke.isOnline()}var tr=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function er(t){let e,r,o,a=!1,n=0,i="pending";const s=new Promise((t,e)=>{r=t,o=e});s.catch(Ee);const l=()=>"pending"!==i,c=()=>We.isFocused()&&("always"===t.networkMode||Ke.isOnline())&&t.canRun(),d=()=>Xe(t.networkMode)&&t.canRun(),u=t=>{l()||(e?.(),i="resolved",r(t))},h=t=>{l()||(e?.(),i="rejected",o(t))},p=r=>new Promise(o=>{e=t=>{(l()||r())&&o(t)},t.onPause?.()}).then(()=>{e=void 0,l()||t.onContinue?.()}),f=()=>{if(l())return;let e;const r=0===n?t.initialPromise:void 0;try{e=r??t.fn()}catch(o){e=Promise.reject(o)}Promise.resolve(e).then(u).catch(e=>{if(l())return;const r=t.retry??(Qe()?0:3),o=t.retryDelay??Je,i="function"==typeof o?o(n,e):o,s=!0===r||"number"==typeof r&&n<r||"function"==typeof r&&r(n,e);var d;!a&&s?(n++,t.onFail?.(n,e),(d=i,new Promise(t=>{ke.setTimeout(t,d)})).then(()=>c()?void 0:p(c)).then(()=>{a?h(e):f()})):h(e)})};return{promise:s,status:()=>i,cancel:e=>{if(!l()){const r=new tr(e);h(r),t.onCancel?.(r)}},continue:()=>(e?.(),s),cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1},canStart:d,start:()=>(d()?f():p(d).then(f),s)}}var rr=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Se(this.gcTime)&&(this.#i=ke.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Qe()?1/0:3e5))}clearGcTimeout(){void 0!==this.#i&&(ke.clearTimeout(this.#i),this.#i=void 0)}};function or(t){return{onFetch:(e,r)=>{const o=e.options,a=e.fetchOptions?.meta?.fetchMore?.direction,n=e.state.data?.pages||[],i=e.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let r=!1;const c=t=>{!function(t,r,o){let a,n=!1;Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(a??=e.signal,n||(n=!0,a.aborted?o():a.addEventListener("abort",o,{once:!0})),a)})}(t,0,()=>r=!0)},d=He(e.options,e.fetchOptions),u=async(t,o,a)=>{if(r)return Promise.reject(e.signal.reason);if(null==o&&t.pages.length)return Promise.resolve(t);const n=(()=>{const t={client:e.client,queryKey:e.queryKey,pageParam:o,direction:a?"backward":"forward",meta:e.options.meta};return c(t),t})(),i=await d(n),{maxPages:s}=e.options,l=a?$e:je;return{pages:l(t.pages,i,s),pageParams:l(t.pageParams,o,s)}};if(a&&n.length){const t="backward"===a,e=t?nr:ar,r={pages:n,pageParams:i};s=await u(r,e(o,r),t)}else{const e=t??n.length;do{const t=0===l?void 0===i[0]?o.initialPageParam:i[0]:ar(o,s);if(l>0&&null==t)break;s=await u(s,t),l++}while(l<e)}return s};e.options.persister?e.fetchFn=()=>e.options.persister?.(c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r):e.fetchFn=c}}}function ar(t,{pages:e,pageParams:r}){const o=e.length-1;return e.length>0?t.getNextPageParam(e[o],e,r[o],r):void 0}function nr(t,{pages:e,pageParams:r}){return e.length>0?t.getPreviousPageParam?.(e[0],e,r[0],r):void 0}function ir(t,e){return!!e&&null!=ar(t,e)}function sr(t,e){return!(!e||!t.getPreviousPageParam)&&null!=nr(t,e)}var lr=class extends rr{#s;#l;#c;#d;#u;#h;#p;#f;constructor(t){super(),this.#f=!1,this.#p=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#u=t.client,this.#d=this.#u.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#l=ur(this.options),this.state=t.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#s}get promise(){return this.#h?.promise}setOptions(t){if(this.options={...this.#p,...t},t?._type&&(this.#s=t._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const t=ur(this.options);void 0!==t.data&&(this.setState(dr(t.data,t.dataUpdatedAt)),this.#l=t)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#d.remove(this)}setData(t,e){const r=Fe(this.state.data,t,this.options);return this.#m({data:r,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),r}setState(t){this.#m({type:"setState",state:t})}cancel(t){const e=this.#h?.promise;return this.#h?.cancel(t),e?e.then(Ee).catch(Ee):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#l}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>!1!==Ie(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Be||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===Ie(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!Ce(this.state.dataUpdatedAt,t))}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#h?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#h?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#d.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){const e=this.observers.indexOf(t);-1!==e&&(this.observers.splice(e,1),this.observers.length||(this.#h&&(this.#f||"paused"===this.state.fetchStatus&&"pending"===this.state.status?this.#h.cancel({revert:!0}):this.#h.cancelRetry()),this.scheduleGc()),this.#d.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#m({type:"invalidate"})}async fetch(t,e){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#h?.status())if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#h)return this.#h.continueRetry(),this.#h.promise;if(t&&this.setOptions(t),!this.options.queryFn){const t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}const r=new AbortController,o=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#f=!0,r.signal)})},a=()=>{const t=He(this.options,e),r=(()=>{const t={client:this.#u,queryKey:this.queryKey,meta:this.meta};return o(t),t})();return this.#f=!1,this.options.persister?this.options.persister(t,r,this):t(r)},n=(()=>{const t={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:a};return o(t),t})();("infinite"===this.#s?or(this.options.pages):this.options.behavior)?.onFetch(n,this),this.#c=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===n.fetchOptions?.meta||this.#m({type:"fetch",meta:n.fetchOptions?.meta});const i=this.#h=er({initialPromise:e?.initialPromise,fn:n.fetchFn,onCancel:t=>{t instanceof tr&&t.revert&&this.setState({...this.#c,fetchStatus:"idle"}),r.abort()},onFail:(t,e)=>{this.#m({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#m({type:"pause"})},onContinue:()=>{this.#m({type:"continue"})},retry:n.options.retry,retryDelay:n.options.retryDelay,networkMode:n.options.networkMode,canRun:()=>!0});try{const t=await i.start();if(void 0===t)throw new Error(`${this.queryHash} data is undefined`);return this.setData(t),this.#d.config.onSuccess?.(t,this),this.#d.config.onSettled?.(t,this.state.error,this),t}catch(s){if(s instanceof tr){if(s.silent)return this.#h.promise;if(s.revert){if(void 0===this.state.data)throw s;return this.state.data}}throw this.#m({type:"error",error:s}),this.#d.config.onError?.(s,this),this.#d.config.onSettled?.(this.state.data,s,this),s}finally{this.#h===i&&(this.#h=void 0),this.scheduleGc()}}#m(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,...cr(e.data,this.options),fetchMeta:t.meta??null};case"success":const r={...e,...dr(t.data,t.dataUpdatedAt),dataUpdateCount:e.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#c=t.manual?r:void 0,r;case"error":const o=t.error;return{...e,error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}})(this.state),Ye.batch(()=>{this.observers.slice().forEach(t=>{t.onQueryUpdate()}),this.#d.notify({query:this,type:"updated",action:t})})}};function cr(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Xe(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}function dr(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ur(t){const e="function"==typeof t.initialData?t.initialData():t.initialData,r=void 0!==e,o=r?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var hr=class extends Ge{#u;#g=void 0;#y=void 0;#v=void 0;#b;#w;#_;#x;#k;#T;#E;#S;#C;#I=/* @__PURE__ */new Set;constructor(t,e){super(),this.options=e,this.#u=t,this.#_=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#g.addObserver(this),pr(this.#g,this.options)?this.#N():this.updateResult(),this.#R())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return fr(this.#g,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return fr(this.#g,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=/* @__PURE__ */new Set,this.#O(),this.#A(),this.#g.removeObserver(this)}setOptions(t){const e=this.options,r=this.#g;if(this.options=this.#u.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Ie(this.options.enabled,this.#g))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#P(),this.#g.setOptions(this.options),e._defaulted&&!Me(this.options,e)&&this.#u.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#g,observer:this});const o=this.hasListeners();o&&mr(this.#g,r,this.options,e)&&this.#N(),this.updateResult(),!o||this.#g===r&&Ie(this.options.enabled,this.#g)===Ie(e.enabled,this.#g)&&Ie(this.options.staleTime,this.#g)===Ie(e.staleTime,this.#g)||this.#q();const a=this.#z();!o||this.#g===r&&Ie(this.options.enabled,this.#g)===Ie(e.enabled,this.#g)&&a===this.#C||this.#M(a)}getOptimisticResult(t){const e=this.#u.getQueryCache().build(this.#u,t),r=this.createResult(e,t);return Me(this.getCurrentResult(),r)||(this.#v=r,this.#w=this.options,this.#b=this.#g.state),r}getCurrentResult(){return this.#v}trackResult(t,e){return new Proxy(t,{get:(t,r)=>(this.trackProp(r),e?.(r),Reflect.get(t,r))})}trackProp(t){this.#I.add(t)}getCurrentQuery(){return this.#g}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#u.defaultQueryOptions(t),r=this.#u.getQueryCache().build(this.#u,e);let o,a=()=>{};const n=new Promise(t=>{o=t,a=this.#u.getQueryCache().subscribe(o=>{"updated"===o.type&&o.query.queryHash===r.queryHash&&void 0!==r.state.data&&(a(),t(this.createResult(r,e)))})});return Promise.race([r.fetch(e).then(()=>{const t=this.createResult(r,e);return o?.(t),t}).finally(()=>{a()}),n])}fetch(t){return this.#N({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#v))}#N(t){this.#P();let e=this.#g.fetch(this.options,t);return t?.throwOnError||(e=e.catch(Ee)),e}#L(t){return!Qe()&&!1!==Ie(this.options.enabled,this.#g)&&Se(t)}#q(){this.#O();const t=Ie(this.options.staleTime,this.#g);if(this.#v.isStale||!this.#L(t))return;const e=Ce(this.#v.dataUpdatedAt,t)+1;this.#E=ke.setTimeout(()=>{this.#v.isStale||this.updateResult()},e)}#z(){return Ie(this.options.refetchInterval,this.#g)??!1}#M(t){this.#A(),this.#C=t,0!==this.#C&&this.#L(this.#C)&&(this.#S=ke.setInterval(()=>{(this.options.refetchIntervalInBackground||We.isFocused())&&this.#N()},this.#C))}#R(){this.#q(),this.#M(this.#z())}#O(){void 0!==this.#E&&(ke.clearTimeout(this.#E),this.#E=void 0)}#A(){void 0!==this.#S&&(ke.clearInterval(this.#S),this.#S=void 0)}createResult(t,e){const r=this.#g,o=this.options,a=this.#v,n=this.#b,i=this.#w,s=t!==r?t.state:this.#y,{state:l}=t;let c,d={...l},u=!1;if(e._optimisticResults){const a=this.hasListeners(),n=!a&&pr(t,e),i=a&&mr(t,r,e,o);(n||i)&&(d={...d,...cr(l.data,t.options)}),"isRestoring"===e._optimisticResults&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:p,status:f}=d;c=d.data;let m=!1;if(void 0!==e.placeholderData&&void 0===c&&"pending"===f){let t;a?.isPlaceholderData&&e.placeholderData===i?.placeholderData?(t=a.data,m=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#T?.state.data,this.#T):e.placeholderData,void 0!==t&&(f="success",c=Fe(a?.data,t,e),u=!0)}if(e.select&&void 0!==c&&!m)if(a&&c===n?.data&&e.select===this.#x)c=this.#k;else try{this.#x=e.select,c=e.select(c),c=Fe(a?.data,c,e),this.#k=c,this.#_=null}catch(_){this.#_=_}else void 0===c&&(this.#_=null);this.#_&&(h=this.#_,c=this.#k,p=Date.now(),f="error",u=!1);const g="fetching"===d.fetchStatus,y="pending"===f,v="error"===f,b=y&&g,w=void 0!==c;return{status:f,fetchStatus:d.fetchStatus,isPending:y,isSuccess:"success"===f,isError:v,isInitialLoading:b,isLoading:b,data:c,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>s.dataUpdateCount||d.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!y,isLoadingError:v&&!w,isPaused:"paused"===d.fetchStatus,isPlaceholderData:u,isRefetchError:v&&w,isStale:gr(t,e),refetch:this.refetch,isEnabled:!1!==Ie(e.enabled,t)}}updateResult(){const t=this.#v,e=this.createResult(this.#g,this.options);if(this.#b=this.#g.state,this.#w=this.options,void 0!==this.#b.data&&(this.#T=this.#g),Me(e,t))return;this.#v=e;const r=(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#I.size)return!0;const o=new Set(r??this.#I);return this.options.throwOnError&&o.add("error"),Object.keys(this.#v).some(e=>{const r=e;return this.#v[r]!==t[r]&&o.has(r)})})();Ye.batch(()=>{r&&this.listeners.forEach(t=>{t(this.#v)}),this.#u.getQueryCache().notify({query:this.#g,type:"observerResultsUpdated"})})}#P(){const t=this.#u.getQueryCache().build(this.#u,this.options);if(t===this.#g)return;const e=this.#g;this.#g=t,this.#y=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#R()}};function pr(t,e){return function(t,e){return!1!==Ie(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===Ie(e.retryOnMount,t))}(t,e)||void 0!==t.state.data&&fr(t,e,e.refetchOnMount)}function fr(t,e,r){if(!1!==Ie(e.enabled,t)&&"static"!==Ie(e.staleTime,t)){const o=Ie(r,t);return"always"===o||!1!==o&&gr(t,e)}return!1}function mr(t,e,r,o){return(t!==e||!1===Ie(o.enabled,t))&&(!r.suspense||"error"!==t.state.status)&&gr(t,r)}function gr(t,e){return!1!==Ie(e.enabled,t)&&t.isStaleByTime(Ie(e.staleTime,t))}var yr=class extends hr{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){t._type="infinite",super.setOptions(t)}getOptimisticResult(t){return t._type="infinite",super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){const{state:r}=t,o=super.createResult(t,e),{isFetching:a,isRefetching:n,isError:i,isRefetchError:s}=o,l=r.fetchMeta?.fetchMore?.direction,c=i&&"forward"===l,d=a&&"forward"===l,u=i&&"backward"===l,h=a&&"backward"===l;return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:ir(e,r.data),hasPreviousPage:sr(e,r.data),isFetchNextPageError:c,isFetchingNextPage:d,isFetchPreviousPageError:u,isFetchingPreviousPage:h,isRefetchError:s&&!c&&!u,isRefetching:n&&!d&&!h}}},vr=class extends rr{#u;#D;#U;#h;constructor(t){super(),this.#u=t.client,this.mutationId=t.mutationId,this.#U=t.mutationCache,this.#D=[],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){this.#D.includes(t)||(this.#D.push(t),this.clearGcTimeout(),this.#U.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#D=this.#D.filter(e=>e!==t),this.scheduleGc(),this.#U.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#D.length||("pending"===this.state.status?this.scheduleGc():this.#U.remove(this))}continue(){return this.#h?.continue()??("pending"===this.state.status?this.execute(this.state.variables):Promise.resolve())}async execute(t){const e=()=>{this.#m({type:"continue"})},r={client:this.#u,meta:this.options.meta,mutationKey:this.options.mutationKey},o=this.#h=er({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(/* @__PURE__ */new Error("No mutationFn found")),onFail:(t,e)=>{this.#m({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#m({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#U.canRun(this)}),a="pending"===this.state.status,n=!o.canStart();try{if(a)e();else{this.#m({type:"pending",variables:t,isPaused:n}),this.#U.config.onMutate&&await this.#U.config.onMutate(t,this,r);const e=await(this.options.onMutate?.(t,r));e!==this.state.context&&this.#m({type:"pending",context:e,variables:t,isPaused:n})}const i=await o.start();return await(this.#U.config.onSuccess?.(i,t,this.state.context,this,r)),await(this.options.onSuccess?.(i,t,this.state.context,r)),await(this.#U.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(i,null,t,this.state.context,r)),this.#m({type:"success",data:i}),i}catch(i){try{await(this.#U.config.onError?.(i,t,this.state.context,this,r))}catch(ot){Promise.reject(ot)}try{await(this.options.onError?.(i,t,this.state.context,r))}catch(ot){Promise.reject(ot)}try{await(this.#U.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,r))}catch(ot){Promise.reject(ot)}try{await(this.options.onSettled?.(void 0,i,t,this.state.context,r))}catch(ot){Promise.reject(ot)}throw this.#m({type:"error",error:i}),i}finally{this.#h===o&&(this.#h=void 0),this.#U.runNext(this)}}#m(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),Ye.batch(()=>{this.#D.forEach(e=>{e.onMutationUpdate(t)}),this.#U.notify({mutation:this,type:"updated",action:t})})}};function br(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wr=class extends Ge{#F;#j;#$;constructor(t={}){super(),this.config=t,this.#F=/* @__PURE__ */new Set,this.#j=/* @__PURE__ */new Map,this.#$=0}build(t,e,r){const o=new vr({client:t,mutationCache:this,mutationId:++this.#$,options:t.defaultMutationOptions(e),state:r});return this.add(o),o}add(t){this.#F.add(t);const e=_r(t);if("string"==typeof e){const r=this.#j.get(e);r?r.push(t):this.#j.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#F.delete(t)){const e=_r(t);if("string"==typeof e){const r=this.#j.get(e);if(r)if(r.length>1){const e=r.indexOf(t);-1!==e&&r.splice(e,1)}else r[0]===t&&this.#j.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=_r(t);if("string"==typeof e){const r=this.#j.get(e)?.find(t=>"pending"===t.state.status);return!r||r===t}return!0}runNext(t){const e=_r(t);return"string"==typeof e?(this.#j.get(e)?.find(e=>e!==t&&e.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Ye.batch(()=>{const t=this.getAll();this.#F.clear(),this.#j.clear(),t.forEach(t=>{this.notify({type:"removed",mutation:t})})})}getAll(){return Array.from(this.#F)}find(t){const e={exact:!0,...t};return this.getAll().find(t=>Re(e,t))}findAll(t={}){return this.getAll().filter(e=>Re(t,e))}notify(t){Ye.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(t=>t.state.isPaused);return Ye.batch(()=>Promise.all(t.map(t=>t.continue().catch(Ee))))}};function _r(t){return t.options.scope?.id}var xr=class extends Ge{#B;constructor(t={}){super(),this.config=t,this.#B=/* @__PURE__ */new Map}build(t,e,r){const o=e.queryKey,a=e.queryHash??Oe(o,e);let n=this.get(a);return n||(n=new lr({client:t,queryKey:o,queryHash:a,options:t.defaultQueryOptions(e),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(n)),n}add(t){this.#B.has(t.queryHash)||(this.#B.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){this.#B.get(t.queryHash)===t&&(t.destroy(),this.#B.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#B.get(t)}getAll(){return[...this.#B.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(t=>Ne(e,t))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(e=>Ne(t,e)):e}notify(t){Ye.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},kr=class{#H;#U;#p;#V;#Q;#G;#W;#Z;constructor(t={}){this.#H=t.queryCache||new xr,this.#U=t.mutationCache||new wr,this.#p=t.defaultOptions||{},this.#V=/* @__PURE__ */new Map,this.#Q=/* @__PURE__ */new Map,this.#G=0}mount(){this.#G++,1===this.#G&&(this.#W=We.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#H.onFocus())}),this.#Z=Ke.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#H.onOnline())}))}unmount(){this.#G--,0===this.#G&&(this.#W?.(),this.#W=void 0,this.#Z?.(),this.#Z=void 0)}isFetching(t){return this.#H.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#U.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#H.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),r=this.#H.build(this,e),o=r.state.data;return void 0===o?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Ie(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(o))}getQueriesData(t){return this.#H.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,r){const o=this.defaultQueryOptions({queryKey:t}),a=this.#H.get(o.queryHash)?.state.data,n=function(t,e){return"function"==typeof t?t(e):t}(e,a);if(void 0!==n)return this.#H.build(this,o).setData(n,{...r,manual:!0})}setQueriesData(t,e,r){return Ye.batch(()=>this.#H.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,r)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#H.get(e.queryHash)?.state}removeQueries(t){const e=this.#H;Ye.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){const r=this.#H;return Ye.batch(()=>{const o=r.findAll(t),a=new Set(o);return o.forEach(t=>{t.reset()}),this.refetchQueries({type:"active",predicate:t=>a.has(t)},e)})}cancelQueries(t,e={}){const r={revert:!0,...e},o=Ye.batch(()=>this.#H.findAll(t).map(t=>t.cancel(r)));return Promise.all(o).then(Ee).catch(Ee)}invalidateQueries(t,e={}){return Ye.batch(()=>(this.#H.findAll(t).forEach(t=>{t.invalidate()}),"none"===t?.refetchType?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const r={...e,cancelRefetch:e.cancelRefetch??!0},o=Ye.batch(()=>this.#H.findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,r);return r.throwOnError||(e=e.catch(Ee)),"paused"===t.state.fetchStatus?Promise.resolve():e}));return Promise.all(o).then(Ee)}async query(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const r=this.#H.build(this,e),o=r.isStaleByTime(Ie(e.staleTime,r))?await r.fetch(e):r.state.data,a=e.select;return a?a(o):o}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const r=this.#H.build(this,e);return r.isStaleByTime(Ie(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ee).catch(Ee)}infiniteQuery(t){return t._type="infinite",this.query(t)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ee).catch(Ee)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return Ke.isOnline()?this.#U.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#H}getMutationCache(){return this.#U}getDefaultOptions(){return this.#p}setDefaultOptions(t){this.#p=t}setQueryDefaults(t,e){this.#V.set(Ae(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#V.values()],r={};return e.forEach(e=>{Pe(t,e.queryKey)&&Object.assign(r,e.defaultOptions)}),r}setMutationDefaults(t,e){this.#Q.set(Ae(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#Q.values()],r={};return e.forEach(e=>{Pe(t,e.mutationKey)&&Object.assign(r,e.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#p.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Oe(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"),e.queryFn===Be&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#p.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#H.clear(),this.#U.clear()}},Tr=Z(!1);Tr.Provider;var Er=Z(function(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}());function Sr(t,e,r){const o=vt(Tr),a=vt(Er),n=we(r),i=n.defaultQueryOptions(t),s=n.getQueryCache().get(i.queryHash),l=!1!==t.subscribed;i._optimisticResults=o?"isRestoring":l?"optimistic":void 0,(t=>{if(t.suspense){const e=1e3,r=t=>"static"===t?t:Math.max(t??e,e),o=t.staleTime;t.staleTime="function"==typeof o?(...t)=>r(o(...t)):r(o),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,e))}})(i),((t,e,r)=>{const o="error"===r?.state.status&&"function"==typeof t.throwOnError?Ve(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||o)&&(e.isReset()||(t.retryOnMount=!1))})(i,a,s),(t=>{ht(()=>{t.clearReset()},[t])})(a);const[c]=dt(()=>new e(n,i)),d=c.getOptimisticResult(i),u=!o&&l;if(Rt(yt(t=>{const e=u?c.subscribe(Ye.batchCalls(t)):Ee;return c.updateResult(),e},[c,u]),()=>c.getCurrentResult()),ht(()=>{c.setOptions(i)},[i,c]),((t,e)=>t?.suspense&&e.isPending)(i,d))throw((t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()}))(i,c,a);if((({result:t,errorResetBoundary:e,throwOnError:r,query:o,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&o&&(a&&void 0===t.data||Ve(r,[t.error,o])))({result:d,errorResetBoundary:a,throwOnError:i.throwOnError,query:s,suspense:i.suspense}))throw d.error;return i.notifyOnChangeProps?d:c.trackResult(d)}function Cr(t,e){return Sr(t,hr,e)}function Ir(t,e){return Sr(t,yr,e)}var Nr=class extends E{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t){this.props.onError?.(t);try{const e=this.base;(e instanceof Element?e:e?.parentElement||null)?.dispatchEvent(new CustomEvent("qrati-error",{detail:{error:t},bubbles:!0,composed:!0}))}catch{}}render(){return this.state.hasError?this.props.fallback??null:this.props.children}},Rr=class extends Error{name="KyError";get isKyError(){return!0}},Or=class extends Rr{name="HTTPError";response;request;options;data;constructor(t,e,r){const o=`${t.status||0===t.status?t.status:""} ${t.statusText??""}`.trim();super(`Request failed with ${o?`status code ${o}`:"an unknown error"}: ${e.method} ${e.url}`),this.response=t,this.request=e,this.options=r}},Ar=class extends Rr{name="NetworkError";request;constructor(t,e){super(`Request failed due to a network error: ${t.method} ${t.url}`,e),this.request=t}},Pr=t=>null!==t&&"object"==typeof t,qr=t=>Pr(t)&&!Array.isArray(t),zr=t=>"number"==typeof t&&t>=0,Mr=Object.prototype.toString,Lr=t=>t instanceof Error||"[object Error]"===Mr.call(t),Dr=t=>t instanceof globalThis.Request||"[object Request]"===Mr.call(t),Ur=t=>t instanceof globalThis.Response||"[object Response]"===Mr.call(t),Fr=class t extends Error{static wrap(e){return Lr(e)?e:new t(e)}name="NonError";value;constructor(t){let e="Non-error value was thrown";try{"string"==typeof t?e=t:t&&"object"==typeof t&&"message"in t&&"string"==typeof t.message&&(e=t.message)}catch{}super(e),this.value=t}},jr=class extends Rr{name="ForceRetryError";customDelay;code;customRequest;constructor(t){if(null===t)throw new TypeError("The `ky.retry()` options must be an object");const e=t?.delay;if(void 0!==e&&!zr(e))throw new TypeError("The `ky.retry()` `delay` option must be a non-negative number or `Infinity`");if(void 0!==t?.code&&"string"!=typeof t.code)throw new TypeError("The `ky.retry()` `code` option must be a string");if(void 0!==t?.request&&!Dr(t.request))throw new TypeError("The `ky.retry()` `request` option must be a `Request`");const r=void 0===t?.cause?void 0:Fr.wrap(t.cause);super(void 0===t?.code?"Forced retry":`Forced retry: ${t.code}`,r?{cause:r}:void 0),this.customDelay=t?.delay,this.code=t?.code,this.customRequest=t?.request}},$r=class extends Error{name="SchemaValidationError";issues;constructor(t){super("Response schema validation failed"),this.issues=t}},Br=class extends Rr{name="TimeoutError";request;constructor(t){super(`Request timed out: ${t.method} ${t.url}`),this.request=t}},Hr=(()=>{let t=!1,e=!1;const r="function"==typeof globalThis.ReadableStream,o="function"==typeof globalThis.Request;if(r&&o)try{e=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type")}catch{return!1}const a="Bun"in globalThis||"Deno"in globalThis;return(t||a)&&!e})(),Vr="function"==typeof globalThis.AbortController,Qr="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,Gr="function"==typeof globalThis.ReadableStream,Wr="function"==typeof globalThis.FormData,Zr=["get","post","put","patch","head","delete","query"],Yr={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Kr=()=>Object.keys(Yr).filter(t=>"bytes"!==t||"function"==typeof globalThis.Response?.prototype?.bytes),Jr=Symbol.for("ky.stop"),Xr=class{get isRetryMarker(){return!0}options;constructor(t){this.options=t}},to=t=>t instanceof Xr||!0===t?.isRetryMarker,eo=t=>new Xr(t),ro=["onUploadProgress","onDownloadProgress","timeout","fetch","throwHttpErrors"],oo={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,maxResponseSize:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},ao={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},no=class extends Rr{name="ResponseSizeError";request;maxResponseSize;constructor(t,e){super(`Response body exceeded ${e} bytes: ${t.method} ${t.url}`),this.request=t,this.maxResponseSize=e}},io=new TextEncoder,so=/* @__PURE__ */new WeakMap,lo=/* @__PURE__ */new Set([101,103,204,205,304]),co=(t,e)=>{const r=t?.body;r&&r!==e?.body&&r.cancel().catch(()=>{})},uo=t=>Math.max(0,Number(t.get("content-length"))||0),ho=t=>t.replaceAll(/\r\n|\r|\n/g,"\r\n"),po=t=>t.replaceAll("\n","%0A").replaceAll("\r","%0D").replaceAll('"',"%22"),fo=(t,e,r)=>{let o,a=0;return t.pipeThrough(new TransformStream({transform(t,n){if(n.enqueue(t),o){a+=o.byteLength;let t=0===e?0:a/e;t>=1&&(t=1-Number.EPSILON),r?.({percent:t,totalBytes:0===e?0:Math.max(e,a),transferredBytes:a},o)}o=t},flush(){const t=o??/* @__PURE__ */new Uint8Array;a+=t.byteLength,r?.({percent:1,totalBytes:a,transferredBytes:a},t)}}))},mo=(t,e,r=(e.body?so.get(e.body):void 0))=>{const o=t.clone.bind(t);if(t.body&&r){so.set(t.body,r);for(const e of Object.keys(Yr)){if("function"!=typeof t[e])continue;const o=t[e].bind(t);Object.defineProperty(t,e,{async value(){try{return await o()}catch(t){throw r()??t}},writable:!0,configurable:!0})}}return Object.defineProperties(t,{url:{value:e.url},redirected:{value:e.redirected},type:{value:e.type},headers:{value:e.headers},clone:{value(){const e=o();return t.body&&r&&so.set(t.body,r),mo(e,t)},writable:!0,configurable:!0}}),t},go=t=>{const{body:e}=t;if(e&&!t.bodyUsed&&!e.locked&&!lo.has(t.status))return e},yo=Symbol.for("ky.replaceOption"),vo=t=>Pr(t)&&!0===t[yo]?{isReplace:!0,value:t.value}:{isReplace:!1,value:t},bo=(...t)=>{for(const e of t)if(void 0!==e&&!qr(e))throw new TypeError("The `options` argument must be an object");return zo({},...t)},wo=(t={},e={})=>{const r=new globalThis.Headers(t);for(const[o,a]of Object.entries(So(e)))void 0===a?r.delete(o):r.set(o,a);return r},_o=t=>{if(!qr(t))return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||null===e},xo=t=>_o(t)||Array.isArray(t),ko=t=>{if(t instanceof URLSearchParams){const e=new URLSearchParams(t),r=t[Ro];return r&&(e[Ro]=new Set(r)),e}return Array.isArray(t)?[...t]:_o(t)?{...t}:t},To=t=>Array.isArray(t)?t.map(t=>ko(t)):ko(t),Eo=(t,e=/* @__PURE__ */new WeakMap)=>{if(!xo(t))return t;const r=e.get(t);if(r)return r;if(Array.isArray(t)){const r=[];e.set(t,r);for(const o of t)r.push(Eo(o,e));return r}const o=null===Object.getPrototypeOf(t)?Object.create(null):{};e.set(t,o);for(const a of Reflect.ownKeys(t))Object.prototype.propertyIsEnumerable.call(t,a)&&Object.defineProperty(o,a,{value:Eo(t[a],e),writable:!0,enumerable:!0,configurable:!0});return o},So=t=>{if(_o(t))return t;const e=t instanceof globalThis.Headers,r={};for(const[o,a]of new globalThis.Headers(t).entries())r[o]=e&&"undefined"===a?void 0:a;return r},Co=(t,e)=>{const r=/* @__PURE__ */new Map;for(const[o,a]of[...Object.entries(So(t)),...Object.entries(So(e))])r.set(o.toLowerCase(),a);return Object.fromEntries(r)};function Io(t,e,r){if(Object.hasOwn(e,r)&&void 0===e[r])return[];const{isReplace:o,value:a}=vo(e[r]);if(!(void 0===a||Array.isArray(a)&&a.every(t=>"function"==typeof t)))throw new TypeError(`\`hooks.${r}\` must be an array of functions`);return o?[...a??[]]:zo(t[r]??[],a??[])}var No=(t={},e={})=>{if(!qr(e))throw new TypeError("The `hooks` option must be an object");return{init:Io(t,e,"init"),beforeRequest:Io(t,e,"beforeRequest"),beforeRetry:Io(t,e,"beforeRetry"),beforeError:Io(t,e,"beforeError"),afterResponse:Io(t,e,"afterResponse")}},Ro=Symbol("deletedParameters"),Oo=/* @__PURE__ */new Set(["json","context"]),Ao=(t,e)=>{if(!xo(t))return t;if(e.has(t))return e.get(t);e.set(t,t);const r=((t,e)=>{let r;for(const[o,a]of Object.entries(t)){const n=e(a);n!==a&&(r??=Array.isArray(t)?[...t]:{...t},r[o]=n)}return r??t})(t,t=>Ao(vo(t).value,e));return e.set(t,r),r},Po=(t,e)=>{const r=new URLSearchParams,o=/* @__PURE__ */new Set;for(const a of[t,e])if(a instanceof URLSearchParams){const t=a[Ro];if(t)for(const e of t)r.delete(e),o.add(e);for(const[e,o]of a.entries())r.append(e,o)}else if(Array.isArray(a))for(const t of a){if(!Array.isArray(t)||2!==t.length)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");const e=String(t[0]),{isReplace:o,value:a}=vo(t[1]);o&&r.delete(e),r.append(e,String(a))}else if(Pr(a))for(const[t,e]of Object.entries(a)){const{isReplace:a,value:n}=vo(e);void 0===n?(r.delete(t),o.add(t)):(a&&r.delete(t),r.append(t,String(n)))}else{const t=new URLSearchParams(a);for(const[e,o]of t.entries())r.append(e,o)}return o.size>0&&(r[Ro]=o),r},qo=(t,...e)=>{let r,o={},a={},n={};const i=[];for(const s of e)if(Array.isArray(s))Array.isArray(o)||(o=[]),o=[...o,...s];else if(Pr(s)){for(let[e,a]of Object.entries(s)){const n=vo(a),{isReplace:s}=n;a=n.value;const l=t&&"signal"===e;if(l&&(s||void 0===a)&&(i.length=0),l&&a instanceof globalThis.AbortSignal)i.push(a);else{if(t&&"headers"===e&&null===a)throw new TypeError("The `headers` option must not be `null`. Use `undefined` to clear it.");if(t&&"context"===e){if(void 0!==a&&!qr(a))throw new TypeError("The `context` option must be an object");o={...o,context:void 0===a?{}:s?{...a}:{...o.context,...a}}}else if(t&&"searchParams"===e){if(null===a)throw new TypeError("The `searchParams` option must not be `null`. Use `undefined` to clear it.");r=void 0===a?void 0:s||void 0===r?To(a):Po(r,a)}else{if(t&&"retry"===e&&void 0!==a&&"number"!=typeof a&&!qr(a))throw new TypeError("`retry` must be a number or an object");t&&"retry"===e&&!s&&(Pr(a)&&"number"==typeof o[e]?o={...o,[e]:{limit:o[e]}}:"number"==typeof a&&Pr(o[e])&&(a={limit:a})),t&&"retry"===e&&_o(a)&&(s||!xo(o[e]))?a=qo(!1,{},a):!s&&xo(o[e])&&xo(a)&&Array.isArray(o[e])===Array.isArray(a)&&(a=qo(!1,o[e],a)),o={...o,[e]:a}}}}if(t&&void 0!==s.hooks){const{value:t,isReplace:e}=vo(s.hooks);n=No(e?{}:n,t),o.hooks=n}if(t&&Pr(s.headers)){const{value:t,isReplace:e}=vo(s.headers);a=Co(e?{}:a,t),o.headers=a}}if(void 0!==r&&(o.searchParams=r),i.length>0&&(1===i.length?o.signal=i[0]:o.signal=Qr?AbortSignal.any(i):i.at(-1)),t)for(const[s,l]of Object.entries(o))Oo.has(s)||(o[s]=Ao(l,/* @__PURE__ */new Map));return o},zo=(...t)=>qo(!0,...t),Mo=t=>Zr.includes(t.toLowerCase())?t.toUpperCase():t,Lo=/* @__PURE__ */new Set([...Zr,"options","trace"]),Do=t=>Lo.has(t.toLowerCase())?t.toLowerCase():t,Uo={limit:2,methods:["get","put","head","delete","options","trace","query"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:t=>.3*2**(t-1)*1e3,jitter:void 0,retryOnTimeout:!1},Fo=(t={})=>{if("number"==typeof t&&(t={limit:t}),!qr(t))throw new TypeError("`retry` must be a number or an object");const e={...Uo,...Object.fromEntries(Object.entries(t).filter(([,t])=>void 0!==t))};if(!Number.isInteger(e.limit)||e.limit<0)throw new TypeError("`retry.limit` must be a finite, non-negative integer");for(const r of["methods","statusCodes","afterStatusCodes"])if(!Array.isArray(e[r]))throw new Error(`retry.${r} must be an array`);for(const[r,o]of[["methods",t=>"string"==typeof t],["statusCodes",t=>Number.isInteger(t)],["afterStatusCodes",t=>Number.isInteger(t)]])if(e[r].some(t=>!o(t)))throw new TypeError(`\`retry.${r}\` must only contain ${"methods"===r?"strings":"numbers"}`);for(const r of["maxRetryAfter","backoffLimit"])if(!zr(e[r]))throw new TypeError(`\`retry.${r}\` must be a non-negative number or \`Infinity\``);for(const r of["delay","shouldRetry"])if(void 0!==e[r]&&"function"!=typeof e[r])throw new TypeError(`\`retry.${r}\` must be a function`);if(void 0!==e.jitter&&"boolean"!=typeof e.jitter&&"function"!=typeof e.jitter)throw new TypeError("`retry.jitter` must be a boolean or a function");if("boolean"!=typeof e.retryOnTimeout)throw new TypeError("`retry.retryOnTimeout` must be a boolean");return e.methods=e.methods.map(t=>Do(t)),e.statusCodes=[...e.statusCodes],e.afterStatusCodes=[...e.afterStatusCodes],e};async function jo(t,{signal:e}){return new Promise((r,o)=>{function a(){clearTimeout(n),o(e.reason)}e&&(e.throwIfAborted(),e.addEventListener("abort",a,{once:!0}));const n=setTimeout(()=>{e?.removeEventListener("abort",a),r()},t)})}var $o=/* @__PURE__ */new Set(["network error","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function Bo(t){if(!t||!Lr(t)||"TypeError"!==t.name||"string"!=typeof t.message)return!1;const{message:e,stack:r}=t;return"Load failed"===e||e.startsWith("Load failed (")&&e.endsWith(")")?void 0===r||"__sentry_captured__"in t:!!e.startsWith("error sending request for url")||!!("Failed to fetch"===e||e.startsWith("Failed to fetch (")&&e.endsWith(")"))||$o.has(e)}var Ho=(t,e)=>t instanceof e||!0===t?.isKyError&&t?.name===e.name;function Vo(t){return Ho(t,jr)}var Qo=/^\d+$/,Go=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Wo=/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{2}):(\d{2}):(\d{2}) GMT$/,Zo=/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{2}):(\d{2}):(\d{2}) GMT$/,Yo=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{2}| \d) (\d{2}:\d{2}:\d{2}) (\d{4})$/,Ko=({year:t,month:e,day:r,hours:o,minutes:a,seconds:n})=>{const i=Go.indexOf(e),s=Number(r),l=Number(o),c=Number(a),d=Number(n);if(-1===i||l>23||c>59||d>60)return;const u=Math.min(d,59),h=new Date(Date.UTC(t,i,s,l,c,u));h.setUTCFullYear(t);const p=h.getTime();return h.getUTCFullYear()===t&&h.getUTCMonth()===i&&h.getUTCDate()===s&&h.getUTCHours()===l&&h.getUTCMinutes()===c&&h.getUTCSeconds()===u?60===d?p+1e3:p:void 0},Jo=(t,e)=>t[e],Xo=Symbol("timedOut"),ta=()=>globalThis.performance?.now()??Date.now(),ea=(t,e)=>Promise.race([t,new Promise(r=>{const o=setTimeout(()=>{r(Xo)},e);t.finally(()=>{clearTimeout(o)}).catch(()=>{})})]),ra=t=>{(Ur(t)||Dr(t))&&co(t)},oa=t=>{t.then(t=>{ra(t)}).catch(()=>{})},aa=t=>{const e=(t.split(";",1)[0]??"").trim().toLowerCase();if(!e.endsWith("json"))return!1;const r=e.at(-5);return"/"===r||("."===r||"+"===r||"-"===r)&&e.includes("/")},na=(t,e)=>{if(!1!==t){if(!zr(t))throw new TypeError(`The \`${e}\` option must be a non-negative number or \`false\``);if(t>2147483647)throw new RangeError(`The \`${e}\` option cannot be greater than 2147483647`)}},ia=({throwHttpErrors:t=!0,timeout:e=1e4,fetch:r=globalThis.fetch.bind(globalThis)})=>({throwHttpErrors:t,timeout:e,fetch:r}),sa=t=>{for(const r of["parseJson","stringifyJson","fetch","onDownloadProgress","onUploadProgress"])if(void 0!==t[r]&&"function"!=typeof t[r])throw new TypeError(`The \`${r}\` option must be a function`);const{throwHttpErrors:e}=t;if("boolean"!=typeof e&&"function"!=typeof e)throw new TypeError("The `throwHttpErrors` option must be a boolean or a function")},la=/^[\0-\u0020]+/g,ca=/[\t\n\r]/g,da=/^[a-z][\d+.a-z-]*:/i,ua=/^https?:(?!\/\/)/i,ha=(t,e)=>{t.searchParams.has(e)&&t.searchParams.delete(e)},pa=async(t,e)=>{const r=Pr(e)||"function"==typeof e?e["~standard"]:void 0;if(!Pr(r)||"function"!=typeof r.validate)throw new TypeError("The `schema` argument must follow the Standard Schema specification");const o=await r.validate(t);if(o.issues)throw new $r(o.issues);return o.value},fa=class t{static create(e,r){const o=r.hooks?.init??[],a=o.length>0?function(t){return{...t,headers:Co({},t.headers??{}),context:{...t.context},json:Eo(t.json),searchParams:To(t.searchParams),retry:Eo(t.retry)}}(r):r;for(const t of o)t(a);const n=new t(e,a),i=(async()=>{let t;try{return t=await n.#Y(),t}catch(e){return await n.#K(e)}finally{const e=n.#J;co(e,t),e&&n.request!==e&&co(n.request,t)}})();for(const t of Kr()){const e=Yr[t];i[t]=async r=>{n.request!==n.#J&&n.request.headers.set("accept",n.request.headers.get("accept")||e);const o=await i;if(void 0===o)throw new TypeError("The request resolved without a response, so there is no body to read. This happens when a `beforeRetry` hook returns `ky.stop`. Throw from the hook instead of returning `ky.stop`.");if("json"!==t)return n.#X(async()=>o[t](),o);const a=await n.#X(async()=>o.text(),o),s=n.#tt(o);let l;try{l=await n.#et(async()=>{const t=""!==a||void 0===r||n.#rt.parseJson?await n.#ot(a,s,o):void 0;return void 0===r?t:await pa(t,r)})}catch(c){throw n.#at?.aborted&&await n.#K(n.#at.reason,s),c}return l===Xo&&await n.#K(new Br(s),s),l}}return i}request;#nt;#it=0;#st;#rt;#lt;#J;#ct=!1;#at;#dt=/* @__PURE__ */new WeakSet;#ut;#ht;#pt=/* @__PURE__ */new WeakSet;#ft=/* @__PURE__ */new WeakMap;#mt=/* @__PURE__ */new WeakSet;constructor(t,e={}){if("string"!=typeof t&&!(t instanceof URL||t instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");const{maxResponseSize:r=Number.POSITIVE_INFINITY,totalTimeout:o=!1}=e;if(Object.hasOwn(e,"prefixUrl"))throw new Error("The `prefixUrl` option has been renamed `prefix` in v2 and enhanced to allow slashes in input. See also the new `baseUrl` option for improved flexibility with standard URL resolution: https://github.com/sindresorhus/ky#baseurl");for(const i of["headers","method","prefix","baseUrl","referrer","referrerPolicy"])if(null===e[i])throw new TypeError(`The \`${i}\` option must not be \`null\`. Use \`undefined\` to clear it.`);if(void 0!==e.context&&!qr(e.context))throw new TypeError("The `context` option must be an object");if(this.#rt={...e,headers:wo(t.headers,e.headers),hooks:No({},e.hooks),method:Mo(e.method??t.method??"GET"),referrer:e.referrer??t.referrer,referrerPolicy:e.referrerPolicy??t.referrerPolicy,prefix:String(e.prefix||""),retry:Fo(e.retry),...ia(e),totalTimeout:o,maxResponseSize:r,context:e.context??{}},sa(this.#rt),na(this.#rt.timeout,"timeout"),na(o,"totalTimeout"),this.#st=this.#rt.retry.limit,r!==Number.POSITIVE_INFINITY&&(!Number.isSafeInteger(r)||r<0))throw new TypeError("The `maxResponseSize` option must be a non-negative safe integer or Infinity");this.#lt=t instanceof globalThis.Request?t:void 0,t=((t,e,r)=>{if("string"!=typeof t)return t;if(e&&(t=`${e.replace(/\/+$/,"")}/${t.replace(/^\/+/,"")}`),r){const e=(t=>t.replaceAll(la,"").replaceAll(ca,""))(t);if(ua.test(e))throw new TypeError("`input` url protocol must be followed by `//` when using `baseUrl`");if(!(t=>da.test(t))(e))return new URL(t,new Request(r).url)}return t})(t,this.#rt.prefix,this.#rt.baseUrl),Vr&&Qr&&(this.#at=this.#rt.signal??this.#lt?.signal,this.#nt=new globalThis.AbortController,this.#rt.signal=this.#gt()),Hr&&(this.#rt.duplex="half");const a=void 0!==e.headers&&wo({},e.headers).has("content-type");void 0!==this.#rt.json&&(this.#rt.body=this.#rt.stringifyJson?.(this.#rt.json)??JSON.stringify(this.#rt.json),a||this.#rt.headers.set("content-type","application/json")),t instanceof globalThis.Request&&(Wr&&this.#rt.body instanceof globalThis.FormData||this.#rt.body instanceof URLSearchParams)&&!a&&this.#rt.headers.delete("content-type"),this.request=new globalThis.Request(t,this.#rt),this.#ct="function"==typeof globalThis.ReadableStream&&this.#rt.body instanceof globalThis.ReadableStream;const{searchParams:n}=this.#rt;if((t=>{if(void 0===t)return!1;if(null===t)throw new TypeError("The `searchParams` option must not be `null`. Use `undefined` to clear it.");return Array.isArray(t)?t.length>0:t instanceof URLSearchParams?t.size>0||Boolean(t[Ro]?.size):"object"==typeof t?Object.keys(t).length>0:"string"==typeof t?t.trim().length>0:Boolean(t)})(n)){const t=new URL(this.request.url);if(((t,e)=>{const r=e?.[Ro];if(r)for(const o of r)ha(t,o);if("string"==typeof e){const r=e.replace(/^\?/,"");""!==r&&(t.search=t.search?`${t.search}&${r}`:`?${r}`)}else if(!qr(e)||e instanceof URLSearchParams)for(const[o,a]of new URLSearchParams(e))t.searchParams.append(o,a);else for(const[o,a]of Object.entries(e))void 0===a?ha(t,o):t.searchParams.append(o,a)})(t,n),t.href!==this.request.url){const{body:e,cache:r,credentials:o,integrity:a,keepalive:n,mode:i,redirect:s,referrer:l,referrerPolicy:c}=this.request,d=Hr&&!n&&"no-cors"!==i;this.request=new globalThis.Request(t,{...this.#rt,cache:r,credentials:o,integrity:a,keepalive:n,mode:i,redirect:s,referrer:l,referrerPolicy:c,body:this.#rt.body??(d?e:void 0)})}}this.#ht="number"==typeof o?ta()+o:Number.POSITIVE_INFINITY}async#Y(){await Promise.resolve();const t=await this.#yt();void 0!==t&&(this.#st=Fo(this.#rt.retry).limit);let e=t??await this.#vt();for(;;){if(void 0===e)return;const t=this.#pt.has(e);let o;try{e=await this.#bt(e)}catch(r){if(!Vo(r))throw r;o=r}if(void 0===o){const r=e;if(r.ok||"opaque"===r.type||!this.#wt(r))break;const a=new Or(r,this.#tt(r),this.#_t());if(a.data=await this.#xt(r),this.#kt(),this.#Tt(),t)throw a;o=a}e=await this.#Et(o)}if(this.#St(e),this.#rt.onDownloadProgress){if(!Gr)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");const t=((t,e)=>{const r=go(t);if(!r)return t;const o=t.headers.get("content-encoding")?.toLowerCase(),a=Boolean(o)&&"identity"!==o?0:uo(t.headers),n=fo(r,a,e);return mo(new Response(n,t),t)})(e,this.#rt.onDownloadProgress);return this.#Ct(t,this.#tt(e)),this.#St(t)}return e}#It(t,e){const r=t.delay(this.#it+1);if(!zr(r))throw new TypeError("`retry.delay` must return a non-negative number or `Infinity`",{cause:e});let o=r;return!0===t.jitter?o=Math.random()*r:"function"==typeof t.jitter&&(o=t.jitter(r),(!Number.isFinite(o)||o<0)&&(o=r)),Math.min(t.backoffLimit,o)}async#Nt(t){const e=Fo(this.#rt.retry);if(this.#it>=Math.min(e.limit,this.#st))throw t;const r=Fr.wrap(t);if(Vo(r))return r.customDelay??this.#It(e,t);if(!e.methods.includes(Do(this.request.method)))throw t;let o=!1;const{shouldRetry:a}=e;if(void 0!==a){const e=await this.#et(async()=>a({error:r,retryCount:this.#it+1}));if(this.#kt(),e===Xo)throw new Br(this.#Rt);if(!1===e)throw t;o=!0===e}if(function(t){return Ho(t,Br)}(t)){if(!o&&!e.retryOnTimeout)throw t;return this.#It(e,t)}if(function(t){return Ho(t,Or)}(t)){if(!o&&!e.statusCodes.includes(t.response.status))throw t;const r=(t=>{const e=t.get("Retry-After");if(null!==e)return{value:e,allowTimestamp:!1};const r=t.get("RateLimit-Reset");if(null!==r)return{value:r,allowTimestamp:!0};const o=t.get("X-RateLimit-Retry-After");if(null!==o)return{value:o,allowTimestamp:!1};const a=t.get("X-RateLimit-Reset")??t.get("X-Rate-Limit-Reset");return null!==a?{value:a,allowTimestamp:!0}:void 0})(t.response.headers);if(r&&e.afterStatusCodes.includes(t.response.status)){const o=(({value:t,allowTimestamp:e})=>{if(Qo.test(t)){let r=1e3*Number(t);return e&&Number(t)>=1e9&&(r-=Date.now()),Math.max(0,r)}const r=(t=>{const e=Wo.exec(t);if(e)return Ko({year:Number(Jo(e,3)),month:Jo(e,2),day:Jo(e,1),hours:Jo(e,4),minutes:Jo(e,5),seconds:Jo(e,6)});const r=Zo.exec(t);if(r){const t=/* @__PURE__ */new Date,e=Number(Jo(r,3)),o=100*Math.floor(t.getUTCFullYear()/100)+e,a=Date.UTC(t.getUTCFullYear()+50,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds());let n;for(const i of[o-100,o,o+100]){const t=Ko({year:i,month:Jo(r,2),day:Jo(r,1),hours:Jo(r,4),minutes:Jo(r,5),seconds:Jo(r,6)});void 0!==t&&t<=a&&(n=t)}return n}const o=Yo.exec(t);if(o){const[t,e,r]=Jo(o,4).split(":");return Ko({year:Number(Jo(o,5)),month:Jo(o,2),day:Jo(o,3).trim(),hours:t,minutes:e,seconds:r})}})(t);if(void 0!==r)return Math.max(0,r-Date.now())})(r);return void 0===o?this.#It(e,t):Math.min(e.maxRetryAfter,o)}if(!o&&413===t.response.status)throw t;return this.#It(e,t)}if(!o&&!function(t){return Ho(t,Ar)}(t))throw t;return this.#It(e,t)}#St(t){if(!this.#rt.parseJson||this.#mt.has(t))return t;this.#mt.add(t);const e=this.#tt(t);t.json=async()=>this.#ot(await t.text(),e,t);const r=t.clone.bind(t);return t.clone=()=>this.#St(this.#Ct(r(),e)),t}async#K(t,e=this.#Rt){if(!Lr(t))throw t;if(this.#dt.has(t))throw t;let r=t;for(const o of this.#rt.hooks.beforeError){const t=await o({request:e,options:this.#_t(),error:r,retryCount:this.#it});Lr(t)&&(r=t)}throw r}async#xt(t){const e=this.#tt(t),r=({fromTotalTimeout:t})=>{if(t)throw new Br(e);this.#Tt(e)},o=this.#Ot(e),a=await(async(t,e)=>{const{body:r}=t;if(!r)try{return await t.text()}catch{return}let o;try{o=r.getReader()}catch{return}const a=t.headers.get("content-type")??"",n=aa(a)?new TextDecoder:(t=>{const e=/;\s*charset\s*=\s*(?:"([^"]+)"|([^;,\s]+))/i.exec(t),r=e?.[1]??e?.[2];if(r)try{return new TextDecoder(r)}catch{}return new TextDecoder})(a),i=[];let s=0;const l=(async()=>{try{for(;;){const{done:t,value:e}=await o.read();if(t)break;if(s+=e.byteLength,s>10485760)return void o.cancel().catch(()=>{});i.push(n.decode(e,{stream:!0}))}}catch(t){if(function(t){return Ho(t,no)}(t))throw t;return}return i.push(n.decode()),i.join("")})(),c=await ea(l,e);return c===Xo&&o.cancel().catch(()=>{}),c})(t,o.milliseconds);if(a===Xo)return void r(o);if(!a)return;if(!aa(t.headers.get("content-type")??""))return a;const n=this.#Ot(e),i=await ea(Promise.resolve().then(()=>this.#ot(a,e,t)),n.milliseconds).catch(()=>{});if(i!==Xo)return i;r(n)}#Ot(t){const e=!1===this.#rt.timeout?1e4:this.#rt.timeout,r=this.#At();if(0===r)throw new Br(t);return{milliseconds:Math.min(e,r),fromTotalTimeout:r<=e}}#Pt(){const t=this.#At();if(0===t)throw new Br(this.#Rt);const e=Math.min(!1===this.#rt.timeout?Number.POSITIVE_INFINITY:this.#rt.timeout,t);return e===Number.POSITIVE_INFINITY?void 0:e}async#X(t,e){const r=this.#tt(e);let o;try{o=this.#Pt()}catch(i){await this.#K(i,r)}const a=t();let n;try{n=void 0===o?await a:await ea(a,o)}catch(i){this.#at?.aborted&&await this.#K(this.#at.reason,r),0!==this.#At()&&(Bo(i)&&await this.#K(new Ar(r,{cause:i}),r),await this.#K(i,r)),n=Xo}return this.#at?.aborted&&await this.#K(this.#at.reason,r),n!==Xo&&0!==this.#At()||(this.#nt?.abort(),await this.#K(new Br(r),r)),n}async#et(t){const e=this.#at;e?.throwIfAborted();const r=this.#At();if(0===r)return this.#nt?.abort(),Xo;let o,a,n;try{const i=new Promise((t,r)=>{e&&(a=()=>{r(e.reason)},e.addEventListener("abort",a,{once:!0}))});if(n=t(),r===Number.POSITIVE_INFINITY)return await Promise.race([n,i]);const s=new Promise(t=>{o=setTimeout(()=>{t(Xo)},r)}),l=await Promise.race([n,s,i]);return l===Xo||0===this.#At()?(this.#nt?.abort(),l===Xo?oa(n):ra(l),Xo):l}catch(i){if(e?.aborted&&(n&&oa(n),e.throwIfAborted()),0===this.#At())return this.#nt?.abort(),Xo;throw i}finally{clearTimeout(o),a&&e?.removeEventListener("abort",a)}}#ot(t,e,r){const{parseJson:o}=this.#rt;return o?o(t,{request:e,response:r}):JSON.parse(t)}#gt(){return this.#at?AbortSignal.any([this.#at,this.#nt.signal]):this.#nt.signal}#wt(t){const{throwHttpErrors:e}=this.#rt;try{return"function"==typeof e?e(t.status):e}catch(r){throw co(t),r}}get#Rt(){return this.#J??this.request}#Tt(t=this.#Rt){if(0===this.#At())throw new Br(t)}async#yt(){for(const t of this.#rt.hooks.beforeRequest){const e=await this.#et(async()=>t({request:this.request,options:this.#_t(),retryCount:0}));if(e===Xo)throw new Br(this.#Rt);if(Dr(e))this.#qt(this.#zt(e));else if(Ur(e))return this.#pt.add(e),e}}async#bt(t){const e=this.#tt(t);t=this.#Mt(t);for(const o of this.#rt.hooks.afterResponse){const a=this.#Ct(t.clone(),e);let n;this.#St(a);try{if(n=await this.#et(async()=>o({request:this.request,options:this.#_t(),response:a,retryCount:this.#it})),n===Xo)throw new Br(this.#Rt);if(to(n))throw new jr(n.options)}catch(r){throw co(a),co(t),r}const i=Ur(n)?this.#Ct(n,e):t;co(a,i),co(t,i),i!==t&&(t=this.#Mt(i))}return t}async#vt(){try{return await this.#Lt()}catch(t){return this.#Et(t)}}async#Et(t){this.#kt();const e=Math.min(await this.#Nt(t),2147483647),r={signal:this.#at},o=this.#At();if(0===o)throw new Br(this.#Rt);if(e>=o)throw await jo(o,r),new Br(this.#Rt);await jo(e,r),this.#Tt(),this.#nt?.signal.aborted&&(this.#nt=new globalThis.AbortController,this.#rt.signal=this.#gt(),this.#qt(this.#zt(this.request),this.#ct)),Vo(t)&&t.customRequest&&this.#qt(this.#zt(t.customRequest));for(const n of this.#rt.hooks.beforeRetry){let e;try{e=await this.#et(async()=>n({request:this.request,options:this.#_t(),error:Fr.wrap(t),retryCount:this.#it+1}))}catch(a){throw this.#kt(),Lr(a)&&a!==t&&this.#dt.add(a),a}if(e===Xo)throw new Br(this.#Rt);if(Dr(e)){this.#qt(this.#zt(e));break}if(Ur(e))return this.#pt.add(e),this.#it++,e;if(e===Jr)return;qr(e)&&this.#Dt(e.options)}return this.#Tt(),this.#it++,this.#vt()}async#Lt(){co(this.#J,this.request);const t=(t=>{const e={};for(const r of Object.keys(t))Object.hasOwn(ao,r)||Object.hasOwn(oo,r)||Object.defineProperty(e,r,{value:t[r],writable:!0,enumerable:!0,configurable:!0});return e})(this.#rt);this.#st=Fo(this.#rt.retry).limit;const e=this.#st>0?this.#zt(this.request.clone()):void 0,r=this.#Ut(this.request);this.#J=r,e&&(this.request=e,this.#ct=!0);try{const e=this.#Pt(),{fetch:o}=this.#rt,a=void 0===e?await o(r,t):await async function(t,e,r,o){let a,n=!1;try{return await new Promise((i,s)=>{a=setTimeout(()=>{n=!0,r?.abort(),s(new Br(t))},o.timeout);const{fetch:l}=o;l(t,e).then(t=>{n?co(t):i(t)}).catch(s)})}finally{clearTimeout(a)}}(r,t,this.#nt,{timeout:e,fetch:o});if(!Ur(a))throw new TypeError("The `fetch` option must resolve with a `Response`");if(0===this.#At())throw this.#nt?.abort(),co(a),new Br(r);return this.#Ct(a,r)}catch(o){if(this.#kt(),0===this.#At())throw this.#nt?.abort(),new Br(r);if(Bo(o))throw new Ar(r,{cause:o});throw o}}#kt(){this.#at?.throwIfAborted()}#At(){return Math.max(0,this.#ht-ta())}#Dt(t){if(!qr(t))throw new TypeError("The `options` returned from a `beforeRetry` hook must be an object");for(const o of Object.keys(t))if(!ro.includes(o))throw new TypeError(`The \`${o}\` option cannot be changed from a \`beforeRetry\` hook`);const e={...this.#rt,...t},r={...e,...ia(e)};sa(r),na(r.timeout,"timeout"),Object.assign(this.#rt,r),this.#ut=void 0}#_t(){if(!this.#ut){const{hooks:t,json:e,parseJson:r,stringifyJson:o,searchParams:a,timeout:n,totalTimeout:i,maxResponseSize:s,throwHttpErrors:l,fetch:c,...d}=this.#rt;this.#ut=Object.freeze(d)}return this.#ut}#qt(t,e=!1){this.#ct&&co(this.request,t),this.#ut=void 0,this.request=t,this.#ct=e}#zt(t){return this.#rt.signal&&t instanceof globalThis.Request?new globalThis.Request(t,{signal:this.#rt.signal,referrer:t.referrer,referrerPolicy:t.referrerPolicy}):t}#tt(t){return this.#ft.get(t)??this.#Rt}#Ct(t,e){return this.#ft.set(t,e),t}#Mt(t){const e=this.#tt(t);return this.#Ct(((t,e,r)=>{const o=go(t);if(!o||r===Number.POSITIVE_INFINITY)return t;let a,n=0;const i=so.get(o),s=o.pipeThrough(new TransformStream({transform(t,o){if(n+=t.byteLength,n>r)throw a=new no(e,r),a;o.enqueue(t)}}));return mo(new Response(s,t),t,()=>a??i?.())})(t,e,this.#rt.maxResponseSize),e)}#Ut(t){return this.#rt.onUploadProgress&&Hr&&t.body?((t,e,r)=>{if(!t.body||t.bodyUsed||t.body.locked||t.keepalive||"no-cors"===t.mode||!(t instanceof globalThis.Request))return t;const o=(t=>{if(!t)return 0;if(t instanceof FormData){let e=0;for(const[r,o]of t)e+=44,e+=io.encode(`Content-Disposition: form-data; name="${po(ho(r))}"`).byteLength,o instanceof Blob&&(e+=io.encode(`; filename="${po(o.name??"")}"`).byteLength,e+=io.encode(`\r\nContent-Type: ${o.type||"application/octet-stream"}`).byteLength),e+=4,e+="string"==typeof o?io.encode(ho(o)).byteLength:o.size,e+=2;return 0===e?0:e+40+6}return t instanceof Blob?t.size:t instanceof ArrayBuffer||ArrayBuffer.isView(t)?t.byteLength:"string"==typeof t?io.encode(t).byteLength:t instanceof URLSearchParams?io.encode(t.toString()).byteLength:0})(r??t.body)||uo(t.headers);return new Request(t,{duplex:"half",body:fo(t.body,o,e),headers:t.headers,referrer:t.referrer,referrerPolicy:t.referrerPolicy})})(t,this.#rt.onUploadProgress,this.#rt.body):t}},ma=(t,e)=>{try{return fa.create(t,e())}catch(r){const t=Promise.reject(r);for(const e of Kr())t[e]=async()=>t;return t}},ga=t=>{const e=(e,r)=>ma(e,()=>bo(t,r));for(const r of Zr)e[r]=(e,o)=>ma(e,()=>bo(t,o,{method:r}));return e.create=t=>ga(bo(t)),e.extend=e=>("function"==typeof e&&(e=e(bo(Eo(t)))),ga(bo(t,e))),e.stop=Jr,e.retry=eo,e},ya=ga(),va={PUBLIC_EVENTS:"/",FOLDER_EVENTS:t=>`/${t}`,LOGIN:"/auth/login",REGISTER:"/auth/register",FORGOT_PASSWORD:"/auth/forgot-password",RESET_PASSWORD:"/auth/reset-password",VERIFY_EMAIL:"/auth/verify-email",GALLERY:t=>`/event/${t}`,UPLOAD:t=>`/event/${t}/upload`,CURATE:t=>`/event/${t}/curate`,LEADERBOARD:t=>`/event/${t}/leaderboard`,MY_UPLOADS:"/my-uploads"},ba={ORGANIZATION_SETTINGS:t=>`https://qrati.com/org/${t}/settings`,ORGANIZATION_SETTINGS_INTEGRATION:t=>`https://qrati.com/org/${t}/settings/integration`,ORGANIZATION_DASHBOARD:t=>`https://qrati.com/org/${t}/dashboard`,ORGANIZATION_ADMINS:t=>`https://qrati.com/org/${t}/admins`,EVENT_SETTINGS_BASIC_DETAILS:t=>`https://qrati.com/event/${t}/settings`,EVENT_REVIEW_CONTENTS:t=>`https://qrati.com/event/${t}/review-contents`,EVENT_DEEP_SEARCH:t=>`https://qrati.com/event/${t}/deep-search`,EVENT_GENERATE_ARTICLE:t=>`https://qrati.com/event/${t}/generate-article`,EVENT_ACCESS_REQUESTS:t=>`https://qrati.com/event/${t}/access-requests`,EVENT_SHOT_INSPECTOR:t=>`https://qrati.com/event/${t}/shot-inspector`,EVENT_CURATION_DETAILS:t=>`https://qrati.com/event/${t}/curation-details`},wa={PUBLIC:"PUBLIC",PRIVATE:"PRIVATE",SECRET:"SECRET"},_a="https://qrati.com/api/connect",xa={INITIALIZE_SESSION:`${_a}/session/initialize`,REGISTER:`${_a}/auth/register`,LOGIN:`${_a}/auth/login`,LOGOUT:`${_a}/auth/logout`,UPDATE_SESSION:`${_a}/session/update`,ACCEPT_TERMS:`${_a}/auth/accept-terms`,PUBLIC_EVENTS:`${_a}/event/public-events`,SEARCH_EVENTS:`${_a}/event/search`,FOLDER_DETAILS:`${_a}/folder/details`,NESTED_FOLDERS:`${_a}/folder/nested-folders`,GET_EVENT_POINTS:`${_a}/event/points`,ELIGIBLE_TO_CURATE:`${_a}/content/curation-eligibility`,CONTENT_FOR_CURATION:`${_a}/content/for-curation`,CURATE_CONTENT:`${_a}/content/curate`,GET_LEADERBOARD:`${_a}/event/leaderboard`,GET_UPLOAD_COUNT:`${_a}/event/upload-count`,UPLOAD_CREATE:`${_a}/content/upload/create`,UPLOAD_COMPLETE:`${_a}/content/upload/complete`,UPLOAD_FAIL:`${_a}/content/upload/fail`,UPLOAD_ABORT:`${_a}/content/upload/abort`,UPDATE_REACTION:`${_a}/content/update-reaction`,EVENT_DATA:`${_a}/event/details-with-ads-parameters`,UPDATE_EVENT_LAYOUT:`${_a}/event/update-layout`,GET_EVENT_STATISTICS:`${_a}/event/statistics`,GET_CONTENTS:`${_a}/content/for-gallery`,SEARCH_CONTENTS:`${_a}/content/search`,GET_CONTENTS_COUNT:`${_a}/content/count`,TRACK_EVENT:`${_a}/event/track`,SEND_PASSWORD_RESET_CODE:`${_a}/auth/send-password-reset-code`,VERIFY_PASSWORD_RESET_CODE:`${_a}/auth/verify-password-reset-code`,RESET_PASSWORD:`${_a}/auth/reset-password`,REPORT_ERROR:`${_a}/log-error`,GET_POST_PROCESSING_SETTINGS:`${_a}/event/post-processing-settings`,MY_UPLOADS:`${_a}/content/my-uploads`,DELETE_CONTENT:`${_a}/content/delete`,UPDATE_CONTENT_CAPTION:`${_a}/content/caption`},ka="owner",Ta="admin",Ea={IMAGE:"IMAGE",VIDEO:"VIDEO",AD:"AD",GAM_AD:"GAM_AD"},Sa={GAM_IMPRESSION:"gam_impression",GAM_VIEWABLE:"gam_viewable",GAM_CLICK:"gam_click"},Ca={ROW:"ROW",COLUMN:"COLUMN",MASONRY:"MASONRY"},Ia={IN_REVIEW:"IN_REVIEW",APPROVED:"APPROVED",REJECTED:"REJECTED"},Na=26214400,Ra=262144e3,Oa={CLOSED:"CLOSED",OPEN:"OPEN",UPCOMING:"UPCOMING"},Aa={TEXT:"text",IMAGE:"image",LOTTIE:"lottie"},Pa={CONTEST:"CONTEST",REACTION:"REACTION"},qa={GRID:"grid",SINGLE:"single"},za={POPULAR:"popular",UPLOAD_TIME:"upload",CAPTURE_TIME:"capture"},Ma={[za.POPULAR]:{label:"Popular",sortField:"score"},[za.UPLOAD_TIME]:{label:"Uploaded",sortField:"createdAt"},[za.CAPTURE_TIME]:{label:"Captured",sortField:"capturedAt"}},La="map-view-state",Da=za.UPLOAD_TIME,Ua={ASC:"asc",DESC:"desc"},Fa={[Ua.ASC]:{label:"Ascending",sortOrder:""},[Ua.DESC]:{label:"Descending",sortOrder:"-"}},ja=Ua.DESC,$a={OWN:"own",CURATED:"curated",ELIGIBLE:"eligible"},Ba={NONE:null,LINK:"LINK",EMAIL:"EMAIL",PHONE:"PHONE",SMS:"SMS",WHATSAPP:"WHATSAPP",MESSENGER:"MESSENGER"},Ha={AD_IMPRESSION:"impression",AD_ENGAGEMENT:"engagement",AD_CLICK:"click"},Va={QRATI_CONNECT_SESSION:"qrati-connect-session",EVENT_IN_REVIEW_COUNT:t=>`in-review-count-${t}`,CONTENTS_BY_EVENT:t=>`contents-by-event-${t}`,USER_UPLOADS:"user-uploads"},Qa=null;function Ga(t){Qa=t}function Wa(t){try{const e=globalThis._sentryDebugIds,r=JSON.stringify(e?{...t,debugIds:e}:t);fetch(xa.REPORT_ERROR,{method:"POST",headers:{"Content-Type":"application/json",...Qa?{"x-org-id":Qa}:{}},body:r,keepalive:!0}).catch(()=>{})}catch{}}function Za(t,e){Wa({message:t instanceof Error?t.message:String(t),stack:t instanceof Error?t.stack:void 0,level:e?.level??"error",component:e?.component,tags:e?.tags,context:e?.extra,url:"undefined"!=typeof window?window.location.href:void 0,userAgent:"undefined"!=typeof navigator?navigator.userAgent:void 0})}function Ya(t,e="info",r){Wa({message:t,level:e,component:r?.component,tags:r?.tags,context:r?.extra,url:"undefined"!=typeof window?window.location.href:void 0,userAgent:"undefined"!=typeof navigator?navigator.userAgent:void 0})}function Ka({title:t,children:e}){/* @__PURE__ */
2
+ return ve("div",{className:"mx-auto mt-24 w-fit max-w-xl space-y-8",children:[/* @__PURE__ */ve("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mx-auto h-64 w-fit text-[#ff4800]",width:"800",height:"469.317",viewBox:"0 0 800 469.317",role:"img","aria-label":"Error illustration",children:/* @__PURE__ */ve("g",{transform:"translate(-443.142 -257.876)",children:[
3
+ /* @__PURE__ */ve("path",{d:"M898.247,664.1H371.155a30.276,30.276,0,0,1-30.241-30.241V352.525a30.276,30.276,0,0,1,30.241-30.241H898.247a30.276,30.276,0,0,1,30.241,30.241V633.862A30.276,30.276,0,0,1,898.247,664.1Z",transform:"translate(308.867 25.517)",fill:"#fff"}),
4
+ /* @__PURE__ */ve("path",{d:"M557.334,341.82H30.241A30.276,30.276,0,0,1,0,311.578V30.241A30.276,30.276,0,0,1,30.241,0H557.334a30.276,30.276,0,0,1,30.241,30.241V311.578A30.276,30.276,0,0,1,557.334,341.82ZM30.241,1.833A28.441,28.441,0,0,0,1.833,30.241V311.578a28.441,28.441,0,0,0,28.409,28.409H557.334a28.441,28.441,0,0,0,28.409-28.409V30.241A28.441,28.441,0,0,0,557.334,1.833Z",transform:"matrix(0.999, -0.035, 0.035, 0.999, 643.995, 358.158)",fill:"#d6d6e3"}),
5
+ /* @__PURE__ */ve("path",{d:"M754.171,630.2l-509.5-135.058a30.276,30.276,0,0,1-21.483-36.981L295.28,186.212a30.276,30.276,0,0,1,36.981-21.483l509.5,135.058a30.276,30.276,0,0,1,21.483,36.981L791.152,608.712A30.276,30.276,0,0,1,754.171,630.2Z",transform:"translate(220.958 94.156)",fill:"#f2f2f2"}),
6
+ /* @__PURE__ */ve("path",{d:"M775.247,705.1H248.155a30.276,30.276,0,0,1-30.241-30.241V393.525a30.276,30.276,0,0,1,30.241-30.241H775.247a30.276,30.276,0,0,1,30.241,30.242V674.862A30.275,30.275,0,0,1,775.247,705.1Z",transform:"translate(319.149 22.09)",fill:"#fff"}),
7
+ /* @__PURE__ */ve("path",{d:"M638.653,701.841H298.272c-.426,0-.852-.009-1.272-.033l160.985-90.663c3.065-1.762,9.943-2.382,15.361-1.385a13.912,13.912,0,0,1,4.26,1.385l108.041,60.842,5.176,2.911Z",transform:"translate(312.538 1.526)",fill:"#e6e6e6"}),
8
+ /* @__PURE__ */ve("path",{d:"M760.145,704.279h-294.4l57.049-26.943L526.9,675.4l74.341-35.111c4.874-2.3,16.6-2.445,22.328-.434q.577.206,1.071.434Z",transform:"translate(298.432 -0.912)",fill:"#e6e6e6"}),
9
+ /* @__PURE__ */ve("path",{d:"M248.322,365.284a28.441,28.441,0,0,0-28.409,28.409V675.03a28.441,28.441,0,0,0,28.409,28.409H775.415a28.441,28.441,0,0,0,28.409-28.409V393.693a28.441,28.441,0,0,0-28.409-28.409Z",transform:"translate(318.982 21.923)",fill:"#3f3d56"}),
10
+ /* @__PURE__ */ve("path",{d:"M777.254,685.116H250.161a8.257,8.257,0,0,1-8.248-8.248V395.532a8.257,8.257,0,0,1,8.248-8.248H777.254a8.257,8.257,0,0,1,8.248,8.248V676.869a8.257,8.257,0,0,1-8.248,8.248Zm-527.092-296a6.422,6.422,0,0,0-6.415,6.415V676.869a6.422,6.422,0,0,0,6.415,6.415H777.254a6.422,6.422,0,0,0,6.415-6.415V395.532a6.422,6.422,0,0,0-6.415-6.415Z",transform:"translate(317.143 20.083)",fill:"#ccc"}),
11
+ /* @__PURE__ */ve("ellipse",{cx:"71.849",cy:"89.934",rx:"71.849",ry:"89.934",transform:"translate(928.82 428.806)",fill:"#f2f2f2"}),
12
+ /* @__PURE__ */ve("path",{d:"M505.77,325.365h.2l3.553,203.7h-7.5Z",transform:"translate(495.097 175.29)",fill:"#ccc"}),
13
+ /* @__PURE__ */ve("path",{d:"M736.239,636.154h0a1.776,1.776,0,0,1-.744,2.4l-10.3,5.425-1.655-3.144,10.3-5.425A1.776,1.776,0,0,1,736.239,636.154Z",transform:"translate(276.882 -0.641)",fill:"#ccc"}),
14
+ /* @__PURE__ */ve("ellipse",{cx:"71.849",cy:"89.934",rx:"71.849",ry:"89.934",transform:"translate(722.256 428.806)",fill:"#f2f2f2"}),
15
+ /* @__PURE__ */ve("path",{d:"M510.532,627.307h0a1.777,1.777,0,0,0-2.4-.744l-7.194,3.788-2.464-141.27h-.2l-3.75,203.7h7.5l-1.02-58.456,8.78-4.622A1.777,1.777,0,0,0,510.532,627.307Z",transform:"translate(296.026 11.574)",fill:"#ccc"}),
16
+ /* @__PURE__ */ve("path",{d:"M626.318,603.854a2.25,2.25,0,0,0-3.04-.943l-9.116,4.8-3.122-179h-.25l-4.752,258.115h9.5l-1.292-74.07,11.125-5.857a2.251,2.251,0,0,0,.943-3.04Z",transform:"translate(286.704 16.621)",fill:"#3f3d56"}),
17
+ /* @__PURE__ */ve("path",{d:"M777.247,703.1H250.155a30.276,30.276,0,0,1-30.241-30.241V391.525a30.276,30.276,0,0,1,30.241-30.241H777.247a30.276,30.276,0,0,1,30.241,30.241V672.862A30.276,30.276,0,0,1,777.247,703.1Z",transform:"translate(318.982 22.257)",fill:"#fff"}),
18
+ /* @__PURE__ */ve("path",{d:"M671.188,708.113h-370.8c-.464,0-.928-.01-1.386-.036l175.372-98.766c3.339-1.919,10.831-2.595,16.734-1.509a15.16,15.16,0,0,1,4.641,1.509l117.7,66.28,5.639,3.172Z",transform:"translate(288.046 16.168)",fill:"#f2f2f2"}),
19
+ /* @__PURE__ */ve("path",{d:"M788.457,708.163H467.743l62.148-29.351,4.472-2.114,80.984-38.25c5.309-2.507,18.082-2.663,24.324-.473q.629.224,1.166.473Z",transform:"translate(287.761 16.118)",fill:"#f2f2f2"}),
20
+ /* @__PURE__ */ve("path",{d:"M777.247,703.1H250.155a30.276,30.276,0,0,1-30.241-30.241V391.525a30.276,30.276,0,0,1,30.241-30.241H777.247a30.276,30.276,0,0,1,30.241,30.241V672.862A30.276,30.276,0,0,1,777.247,703.1ZM250.155,363.117a28.441,28.441,0,0,0-28.409,28.409V672.862a28.441,28.441,0,0,0,28.409,28.409H777.247a28.441,28.441,0,0,0,28.409-28.409V391.525a28.441,28.441,0,0,0-28.409-28.409Z",transform:"translate(318.982 22.257)",fill:"#3f3d56"}),
21
+ /* @__PURE__ */ve("g",{transform:"translate(696.754 297.373)",children:[
22
+ /* @__PURE__ */ve("ellipse",{cx:"61.798",cy:"61.798",rx:"61.798",ry:"61.798",transform:"translate(215.662 36.955)",fill:"#ff6584"}),
23
+ /* @__PURE__ */ve("ellipse",{cx:"78.271",cy:"97.971",rx:"78.271",ry:"97.971",transform:"translate(225.025 127.808)",fill:"#e6e6e6"}),
24
+ /* @__PURE__ */ve("path",{d:"M508.105,323.365h.215l3.87,221.909h-8.171Z",transform:"translate(-204.593 -117.286)",fill:"#ccc"}),
25
+ /* @__PURE__ */ve("path",{d:"M739.374,634.239h0a1.935,1.935,0,0,1-.811,2.614l-11.226,5.91-1.8-3.425,11.226-5.91A1.935,1.935,0,0,1,739.374,634.239Z",transform:"translate(-422.513 -281.249)",fill:"#ccc"}),
26
+ /* @__PURE__ */ve("ellipse",{cx:"78.271",cy:"97.971",rx:"78.271",ry:"97.971",transform:"translate(0 127.808)",fill:"#e6e6e6"}),
27
+ /* @__PURE__ */ve("path",{d:"M513.962,637.661h0a1.936,1.936,0,0,0-2.614-.811l-7.837,4.126-2.684-153.9h-.215l-4.085,221.91H504.7l-1.111-63.68,9.565-5.036A1.936,1.936,0,0,0,513.962,637.661Z",transform:"translate(-422.126 -281.002)",fill:"#ccc"}),
28
+ /* @__PURE__ */ve("path",{d:"M612.666,280.653c54.774,0,99.294,103.207,99.294,171.768s-44.4,124.14-99.177,124.14-99.177-55.579-99.177-124.14S557.892,280.653,612.666,280.653Z",transform:"translate(-422.155 -280.653)",fill:"currentColor"}),
29
+ /* @__PURE__ */ve("path",{d:"M630.131,617.508a2.452,2.452,0,0,0-3.312-1.027l-9.931,5.228-3.4-195h-.272L608.039,707.89h10.353l-1.408-80.69,12.119-6.38A2.452,2.452,0,0,0,630.131,617.508Z",transform:"translate(-422.315 -280.9)",fill:"#3f3d56"})]})]})}),/* @__PURE__ */ve("div",{className:"space-y-4",children:[/* @__PURE__ */ve("h4",{className:"text-foreground text-center text-lg font-semibold",children:t}),/* @__PURE__ */ve("p",{className:"text-muted-foreground text-center",children:e})]})]})}var Ja=({organizationId:t})=>/* @__PURE__ */ve("a",{className:"font-medium text-blue-500",href:ba.ORGANIZATION_SETTINGS_INTEGRATION(t),target:"_blank",rel:"noreferrer",children:"Guide"});function Xa({organizationId:t,errorType:e,errorMessage:r}){/* @__PURE__ */
30
+ return ve(Ka,"custom-auth-invalid"===e?{title:"Setup needed",children:["Custom auth is enabled. Pass ",
31
+ /* @__PURE__ */ve("code",{children:"uid"}),", ",
32
+ /* @__PURE__ */ve("code",{children:"fname"}),", and ",
33
+ /* @__PURE__ */ve("code",{children:"lname"})," as props to QratiConnect to complete setup. See our ",
34
+ /* @__PURE__ */ve(Ja,{organizationId:t})," for details."]}:"service-unavailable"===e?{title:"We'll be right back!",children:["Our service is getting a quick tune-up. Hang tight — great things are coming your way soon! See our"," ",
35
+ /* @__PURE__ */ve(Ja,{organizationId:t})," if you need help in the meantime."]}:"generic-error"===e&&r?{title:"Setup needed",children:[r," See our ",
36
+ /* @__PURE__ */ve(Ja,{organizationId:t})," for details."]}:"page-not-registered"===e?{title:"Page not registered",children:["Add the current page URL in Allowed URLs under"," ",
37
+ /* @__PURE__ */ve("a",{className:"font-medium text-blue-500",href:ba.ORGANIZATION_SETTINGS(t),target:"_blank",rel:"noreferrer",children:"Organization Settings"})," ","⇨ Integration Settings. See our ",
38
+ /* @__PURE__ */ve(Ja,{organizationId:t})," for details."]}:{title:"Heads up",children:["Something needs attention. See our ",
39
+ /* @__PURE__ */ve(Ja,{organizationId:t})," for details or contact Qrati support."]})}var tn='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',en=t=>t.trim().replace(/\s+/g," "),rn=t=>t?.replace(/\/+$/,"")||"",on=t=>{if(!t)return tn;const e=en("string"==typeof t?t:t.fontFamily||""),r="string"==typeof t?void 0:t.customFontName;return e&&"system"!==e?"custom"===e?`"${r||"QratiCustomFont"}", ${tn}`:`"${e}", ${tn}`:"inherit"};function an(t){var e,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(r=an(t[e]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function nn(){for(var t,e,r=0,o="",a=arguments.length;r<a;r++)(t=arguments[r])&&(e=an(t))&&(o&&(o+=" "),o+=e);return o}var sn=(...t)=>nn(t.filter(Boolean)),ln=t=>{const e=t.replace(/#/g,"");return(299*parseInt(e.slice(0,2),16)+587*parseInt(e.slice(2,4),16)+114*parseInt(e.slice(4,6),16))/1e3>=128?"#000000":"#FFFFFF"},cn="px",dn=(t,e="light")=>{const r=t?.themeSettings?.colors??{},o=t?.themeSettings?.border,a=t?.themeSettings?.shadow,n=t?.integrationSettings,i="dark"===e,s=(t,e,o,a)=>{const n=i?a:o;return r[i?e:t]||n},l=s("primaryLight","primaryDark","#ff4800","#ff4800");return{"--background":s("backgroundLight","backgroundDark","#fafafa","#0a0a0a"),"--foreground":s("foregroundLight","foregroundDark","#252629","#f5f5f5"),"--muted":s("mutedLight","mutedDark","#e5e5e5","#171717"),"--muted-foreground":s("mutedForegroundLight","mutedForegroundDark","#484848","#b5b8bb"),"--border":s("borderLight","borderDark","#dddddd","#353538"),"--input":s("inputLight","inputDark","#f5f5f5","#171717"),"--primary":l,"--primary-foreground":ln(l),"--popover":s("popoverLight","popoverDark","#f5f5f5","#171717"),"--popover-foreground":s("popoverForegroundLight","popoverForegroundDark","#252629","#fafafa"),"--info":s("infoLight","infoDark","#2563eb","#5b8def"),"--warning":s("warningLight","warningDark","#f59e0b","#fbbf24"),"--success":s("successLight","successDark","#10b981","#34d399"),"--destructive":s("destructiveLight","destructiveDark","#ef4444","#f87171"),"--border-width":`${o?.width??"1"}${o?.unit??"px"}`,"--radius":`${o?.radius??"10"}${o?.unit??"px"}`,"--shadow-outer-horizontal-offset":`${a?.outerHorizontalOffset??"0"}${a?.unit??cn}`,"--shadow-outer-vertical-offset":`${a?.outerVerticalOffset??"0"}${a?.unit??cn}`,"--shadow-outer-blur":`${a?.outerBlur??"0"}${a?.unit??cn}`,"--shadow-outer-spread":`${a?.outerSpread??"0"}${a?.unit??cn}`,...n?.fontFamily&&"system"!==n.fontFamily?{"--font-family":on(n)}:{}}},un=async t=>{try{return await t()}catch{return null}},hn=(t,e=1)=>{const r=(new TextEncoder).encode(t),o=3432918353,a=461845907;let n=e>>>0;const i=Math.floor(r.length/4),s=new DataView(r.buffer,r.byteOffset,r.byteLength);for(let u=0;u<i;u++){let t=s.getUint32(4*u,!0);t=Math.imul(t,o),t=t<<15|t>>>17,t=Math.imul(t,a),n^=t,n=n<<13|n>>>19,n=Math.imul(n,5)+3864292196>>>0}let l=0;const c=4*i,d=3&r.length;return 3===d&&(l^=r[c+2]<<16),d>=2&&(l^=r[c+1]<<8),d>=1&&(l^=r[c],l=Math.imul(l,o),l=l<<15|l>>>17,l=Math.imul(l,a),n^=l),n^=r.length,n^=n>>>16,n=Math.imul(n,2246822507)>>>0,n^=n>>>13,n=Math.imul(n,3266489909)>>>0,n^=n>>>16,n.toString(16).padStart(8,"0")},pn=t=>{if(null===t||"object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t))return`[${t.map(pn).join(",")}]`;const e=Object.keys(t).sort(),r=[];for(const o of e){const e=t[o];void 0!==e&&r.push(`${pn(o)}:${pn(e)}`)}return`{${r.join(",")}}`},fn=async({debug:t=!1}={})=>{const e=performance.now(),r=await un(async()=>{if(!window.navigator.userAgentData||"function"!=typeof window.navigator.userAgentData.getHighEntropyValues)return null;const t=await window.navigator.userAgentData.getHighEntropyValues(["architecture","bitness","platformVersion","model","fullVersionList"]);return pn(t)}),o=await un(()=>(()=>{const t=document.createElement("video"),e=["video/webm","video/mp4","video/ogg","audio/mp4","audio/webm","audio/ogg","audio/mpeg"],r={};for(const o of e){const e=t.canPlayType(o);r[o]=""===e?"no":e}return pn(r)})()),a=await un(()=>(()=>{const t=["monospace","serif","sans-serif"],e=["Arial","Helvetica","Verdana","Trebuchet MS","Comic Sans MS","Georgia","Times New Roman","Courier New","Segoe UI","Roboto","Open Sans","Noto Sans","system-ui","-apple-system","BlinkMacSystemFont"],r=document.createElement("span");r.style.fontSize="72px",r.style.position="absolute",r.style.visibility="hidden",r.style.whiteSpace="nowrap",r.textContent="mmmmmmmmmwwwwwww",document.body.appendChild(r);const o={};for(const n of t)r.style.fontFamily=n,o[n]=r.offsetWidth;const a=[];for(const n of e){let e=!1;for(const i of t)if(r.style.fontFamily=`"${n}", ${i}`,r.offsetWidth!==o[i]){a.push(n),e=!0;break}e||(r.style.fontFamily=`"${n}"`,r.offsetWidth!==o.monospace&&r.offsetWidth!==o.serif&&a.push(n))}return document.body.removeChild(r),a.length?a.sort().join(","):null})()),n=await un(()=>new Intl.NumberFormat(window.navigator.languages?.[0]||"en").resolvedOptions().numberingSystem),i=window.navigator.languages?Array.from(window.navigator.languages).join(","):window.navigator.language||null,s=Intl.DateTimeFormat().resolvedOptions(),l=s.timeZone,c=/* @__PURE__ */(new Date).getTimezoneOffset(),d=s.calendar||null,u=void 0!==s.hour12?s.hour12?"h12":"h23":s.hourCycle||null,h=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"reduce":"no-preference",p=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",f=window.matchMedia("(prefers-contrast: more)").matches?"more":window.matchMedia("(prefers-contrast: less)").matches?"less":window.matchMedia("(prefers-contrast: custom)").matches?"custom":"no-preference",m=window.matchMedia("(prefers-reduced-transparency: reduce)").matches?"reduce":"no-preference",g=window.matchMedia("(forced-colors: active)").matches?"active":null,y="number"==typeof window.devicePixelRatio?Math.round(100*window.devicePixelRatio)/100:null,{pixelDepth:v,colorDepth:b}=window.screen,w="ontouchstart"in window||window.navigator.maxTouchPoints>0,_=await un(()=>(async t=>{const e=document.createElement("canvas");e.width=280,e.height=100;const r=e.getContext("2d"),o=r.createLinearGradient(0,0,280,100);o.addColorStop(0,"#f60"),o.addColorStop(.4,"#09f"),o.addColorStop(.7,"#f09"),o.addColorStop(1,"#0f9"),r.fillStyle=o,r.fillRect(0,0,280,100),r.font='18px "Arial","Helvetica","DejaVu Sans",sans-serif',r.fillStyle="#000",r.textBaseline="alphabetic",r.fillText("Fingerprint ¼½¾™©®∆π∑€¶§",12,45),r.font='bold 22px "Georgia","Times New Roman",serif',r.fillStyle="#222",r.fillText("🦊🐱🚀 2026",12,78),r.globalAlpha=.7,r.fillStyle="rgba(255, 80, 0, 0.35)",r.fillRect(180,20,80,60),r.beginPath(),r.arc(220,50,32,0,2*Math.PI),r.strokeStyle="#fff",r.lineWidth=4,r.stroke(),r.beginPath(),r.moveTo(30,85),r.quadraticCurveTo(140,20,240,85),r.strokeStyle="#00f",r.lineWidth=3,r.stroke(),t&&(e.style.border="1px solid #444",document.body.appendChild(e));const a=e.toDataURL("image/png");return hn(a)})(t)),x=await un(()=>(async()=>{const t=document.createElement("canvas"),e=t.getContext("webgl")||t.getContext("experimental-webgl"),r=e.getExtension("WEBGL_debug_renderer_info"),o={vendor:r?e.getParameter(r.UNMASKED_VENDOR_WEBGL):e.getParameter(e.VENDOR),renderer:r?e.getParameter(r.UNMASKED_RENDERER_WEBGL):e.getParameter(e.RENDERER)};return hn(pn(o))})()),k=await un(()=>(async t=>{const e=await navigator.gpu.requestAdapter({powerPreference:"high-performance"}),r={vendor:e.info?.vendor??"",architecture:e.info?.architecture??"",description:e.info?.description??"",features:Array.from(e.features).sort(),limits:Array.from(e.limits).sort()};if(t){const t=document.createElement("pre");t.style.margin="10px 0",t.style.padding="10px",t.style.border="1px solid #444",t.style.background="#111",t.style.color="#0f8",t.style.fontFamily="monospace",t.textContent=`WebGPU:\n${JSON.stringify(r,null,2)}`,document.body.appendChild(t)}return hn(pn(r))})(t)),T=await un(()=>(async t=>{const e=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,6e3,44100),r=e.createOscillator();r.type="sawtooth",r.frequency.value=8800;const o=e.createDynamicsCompressor();o.threshold.value=-48,o.knee.value=30,o.ratio.value=14,o.attack.value=0,o.release.value=.3;const a=e.createGain();a.gain.value=.4,r.connect(o),o.connect(a),a.connect(e.destination),r.start(0);const n=(await e.startRendering()).getChannelData(0);let i=0,s=0;for(let c=3e3;c<5800;c+=2){const t=n[c];i=31*i+Math.floor(1e5*(t+1))|0,s=Math.imul(s^Math.floor(98765*t),2246822519)}const l=i>>>0^s>>>0;if(t){const t=document.createElement("canvas");t.width=500,t.height=120,t.style.border="1px solid #444",t.style.margin="10px 0",t.title="Audio buffer snippet (4500–5000 samples)";const e=t.getContext("2d");e.fillStyle="#111",e.fillRect(0,0,t.width,t.height),e.font="14px monospace",e.fillStyle="#0f8",e.textAlign="left",e.fillText("AudioID",10,20),e.strokeStyle="#0f8",e.lineWidth=1.5,e.beginPath();const r=Array.from(n.slice(4500,5e3)),o=t.width/r.length;for(let a=0;a<r.length;a++){const n=a*o,i=(r[a]+1)/2*t.height;0===a?e.moveTo(n,i):e.lineTo(n,i)}e.stroke(),document.body.appendChild(t)}return hn(l.toString(16))})(t)),E=window.screen.width&&window.screen.height?(window.screen.width/window.screen.height).toFixed(4):null,S=await un(()=>window.screen.orientation?.type||null),C=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,I=C&&C.type||null,N=C?.effectiveType||null,R=!0===C?.saveData,O="boolean"==typeof window.navigator.pdfViewerEnabled?window.navigator.pdfViewerEnabled:null,A="boolean"==typeof window.navigator.webdriver?window.navigator.webdriver:null,P=await un(()=>"function"!=typeof Intl.supportedValuesOf?null:Intl.supportedValuesOf("calendar").join(",")),q=await un(async()=>{if(!window.navigator.permissions||"function"!=typeof window.navigator.permissions.query)return null;const t=["geolocation","notifications"],e={};for(const r of t)try{e[r]=(await window.navigator.permissions.query({name:r})).state}catch{e[r]="unsupported"}return pn(e)}),z={vendor:window.navigator.vendor||null,platform:window.navigator.platform||null,userAgentHighEntropy:r||null,mediaCodecs:o||null,fonts:a,numberingSystem:n,languages:i,timezone:l,timezoneOffset:c,intlCalendar:d,hourCycle:u,reducedMotion:h,colorScheme:p,prefersContrast:f,prefersReducedTransparency:m,pdfViewerEnabled:O,webdriver:A,intlSupportedCalendars:P||null,permissionsState:q||null,hardwareConcurrency:window.navigator.hardwareConcurrency||null,deviceMemory:window.navigator.deviceMemory||null,forcedColors:g,devicePixelRatio:y,pixelDepth:v,colorDepth:b,touchSupport:w,screenOrientation:S||null,connectionType:I,effectiveType:N,saveData:R,canvasID:_,webglID:x,webgpuID:k,audioID:T},M={aspectRatio:E,width:window.screen.width,height:window.screen.height,maxTouchPoints:window.navigator.maxTouchPoints};(!0===navigator.userAgentData?.mobile||/Mobi|Android|iPhone|iPad|iPod|webOS|BlackBerry|Windows Phone/i.test(navigator.userAgent)||navigator.maxTouchPoints>0&&matchMedia("(pointer:coarse)").matches&&innerWidth<=1024)&&Object.assign(z,M);const L=pn(z),D=hn(L),U=Math.round(performance.now()-e);return{fingerprint:D,...z,elapsedMs:U}};"undefined"!=typeof window&&(window.getBrowserFingerprint=fn);var mn=t=>t?`qrati_token:${t}`:"qrati_token",gn=(t,e)=>{try{localStorage.setItem(mn(t),e)}catch{}},yn=t=>{try{localStorage.removeItem(mn(t))}catch{}},vn=t=>t?.trim()||void 0,bn=t=>"object"==typeof t&&null!==t&&!Array.isArray(t),wn=async(t,e)=>{if(t instanceof Or){try{const e=t.data;if(e?.error)return e.error;if(e?.message)return e.message;if("INVALID_EMAIL_OR_PASSWORD"===e?.code)return"Invalid email or password"}catch{return e||t.message}return e||t.message}return t instanceof Error?e||t.message:e||String(t)},_n=Z(void 0),xn=({props:t={},children:e})=>{const{organizationId:r,uid:o,fname:a,lname:n,theme:i="light"}=t,s=we(),[l,c]=dt(null),d=Boolean(o);ht(()=>(Ga(r??null),()=>Ga(null)),[r]);const[u,h]=dt(()=>{if("undefined"==typeof window)return null;if(d)return null;const t=(t=>{try{return localStorage.getItem(mn(t))}catch{return null}})(r);return t?{token:t}:null}),[p,f]=dt(0),{isLoading:m,data:g,error:y}=Cr({queryKey:[Va.QRATI_CONNECT_SESSION,r,o??null,a??null,n??null,p],queryFn:()=>(async({organizationId:t,uid:e,fname:r,lname:o,userToken:a})=>{const n=t.trim();if(!n)throw new Error("Organization ID is required for session initialization");const i=vn(e),s=vn(r),l=vn(o),c=(({userToken:t,uid:e,fname:r,lname:o})=>!t||e||r||o?null:t)({organizationId:n,uid:i,fname:s,lname:l,userToken:a}),d=await(async()=>{const t=await fn();return"string"==typeof t?t:t?.fingerprint})();try{const t=await ya.post(xa.INITIALIZE_SESSION,{json:{uid:i,fname:s,lname:l,browserFingerprint:d},headers:{"x-org-id":n,...c?{Authorization:`Bearer ${c}`}:{}}}).json();if(!bn(t)||!bn(t.data))throw new Error("Invalid session initialization response");const e=t.data;if("string"!=typeof e.sessionId||!bn(e.organization)||!Array.isArray(e.folders)||void 0!==e.authSession&&null!==e.authSession&&!bn(e.authSession)||void 0!==e.orgRole&&null!==e.orgRole&&"string"!=typeof e.orgRole)throw new Error("Invalid session initialization response");return{...e,requestToken:c}}catch(u){if(u instanceof Or)try{const t=u.data;u.apiMessage=t?.message||t?.error}catch{}throw u}})({organizationId:r,uid:o,fname:a,lname:n,userToken:u?.token}),enabled:!!r,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1});ht(()=>{g&&(({data:t,setUser:e,uid:r,fname:o,lname:a,organizationId:n,persistToken:i=!0})=>{const s=(({data:t,uid:e,fname:r,lname:o})=>{const a=t.authSession?.session?.token??t.authSession?.token,n=t.authSession?.user;return n&&a?{kind:"authenticated",sessionUser:n,sessionToken:a}:t.organization?.customAuth&&e&&r?{kind:"custom-auth",fallbackUser:{_id:e,uid:e,name:o?`${r} ${o}`:r,fname:r,lname:o}}:t.requestToken?{kind:"expired",requestToken:t.requestToken}:{kind:"none"}})({data:t,uid:r,fname:o,lname:a});"authenticated"===s.kind?(e(t=>({...t,...s.sessionUser,token:s.sessionToken,tcAccepted:void 0===s.sessionUser.tcAccepted?t?.tcAccepted:s.sessionUser.tcAccepted})),i&&gn(n,s.sessionToken)):"custom-auth"===s.kind?e(t=>t??s.fallbackUser):"expired"===s.kind&&e(t=>t?.token!==s.requestToken?t:(i&&yn(n),null))})({data:g,setUser:h,uid:o,fname:a,lname:n,organizationId:r,persistToken:!d})},[g,a,d,n,r,o]);const v=gt(()=>{const t=g?.organization?.integrationSettings?.fontFamily,e=((t,e)=>{const r=rn("https://qrati.com"),o=e?en(e):"";return r&&o?`${r}/api/connect/organization/google-font?family=${encodeURIComponent(o)}`:null})(0,t),o=((t,e)=>{const r=rn("https://qrati.com");return r&&e?`${r}/api/connect/organization/custom-font?organizationId=${encodeURIComponent(e)}`:null})(0,r);return((t,e,r)=>{if(!t?.fontFamily||"system"===t.fontFamily)return"";const o=en(t.fontFamily);if("custom"===o&&e){const r=t.customFontName||"QratiCustomFont",o=/\.woff2(\?|$)/i.test(e)?"woff2":/\.ttf(\?|$)/i.test(e)?"truetype":"woff";return`@font-face{font-family:"${a=r,a.replace(/"/g,'\\"')}";src:url("${e}") format("${o}");font-weight:400 700;font-style:normal;font-display:swap;}`}var a;const n=r||(t=>{if(!t)return null;const e=en(t);return e&&"system"!==e.toLowerCase()&&"custom"!==e.toLowerCase()?`https://fonts.googleapis.com/css2?family=${e.replace(/\s+/g,"+")}:wght@400;500;600;700&display=swap`:null})(o);return n?`@import url("${n}");`:""})(g?.organization?.integrationSettings,g?.organization?.customFontUrl?o||g.organization.customFontUrl:void 0,e||void 0)},[g?.organization?.integrationSettings,g?.organization?.customFontUrl,r]);ht(()=>{const t=`data-qrati-font-${r}`;if(document.head.querySelector(`[${t}]`)?.remove(),v){if(v.startsWith("@import")){const e=v.match(/@import url\("([^"]+)"\)/);if(!e?.[1])return;const r=document.createElement("link");r.rel="stylesheet",r.href=e[1],r.setAttribute(t,""),document.head.appendChild(r)}else{const e=document.createElement("style");e.textContent=v,e.setAttribute(t,""),document.head.appendChild(e)}return()=>{document.head.querySelector(`[${t}]`)?.remove()}}},[v,r]);const b=yt(async t=>{h(e=>({...e,...t})),f(t=>t+1)},[]),w=yt(async(t,e,o,a)=>{try{const n=await ya.post(xa.REGISTER,{json:{email:t,password:e,fname:o,lname:a},headers:{"x-org-id":r}}).json();if(n.error)return{error:n.error};const i={...n.user,token:n.token};return h(i),f(t=>t+1),n.token&&!d&&gn(r,n.token),n}catch(y){return{error:await wn(y,"Registration failed")}}},[r,d]),_=yt(async(t,e)=>{try{const o=await ya.post(xa.LOGIN,{json:{email:t,password:e},headers:{"x-org-id":r}}).json();if(o.error)return{error:o.error};const a={...o.user,token:o.token};return h(a),f(t=>t+1),o.token&&!d&&gn(r,o.token),o}catch(y){return{error:await wn(y,"Invalid email or password")}}},[r,d]),x=yt(async t=>{const e=await((t,e,r)=>new Promise((o,a)=>{if(!t)return void a(/* @__PURE__ */new Error("Provider is required"));if(!e)return void a(/* @__PURE__ */new Error("Organization ID is required"));const n=new URL(`${r}/qc-social-auth`);n.searchParams.set("provider",t),n.searchParams.set("organizationId",e),n.searchParams.set("origin",window.location.origin);const i=(window.screen.width-500)/2,s=(window.screen.height-600)/2,l=window.open(n.toString(),"qrati_social_auth",`width=500,height=600,left=${i},top=${s},scrollbars=yes,resizable=yes,status=yes`);if(!l)return void a(/* @__PURE__ */new Error("Failed to open popup window. Please allow popups and try again."));const c=()=>{clearInterval(u),clearTimeout(h),window.removeEventListener("message",d)},d=t=>{try{const e=new URL(r).origin;if(t.origin!==e)return void console.warn("Origin mismatch:",t.origin,"expected:",e)}catch(u){return void console.warn("Could not parse origin for verification")}const{type:n,data:i,error:s,organizationId:d}=t.data||{};if(d===e)switch(n){case"QRATI_SOCIAL_AUTH_SUCCESS":c(),l.close(),o({user:i.user,session:i.session,token:i.token});break;case"QRATI_SOCIAL_AUTH_ERROR":console.error("Authentication error:",s),c(),l.close(),a(new Error(s||"Social authentication failed"));break;case"QRATI_SOCIAL_AUTH_CANCELLED":c(),l.close(),a(/* @__PURE__ */new Error("Authentication was cancelled"))}else console.warn("Organization ID mismatch:",d,"expected:",e)},u=setInterval(()=>{try{l.closed&&(c(),a(/* @__PURE__ */new Error("Authentication was cancelled")))}catch(t){}},1e3);window.addEventListener("message",d);const h=setTimeout(()=>{c(),l.closed||l.close(),a(/* @__PURE__ */new Error("Authentication timeout. Please try again."))},3e5)}))(t,r??"","https://qrati.com");return e?.user&&e?.token&&(h({...e.user,token:e.token}),f(t=>t+1),d||gn(r,e.token)),e},[r,d]),k=yt(async()=>x("google"),[x]),T=yt(async()=>x("apple"),[x]),E=yt(async t=>{try{const e=await ya.post(xa.SEND_PASSWORD_RESET_CODE,{json:{email:t.toLowerCase()},headers:{"x-org-id":r}}).json();return e.error?{error:e.error}:e}catch(y){return{error:await wn(y,"Failed to send password reset code")}}},[r]),S=yt(async(t,e)=>{try{const o=await ya.post(xa.VERIFY_PASSWORD_RESET_CODE,{json:{email:t.toLowerCase(),code:e},headers:{"x-org-id":r}}).json();return o.error?{error:o.error}:o}catch(y){return{error:await wn(y,"Invalid code, please check your email")}}},[r]),C=yt(async(t,e)=>{try{const o=await ya.post(xa.RESET_PASSWORD,{json:{passwordResetCodeId:t,newPassword:e},headers:{"x-org-id":r}}).json();return o.error?{error:o.error}:o}catch(y){return{error:y?.message}}},[r]),I=yt(async()=>{try{const t=await ya.post(xa.LOGOUT,{headers:{"x-org-id":r,Authorization:`Bearer ${u?.token}`}}).json();return t.error?{error:t.error}:(h(null),f(t=>t+1),d||yn(r),await s.invalidateQueries({queryKey:[Va.QRATI_CONNECT_SESSION]}),t)}catch(y){return{error:y?.message}}},[d,r,u?.token]),N=gt(()=>({props:t,initializing:m,sessionId:g?.sessionId,organization:g?.organization,folders:g?.folders,orgRole:g?.orgRole??null,loadingUser:m,user:u,authEpoch:p,updateUser:b,registerUsingEmail:w,loginWithGoogle:k,loginWithApple:T,loginUsingEmail:_,sendPasswordResetCode:E,verifyPasswordResetCode:S,resetPassword:C,signout:I,error:y,portalContainer:l}),[t,m,g,u,p,b,w,k,T,_,E,S,C,I,y,l]);if(y){const t=y,e=401===t?.response?.status?"page-not-registered":t?.response?"generic-error":"service-unavailable";/* @__PURE__ */
40
+ return ve(Gt,{fallback:null,children:/* @__PURE__ */ve(Xa,{organizationId:r??"",errorType:e,errorMessage:"generic-error"===e?t.apiMessage:void 0})})}/* @__PURE__ */
41
+ return ve(_n.Provider,{value:N,children:/* @__PURE__ */ve("div",{ref:c,id:"qrati-connect-container",style:{...dn(g?.organization,i),fontFamily:g?.organization?.integrationSettings?.fontFamily&&"system"!==g.organization.integrationSettings.fontFamily?"var(--font-family)":"inherit"},className:sn("bg-background text-foreground relative min-h-[80vh]"),children:e})})},kn=()=>{const t=vt(_n);if(void 0===t)throw new Error("useSession must be used within SessionProvider");return t},Tn=Z(null),En=Z(null),Sn=class{entries;index=0;listeners=/* @__PURE__ */new Set;constructor(t="/"){this.entries=[{path:t}]}get location(){return this.entries[this.index]?.path??"/"}get state(){return this.entries[this.index]?.state}push(t,e){this.entries=this.entries.slice(0,this.index+1),this.index=this.entries.push({path:t,state:e})-1,this.notify()}replace(t,e){this.entries[this.index]={path:t,state:e},this.notify()}go(t){const e=this.index+t;e>=0&&e<this.entries.length&&(this.index=e,this.notify())}canGoBack(){return this.index>0}listen(t){return this.listeners.add(t),()=>this.listeners.delete(t)}notify(){this.listeners.forEach(t=>t(this.location))}},Cn=class{listeners=/* @__PURE__ */new Set;appPushCount=0;get location(){return window.location.hash.replace(/^#/,"")||"/"}get state(){return window.history.state?.__qrati_state}makeUrl(t){return`${window.location.pathname+window.location.search}#${t}`}push(t,e){window.history.pushState({__qrati_state:e},"",this.makeUrl(t)),this.appPushCount+=1,this.notify()}replace(t,e){window.history.replaceState({__qrati_state:e},"",this.makeUrl(t)),this.notify()}go(t){this.appPushCount=Math.max(0,this.appPushCount+t),window.history.go(t)}canGoBack(){return this.appPushCount>0}listen(t){this.listeners.add(t);const e=()=>this.notify();return window.addEventListener("popstate",e),window.addEventListener("hashchange",e),queueMicrotask(()=>t(this.location)),()=>{this.listeners.delete(t),window.removeEventListener("popstate",e),window.removeEventListener("hashchange",e)}}notify(){this.listeners.forEach(t=>t(this.location))}};function In(t){const e=t.search(/[?#]/);return-1===e?t||"/":t.slice(0,e)||"/"}function Nn(t,e,r=!0){const o=t.split("/").filter(Boolean),a=function(t){const e=[],r=t.split("/").filter(Boolean);for(const o of r)if("*"===o)e.push({type:"wildcard"});else if(o.startsWith(":")){const t=o.endsWith("?"),r=t?o.slice(1,-1):o.slice(1);e.push({type:"param",name:r,optional:t})}else e.push({type:"static",value:o});return e}(e),n={};let i=0;for(const s of a)if("static"===s.type){if(o[i]!==s.value)return null;i++}else if("param"===s.type){if(i<o.length){try{Object.defineProperty(n,s.name,{value:decodeURIComponent(o[i]),enumerable:!0,configurable:!0,writable:!0})}catch{Object.defineProperty(n,s.name,{value:o[i],enumerable:!0,configurable:!0,writable:!0})}i++}else if(!s.optional)return null}else if("wildcard"===s.type){n["*"]=o.slice(i).join("/"),i=o.length;break}return r&&i<o.length?null:{params:n}}function Rn(t,e){return e.startsWith("/")?e:t.endsWith("/")?t+e:`${t}/${e}`}function On(t,e,r=""){const o=In(t);for(const a of e){const t=a.path.startsWith("/")?a.path:Rn(r,a.path);if(a.children&&a.children.length>0){const e=Nn(o,t,!1);if(e){const r=[{route:a,params:e.params}],n=On(o,a.children,t);if(n)r.push(...n);else{const t=a.children.find(t=>""===t.path);t&&r.push({route:t,params:{}})}return r}}const e=Nn(o,t,!0);if(e)return[{route:a,params:e.params}]}return null}function An(){const t=vt(En);if(!t)throw new Error("useParams must be used inside a Route");return t.params}function Pn(){const t=vt(Tn);if(!t)throw new Error("useNavigate must be used inside a Router");const{navigate:e,go:r}=t;return yt((t,o)=>{"number"!=typeof t?e(t,o):r(t)},[e,r])}function qn(){const t=vt(Tn);if(!t)throw new Error("useCanGoBack must be used inside a Router");return t.canGoBack}function zn(){const t=vt(Tn);if(!t)throw new Error("useRouterMode must be used inside a Router");return t.mode}function Mn(){const t=vt(Tn);if(!t)throw new Error("useLocation must be used inside a Router");return function(t,e){const r=In(t),o=t.indexOf("?"),a=t.indexOf("#");return{pathname:r,state:e,search:-1===o?"":t.slice(o,-1===a?void 0:a),hash:-1===a?"":t.slice(a)}}(t.location,t.state)}function Ln({mode:t,initialPath:e,children:r}){const o=ft("memory"===t?new Sn(e):new Cn),[a,n]=dt(o.current.location),[i,s]=dt(o.current.state),[l,c]=dt(o.current.canGoBack());ht(()=>(n(o.current.location),s(o.current.state),c(o.current.canGoBack()),o.current.listen(t=>{n(t),s(o.current.state),c(o.current.canGoBack())})),[]);const d=yt((t,e)=>{const r=o.current;e&&e.replace?r.replace(t,e.state):r.push(t,e?.state)},[]),u=yt(t=>{o.current.go(t)},[]),h=gt(()=>({location:a,state:i,navigate:d,go:u,canGoBack:l,mode:t}),[a,i,d,u,l,t]);/* @__PURE__ */
42
+ return ve(Tn.Provider,{value:h,children:r})}function Dn(t){return null}function Un(t){return P(t).filter(t=>t?.type===Dn).map(t=>({path:t.props.path,element:t.props.element,children:t.props.children?Un(t.props.children):void 0}))}function Fn({children:t}){const{location:e}=vt(Tn),r=ft([]),o=P(t).filter(t=>t?.type===Dn).map(t=>t.props.path).join("\0"),a=ft("");o!==a.current&&(a.current=o,r.current=Un(t));const n=r.current,i=gt(()=>On(e,n),[e,n]),s=gt(()=>(i??[]).reduce((t,e)=>({...t,...e.params}),{}),[i]),l=gt(()=>{if(!i)return null;let t=null;for(let e=i.length-1;e>=0;e--){const r=i[e].route.element;t=/* @__PURE__ */ve(En.Provider,{value:{params:s,outlet:t},children:/* @__PURE__ */ve(r,{})})}return t},[i,s]);return i?/* @__PURE__ */ve(T,{children:l}):null}function jn(){const t=vt(En);/* @__PURE__ */
43
+ return ve(T,{children:t?.outlet})}function $n({to:t,state:e,replace:r,children:o,className:a,onClick:n,...i}){const s=vt(Tn),l=yt(o=>{o.preventDefault(),n?.(o),s?.navigate(t,{state:e,replace:r})},[s,t,e,r,n]);/* @__PURE__ */
44
+ return ve("a",{href:t,onClick:l,className:a,...i,children:o})}function Bn({to:t,state:e,replace:r,children:o,className:a,activeClassName:n,onClick:i,...s}){const l=vt(Tn),c=gt(()=>{if(!l)return!1;const e=In(l.location);return e===t||!("/"===t||!e.startsWith(`${t}/`))},[l?.location,t]),d=yt(o=>{o.preventDefault(),i?.(o),l?.navigate(t,{state:e,replace:r})},[l,t,e,r,i]),u="function"==typeof a?a({isActive:c}):sn(a,c&&n);/* @__PURE__ */
45
+ return ve("a",{href:t,onClick:d,className:u,...s,children:o})}function Hn({to:t,state:e,replace:r}){const o=Pn();return ht(()=>{queueMicrotask(()=>{o(t,{state:e,replace:r})})},[o,t,e,r]),null}var Vn=()=>{const t=Mn(),{props:e,sessionId:r}=kn(),o=e?.organizationId,a=ft(r),n=ft(o);ht(()=>{a.current=r,n.current=o},[r,o]);const i=ft([]),s=ft(null),l=ft(null),c=ft(!1),d=ft(!0),u=yt(async t=>{const e=a.current;if(e&&t.length)try{await ya.post(xa.UPDATE_SESSION,{headers:{"x-org-id":n.current},json:{sessionId:e,pageViews:t}})}catch(ot){console.error("Failed to send page views:",ot)}},[]),h=yt(()=>{if(c.current)return null;c.current=!0;const t=Date.now();if(s.current&&l.current){if(t-l.current<100)return c.current=!1,null;const e={page:s.current,entryTime:l.current,exitTime:t},r=[...i.current,e];return r.length>=5?(u(r),i.current=[]):i.current=r,c.current=!1,e}return c.current=!1,null},[u]),p=yt(t=>{s.current!==t&&(h(),s.current=t,l.current=Date.now())},[h]);return ht(()=>{if(d.current)return d.current=!1,s.current=t.pathname,void(l.current=Date.now());const e=document.getElementById("qrati-connect-container");e&&e.scrollIntoView({behavior:"smooth",block:"start"}),p(t.pathname)},[t.pathname,p]),ht(()=>{const t=()=>{h();const t=i.current;return 0===t.length?null:(i.current=[],t)},e=()=>{const e=t();if(e)try{const t={"Content-Type":"application/json"};n.current&&(t["x-org-id"]=n.current),fetch(xa.UPDATE_SESSION,{method:"POST",headers:t,body:JSON.stringify({sessionId:a.current,pageViews:e}),keepalive:!0})}catch(ot){console.error("Failed to send final page views with fetch keepalive:",ot),u(e)}};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e);const r=t();r&&u(r)}},[h]),null},Qn=(t,e)=>e&&e.adPosition>0?e.adPosition:t?.inGalleryEnabled?6:0,Gn=t=>t?.meta?.currentPage>1?t.meta.currentPage-1:void 0,Wn=t=>t?.meta?.currentPage<t?.meta?.totalPages?t.meta.currentPage+1:void 0,Zn=({organizationId:t,eventId:e,token:r,sort:o=Da,order:a=ja,keywords:n,face:i,limit:s=20,authEpoch:l=0})=>({queryKey:[Va.CONTENTS_BY_EVENT(e??""),t??"",o,a,n,i,String(s),l,Boolean(r)],queryFn:async({pageParam:l=1})=>{try{return await ya.get(xa.GET_CONTENTS,{searchParams:{eventId:e,page:l,keywords:n,faceImageUrl:i,sort:`${Fa[a].sortOrder}${Ma[o].sortField}`,limit:s},headers:{"x-org-id":t,...r?{Authorization:`Bearer ${r}`}:{}}}).json()}catch(c){throw new Error(c instanceof Error?c.message:String(c)||"Failed to fetch contents")}},staleTime:6e4,gcTime:3e5,initialPageParam:1,getPreviousPageParam:t=>Gn(t),getNextPageParam:Wn,maxPages:30}),Yn=({event:t,ads:e=[],gamConfig:r,customAds:o,sort:a=Da,order:n=ja,keywords:i,face:s,limit:l=20})=>{const{props:c,loadingUser:d,user:u,authEpoch:h=0}=kn(),p=c?.organizationId,{isLoading:f,isError:m,error:g,data:y,hasNextPage:v,fetchNextPage:b,isFetchingNextPage:w,refetch:_}=Ir({...Zn({organizationId:p,eventId:t?._id,token:u?.token,sort:a,order:n,keywords:i,face:s,limit:l,authEpoch:h}),enabled:!d&&!!t,refetchOnWindowFocus:"always"}),x=gt(()=>y?.pages?.flatMap(t=>t?.data??[])??[],[y]),k=gt(()=>{const t=x.map(t=>"string"==typeof t.urlExpiresAt?Date.parse(t.urlExpiresAt):NaN).filter(Number.isFinite);return t.length?Math.min(...t):void 0},[x]);return ht(()=>{if(void 0===k)return;const t=window.setTimeout(()=>{_()},Math.max(0,k-Date.now()-3e4));return()=>window.clearTimeout(t)},[k,_]),{contents:x,contentsWithAds:gt(()=>{const a=Boolean(r?.inGalleryEnabled),n=void 0!==o;return((t=[],{ads:e,gamConfig:r,position:o,gamShare:a})=>{if(o<=0)return t;const n=Boolean(r?.inGalleryEnabled),i=e.length>0;if(!n&&!i)return t;const s=n?i?Math.min(1,Math.max(0,a)):1:0,l=t=>{const r=e.length>1?e.filter(e=>e._id!==t):e,o=r.reduce((t,e)=>t+Math.max(1,e.frequency??1),0);let a=Math.random()*o;for(const e of r)if(a-=Math.max(1,e.frequency??1),a<=0)return e;return r[r.length-1]};let c=null,d=0;const u=[];for(let h=0;h<t.length;h++)if(u.push(t[h]),(h+1)%o===0){if(n&&(!i||Math.floor((d+1)*s)>Math.floor(d*s))&&r){const t=i?l(c):null;u.push({_id:`gam-ad-slot-${d}`,type:Ea.GAM_AD,slotIndex:d,gamConfig:r,fallbackAd:t,width:r.sizes[0]?.[0]??300,height:r.sizes[0]?.[1]??250})}else{const t=l(c);c=t._id??null,u.push({...t,type:Ea.AD,adType:t.type})}d++}return u})(x,{ads:n?o?e:[]:"gam"!==t?.adMode||a?e:[],gamConfig:a?r:null,position:n?Qn(r,o):t?.adPosition??0,gamShare:(r?.inGalleryBlend??50)/100})},[x,e,t,r,o]),loading:f,isError:m,error:g,refetch:_,hasNextPage:v,fetchNextPage:b,isFetchingNextPage:w}},Kn=()=>{},Jn=()=>{import("./X8kQCV14.js").catch(Kn),import("./DMAkdDxr.js").catch(Kn),import("./CGJtMtq6.js").catch(Kn)},Xn=()=>{import("./ILtcTVir.js").catch(Kn),import("./BjDK8Ljd.js").catch(Kn),import("./DnrkqfsH.js").catch(Kn)},ti=(t,e)=>({queryKey:[`event-data-${t??""}-${e??""}`],queryFn:async()=>{try{const r=await ya.get(xa.EVENT_DATA,{searchParams:e?{eventSlug:e}:void 0,headers:{"x-org-id":t}}).json();if(r.error)throw new Error(r.error);return r.data}catch(r){throw new Error(r instanceof Error?r.message:String(r)||"Failed to fetch event data")}},staleTime:3e5,gcTime:6e5}),ei=({eventSlug:t})=>{const{props:e}=kn(),r=e?.organizationId,{isLoading:o,data:a,isError:n,error:i,refetch:s}=Cr({...ti(r,t),enabled:!!r&&!!t,refetchOnWindowFocus:"always"});return{loading:o,event:a?.event,ads:a?.ads,gamConfig:a?.gamConfig,customAds:a?.customAds,parameters:a?.parameters,isError:n,error:i,refetch:s}},ri=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,oi=nn,ai=(t,e)=>r=>{var o;if(null==(null==e?void 0:e.variants))return oi(t,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:a,defaultVariants:n}=e,i=Object.keys(a).map(t=>{const e=null==r?void 0:r[t],o=null==n?void 0:n[t];if(null===e)return null;const i=ri(e)||ri(o);return a[t][i]}),s=r&&Object.entries(r).reduce((t,e)=>{let[r,o]=e;return void 0===o||(t[r]=o),t},{}),l=null==e||null===(o=e.compoundVariants)||void 0===o?void 0:o.reduce((t,e)=>{let{class:r,className:o,...a}=e;return Object.entries(a).every(t=>{let[e,r]=t;return Array.isArray(r)?r.includes({...n,...s}[e]):{...n,...s}[e]===r})?[...t,r,o]:t},[]);return oi(t,i,l,null==r?void 0:r.class,null==r?void 0:r.className)},ni=ai("inline-flex h-fit flex-auto cursor-pointer items-center justify-center border transition-all duration-200 focus:outline-none active:scale-95",{variants:{size:{sm:"gap-1.5 p-1.5 text-xs",md:"gap-3 px-3 py-2 text-sm",lg:"gap-3 px-4 py-3 text-base"}},defaultVariants:{size:"md"}}),ii=({size:t,buttons:e=[],onChange:r,selected:o,className:a})=>/* @__PURE__ */ve("div",{className:sn("button-group-overlap shadow-outer z-0 flex h-fit rounded",a),children:e.map((a,n)=>{const i=0===n,s=n===e.length-1,l=a.value===o;/* @__PURE__ */
46
+ return ve("button",{type:"button",onClick:()=>r?.(a.value),className:sn(ni({size:t}),l?a.activeClassName?a.activeClassName:"bg-primary border-primary text-primary-foreground hover:bg-primary/90 border":"hover:bg-muted/50 active:bg-muted border-border border",i&&"rounded-l",s&&"rounded-r"),children:[!a.icon&&/* @__PURE__ */ve("span",{className:"font-medium sm:py-0.5",children:a.text}),a.icon&&/* @__PURE__ */ve("div",{className:"size-6",children:a.icon})]},a.value)})});function si({color:t="var(--primary)",className:e="mx-auto size-9",...r}){/* @__PURE__ */
47
+ return ve("svg",{className:e,viewBox:"0 0 20 20",role:"img","aria-hidden":"true",style:{color:t},...r,children:[
48
+ /* @__PURE__ */ve("defs",{children:/* @__PURE__ */ve("linearGradient",{id:"RadialGradient8932",children:[/* @__PURE__ */ve("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:"1"}),/* @__PURE__ */ve("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:"0.25"})]})}),
49
+ /* @__PURE__ */ve("style",{children:"@keyframes spin8932 { to { transform: rotate(360deg); } }\n .circle8932 { transform-origin: 50% 50%; stroke: url(#RadialGradient8932); fill: none; animation: spin8932 .5s infinite linear; }"}),
50
+ /* @__PURE__ */ve("circle",{cx:"10",cy:"10",r:"8",className:"circle8932",strokeWidth:2})]})}var li={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",blockquote:"blockquote",body1:"p",body2:"p",body3:"p",caption:"span",overline:"span",lead:"p"},ci=ai("antialiased",{variants:{variant:{h1:"scroll-m-20 text-4xl font-bold tracking-tight lg:text-5xl",h2:"scroll-m-20 text-3xl font-bold tracking-tight lg:text-4xl",h3:"scroll-m-20 text-2xl font-semibold tracking-tight",h4:"scroll-m-20 text-xl font-semibold",h5:"scroll-m-20 text-lg font-semibold",h6:"scroll-m-20 text-base font-semibold",body1:"text-base leading-relaxed font-medium",body2:"text-sm leading-relaxed",body3:"text-sm leading-relaxed sm:text-base",p:"text-base leading-7",lead:"text-muted-foreground text-xl leading-relaxed",blockquote:"border-primary/30 text-muted-foreground border-l-4 pl-4 text-base italic",caption:"text-muted-foreground text-xs",overline:"text-muted-foreground text-xs font-medium tracking-widest uppercase"},color:{foreground:"text-foreground",muted:"text-muted-foreground",primary:"text-primary",info:"text-info",warning:"text-warning",success:"text-success",error:"text-destructive",inherit:"text-inherit",secondary:"text-muted-foreground",white:"text-white",black:"text-black",a11y:"text-primary-foreground",light:"text-text-primary-light"},align:{left:"text-left",right:"text-right",center:"text-center",justify:"text-justify"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"body1",color:"foreground",align:"left"}}),di=({variant:t="body1",color:e,align:r,weight:o,transform:a,lines:n,shadow:i,noWrap:s,className:l,immutable:c,...d})=>/* @__PURE__ */ve(li[t],{className:sn(ci({variant:t,color:e,align:r,weight:o}),a,n&&n>0?`line-clamp-${n}`:void 0,i&&"drop-shadow-[0_1px_2px_rgba(0,0,0,0.5)]",s&&"truncate",l),...d,children:d.children}),ui=({title:t,description:e,iconSvg:r,className:o})=>{const{props:a,organization:n}=kn(),i=a?.emptyStateImage;/* @__PURE__ */
51
+ return ve("div",{className:sn("mx-auto flex w-full max-w-md flex-col items-center justify-center gap-8",o),children:[n?.integrationSettings?.showLogo?/* @__PURE__ */ve("img",{className:"h-44 w-auto",src:n?.logoUrl||"/images/qrati-logo.svg",alt:t}):i?/* @__PURE__ */ve("img",{className:"h-44 w-auto",src:i,alt:t}):r?/* @__PURE__ */ve("div",{className:"text-primary h-44 w-auto",children:r}):null,/* @__PURE__ */ve("div",{className:"space-y-2",children:[
52
+ /* @__PURE__ */ve(di,{variant:"h4",align:"center",children:t}),"string"==typeof e&&/* @__PURE__ */ve(di,{variant:"body2",color:"muted",align:"center",children:e}),"string"!=typeof e&&e]})]})},hi=({className:t,rounded:e=!1,...r})=>/* @__PURE__ */ve("div",{className:sn("bg-border animate-pulse",e?"rounded-full":"rounded",t),...r});function pi({className:t}){/* @__PURE__ */
53
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:t,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"M6 19h3v-5q0-.425.288-.712T10 13h4q.425 0 .713.288T15 14v5h3v-9l-6-4.5L6 10zm-2 0v-9q0-.475.213-.9t.587-.7l6-4.5q.525-.4 1.2-.4t1.2.4l6 4.5q.375.275.588.7T20 10v9q0 .825-.588 1.413T18 21h-4q-.425 0-.712-.288T13 20v-5h-2v5q0 .425-.288.713T10 21H6q-.825 0-1.412-.587T4 19m8-6.75"})})}function fi({className:t}){/* @__PURE__ */
54
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:t,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"m14.475 12l-7.35-7.35q-.375-.375-.363-.888t.388-.887t.888-.375t.887.375l7.675 7.7q.3.3.45.675t.15.75t-.15.75t-.45.675l-7.7 7.7q-.375.375-.875.363T7.15 21.1t-.375-.888t.375-.887z"})})}var mi=({folder:t})=>/* @__PURE__ */ve("li",{className:"flex items-center",children:[/* @__PURE__ */ve(fi,{className:"size-4"}),/* @__PURE__ */ve($n,{to:t.href??"#",className:"flex items-center gap-2 rounded px-4 py-1 transition-colors",onMouseEnter:e=>{const r=e.currentTarget;r&&t.color&&(r.style.backgroundColor=`${t.color}3A`)},onMouseLeave:t=>{const e=t.currentTarget;e&&(e.style.backgroundColor="")},children:[/* @__PURE__ */ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",style:{color:t.color??void 0},children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20z"})}),/* @__PURE__ */ve(di,{variant:"h5",color:"secondary",className:"whitespace-nowrap",children:t.name})]})]},t.name),gi=({homeLink:t="/",data:e=[]})=>/* @__PURE__ */ve("ol",{role:"list",className:"scrollbar-hide flex max-w-full items-center space-x-3 overflow-y-scroll",children:[/* @__PURE__ */ve("li",{children:/* @__PURE__ */ve($n,{to:t,className:"text-foreground",children:[/* @__PURE__ */ve(pi,{className:"size-6"}),/* @__PURE__ */ve("span",{className:"sr-only",children:"Home"})]})}),e?.map(t=>/* @__PURE__ */ve(mi,{folder:t},t._id??t.name??t.href??"folder"))]}),yi=()=>/* @__PURE__ */ve("div",{className:"text-muted-foreground text-center text-sm",children:["Powered by"," ",
55
+ /* @__PURE__ */ve("a",{href:"https://qrati.com",target:"_blank",rel:"noopener noreferrer",children:/* @__PURE__ */ve("strong",{children:"Qrati"})})]}),vi=()=>{const{user:t,organization:e,signout:r}=kn(),o=Pn(),a=e?.integrationSettings?.hideQratiBranding,n=e?.integrationSettings?.enableMyUploads;/* @__PURE__ */
56
+ return ve("div",{className:"pt-16 sm:pt-24",children:[e&&/* @__PURE__ */ve("div",{className:"mx-auto py-2",children:e.customAuth?t&&/* @__PURE__ */ve(di,{variant:"h6",align:"center",children:[t.name,n&&/* @__PURE__ */ve(T,{children:[" ","•"," ",
57
+ /* @__PURE__ */ve($n,{className:"hover:underline",to:va.MY_UPLOADS,children:"My Uploads"})]})]}):/* @__PURE__ */ve(T,{children:[!t&&/* @__PURE__ */ve(di,{variant:"h6",align:"center",children:[
58
+ /* @__PURE__ */ve($n,{className:"text-primary hover:underline",to:va.LOGIN,children:"Login"})," ","•"," ",
59
+ /* @__PURE__ */ve($n,{className:"text-primary hover:underline",to:va.REGISTER,children:"Register"})]}),t&&/* @__PURE__ */ve(di,{variant:"h6",align:"center",children:[t.name,n&&/* @__PURE__ */ve(T,{children:[" ","•"," ",
60
+ /* @__PURE__ */ve($n,{className:"hover:underline",to:va.MY_UPLOADS,children:"My Uploads"})]})," ","•"," ",
61
+ /* @__PURE__ */ve("button",{type:"button",className:"text-destructive cursor-pointer border-none bg-transparent p-0 hover:underline",onClick:async()=>{await r(),o(va.PUBLIC_EVENTS)},children:"Logout"})]})]})}),!a&&/* @__PURE__ */ve(yi,{})]})},bi=(t=[],e)=>{const r=/* @__PURE__ */new Map;t?.forEach(t=>{r.set(t._id,t)});const o=[];let a=r.get(e);for(;a;)o.unshift({_id:a._id,name:a.name,href:va.FOLDER_EVENTS(a?._id),color:a.color}),a=r.get(a.parentFolderId);return o},wi=()=>/* @__PURE__ */ve("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-full",width:"885.86993",height:"622.8043",viewBox:"0 0 885.86993 622.8043",role:"img",children:[
62
+ /* @__PURE__ */ve("title",{children:"through_the_park"}),
63
+ /* @__PURE__ */ve("polygon",{points:"461.601 348.37 400.416 348.37 400.416 350.344 409.958 350.344 409.958 369.094 411.932 369.094 411.932 350.344 449.098 350.344 449.098 369.094 451.072 369.094 451.072 350.344 461.601 350.344 461.601 348.37",fill:"#3f3d56"}),
64
+ /* @__PURE__ */ve("polygon",{points:"484.299 300.014 468.509 300.014 468.509 315.803 475.829 315.803 475.829 369.007 477.803 369.007 477.803 315.803 484.299 315.803 484.299 300.014",fill:"#3f3d56"}),
65
+ /* @__PURE__ */ve("rect",{x:"400.53636",y:"342.46486",width:"61.18538",height:"1.97372",fill:"#3f3d56"}),
66
+ /* @__PURE__ */ve("rect",{x:"400.53636",y:"337.53055",width:"61.18538",height:"1.97372",fill:"#3f3d56"}),
67
+ /* @__PURE__ */ve("rect",{x:"400.53636",y:"332.59625",width:"61.18538",height:"1.97372",fill:"#3f3d56"}),
68
+ /* @__PURE__ */ve("path",{d:"M775.57723,513.38047h-1.97372c0-93.59519-76.14539-169.7401-169.7401-169.7401-93.59518,0-169.74009,76.14491-169.74009,169.7401H432.1496c0-94.68325,77.03057-171.71382,171.71381-171.71382C698.54714,341.66665,775.57723,418.69722,775.57723,513.38047Z",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
69
+ /* @__PURE__ */ve("circle",{cx:"161.35177",cy:"161.35177",r:"161.35177",fill:"currentcolor"}),
70
+ /* @__PURE__ */ve("path",{d:"M438.4403,192.17931a161.36436,161.36436,0,0,1-268.85975,170.77,161.36567,161.36567,0,1,0,268.85975-170.77Z",transform:"translate(-157.06503 -138.59785)",opacity:"0.2"}),
71
+ /* @__PURE__ */ve("polygon",{points:"161.795 161.352 162.238 161.352 170.217 618.811 153.373 618.811 161.795 161.352",fill:"#3f3d56"}),
72
+ /* @__PURE__ */ve("rect",{x:"329.05538",y:"537.54454",width:"7.97893",height:"30.14264",transform:"translate(509.8146 -138.12101) rotate(62.23413)",fill:"#3f3d56"}),
73
+ /* @__PURE__ */ve("circle",{cx:"755.27647",cy:"229.8063",r:"130.59346",fill:"currentcolor"}),
74
+ /* @__PURE__ */ve("path",{d:"M1009.48506,281.178a130.60365,130.60365,0,0,1-217.60732,138.2163A130.60471,130.60471,0,1,0,1009.48506,281.178Z",transform:"translate(-157.06503 -138.59785)",opacity:"0.2"}),
75
+ /* @__PURE__ */ve("polygon",{points:"755.635 229.806 755.994 229.806 762.452 600.06 748.819 600.06 755.635 229.806",fill:"#3f3d56"}),
76
+ /* @__PURE__ */ve("rect",{x:"920.95206",y:"560.70661",width:"6.45792",height:"24.39658",transform:"translate(843.51724 -650.35577) rotate(62.23413)",fill:"#3f3d56"}),
77
+ /* @__PURE__ */ve("circle",{cx:"369.90725",cy:"321.70366",r:"20.55846",fill:"currentcolor"}),
78
+ /* @__PURE__ */ve("path",{d:"M542.265,446.57008a20.56006,20.56006,0,0,1-34.25647,21.75847A20.56023,20.56023,0,1,0,542.265,446.57008Z",transform:"translate(-157.06503 -138.59785)",opacity:"0.2"}),
79
+ /* @__PURE__ */ve("polygon",{points:"369.964 321.704 370.02 321.704 371.037 379.99 368.891 379.99 369.964 321.704",fill:"#3f3d56"}),
80
+ /* @__PURE__ */ve("rect",{x:"528.32779",y:"490.57441",width:"1.01663",height:"3.84059",transform:"translate(561.19589 -343.48173) rotate(62.23413)",fill:"#3f3d56"}),
81
+ /* @__PURE__ */ve("circle",{cx:"559.878",cy:"255.44299",r:"52.63144",fill:"currentcolor"}),
82
+ /* @__PURE__ */ve("path",{d:"M756.09357,358.88718A52.63554,52.63554,0,0,1,668.394,414.59075a52.636,52.636,0,1,0,87.69954-55.70357Z",transform:"translate(-157.06503 -138.59785)",opacity:"0.2"}),
83
+ /* @__PURE__ */ve("polygon",{points:"560.023 255.443 560.167 255.443 562.77 404.662 557.275 404.662 560.023 255.443",fill:"#3f3d56"}),
84
+ /* @__PURE__ */ve("rect",{x:"720.41323",y:"471.54209",width:"2.60265",height:"9.83225",transform:"translate(650.03004 -522.71764) rotate(62.23413)",fill:"#3f3d56"}),
85
+ /* @__PURE__ */ve("path",{d:"M354.5881,734.63564s.68149-14.27971,14.65205-12.61989",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
86
+ /* @__PURE__ */ve("circle",{cx:"193.57562",cy:"575.45671",r:"6.99217",fill:"currentcolor"}),
87
+ /* @__PURE__ */ve("rect",{x:"192.43789",y:"587.23109",width:"1.97372",height:"13.81605",fill:"#3f3d56"}),
88
+ /* @__PURE__ */ve("path",{d:"M403.93115,702.06922s.68149-14.27971,14.652-12.61988",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
89
+ /* @__PURE__ */ve("circle",{cx:"242.91867",cy:"542.89029",r:"6.99217",fill:"currentcolor"}),
90
+ /* @__PURE__ */ve("rect",{x:"241.78094",y:"554.66468",width:"1.97372",height:"13.81605",fill:"#3f3d56"}),
91
+ /* @__PURE__ */ve("path",{d:"M552.67,591.58462s.54127-11.34162,11.63735-10.02331",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
92
+ /* @__PURE__ */ve("circle",{cx:"392.46975",cy:"436.6403",r:"5.55351",fill:"currentcolor"}),
93
+ /* @__PURE__ */ve("rect",{x:"391.56611",y:"445.99208",width:"1.56762",height:"10.97337",fill:"#3f3d56"}),
94
+ /* @__PURE__ */ve("path",{d:"M769.77945,556.05762s.54127-11.34162,11.63735-10.02331",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
95
+ /* @__PURE__ */ve("circle",{cx:"609.57917",cy:"401.1133",r:"5.55351",fill:"currentcolor"}),
96
+ /* @__PURE__ */ve("rect",{x:"608.67553",y:"410.46508",width:"1.56762",height:"10.97337",fill:"#3f3d56"}),
97
+ /* @__PURE__ */ve("path",{d:"M562.53864,621.19045s.54127-11.34163,11.63735-10.02331",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
98
+ /* @__PURE__ */ve("circle",{cx:"402.33836",cy:"466.24613",r:"5.55351",fill:"currentcolor"}),
99
+ /* @__PURE__ */ve("rect",{x:"401.43472",y:"475.59791",width:"1.56762",height:"10.97337",fill:"#3f3d56"}),
100
+ /* @__PURE__ */ve("path",{d:"M538.854,642.90139s.54127-11.34162,11.63735-10.02331",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
101
+ /* @__PURE__ */ve("circle",{cx:"378.6537",cy:"487.95707",r:"5.55351",fill:"currentcolor"}),
102
+ /* @__PURE__ */ve("rect",{x:"377.75006",y:"497.30885",width:"1.56762",height:"10.97337",fill:"#3f3d56"}),
103
+ /* @__PURE__ */ve("path",{d:"M803.33272,574.808s.54128-11.34162,11.63736-10.02331",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
104
+ /* @__PURE__ */ve("circle",{cx:"643.13244",cy:"419.86366",r:"5.55351",fill:"currentcolor"}),
105
+ /* @__PURE__ */ve("rect",{x:"642.22881",y:"429.21544",width:"1.56762",height:"10.97337",fill:"#3f3d56"}),
106
+ /* @__PURE__ */ve("path",{d:"M483.58976,599.47951s.54127-11.34163,11.63735-10.02332",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
107
+ /* @__PURE__ */ve("circle",{cx:"323.38948",cy:"444.53519",r:"5.55351",fill:"currentcolor"}),
108
+ /* @__PURE__ */ve("rect",{x:"322.48584",y:"453.88696",width:"1.56762",height:"10.97337",fill:"#3f3d56"}),
109
+ /* @__PURE__ */ve("path",{d:"M740.17362,543.22843s.54127-11.34162,11.63735-10.02331",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
110
+ /* @__PURE__ */ve("circle",{cx:"579.97334",cy:"388.28411",r:"5.55351",fill:"currentcolor"}),
111
+ /* @__PURE__ */ve("rect",{x:"579.0697",y:"397.63589",width:"1.56762",height:"10.97337",fill:"#3f3d56"}),
112
+ /* @__PURE__ */ve("path",{d:"M268.73119,737.59622s.68149-14.27971,14.652-12.61989",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
113
+ /* @__PURE__ */ve("circle",{cx:"107.71872",cy:"578.41729",r:"6.99217",fill:"currentcolor"}),
114
+ /* @__PURE__ */ve("rect",{x:"106.58099",y:"590.19168",width:"1.97372",height:"13.81605",fill:"#3f3d56"}),
115
+ /* @__PURE__ */ve("path",{d:"M948.67842,733.64878s.68149-14.27971,14.65205-12.61989",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
116
+ /* @__PURE__ */ve("circle",{cx:"787.66594",cy:"574.46985",r:"6.99217",fill:"currentcolor"}),
117
+ /* @__PURE__ */ve("rect",{x:"786.52822",y:"586.24423",width:"1.97372",height:"13.81605",fill:"#3f3d56"}),
118
+ /* @__PURE__ */ve("path",{d:"M891.44048,700.0955s.68149-14.27971,14.65205-12.61988",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
119
+ /* @__PURE__ */ve("circle",{cx:"730.42801",cy:"540.91657",r:"6.99217",fill:"currentcolor"}),
120
+ /* @__PURE__ */ve("rect",{x:"729.29028",y:"552.69096",width:"1.97372",height:"13.81605",fill:"#3f3d56"}),
121
+ /* @__PURE__ */ve("path",{d:"M883.54559,750.42541s.6815-14.27971,14.65205-12.61988",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
122
+ /* @__PURE__ */ve("circle",{cx:"722.53312",cy:"591.24648",r:"6.99217",fill:"currentcolor"}),
123
+ /* @__PURE__ */ve("rect",{x:"721.39539",y:"603.02087",width:"1.97372",height:"13.81605",fill:"#3f3d56"}),
124
+ /* @__PURE__ */ve("path",{d:"M280.09142,761.08258S590.95263,679.17311,587.992,595.28993c-5.42774-23.19124-42.92846-29.1124-42.92846-29.1124s-88.81749-11.84233-40.4613-40.4613,180.59557-21.71094,180.59557-21.71094-136.18682,21.71094-75.9883,33.55327c48.35619,2.96058,110.52843,15.78978,110.52843,15.78978S846.0562,579.99358,863.8197,645.12641s2.96058,115.46273,2.96058,115.46273Z",transform:"translate(-157.06503 -138.59785)",fill:"#e6e6e6"}),
125
+ /* @__PURE__ */ve("path",{d:"M618.67289,761.40215l-1.16407-1.627q2.4668-1.76367,4.85938-3.50781l1.17773,1.61719Q621.14359,759.63213,618.67289,761.40215Z",transform:"translate(-157.06503 -138.59785)",fill:"#fff"}),
126
+ /* @__PURE__ */ve("path",{d:"M633.18265,750.72832l-1.207-1.59375c3.23144-2.44727,6.41406-4.90918,9.46-7.31738l1.24023,1.56836C639.61917,745.80254,636.42484,748.27324,633.18265,750.72832Zm18.82324-14.89941-1.27734-1.53907c3.12793-2.59863,6.18652-5.21,9.09082-7.76074l1.32031,1.502C658.22171,730.59453,655.14847,733.21855,652.00589,735.82891Zm18.03223-15.86914-1.36914-1.459c2.98535-2.7998,5.86328-5.60254,8.55469-8.332l1.42382,1.4043C675.93851,714.32012,673.04105,717.14238,670.03812,719.95977Zm16.8584-17.14063-1.48828-1.33594c2.74218-3.05468,5.33593-6.11426,7.709-9.09277l1.56445,1.24609C692.28421,696.64531,689.66507,699.73516,686.89652,702.81914ZM701.84964,683.952,700.1973,682.825c2.32519-3.40723,4.42285-6.80859,6.23437-10.10938l1.75391.9629C706.34281,677.035,704.211,680.492,701.84964,683.952Zm11.5-21.21386-1.86133-.73047a69.37031,69.37031,0,0,0,3.39551-11.29l1.959.40234A71.21576,71.21576,0,0,1,713.34964,662.73809Zm2.66992-23.69629a47.10965,47.10965,0,0,0-1.60839-11.50684l1.93164-.52148a49.17317,49.17317,0,0,1,1.67675,11.99511Zm-5.98339-22.30274a60.32109,60.32109,0,0,0-6.65625-9.66406l1.5332-1.2832a62.27891,62.27891,0,0,1,6.87695,9.98632Zm-14.91993-18.10449a108.36226,108.36226,0,0,0-9.32617-7.34766l1.1543-1.63281a110.07889,110.07889,0,0,1,9.498,7.48438Zm-19.34863-13.78418c-3.27148-1.92285-6.80078-3.8418-10.4873-5.70312l.90039-1.78516c3.72558,1.87988,7.292,3.81933,10.60058,5.76367Zm-21.29687-10.81445c-3.48145-1.54688-7.18946-3.10352-11.02149-4.62793l.74024-1.85742c3.85547,1.5332,7.58789,3.10058,11.09375,4.65722ZM632.23539,565.157c-3.56348-1.292-7.37305-2.61816-11.32129-3.94141l.63476-1.89648c3.96387,1.3291,7.78906,2.66016,11.36817,3.957Zm-22.73145-7.64648c-3.48535-1.09961-7.2373-2.25684-11.47119-3.53907l.58008-1.91406c4.24072,1.28418,8.00048,2.44434,11.49267,3.54492Zm-22.979-6.99317c-4.0459-1.21-7.90332-2.36621-11.51465-3.47851l.58886-1.91211c3.60645,1.1123,7.458,2.2666,11.499,3.47461Zm-22.98389-7.1875a95.0565,95.0565,0,0,1-11.26416-4.53418l.89941-1.78711a92.76387,92.76387,0,0,0,11.019,4.43067Zm-15.103-13.11035-1.42578-1.40234c1.82324-1.85254,5.42969-3.665,11.02539-5.542l.63574,1.89649C553.45658,526.9207,550.01273,528.61992,548.438,530.21953Zm21.67676-8.30566-.4834-1.94141c3.459-.86133,7.39942-1.76269,11.71192-2.67871l.415,1.957C577.46878,520.16094,573.5513,521.05742,570.11478,521.91387Zm23.36963-5.01856-.375-1.96484c3.68506-.7041,7.65381-1.4336,11.79687-2.168l.34961,1.96875C601.12113,515.46465,597.16117,516.19219,593.48441,516.89531ZM617.05374,512.7l-.33007-1.97266q5.65283-.94775,11.83105-1.93847l.31641,1.97461Q622.69827,511.75371,617.05374,512.7Z",transform:"translate(-157.06503 -138.59785)",fill:"#fff"}),
127
+ /* @__PURE__ */ve("path",{d:"M640.9307,508.865l-.30664-1.97656q2.9165-.45119,5.93554-.91114l.30079,1.97657Q643.84281,508.41387,640.9307,508.865Z",transform:"translate(-157.06503 -138.59785)",fill:"#fff"}),
128
+ /* @__PURE__ */ve("path",{d:"M685.194,305.71659l9.08474-7.26606c-7.05753-.77863-9.95734,3.07039-11.14411,6.11693-5.51363-2.28947-11.51587.711-11.51587.711l18.17688,6.59885A13.75483,13.75483,0,0,0,685.194,305.71659Z",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
129
+ /* @__PURE__ */ve("path",{d:"M516.44078,361.96766l9.08474-7.26605c-7.05753-.77864-9.95734,3.07039-11.14411,6.11692-5.51363-2.28946-11.51587.711-11.51587.711l18.17688,6.59885A13.75487,13.75487,0,0,0,516.44078,361.96766Z",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
130
+ /* @__PURE__ */ve("path",{d:"M560.84953,245.51807l9.08473-7.26606c-7.05753-.77863-9.95733,3.07039-11.14411,6.11693-5.51363-2.28947-11.51587.711-11.51587.711l18.17688,6.59885A13.75484,13.75484,0,0,0,560.84953,245.51807Z",transform:"translate(-157.06503 -138.59785)",fill:"#3f3d56"}),
131
+ /* @__PURE__ */ve("path",{d:"M659.609,569.03965s-7.86875,0-8.74306,4.80868-2.18577,57.267-1.31146,63.82431.87431,5.24584.87431,5.24584-1.743,12.4609,2.18858,13.00631S656.5489,641.607,656.5489,641.607l3.06008-53.33264Z",transform:"translate(-157.06503 -138.59785)",fill:"#9e616a"}),
132
+ /* @__PURE__ */ve("path",{d:"M693.7069,569.03965s7.86875,0,8.74306,4.80868,2.18577,57.267,1.31146,63.82431-.8743,5.24584-.8743,5.24584,1.743,12.4609-2.18859,13.00631S696.767,641.607,696.767,641.607l-3.06008-53.33263Z",transform:"translate(-157.06503 -138.59785)",fill:"#9e616a"}),
133
+ /* @__PURE__ */ve("path",{d:"M658.29752,751.76952h-3.49721a7.86866,7.86866,0,0,0-7.86875,7.86857v.00018H668.352V749.58375H658.29752Z",transform:"translate(-157.06503 -138.59785)",fill:"#2f2e41"}),
134
+ /* @__PURE__ */ve("path",{d:"M691.95829,751.76952h3.49721a7.86867,7.86867,0,0,1,7.86875,7.86857v.00018H681.90377V749.58375h10.05452Z",transform:"translate(-157.06503 -138.59785)",fill:"#2f2e41"}),
135
+ /* @__PURE__ */ve("circle",{cx:"516.09568",cy:"409.02131",r:"11.36598",fill:"#9e616a"}),
136
+ /* @__PURE__ */ve("path",{d:"M670.53781,553.73931s-1.31146,14.426-3.06008,15.73749,18.36042-.8743,18.36042-.8743-6.99444-10.49167-5.683-13.98889S670.53781,553.73931,670.53781,553.73931Z",transform:"translate(-157.06503 -138.59785)",fill:"#9e616a"}),
137
+ /* @__PURE__ */ve("path",{d:"M696.32981,569.03965s-24.04341-10.05451-39.78091,0c0,0-3.93436,10.05451-.87431,15.7375s7.86875,19.23472,3.06008,28.41493.43716,5.24584.43716,5.24584-6.12014,24.48056-6.99445,43.71525,2.62293,88.30487,5.24583,88.742,10.92883,1.31146,11.80314,0,6.99444-92.67636,6.99444-92.67636,2.62292,93.55069,5.24582,93.55069,9.61737,0,10.92883-2.18577,12.24027-86.55625,8.30591-104.04235-6.55729-26.22917-6.55729-26.22917,4.80867-3.06007,3.49723-4.80869-7.86877-20.54616-4.80869-23.60625S696.32981,569.03965,696.32981,569.03965Z",transform:"translate(-157.06503 -138.59785)",fill:"#2f2e41"}),
138
+ /* @__PURE__ */ve("circle",{cx:"523.30871",cy:"402.17104",r:"18.36042",fill:"#2f2e41"}),
139
+ /* @__PURE__ */ve("path",{d:"M691.83867,531.57749a12.36814,12.36814,0,0,1-9.33162-14.29294c-.05359.188-.104.37762-.14921.57a12.36847,12.36847,0,0,0,24.0811,5.65832c.0452-.19233.08448-.38459.12022-.57676A12.36815,12.36815,0,0,1,691.83867,531.57749Z",transform:"translate(-157.06503 -138.59785)",fill:"#2f2e41"}),
140
+ /* @__PURE__ */ve("circle",{cx:"535.52108",cy:"386.38703",r:"8.98489",fill:"#2f2e41"})]}),_i=({as:t="div",className:e,threshold:r=.5,rootMargin:o="0px",triggerOnce:a,onChange:n,onClick:i,children:s})=>{const l=ft(null),c=ft(!1),d=ft(n);return d.current=n,ht(()=>{const t=l.current;if(!t)return;c.current=!1;const e=new IntersectionObserver(t=>{t.forEach(t=>{a&&c.current||(t.isIntersecting&&(c.current=!0),d.current?.(t.isIntersecting))})},{threshold:r,rootMargin:o});return e.observe(t),()=>e.disconnect()},[r,o,a]),x(t,{ref:l,className:e,onClick:i},s)},xi=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],ki=t=>{let e=0;for(let r=0;r<t.length;r++){let o=t[r];e=83*e+xi.indexOf(o)}return e},Ti=(t,e)=>{var r="";for(let o=1;o<=e;o++){let a=Math.floor(t)/Math.pow(83,e-o)%83;r+=xi[Math.floor(a)]}return r},Ei=t=>{let e=t/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},Si=t=>{let e=Math.max(0,Math.min(1,t));return e<=.0031308?Math.trunc(12.92*e*255+.5):Math.trunc(255*(1.055*Math.pow(e,.4166666666666667)-.055)+.5)},Ci=(t,e)=>(t=>t<0?-1:1)(t)*Math.pow(Math.abs(t),e),Ii=class extends Error{constructor(t){super(t),this.name="ValidationError",this.message=t}},Ni=t=>{let e=t>>8&255,r=255&t;return[Ei(t>>16),Ei(e),Ei(r)]},Ri=(t,e)=>{let r=Math.floor(t/361),o=Math.floor(t/19)%19,a=t%19;return[Ci((r-9)/9,2)*e,Ci((o-9)/9,2)*e,Ci((a-9)/9,2)*e]},Oi=(t,e,r,o)=>{(t=>{if(!t||t.length<6)throw new Ii("The blurhash string must be at least 6 characters");let e=ki(t[0]),r=Math.floor(e/9)+1,o=e%9+1;if(t.length!==4+2*o*r)throw new Ii(`blurhash length mismatch: length is ${t.length} but it should be ${4+2*o*r}`)})(t),o|=1;let a=ki(t[0]),n=Math.floor(a/9)+1,i=a%9+1,s=(ki(t[1])+1)/166,l=new Array(i*n);for(let u=0;u<l.length;u++)if(0===u){let e=ki(t.substring(2,6));l[u]=Ni(e)}else{let e=ki(t.substring(4+2*u,6+2*u));l[u]=Ri(e,s*o)}let c=4*e,d=new Uint8ClampedArray(c*r);for(let u=0;u<r;u++)for(let t=0;t<e;t++){let o=0,a=0,s=0;for(let c=0;c<n;c++)for(let n=0;n<i;n++){let d=Math.cos(Math.PI*t*n/e)*Math.cos(Math.PI*u*c/r),h=l[n+c*i];o+=h[0]*d,a+=h[1]*d,s+=h[2]*d}let h=Si(o),p=Si(a),f=Si(s);d[4*t+0+u*c]=h,d[4*t+1+u*c]=p,d[4*t+2+u*c]=f,d[4*t+3+u*c]=255}return d},Ai=(t,e,r,o)=>{let a=0,n=0,i=0,s=4*e;for(let c=0;c<e;c++){let e=4*c;for(let l=0;l<r;l++){let r=e+l*s,d=o(c,l);a+=d*Ei(t[r]),n+=d*Ei(t[r+1]),i+=d*Ei(t[r+2])}}let l=1/(e*r);return[a*l,n*l,i*l]},Pi=(t,e,r,o,a)=>{if(o<1||o>9||a<1||a>9)throw new Ii("BlurHash must have between 1 and 9 components");if(e*r*4!==t.length)throw new Ii("Width and height must match the pixels array");let n=[];for(let d=0;d<a;d++)for(let a=0;a<o;a++){let o=0==a&&0==d?1:2,i=Ai(t,e,r,(t,n)=>o*Math.cos(Math.PI*a*t/e)*Math.cos(Math.PI*d*n/r));n.push(i)}let i,s=n[0],l=n.slice(1),c="";if(c+=Ti(o-1+9*(a-1),1),l.length>0){let t=Math.max(...l.map(t=>Math.max(...t))),e=Math.floor(Math.max(0,Math.min(82,Math.floor(166*t-.5))));i=(e+1)/166,c+=Ti(e,1)}else i=1,c+=Ti(0,1);return c+=Ti((t=>(Si(t[0])<<16)+(Si(t[1])<<8)+Si(t[2]))(s),4),l.forEach(t=>{c+=Ti(((t,e)=>19*Math.floor(Math.max(0,Math.min(18,Math.floor(9*Ci(t[0]/e,.5)+9.5))))*19+19*Math.floor(Math.max(0,Math.min(18,Math.floor(9*Ci(t[1]/e,.5)+9.5))))+Math.floor(Math.max(0,Math.min(18,Math.floor(9*Ci(t[2]/e,.5)+9.5)))))(t,i),2)}),c},qi=Object.defineProperty,zi=Object.defineProperties,Mi=Object.getOwnPropertyDescriptors,Li=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,Fi=(t,e,r)=>e in t?qi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ji=(t,e)=>{for(var r in e||(e={}))Di.call(e,r)&&Fi(t,r,e[r]);if(Li)for(var r of Li(e))Ui.call(e,r)&&Fi(t,r,e[r]);return t},$i=(t,e)=>zi(t,Mi(e)),Bi=(t,e)=>{var r={};for(var o in t)Di.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&Li)for(var o of Li(t))e.indexOf(o)<0&&Ui.call(t,o)&&(r[o]=t[o]);return r},Hi=class extends Mt{constructor(){super(...arguments),this.canvas=null,this.handleRef=t=>{this.canvas=t,this.draw()},this.draw=()=>{let{hash:t,height:e,punch:r,width:o}=this.props;if(this.canvas){let a=Oi(t,o,e,r),n=this.canvas.getContext("2d"),i=n.createImageData(o,e);i.data.set(a),n.putImageData(i,0,0)}}}componentDidUpdate(){this.draw()}render(){let t=this.props,{hash:e,height:r,width:o}=t,a=Bi(t,["hash","height","width"]);return x("canvas",$i(ji({},a),{height:r,width:o,ref:this.handleRef}))}};Hi.defaultProps={height:128,width:128};var Vi={position:"absolute",top:0,bottom:0,left:0,right:0,width:"100%",height:"100%"};(class extends Mt{componentDidUpdate(){if(this.props.resolutionX<=0)throw new Error("resolutionX must be larger than zero");if(this.props.resolutionY<=0)throw new Error("resolutionY must be larger than zero")}render(){let t=this.props,{hash:e,height:r,width:o,punch:a,resolutionX:n,resolutionY:i,style:s}=t,l=Bi(t,["hash","height","width","punch","resolutionX","resolutionY","style"]);return x("div",$i(ji({},l),{style:$i(ji({display:"inline-block",height:r,width:o},s),{position:"relative"})}),x(Hi,{hash:e,height:i,width:n,punch:a,style:Vi}))}}).defaultProps={height:128,width:128,resolutionX:32,resolutionY:32};var Qi=Hi,Gi=({src:t,alt:e,threshold:r=.1,rootMargin:o="600px 0px",blurhash:a,containerClassName:n="size-full",wrapperClassName:i,imgClassName:s="",sizeMode:l="cover",position:c="center",delayMs:d=100,delayTime:u,onClick:h})=>{const p=a&&a.length>=6?a:"LEHV6nWB2yk8pyo0adR*.7kCMdnj",[f,m]=dt(!1),[g,y]=dt(!1),[v,b]=dt(!1),w=ft(null);ht(()=>{m(!1),y(!1)},[t]);const _="number"==typeof u?u:d,x=i??n;ht(()=>{if(!f)return v?w.current=window.setTimeout(()=>{y(!0)},_):w.current&&(clearTimeout(w.current),w.current=null),()=>{w.current&&clearTimeout(w.current)}},[v,f,_]);const k=g&&v||f;/* @__PURE__ */
141
+ return ve(_i,{as:"div",className:sn(x,"relative overflow-hidden"),threshold:r,rootMargin:o,onChange:t=>b(t),children:[v&&/* @__PURE__ */ve(Qi,{className:"size-full blur-2xl",hash:p}),k&&t&&/* @__PURE__ */ve("img",{alt:e,src:t,loading:"lazy",decoding:"async",onLoad:()=>m(!0),className:sn("absolute top-0 left-0 size-full object-center transition-all duration-300",f?"scale-100 opacity-100":"scale-95 opacity-0","contain"===l?"object-contain":"object-cover","top"===c?"object-top":"bottom"===c?"object-bottom":"object-center",s),onClick:t=>h?.(t)})]})};function Wi({className:t}){/* @__PURE__ */
142
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:t,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"M3 19q-.825 0-1.412-.587T1 17V7q0-.825.588-1.412T3 5h10q.825 0 1.413.588T15 7v10q0 .825-.587 1.413T13 19zm15-8q-.425 0-.712-.288T17 10V6q0-.425.288-.712T18 5h4q.425 0 .713.288T23 6v4q0 .425-.288.713T22 11zm1-2h2V7h-2zM3 17h10V7H3zm2-2h6q.3 0 .45-.275t-.05-.525l-1.625-2.175q-.15-.2-.4-.2t-.4.2L7.5 14l-.975-1.3q-.15-.2-.4-.2t-.4.2L4.6 14.2q-.2.25-.05.525T5 15m13 4q-.425 0-.712-.288T17 18v-4q0-.425.288-.712T18 13h4q.425 0 .713.288T23 14v4q0 .425-.288.713T22 19zm1-2h2v-2h-2zM3 17V7zm16-8V7zm0 8v-2z"})})}var Zi=({event:t})=>{const{organization:e}=kn(),r=gt(()=>t?.contents&&0!==t.contents.length?[...t.contents].sort((t,e)=>{const r=(e.score||0)-(t.score||0);return 0!==r?r:(t.thumbnailUrl||"").localeCompare(e.thumbnailUrl||"")}):[],[t?.contents]),o=e?.advancedSettings?.defaultCoverImageUrl,a=e?.advancedSettings?.defaultCoverBlurHash;let n,i;t?.coverImageUrl?(n=t.coverImageUrl,i=t.coverBlurHash):r[0]?(n=r[0].thumbnailUrl||r[0].url,i=r[0].blurHash):o&&(n=o,i=a);const s=t?.status?.toUpperCase(),l=!e?.integrationSettings?.hideEventStatus&&s&&s!==Oa.CLOSED;/* @__PURE__ */
143
+ return ve("div",{className:"space-y-3",children:[/* @__PURE__ */ve("div",{className:"relative h-72 overflow-hidden rounded sm:h-80",children:[n?/* @__PURE__ */ve(Gi,{wrapperClassName:"size-full sm:hover:scale-105 sm:transition-transform",src:n,blurhash:i||void 0}):/* @__PURE__ */ve("div",{className:"flex size-full items-center justify-center bg-muted",children:/* @__PURE__ */ve(Wi,{className:"size-16 text-white"})}),l&&/* @__PURE__ */ve("div",{className:"absolute top-3 left-3",children:/* @__PURE__ */ve("span",s===Oa.OPEN?{className:"bg-success inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-xs font-medium text-white",children:[/* @__PURE__ */ve("div",{className:"size-2 animate-pulse rounded-full bg-white"}),"Open"]}:{className:"bg-warning inline-flex items-center rounded-full px-3 py-1.5 text-xs font-semibold text-white",children:"Upcoming"})})]}),/* @__PURE__ */ve("div",{className:"px-3 sm:px-0",children:[/* @__PURE__ */ve(di,{variant:"h5",immutable:!0,lines:2,children:t.name}),t.description&&/* @__PURE__ */ve(di,{variant:"body2",immutable:!0,lines:1,color:"muted",children:t.description})]})]})},Yi=({folder:t})=>/* @__PURE__ */ve("div",{className:"shadow-outer border-border flex min-w-0 items-center gap-3 rounded border p-2 transition-colors duration-200",onMouseEnter:e=>{const r=e.currentTarget;r&&t.color&&(r.style.backgroundColor=`${t.color}3A`)},onMouseLeave:t=>{const e=t.currentTarget;e&&(e.style.backgroundColor="")},children:[/* @__PURE__ */ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:"shrink-0",style:{color:t.color},children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20z"})}),/* @__PURE__ */ve("span",{className:"truncate text-sm md:text-base font-semibold",children:t.name})]}),Ki=()=>{const{initializing:t,orgRole:e,user:r,loadingUser:o}=kn(),a=r?e??void 0:void 0;return{role:a,isSuper:Boolean(r?.isSuper),loading:Boolean(o||t),isOwner:a===ka,isAdmin:a===Ta,isModerator:"moderator"===a}};function Ji({content:t,children:e,position:r="top",className:o,contentClassName:a}){const[n,i]=dt(!1),{organization:s}=kn();/* @__PURE__ */
144
+ return ve("div",{className:sn("relative inline-block",o),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onClick:()=>i(!1),onBlur:()=>i(!1),children:[e,n&&/* @__PURE__ */ve("div",{className:sn("bg-popover text-popover-foreground border-border animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 pointer-events-auto absolute z-50 rounded border px-3 py-2 text-sm whitespace-nowrap shadow-md",{top:"bottom-full left-1/2 -translate-x-1/2 mb-2",right:"left-full top-1/2 -translate-y-1/2 ml-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2"}[r],a),"data-side":r,style:dn(s),role:"tooltip",children:[t,/* @__PURE__ */ve("div",{className:sn("border-popover absolute h-0 w-0 border-4",{top:"top-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-b-transparent",right:"right-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-l-transparent",bottom:"bottom-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-t-transparent",left:"left-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-r-transparent"}[r])})]})]})}function Xi({className:t}){/* @__PURE__ */
145
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:t,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"M7.288 12.288Q7 12.575 7 13v3q0 .425.288.713T8 17t.713-.288T9 16v-3q0-.425-.288-.712T8 12t-.712.288m8-5Q15 7.575 15 8v8q0 .425.288.713T16 17t.713-.288T17 16V8q0-.425-.288-.712T16 7t-.712.288m-4 7Q11 14.575 11 15v1q0 .425.288.713T12 17t.713-.288T13 16v-1q0-.425-.288-.712T12 14t-.712.288M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5H5zM5 5v14zm7.713 6.713Q13 11.425 13 11t-.288-.712T12 10t-.712.288T11 11t.288.713T12 12t.713-.288"})})}function ts({className:t}){/* @__PURE__ */
146
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:t,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"M10.825 22q-.675 0-1.162-.45t-.588-1.1L8.85 18.8q-.325-.125-.612-.3t-.563-.375l-1.55.65q-.625.275-1.25.05t-.975-.8l-1.175-2.05q-.35-.575-.2-1.225t.675-1.075l1.325-1Q4.5 12.5 4.5 12.337v-.675q0-.162.025-.337l-1.325-1Q2.675 9.9 2.525 9.25t.2-1.225L3.9 5.975q.35-.575.975-.8t1.25.05l1.55.65q.275-.2.575-.375t.6-.3l.225-1.65q.1-.65.588-1.1T10.825 2h2.35q.675 0 1.163.45t.587 1.1l.225 1.65q.325.125.613.3t.562.375l1.55-.65q.625-.275 1.25-.05t.975.8l1.175 2.05q.35.575.2 1.225t-.675 1.075l-1.325 1q.025.175.025.338v.674q0 .163-.05.338l1.325 1q.525.425.675 1.075t-.2 1.225l-1.2 2.05q-.35.575-.975.8t-1.25-.05l-1.5-.65q-.275.2-.575.375t-.6.3l-.225 1.65q-.1.65-.587 1.1t-1.163.45zM11 20h1.975l.35-2.65q.775-.2 1.438-.587t1.212-.938l2.475 1.025l.975-1.7l-2.15-1.625q.125-.35.175-.737T17.5 12t-.05-.787t-.175-.738l2.15-1.625l-.975-1.7l-2.475 1.05q-.55-.575-1.212-.962t-1.438-.588L13 4h-1.975l-.35 2.65q-.775.2-1.437.588t-1.213.937L5.55 7.15l-.975 1.7l2.15 1.6q-.125.375-.175.75t-.05.8q0 .4.05.775t.175.75l-2.15 1.625l.975 1.7l2.475-1.05q.55.575 1.213.963t1.437.587zm1.05-4.5q1.45 0 2.475-1.025T15.55 12t-1.025-2.475T12.05 8.5q-1.475 0-2.487 1.025T8.55 12t1.013 2.475T12.05 15.5M12 12"})})}function es({className:t}){/* @__PURE__ */
147
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:t,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"M10.3 19.8q1.125-2.275 3-3.037T16.5 16q.575 0 1.125.1t1.075.25q.6-.95.95-2.05T20 12q0-3.35-2.325-5.675T12 4T6.325 6.325T4 12q0 1.125.287 2.15t.863 1.9q1.025-.5 2.125-.775T9.5 15q.8 0 1.537.138t1.463.362q-.575.3-1.088.7t-.962.85q-.3-.05-.512-.05H9.5q-.8 0-1.588.175T6.4 17.7q.8.8 1.788 1.338t2.112.762m-2.2 1.413q-1.825-.788-3.175-2.138T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22t-3.9-.788m-1.075-8.737Q6 11.45 6 10t1.025-2.475T9.5 6.5t2.475 1.025T13 10t-1.025 2.475T9.5 13.5t-2.475-1.025m3.538-1.412Q11 10.625 11 10t-.437-1.062T9.5 8.5t-1.062.438T8 10t.438 1.063T9.5 11.5t1.063-.437m4.162 2.712Q14 13.05 14 12t.725-1.775T16.5 9.5t1.775.725T19 12t-.725 1.775t-1.775.725t-1.775-.725M12 12"})})}var rs=({organization:t})=>{const{role:e,isSuper:r}=Ki(),o=gt(()=>{const o=[];return(r||e&&(e===ka||e===Ta))&&(o.push({label:"Analytics",icon:Xi,href:ba.ORGANIZATION_DASHBOARD(t?._id??"")}),o.push({label:"Admins",icon:es,href:ba.ORGANIZATION_ADMINS(t?._id??"")}),o.push({label:"Settings",icon:ts,href:ba.ORGANIZATION_SETTINGS(t?._id??"")})),o},[e,r,t]);return o&&0!==o.length?/* @__PURE__ */ve("div",{className:"text-muted-foreground sm:text-foreground flex flex-row items-center gap-6 pr-2",children:o.map(t=>/* @__PURE__ */ve(Ji,{content:t.label,children:/* @__PURE__ */ve("a",{"aria-label":t.label,target:"_blank",href:t.href,rel:"noreferrer",children:/* @__PURE__ */ve(t.icon,{className:"size-6"})})},t.label))}):null};function os({className:t}){/* @__PURE__ */
148
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:t,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"m9.55 15.15l8.475-8.475q.3-.3.7-.3t.7.3t.3.713t-.3.712l-9.175 9.2q-.3.3-.7.3t-.7-.3L4.55 13q-.3-.3-.288-.712t.313-.713t.713-.3t.712.3z"})})}var as=Z({open:!1,setOpen:()=>{}});function ns({children:t,className:e,open:r,defaultOpen:o=!1,onOpenChange:a}){const[n,i]=dt(o),s=void 0!==r?r:n,l=yt(t=>{i(t),a?.(t)},[a]),c=gt(()=>({open:s,setOpen:l}),[s,l]);/* @__PURE__ */
149
+ return ve(as.Provider,{value:c,children:/* @__PURE__ */ve("div",{className:sn("relative",e),children:t})})}function is({children:t,className:e,asChild:r=!1}){const{open:o,setOpen:a}=vt(as),n=yt(t=>{t.stopPropagation(),a(!o)},[o,a]);if(r){const r=P(t)[0];return r?W(r,{onClick:t=>{n(t),r.props?.onClick?.(t)},className:sn(r.props?.className,e,"cursor-pointer")}):null}/* @__PURE__ */
150
+ return ve("span",{onClick:n,className:sn("cursor-pointer",e),children:t})}function ss({children:t,className:e,align:r="end",side:o="bottom",sideOffset:a=4}){const{open:n,setOpen:i}=vt(as),s=ft(null),{organization:l}=kn();if(ht(()=>{if(!n)return;const t=t=>{s.current&&!s.current.contains(t.target)&&i(!1)},e=t=>{"Escape"===t.key&&i(!1)};return document.addEventListener("click",t),document.addEventListener("keydown",e),()=>{document.removeEventListener("click",t),document.removeEventListener("keydown",e)}},[n,i]),!n)return null;const c="start"===r?"left-0":"end"===r?"right-0":"left-1/2 -translate-x-1/2",d="bottom"===o?{top:`calc(100% + ${a}px)`}:{bottom:`calc(100% + ${a}px)`};/* @__PURE__ */
151
+ return ve("div",{ref:s,style:{...dn(l),...d},className:sn("bg-popover text-popover-foreground border-border absolute z-50 min-w-32 rounded border p-1 shadow-md","animate-in fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",c,e),"data-side":o,children:t})}function ls({children:t,className:e,href:r,onClick:o,onSelect:a,disabled:n,icon:i,title:s,variant:l="default",isChecked:c,isBeta:d,suffix:u,asChild:h}){const{setOpen:p}=vt(as),f=sn("hover:bg-primary/20 relative flex w-full cursor-pointer items-center gap-3 rounded px-3 py-2 text-left text-sm transition-colors outline-none select-none",n&&"pointer-events-none opacity-50","destructive"===l&&"text-destructive hover:bg-destructive/10 focus:bg-destructive/10",e),m=t??/* @__PURE__ */ve(T,{children:[i,
152
+ /* @__PURE__ */ve("span",{className:"flex-1 truncate font-medium",children:s}),c&&/* @__PURE__ */ve(os,{className:"text-primary size-5"}),d&&/* @__PURE__ */ve("span",{className:"bg-primary text-primary-foreground rounded px-1.5 py-0.5 text-[10px]",children:"BETA"}),u&&/* @__PURE__ */ve("span",{children:u})]}),g=yt(t=>{n||(a?.(t),o?.(),p(!1))},[n,a,o,p]);if(h&&t){const e=P(t)[0];return e?W(e,{onClick:t=>{g(t),e.props?.onClick?.(t)},className:sn(e.props?.className,f)}):null}return r?/* @__PURE__ */ve($n,{to:r,onClick:g,className:f,children:m}):/* @__PURE__ */ve("button",{onClick:g,className:f,disabled:n,type:"button",children:m})}function cs({className:t}){/* @__PURE__ */
153
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:t,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"M11.475 14.475L7.85 10.85q-.075-.075-.112-.162T7.7 10.5q0-.2.138-.35T8.2 10h7.6q.225 0 .363.15t.137.35q0 .05-.15.35l-3.625 3.625q-.125.125-.25.175T12 14.7t-.275-.05t-.25-.175"})})}function ds({className:t}){/* @__PURE__ */
154
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:t,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275t.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275z"})})}function us({className:t}){/* @__PURE__ */
155
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:t,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"M9.5 16q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.6 5.6q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-5.6-5.6q-.75.6-1.725.95T9.5 16m0-2q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14"})})}function hs({className:t}){/* @__PURE__ */
156
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",className:t,"aria-hidden":"true",focusable:"false",children:[/* @__PURE__ */ve("path",{d:"M0 0h16v16H0z",fill:"none"}),/* @__PURE__ */ve("g",{fill:"currentColor",children:[
157
+ /* @__PURE__ */ve("path",{d:"M12.438 1.668V7H11.39V2.684h-.051l-1.211.859v-.969l1.262-.906h1.046z"}),
158
+ /* @__PURE__ */ve("path",{"fill-rule":"evenodd",d:"M11.36 14.098c-1.137 0-1.708-.657-1.762-1.278h1.004c.058.223.343.45.773.45c.824 0 1.164-.829 1.133-1.856h-.059c-.148.39-.57.742-1.261.742c-.91 0-1.72-.613-1.72-1.758c0-1.148.848-1.835 1.973-1.835c1.09 0 2.063.636 2.063 2.687c0 1.867-.723 2.848-2.145 2.848zm.062-2.735c.504 0 .933-.336.933-.972c0-.633-.398-1.008-.94-1.008c-.52 0-.927.375-.927 1c0 .64.418.98.934.98"}),
159
+ /* @__PURE__ */ve("path",{d:"M4.5 2.5a.5.5 0 0 0-1 0v9.793l-1.146-1.147a.5.5 0 0 0-.708.708l2 1.999l.007.007a.497.497 0 0 0 .7-.006l2-2a.5.5 0 0 0-.707-.708L4.5 12.293z"})]})]})}function ps({className:t}){/* @__PURE__ */
160
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",className:t,"aria-hidden":"true",focusable:"false",children:[/* @__PURE__ */ve("path",{d:"M0 0h16v16H0z",fill:"none"}),/* @__PURE__ */ve("g",{fill:"currentColor",children:[/* @__PURE__ */ve("path",{"fill-rule":"evenodd",d:"M11.36 7.098c-1.137 0-1.708-.657-1.762-1.278h1.004c.058.223.343.45.773.45c.824 0 1.164-.829 1.133-1.856h-.059c-.148.39-.57.742-1.261.742c-.91 0-1.72-.613-1.72-1.758c0-1.148.848-1.836 1.973-1.836c1.09 0 2.063.637 2.063 2.688c0 1.867-.723 2.848-2.145 2.848zm.062-2.735c.504 0 .933-.336.933-.972c0-.633-.398-1.008-.94-1.008c-.52 0-.927.375-.927 1c0 .64.418.98.934.98"}),/* @__PURE__ */ve("path",{d:"M12.438 8.668V14H11.39V9.684h-.051l-1.211.859v-.969l1.262-.906h1.046zM4.5 2.5a.5.5 0 0 0-1 0v9.793l-1.146-1.147a.5.5 0 0 0-.708.708l2 1.999l.007.007a.497.497 0 0 0 .7-.006l2-2a.5.5 0 0 0-.707-.708L4.5 12.293z"})]})]})}function fs({className:t}){/* @__PURE__ */
161
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",className:t,"aria-hidden":"true",focusable:"false",children:[/* @__PURE__ */ve("path",{d:"M0 0h16v16H0z",fill:"none"}),/* @__PURE__ */ve("g",{fill:"currentColor",children:[/* @__PURE__ */ve("path",{"fill-rule":"evenodd",d:"M10.082 5.629L9.664 7H8.598l1.789-5.332h1.234L13.402 7h-1.12l-.419-1.371zm1.57-.785L11 2.687h-.047l-.652 2.157z"}),/* @__PURE__ */ve("path",{d:"M12.96 14H9.028v-.691l2.579-3.72v-.054H9.098v-.867h3.785v.691l-2.567 3.72v.054h2.645zM4.5 2.5a.5.5 0 0 0-1 0v9.793l-1.146-1.147a.5.5 0 0 0-.708.708l2 1.999l.007.007a.497.497 0 0 0 .7-.006l2-2a.5.5 0 0 0-.707-.708L4.5 12.293z"})]})]})}function ms({className:t}){/* @__PURE__ */
162
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",className:t,"aria-hidden":"true",focusable:"false",children:[/* @__PURE__ */ve("path",{d:"M0 0h16v16H0z",fill:"none"}),/* @__PURE__ */ve("g",{fill:"currentColor",children:[/* @__PURE__ */ve("path",{d:"M12.96 7H9.028v-.691l2.579-3.72v-.054H9.098v-.867h3.785v.691l-2.567 3.72v.054h2.645z"}),/* @__PURE__ */ve("path",{"fill-rule":"evenodd",d:"M10.082 12.629L9.664 14H8.598l1.789-5.332h1.234L13.402 14h-1.12l-.419-1.371zm1.57-.785L11 9.688h-.047l-.652 2.156zM4.5 2.5a.5.5 0 0 0-1 0v9.793l-1.146-1.147a.5.5 0 0 0-.708.708l2 1.999l.007.007a.497.497 0 0 0 .7-.006l2-2a.5.5 0 0 0-.707-.708L4.5 12.293z"})]})]})}var gs=[{value:"createdAt",label:"Created At"},{value:"name",label:"Name"}],ys=({className:t,sort:e})=>/* @__PURE__ */ve("name"===e?fs:"-name"===e?ms:"createdAt"===e?hs:ps,{className:t}),vs=({onSearch:t,onSortChange:e=()=>{},sort:r="-createdAt",onClear:o,hasActiveSearch:a,disabled:n,showSortControl:i=!1})=>{const[s,l]=dt(""),[c,d]=dt("event"),u=r.replace("-",""),h="name"===r?"A-Z":"-name"===r?"Z-A":"createdAt"===r?"0-1":"1-0";ht(()=>{a||l("")},[a]);const p=()=>{l(""),o()};/* @__PURE__ */
163
+ return ve("form",{noValidate:!0,className:"relative flex w-full flex-wrap items-center justify-end gap-3 cursor-pointer",onSubmit:e=>{e.preventDefault();const r=s.trim();r?t(r,c):p()},children:[i&&/* @__PURE__ */ve(T,{children:[/* @__PURE__ */ve("button",{type:"button","aria-label":"Toggle sort order",title:`Sort order: ${h}`,onClick:()=>e(r.startsWith("-")?u:`-${u}`),children:/* @__PURE__ */ve(ys,{className:"size-6",sort:r})}),/* @__PURE__ */ve(ns,{children:[/* @__PURE__ */ve(is,{asChild:!0,children:/* @__PURE__ */ve("span",{"aria-label":"Sort field",className:"text-muted-foreground hover:text-foreground border-border flex items-center border rounded py-2.5 px-2 text-sm gap-2 font-semibold",children:[gs.find(t=>t.value===u)?.label,/* @__PURE__ */ve(cs,{className:"size-4"})]})}),/* @__PURE__ */ve(ss,{align:"end",side:"bottom",className:"z-2010 w-40",children:gs.map(t=>/* @__PURE__ */ve(ls,{title:t.label,isChecked:u===t.value,onClick:()=>e(r.startsWith("-")?`-${t.value}`:t.value)},t.value))})]})]}),/* @__PURE__ */ve("div",{className:"border-border bg-background relative flex rounded border",children:[/* @__PURE__ */ve(ns,{children:[/* @__PURE__ */ve(is,{asChild:!0,children:/* @__PURE__ */ve("span",{"aria-label":"Search type",className:"text-muted-foreground hover:text-foreground border-border flex items-center border-r py-2.5 px-2 text-sm gap-2 font-semibold",children:[/* @__PURE__ */ve("span",{children:"content"===c?"Media":"Event"}),/* @__PURE__ */ve(cs,{className:"size-4"})]})}),/* @__PURE__ */ve(ss,{align:"start",side:"bottom",className:"z-2010 w-32",children:[/* @__PURE__ */ve(ls,{title:"Event",isChecked:"event"===c,onClick:()=>d("event")}),/* @__PURE__ */ve(ls,{title:"Media",isChecked:"content"===c,onClick:()=>d("content")})]})]}),/* @__PURE__ */ve("div",{className:"relative overflow-hidden",children:[/* @__PURE__ */ve("input",{type:"text",value:s,onInput:t=>l(t.target.value),"aria-label":"Search organizations",placeholder:"Type to search...",autoComplete:"off",disabled:n,className:"bg-input overflow-hidden focus:border-primary focus:ring-primary w-full flex-1 border-0 py-2.5 pr-10 pl-2 text-sm outline-none"}),/* @__PURE__ */ve("button",a?{type:"button",title:"Clear search",onClick:p,className:"text-muted-foreground hover:text-primary absolute top-2.5 right-3 cursor-pointer rounded-full hover:bg-gray-200",children:/* @__PURE__ */ve(ds,{className:"size-5"})}:{type:"submit","aria-label":"Search",className:"text-muted-foreground hover:text-primary absolute top-2.5 right-3 cursor-pointer rounded-full",children:/* @__PURE__ */ve(us,{className:"size-5"})})]})]})]})};function bs({className:t}){/* @__PURE__ */
164
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:t,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"m7.825 13l4.9 4.9q.3.3.288.7t-.313.7q-.3.275-.7.288t-.7-.288l-6.6-6.6q-.15-.15-.213-.325T4.426 12t.063-.375t.212-.325l6.6-6.6q.275-.275.688-.275t.712.275q.3.3.3.713t-.3.712L7.825 11H19q.425 0 .713.288T20 12t-.288.713T19 13z"})})}function ws({className:t}){/* @__PURE__ */
165
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:t,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"M12.6 12L8.7 8.1q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375t-.062.375t-.213.325l-4.6 4.6q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7z"})})}function _s({className:t}){/* @__PURE__ */
166
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:t,"aria-hidden":"true",focusable:"false",children:[/* @__PURE__ */ve("path",{fill:"currentColor",d:"M12 2A10 10 0 1 0 22 12A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8A8 8 0 0 1 12 20Z",opacity:".5"}),/* @__PURE__ */ve("path",{fill:"currentColor",d:"M20 12h2A10 10 0 0 0 12 2V4A8 8 0 0 1 20 12Z",children:/* @__PURE__ */ve("animateTransform",{attributeName:"transform",dur:"1s",from:"0 12 12",repeatCount:"indefinite",to:"360 12 12",type:"rotate"})})]})}function xs({className:t}){/* @__PURE__ */
167
+ return ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:t,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"m7 17.7l1.4 1.425q.15.15.35.15t.35-.15t.15-.363t-.15-.362L7.7 17l1.425-1.425q.15-.15.15-.35t-.15-.35t-.35-.15t-.35.15L7 16.3l-1.425-1.425q-.15-.15-.35-.15t-.35.15t-.15.35t.15.35L6.3 17l-1.425 1.425q-.15.15-.15.35t.15.35t.35.15t.35-.15zm-3.537 2.838Q2 19.075 2 17t1.463-3.537T7 12t3.538 1.463T12 17t-1.463 3.538T7 22t-3.537-1.463M14.2 14.6q-.3-.325-.637-.662T12.9 13.3q.95-.6 1.525-1.6T15 9.5q0-1.875-1.312-3.187T10.5 5T7.313 6.313T6 9.5q0 .15.013.288t.037.287q-.45.05-.987.2t-.963.35q-.05-.275-.075-.55T4 9.5q0-2.725 1.888-4.612T10.5 3t4.613 1.888T17 9.5q0 1.075-.337 2.038t-.938 1.762l5.575 5.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275z"})})}var ks=["javascript:","data:","vbscript:","file:"];function Ts(t,e=["http:","https:"]){if(!t||function(t){const e=t.trim().toLowerCase();return ks.some(t=>e.startsWith(t))}(t))return!1;try{const r="undefined"!=typeof window?window.location.href:"https://qrati.com",o=new URL(t,r);return e.includes(o.protocol)}catch{return!1}}function Es(t){return t.replace(/^\s*[\w-]+:(?:\/\/)?\s*/i,"").trim()}var Ss=({url:t,alt:e="",thumbnailUrl:r,blurhash:o,pswpData:a={},curateLink:n,onClick:i})=>{const s=gt(()=>(t=>Object.keys(t).reduce((e,r)=>{const o=t[r];return null==o||""===o||(e[`data-pswp-${a=r,a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`]=o),e;var a},{}))(a),[a]),l=/* @__PURE__ */ve(T,{children:[/* @__PURE__ */ve(Gi,{threshold:.1,src:r||t,blurhash:o,alt:e}),a.type===Ea.VIDEO&&/* @__PURE__ */ve("div",{className:"absolute inset-0 top-0 left-0 flex items-center justify-center opacity-75",children:/* @__PURE__ */ve("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-16 text-white lg:w-24",viewBox:"0 0 24 24",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"M8 17.175V6.825q0-.425.3-.713t.7-.287q.125 0 .263.037t.262.113l8.15 5.175q.225.15.338.375t.112.475t-.112.475t-.338.375l-8.15 5.175q-.125.075-.262.113T9 18.175q-.4 0-.7-.288t-.3-.712"})})})]});if(i)/* @__PURE__ */return ve("button",{className:"h-full w-full",onClick:i,children:l});if(n)/* @__PURE__ */return ve($n,{to:n,className:"h-full w-full",children:l});const c=t&&Ts(t,["http:","https:"])?t:void 0;return c?/* @__PURE__ */ve("a",{href:c,className:"pswp-item block h-full w-full",...s,...r?{"data-pswp-thumbnail-url":r}:{},...o?{"data-pswp-blurhash":o}:{},target:"_blank",rel:"noreferrer",children:l}):/* @__PURE__ */ve("span",{className:"pswp-item block h-full w-full",...s,...r?{"data-pswp-thumbnail-url":r}:{},...o?{"data-pswp-blurhash":o}:{},children:l})},Cs=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Is=({content:t,timestampField:e,onClick:r,hideControls:o,submittedQuery:a})=>{const n=`content-${t._id}`,i=((t,e)=>{if(!t||!e)return null;const r=e?.[t];if(!r)return null;try{const t=new Date(String(r)),e=/* @__PURE__ */new Date,o=t.getFullYear()===e.getFullYear(),a={weekday:"long",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0};return o||(a.year="numeric"),t.toLocaleString("en-US",a).replace(","," •")}catch{return null}})(e,t),s="caption"===t?.matchSource?t?.caption:"AI Generated Description",l="caption"===t?.matchSource?((t,e)=>{if(!t)return"No caption";const r=(e||"").trim().split(/\s+/).map(t=>t.trim()).filter(Boolean).sort((t,e)=>e.length-t.length);if(0===r.length)return t;const o=new RegExp(`(${r.map(Cs).join("|")})`,"gi"),a=t.split(o);return a.length<=1?t:a.map((t,e)=>r.some(e=>e.toLowerCase()===t.toLowerCase())?/* @__PURE__ */ve("mark",{className:"rounded bg-amber-300/90 px-1 text-slate-950 shadow-[0_0_0_1px_rgba(255,255,255,0.18)]",children:t},`caption-part-${e}`):/* @__PURE__ */ve("span",{children:t},`caption-part-${e}`))})(t?.caption,a):"AI Generated Description";/* @__PURE__ */
168
+ return ve("div",{id:n,className:"group relative mb-1 size-full h-64 xl:h-72 2xl:h-80 overflow-hidden rounded",children:[/* @__PURE__ */ve(Ss,{url:t.src,alt:t.caption,blurhash:t.blurhash,thumbnailUrl:t.thumbnailUrl,onClick:r,pswpData:{id:t._id,type:Ea.IMAGE,hash:t._id,width:t.dimension?.width,height:t.dimension?.height,thumbnailUrl:t.thumbnailUrl,blurhash:t.blurhash,caption:"caption"===t.matchSource?t.caption:"AI Generated Description"}}),!o&&/* @__PURE__ */ve(T,{children:[i&&/* @__PURE__ */ve("div",{className:"absolute top-2 left-2 max-w-[calc(100%-80px)] truncate rounded bg-black/50 px-2 py-0.5 text-xs text-white backdrop-blur-sm",children:i}),/* @__PURE__ */ve("div",{className:"",children:/* @__PURE__ */ve("div",{className:"absolute bottom-0 w-full rounded-b",children:/* @__PURE__ */ve("div",{className:"w-full space-y-3 px-3 pb-3",children:[/* @__PURE__ */ve("span",{className:"hidden w-full py-1 text-xs drop-shadow-[0_1.2px_1.2px_rgba(0,0,0,0.8)] sm:block","data-tooltip-target":"tooltip-default",children:/* @__PURE__ */ve("div",{className:"hover:text-foreground lg:text-md line-clamp-2 text-xs text-white lg:font-medium",title:s??"No caption",role:"note",children:l})}),/* @__PURE__ */ve("div",{className:"flex items-center justify-between",children:/* @__PURE__ */ve("span",{className:"lg:text-md line-clamp-1 text-sm font-medium text-white drop-shadow-[0_1.2px_1.2px_rgba(0,0,0,0.8)]",children:(c=t?.user,[c?.firstName,c?.lastName].filter(Boolean).join(" ")||(c?.name||"").replace(/\s+(?:undefined|null)$/i,"").trim())})})]})})})]})]});var c},Ns=({folders:t,submittedQuery:e,submittedSearchType:r,isLoading:o,errorMessage:a,hasMore:n,isSearchActive:i,page:s,onLoadMore:l,onBack:c,eventResults:d,contentResults:u,contentMeta:h,activeFolderKeys:p,eventGroupsByFolder:f,contentGroups:m,contentGroupsByFolder:g,flattenedContentMedia:y,galleryElementRef:v,galleryId:b,openMediaInLightbox:w})=>{const _=ft(null),x=ft(null);ht(()=>{if("content"===r)return _.current&&_.current.disconnect(),_.current=new IntersectionObserver(t=>{t[0]?.isIntersecting&&n&&!o&&l()},{rootMargin:"200px"}),x.current&&_.current.observe(x.current),()=>{_.current?.disconnect()}},[r,n,o,l]);const k=({folderId:e})=>{const r=e?bi(t,e):[];return 0===r.length?null:/* @__PURE__ */ve("div",{className:"text-muted-foreground -ml-1.5 flex flex-wrap items-center gap-1 text-xs",children:r.map((t,e)=>/* @__PURE__ */ve("span",{className:"inline-flex items-center gap-1",children:[e>0&&/* @__PURE__ */ve(ws,{className:"size-4 opacity-70"}),/* @__PURE__ */ve($n,{to:t.href,state:{internalNavigation:!0},className:"inline-flex items-center gap-1 rounded px-1.5 py-0.5 transition-colors",onMouseEnter:e=>{t.color&&(e.currentTarget.style.backgroundColor=`${t.color}24`)},onMouseLeave:t=>{t.currentTarget.style.backgroundColor=""},children:[/* @__PURE__ */ve("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",style:{color:t.color??void 0},children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20z"})}),/* @__PURE__ */ve("span",{className:"hover:text-foreground whitespace-nowrap",children:t.name})]})]},t._id))})},T=({event:t})=>/* @__PURE__ */ve("div",{className:"bg-background border-border space-y-2 rounded border-b p-3 shadow-none",children:[
169
+ /* @__PURE__ */ve(k,{folderId:t.folderId}),
170
+ /* @__PURE__ */ve($n,{to:va.GALLERY(String(t.slug)),className:"hover:text-primary block text-sm font-semibold",children:t.name||"Event Untitled"}),t.description&&/* @__PURE__ */ve(di,{variant:"body2",color:"muted",className:"line-clamp-1 text-xs",children:t.description})]});/* @__PURE__ */
171
+ return ve("div",{className:"mt-3 space-y-6 sm:mt-6",children:[
172
+ /* @__PURE__ */ve("button",{type:"button",onClick:c,className:"bg-background text-foreground hover:text-primary sticky top-0 z-10 flex items-center gap-1 py-2 text-sm font-medium",children:[/* @__PURE__ */ve(bs,{className:"size-5"}),"Back"]}),"content"===r&&y.length>0&&/* @__PURE__ */ve("div",{id:b,ref:v,className:"pointer-events-none absolute size-0 overflow-hidden opacity-0",children:y.map(t=>/* @__PURE__ */ve("a",{"aria-label":t.content.caption||`${t.event.name||"Event"} media`,href:t.content.url||t.content.thumbnailUrl||"",className:"pswp-item","data-pswp-width":t.content.dimension?.width||t.content.width||1600,"data-pswp-height":t.content.dimension?.height||t.content.height||1200,"data-pswp-src":t.content.url||t.content.thumbnailUrl||"","data-pswp-msrc":t.content.thumbnailUrl||t.content.url||"","data-cropped":"true","data-pswp-caption":t.content.caption||`${t.event.name||"Event"} Media`,children:/* @__PURE__ */ve("img",{src:t.content.thumbnailUrl||t.content.url||"",alt:t.content.caption||""})},`pswp-${t.event._id}-${t.content._id}`))}),o&&1===s&&/* @__PURE__ */ve("div",{className:"mt-3 grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:Array.from({length:6}).map((t,e)=>/* @__PURE__ */ve("div",{className:"animate-pulse",children:[/* @__PURE__ */ve(hi,{className:"h-48 rounded-t-lg bg-gray-200 sm:h-56 dark:bg-gray-700"}),/* @__PURE__ */ve("div",{className:"space-y-3 p-4",children:[/* @__PURE__ */ve(hi,{className:"h-3 w-3/4 rounded bg-gray-200 dark:bg-gray-700"}),/* @__PURE__ */ve(hi,{className:"h-3 w-1/2 rounded bg-gray-200 dark:bg-gray-700"})]})]},`search-shimmer-${e}`))}),!o&&!!a&&/* @__PURE__ */ve("div",{className:"text-danger rounded border border-red-300 bg-red-50 p-3 text-sm",children:a}),!o&&!a&&"event"===r&&0===d.length&&/* @__PURE__ */ve("div",{className:"py-12 text-center",children:[
173
+ /* @__PURE__ */ve(xs,{className:"mb-4 text-gray-400"}),
174
+ /* @__PURE__ */ve(di,{variant:"h3",className:"mb-2",children:"No Results Found"}),
175
+ /* @__PURE__ */ve(di,{variant:"body1",className:"mb-6 text-gray-600 dark:text-gray-400",children:"We couldn't find any results. Try different keywords or check your spelling."})]}),!o&&!a&&"content"===r&&0===u.length&&/* @__PURE__ */ve("div",{className:"py-12 text-center",children:[
176
+ /* @__PURE__ */ve(xs,{className:"mb-4 text-gray-400"}),
177
+ /* @__PURE__ */ve(di,{variant:"h3",className:"mb-2",children:"No Content Found"}),
178
+ /* @__PURE__ */ve(di,{variant:"body1",className:"mb-6 text-gray-600 dark:text-gray-400",children:"Nothing matched. Try different keywords or broaden your search."})]}),!a&&("event"===r?p.map(t=>{const e=f[t]||[];/* @__PURE__ */
179
+ return ve("div",{className:"space-y-4",children:[t===p[0]&&/* @__PURE__ */ve(di,{variant:"h3",className:"mb-4",children:["Events (",d.length,")"]}),/* @__PURE__ */ve("div",{className:"grid grid-cols-1 gap-4 gap-y-6 sm:grid-cols-2 lg:grid-cols-3",children:e.map(t=>/* @__PURE__ */ve(T,{event:t},t._id))})]},`event-folder-${t}`)}):p.map(t=>{const r=g[t]||[];/* @__PURE__ */
180
+ return ve("div",{className:"space-y-4",children:[t===p[0]&&/* @__PURE__ */ve(di,{variant:"h3",className:"mb-4",children:["Media (",h?.totalContentCount||u.length,") Events (",h?.totalEventCount||m.length,")"]}),/* @__PURE__ */ve("div",{className:"space-y-6",children:r.map(t=>/* @__PURE__ */ve("div",{className:"space-y-3",children:[/* @__PURE__ */ve(T,{event:t.event}),/* @__PURE__ */ve("div",{className:"grid grid-cols-3 gap-3",children:t.contents.map(r=>/* @__PURE__ */ve(Is,{content:r,timestampField:"captureTime",submittedQuery:e,onClick:e=>w(t.event._id,r._id,e)},r._id))})]},`content-event-${t.event._id}`))})]},`content-folder-${t}`)})),"content"===r&&i&&!a&&/* @__PURE__ */ve("div",{ref:x,className:"h-4 w-full","aria-hidden":"true"}),"content"===r&&i&&o&&s>1&&!a&&/* @__PURE__ */ve("div",{className:"flex justify-center pt-2",children:/* @__PURE__ */ve(_s,{className:"text-2xl"})}),"event"===r&&i&&n&&!a&&/* @__PURE__ */ve("div",{className:"flex justify-center pt-2",children:/* @__PURE__ */ve("button",{type:"button",disabled:o,className:"bg-primary text-primary-foreground disabled:bg-muted rounded px-4 py-2 text-sm font-medium disabled:cursor-not-allowed",onClick:l,children:o?"Loading...":"Load More"})})]})},Rs="__qrati_photoswipe",Os=t=>Boolean(t&&"object"==typeof t&&t[Rs]),As=class{active=!1;closingByBackButton=!1;previousState;previousUrl="";previousBrowserState;previousBrowserUrl="";nativeHistoryActive=!1;getPhotoSwipe;routerHistory;constructor(t,e){this.getPhotoSwipe=t,this.routerHistory=e}open(){if(this.active)return;this.active=!0,this.previousState=this.routerHistory?this.routerHistory.state:window.history.state,this.previousUrl=this.routerHistory?this.routerHistory.location:window.location.href,this.previousBrowserState=window.history.state,this.previousBrowserUrl=window.location.href;const t=this.previousState&&"object"==typeof this.previousState?{...this.previousState,[Rs]:!0}:{[Rs]:!0};this.routerHistory?(this.routerHistory.push(this.previousUrl,t),window.history.pushState({...this.previousBrowserState??{},[Rs]:!0},document.title,this.previousBrowserUrl),this.nativeHistoryActive=!0,window.addEventListener("popstate",this.handlePopState)):(window.history.pushState(t,document.title,this.previousUrl),this.nativeHistoryActive=!0,window.addEventListener("popstate",this.handlePopState))}close(){if(!this.active)return;const t=this.closingByBackButton;this.cleanup(),t?this.routerHistory&&this.routerHistory.go(-1):this.routerHistory?(this.routerHistory.go(-1),this.nativeHistoryActive&&window.history.back()):window.history.back()}destroy(){this.active&&(this.routerHistory&&Os(this.routerHistory.state)?this.routerHistory.replace(this.previousUrl,this.previousState):!this.routerHistory&&Os(window.history.state)&&window.history.replaceState(this.previousState,document.title,this.previousUrl),this.nativeHistoryActive&&Os(window.history.state)&&window.history.replaceState(this.previousBrowserState,document.title,this.previousBrowserUrl)),this.cleanup()}isActive(){return this.active}handleBack(){this.active&&(this.closingByBackButton=!0,this.getPhotoSwipe()?.close?.())}handlePopState=()=>{this.active&&this.handleBack()};cleanup(){this.active=!1,this.closingByBackButton=!1,this.previousState=void 0,this.previousUrl="",window.removeEventListener("popstate",this.handlePopState)}};function Ps(t,e,r){const o=document.createElement(e);return t&&(o.className=t),r&&r.appendChild(o),o}function qs(t,e){return t.x=e.x,t.y=e.y,void 0!==e.id&&(t.id=e.id),t}function zs(t){t.x=Math.round(t.x),t.y=Math.round(t.y)}function Ms(t,e){const r=Math.abs(t.x-e.x),o=Math.abs(t.y-e.y);return Math.sqrt(r*r+o*o)}function Ls(t,e){return t.x===e.x&&t.y===e.y}function Ds(t,e,r){return Math.min(Math.max(t,e),r)}function Us(t,e,r){let o=`translate3d(${t}px,${e||0}px,0)`;return void 0!==r&&(o+=` scale3d(${r},${r},1)`),o}function Fs(t,e,r,o){t.style.transform=Us(e,r,o)}function js(t,e,r,o){t.style.transition=e?`${e} ${r}ms ${o||"cubic-bezier(.4,0,.22,1)"}`:"none"}function $s(t,e,r){t.style.width="number"==typeof e?`${e}px`:e,t.style.height="number"==typeof r?`${r}px`:r}function Bs(t){js(t)}function Hs(t){return"decode"in t?t.decode().catch(()=>{}):t.complete?Promise.resolve(t):new Promise((e,r)=>{t.onload=()=>e(t),t.onerror=r})}var Vs="loading",Qs="loaded",Gs="error";function Ws(t){return"button"in t&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function Zs(t,e,r=document){let o=[];if(t instanceof Element)o=[t];else if(t instanceof NodeList||Array.isArray(t))o=Array.from(t);else{const a="string"==typeof t?t:e;a&&(o=Array.from(r.querySelectorAll(a)))}return o}function Ys(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}var Ks=class{constructor(t,e){if(this.element=Ps("pswp__img pswp__img--placeholder",t?"img":"div",e),t){const e=this.element;e.decoding="async",e.alt="",e.src=t,e.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){this.element&&("IMG"===this.element.tagName?($s(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=Us(0,0,t/250)):$s(this.element,t,e))}destroy(){this.element?.parentNode&&this.element.remove(),this.element=null}},Js=class{constructor(t,e,r){this.instance=e,this.data=t,this.index=r,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state="idle",this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.hash=this.data.hash,this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(t,e){if(this.slide&&this.usePlaceholder())if(this.placeholder){const t=this.placeholder.element;t&&!t.parentElement&&this.slide.container.prepend(t)}else{const t=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new Ks(t,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=Ps("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=Ps("pswp__content","div"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const e=this.element;this.updateSrcsetSizes(),this.data.srcset&&(e.srcset=this.data.srcset),e.src=this.data.src??"",e.alt=this.data.alt??"",this.state=Vs,e.complete?this.onLoaded():(e.onload=()=>{this.onLoaded()},e.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=Qs,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),this.state!==Qs&&this.state!==Gs||this.removePlaceholder())}onError(){this.state=Gs,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===Vs,this)}isError(){return this.state===Gs}isImageContent(){return"image"===this.type||"ad"===this.type}setDisplayedSize(t,e){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented&&($s(this.element,t,e),this.isImageContent()&&!this.isError()))){const r=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=e,r?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==Gs,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=`${e}px`,t.dataset.largestUsedSize=String(e))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){let t=Ps("pswp__error-msg","div");t.innerText=this.instance.options?.errorMsg??"",t=this.instance.applyFilters("contentErrorElement",t,this),this.element=Ps("pswp__content pswp__error-msg-container","div"),this.element.appendChild(t),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===Gs)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||Ys())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!Ys()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),this.state!==Qs&&this.state!==Gs||this.removePlaceholder()))}};function Xs(t,e){if(t.getViewportSizeFn){const r=t.getViewportSizeFn(t,e);if(r)return r}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function tl(t,e,r,o,a){let n=0;if(e.paddingFn)n=e.paddingFn(r,o,a)[t];else if(e.padding)n=e.padding[t];else{const r=`padding${t[0].toUpperCase()}${t.slice(1)}`;e[r]&&(n=e[r])}return Number(n)||0}function el(t,e,r,o){return{x:e.x-tl("left",t,e,r,o)-tl("right",t,e,r,o),y:e.y-tl("top",t,e,r,o)-tl("bottom",t,e,r,o)}}var rl=class{constructor(t,e,r,o){this.pswp=o,this.options=t,this.itemData=e,this.index=r,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,e,r){const o={x:t,y:e};this.elementSize=o,this.panAreaSize=r;const a=r.x/o.x,n=r.y/o.y;this.fit=Math.min(1,a<n?a:n),this.fill=Math.min(1,a>n?a:n),this.vFill=Math.min(1,n),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){const e=`${t}ZoomLevel`,r=this.options[e];if(r)return"function"==typeof r?r(this):"fill"===r?this.fill:"fit"===r?this.fit:Number(r)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,3*this.fit),this.elementSize&&t*this.elementSize.x>4e3&&(t=4e3/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}};function ol(t,e,r){const o=e.createContentFromData(t,r);let a;const{options:n}=e;if(n){let i;a=new rl(n,t,-1),i=e.pswp?e.pswp.viewportSize:Xs(n,e);const s=el(n,i,t,r);a.update(o.width,o.height,s)}return o.lazyLoad(),a&&o.setDisplayedSize(Math.ceil(o.width*a.initial),Math.ceil(o.height*a.initial)),o}function al(t,e){const r=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:r}).defaultPrevented)return ol(r,e,t)}var nl=class{constructor(t){this.pswp=t,this.limit=Math.max(t.options.preload[0]+t.options.preload[1]+1,5),this._cachedItems=[]}updateLazy(t){const{pswp:e}=this;if(e.dispatch("lazyLoad").defaultPrevented)return;const{preload:r}=e.options,o=void 0===t||t>=0;let a=0;for(;a<=r[1];a++)this.loadSlideByIndex(e.currIndex+(o?a:-a));for(a=1;a<=r[0];a++)this.loadSlideByIndex(e.currIndex+(o?-a:a))}loadSlideByIndex(t){const e=this.pswp.getLoopedIndex(t);let r=this.getContentByIndex(e);r||(r=al(e,this.pswp),r&&this.addToCache(r))}getContentBySlide(t){let e=this.getContentByIndex(t.index);return e||(e=this.pswp.createContentFromData(t.data,t.index),this.addToCache(e)),e.setSlide(t),e}addToCache(t){if(this.removeByIndex(t.index),this._cachedItems.push(t),this._cachedItems.length>this.limit){const t=this._cachedItems.findIndex(t=>!t.isAttached&&!t.hasSlide);-1!==t&&this._cachedItems.splice(t,1)[0].destroy()}}removeByIndex(t){const e=this._cachedItems.findIndex(e=>e.index===t);-1!==e&&this._cachedItems.splice(e,1)}getContentByIndex(t){return this._cachedItems.find(e=>e.index===t)}destroy(){this._cachedItems.forEach(t=>t.destroy()),this._cachedItems=[]}},il=class{constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}},sl=class{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,r=100){this._filters[t]||(this._filters[t]=[]),this._filters[t]?.push({fn:e,priority:r}),this._filters[t]?.sort((t,e)=>t.priority-e.priority),this.pswp?.addFilter(t,e,r)}removeFilter(t,e){this._filters[t]&&(this._filters[t]=this._filters[t].filter(t=>t.fn!==e)),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){return this._filters[t]?.forEach(t=>{e[0]=t.fn.apply(this,e)}),e[0]}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t]?.push(e),this.pswp?.on(t,e)}off(t,e){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(t=>e!==t)),this.pswp?.off(t,e)}dispatch(t,e){if(this.pswp)return this.pswp.dispatch(t,e);const r=new il(t,e);return this._listeners[t]?.forEach(t=>{t.call(this,r)}),r}},ll=class extends sl{getNumItems(){let t=0;const e=this.options?.dataSource;e&&"length"in e?t=e.length:e&&"gallery"in e&&(e.items||(e.items=this._getGalleryDOMElements(e.gallery)),e.items&&(t=e.items.length));const r=this.dispatch("numItems",{dataSource:e,numItems:t});return this.applyFilters("numItems",r.numItems,e)}createContentFromData(t,e){return new Js(t,this,e)}getItemData(t){const e=this.options?.dataSource;let r={};Array.isArray(e)?r=e[t]:e&&"gallery"in e&&(e.items||(e.items=this._getGalleryDOMElements(e.gallery)),r=e.items[t]);let o=r;o instanceof Element&&(o=this._domElementToItemData(o));const a=this.dispatch("itemData",{itemData:o||{},index:t});return this.applyFilters("itemData",a.itemData,t)}_getGalleryDOMElements(t){return this.options?.children||this.options?.childSelector?Zs(this.options.children,this.options.childSelector,t)||[]:[t]}_toLowerCaseFirstLetter(t){return t?t.charAt(0).toLowerCase()+t.slice(1):t}_domElementToItemData(t){const e={element:t},r="A"===t.tagName?t:t.querySelector("a");if(r){e.src=r.dataset.pswpSrc||r.href,r.dataset.pswpSrcset&&(e.srcset=r.dataset.pswpSrcset),e.width=r.dataset.pswpWidth?parseInt(r.dataset.pswpWidth,10):0,e.height=r.dataset.pswpHeight?parseInt(r.dataset.pswpHeight,10):0,r.dataset.pswpType&&(e.type=r.dataset.pswpType.toLowerCase());const o=t.querySelector("img");o&&(e.msrc=o.currentSrc||o.src,e.alt=o.getAttribute("alt")??""),(r.dataset.pswpCropped||r.dataset.cropped)&&(e.thumbCropped=!0);const a=["element","src","srcset","width","height","type","msrc","alt","thumbCropped"];Object.keys(r.dataset).filter(t=>t.startsWith("pswp")&&!a.includes(this._toLowerCaseFirstLetter(t.slice(4)))).forEach(t=>{e[this._toLowerCaseFirstLetter(t.slice(4))]=r.dataset[t]})}return this.applyFilters("domItemData",e,t,r)}lazyLoadData(t,e){return ol(t,this,e)}},cl=/* @__PURE__ */t({default:()=>dl}),dl=class extends ll{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){Zs(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(t){if(Ws(t)||window.pswp)return;let e={x:t.clientX,y:t.clientY};e.x||e.y||(e=null);let r=this.getClickedIndex(t);r=this.applyFilters("clickedIndex",r,t,this);const o={gallery:t.currentTarget};r>=0&&(t.preventDefault(),this.loadAndOpen(r,o,e))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const e=t.target,r=Zs(this.options.children,this.options.childSelector,t.currentTarget).findIndex(t=>t===e||t.contains(e));return-1!==r?r:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,r){if(window.pswp||!this.options)return!1;if(!e&&this.options.gallery&&this.options.children){const t=Zs(this.options.gallery);t[0]&&(e={gallery:t[0]})}return this.options.index=t,this.options.initialPointerPos=r,this.shouldOpen=!0,this.preload(t,e),!0}preload(t,e){const{options:r}=this;e&&(r.dataSource=e);const o=[],a=typeof r.pswpModule;if(function(t){return"function"==typeof t&&t.prototype&&t.prototype.goTo}(r.pswpModule))o.push(Promise.resolve(r.pswpModule));else{if("string"===a)throw new Error("pswpModule as string is no longer supported");if("function"!==a)throw new Error("pswpModule is not valid");o.push(r.pswpModule())}"function"==typeof r.openPromise&&o.push(r.openPromise()),!1!==r.preloadFirstSlide&&t>=0&&(this._preloadedContent=al(t,this));const n=++this._uid;Promise.all(o).then(t=>{if(this.shouldOpen){const e=t[0];this._openPhotoswipe(e,n)}})}_openPhotoswipe(t,e){if(e!==this._uid&&this.shouldOpen)return;if(this.shouldOpen=!1,window.pswp)return;const r="object"==typeof t?new t.default(this.options):new t(this.options);this.pswp=r,window.pswp=r,Object.keys(this._listeners).forEach(t=>{this._listeners[t]?.forEach(e=>{r.on(t,e)})}),Object.keys(this._filters).forEach(t=>{this._filters[t]?.forEach(e=>{r.addFilter(t,e.fn,e.priority)})}),this._preloadedContent&&(r.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),r.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),r.init()}destroy(){this.pswp?.destroy(),this.shouldOpen=!1,this._listeners={},Zs(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.removeEventListener("click",this.onThumbnailsClick,!1)})}},ul=/* @__PURE__ */t({loadPhotoSwipe:()=>hl}),hl=()=>import("./SAPFe3AV.js"),pl="-createdAt",fl="qrati-global-search-sort",ml=t=>{if("undefined"==typeof window)return pl;try{const e=window.localStorage.getItem(`${fl}:${t||"default"}`);return(t=>"name"===t||"-name"===t||"createdAt"===t||"-createdAt"===t)(e)?e:pl}catch{return pl}},gl=(t,e,r)=>{const o=r.replace("-",""),a=r.startsWith("-")?-1:1;return"name"===o?a*(t.name||"").localeCompare(e.name||"",void 0,{sensitivity:"base"}):a*(t.createdAt||"").localeCompare(e.createdAt||"")},yl=t=>Array.from({length:t},(t,e)=>e),vl=()=>/* @__PURE__ */ve(T,{children:[/* @__PURE__ */ve("div",{className:"mt-4 grid grid-cols-2 gap-3 md:grid-cols-3 lg:grid-cols-4 lg:gap-6",children:yl(4).map(t=>/* @__PURE__ */ve(hi,{className:"h-24 rounded"},`folder-${t}`))}),/* @__PURE__ */ve("div",{className:"mt-4 grid grid-cols-1 gap-4 sm:grid-cols-3",children:yl(6).map(t=>/* @__PURE__ */ve("div",{className:"space-y-4",children:[/* @__PURE__ */ve(hi,{className:"h-72 overflow-hidden rounded sm:h-80"}),/* @__PURE__ */ve(hi,{className:"h-6 w-64 rounded"})]},t))})]}),bl=()=>/* @__PURE__ */ve("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3",children:yl(8).map(t=>/* @__PURE__ */ve(hi,{className:"h-72"},t))}),wl=()=>/* @__PURE__ */ve("div",{children:[
181
+ /* @__PURE__ */ve(hi,{className:"mx-auto mt-4 h-8 w-64"}),
182
+ /* @__PURE__ */ve(hi,{className:"mx-auto mt-6 h-6 w-72"}),
183
+ /* @__PURE__ */ve(hi,{className:"mx-auto mt-6 h-8 w-72"}),
184
+ /* @__PURE__ */ve("div",{className:"mt-8 grid grid-cols-1 gap-4 sm:grid-cols-3",children:yl(8).map(t=>/* @__PURE__ */ve(hi,{className:"h-72"},t))})]}),_l=()=>/* @__PURE__ */ve("div",{className:"mx-auto max-w-lg space-y-8 py-8",children:yl(4).map(t=>/* @__PURE__ */ve(hi,{className:"h-8"},t))}),xl=()=>/* @__PURE__ */ve("div",{className:"space-y-8 py-4",children:yl(2).map(t=>/* @__PURE__ */ve("div",{className:"space-y-4",children:[/* @__PURE__ */ve("div",{className:"flex items-center justify-between",children:[/* @__PURE__ */ve(hi,{className:"h-6 w-48"}),/* @__PURE__ */ve(hi,{className:"h-5 w-24"})]}),/* @__PURE__ */ve("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:yl(4).map(t=>/* @__PURE__ */ve(hi,{className:"h-52 w-full lg:h-64"},t))})]},t))}),kl=Zt(()=>import("./DjFlbVE4.js").then(t=>t.t)),Tl=(t,e,r)=>(r.startsWith("-")?-1:1)*("name"===r.replace("-","")?(t.name||"").localeCompare(e.name||"",void 0,{sensitivity:"base"}):(t.createdAt||"").localeCompare(e.createdAt||"")),El={grid:{icon:/* @__PURE__ */ve("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-full text-inherit",width:24,height:24,viewBox:"0 0 24 24",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"M5 11q-.825 0-1.412-.587T3 9V5q0-.825.588-1.412T5 3h4q.825 0 1.413.588T11 5v4q0 .825-.587 1.413T9 11zm0 10q-.825 0-1.412-.587T3 19v-4q0-.825.588-1.412T5 13h4q.825 0 1.413.588T11 15v4q0 .825-.587 1.413T9 21zm10-10q-.825 0-1.412-.587T13 9V5q0-.825.588-1.412T15 3h4q.825 0 1.413.588T21 5v4q0 .825-.587 1.413T19 11zm0 10q-.825 0-1.412-.587T13 19v-4q0-.825.588-1.412T15 13h4q.825 0 1.413.588T21 15v4q0 .825-.587 1.413T19 21zM5 9h4V5H5zm10 0h4V5h-4zm0 10h4v-4h-4zM5 19h4v-4H5zM9 9"})})},map:{icon:/* @__PURE__ */ve("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-full text-inherit",width:24,height:24,viewBox:"0 0 24 24",children:/* @__PURE__ */ve("path",{fill:"currentColor",d:"M14.35 20.775L9 18.9l-4.65 1.8q-.25.1-.488.063t-.437-.163t-.312-.337T3 19.775V5.75q0-.325.188-.575T3.7 4.8l4.65-1.575q.15-.05.313-.075T9 3.125t.338.025t.312.075L15 5.1l4.65-1.8q.25-.1.488-.062t.437.162t.313.338t.112.487V18.25q0 .325-.187.575t-.513.375l-4.65 1.575q-.15.05-.312.075t-.338.025t-.337-.025t-.313-.075M14 18.55V6.85l-4-1.4v11.7zm2 0l3-1V5.7l-3 1.15zM5 18.3l3-1.15V5.45l-3 1zM16 6.85v11.7zm-8-1.4v11.7z"})})}},Sl=Object.keys(El).map(t=>({icon:El[t].icon,value:t})),Cl=()=>{const t=(()=>{const t=we(),{props:e,loadingUser:r,user:o,authEpoch:a=0}=kn(),n=e?.organizationId,i=ft(void 0),s=o?.token,l=yt(async e=>{Jn();const o=navigator.connection?.saveData;if(n&&!o)try{const o=(await t.fetchQuery(ti(n,e)))?.event?._id;o&&!r&&await t.prefetchInfiniteQuery(Zn({organizationId:n,eventId:o,token:s,authEpoch:a}))}catch{}},[t,n,r,s,a]),c=yt(()=>window.clearTimeout(i.current),[]),d=yt(t=>{c(),i.current=window.setTimeout(()=>{l(t)},120)},[c,l]),u=yt(t=>{l(t)},[l]);return ht(()=>c,[c]),{onHover:d,onIntent:u,cancel:c}})(),e=An(),r=Mn(),o=e.folderId??"",a=kn(),{folders:n,organization:i}=a,s=a.props?.organizationId,l=!1!==i?.integrationSettings?.enableGlobalSearch,c=!0===i?.integrationSettings?.showSortControl,d=((t,e)=>{const[r,o]=dt(""),[a,n]=dt("event"),[i,s]=dt(1),[l,c]=dt(!1),[d,u]=dt(""),[h,p]=dt(!1),[f,m]=dt(()=>ml(t)),[g,y]=dt([]),[v,b]=dt([]),[w,_]=dt(null),x=Pn(),k=Mn(),T=zn(),E=ft(0),S=ft(null),C=ft(null),I=ft(null),N=ft(-1),R=ft(null),O=gt(()=>`org-inline-search-gallery-${t||"default"}`,[t]),A=yt(()=>{o(""),u(""),p(!1),s(1),y([]),b([]),_(null)},[]),P=yt((t,e)=>{s(1),u(""),p(!1),y([]),b([]),_(null),n(e),o(t)},[]),q=yt(e=>{m(e);try{window.localStorage.setItem(`${fl}:${t||"default"}`,e)}catch{}s(1),u(""),p(!1),y([]),b([]),_(null)},[t]);ht(()=>{m(ml(t))},[t]),ht(()=>{if(!t||!r)return;const e=++E.current;(async()=>{c(!0),u("");try{const o="event"===a?xa.SEARCH_EVENTS:xa.SEARCH_CONTENTS,n=await ya.get(o,{timeout:6e4,headers:{"x-org-id":t},searchParams:{query:r,page:String(i),limit:"event"===a?"12":"8",sort:f,projection:"connect",..."content"===a?{includeCounts:"false"}:{}}}).json();if(e!==E.current)return;const s=n?.data||[],l=n?.meta?.totalPages||0,c=n?.meta?.currentPage||0;if(p(n?.meta?.hasMore??c<l),"event"===a){const t=s;y(e=>1===i?t:[...e,...t])}else{_({totalContentCount:n?.meta?.totalContentCount,totalEventCount:n?.meta?.totalEventCount});const t=s;b(e=>1===i?t:[...e,...t])}}catch(o){if(e!==E.current)return;u(o?.message||"Failed to search")}finally{e===E.current&&c(!1)}})()},[t,i,f,r,a]);const z=gt(()=>{const t={};return g.forEach(e=>{const r=e.folderId||"root";t[r]||(t[r]=[]),t[r].push(e)}),Object.values(t).forEach(t=>{t.sort((t,e)=>gl(t,e,f))}),t},[g,f]),M=gt(()=>{const t=/* @__PURE__ */new Map,e=/* @__PURE__ */new Set;return v.forEach(r=>{if(!r?._id||e.has(r._id))return;e.add(r._id);const o=r.event?._id||r.eventId;o&&r.event&&(t.has(o)||t.set(o,{event:r.event,contents:[]}),t.get(o)?.contents.push({...r}))}),Array.from(t.values()).sort((t,e)=>gl(t.event,e.event,f))},[v,f]),L=gt(()=>{const t={};return M.forEach(e=>{const r=e.event?.folderId||"root";t[r]||(t[r]=[]),t[r].push(e)}),t},[M]),D=gt(()=>{const t=Object.keys("event"===a?z:L),r="event"===a?z:L;return t.sort((t,o)=>{const a=(r[t]||[]).map(t=>"event"in t?t.event:t),n=(r[o]||[]).map(t=>"event"in t?t.event:t),i=a[0]||{name:"",createdAt:""},s=n[0]||{name:"",createdAt:""};if("createdAt"===f.replace("-","")){const t=gl(i,s,f);if(0!==t)return t}const l=bi(e,t).map(t=>t.name).join("/"),c=bi(e,o).map(t=>t.name).join("/"),d=l.localeCompare(c,void 0,{sensitivity:"base"});return"name"===f.replace("-","")&&f.startsWith("-")?-d:d}),t},[L,z,e,f,a]),U=gt(()=>{if("content"!==a)return[];const t=[];return D.forEach(e=>{(L[e]||[]).forEach(e=>{e.contents.forEach(r=>{t.push({event:e.event,content:r})})})}),t},[D,L,a]),F=yt((t,e,r)=>{if(!S.current?.loadAndOpen)return;const o=U.findIndex(r=>r.event._id===t&&r.content._id===e);if(o>=0){N.current=o;const t=r?.currentTarget;I.current=t?.querySelector("img")??t??null,S.current.loadAndOpen(o)}},[U]);return ht(()=>{const t=R.current;if("content"!==a||!r||0===U.length||!t)return C.current?.destroy(),C.current=null,S.current?.destroy?.(),void(S.current=null);const e=new dl({gallery:t,children:"a.pswp-item",counter:!1,bgOpacity:1,wheelToZoom:!0,pinchToClose:!0,zoom:!1,pswpModule:hl}),o=new As(()=>window.pswp,"memory"===T?{location:k.pathname,state:k.state,push:(t,e)=>x(t,{state:e}),replace:(t,e)=>x(t,{state:e,replace:!0}),go:t=>x(t)}:void 0);return C.current=o,e.addFilter("thumbEl",(t,e,r)=>r===N.current?I.current??t:t),e.on("beforeOpen",()=>o.open()),e.on("close",()=>o.close()),S.current=e,e.init(),()=>{o.destroy(),S.current?.destroy?.(),S.current=null,C.current===o&&(C.current=null)}},[U.length,O,r,a,T,k.pathname]),ht(()=>{const t=C.current;"memory"===T&&t?.isActive()&&!Os(k.state)&&t.handleBack()},[k.state,T]),{handleSearch:P,handleSortChange:q,clearSearch:A,isSearchActive:r.length>0,submittedQuery:r,submittedSearchType:a,sort:f,isLoading:l,errorMessage:d,hasMore:h,page:i,setPage:s,eventResults:g,contentResults:v,contentMeta:w,activeFolderKeys:D,eventGroupsByFolder:z,contentGroups:M,contentGroupsByFolder:L,flattenedContentMedia:U,lightboxRef:S,galleryElementRef:R,galleryId:O,openMediaInLightbox:F}})(s,n||[]),u=d.sort||"-createdAt",h=!0===i?.integrationSettings?.enableMapView,[p,f]=dt(()=>{if(!s)return"grid";try{return sessionStorage.getItem(`qrati-view-mode-${s}`)||"grid"}catch{return"grid"}}),{data:m,isLoading:g}=Cr({queryKey:[`public-events-map-${s}`,o||"all-folders",u],enabled:h&&"map"===p,staleTime:3e5,gcTime:6e5,queryFn:async()=>{const t=o.length>0?{folderId:o,limit:500,sort:u,projection:"connect"}:{includeAllFolders:"true",limit:500,sort:u,contentLimit:3,projection:"connect"};return(await ya.get(xa.PUBLIC_EVENTS,{headers:{"x-org-id":s},searchParams:t}).json()).data??[]}}),y=gt(()=>{if("undefined"==typeof window)return null;if(r.state?.internalNavigation)return null;try{const t=new URLSearchParams(window.location?.search??"");let e=t.get("event"),r=t.get("page");if(!e&&!r&&window.location?.hash){const t=window.location.hash.split("?");if(t.length>1){const o=new URLSearchParams(t[1]);e=o.get("event"),r=o.get("page")}}if(e){if(r)switch(r.toLowerCase()){case"upload":return va.UPLOAD(e);case"curate":return va.CURATE(e);case"leaderboard":return va.LEADERBOARD(e);default:return va.GALLERY(e)}return va.GALLERY(e)}}catch(t){console.error("Error parsing URL parameters:",t)}return null},[]),v=gt(()=>[...(n??[]).filter(t=>t.parentFolderId===(o?.length>0?o:null)||t.parentFolderId===(o?.length>0?o:void 0))].sort((t,e)=>Tl(t,e,u)),[u,n,o]),b=gt(()=>bi(n,o),[n,o]),{isLoading:w,data:_,hasNextPage:x,fetchNextPage:k,isFetchingNextPage:E}=Ir({queryKey:[`public-events-${s}`,o,100,u],staleTime:6e4,gcTime:3e5,refetchOnWindowFocus:"always",initialPageParam:1,getNextPageParam:Wn,getPreviousPageParam:t=>Gn(t),queryFn:async({pageParam:t=1})=>await ya.get(xa.PUBLIC_EVENTS,{headers:{"x-org-id":s},searchParams:{folderId:o,sort:u,projection:"connect",page:t,limit:100}}).json()}),S=gt(()=>[..._?.pages?.flatMap(t=>t?.data??[])??[]].sort((t,e)=>Tl(t,e,u)),[u,_]),C=ft(null);return ht(()=>{const t=C.current;if(!t||!x)return;const e=new IntersectionObserver(t=>{t[0]?.isIntersecting&&x&&!E&&k()},{rootMargin:"200px"});return e.observe(t),()=>e.disconnect()},[x,E,k]),y?/* @__PURE__ */ve(Hn,{to:y,replace:!0}):/* @__PURE__ */ve(T,w||!i?{children:/* @__PURE__ */ve("div",{className:"min-h-screen w-full",children:[/* @__PURE__ */ve(rs,{organization:i}),/* @__PURE__ */ve(vl,{})]})}:{children:[/* @__PURE__ */ve("div",{className:"min-h-screen w-full",children:[
185
+ /* @__PURE__ */ve("div",{className:"flex items-end justify-between",children:[/* @__PURE__ */ve("div",{className:"mt-4 flex justify-end",children:h&&/* @__PURE__ */ve(ii,{className:"flex-1 lg:flex-none",selected:p,buttons:Sl,onChange:t=>(t=>{f(t);try{s&&sessionStorage.setItem(`qrati-view-mode-${s}`,t)}catch(Wl){}})(t)})}),/* @__PURE__ */ve("div",{className:"flex flex-col items-end gap-4",children:[/* @__PURE__ */ve(rs,{organization:i}),l&&/* @__PURE__ */ve(vs,{onSearch:d.handleSearch,onSortChange:d.handleSortChange,sort:d.sort,onClear:d.clearSearch,hasActiveSearch:d.isSearchActive,showSortControl:c})]})]}),d.isSearchActive&&/* @__PURE__ */ve(Ns,{folders:n||[],submittedQuery:d.submittedQuery,submittedSearchType:d.submittedSearchType,isLoading:d.isLoading,errorMessage:d.errorMessage,hasMore:d.hasMore,isSearchActive:d.isSearchActive,page:d.page,onLoadMore:()=>d.setPage(t=>t+1),onBack:d.clearSearch,eventResults:d.eventResults,contentResults:d.contentResults,contentMeta:d.contentMeta,activeFolderKeys:d.activeFolderKeys,eventGroupsByFolder:d.eventGroupsByFolder,contentGroups:d.contentGroups,contentGroupsByFolder:d.contentGroupsByFolder,flattenedContentMedia:d.flattenedContentMedia,galleryElementRef:d.galleryElementRef,galleryId:d.galleryId,openMediaInLightbox:d.openMediaInLightbox}),!d.isSearchActive&&/* @__PURE__ */ve(T,{children:["grid"===p&&o&&/* @__PURE__ */ve("div",{className:"mt-4",children:/* @__PURE__ */ve(gi,{homeLink:va.PUBLIC_EVENTS,data:b})}),"grid"===p&&v.length>0&&/* @__PURE__ */ve("div",{className:"mt-4 grid grid-cols-2 gap-3 md:grid-cols-3 lg:grid-cols-4 lg:gap-6",children:v.map(t=>/* @__PURE__ */ve($n,{to:va.FOLDER_EVENTS(String(t?._id)),children:/* @__PURE__ */ve(Yi,{folder:t},String(t._id))},String(t?._id)))}),"map"!==p&&(S?.length??0)<=0&&/* @__PURE__ */ve("div",{className:"min-h-[80vh]",children:/* @__PURE__ */ve(ui,{title:((n??[]).length??0)>0?"Empty Folder":"No Events",description:((n??[]).length??0)>0?"Browse other folders for events":"Check back later for our awesome events!",className:"mt-24 md:mt-36",iconSvg:/* @__PURE__ */ve(wi,{})})}),"map"===p&&h?/* @__PURE__ */ve(Gt,{fallback:/* @__PURE__ */ve(hi,{className:"mt-4 h-[70vh] w-full rounded-lg"}),children:/* @__PURE__ */ve(kl,{events:m??[],isLoading:g})}):(S?.length??0)>0&&/* @__PURE__ */ve(T,{children:[
186
+ /* @__PURE__ */ve("div",{className:"mt-4 grid grid-cols-1 gap-4 gap-y-6 pb-16 sm:grid-cols-2 lg:grid-cols-3",children:(S??[]).map(e=>/* @__PURE__ */ve($n,{to:va.GALLERY(String(e.slug)),onMouseEnter:()=>t.onHover(String(e.slug)),onMouseLeave:t.cancel,onFocus:()=>t.onIntent(String(e.slug)),onTouchStart:Jn,children:/* @__PURE__ */ve(Zi,{event:e})},e._id))}),
187
+ /* @__PURE__ */ve("div",{ref:C,className:"h-px w-full"}),E&&/* @__PURE__ */ve("div",{className:"mb-6 flex w-full justify-center",children:/* @__PURE__ */ve(si,{})})]})]})]}),/* @__PURE__ */ve(vi,{})]})},Il=Zt(()=>import("./ThvpIBOm.js")),Nl=Zt(()=>import("./X8kQCV14.js")),Rl=Zt(()=>import("./DMAkdDxr.js")),Ol=Zt(()=>import("./ILtcTVir.js")),Al=Zt(()=>import("./BhUO8wHu.js")),Pl=Zt(()=>import("./DnrkqfsH.js")),ql=Zt(()=>import("./DExU6-v2.js")),zl=Zt(()=>import("./CrZvMeF8.js")),Ml=Zt(()=>import("./BjDK8Ljd.js")),Ll=Zt(()=>import("./BgmJHB_q.js")),Dl=()=>{const{pathname:t}=Mn();return t.startsWith("/event/")?/* @__PURE__ */ve(wl,{}):t.startsWith("/auth/")?/* @__PURE__ */ve(_l,{}):/* @__PURE__ */ve("/my-uploads"===t?xl:vl,{})},Ul=()=>/* @__PURE__ */ve("div",{role:"status","aria-label":"Loading","aria-busy":"true",children:/* @__PURE__ */ve(Dl,{})}),Fl=({router:t="memory"})=>{const e="hash"===t.toLowerCase()?"hash":"memory";return ht(()=>{const t=()=>{Jn()};if("undefined"!=typeof requestIdleCallback){const e=requestIdleCallback(t,{timeout:1e3});return()=>cancelIdleCallback(e)}const e=setTimeout(t,1e3);return()=>clearTimeout(e)},[]),/* @__PURE__ */ve(Ln,{mode:e,children:[/* @__PURE__ */ve(Vn,{}),/* @__PURE__ */ve(Gt,{fallback:/* @__PURE__ */ve(Ul,{}),children:/* @__PURE__ */ve(Fn,{children:[
188
+ /* @__PURE__ */ve(Dn,{path:"/my-uploads",element:Ll}),
189
+ /* @__PURE__ */ve(Dn,{path:"/:folderId?",element:Cl}),
190
+ /* @__PURE__ */ve(Dn,{path:"/event/:eventSlug",element:Nl,children:[
191
+ /* @__PURE__ */ve(Dn,{path:"",element:Rl}),
192
+ /* @__PURE__ */ve(Dn,{path:"upload",element:Ml}),
193
+ /* @__PURE__ */ve(Dn,{path:"curate",element:Ol}),
194
+ /* @__PURE__ */ve(Dn,{path:"curate/:contentId",element:Ol}),
195
+ /* @__PURE__ */ve(Dn,{path:"leaderboard",element:Pl})]}),
196
+ /* @__PURE__ */ve(Dn,{path:"/auth",element:Il,children:[
197
+ /* @__PURE__ */ve(Dn,{path:"login",element:ql}),
198
+ /* @__PURE__ */ve(Dn,{path:"register",element:zl}),
199
+ /* @__PURE__ */ve(Dn,{path:"forgot-password",element:Al})]})]})})]})},jl={router:"memory",theme:"light"},$l=t=>"number"==typeof t&&!isNaN(t),Bl=t=>"string"==typeof t,Hl=t=>"function"==typeof t,Vl=t=>Bl(t)||Hl(t)?t:null,Ql=(t,e)=>!1===t||$l(t)&&t>0?t:e,Gl=t=>fe(t)||Bl(t)||Hl(t)||$l(t);function Wl({enter:t,exit:e,appendPosition:r=!1,collapse:o=!0,collapseDuration:a=300}){return function({children:n,position:i,preventExitTransition:s,done:l,nodeRef:c,isIn:d,playToast:u}){let h=r?`${t}--${i}`:t,p=r?`${e}--${i}`:e,f=ft(0);return pt(()=>{let t=c.current,e=h.split(" "),r=o=>{o.target===c.current&&(u(),t.removeEventListener("animationend",r),t.removeEventListener("animationcancel",r),0===f.current&&"animationcancel"!==o.type&&t.classList.remove(...e))};t.classList.add(...e),t.addEventListener("animationend",r),t.addEventListener("animationcancel",r)},[]),ht(()=>{let t=c.current,e=()=>{t.removeEventListener("animationend",e),o?function(t,e,r=300){let{scrollHeight:o,style:a}=t;requestAnimationFrame(()=>{a.minHeight="initial",a.height=o+"px",a.transition=`all ${r}ms`,requestAnimationFrame(()=>{a.height="0",a.padding="0",a.margin="0",setTimeout(e,r)})})}(t,l,a):l()};d||(s?e():(f.current=1,t.className+=` ${p}`,t.addEventListener("animationend",e)))},[d]),/* @__PURE__ */ge.createElement(ge.Fragment,null,n)}}function Zl(t,e){return{content:Yl(t.content,t.props),containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,reason:t.removalReason,status:e}}function Yl(t,e,r=!1){return fe(t)&&!Bl(t.type)?me(t,{closeToast:e.closeToast,toastProps:e,data:e.data,isPaused:r}):Hl(t)?t({closeToast:e.closeToast,toastProps:e,data:e.data,isPaused:r}):t}function Kl({delay:t,isRunning:e,closeToast:r,type:o="default",hide:a,className:n,controlledProgress:i,progress:s,rtl:l,isIn:c,theme:d}){let u=a||i&&0===s,h={animationDuration:`${t}ms`,animationPlayState:e?"running":"paused"};i&&(h.transform=`scaleX(${s})`);let p=nn("Toastify__progress-bar",i?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":l}),f=Hl(n)?n({rtl:l,type:o,defaultClassName:p}):nn(p,n),m={[i&&s>=1?"onTransitionEnd":"onAnimationEnd"]:i&&s<1?null:()=>{c&&r()}};/* @__PURE__ */
200
+ return ge.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":u},/* @__PURE__ */ge.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${o}`}),/* @__PURE__ */ge.createElement("div",{role:"progressbar","aria-hidden":u?"true":"false","aria-label":"notification timer","aria-valuenow":i?Math.round(100*s):void 0,"aria-valuemin":0,"aria-valuemax":100,className:f,style:h,...m}))}var Jl=1,Xl=()=>""+Jl++,tc=/* @__PURE__ */new Map,ec=[],rc=/* @__PURE__ */new Set,oc=t=>rc.forEach(e=>e(t)),ac=()=>tc.size>0;function nc(t,e){var r;if(e)return!(null==(r=tc.get(e))||!r.isToastActive(t));let o=!1;return tc.forEach(e=>{e.isToastActive(t)&&(o=!0)}),o}function ic(t,e){Gl(t)&&(ac()||ec.push({content:t,options:e}),tc.forEach(r=>{r.buildToast(t,e)}))}function sc(t){var e;null==(e=tc.get(t.containerId||1))||e.setToggle(t.id,t.fn)}function lc(t,e){tc.forEach(r=>{null!=e&&null!=e&&e.containerId&&(null==e?void 0:e.containerId)!==r.id||r.toggle(t,null==e?void 0:e.id)})}function cc(t){let e=t.containerId||1;return{subscribe(r){let o=function(t,e,r){let o=1,a=0,n=[],i=[],s=e,l=/* @__PURE__ */new Map,c=/* @__PURE__ */new Set,d=()=>{i=Array.from(l.values()),c.forEach(t=>t())},u=({containerId:e,toastId:r,updateId:o})=>{let a=e?e!==t:1!==t,n=l.has(r)&&null==o;return a||n},h=t=>{var e,o;t.isActive&&(null==(e=t.props)||null==(o=e.onClose)||o.call(e,t.removalReason),t.isActive=!1,r(Zl(t,"removed")))},p=t=>{if(null==t)l.forEach(h);else{let e=l.get(t);e&&h(e)}d()},f=t=>{var e,o;let{toastId:a,updateId:n}=t.props,i=null==n;t.staleId&&l.delete(t.staleId),t.isActive=!0,l.set(a,t),d(),r(Zl(t,i?"added":"updated")),i&&(null==(e=(o=t.props).onOpen)||e.call(o))};return{id:t,props:s,observe:t=>(c.add(t),()=>c.delete(t)),toggle:(t,e)=>{l.forEach(r=>{var o;null!=e&&e!==r.props.toastId||null==(o=r.toggle)||o.call(r,t)})},removeToast:p,toasts:l,clearQueue:()=>{a-=n.length,n=[]},buildToast:(t,e)=>{if(u(e))return;let{toastId:r,updateId:i,data:c,staleId:h,delay:m}=e,g=null==i;g&&a++;let y={...s,style:s.toastStyle,key:o++,...Object.fromEntries(Object.entries(e).filter(([t,e])=>null!=e)),toastId:r,updateId:i,data:c,isIn:!1,className:Vl(e.className||s.toastClassName),progressClassName:Vl(e.progressClassName||s.progressClassName),autoClose:!e.isLoading&&Ql(e.autoClose,s.autoClose),closeToast(t){let e=l.get(r);e&&(e.removalReason=t,p(r))},deleteToast(){null!=l.get(r)&&(l.delete(r),a--,a<0&&(a=0),n.length>0?f(n.shift()):d())}};y.closeButton=s.closeButton,!1===e.closeButton||Gl(e.closeButton)?y.closeButton=e.closeButton:!0===e.closeButton&&(y.closeButton=!Gl(s.closeButton)||s.closeButton);let v={content:t,props:y,staleId:h};s.limit&&s.limit>0&&a>s.limit&&g?n.push(v):$l(m)?setTimeout(()=>{f(v)},m):f(v)},setProps(t){s=t},setToggle:(t,e)=>{let r=l.get(t);r&&(r.toggle=e)},isToastActive:t=>{var e;return null==(e=l.get(t))?void 0:e.isActive},getSnapshot:()=>i}}(e,t,oc);tc.set(e,o);let a=o.observe(r);return ec.forEach(t=>ic(t.content,t.options)),ec=[],()=>{a(),tc.delete(e)}},setProps(t){var r;null==(r=tc.get(e))||r.setProps(t)},getSnapshot(){var t;return null==(t=tc.get(e))?void 0:t.getSnapshot()}}}function dc(t){return t&&(Bl(t.toastId)||$l(t.toastId))?t.toastId:Xl()}function uc(t,e){return ic(t,e),e.toastId}function hc(t,e){return{...e,type:e&&e.type||t,toastId:dc(e)}}function pc(t){return(e,r)=>uc(e,hc(t,r))}function fc(t,e){return uc(t,hc("default",e))}function mc(t){let[e,r]=dt(!1),[o,a]=dt(!1),n=ft(null),i=ft({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:c,onClick:d,closeOnClick:u}=t;function h(){r(!0)}function p(){r(!1)}function f(r){let o=n.current;if(i.canDrag&&o){i.didMove=!0,e&&p(),"x"===t.draggableDirection?i.delta=r.clientX-i.start:i.delta=r.clientY-i.start,i.start!==r.clientX&&(i.canCloseOnClick=!1);let a="x"===t.draggableDirection?`${i.delta}px, var(--y)`:`0, calc(${i.delta}px + var(--y))`;o.style.transform=`translate3d(${a},0)`,o.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance))}}function m(){document.removeEventListener("pointermove",f),document.removeEventListener("pointerup",m);let e=n.current;if(i.canDrag&&i.didMove&&e){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return a(!0),t.closeToast(!0),void t.collapseAll();e.style.transition="transform 0.2s, opacity 0.2s",e.style.removeProperty("transform"),e.style.removeProperty("opacity")}}sc({id:t.toastId,containerId:t.containerId,fn:r}),ht(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||p(),window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}},[t.pauseOnFocusLoss]);let g={onPointerDown:function(e){if(!0===t.draggable||t.draggable===e.pointerType){i.didMove=!1,document.addEventListener("pointermove",f),document.addEventListener("pointerup",m);let r=n.current;i.canCloseOnClick=!0,i.canDrag=!0,r.style.transition="none","x"===t.draggableDirection?(i.start=e.clientX,i.removalDistance=r.offsetWidth*(t.draggablePercent/100)):(i.start=e.clientY,i.removalDistance=r.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(e){let{top:r,bottom:o,left:a,right:i}=n.current.getBoundingClientRect();"mouse"===e.pointerType&&t.pauseOnHover&&e.clientX>=a&&e.clientX<=i&&e.clientY>=r&&e.clientY<=o?p():h()}};return s&&l&&(g.onMouseEnter=p,t.stacked||(g.onMouseLeave=h)),u&&(g.onClick=t=>{d&&d(t),i.canCloseOnClick&&c(!0)}),{playToast:h,pauseToast:p,isRunning:e,preventExitTransition:o,toastRef:n,eventHandlers:g}}fc.loading=(t,e)=>uc(t,hc("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),fc.promise=function(t,{pending:e,error:r,success:o},a){let n;e&&(n=Bl(e)?fc.loading(e,a):fc.loading(e.render,{...a,...e}));let i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(t,e,r)=>{if(null==e)return void fc.dismiss(n);let o={type:t,...i,...a,data:r},s=Bl(e)?{render:e}:e;return n?fc.update(n,{...o,...s}):fc(s.render,{...o,...s}),r},l=Hl(t)?t():t;return l.then(t=>s("success",o,t)).catch(t=>s("error",r,t)),l},fc.success=pc("success"),fc.info=pc("info"),fc.error=pc("error"),fc.warning=pc("warning"),fc.warn=fc.warning,fc.dark=(t,e)=>uc(t,hc("default",{theme:"dark",...e})),fc.dismiss=function(t){!function(t){if(ac()){if(null==t||(t=>Bl(t)||$l(t))(t))tc.forEach(e=>{e.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){let e=tc.get(t.containerId);e?e.removeToast(t.id):tc.forEach(e=>{e.removeToast(t.id)})}}else ec=ec.filter(e=>null!=t&&e.options.toastId!==t)}(t)},fc.clearWaitingQueue=(t={})=>{tc.forEach(e=>{e.props.limit&&(!t.containerId||e.id===t.containerId)&&e.clearQueue()})},fc.isActive=nc,fc.update=(t,e={})=>{let r=((t,{containerId:e})=>{var r;return null==(r=tc.get(e||1))?void 0:r.toasts.get(t)})(t,e);if(r){let{props:o,content:a}=r,n={delay:100,...o,...e,toastId:e.toastId||t,updateId:Xl()};n.toastId!==t&&(n.staleId=t);let i=n.render||a;delete n.render,uc(i,n)}},fc.done=t=>{fc.update(t,{progress:1})},fc.onChange=function(t){return rc.add(t),()=>{rc.delete(t)}},fc.play=t=>lc(!0,t),fc.pause=t=>lc(!1,t);var gc=typeof window<"u"?pt:ht,yc=({theme:t,type:e,isLoading:r,...o})=>/* @__PURE__ */ge.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${e})`,...o}),vc={info:function(t){/* @__PURE__ */
201
+ return ge.createElement(yc,t,/* @__PURE__ */ge.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){/* @__PURE__ */
202
+ return ge.createElement(yc,t,/* @__PURE__ */ge.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){/* @__PURE__ */
203
+ return ge.createElement(yc,t,/* @__PURE__ */ge.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){/* @__PURE__ */
204
+ return ge.createElement(yc,t,/* @__PURE__ */ge.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){/* @__PURE__ */
205
+ return ge.createElement("div",{className:"Toastify__spinner"})}};var bc=(t,e=!1)=>({enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}),wc=({children:t,isIn:e,done:r,playToast:o})=>(pt(()=>{o()},[]),ht(()=>{e||r()},[e]),/* @__PURE__ */ge.createElement(ge.Fragment,null,t)),_c=Wl(bc("bounce",!0)),xc=(Wl(bc("slide",!0)),Wl(bc("zoom")),Wl(bc("flip")),t=>{let{isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:a,playToast:n}=mc(t),{closeButton:i,children:s,autoClose:l,onClick:c,type:d,hideProgressBar:u,closeToast:h,transition:p,position:f,className:m,style:g,progressClassName:y,updateId:v,role:b,progress:w,rtl:_,toastId:x,deleteToast:k,isIn:T,isLoading:E,closeOnClick:S,theme:C,ariaLabel:I}=t,N=nn("Toastify__toast",`Toastify__toast-theme--${C}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":S}),R=Hl(m)?m({rtl:_,position:f,type:d,defaultClassName:N}):nn(N,m),O=function({theme:t,type:e,isLoading:r,icon:o}){let a=null,n={theme:t,type:e};return!1===o||(Hl(o)?a=o({...n,isLoading:r}):fe(o)?a=me(o,n):r?a=vc.spinner():(t=>t in vc)(e)&&(a=vc[e](n))),a}(t),A=p||wc,P=!!w||!l,q={closeToast:h,type:d,theme:C},z=null;return!1===i||(z=Hl(i)?i(q):fe(i)?me(i,q):function({closeToast:t,theme:e,ariaLabel:r="close"}){/* @__PURE__ */
206
+ return ge.createElement("button",{className:`Toastify__close-button Toastify__close-button--${e}`,type:"button",onClick:e=>{e.stopPropagation(),t(!0)},"aria-label":r},/* @__PURE__ */ge.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},/* @__PURE__ */ge.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(q)),/* @__PURE__ */ge.createElement(A,{isIn:T,done:k,position:f,preventExitTransition:r,nodeRef:o,playToast:n},/* @__PURE__ */ge.createElement("div",{id:x,tabIndex:0,onClick:c,"data-in":T,className:R,...a,style:g,ref:o,...T&&{role:b,"aria-label":I}},null!=O&&/* @__PURE__ */ge.createElement("div",{className:nn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!E})},O),Yl(s,t,!e),z,!t.customProgressBar&&/* @__PURE__ */ge.createElement(Kl,{...v&&!P?{key:`p-${v}`}:{},rtl:_,theme:C,delay:l,isRunning:e,isIn:T,closeToast:h,hide:u,type:d,className:y,controlledProgress:P,progress:w||0})))}),kc={position:"top-right",transition:_c,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:t=>t.altKey&&"KeyT"===t.code};function Tc(t){let e={...kc,...t},r=t.stacked,[o,a]=dt(!0),n=ft(null),{getToastToRender:i,isToastActive:s,count:l}=function(t){var e;let{subscribe:r,getSnapshot:o,setProps:a}=ft(cc(t)).current;a(t);let n=null==(e=Rt(r,o))?void 0:e.slice();return{getToastToRender:function(e){if(!n)return[];let r=/* @__PURE__ */new Map;return t.newestOnTop&&n.reverse(),n.forEach(t=>{let{position:e}=t.props;r.has(e)||r.set(e,[]),r.get(e).push(t)}),Array.from(r,t=>e(t[0],t[1]))},isToastActive:nc,count:null==n?void 0:n.length}}(e),{className:c,style:d,rtl:u,containerId:h,hotKeys:p}=e;function f(t){let e=nn("Toastify__toast-container",`Toastify__toast-container--${t}`,{"Toastify__toast-container--rtl":u});return Hl(c)?c({position:t,rtl:u,defaultClassName:e}):nn(e,Vl(c))}function m(){r&&(a(!0),fc.play())}return gc(()=>{if(r){var t;let r=n.current.querySelectorAll('[data-in="true"]'),a=null==(t=e.position)?void 0:t.includes("top"),i=0,s=0;Array.from(r).reverse().forEach((t,e)=>{let r=t;r.classList.add("Toastify__toast--stacked"),e>0&&(r.dataset.collapsed=`${o}`),r.dataset.pos||(r.dataset.pos=a?"top":"bot");let n=i*(o?.2:1)+(o?0:12*e),l=Math.max(.5,1-(o?s:0));r.style.setProperty("--y",`${a?n:-1*n}px`),r.style.setProperty("--g","12"),r.style.setProperty("--s",`${l}`),i+=r.offsetHeight,s+=.025})}},[o,l,r]),ht(()=>{function t(t){let e=n.current;var r;p(t)&&(null==e||null==(r=e.querySelector('[tabIndex="0"]'))||r.focus(),a(!1),fc.pause()),"Escape"===t.key&&(document.activeElement===e||null!=e&&e.contains(document.activeElement))&&(a(!0),fc.play())}return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[p]),/* @__PURE__ */ge.createElement("section",{ref:n,className:"Toastify",id:h,onMouseEnter:()=>{r&&(a(!1),fc.pause())},onMouseLeave:m,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":e["aria-label"]},i((t,e)=>{let o=e.length?{...d}:{...d,pointerEvents:"none"};/* @__PURE__ */
207
+ return ge.createElement("div",{tabIndex:-1,className:f(t),"data-stacked":r,style:o,key:`c-${t}`},e.map(({content:t,props:e})=>/* @__PURE__ */ge.createElement(xc,{...e,stacked:r,collapseAll:m,isIn:s(e.toastId,e.containerId),key:`t-${e.key}`},t)))}))}var Ec=/* @__PURE__ */new Map;function Sc(t){return((t,e,r=!1)=>{gc(()=>{if(!t||typeof document>"u")return;let o=document,a=Ec.get(o);if(a)return void(e&&a.setAttribute("nonce",e));let n=o.createElement("style");n.textContent=t,e&&n.setAttribute("nonce",e),r?o.head.appendChild(n):o.head.prepend(n),Ec.set(o,n)},[e])})(":root {\n --toastify-color-light: #fff;\n --toastify-color-dark: #121212;\n --toastify-color-info: #3498db;\n --toastify-color-success: #07bc0c;\n --toastify-color-warning: #f1c40f;\n --toastify-color-error: hsl(6, 78%, 57%);\n --toastify-color-transparent: rgba(255, 255, 255, 0.7);\n\n --toastify-icon-color-info: var(--toastify-color-info);\n --toastify-icon-color-success: var(--toastify-color-success);\n --toastify-icon-color-warning: var(--toastify-color-warning);\n --toastify-icon-color-error: var(--toastify-color-error);\n\n --toastify-container-width: fit-content;\n --toastify-toast-width: 320px;\n --toastify-toast-offset: 16px;\n --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));\n --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));\n --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));\n --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));\n --toastify-toast-background: #fff;\n --toastify-toast-padding: 14px;\n --toastify-toast-min-height: 64px;\n --toastify-toast-max-height: 800px;\n --toastify-toast-bd-radius: 6px;\n --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);\n --toastify-font-family: sans-serif;\n --toastify-z-index: 9999;\n --toastify-text-color-light: #757575;\n --toastify-text-color-dark: #fff;\n\n /* Used only for colored theme */\n --toastify-text-color-info: #fff;\n --toastify-text-color-success: #fff;\n --toastify-text-color-warning: #fff;\n --toastify-text-color-error: #fff;\n\n --toastify-spinner-color: #616161;\n --toastify-spinner-color-empty-area: #e0e0e0;\n --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);\n --toastify-color-progress-dark: #bb86fc;\n --toastify-color-progress-info: var(--toastify-color-info);\n --toastify-color-progress-success: var(--toastify-color-success);\n --toastify-color-progress-warning: var(--toastify-color-warning);\n --toastify-color-progress-error: var(--toastify-color-error);\n /* used to control the opacity of the progress trail */\n --toastify-color-progress-bgo: 0.2;\n}\n\n.Toastify__toast-container {\n z-index: var(--toastify-z-index);\n -webkit-transform: translate3d(0, 0, var(--toastify-z-index));\n position: fixed;\n width: var(--toastify-container-width);\n box-sizing: border-box;\n color: #fff;\n display: flex;\n flex-direction: column;\n}\n\n.Toastify__toast-container--top-left {\n top: var(--toastify-toast-top);\n left: var(--toastify-toast-left);\n}\n.Toastify__toast-container--top-center {\n top: var(--toastify-toast-top);\n left: 50%;\n transform: translateX(-50%);\n align-items: center;\n}\n.Toastify__toast-container--top-right {\n top: var(--toastify-toast-top);\n right: var(--toastify-toast-right);\n align-items: end;\n}\n.Toastify__toast-container--bottom-left {\n bottom: var(--toastify-toast-bottom);\n left: var(--toastify-toast-left);\n}\n.Toastify__toast-container--bottom-center {\n bottom: var(--toastify-toast-bottom);\n left: 50%;\n transform: translateX(-50%);\n align-items: center;\n}\n.Toastify__toast-container--bottom-right {\n bottom: var(--toastify-toast-bottom);\n right: var(--toastify-toast-right);\n align-items: end;\n}\n\n.Toastify__toast {\n --y: 0px;\n position: relative;\n touch-action: none;\n width: var(--toastify-toast-width);\n min-height: var(--toastify-toast-min-height);\n box-sizing: border-box;\n margin-bottom: 1rem;\n padding: var(--toastify-toast-padding);\n border-radius: var(--toastify-toast-bd-radius);\n box-shadow: var(--toastify-toast-shadow);\n max-height: var(--toastify-toast-max-height);\n font-family: var(--toastify-font-family);\n /* webkit only issue #791 */\n z-index: 0;\n /* inner swag */\n display: flex;\n flex: 1 auto;\n align-items: center;\n word-break: break-word;\n}\n\n@media only screen and (max-width: 480px) {\n .Toastify__toast-container {\n width: 100vw;\n left: env(safe-area-inset-left);\n margin: 0;\n }\n .Toastify__toast-container--top-left,\n .Toastify__toast-container--top-center,\n .Toastify__toast-container--top-right {\n top: env(safe-area-inset-top);\n transform: translateX(0);\n }\n .Toastify__toast-container--bottom-left,\n .Toastify__toast-container--bottom-center,\n .Toastify__toast-container--bottom-right {\n bottom: env(safe-area-inset-bottom);\n transform: translateX(0);\n }\n .Toastify__toast-container--rtl {\n right: env(safe-area-inset-right);\n left: initial;\n }\n .Toastify__toast {\n --toastify-toast-width: 100%;\n margin-bottom: 0;\n border-radius: 0;\n }\n}\n\n.Toastify__toast-container[data-stacked='true'] {\n width: var(--toastify-toast-width);\n}\n\n@media only screen and (max-width: 480px) {\n .Toastify__toast-container[data-stacked='true'] {\n width: 100vw;\n }\n}\n\n.Toastify__toast--stacked {\n position: absolute;\n width: 100%;\n transform: translate3d(0, var(--y), 0) scale(var(--s));\n transition: transform 0.3s;\n}\n\n.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,\n.Toastify__toast--stacked[data-collapsed] .Toastify__close-button {\n transition: opacity 0.1s;\n}\n\n.Toastify__toast--stacked[data-collapsed='false'] {\n overflow: visible;\n}\n\n.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {\n opacity: 0;\n}\n\n.Toastify__toast--stacked:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n height: calc(var(--g) * 1px);\n bottom: 100%;\n}\n\n.Toastify__toast--stacked[data-pos='top'] {\n top: 0;\n}\n\n.Toastify__toast--stacked[data-pos='bot'] {\n bottom: 0;\n}\n\n.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {\n transform-origin: top;\n}\n\n.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {\n transform-origin: bottom;\n}\n\n.Toastify__toast--stacked:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n transform: scaleY(3);\n z-index: -1;\n}\n\n.Toastify__toast--rtl {\n direction: rtl;\n}\n\n.Toastify__toast--close-on-click {\n cursor: pointer;\n}\n\n.Toastify__toast-icon {\n margin-inline-end: 10px;\n width: 22px;\n flex-shrink: 0;\n display: flex;\n}\n\n.Toastify--animate {\n animation-fill-mode: both;\n animation-duration: 0.5s;\n}\n\n.Toastify--animate-icon {\n animation-fill-mode: both;\n animation-duration: 0.3s;\n}\n\n.Toastify__toast-theme--dark {\n background: var(--toastify-color-dark);\n color: var(--toastify-text-color-dark);\n}\n\n.Toastify__toast-theme--light {\n background: var(--toastify-color-light);\n color: var(--toastify-text-color-light);\n}\n\n.Toastify__toast-theme--auto {\n background: var(--toastify-color-light);\n color: var(--toastify-text-color-light);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--default {\n background: var(--toastify-color-light);\n color: var(--toastify-text-color-light);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--info {\n color: var(--toastify-text-color-info);\n background: var(--toastify-color-info);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--success {\n color: var(--toastify-text-color-success);\n background: var(--toastify-color-success);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--warning {\n color: var(--toastify-text-color-warning);\n background: var(--toastify-color-warning);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--error {\n color: var(--toastify-text-color-error);\n background: var(--toastify-color-error);\n}\n\n.Toastify__progress-bar-theme--light {\n background: var(--toastify-color-progress-light);\n}\n\n.Toastify__progress-bar-theme--dark {\n background: var(--toastify-color-progress-dark);\n}\n\n.Toastify__progress-bar-theme--auto {\n background: var(--toastify-color-progress-light);\n}\n\n.Toastify__progress-bar--info {\n background: var(--toastify-color-progress-info);\n}\n\n.Toastify__progress-bar--success {\n background: var(--toastify-color-progress-success);\n}\n\n.Toastify__progress-bar--warning {\n background: var(--toastify-color-progress-warning);\n}\n\n.Toastify__progress-bar--error {\n background: var(--toastify-color-progress-error);\n}\n\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {\n background: var(--toastify-color-transparent);\n}\n\n.Toastify__close-button {\n color: #fff;\n position: absolute;\n top: 6px;\n right: 6px;\n background: transparent;\n outline: none;\n border: none;\n padding: 0;\n cursor: pointer;\n opacity: 0.7;\n transition: 0.3s ease;\n z-index: 1;\n}\n\n.Toastify__toast--rtl .Toastify__close-button {\n left: 6px;\n right: unset;\n}\n\n.Toastify__close-button--light {\n color: #000;\n opacity: 0.3;\n}\n\n.Toastify__close-button--auto {\n color: #000;\n opacity: 0.3;\n}\n\n@media (prefers-color-scheme: dark) {\n .Toastify__toast-theme--auto {\n background: var(--toastify-color-dark);\n color: var(--toastify-text-color-dark);\n }\n\n .Toastify__progress-bar-theme--auto {\n background: var(--toastify-color-progress-dark);\n }\n\n .Toastify__close-button--auto {\n color: #fff;\n opacity: 0.7;\n }\n}\n\n.Toastify__close-button > svg {\n fill: currentColor;\n height: 16px;\n width: 14px;\n}\n\n.Toastify__close-button:hover,\n.Toastify__close-button:focus {\n opacity: 1;\n}\n\n@keyframes Toastify__trackProgress {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\n}\n\n.Toastify__progress-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1;\n opacity: 0.7;\n transform-origin: left;\n}\n\n.Toastify__progress-bar--animated {\n animation: Toastify__trackProgress linear 1 forwards;\n}\n\n.Toastify__progress-bar--controlled {\n transition: transform 0.2s;\n}\n\n.Toastify__progress-bar--rtl {\n right: 0;\n left: initial;\n transform-origin: right;\n border-bottom-left-radius: initial;\n}\n\n.Toastify__progress-bar--wrp {\n position: absolute;\n overflow: hidden;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 5px;\n border-bottom-left-radius: var(--toastify-toast-bd-radius);\n border-bottom-right-radius: var(--toastify-toast-bd-radius);\n}\n\n.Toastify__progress-bar--wrp[data-hidden='true'] {\n opacity: 0;\n}\n\n.Toastify__progress-bar--bg {\n opacity: var(--toastify-color-progress-bgo);\n width: 100%;\n height: 100%;\n}\n\n.Toastify__spinner {\n width: 20px;\n height: 20px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: var(--toastify-spinner-color-empty-area);\n border-right-color: var(--toastify-spinner-color);\n animation: Toastify__spin 0.65s linear infinite;\n}\n\n@keyframes Toastify__bounceInRight {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(-25px, 0, 0);\n }\n 75% {\n transform: translate3d(10px, 0, 0);\n }\n 90% {\n transform: translate3d(-5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutRight {\n 20% {\n opacity: 1;\n transform: translate3d(-20px, var(--y), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(2000px, var(--y), 0);\n }\n}\n\n@keyframes Toastify__bounceInLeft {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(-3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(25px, 0, 0);\n }\n 75% {\n transform: translate3d(-10px, 0, 0);\n }\n 90% {\n transform: translate3d(5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutLeft {\n 20% {\n opacity: 1;\n transform: translate3d(20px, var(--y), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(-2000px, var(--y), 0);\n }\n}\n\n@keyframes Toastify__bounceInUp {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(0, 3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n 75% {\n transform: translate3d(0, 10px, 0);\n }\n 90% {\n transform: translate3d(0, -5px, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n\n@keyframes Toastify__bounceOutUp {\n 20% {\n transform: translate3d(0, calc(var(--y) - 10px), 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, calc(var(--y) + 20px), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, -2000px, 0);\n }\n}\n\n@keyframes Toastify__bounceInDown {\n from,\n 60%,\n 75%,\n 90%,\n to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(0, -3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, 25px, 0);\n }\n 75% {\n transform: translate3d(0, -10px, 0);\n }\n 90% {\n transform: translate3d(0, 5px, 0);\n }\n to {\n transform: none;\n }\n}\n\n@keyframes Toastify__bounceOutDown {\n 20% {\n transform: translate3d(0, calc(var(--y) - 10px), 0);\n }\n 40%,\n 45% {\n opacity: 1;\n transform: translate3d(0, calc(var(--y) + 20px), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, 2000px, 0);\n }\n}\n\n.Toastify__bounce-enter--top-left,\n.Toastify__bounce-enter--bottom-left {\n animation-name: Toastify__bounceInLeft;\n}\n\n.Toastify__bounce-enter--top-right,\n.Toastify__bounce-enter--bottom-right {\n animation-name: Toastify__bounceInRight;\n}\n\n.Toastify__bounce-enter--top-center {\n animation-name: Toastify__bounceInDown;\n}\n\n.Toastify__bounce-enter--bottom-center {\n animation-name: Toastify__bounceInUp;\n}\n\n.Toastify__bounce-exit--top-left,\n.Toastify__bounce-exit--bottom-left {\n animation-name: Toastify__bounceOutLeft;\n}\n\n.Toastify__bounce-exit--top-right,\n.Toastify__bounce-exit--bottom-right {\n animation-name: Toastify__bounceOutRight;\n}\n\n.Toastify__bounce-exit--top-center {\n animation-name: Toastify__bounceOutUp;\n}\n\n.Toastify__bounce-exit--bottom-center {\n animation-name: Toastify__bounceOutDown;\n}\n\n@keyframes Toastify__zoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n 50% {\n opacity: 1;\n }\n}\n\n@keyframes Toastify__zoomOut {\n from {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);\n }\n to {\n opacity: 0;\n }\n}\n\n.Toastify__zoom-enter {\n animation-name: Toastify__zoomIn;\n}\n\n.Toastify__zoom-exit {\n animation-name: Toastify__zoomOut;\n}\n\n@keyframes Toastify__flipIn {\n from {\n transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n animation-timing-function: ease-in;\n opacity: 0;\n }\n 40% {\n transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n animation-timing-function: ease-in;\n }\n 60% {\n transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n opacity: 1;\n }\n 80% {\n transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n }\n to {\n transform: perspective(400px);\n }\n}\n\n@keyframes Toastify__flipOut {\n from {\n transform: translate3d(0, var(--y), 0) perspective(400px);\n }\n 30% {\n transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);\n opacity: 1;\n }\n to {\n transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);\n opacity: 0;\n }\n}\n\n.Toastify__flip-enter {\n animation-name: Toastify__flipIn;\n}\n\n.Toastify__flip-exit {\n animation-name: Toastify__flipOut;\n}\n\n@keyframes Toastify__slideInRight {\n from {\n transform: translate3d(110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInLeft {\n from {\n transform: translate3d(-110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInUp {\n from {\n transform: translate3d(0, 110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideInDown {\n from {\n transform: translate3d(0, -110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutRight {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(110%, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutLeft {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(-110%, var(--y), 0);\n }\n}\n\n@keyframes Toastify__slideOutDown {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, 500px, 0);\n }\n}\n\n@keyframes Toastify__slideOutUp {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, -500px, 0);\n }\n}\n\n.Toastify__slide-enter--top-left,\n.Toastify__slide-enter--bottom-left {\n animation-name: Toastify__slideInLeft;\n}\n\n.Toastify__slide-enter--top-right,\n.Toastify__slide-enter--bottom-right {\n animation-name: Toastify__slideInRight;\n}\n\n.Toastify__slide-enter--top-center {\n animation-name: Toastify__slideInDown;\n}\n\n.Toastify__slide-enter--bottom-center {\n animation-name: Toastify__slideInUp;\n}\n\n.Toastify__slide-exit--top-left,\n.Toastify__slide-exit--bottom-left {\n animation-name: Toastify__slideOutLeft;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--top-right,\n.Toastify__slide-exit--bottom-right {\n animation-name: Toastify__slideOutRight;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--top-center {\n animation-name: Toastify__slideOutUp;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n.Toastify__slide-exit--bottom-center {\n animation-name: Toastify__slideOutDown;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n@keyframes Toastify__spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n",t.nonce,t.appendStyleSheet),/* @__PURE__ */ge.createElement(Tc,t)}var Cc=new kr({defaultOptions:{queries:{retry:(t,e)=>{if(t>=1)return!1;const r=String(e?.message??"");return!/timed out|status code 4\d\d/i.test(r)},retryDelay:500}}});function Ic(t){const{organizationId:e,router:r=jl.router,theme:o=jl.theme,onError:a}=t;return ht(()=>{try{if(!e)throw new Error("organizationId is required")}catch(t){const e=t instanceof Error?t:new Error(String(t));a?.(e);try{window.dispatchEvent(new CustomEvent("qrati-error",{detail:{error:e}}))}catch{}}},[e,a]),/* @__PURE__ */ve(Nr,{onError:a,children:/* @__PURE__ */ve("div",{class:`qrati-connect qrati-connect--${o} w-full`,"data-router":r,"data-organization-id":e,children:/* @__PURE__ */ve(_e,{client:Cc,children:/* @__PURE__ */ve(xn,{props:t,children:/* @__PURE__ */ve(Nr,{onError:a,children:[/* @__PURE__ */ve(Fl,{router:r}),/* @__PURE__ */ve(Sc,{"aria-label":"Notifications",position:"bottom-right"})]})})})})})}var Nc=".pswp,.pswp:focus,.pswp__icn:focus{outline:0}.pswp,.pswp__button,.pswp__icn,.pswp__item,.pswp__scroll-wrap{overflow:hidden}.pswp{--pswp-bg:#000;--pswp-placeholder-bg:#222;--pswp-root-z-index:100000;--pswp-preloader-color:#4f4f4f66;--pswp-preloader-color-secondary:#ffffffe6;--pswp-icon-color:#fff;--pswp-icon-color-secondary:#4f4f4f;--pswp-icon-stroke-color:#4f4f4f;--pswp-icon-stroke-width:2px;--pswp-error-text-color:var(--pswp-icon-color);width:100%;height:100%;z-index:var(--pswp-root-z-index);touch-action:none;opacity:.003;contain:layout style size;-webkit-tap-highlight-color:transparent;display:none;position:fixed;top:0;left:0}.pswp *{box-sizing:border-box}.pswp img{max-width:none}.pswp--open{display:block}.pswp,.pswp__bg{will-change:opacity;transform:translateZ(0)}.pswp__bg{opacity:.005;background:var(--pswp-bg);z-index:-2}.pswp__bg,.pswp__container,.pswp__content,.pswp__img,.pswp__item,.pswp__scroll-wrap,.pswp__zoom-wrap{width:100%;height:100%;position:absolute;top:0;left:0}.pswp__img,.pswp__zoom-wrap{width:auto;height:auto}.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img{cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,.pswp__img{cursor:-webkit-zoom-out;cursor:-moz-zoom-out;cursor:zoom-out}.pswp__button,.pswp__container,.pswp__counter,.pswp__img{-webkit-user-select:none;user-select:none}.pswp__item{z-index:1}.pswp__hidden{display:none!important}.pswp__content{pointer-events:none}.pswp__content>*{pointer-events:auto}.pswp__error-msg-container{display:grid}.pswp__error-msg{color:var(--pswp-error-text-color);margin:auto;font-size:1em;line-height:1}.pswp .pswp__hide-on-close{opacity:.005;will-change:opacity;transition:opacity var(--pswp-transition-duration) cubic-bezier(.4, 0, .22, 1);z-index:10;pointer-events:none}.pswp--ui-visible .pswp__hide-on-close{opacity:1;pointer-events:auto}.pswp__button{cursor:pointer;width:50px;height:60px;box-shadow:none;opacity:.85;-webkit-appearance:none;-webkit-touch-callout:none;background:0 0;border:0;margin:0;padding:0;display:block;position:relative}.pswp__button:active,.pswp__button:focus,.pswp__button:hover{box-shadow:none;opacity:1;background:0 0;border:0;padding:0;transition:none}.pswp__button:disabled{opacity:.3;cursor:auto}.pswp__icn{fill:var(--pswp-icon-color);color:var(--pswp-icon-color-secondary);pointer-events:none;width:32px;height:32px;position:absolute;top:14px;left:9px}.pswp__icn-shadow{stroke:var(--pswp-icon-stroke-color);stroke-width:var(--pswp-icon-stroke-width);fill:none}.pswp__img--with-bg,div.pswp__img--placeholder{background:var(--pswp-placeholder-bg)}.pswp__top-bar{z-index:10;flex-direction:row;justify-content:flex-end;width:100%;height:60px;display:flex;position:absolute;top:0;left:0;pointer-events:none!important}.pswp--one-slide .pswp__button--arrow,.pswp--zoomed-in .pswp__zoom-icn-bar-v,.pswp__button--zoom,.pswp__button--image-search-button{display:none}.pswp__top-bar>*{pointer-events:auto;will-change:opacity}.pswp__button--close{margin-right:6px}.pswp__button--arrow{width:75px;height:100px;margin-top:-50px;position:absolute;top:50%}.pswp__button--arrow:disabled{cursor:default;display:none}.pswp__button--arrow .pswp__icn{background:0 0;border-radius:0;width:60px;height:60px;margin-top:-30px;top:50%}.pswp--touch .pswp__button--arrow{visibility:hidden}.pswp--has_mouse .pswp__button--arrow{visibility:visible}.pswp__button--arrow--prev{left:0;right:auto}.pswp__button--arrow--next{right:0}.pswp__button--arrow--next .pswp__icn{left:auto;right:14px;transform:scaleX(-1)}.pswp--zoom-allowed .pswp__button--zoom,.pswp--image-search-allowed .pswp__button--image-search-button{display:block}.pswp__button--image-search-button .pswp__icn{width:20px;height:20px;top:20px;left:15px}.pswp__preloader{width:50px;height:60px;margin-right:auto;position:relative;overflow:hidden}.pswp__preloader .pswp__icn{opacity:0;transition:opacity .2s linear;animation:.6s linear infinite pswp-clockwise}.pswp__preloader--active .pswp__icn{opacity:.85}@keyframes pswp-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pswp__counter{margin-top:15px;height:30px;color:var(--pswp-icon-color);text-shadow:1px 1px 3px var(--pswp-icon-color-secondary);opacity:.85;margin-inline-start:20px;font-size:14px;line-height:30px}.pswp--one-slide .pswp__counter{display:none}#pswp-caption-container{background:0 0!important}",Rc=(':root{--toastify-color-light:#fff;--toastify-color-dark:#121212;--toastify-color-info:#3498db;--toastify-color-success:#07bc0c;--toastify-color-warning:#f1c40f;--toastify-color-error:#e74d3c;--toastify-color-transparent:#ffffffb3;--toastify-icon-color-info:var(--toastify-color-info);--toastify-icon-color-success:var(--toastify-color-success);--toastify-icon-color-warning:var(--toastify-color-warning);--toastify-icon-color-error:var(--toastify-color-error);--toastify-container-width:fit-content;--toastify-toast-width:320px;--toastify-toast-offset:16px;--toastify-toast-top:max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right:max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left:max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom:max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background:#fff;--toastify-toast-padding:14px;--toastify-toast-min-height:64px;--toastify-toast-max-height:800px;--toastify-toast-bd-radius:6px;--toastify-toast-shadow:0px 4px 12px #0000001a;--toastify-font-family:sans-serif;--toastify-z-index:9999;--toastify-text-color-light:#757575;--toastify-text-color-dark:#fff;--toastify-text-color-info:#fff;--toastify-text-color-success:#fff;--toastify-text-color-warning:#fff;--toastify-text-color-error:#fff;--toastify-spinner-color:#616161;--toastify-spinner-color-empty-area:#e0e0e0;--toastify-color-progress-light:linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark:#bb86fc;--toastify-color-progress-info:var(--toastify-color-info);--toastify-color-progress-success:var(--toastify-color-success);--toastify-color-progress-warning:var(--toastify-color-warning);--toastify-color-progress-error:var(--toastify-color-error);--toastify-color-progress-bgo:.2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0, 0, var(--toastify-z-index));width:var(--toastify-container-width);box-sizing:border-box;color:#fff;flex-direction:column;display:flex;position:fixed}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);align-items:center;left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);align-items:center;left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y:0px;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;word-break:break-word;flex:auto;align-items:center;margin-bottom:1rem;display:flex;position:relative}@media only screen and (width<=480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width:100%;border-radius:0;margin-bottom:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}@media only screen and (width<=480px){.Toastify__toast-container[data-stacked=true]{width:100vw}}.Toastify__toast--stacked{width:100%;transform:translate3d(0, var(--y), 0) scale(var(--s));transition:transform .3s;position:absolute}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";height:calc(var(--g) * 1px);position:absolute;bottom:100%;left:0;right:0}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";z-index:-1;height:100%;position:absolute;bottom:0;left:0;right:0;transform:scaleY(3)}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{flex-shrink:0;width:22px;margin-inline-end:10px;display:flex}.Toastify--animate{animation-duration:.5s;animation-fill-mode:both}.Toastify--animate-icon{animation-duration:.3s;animation-fill-mode:both}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--auto,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar-theme--auto{background:var(--toastify-color-progress-light)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;cursor:pointer;opacity:.7;z-index:1;background:0 0;border:none;outline:none;padding:0;transition:all .3s;position:absolute;top:6px;right:6px}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light,.Toastify__close-button--auto{color:#000;opacity:.3}@media (prefers-color-scheme:dark){.Toastify__toast-theme--auto{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__progress-bar-theme--auto{background:var(--toastify-color-progress-dark)}.Toastify__close-button--auto{color:#fff;opacity:.7}}.Toastify__close-button>svg{fill:currentColor;width:14px;height:16px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{z-index:1;opacity:.7;transform-origin:0;width:100%;height:100%;position:absolute;bottom:0;left:0}.Toastify__progress-bar--animated{animation:linear forwards Toastify__trackProgress}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:100%;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius);width:100%;height:5px;position:absolute;bottom:0;left:0;overflow:hidden}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{box-sizing:border-box;border:2px solid;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);border-radius:100%;width:20px;height:20px;animation:.65s linear infinite Toastify__spin}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate(3000px)}60%{opacity:1;transform:translate(-25px)}75%{transform:translate(10px)}90%{transform:translate(-5px)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px, var(--y), 0)}to{opacity:0;transform:translate3d(2000px, var(--y), 0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate(-3000px)}60%{opacity:1;transform:translate(25px)}75%{transform:translate(-10px)}90%{transform:translate(5px)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px, var(--y), 0)}to{opacity:0;transform:translate3d(-2000px, var(--y), 0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translateY(3000px)}60%{opacity:1;transform:translateY(-20px)}75%{transform:translateY(10px)}90%{transform:translateY(-5px)}to{transform:translate(0,0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0, calc(var(--y) - 10px), 0)}40%,45%{opacity:1;transform:translate3d(0, calc(var(--y) + 20px), 0)}to{opacity:0;transform:translateY(-2000px)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translateY(-3000px)}60%{opacity:1;transform:translateY(25px)}75%{transform:translateY(-10px)}90%{transform:translateY(5px)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0, calc(var(--y) - 10px), 0)}40%,45%{opacity:1;transform:translate3d(0, calc(var(--y) + 20px), 0)}to{opacity:0;transform:translateY(2000px)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0, var(--y), 0) scale3d(.3, .3, .3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{opacity:0;animation-timing-function:ease-in;transform:perspective(400px)rotateX(90deg)}40%{animation-timing-function:ease-in;transform:perspective(400px)rotateX(-20deg)}60%{opacity:1;transform:perspective(400px)rotateX(10deg)}80%{transform:perspective(400px)rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0, var(--y), 0) perspective(400px)}30%{transform:translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);opacity:1}to{transform:translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{visibility:visible;transform:translate(110%)}to{transform:translate3d(0, var(--y), 0)}}@keyframes Toastify__slideInLeft{0%{visibility:visible;transform:translate(-110%)}to{transform:translate3d(0, var(--y), 0)}}@keyframes Toastify__slideInUp{0%{visibility:visible;transform:translateY(110%)}to{transform:translate3d(0, var(--y), 0)}}@keyframes Toastify__slideInDown{0%{visibility:visible;transform:translateY(-110%)}to{transform:translate3d(0, var(--y), 0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0, var(--y), 0)}to{visibility:hidden;transform:translate3d(110%, var(--y), 0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0, var(--y), 0)}to{visibility:hidden;transform:translate3d(-110%, var(--y), 0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0, var(--y), 0)}to{visibility:hidden;transform:translateY(500px)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0, var(--y), 0)}to{visibility:hidden;transform:translateY(-500px)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-duration:.3s;animation-timing-function:ease-in}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-duration:.3s;animation-timing-function:ease-in}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-duration:.3s;animation-timing-function:ease-in}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-duration:.3s;animation-timing-function:ease-in}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'.match(/:root\s*\{[^}]*\}/)?.[0]??"").replace(":root",":host"),Oc=`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-300:oklch(80.8% .114 19.571);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-950:oklch(25.8% .092 26.042);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-500:oklch(79.5% .184 86.047);--color-lime-500:oklch(76.8% .233 130.85);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-950:oklch(12.9% .042 264.695);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-neutral-100:oklch(97% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-widest:.1em;--leading-relaxed:1.625;--radius-lg:.5rem;--radius-2xl:1rem;--drop-shadow-lg:0 4px 4px #00000026;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-sm:8px;--blur-md:12px;--blur-2xl:40px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius:var(--radius);--border:var(--border,#ddd);--border-width:var(--border-width,1px);--tw-border-style:solid}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{inset-inline:0}.inset-y-0{inset-block:0}.-top-1{top:calc(var(--spacing) * -1)}.-top-1\\.5{top:calc(var(--spacing) * -1.5)}.-top-2{top:calc(var(--spacing) * -2)}.top-0{top:0}.top-1{top:var(--spacing)}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-2\\.5{top:calc(var(--spacing) * 2.5)}.top-3{top:calc(var(--spacing) * 3)}.top-4{top:calc(var(--spacing) * 4)}.top-16{top:calc(var(--spacing) * 16)}.top-\\[50\\%\\]{top:50%}.top-full{top:100%}.-right-2{right:calc(var(--spacing) * -2)}.right-0{right:0}.right-1{right:var(--spacing)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.right-10{right:calc(var(--spacing) * 10)}.right-full{right:100%}.-bottom-2{bottom:calc(var(--spacing) * -2)}.bottom-0{bottom:0}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-3{left:calc(var(--spacing) * 3)}.left-16{left:calc(var(--spacing) * 16)}.left-\\[50\\%\\]{left:50%}.left-full{left:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-2001{z-index:2001}.z-2002{z-index:2002}.z-2003{z-index:2003}.z-2010{z-index:2010}.z-\\[1000\\]{z-index:1000}.col-span-3{grid-column:span 3/span 3}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.m-auto{margin:auto}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-auto{margin-inline:auto}.my-1{margin-block:var(--spacing)}.my-2{margin-block:calc(var(--spacing) * 2)}.my-6{margin-block:calc(var(--spacing) * 6)}.my-8{margin-block:calc(var(--spacing) * 8)}.my-16{margin-block:calc(var(--spacing) * 16)}.-mt-4{margin-top:calc(var(--spacing) * -4)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-14{margin-top:calc(var(--spacing) * 14)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-24{margin-top:calc(var(--spacing) * 24)}.mr-2{margin-right:calc(var(--spacing) * 2)}.-mb-1\\.5{margin-bottom:calc(var(--spacing) * -1.5)}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.-ml-1\\.5{margin-left:calc(var(--spacing) * -1.5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.field-sizing-content{field-sizing:content}.aspect-video{aspect-ratio:var(--aspect-video)}.size-0{width:0;height:0}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-24{width:calc(var(--spacing) * 24);height:calc(var(--spacing) * 24)}.size-28{width:calc(var(--spacing) * 28);height:calc(var(--spacing) * 28)}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-1{height:var(--spacing)}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-16{height:calc(var(--spacing) * 16)}.h-24{height:calc(var(--spacing) * 24)}.h-32{height:calc(var(--spacing) * 32)}.h-40{height:calc(var(--spacing) * 40)}.h-44{height:calc(var(--spacing) * 44)}.h-48{height:calc(var(--spacing) * 48)}.h-52{height:calc(var(--spacing) * 52)}.h-56{height:calc(var(--spacing) * 56)}.h-60{height:calc(var(--spacing) * 60)}.h-64{height:calc(var(--spacing) * 64)}.h-72{height:calc(var(--spacing) * 72)}.h-80{height:calc(var(--spacing) * 80)}.h-\\[0\\.05rem\\]{height:.05rem}.h-\\[70vh\\]{height:70vh}.h-\\[90vh\\]{height:90vh}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\\[60vh\\]{max-height:60vh}.max-h-\\[90vh\\]{max-height:90vh}.min-h-0{min-height:0}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-\\[60vh\\]{min-height:60vh}.min-h-\\[70vh\\]{min-height:70vh}.min-h-\\[80\\]{min-height:80px}.min-h-\\[80vh\\]{min-height:80vh}.min-h-screen{min-height:100vh}.w-0{width:0}.w-0\\.5{width:calc(var(--spacing) * .5)}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-1\\/2{width:50%}.w-3{width:calc(var(--spacing) * 3)}.w-3\\/4{width:75%}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-11{width:calc(var(--spacing) * 11)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-28{width:calc(var(--spacing) * 28)}.w-32{width:calc(var(--spacing) * 32)}.w-36{width:calc(var(--spacing) * 36)}.w-40{width:calc(var(--spacing) * 40)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\\[min\\(92\\%\\,260px\\)\\]{width:min(92%,260px)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-24{max-width:calc(var(--spacing) * 24)}.max-w-\\[calc\\(100\\%-80px\\)\\]{max-width:calc(100% - 80px)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-0{min-width:0}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-sm{min-width:var(--container-sm)}.min-w-xl{min-width:var(--container-xl)}.flex-1{flex:1}.flex-auto{flex:auto}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-125{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.-scale-x-100{--tw-scale-x:calc(100% * -1);scale:var(--tw-scale-x) var(--tw-scale-y)}.-scale-y-100{--tw-scale-y:calc(100% * -1);scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-\\[1\\.03\\]{scale:1.03}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-none{animation:none}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-copy{cursor:copy}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.scroll-m-20{scroll-margin:calc(var(--spacing) * 20)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-around{justify-content:space-around}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-9>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 9) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 9) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-6>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 6) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-x-reverse)))}.gap-y-6{row-gap:calc(var(--spacing) * 6)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--border)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:var(--radius)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-none{border-radius:0}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-t{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.rounded-t-lg{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}.rounded-l{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-r{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius)}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-b{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-\\[1px\\]{border-style:var(--tw-border-style);border-width:1px}.border-x-0{border-inline-style:var(--tw-border-style);border-inline-width:0}.border-x-4{border-inline-style:var(--tw-border-style);border-inline-width:4px}.border-y-2{border-block-style:var(--tw-border-style);border-block-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-t-\\[1rem\\]{border-top-style:var(--tw-border-style);border-top-width:1rem}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-amber-400{border-color:var(--color-amber-400)}.border-amber-600{border-color:var(--color-amber-600)}.border-amber-800{border-color:var(--color-amber-800)}.border-blue-500\\/20{border-color:#3080ff33}@supports (color:color-mix(in lab, red, red)){.border-blue-500\\/20{border-color:color-mix(in oklab, var(--color-blue-500) 20%, transparent)}}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-foreground{border-color:var(--foreground)}.border-info{border-color:var(--info)}.border-popover{border-color:var(--popover)}.border-primary,.border-primary\\/30{border-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.border-primary\\/30{border-color:color-mix(in oklab, var(--primary) 30%, transparent)}}.border-red-300{border-color:var(--color-red-300)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-400{border-color:var(--color-slate-400)}.border-slate-500{border-color:var(--color-slate-500)}.border-success{border-color:var(--success)}.border-transparent{border-color:#0000}.border-warning{border-color:var(--warning)}.border-t-gray-500{border-top-color:var(--color-gray-500)}.border-t-green-500{border-top-color:var(--color-green-500)}.border-t-lime-500{border-top-color:var(--color-lime-500)}.border-t-orange-500{border-top-color:var(--color-orange-500)}.border-t-red-500{border-top-color:var(--color-red-500)}.border-t-transparent{border-top-color:#0000}.border-t-yellow-500{border-top-color:var(--color-yellow-500)}.border-r-transparent{border-right-color:#0000}.border-b-transparent{border-bottom-color:#0000}.border-l-transparent{border-left-color:#0000}.bg-amber-300\\/90{background-color:#ffd236e6}@supports (color:color-mix(in lab, red, red)){.bg-amber-300\\/90{background-color:color-mix(in oklab, var(--color-amber-300) 90%, transparent)}}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-600{background-color:var(--color-amber-600)}.bg-background,.bg-background\\/50{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\\/50{background-color:color-mix(in oklab, var(--background) 50%, transparent)}}.bg-background\\/60{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\\/60{background-color:color-mix(in oklab, var(--background) 60%, transparent)}}.bg-background\\/70{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\\/70{background-color:color-mix(in oklab, var(--background) 70%, transparent)}}.bg-background\\/75{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\\/75{background-color:color-mix(in oklab, var(--background) 75%, transparent)}}.bg-background\\/80{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\\/80{background-color:color-mix(in oklab, var(--background) 80%, transparent)}}.bg-background\\/85{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\\/85{background-color:color-mix(in oklab, var(--background) 85%, transparent)}}.bg-background\\/90{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\\/90{background-color:color-mix(in oklab, var(--background) 90%, transparent)}}.bg-black{background-color:var(--color-black)}.bg-black\\/15{background-color:#00000026}@supports (color:color-mix(in lab, red, red)){.bg-black\\/15{background-color:color-mix(in oklab, var(--color-black) 15%, transparent)}}.bg-black\\/20{background-color:#0003}@supports (color:color-mix(in lab, red, red)){.bg-black\\/20{background-color:color-mix(in oklab, var(--color-black) 20%, transparent)}}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab, red, red)){.bg-black\\/40{background-color:color-mix(in oklab, var(--color-black) 40%, transparent)}}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-black\\/70{background-color:#000000b3}@supports (color:color-mix(in lab, red, red)){.bg-black\\/70{background-color:color-mix(in oklab, var(--color-black) 70%, transparent)}}.bg-black\\/85{background-color:#000000d9}@supports (color:color-mix(in lab, red, red)){.bg-black\\/85{background-color:color-mix(in oklab, var(--color-black) 85%, transparent)}}.bg-blue-500\\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab, red, red)){.bg-blue-500\\/10{background-color:color-mix(in oklab, var(--color-blue-500) 10%, transparent)}}.bg-border{background-color:var(--border)}.bg-destructive,.bg-destructive\\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\\/10{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.bg-destructive\\/20{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\\/20{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.bg-destructive\\/75{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\\/75{background-color:color-mix(in oklab, var(--destructive) 75%, transparent)}}.bg-foreground,.bg-foreground\\/20{background-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.bg-foreground\\/20{background-color:color-mix(in oklab, var(--foreground) 20%, transparent)}}.bg-foreground\\/50{background-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.bg-foreground\\/50{background-color:color-mix(in oklab, var(--foreground) 50%, transparent)}}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-400\\/30{background-color:#99a1af4d}@supports (color:color-mix(in lab, red, red)){.bg-gray-400\\/30{background-color:color-mix(in oklab, var(--color-gray-400) 30%, transparent)}}.bg-gray-500{background-color:var(--color-gray-500)}.bg-gray-500\\/20{background-color:#6a728233}@supports (color:color-mix(in lab, red, red)){.bg-gray-500\\/20{background-color:color-mix(in oklab, var(--color-gray-500) 20%, transparent)}}.bg-green-500{background-color:var(--color-green-500)}.bg-green-500\\/20{background-color:#00c75833}@supports (color:color-mix(in lab, red, red)){.bg-green-500\\/20{background-color:color-mix(in oklab, var(--color-green-500) 20%, transparent)}}.bg-info{background-color:var(--info)}.bg-input{background-color:var(--input)}.bg-lime-500{background-color:var(--color-lime-500)}.bg-muted{background-color:var(--muted)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-orange-500{background-color:var(--color-orange-500)}.bg-popover{background-color:var(--popover)}.bg-primary,.bg-primary\\/5{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\\/5{background-color:color-mix(in oklab, var(--primary) 5%, transparent)}}.bg-primary\\/10{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\\/10{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.bg-primary\\/15{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\\/15{background-color:color-mix(in oklab, var(--primary) 15%, transparent)}}.bg-primary\\/20{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\\/20{background-color:color-mix(in oklab, var(--primary) 20%, transparent)}}.bg-primary\\/30{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\\/30{background-color:color-mix(in oklab, var(--primary) 30%, transparent)}}.bg-primary\\/40{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\\/40{background-color:color-mix(in oklab, var(--primary) 40%, transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab, red, red)){.bg-red-500\\/20{background-color:color-mix(in oklab, var(--color-red-500) 20%, transparent)}}.bg-slate-300{background-color:var(--color-slate-300)}.bg-success,.bg-success\\/20{background-color:var(--success)}@supports (color:color-mix(in lab, red, red)){.bg-success\\/20{background-color:color-mix(in oklab, var(--success) 20%, transparent)}}.bg-transparent{background-color:#0000}.bg-warning,.bg-warning\\/20{background-color:var(--warning)}@supports (color:color-mix(in lab, red, red)){.bg-warning\\/20{background-color:color-mix(in oklab, var(--warning) 20%, transparent)}}.bg-white{background-color:var(--color-white)}.bg-white\\/50{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.bg-white\\/50{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.bg-white\\/60{background-color:#fff9}@supports (color:color-mix(in lab, red, red)){.bg-white\\/60{background-color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.bg-white\\/80{background-color:#fffc}@supports (color:color-mix(in lab, red, red)){.bg-white\\/80{background-color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.bg-white\\/85{background-color:#ffffffd9}@supports (color:color-mix(in lab, red, red)){.bg-white\\/85{background-color:color-mix(in oklab, var(--color-white) 85%, transparent)}}.bg-white\\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.bg-white\\/90{background-color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-linear-to-b{--tw-gradient-position:to bottom}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-b{--tw-gradient-position:to bottom in oklab}}.bg-linear-to-b{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-r{--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-r{--tw-gradient-position:to right in oklab}}.bg-linear-to-r{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-amber-400\\/20{--tw-gradient-from:#fcbb0033}@supports (color:color-mix(in lab, red, red)){.from-amber-400\\/20{--tw-gradient-from:color-mix(in oklab, var(--color-amber-400) 20%, transparent)}}.from-amber-400\\/20{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-amber-600\\/20{--tw-gradient-from:#dd740033}@supports (color:color-mix(in lab, red, red)){.from-amber-600\\/20{--tw-gradient-from:color-mix(in oklab, var(--color-amber-600) 20%, transparent)}}.from-amber-600\\/20{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-black\\/50{--tw-gradient-from:#00000080}@supports (color:color-mix(in lab, red, red)){.from-black\\/50{--tw-gradient-from:color-mix(in oklab, var(--color-black) 50%, transparent)}}.from-black\\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-slate-400\\/20{--tw-gradient-from:#90a1b933}@supports (color:color-mix(in lab, red, red)){.from-slate-400\\/20{--tw-gradient-from:color-mix(in oklab, var(--color-slate-400) 20%, transparent)}}.from-slate-400\\/20{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-transparent{--tw-gradient-from:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.via-amber-500\\/10{--tw-gradient-via:#f99c001a}@supports (color:color-mix(in lab, red, red)){.via-amber-500\\/10{--tw-gradient-via:color-mix(in oklab, var(--color-amber-500) 10%, transparent)}}.via-amber-500\\/10{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-slate-300\\/10{--tw-gradient-via:#cad5e21a}@supports (color:color-mix(in lab, red, red)){.via-slate-300\\/10{--tw-gradient-via:color-mix(in oklab, var(--color-slate-300) 10%, transparent)}}.via-slate-300\\/10{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-yellow-300\\/10{--tw-gradient-via:#ffe02a1a}@supports (color:color-mix(in lab, red, red)){.via-yellow-300\\/10{--tw-gradient-via:color-mix(in oklab, var(--color-yellow-300) 10%, transparent)}}.via-yellow-300\\/10{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-fill{object-fit:fill}.object-none{object-fit:none}.object-scale-down{object-fit:scale-down}.object-bottom{object-position:bottom}.object-center{object-position:center}.object-top{object-position:top}.p-0{padding:0}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-px{padding:1px}.px-0{padding-inline:0}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0{padding-block:0}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.py-24{padding-block:calc(var(--spacing) * 24)}.py-36{padding-block:calc(var(--spacing) * 36)}.py-\\[0\\.0625\\]{padding-block:.0625px}.pt-0{padding-top:0}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-16{padding-top:calc(var(--spacing) * 16)}.pr-1{padding-right:var(--spacing)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pb-0\\.5{padding-bottom:calc(var(--spacing) * .5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pb-9{padding-bottom:calc(var(--spacing) * 9)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pb-36{padding-bottom:calc(var(--spacing) * 36)}.pl-1\\.5{padding-left:calc(var(--spacing) * 1.5)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[0\\.5rem\\]{font-size:.5rem}.text-\\[10px\\]{font-size:10px}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-nowrap{text-wrap:nowrap}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#ff4800\\]{color:#ff4800}.text-amber-100{color:var(--color-amber-100)}.text-amber-400{color:var(--color-amber-400)}.text-amber-600{color:var(--color-amber-600)}.text-amber-900{color:var(--color-amber-900)}.text-background{color:var(--background)}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-gray-200{color:var(--color-gray-200)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-green-600{color:var(--color-green-600)}.text-info{color:var(--info)}.text-inherit{color:inherit}.text-muted-foreground,.text-muted-foreground\\/70{color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\\/70{color:color-mix(in oklab, var(--muted-foreground) 70%, transparent)}}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-600{color:var(--color-red-600)}.text-slate-400{color:var(--color-slate-400)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-950{color:var(--color-slate-950)}.text-success{color:var(--success)}.text-warning{color:var(--warning)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_0_0_1px_rgba\\(255\\,255\\,255\\,0\\.18\\)\\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,#ffffff2e);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-outer{--tw-shadow:var(--shadow-outer-horizontal-offset) var(--shadow-outer-vertical-offset) var(--shadow-outer-blur) var(--shadow-outer-spread) var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-black\\/5{--tw-ring-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.ring-black\\/5{--tw-ring-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.ring-border{--tw-ring-color:var(--border)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-2xl{--tw-blur:blur(var(--blur-2xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow-\\[0_1\\.2px_1\\.2px_rgba\\(0\\,0\\,0\\,0\\.8\\)\\]{--tw-drop-shadow-size:drop-shadow(0 1.2px 1.2px var(--tw-drop-shadow-color,#000c));--tw-drop-shadow:var(--tw-drop-shadow-size);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow-\\[0_1px_2px_rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#00000080));--tw-drop-shadow:var(--tw-drop-shadow-size);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow-lg{--tw-drop-shadow-size:drop-shadow(0 4px 4px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--drop-shadow-lg));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.sepia{--tw-sepia:sepia(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.\\[content-visibility\\:auto\\]{content-visibility:auto}.paused{animation-play-state:paused}.running{animation-play-state:running}@media (hover:hover){.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-x-125:hover{--tw-scale-x:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:cursor-not-allowed:hover{cursor:not-allowed}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:border-primary:hover{border-color:var(--primary)}.hover\\:bg-black\\/60:hover{background-color:#0009}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-black\\/60:hover{background-color:color-mix(in oklab, var(--color-black) 60%, transparent)}}.hover\\:bg-current\\/10:hover{background-color:currentColor}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-current\\/10:hover{background-color:color-mix(in oklab, currentcolor 10%, transparent)}}.hover\\:bg-destructive\\/10:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-destructive\\/10:hover{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.hover\\:bg-destructive\\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.hover\\:bg-foreground\\/10:hover{background-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-foreground\\/10:hover{background-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.hover\\:bg-foreground\\/20:hover{background-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-foreground\\/20:hover{background-color:color-mix(in oklab, var(--foreground) 20%, transparent)}}.hover\\:bg-foreground\\/90:hover{background-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-foreground\\/90:hover{background-color:color-mix(in oklab, var(--foreground) 90%, transparent)}}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-info\\/10:hover{background-color:var(--info)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-info\\/10:hover{background-color:color-mix(in oklab, var(--info) 10%, transparent)}}.hover\\:bg-info\\/90:hover{background-color:var(--info)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-info\\/90:hover{background-color:color-mix(in oklab, var(--info) 90%, transparent)}}.hover\\:bg-muted:hover,.hover\\:bg-muted\\/20:hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-muted\\/20:hover{background-color:color-mix(in oklab, var(--muted) 20%, transparent)}}.hover\\:bg-muted\\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-muted\\/50:hover{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}.hover\\:bg-muted\\/80:hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-muted\\/80:hover{background-color:color-mix(in oklab, var(--muted) 80%, transparent)}}.hover\\:bg-primary\\/5:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-primary\\/5:hover{background-color:color-mix(in oklab, var(--primary) 5%, transparent)}}.hover\\:bg-primary\\/10:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-primary\\/10:hover{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.hover\\:bg-primary\\/20:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-primary\\/20:hover{background-color:color-mix(in oklab, var(--primary) 20%, transparent)}}.hover\\:bg-primary\\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:bg-success\\/10:hover{background-color:var(--success)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-success\\/10:hover{background-color:color-mix(in oklab, var(--success) 10%, transparent)}}.hover\\:bg-success\\/90:hover{background-color:var(--success)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-success\\/90:hover{background-color:color-mix(in oklab, var(--success) 90%, transparent)}}.hover\\:bg-warning\\/10:hover{background-color:var(--warning)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-warning\\/10:hover{background-color:color-mix(in oklab, var(--warning) 10%, transparent)}}.hover\\:bg-warning\\/90:hover{background-color:var(--warning)}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-warning\\/90:hover{background-color:color-mix(in oklab, var(--warning) 90%, transparent)}}.hover\\:bg-white\\/75:hover{background-color:#ffffffbf}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/75:hover{background-color:color-mix(in oklab, var(--color-white) 75%, transparent)}}.hover\\:text-foreground:hover{color:var(--foreground)}.hover\\:text-primary:hover{color:var(--primary)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-90:hover{opacity:.9}.hover\\:opacity-100:hover{opacity:1}}.focus\\:border:focus{border-style:var(--tw-border-style);border-width:1px}.focus\\:border-primary:focus{border-color:var(--primary)}.focus\\:bg-destructive\\/10:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus\\:bg-destructive\\/10:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-primary:focus{--tw-ring-color:var(--primary)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.active\\:scale-90:active{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:cursor-grabbing:active{cursor:grabbing}.active\\:bg-current\\/15:active{background-color:currentColor}@supports (color:color-mix(in lab, red, red)){.active\\:bg-current\\/15:active{background-color:color-mix(in oklab, currentcolor 15%, transparent)}}.active\\:bg-destructive\\/80:active{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.active\\:bg-destructive\\/80:active{background-color:color-mix(in oklab, var(--destructive) 80%, transparent)}}.active\\:bg-info\\/80:active{background-color:var(--info)}@supports (color:color-mix(in lab, red, red)){.active\\:bg-info\\/80:active{background-color:color-mix(in oklab, var(--info) 80%, transparent)}}.active\\:bg-muted:active,.active\\:bg-muted\\/80:active{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.active\\:bg-muted\\/80:active{background-color:color-mix(in oklab, var(--muted) 80%, transparent)}}.active\\:bg-primary\\/80:active{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.active\\:bg-primary\\/80:active{background-color:color-mix(in oklab, var(--primary) 80%, transparent)}}.active\\:bg-success\\/80:active{background-color:var(--success)}@supports (color:color-mix(in lab, red, red)){.active\\:bg-success\\/80:active{background-color:color-mix(in oklab, var(--success) 80%, transparent)}}.active\\:bg-warning\\/80:active{background-color:var(--warning)}@supports (color:color-mix(in lab, red, red)){.active\\:bg-warning\\/80:active{background-color:color-mix(in oklab, var(--warning) 80%, transparent)}}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-500:disabled{border-color:var(--color-gray-500)}.disabled\\:bg-muted:disabled{background-color:var(--muted)}.disabled\\:opacity-50:disabled{opacity:.5}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\\[state\\=checked\\]\\:translate-x-5[data-state=checked]{--tw-translate-x:calc(var(--spacing) * 5);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[state\\=checked\\]\\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\\[state\\=checked\\]\\:border-transparent[data-state=checked]{border-color:#0000}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\\[state\\=checked\\]\\:bg-primary-foreground[data-state=checked]{background-color:var(--primary-foreground)}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}@media not all and (width>=40rem){.max-sm\\:top-auto{top:auto}.max-sm\\:bottom-0{bottom:0}.max-sm\\:left-0{left:0}.max-sm\\:w-full{width:100%}.max-sm\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.max-sm\\:translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.max-sm\\:border-x-0{border-inline-style:var(--tw-border-style);border-inline-width:0}.max-sm\\:border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.max-sm\\:data-\\[state\\=closed\\]\\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.max-sm\\:data-\\[state\\=open\\]\\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}}@media (width>=40rem){.sm\\:mx-0{margin-inline:0}.sm\\:mt-6{margin-top:calc(var(--spacing) * 6)}.sm\\:mb-1{margin-bottom:var(--spacing)}.sm\\:block{display:block}.sm\\:size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.sm\\:h-32{height:calc(var(--spacing) * 32)}.sm\\:h-56{height:calc(var(--spacing) * 56)}.sm\\:h-72{height:calc(var(--spacing) * 72)}.sm\\:h-80{height:calc(var(--spacing) * 80)}.sm\\:h-120{height:calc(var(--spacing) * 120)}.sm\\:h-\\[calc\\(100vh-4rem\\)\\]{height:calc(100vh - 4rem)}.sm\\:max-h-96{max-height:calc(var(--spacing) * 96)}.sm\\:w-2xl{width:var(--container-2xl)}.sm\\:w-auto{width:auto}.sm\\:max-w-lg{max-width:var(--container-lg)}.sm\\:min-w-36{min-width:calc(var(--spacing) * 36)}.sm\\:min-w-48{min-width:calc(var(--spacing) * 48)}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-start{align-items:flex-start}.sm\\:justify-between{justify-content:space-between}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-2{gap:calc(var(--spacing) * 2)}:where(.sm\\:space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.sm\\:rounded{border-radius:var(--radius)}.sm\\:p-1\\.5{padding:calc(var(--spacing) * 1.5)}.sm\\:p-4{padding:calc(var(--spacing) * 4)}.sm\\:p-5{padding:calc(var(--spacing) * 5)}.sm\\:px-0{padding-inline:0}.sm\\:px-12{padding-inline:calc(var(--spacing) * 12)}.sm\\:py-0{padding-block:0}.sm\\:py-0\\.5{padding-block:calc(var(--spacing) * .5)}.sm\\:pt-0{padding-top:0}.sm\\:pt-16{padding-top:calc(var(--spacing) * 16)}.sm\\:pt-24{padding-top:calc(var(--spacing) * 24)}.sm\\:pr-4{padding-right:calc(var(--spacing) * 4)}.sm\\:text-left{text-align:left}.sm\\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sm\\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\\:text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.sm\\:text-foreground{color:var(--foreground)}.sm\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.sm\\:hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.sm\\:hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.sm\\:hover\\:opacity-100:hover{opacity:1}}}@media (width>=48rem){.md\\:col-span-1{grid-column:span 1/span 1}.md\\:-mt-6{margin-top:calc(var(--spacing) * -6)}.md\\:mt-0{margin-top:0}.md\\:mt-36{margin-top:calc(var(--spacing) * 36)}.md\\:mb-1{margin-bottom:var(--spacing)}.md\\:h-120{height:calc(var(--spacing) * 120)}.md\\:max-h-screen{max-height:100vh}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:flex-row-reverse{flex-direction:row-reverse}.md\\:justify-between{justify-content:space-between}:where(.md\\:space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.md\\:space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 4) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse)))}.md\\:rounded{border-radius:var(--radius)}.md\\:p-2{padding:calc(var(--spacing) * 2)}.md\\:px-3{padding-inline:calc(var(--spacing) * 3)}.md\\:px-4{padding-inline:calc(var(--spacing) * 4)}.md\\:px-6{padding-inline:calc(var(--spacing) * 6)}.md\\:px-36{padding-inline:calc(var(--spacing) * 36)}.md\\:py-0\\.5{padding-block:calc(var(--spacing) * .5)}.md\\:pb-24{padding-bottom:calc(var(--spacing) * 24)}.md\\:text-left{text-align:left}.md\\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media (width>=64rem){.lg\\:mb-12{margin-bottom:calc(var(--spacing) * 12)}.lg\\:block{display:block}.lg\\:h-16{height:calc(var(--spacing) * 16)}.lg\\:h-64{height:calc(var(--spacing) * 64)}.lg\\:w-1\\/3{width:33.3333%}.lg\\:w-24{width:calc(var(--spacing) * 24)}.lg\\:flex-none{flex:none}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:gap-0{gap:0}.lg\\:gap-2{gap:calc(var(--spacing) * 2)}.lg\\:gap-4{gap:calc(var(--spacing) * 4)}.lg\\:gap-6{gap:calc(var(--spacing) * 6)}.lg\\:gap-8{gap:calc(var(--spacing) * 8)}.lg\\:justify-self-end{justify-self:flex-end}.lg\\:p-6{padding:calc(var(--spacing) * 6)}.lg\\:px-0{padding-inline:0}.lg\\:px-64{padding-inline:calc(var(--spacing) * 64)}.lg\\:py-8{padding-block:calc(var(--spacing) * 8)}.lg\\:py-52{padding-block:calc(var(--spacing) * 52)}.lg\\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.lg\\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.lg\\:font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.lg\\:opacity-0{opacity:0}.lg\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.lg\\:group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}}@media (width>=80rem){.xl\\:h-72{height:calc(var(--spacing) * 72)}.xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=96rem){.\\32 xl\\:h-80{height:calc(var(--spacing) * 80)}}@media (prefers-color-scheme:dark){.dark\\:bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-black\\/40{background-color:color-mix(in oklab, var(--color-black) 40%, transparent)}}.dark\\:bg-gray-700{background-color:var(--color-gray-700)}.dark\\:bg-gray-800{background-color:var(--color-gray-800)}.dark\\:bg-neutral-800{background-color:var(--color-neutral-800)}.dark\\:text-blue-400{color:var(--color-blue-400)}.dark\\:text-gray-400{color:var(--color-gray-400)}@media (hover:hover){.dark\\:hover\\:bg-red-950\\/20:hover{background-color:#46080933}@supports (color:color-mix(in lab, red, red)){.dark\\:hover\\:bg-red-950\\/20:hover{background-color:color-mix(in oklab, var(--color-red-950) 20%, transparent)}}}}.\\[\\&\\>\\*\\]\\:size-4>*{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\\[\\&\\>\\*\\]\\:size-5>*{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.\\[\\&\\>\\*\\]\\:size-6>*{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.\\[\\&\\>\\*\\]\\:size-7>*{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}.react-photo-album{display:flex}.react-photo-album,.react-photo-album *{box-sizing:border-box}.react-photo-album--track{align-items:flex-start;display:flex}.react-photo-album--photo{padding:calc(var(--react-photo-album--padding) * 1px);position:relative}.react-photo-album--image{width:100%;height:auto;aspect-ratio:var(--react-photo-album--photo-width) / var(--react-photo-album--photo-height);display:block}.react-photo-album--button{cursor:pointer;border:initial;background:initial}.react-photo-album--rows{row-gap:calc(var(--react-photo-album--spacing) * 1px);flex-direction:column}.react-photo-album--rows .react-photo-album--track{--react-photo-album--track-gaps:calc(var(--react-photo-album--spacing) * (var(--react-photo-album--track-size) - 1) + 2 * var(--react-photo-album--padding) * var(--react-photo-album--track-size));justify-content:space-between}.react-photo-album--rows .react-photo-album--photo{width:calc((100% - var(--react-photo-album--track-gaps) * 1px) / (var(--react-photo-album--container-width) - var(--react-photo-album--track-gaps)) * var(--react-photo-album--photo-width) + 2px * var(--react-photo-album--padding))}.react-photo-album--columns{justify-content:space-between}.react-photo-album--columns .react-photo-album--track{justify-content:space-between;row-gap:calc(var(--react-photo-album--spacing) * 1px);width:calc(( 100% - 1px * (var(--react-photo-album--columns) - 1) * var(--react-photo-album--spacing) - 2px * var(--react-photo-album--columns) * var(--react-photo-album--padding) - var(--react-photo-album--adjusted-gaps) * 1px ) * var(--react-photo-album--column-ratio) / var(--react-photo-album--total-ratio) + 2px * var(--react-photo-album--padding));flex-direction:column}.react-photo-album--columns .react-photo-album--photo{width:100%}.react-photo-album--masonry{justify-content:space-between}.react-photo-album--masonry .react-photo-album--track{justify-content:flex-start;row-gap:calc(var(--react-photo-album--spacing) * 1px);width:calc((100% - var(--react-photo-album--spacing) * 1px * (var(--react-photo-album--columns) - 1)) / var(--react-photo-album--columns));flex-direction:column}.react-photo-album--masonry .react-photo-album--photo{width:100%}:root{--toastify-color-light:#fff;--toastify-color-dark:#121212;--toastify-color-info:#3498db;--toastify-color-success:#07bc0c;--toastify-color-warning:#f1c40f;--toastify-color-error:#e74d3c;--toastify-color-transparent:#ffffffb3;--toastify-icon-color-info:var(--toastify-color-info);--toastify-icon-color-success:var(--toastify-color-success);--toastify-icon-color-warning:var(--toastify-color-warning);--toastify-icon-color-error:var(--toastify-color-error);--toastify-container-width:fit-content;--toastify-toast-width:320px;--toastify-toast-offset:16px;--toastify-toast-top:max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right:max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left:max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom:max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background:#fff;--toastify-toast-padding:14px;--toastify-toast-min-height:64px;--toastify-toast-max-height:800px;--toastify-toast-bd-radius:6px;--toastify-toast-shadow:0px 4px 12px #0000001a;--toastify-font-family:sans-serif;--toastify-z-index:9999;--toastify-text-color-light:#757575;--toastify-text-color-dark:#fff;--toastify-text-color-info:#fff;--toastify-text-color-success:#fff;--toastify-text-color-warning:#fff;--toastify-text-color-error:#fff;--toastify-spinner-color:#616161;--toastify-spinner-color-empty-area:#e0e0e0;--toastify-color-progress-light:linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark:#bb86fc;--toastify-color-progress-info:var(--toastify-color-info);--toastify-color-progress-success:var(--toastify-color-success);--toastify-color-progress-warning:var(--toastify-color-warning);--toastify-color-progress-error:var(--toastify-color-error);--toastify-color-progress-bgo:.2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0, 0, var(--toastify-z-index));width:var(--toastify-container-width);box-sizing:border-box;color:#fff;flex-direction:column;display:flex;position:fixed}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);align-items:center;left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);align-items:center;left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y:0px;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;word-break:break-word;flex:auto;align-items:center;margin-bottom:1rem;display:flex;position:relative}@media only screen and (width<=480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width:100%;border-radius:0;margin-bottom:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}@media only screen and (width<=480px){.Toastify__toast-container[data-stacked=true]{width:100vw}}.Toastify__toast--stacked{width:100%;transform:translate3d(0, var(--y), 0) scale(var(--s));transition:transform .3s;position:absolute}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";height:calc(var(--g) * 1px);position:absolute;bottom:100%;left:0;right:0}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";z-index:-1;height:100%;position:absolute;bottom:0;left:0;right:0;transform:scaleY(3)}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{flex-shrink:0;width:22px;margin-inline-end:10px;display:flex}.Toastify--animate{animation-duration:.5s;animation-fill-mode:both}.Toastify--animate-icon{animation-duration:.3s;animation-fill-mode:both}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--auto,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar-theme--auto{background:var(--toastify-color-progress-light)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;cursor:pointer;opacity:.7;z-index:1;background:0 0;border:none;outline:none;padding:0;transition:all .3s;position:absolute;top:6px;right:6px}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light,.Toastify__close-button--auto{color:#000;opacity:.3}@media (prefers-color-scheme:dark){.Toastify__toast-theme--auto{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__progress-bar-theme--auto{background:var(--toastify-color-progress-dark)}.Toastify__close-button--auto{color:#fff;opacity:.7}}.Toastify__close-button>svg{fill:currentColor;width:14px;height:16px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{z-index:1;opacity:.7;transform-origin:0;width:100%;height:100%;position:absolute;bottom:0;left:0}.Toastify__progress-bar--animated{animation:linear forwards Toastify__trackProgress}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:100%;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius);width:100%;height:5px;position:absolute;bottom:0;left:0;overflow:hidden}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{box-sizing:border-box;border:2px solid;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);border-radius:100%;width:20px;height:20px;animation:.65s linear infinite Toastify__spin}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate(3000px)}60%{opacity:1;transform:translate(-25px)}75%{transform:translate(10px)}90%{transform:translate(-5px)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px, var(--y), 0)}to{opacity:0;transform:translate3d(2000px, var(--y), 0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate(-3000px)}60%{opacity:1;transform:translate(25px)}75%{transform:translate(-10px)}90%{transform:translate(5px)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px, var(--y), 0)}to{opacity:0;transform:translate3d(-2000px, var(--y), 0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translateY(3000px)}60%{opacity:1;transform:translateY(-20px)}75%{transform:translateY(10px)}90%{transform:translateY(-5px)}to{transform:translate(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0, calc(var(--y) - 10px), 0)}40%,45%{opacity:1;transform:translate3d(0, calc(var(--y) + 20px), 0)}to{opacity:0;transform:translateY(-2000px)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translateY(-3000px)}60%{opacity:1;transform:translateY(25px)}75%{transform:translateY(-10px)}90%{transform:translateY(5px)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0, calc(var(--y) - 10px), 0)}40%,45%{opacity:1;transform:translate3d(0, calc(var(--y) + 20px), 0)}to{opacity:0;transform:translateY(2000px)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0, var(--y), 0) scale3d(.3, .3, .3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{opacity:0;animation-timing-function:ease-in;transform:perspective(400px)rotateX(90deg)}40%{animation-timing-function:ease-in;transform:perspective(400px)rotateX(-20deg)}60%{opacity:1;transform:perspective(400px)rotateX(10deg)}80%{transform:perspective(400px)rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0, var(--y), 0) perspective(400px)}30%{transform:translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);opacity:1}to{transform:translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{visibility:visible;transform:translate(110%)}to{transform:translate3d(0, var(--y), 0)}}@keyframes Toastify__slideInLeft{0%{visibility:visible;transform:translate(-110%)}to{transform:translate3d(0, var(--y), 0)}}@keyframes Toastify__slideInUp{0%{visibility:visible;transform:translateY(110%)}to{transform:translate3d(0, var(--y), 0)}}@keyframes Toastify__slideInDown{0%{visibility:visible;transform:translateY(-110%)}to{transform:translate3d(0, var(--y), 0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0, var(--y), 0)}to{visibility:hidden;transform:translate3d(110%, var(--y), 0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0, var(--y), 0)}to{visibility:hidden;transform:translate3d(-110%, var(--y), 0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0, var(--y), 0)}to{visibility:hidden;transform:translateY(500px)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0, var(--y), 0)}to{visibility:hidden;transform:translateY(-500px)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-duration:.3s;animation-timing-function:ease-in}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-duration:.3s;animation-timing-function:ease-in}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-duration:.3s;animation-timing-function:ease-in}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-duration:.3s;animation-timing-function:ease-in}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@layer qrati-connect{.border{border-width:var(--border-width,1px)}}input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.otp-input{width:3rem!important;height:3rem!important}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.scrollbar-hide::-webkit-scrollbar{display:none}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}\n${Nc}\n.react-photo-album{display:flex}.react-photo-album,.react-photo-album *{box-sizing:border-box}.react-photo-album--track{align-items:flex-start;display:flex}.react-photo-album--photo{padding:calc(var(--react-photo-album--padding) * 1px);position:relative}.react-photo-album--image{width:100%;height:auto;aspect-ratio:var(--react-photo-album--photo-width) / var(--react-photo-album--photo-height);display:block}.react-photo-album--button{cursor:pointer;border:initial;background:initial}.react-photo-album--rows{row-gap:calc(var(--react-photo-album--spacing) * 1px);flex-direction:column}.react-photo-album--rows .react-photo-album--track{--react-photo-album--track-gaps:calc(var(--react-photo-album--spacing) * (var(--react-photo-album--track-size) - 1) + 2 * var(--react-photo-album--padding) * var(--react-photo-album--track-size));justify-content:space-between}.react-photo-album--rows .react-photo-album--photo{width:calc((100% - var(--react-photo-album--track-gaps) * 1px) / (var(--react-photo-album--container-width) - var(--react-photo-album--track-gaps)) * var(--react-photo-album--photo-width) + 2px * var(--react-photo-album--padding))}.react-photo-album--columns{justify-content:space-between}.react-photo-album--columns .react-photo-album--track{justify-content:space-between;row-gap:calc(var(--react-photo-album--spacing) * 1px);width:calc(( 100% - 1px * (var(--react-photo-album--columns) - 1) * var(--react-photo-album--spacing) - 2px * var(--react-photo-album--columns) * var(--react-photo-album--padding) - var(--react-photo-album--adjusted-gaps) * 1px ) * var(--react-photo-album--column-ratio) / var(--react-photo-album--total-ratio) + 2px * var(--react-photo-album--padding));flex-direction:column}.react-photo-album--columns .react-photo-album--photo{width:100%}.react-photo-album--masonry{justify-content:space-between}.react-photo-album--masonry .react-photo-album--track{justify-content:flex-start;row-gap:calc(var(--react-photo-album--spacing) * 1px);width:calc((100% - var(--react-photo-album--spacing) * 1px * (var(--react-photo-album--columns) - 1)) / var(--react-photo-album--columns));flex-direction:column}.react-photo-album--masonry .react-photo-album--photo{width:100%}\n${Rc}`;function Ac(){if("undefined"==typeof document)return;if(document.querySelector("style[data-qrati-connect-global]"))return;const t=document.createElement("style");t.setAttribute("data-qrati-connect-global","true"),t.textContent=Nc,document.head.appendChild(t)}function Pc(t,e){const r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`QratiConnect: Container "${t}" not found`);Ac();const o=r.shadowRoot??r.attachShadow({mode:"open"});if(!o.querySelector("[data-qrati-connect]")){const t=document.createElement("style");t.setAttribute("data-qrati-connect","true"),t.textContent=Oc,o.appendChild(t)}let a=o.querySelector("#qrati-connect-root");return a||(a=document.createElement("div"),a.setAttribute("id","qrati-connect-root"),o.appendChild(a)),Q(/* @__PURE__ */ve(Ic,{...e}),a),{unmount:()=>Q(null,a)}}var qc=class extends HTMLElement{mountPoint=null;styleElement=null;static get observedAttributes(){return["router","organization-id","uid","fname","lname","theme"]}connectedCallback(){this.querySelector(":scope > [data-qrati-placeholder]")?.remove(),Ac();const t=this.attachShadow({mode:"open"});this.styleElement=document.createElement("style"),this.styleElement.textContent=Oc,t.appendChild(this.styleElement),this.mountPoint=document.createElement("div"),this.mountPoint.setAttribute("id","qrati-connect-root"),t.appendChild(this.mountPoint),this.renderComponent()}disconnectedCallback(){this.mountPoint&&Q(null,this.mountPoint)}attributeChangedCallback(t,e,r){e!==r&&this.renderComponent("theme"!==t)}getProps(){return{router:this.getAttribute("router")||"memory",organizationId:this.getAttribute("organization-id")||"",uid:this.getAttribute("uid")||void 0,fname:this.getAttribute("fname")||void 0,lname:this.getAttribute("lname")||void 0,theme:this.getAttribute("theme")||"light",onError:t=>{this.dispatchEvent(new CustomEvent("qrati-error",{bubbles:!0,detail:{error:t}}))}}}renderComponent(t=!1){this.mountPoint&&(t&&this.mountPoint.childNodes.length>0&&Q(null,this.mountPoint),Q(/* @__PURE__ */ve(Ic,{...this.getProps()}),this.mountPoint))}};"undefined"==typeof window||customElements.get("qrati-connect")||customElements.define("qrati-connect",qc);export{gi as $,Cr as $t,Os as A,Z as An,za as At,is as B,ba as Bt,Bs as C,ht as Cn,sn as Ct,Ws as D,Q as Dn,Ha as Dt,js as E,ut as En,Ya as Et,us as F,Da as Ft,Gi as G,Ra as Gt,ts as H,Sa as Ht,ds as I,ja as It,_i as J,$a as Jt,Pi as K,va as Kt,ns as L,Pa as Lt,Ts as M,Ia as Mt,Es as N,Ea as Nt,Us as O,T as On,Ba as Ot,bs as P,qa as Pt,yi as Q,Ir as Qt,ss as R,Oa as Rt,Ls as S,wt as Sn,fn as St,Fs as T,vt as Tn,Za as Tt,Ji as U,La as Ut,os as V,Ca as Vt,Ki as W,Na as Wt,bi as X,Ua as Xt,wi as Y,Aa as Yt,vi as Z,ya as Zt,Ds as _,Zt as _n,Mn as _t,_l as a,Ee as an,ii as at,qs as b,pt as bn,zn as bt,xl as c,_e as cn,Xn as ct,ll as d,te as dn,Gn as dt,kr as en,hi as et,nl as f,Rt as fn,$n as ft,tl as g,ge as gn,qn as gt,Xs as h,Gt as hn,jn as ht,fc as i,Ae as in,si as it,Ss as j,x as jn,Ma as jt,As as k,W as kn,xa as kt,ul as l,we as ln,Yn as lt,el as m,Lt as mn,Hn as mt,Pc as n,Ye as nn,di as nt,wl as o,Me as on,ai as ot,rl as p,Ft as pn,Bn as pt,Oi as q,Va as qt,Ic as r,Ge as rn,ci as rt,bl as s,Ve as sn,ei as st,qc as t,br as tn,ui as tt,cl as u,ve as un,Wn as ut,Ps as v,ft as vn,Pn as vt,zs as w,yt as wn,dn as wt,Ms as x,dt as xn,kn as xt,Hs as y,gt as yn,An as yt,ls as z,wa as zt};