PageSourceSearch

https://delivr.to/assets/index-CT7kTiav.js

js delivr.to collected 2026-09-25 19:11:38 UTC 292,189 bytes, 150 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-DIkUQUh1.js","assets/query-DmstuUoN.js","assets/vendor-CHI41uxr.js","assets/useDocumentTitle-BOGfSQQj.js","assets/input-Dvd23oTk.js","assets/alert-dialog-DQgxaHUn.js","assets/ui-WgsiDFN4.js","assets/loader-2-DBtHWqj4.js","assets/arrow-right-CPLP7bUF.js","assets/mail-D42Ko5db.js","assets/info-Bh9sgHOw.js","assets/alert-circle-Bk1rTHL-.js","assets/check-circle-CiD2n8E-.js","assets/HomeFooter-CVrHDVYN.js","assets/target-M1bY3lO6.js","assets/send-asV8Ddzp.js","assets/trending-up-BJitD4Ir.js","assets/check-circle-2-ChxccshT.js","assets/arrow-down-tXZuTgX2.js","assets/shield-CsgJ5rrZ.js","assets/external-link-toS3VXTH.js","assets/Dashboard-C3D0qskI.js","assets/badge-CIRiQWe_.js","assets/FileTypeIcon-C0ONCHbU.js","assets/table-B-i1Qc_g.js","assets/PayloadDetailModal-d_rZHTmv.js","assets/QuickSendModal-fc8TmXFK.js","assets/checkbox-CcaDavml.js","assets/switch-Toae-IaB.js","assets/tabs-CLdUJLBs.js","assets/AreaChart-BbjuXgQC.js","assets/select-rx-Gp2-j.js","assets/clock-c878Mt3R.js","assets/IntegrationIcons-Cy2UT7kj.js","assets/download-Cy4RHPTg.js","assets/more-horizontal-C_pwGMBH.js","assets/trash-2-e27I1N9K.js","assets/ServiceIcon-CrwT3mpk.js","assets/RepeatingBadge-kOrnxFXm.js","assets/usePayloads-Bkjkf-Fq.js","assets/Payloads-jFQ7wnCI.js","assets/collapsible-C7cRw4tP.js","assets/TemplateFormModal-C6Qftjb3.js","assets/textarea-Dsn3FwXX.js","assets/search-CMCprIi4.js","assets/separator-Ze28ghRy.js","assets/upload-D5_KSr8D.js","assets/plus-D-Rv8PQG.js","assets/Templates-DtZmcFkh.js","assets/layers-osaYmonJ.js","assets/AITM-Co3P64Wl.js","assets/lock-CYBYE7QT.js","assets/MyCampaigns-CvkqOMnN.js","assets/chevrons-right-Ditwz2eT.js","assets/CampaignResults-BLJQQnj0.js","assets/mouse-pointer-BjUa1v8Z.js","assets/Launch-0KgOBPv6.js","assets/TemplateSelector-CvOxPoZl.js","assets/x-circle-GxcLMn2X.js","assets/WebLaunch-BJR7e4IJ.js","assets/Settings-CmyLNy17.js","assets/JoinTeamCard-CIwnTU_I.js","assets/Team-C7gQsXCK.js","assets/PublicPayload-DR6DWzRG.js","assets/Privacy-DFxxwm56.js","assets/Security-BXingQxY.js","assets/OAuthCallback-C0EP6T9n.js"])))=>i.map(i=>d[i]);
2import{j as f,u as Gt,a as wn,b as Ki,Q as Wi,c as Gi}from"./query-DmstuUoN.js";import{e as Yi,g as Ji,a as R,d as B,c as Zi,f as xn,u as br,L as dt,R as Xi,h as Js,O as Qi,i as Zs,j as ea,k as Ee,N as wr,B as ta}from"./vendor-CHI41uxr.js";import{c as Xs,P as Sr,a as Qs,b as Er,D as eo,C as to,R as ra,u as Cr,d as ro,e as no,f as so,A as vn,g as bn,h as Ke,i as oo,j as io,k as na,l as sa,m as oa,F as ia,S as ao,n as lo,o as aa,p as co,I as uo,q as fo,r as ho,s as po,L as mo,t as go,v as la,T as ca,w as ua,O as yo,x as da,y as wo,z as fa,B as xo,E as vo,G as ha}from"./ui-WgsiDFN4.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();var Br={},kt={},$n;function bo(){if($n)return kt;$n=1,kt.byteLength=i,kt.toByteArray=h,kt.fromByteArray=E;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=n.length;s<o;++s)e[s]=n[s],t[n.charCodeAt(s)]=s;t[45]=62,t[95]=63;function a(y){var S=y.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=y.indexOf("=");C===-1&&(C=S);var _=C===S?0:4-C%4;return[C,_]}function i(y){var S=a(y),C=S[0],_=S[1];return(C+_)*3/4-_}function p(y,S,C){return(S+C)*3/4-C}function h(y){var S,C=a(y),_=C[0],j=C[1],k=new r(p(y,_,j)),O=0,L=j>0?_-4:_,V;for(V=0;V<L;
vendor: 23,505 bytes, line 2
2V+=4)S=t[y.charCodeAt(V)]<<18|t[y.charCodeAt(V+1)]<<12|t[y.charCodeAt(V+2)]<<6|t[y.charCodeAt(V+3)],k[O++]=S>>16&255,k[O++]=S>>8&255,k[O++]=S&255;return j===2&&(S=t[y.charCodeAt(V)]<<2|t[y.charCodeAt(V+1)]>>4,k[O++]=S&255),j===1&&(S=t[y.charCodeAt(V)]<<10|t[y.charCodeAt(V+1)]<<4|t[y.charCodeAt(V+2)]>>2,k[O++]=S>>8&255,k[O++]=S&255),k}function g(y){return e[y>>18&63]+e[y>>12&63]+e[y>>6&63]+e[y&63]}function b(y,S,C){for(var _,j=[],k=S;k<C;k+=3)_=(y[k]<<16&16711680)+(y[k+1]<<8&65280)+(y[k+2]&255),j.push(g(_));return j.join("")}function E(y){for(var S,C=y.length,_=C%3,j=[],k=16383,O=0,L=C-_;O<L;O+=k)j.push(b(y,O,O+k>L?L:O+k));return _===1?(S=y[C-1],j.push(e[S>>2]+e[S<<4&63]+"==")):_===2&&(S=(y[C-2]<<8)+y[C-1],j.push(e[S>>10]+e[S>>4&63]+e[S<<2&63]+"=")),j.join("")}return kt}var rr={};var zn;function So(){return zn||(zn=1,rr.read=function(e,t,r,n,s){var o,a,i=s*8-n-1,p=(1<<i)-1,h=p>>1,g=-7,b=r?s-1:0,E=r?-1:1,y=e[t+b];for(b+=E,o=y&(1<<-g)-1,y>>=-g,g+=i;g>0;o=o*256+e[t+b],b+=E,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+e[t+b],b+=E,g-=8);if(o===0)o=1-h;else{if(o===p)return a?NaN:(y?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-h}return(y?-1:1)*a*Math.pow(2,o-n)},rr.write=function(e,t,r,n,s,o){var a,i,p,h=o*8-s-1,g=(1<<h)-1,b=g>>1,E=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:o-1,S=n?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,a=g):(a=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+b>=1?t+=E/p:t+=E*Math.pow(2,1-b),t*p>=2&&(a++,p/=2),a+b>=g?(i=0,a=g):a+b>=1?(i=(t*p-1)*Math.pow(2,s),a=a+b):(i=t*Math.pow(2,b-1)*Math.pow(2,s),a=0));s>=8;e[r+y]=i&255,y+=S,i/=256,s-=8);for(a=a<<s|i,h+=s;h>0;e[r+y]=a&255,y+=S,a/=256,h-=8);e[r+y-S]|=C*128}),rr}var Hn;function pa(){return Hn||(Hn=1,(function(e){const t=bo(),r=So(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=i,e.SlowBuffer=k,e.INSPECT_MAX_BYTES=50;const s=2147483647;e.kMaxLength=s,i.TYPED_ARRAY_SUPPORT=o(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const m=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(m,l),m.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function a(m){if(m>s)throw new RangeError('The value "'+m+'" is invalid for option "size"');const l=new Uint8Array(m);return Object.setPrototypeOf(l,i.prototype),l}function i(m,l,c){if(typeof m=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(m)}return p(m,l,c)}i.poolSize=8192;function p(m,l,c){if(typeof m=="string")return E(m,l);if(ArrayBuffer.isView(m))return S(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(A(m,ArrayBuffer)||m&&A(m.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(A(m,SharedArrayBuffer)||m&&A(m.buffer,SharedArrayBuffer)))return C(m,l,c);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const w=m.valueOf&&m.valueOf();if(w!=null&&w!==m)return i.from(w,l,c);const T=_(m);if(T)return T;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return i.from(m[Symbol.toPrimitive]("string"),l,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}i.from=function(m,l,c){return p(m,l,c)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function h(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function g(m,l,c){return h(m),m<=0?a(m):l!==void 0?typeof c=="string"?a(m).fill(l,c):a(m).fill(l):a(m)}i.alloc=function(m,l,c){return g(m,l,c)};function b(m){return h(m),a(m<0?0:j(m)|0)}i.allocUnsafe=function(m){return b(m)},i.allocUnsafeSlow=function(m){return b(m)};function E(m,l){if((typeof l!="string"||l==="")&&(l="utf8"),!i.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const c=O(m,l)|0;let w=a(c);const T=w.write(m,l);return T!==c&&(w=w.slice(0,T)),w}function y(m){const l=m.length<0?0:j(m.length)|0,c=a(l);for(let w=0;w<l;w+=1)c[w]=m[w]&255;return c}function S(m){if(A(m,Uint8Array)){const l=new Uint8Array(m);return C(l.buffer,l.byteOffset,l.byteLength)}return y(m)}function C(m,l,c){if(l<0||m.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(m.byteLength<l+(c||0))throw new RangeError('"length" is outside of buffer bounds');let w;return l===void 0&&c===void 0?w=new Uint8Array(m):c===void 0?w=new Uint8Array(m,l):w=new Uint8Array(m,l,c),Object.setPrototypeOf(w,i.prototype),w}function _(m){if(i.isBuffer(m)){const l=j(m.length)|0,c=a(l);return c.length===0||m.copy(c,0,0,l),c}if(m.length!==void 0)return typeof m.length!="number"||N(m.length)?a(0):y(m);if(m.type==="Buffer"&&Array.isArray(m.data))return y(m.data)}function j(m){if(m>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return m|0}function k(m){return+m!=m&&(m=0),i.alloc(+m)}i.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==i.prototype},i.compare=function(l,c){if(A(l,Uint8Array)&&(l=i.from(l,l.offset,l.byteLength)),A(c,Uint8Array)&&(c=i.from(c,c.offset,c.byteLength)),!i.isBuffer(l)||!i.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===c)return 0;let w=l.length,T=c.length;for(let I=0,P=Math.min(w,T);I<P;++I)if(l[I]!==c[I]){w=l[I],T=c[I];break}return w<T?-1:T<w?1:0},i.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(l,c){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return i.alloc(0);let w;if(c===void 0)for(c=0,w=0;w<l.length;++w)c+=l[w].length;const T=i.allocUnsafe(c);let I=0;for(w=0;w<l.length;++w){let P=l[w];if(A(P,Uint8Array))I+P.length>T.length?(i.isBuffer(P)||(P=i.from(P)),P.copy(T,I)):Uint8Array.prototype.set.call(T,P,I);else if(i.isBuffer(P))P.copy(T,I);else throw new TypeError('"list" argument must be an Array of Buffers');I+=P.length}return T};function O(m,l){if(i.isBuffer(m))return m.length;if(ArrayBuffer.isView(m)||A(m,ArrayBuffer))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);const c=m.length,w=arguments.length>2&&arguments[2]===!0;if(!w&&c===0)return 0;let T=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return lt(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return d(m).length;default:if(T)return w?-1:lt(m).length;l=(""+l).toLowerCase(),T=!0}}i.byteLength=O;function L(m,l,c){let w=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,l>>>=0,c<=l))return"";for(m||(m="utf8");;)switch(m){case"hex":return H(this,l,c);case"utf8":case"utf-8":return re(this,l,c);case"ascii":return Te(this,l,c);case"latin1":case"binary":return Ce(this,l,c);case"base64":return we(this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Se(this,l,c);default:if(w)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),w=!0}}i.prototype._isBuffer=!0;function V(m,l,c){const w=m[l];m[l]=m[c],m[c]=w}i.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let c=0;c<l;c+=2)V(this,c,c+1);return this},i.prototype.swap32=function(){const l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let c=0;c<l;c+=4)V(this,c,c+3),V(this,c+1,c+2);return this},i.prototype.swap64=function(){const l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let c=0;c<l;c+=8)V(this,c,c+7),V(this,c+1,c+6),V(this,c+2,c+5),V(this,c+3,c+4);return this},i.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?re(this,0,l):L.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(l){if(!i.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:i.compare(this,l)===0},i.prototype.inspect=function(){let l="";const c=e.INSPECT_MAX_BYTES;return l=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(l+=" ... "),"<Buffer "+l+">"},n&&(i.prototype[n]=i.prototype.inspect),i.prototype.compare=function(l,c,w,T,I){if(A(l,Uint8Array)&&(l=i.from(l,l.offset,l.byteLength)),!i.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(c===void 0&&(c=0),w===void 0&&(w=l?l.length:0),T===void 0&&(T=0),I===void 0&&(I=this.length),c<0||w>l.length||T<0||I>this.length)throw new RangeError("out of range index");if(T>=I&&c>=w)return 0;if(T>=I)return-1;if(c>=w)return 1;if(c>>>=0,w>>>=0,T>>>=0,I>>>=0,this===l)return 0;let P=I-T,G=w-c;const fe=Math.min(P,G),ae=this.slice(T,I),me=l.slice(c,w);for(let ce=0;ce<fe;++ce)if(ae[ce]!==me[ce]){P=ae[ce],G=me[ce];break}return P<G?-1:G<P?1:0};function Q(m,l,c,w,T){if(m.length===0)return-1;if(typeof c=="string"?(w=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,N(c)&&(c=T?0:m.length-1),c<0&&(c=m.length+c),c>=m.length){if(T)return-1;c=m.length-1}else if(c<0)if(T)c=0;else return-1;if(typeof l=="string"&&(l=i.from(l,w)),i.isBuffer(l))return l.length===0?-1:te(m,l,c,w,T);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?T?Uint8Array.prototype.indexOf.call(m,l,c):Uint8Array.prototype.lastIndexOf.call(m,l,c):te(m,[l],c,w,T);throw new TypeError("val must be string, number or Buffer")}function te(m,l,c,w,T){let I=1,P=m.length,G=l.length;if(w!==void 0&&(w=String(w).toLowerCase(),w==="ucs2"||w==="ucs-2"||w==="utf16le"||w==="utf-16le")){if(m.length<2||l.length<2)return-1;I=2,P/=2,G/=2,c/=2}function fe(me,ce){return I===1?me[ce]:me.readUInt16BE(ce*I)}let ae;if(T){let me=-1;for(ae=c;ae<P;ae++)if(fe(m,ae)===fe(l,me===-1?0:ae-me)){if(me===-1&&(me=ae),ae-me+1===G)return me*I}else me!==-1&&(ae-=ae-me),me=-1}else for(c+G>P&&(c=P-G),ae=c;ae>=0;ae--){let me=!0;for(let ce=0;ce<G;ce++)if(fe(m,ae+ce)!==fe(l,ce)){me=!1;break}if(me)return ae}return-1}i.prototype.includes=function(l,c,w){return this.indexOf(l,c,w)!==-1},i.prototype.indexOf=function(l,c,w){return Q(this,l,c,w,!0)},i.prototype.lastIndexOf=function(l,c,w){return Q(this,l,c,w,!1)};function ie(m,l,c,w){c=Number(c)||0;const T=m.length-c;w?(w=Number(w),w>T&&(w=T)):w=T;const I=l.length;w>I/2&&(w=I/2);let P;for(P=0;P<w;++P){const G=parseInt(l.substr(P*2,2),16);if(N(G))return P;m[c+P]=G}return P}function oe(m,l,c,w){return v(lt(l,m.length-c),m,c,w)}function ye(m,l,c,w){return v(x(l),m,c,w)}function $(m,l,c,w){return v(d(l),m,c,w)}function z(m,l,c,w){return v(u(l,m.length-c),m,c,w)}i.prototype.write=function(l,c,w,T){if(c===void 0)T="utf8",w=this.length,c=0;else if(w===void 0&&typeof c=="string")T=c,w=this.length,c=0;else if(isFinite(c))c=c>>>0,isFinite(w)?(w=w>>>0,T===void 0&&(T="utf8")):(T=w,w=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const I=this.length-c;if((w===void 0||w>I)&&(w=I),l.length>0&&(w<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");T||(T="utf8");let P=!1;for(;;)switch(T){case"hex":return ie(this,l,c,w);case"utf8":case"utf-8":return oe(this,l,c,w);case"ascii":case"latin1":case"binary":return ye(this,l,c,w);case"base64":return $(this,l,c,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,l,c,w);default:if(P)throw new TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),P=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function we(m,l,c){return l===0&&c===m.length?t.fromByteArray(m):t.fromByteArray(m.slice(l,c))}function re(m,l,c){c=Math.min(m.length,c);const w=[];let T=l;for(;T<c;){const I=m[T];let P=null,G=I>239?4:I>223?3:I>191?2:1;if(T+G<=c){let fe,ae,me,ce;switch(G){case 1:I<128&&(P=I);break;case 2:fe=m[T+1],(fe&192)===128&&(ce=(I&31)<<6|fe&63,ce>127&&(P=ce));break;case 3:fe=m[T+1],ae=m[T+2],(fe&192)===128&&(ae&192)===128&&(ce=(I&15)<<12|(fe&63)<<6|ae&63,ce>2047&&(ce<55296||ce>57343)&&(P=ce));break;case 4:fe=m[T+1],ae=m[T+2],me=m[T+3],(fe&192)===128&&(ae&192)===128&&(me&192)===128&&(ce=(I&15)<<18|(fe&63)<<12|(ae&63)<<6|me&63,ce>65535&&ce<1114112&&(P=ce))}}P===null?(P=65533,G=1):P>65535&&(P-=65536,w.push(P>>>10&1023|55296),P=56320|P&1023),w.push(P),T+=G}return le(w)}const xe=4096;function le(m){const l=m.length;if(l<=xe)return String.fromCharCode.apply(String,m);let c="",w=0;for(;w<l;)c+=String.fromCharCode.apply(String,m.slice(w,w+=xe));return c}function Te(m,l,c){let w="";c=Math.min(m.length,c);for(let T=l;T<c;++T)w+=String.fromCharCode(m[T]&127);return w}function Ce(m,l,c){let w="";c=Math.min(m.length,c);for(let T=l;T<c;++T)w+=String.fromCharCode(m[T]);return w}function H(m,l,c){const w=m.length;(!l||l<0)&&(l=0),(!c||c<0||c>w)&&(c=w);let T="";for(let I=l;I<c;++I)T+=D[m[I]];return T}function Se(m,l,c){const w=m.slice(l,c);let T="";for(let I=0;I<w.length-1;I+=2)T+=String.fromCharCode(w[I]+w[I+1]*256);return T}i.prototype.slice=function(l,c){const w=this.length;l=~~l,c=c===void 0?w:~~c,l<0?(l+=w,l<0&&(l=0)):l>w&&(l=w),c<0?(c+=w,c<0&&(c=0)):c>w&&(c=w),c<l&&(c=l);const T=this.subarray(l,c);return Object.setPrototypeOf(T,i.prototype),T};function q(m,l,c){if(m%1!==0||m<0)throw new RangeError("offset is not uint");if(m+l>c)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(l,c,w){l=l>>>0,c=c>>>0,w||q(l,c,this.length);let T=this[l],I=1,P=0;for(;++P<c&&(I*=256);)T+=this[l+P]*I;return T},i.prototype.readUintBE=i.prototype.readUIntBE=function(l,c,w){l=l>>>0,c=c>>>0,w||q(l,c,this.length);let T=this[l+--c],I=1;for(;c>0&&(I*=256);)T+=this[l+--c]*I;return T},i.prototype.readUint8=i.prototype.readUInt8=function(l,c){return l=l>>>0,c||q(l,1,this.length),this[l]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(l,c){return l=l>>>0,c||q(l,2,this.length),this[l]|this[l+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(l,c){return l=l>>>0,c||q(l,2,this.length),this[l]<<8|this[l+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(l,c){return l=l>>>0,c||q(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(l,c){return l=l>>>0,c||q(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},i.prototype.readBigUInt64LE=W(function(l){l=l>>>0,qe(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&Xe(l,this.length-8);const T=c+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,I=this[++l]+this[++l]*2**8+this[++l]*2**16+w*2**24;return BigInt(T)+(BigInt(I)<<BigInt(32))}),i.prototype.readBigUInt64BE=W(function(l){l=l>>>0,qe(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&Xe(l,this.length-8);const T=c*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],I=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+w;return(BigInt(T)<<BigInt(32))+BigInt(I)}),i.prototype.readIntLE=function(l,c,w){l=l>>>0,c=c>>>0,w||q(l,c,this.length);let T=this[l],I=1,P=0;for(;++P<c&&(I*=256);)T+=this[l+P]*I;return I*=128,T>=I&&(T-=Math.pow(2,8*c)),T},i.prototype.readIntBE=function(l,c,w){l=l>>>0,c=c>>>0,w||q(l,c,this.length);let T=c,I=1,P=this[l+--T];for(;T>0&&(I*=256);)P+=this[l+--T]*I;return I*=128,P>=I&&(P-=Math.pow(2,8*c)),P},i.prototype.readInt8=function(l,c){return l=l>>>0,c||q(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},i.prototype.readInt16LE=function(l,c){l=l>>>0,c||q(l,2,this.length);const w=this[l]|this[l+1]<<8;return w&32768?w|4294901760:w},i.prototype.readInt16BE=function(l,c){l=l>>>0,c||q(l,2,this.length);const w=this[l+1]|this[l]<<8;return w&32768?w|4294901760:w},i.prototype.readInt32LE=function(l,c){return l=l>>>0,c||q(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},i.prototype.readInt32BE=function(l,c){return l=l>>>0,c||q(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},i.prototype.readBigInt64LE=W(function(l){l=l>>>0,qe(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&Xe(l,this.length-8);const T=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(w<<24);return(BigInt(T)<<BigInt(32))+BigInt(c+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)}),i.prototype.readBigInt64BE=W(function(l){l=l>>>0,qe(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&Xe(l,this.length-8);const T=(c<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(T)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+w)}),i.prototype.readFloatLE=function(l,c){return l=l>>>0,c||q(l,4,this.length),r.read(this,l,!0,23,4)},i.prototype.readFloatBE=function(l,c){return l=l>>>0,c||q(l,4,this.length),r.read(this,l,!1,23,4)},i.prototype.readDoubleLE=function(l,c){return l=l>>>0,c||q(l,8,this.length),r.read(this,l,!0,52,8)},i.prototype.readDoubleBE=function(l,c){return l=l>>>0,c||q(l,8,this.length),r.read(this,l,!1,52,8)};function M(m,l,c,w,T,I){if(!i.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>T||l<I)throw new RangeError('"value" argument is out of bounds');if(c+w>m.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(l,c,w,T){if(l=+l,c=c>>>0,w=w>>>0,!T){const G=Math.pow(2,8*w)-1;M(this,l,c,w,G,0)}let I=1,P=0;for(this[c]=l&255;++P<w&&(I*=256);)this[c+P]=l/I&255;return c+w},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(l,c,w,T){if(l=+l,c=c>>>0,w=w>>>0,!T){const G=Math.pow(2,8*w)-1;M(this,l,c,w,G,0)}let I=w-1,P=1;for(this[c+I]=l&255;--I>=0&&(P*=256);)this[c+I]=l/P&255;return c+w},i.prototype.writeUint8=i.prototype.writeUInt8=function(l,c,w){return l=+l,c=c>>>0,w||M(this,l,c,1,255,0),this[c]=l&255,c+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(l,c,w){return l=+l,c=c>>>0,w||M(this,l,c,2,65535,0),this[c]=l&255,this[c+1]=l>>>8,c+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(l,c,w){return l=+l,c=c>>>0,w||M(this,l,c,2,65535,0),this[c]=l>>>8,this[c+1]=l&255,c+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(l,c,w){return l=+l,c=c>>>0,w||M(this,l,c,4,4294967295,0),this[c+3]=l>>>24,this[c+2]=l>>>16,this[c+1]=l>>>8,this[c]=l&255,c+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(l,c,w){return l=+l,c=c>>>0,w||M(this,l,c,4,4294967295,0),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4};function ee(m,l,c,w,T){Le(l,w,T,m,c,7);let I=Number(l&BigInt(4294967295));m[c++]=I,I=I>>8,m[c++]=I,I=I>>8,m[c++]=I,I=I>>8,m[c++]=I;let P=Number(l>>BigInt(32)&BigInt(4294967295));return m[c++]=P,P=P>>8,m[c++]=P,P=P>>8,m[c++]=P,P=P>>8,m[c++]=P,c}function ne(m,l,c,w,T){Le(l,w,T,m,c,7);let I=Number(l&BigInt(4294967295));m[c+7]=I,I=I>>8,m[c+6]=I,I=I>>8,m[c+5]=I,I=I>>8,m[c+4]=I;let P=Number(l>>BigInt(32)&BigInt(4294967295));return m[c+3]=P,P=P>>8,m[c+2]=P,P=P>>8,m[c+1]=P,P=P>>8,m[c]=P,c+8}i.prototype.writeBigUInt64LE=W(function(l,c=0){return ee(this,l,c,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=W(function(l,c=0){return ne(this,l,c,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(l,c,w,T){if(l=+l,c=c>>>0,!T){const fe=Math.pow(2,8*w-1);M(this,l,c,w,fe-1,-fe)}let I=0,P=1,G=0;for(this[c]=l&255;++I<w&&(P*=256);)l<0&&G===0&&this[c+I-1]!==0&&(G=1),this[c+I]=(l/P>>0)-G&255;return c+w},i.prototype.writeIntBE=function(l,c,w,T){if(l=+l,c=c>>>0,!T){const fe=Math.pow(2,8*w-1);M(this,l,c,w,fe-1,-fe)}let I=w-1,P=1,G=0;for(this[c+I]=l&255;--I>=0&&(P*=256);)l<0&&G===0&&this[c+I+1]!==0&&(G=1),this[c+I]=(l/P>>0)-G&255;return c+w},i.prototype.writeInt8=function(l,c,w){return l=+l,c=c>>>0,w||M(this,l,c,1,127,-128),l<0&&(l=255+l+1),this[c]=l&255,c+1},i.prototype.writeInt16LE=function(l,c,w){return l=+l,c=c>>>0,w||M(this,l,c,2,32767,-32768),this[c]=l&255,this[c+1]=l>>>8,c+2},i.prototype.writeInt16BE=function(l,c,w){return l=+l,c=c>>>0,w||M(this,l,c,2,32767,-32768),this[c]=l>>>8,this[c+1]=l&255,c+2},i.prototype.writeInt32LE=function(l,c,w){return l=+l,c=c>>>0,w||M(this,l,c,4,2147483647,-2147483648),this[c]=l&255,this[c+1]=l>>>8,this[c+2]=l>>>16,this[c+3]=l>>>24,c+4},i.prototype.writeInt32BE=function(l,c,w){return l=+l,c=c>>>0,w||M(this,l,c,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4},i.prototype.writeBigInt64LE=W(function(l,c=0){return ee(this,l,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=W(function(l,c=0){return ne(this,l,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ve(m,l,c,w,T,I){if(c+w>m.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function Pe(m,l,c,w,T){return l=+l,c=c>>>0,T||ve(m,l,c,4),r.write(m,l,c,w,23,4),c+4}i.prototype.writeFloatLE=function(l,c,w){return Pe(this,l,c,!0,w)},i.prototype.writeFloatBE=function(l,c,w){return Pe(this,l,c,!1,w)};function ue(m,l,c,w,T){return l=+l,c=c>>>0,T||ve(m,l,c,8),r.write(m,l,c,w,52,8),c+8}i.prototype.writeDoubleLE=function(l,c,w){return ue(this,l,c,!0,w)},i.prototype.writeDoubleBE=function(l,c,w){return ue(this,l,c,!1,w)},i.prototype.copy=function(l,c,w,T){if(!i.isBuffer(l))throw new TypeError("argument should be a Buffer");if(w||(w=0),!T&&T!==0&&(T=this.length),c>=l.length&&(c=l.length),c||(c=0),T>0&&T<w&&(T=w),T===w||l.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),l.length-c<T-w&&(T=l.length-c+w);const I=T-w;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(c,w,T):Uint8Array.prototype.set.call(l,this.subarray(w,T),c),I},i.prototype.fill=function(l,c,w,T){if(typeof l=="string"){if(typeof c=="string"?(T=c,c=0,w=this.length):typeof w=="string"&&(T=w,w=this.length),T!==void 0&&typeof T!="string")throw new TypeError("encoding must be a string");if(typeof T=="string"&&!i.isEncoding(T))throw new TypeError("Unknown encoding: "+T);if(l.length===1){const P=l.charCodeAt(0);(T==="utf8"&&P<128||T==="latin1")&&(l=P)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(c<0||this.length<c||this.length<w)throw new RangeError("Out of range index");if(w<=c)return this;c=c>>>0,w=w===void 0?this.length:w>>>0,l||(l=0);let I;if(typeof l=="number")for(I=c;I<w;++I)this[I]=l;else{const P=i.isBuffer(l)?l:i.from(l,T),G=P.length;
2if(G===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(I=0;I<w-c;++I)this[I+c]=P[I%G]}return this};const je={};function Me(m,l,c){je[m]=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${m}]`,this.stack,delete this.name}get code(){return m}set code(T){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:T,writable:!0})}toString(){return`${this.name} [${m}]: ${this.message}`}}}Me("ERR_BUFFER_OUT_OF_BOUNDS",function(m){return m?`${m} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Me("ERR_INVALID_ARG_TYPE",function(m,l){return`The "${m}" argument must be of type number. Received type ${typeof l}`},TypeError),Me("ERR_OUT_OF_RANGE",function(m,l,c){let w=`The value of "${m}" is out of range.`,T=c;return Number.isInteger(c)&&Math.abs(c)>2**32?T=Je(String(c)):typeof c=="bigint"&&(T=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(T=Je(T)),T+="n"),w+=` It must be ${l}. Received ${T}`,w},RangeError);function Je(m){let l="",c=m.length;const w=m[0]==="-"?1:0;for(;c>=w+4;c-=3)l=`_${m.slice(c-3,c)}${l}`;return`${m.slice(0,c)}${l}`}function Ze(m,l,c){qe(l,"offset"),(m[l]===void 0||m[l+c]===void 0)&&Xe(l,m.length-(c+1))}function Le(m,l,c,w,T,I){if(m>c||m<l){const P=typeof l=="bigint"?"n":"";let G;throw l===0||l===BigInt(0)?G=`>= 0${P} and < 2${P} ** ${(I+1)*8}${P}`:G=`>= -(2${P} ** ${(I+1)*8-1}${P}) and < 2 ** ${(I+1)*8-1}${P}`,new je.ERR_OUT_OF_RANGE("value",G,m)}Ze(w,T,I)}function qe(m,l){if(typeof m!="number")throw new je.ERR_INVALID_ARG_TYPE(l,"number",m)}function Xe(m,l,c){throw Math.floor(m)!==m?(qe(m,c),new je.ERR_OUT_OF_RANGE("offset","an integer",m)):l<0?new je.ERR_BUFFER_OUT_OF_BOUNDS:new je.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,m)}const gt=/[^+/0-9A-Za-z-_]/g;function Qe(m){if(m=m.split("=")[0],m=m.trim().replace(gt,""),m.length<2)return"";for(;m.length%4!==0;)m=m+"=";return m}function lt(m,l){l=l||1/0;let c;const w=m.length;let T=null;const I=[];for(let P=0;P<w;++P){if(c=m.charCodeAt(P),c>55295&&c<57344){if(!T){if(c>56319){(l-=3)>-1&&I.push(239,191,189);continue}else if(P+1===w){(l-=3)>-1&&I.push(239,191,189);continue}T=c;continue}if(c<56320){(l-=3)>-1&&I.push(239,191,189),T=c;continue}c=(T-55296<<10|c-56320)+65536}else T&&(l-=3)>-1&&I.push(239,191,189);if(T=null,c<128){if((l-=1)<0)break;I.push(c)}else if(c<2048){if((l-=2)<0)break;I.push(c>>6|192,c&63|128)}else if(c<65536){if((l-=3)<0)break;I.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((l-=4)<0)break;I.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return I}function x(m){const l=[];for(let c=0;c<m.length;++c)l.push(m.charCodeAt(c)&255);return l}function u(m,l){let c,w,T;const I=[];for(let P=0;P<m.length&&!((l-=2)<0);++P)c=m.charCodeAt(P),w=c>>8,T=c%256,I.push(T),I.push(w);return I}function d(m){return t.toByteArray(Qe(m))}function v(m,l,c,w){let T;for(T=0;T<w&&!(T+c>=l.length||T>=m.length);++T)l[T+c]=m[T];return T}function A(m,l){return m instanceof l||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===l.name}function N(m){return m!==m}const D=(function(){const m="0123456789abcdef",l=new Array(256);for(let c=0;c<16;++c){const w=c*16;for(let T=0;T<16;++T)l[w+T]=m[c]+m[T]}return l})();function W(m){return typeof BigInt>"u"?Z:m}function Z(){throw new Error("BigInt not supported")}})(Br)),Br}var ma=pa(),nr={},Kn;function ga(){if(Kn)return nr;Kn=1;var e=Yi();return nr.createRoot=e.createRoot,nr.hydrateRoot=e.hydrateRoot,nr}var ya=ga();const wa=Ji(ya);var xa=Symbol("radix.slottable");function va(e){const t=({children:r})=>f.jsx(f.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=xa,t}var[Tr]=Xs("Tooltip",[Er]),Ar=Er(),Eo="TooltipProvider",ba=700,Jr="tooltip.open",[Sa,Sn]=Tr(Eo),Co=e=>{const{__scopeTooltip:t,delayDuration:r=ba,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:o}=e,a=R.useRef(!0),i=R.useRef(!1),p=R.useRef(0);return R.useEffect(()=>{const h=p.current;return()=>window.clearTimeout(h)},[]),f.jsx(Sa,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:R.useCallback(()=>{window.clearTimeout(p.current),a.current=!1},[]),onClose:R.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:R.useCallback(h=>{i.current=h},[]),disableHoverableContent:s,children:o})};Co.displayName=Eo;var Ht="Tooltip",[Ea,Yt]=Tr(Ht),To=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:s,onOpenChange:o,disableHoverableContent:a,delayDuration:i}=e,p=Sn(Ht,e.__scopeTooltip),h=Ar(t),[g,b]=R.useState(null),E=ro(),y=R.useRef(0),S=a??p.disableHoverableContent,C=i??p.delayDuration,_=R.useRef(!1),[j,k]=no({prop:n,defaultProp:s??!1,onChange:te=>{te?(p.onOpen(),document.dispatchEvent(new CustomEvent(Jr))):p.onClose(),o?.(te)},caller:Ht}),O=R.useMemo(()=>j?_.current?"delayed-open":"instant-open":"closed",[j]),L=R.useCallback(()=>{window.clearTimeout(y.current),y.current=0,_.current=!1,k(!0)},[k]),V=R.useCallback(()=>{window.clearTimeout(y.current),y.current=0,k(!1)},[k]),Q=R.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{_.current=!0,k(!0),y.current=0},C)},[C,k]);return R.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),f.jsx(so,{...h,children:f.jsx(Ea,{scope:t,contentId:E,open:j,stateAttribute:O,trigger:g,onTriggerChange:b,onTriggerEnter:R.useCallback(()=>{p.isOpenDelayedRef.current?Q():L()},[p.isOpenDelayedRef,Q,L]),onTriggerLeave:R.useCallback(()=>{S?V():(window.clearTimeout(y.current),y.current=0)},[V,S]),onOpen:L,onClose:V,disableHoverableContent:S,children:r})})};To.displayName=Ht;var Zr="TooltipTrigger",Ao=R.forwardRef((e,t)=>
vendor: 4,167 bytes, line 2
2{const{__scopeTooltip:r,...n}=e,s=Yt(Zr,r),o=Sn(Zr,r),a=Ar(r),i=R.useRef(null),p=Cr(t,i,s.onTriggerChange),h=R.useRef(!1),g=R.useRef(!1),b=R.useCallback(()=>h.current=!1,[]);return R.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),f.jsx(vn,{asChild:!0,...a,children:f.jsx(bn.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:p,onPointerMove:Ke(e.onPointerMove,E=>{E.pointerType!=="touch"&&!g.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),g.current=!0)}),onPointerLeave:Ke(e.onPointerLeave,()=>{s.onTriggerLeave(),g.current=!1}),onPointerDown:Ke(e.onPointerDown,()=>{s.open&&s.onClose(),h.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:Ke(e.onFocus,()=>{h.current||s.onOpen()}),onBlur:Ke(e.onBlur,s.onClose),onClick:Ke(e.onClick,s.onClose)})})});Ao.displayName=Zr;var En="TooltipPortal",[Ca,Ta]=Tr(En,{forceMount:void 0}),Ro=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:s}=e,o=Yt(En,t);return f.jsx(Ca,{scope:t,forceMount:r,children:f.jsx(Sr,{present:r||o.open,children:f.jsx(Qs,{asChild:!0,container:s,children:n})})})};Ro.displayName=En;var bt="TooltipContent",_o=R.forwardRef((e,t)=>{const r=Ta(bt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...o}=e,a=Yt(bt,e.__scopeTooltip);return f.jsx(Sr,{present:n||a.open,children:a.disableHoverableContent?f.jsx(Io,{side:s,...o,ref:t}):f.jsx(Aa,{side:s,...o,ref:t})})}),Aa=R.forwardRef((e,t)=>{const r=Yt(bt,e.__scopeTooltip),n=Sn(bt,e.__scopeTooltip),s=R.useRef(null),o=Cr(t,s),[a,i]=R.useState(null),{trigger:p,onClose:h}=r,g=s.current,{onPointerInTransitChange:b}=n,E=R.useCallback(()=>{i(null),b(!1)},[b]),y=R.useCallback((S,C)=>{const _=S.currentTarget,j={x:S.clientX,y:S.clientY},k=ka(j,_.getBoundingClientRect()),O=Na(j,k),L=Pa(C.getBoundingClientRect()),V=Da([...O,...L]);i(V),b(!0)},[b]);return R.useEffect(()=>()=>E(),[E]),R.useEffect(()=>{if(p&&g){const S=_=>y(_,g),C=_=>y(_,p);return p.addEventListener("pointerleave",S),g.addEventListener("pointerleave",C),()=>{p.removeEventListener("pointerleave",S),g.removeEventListener("pointerleave",C)}}},[p,g,y,E]),R.useEffect(()=>{if(a){const S=C=>{const _=C.target,j={x:C.clientX,y:C.clientY},k=p?.contains(_)||g?.contains(_),O=!ja(j,a);k?E():O&&(E(),h())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[p,g,a,h,E]),f.jsx(Io,{...e,ref:o})}),[Ra,_a]=Tr(Ht,{isInside:!1}),Ia=va("TooltipContent"),Io=R.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:a,...i}=e,p=Yt(bt,r),h=Ar(r),{onClose:g}=p;return R.useEffect(()=>(document.addEventListener(Jr,g),()=>document.removeEventListener(Jr,g)),[g]),R.useEffect(()=>{if(p.trigger){const b=E=>{E.target?.contains(p.trigger)&&g()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[p.trigger,g]),f.jsx(eo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:b=>b.preventDefault(),onDismiss:g,children:f.jsxs(to,{"data-state":p.stateAttribute,...h,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[f.jsx(Ia,{children:n}),f.jsx(Ra,{scope:r,isInside:!0,children:f.jsx(ra,{id:p.contentId,role:"tooltip",children:s||n})})]})})});_o.displayName=bt;var Uo="TooltipArrow",Ua=R.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Ar(r);return _a(Uo,r).isInside?null:f.jsx(oo,{...s,...n,ref:t})});Ua.displayName=Uo;function ka(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,s,o)){case o:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Na(e,t,r=5){const n=[];
2switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Pa(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function ja(e,t){const{x:r,y:n}=e;let s=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const i=t[o],p=t[a],h=i.x,g=i.y,b=p.x,E=p.y;g>n!=E>n&&r<(b-h)*(n-g)/(E-g)+h&&(s=!s)}return s}function Da(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Ba(t)}function Ba(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(s.y-a.y)>=(o.y-a.y)*(s.x-a.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const o=r[r.length-1],a=r[r.length-2];if((o.x-a.x)*(s.y-a.y)>=(o.y-a.y)*(s.x-a.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Oa=Co,Fa=To,Ma=Ao,La=Ro,ko=_o;function No(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=No(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Po(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=No(e))&&(n&&(n+=" "),n+=t);return n}const Cn="-",qa=e=>{const t=$a(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const i=a.split(Cn);return i[0]===""&&i.length!==1&&i.shift(),jo(i,t)||Va(a)},getConflictingClassGroupIds:(a,i)=>{const p=r[a]||[];return i&&n[a]?[...p,...n[a]]:p}}},jo=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?jo(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(Cn);return t.validators.find(({validator:a})=>a(o))?.classGroupId},Wn=/^\[(.+)\]$/,Va=e=>{if(Wn.test(e)){const t=Wn.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},$a=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Ha(Object.entries(e.classGroups),r).forEach(([o,a])=>{Xr(a,n,o,t)}),n},Xr=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:Gn(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(za(s)){Xr(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,a])=>{Xr(a,Gn(t,o),r,n)})})},Gn=(e,t)=>{let r=e;return t.split(Cn).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},za=e=>e.isThemeGetter,Ha=(e,t)=>t?e.map(([r,n])=>{const s=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,i])=>[t+a,i])):o);return[r,s]}):e,Ka=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(o,a)=>{r.set(o,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let a=r.get(o);if(a!==void 0)return a;if((a=n.get(o))!==void 0)return s(o,a),a},set(o,a){r.has(o)?r.set(o,a):s(o,a)}}},Do="!",Wa=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],o=t.length,a=i=>{const p=[];let h=0,g=0,b;for(let _=0;_<i.length;_++){let j=i[_];if(h===0){if(j===s&&(n||i.slice(_,_+o)===t)){p.push(i.slice(g,_)),g=_+o;continue}if(j==="/"){b=_;continue}}j==="["?h++:j==="]"&&h--}const E=p.length===0?i:i.substring(g),y=E.startsWith(Do),S=y?E.substring(1):E,C=b&&b>g?b-g:void 0;return{modifiers:p,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:C}};return r?i=>r({className:i,parseClassName:a}):a},Ga=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Ya=e=>({cache:Ka(e.cacheSize),parseClassName:Wa(e),...qa(e)}),Ja=/\s+/,Za=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,o=[],a=e.trim().split(Ja);let i="";for(let p=a.length-1;p>=0;p-=1){const h=a[p],{modifiers:g,hasImportantModifier:b,baseClassName:E,maybePostfixModifierPosition:y}=r(h);let S=!!y,C=n(S?E.substring(0,y):E);if(!C){if(!S){i=h+(i.length>0?" "+i:i);continue}if(C=n(E),!C){i=h+(i.length>0?" "+i:i);continue}S=!1}const _=Ga(g).join(":"),j=b?_+Do:_,k=j+C;if(o.includes(k))continue;o.push(k);const O=s(C,S);for(let L=0;L<O.length;++L){const V=O[L];o.push(j+V)}i=h+(i.length>0?" "+i:i)}return i};function Xa(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Bo(t))&&(n&&(n+=" "),n+=r);return n}const Bo=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Bo(e[n]))&&(r&&(r+=" "),r+=t);return r};function Qa(e,...t){let r,n,s,o=a;function a(p){const h=t.reduce((g,b)=>b(g),e());return r=Ya(h),n=r.cache.get,s=r.cache.set,o=i,i(p)}function i(p){const h=n(p);if(h)return h;const g=Za(p,r);return s(p,g),g}return function(){return o(Xa.apply(null,arguments))}}const he=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Oo=/^\[(?:([a-z-]+):)?(.+)\]$/i,el=/^\d+\/\d+$/,tl=new Set(["px","full","screen"]),rl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nl=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ol=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,il=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,et=e=>vt(e)||tl.has(e)||el.test(e),st=e=>Tt(e,"length",pl),vt=e=>!!e&&!Number.isNaN(Number(e)),Or=e=>Tt(e,"number",vt),Nt=e=>!!e&&Number.isInteger(Number(e)),al=e=>e.endsWith("%")&&vt(e.slice(0,-1)),X=e=>Oo.test(e),ot=e=>rl.test(e),ll=new Set(["length","size","percentage"]),cl=e=>Tt(e,ll,Fo),ul=e=>Tt(e,"position",Fo),dl=new Set(["image","url"]),fl=e=>Tt(e,dl,gl),hl=e=>Tt(e,"",ml),Pt=()=>!0,Tt=(e,t,r)=>{const n=Oo.exec(e);
vendor: 7,736 bytes, line 2
2return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},pl=e=>nl.test(e)&&!sl.test(e),Fo=()=>!1,ml=e=>ol.test(e),gl=e=>il.test(e),yl=()=>{const e=he("colors"),t=he("spacing"),r=he("blur"),n=he("brightness"),s=he("borderColor"),o=he("borderRadius"),a=he("borderSpacing"),i=he("borderWidth"),p=he("contrast"),h=he("grayscale"),g=he("hueRotate"),b=he("invert"),E=he("gap"),y=he("gradientColorStops"),S=he("gradientColorStopPositions"),C=he("inset"),_=he("margin"),j=he("opacity"),k=he("padding"),O=he("saturate"),L=he("scale"),V=he("sepia"),Q=he("skew"),te=he("space"),ie=he("translate"),oe=()=>["auto","contain","none"],ye=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",X,t],z=()=>[X,t],we=()=>["",et,st],re=()=>["auto",vt,X],xe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ce=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",X],Se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>[vt,X];return{cacheSize:500,separator:":",theme:{colors:[Pt],spacing:[et,st],blur:["none","",ot,X],brightness:q(),borderColor:[e],borderRadius:["none","","full",ot,X],borderSpacing:z(),borderWidth:we(),contrast:q(),grayscale:H(),hueRotate:q(),invert:H(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[al,st],inset:$(),margin:$(),opacity:q(),padding:z(),saturate:q(),scale:q(),sepia:H(),skew:q(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[ot]}],"break-after":[{"break-after":Se()}],"break-before":[{"break-before":Se()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...xe(),X]}],overflow:[{overflow:ye()}],"overflow-x":[{"overflow-x":ye()}],"overflow-y":[{"overflow-y":ye()}],overscroll:[{overscroll:oe()}],"overscroll-x":[{"overscroll-x":oe()}],"overscroll-y":[{"overscroll-y":oe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Nt,X]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",Nt,X]}],"grid-cols":[{"grid-cols":[Pt]}],"col-start-end":[{col:["auto",{span:["full",Nt,X]},X]}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":[Pt]}],"row-start-end":[{row:["auto",{span:[Nt,X]},X]}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...Ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[te]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[te]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",X,t]}],"min-w":[{"min-w":[X,t,"min","max","fit"]}],"max-w":[{"max-w":[X,t,"none","full","min","max","fit","prose",{screen:[ot]},ot]}],h:[{h:[X,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ot,st]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Or]}],"font-family":[{font:[Pt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",X]}],"line-clamp":[{"line-clamp":["none",vt,Or]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",et,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",et,st]}],"underline-offset":[{"underline-offset":["auto",et,X]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...xe(),ul]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cl]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fl]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}
vendor: 5,180 bytes, line 2
2],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[j]}],"border-style":[{border:[...le(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[j]}],"divide-style":[{divide:le()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[et,X]}],"outline-w":[{outline:[et,st]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[et,st]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ot,hl]}],"shadow-color":[{shadow:[Pt]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":[...Te(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Te()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",ot,X]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[b]}],saturate:[{saturate:[O]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[O]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",X]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[Nt,X]}],"translate-x":[{"translate-x":[ie]}],"translate-y":[{"translate-y":[ie]}],"skew-x":[{"skew-x":[Q]}],"skew-y":[{"skew-y":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",X]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
2],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[et,st,Or]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},wl=Qa(yl);function K(...e){return wl(Po(e))}function Qp(e){let t;return typeof e=="number"?t=new Date(e*1e3):typeof e=="string"&&/^\d{9,10}$/.test(e)?t=new Date(parseInt(e,10)*1e3):t=new Date(e),t.toLocaleString("en-GB",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}const xl=Oa,em=Fa,tm=Ma,vl=R.forwardRef(({className:e,sideOffset:t=4,...r},n)=>f.jsx(La,{children:f.jsx(ko,{ref:n,sideOffset:t,className:K("z-50 overflow-hidden rounded-md bg-secondary text-secondary-foreground border px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 origin-[--radix-tooltip-content-transform-origin]",e),...r})}));vl.displayName=ko.displayName;const bl="modulepreload",Sl=function(e){return"/"+e},Yn={},_e=function(t,r,n){let s=Promise.resolve();if(r&&r.length>0){let p=function(h){return Promise.all(h.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),i=a?.nonce||a?.getAttribute("nonce");s=p(r.map(h=>{if(h=Sl(h),h in Yn)return;Yn[h]=!0;const g=h.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${b}`))return;const E=document.createElement("link");if(E.rel=g?"stylesheet":bl,g||(E.as="script"),E.crossOrigin="",E.href=h,i&&E.setAttribute("nonce",i),document.head.appendChild(E),g)return new Promise((y,S)=>{E.addEventListener("load",y),E.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${h}`)))})}))}function o(a){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a}return s.then(a=>{for(const i of a||[])i.status==="rejected"&&o(i.reason);return t().catch(o)})};function Qr({size:e=32,className:t}){return f.jsxs("svg",{width:e,height:e,viewBox:"0 0 256 256",className:K(t),xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M 126.33 9.36 L 126.34 66.33 L 28.12 66.29 Z",fill:"none",stroke:"hsl(var(--primary))",strokeWidth:"10",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M 25.71 69.3 L 127.19 127.82 L 127.17 245.05 L 25.70 186.47 Z",fill:"none",stroke:"hsl(var(--primary))",strokeWidth:"10",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M 230.34 69.25 L 230.39 186.39 L 128.86 245.03 L 128.88 127.80 Z",fill:"none",stroke:"hsl(var(--primary))",strokeWidth:"10",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("path",{d:"M 128.02 9.68 L 229 67.97 L 128.04 126.23 L 27.04 67.99 L 128 68.03 L 128.02 9.68 Z",fill:"none",stroke:"hsl(var(--primary))",strokeWidth:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Tn({size:e=64,className:t,color:r}){return f.jsxs("svg",{width:e,height:e,viewBox:"0 0 256 256",className:K("logo-spinner",t),xmlns:"http://www.w3.org/2000/svg",style:{color:r||"hsl(var(--spinner))"},children:[f.jsx("style",{children:`
3          .logo-spinner path {
4            fill: none;
5            stroke-width: 10;
6            stroke-linecap: round;
7            stroke-linejoin: round;
8          }
9          
10          /* Top triangle */
11          .logo-spinner .top-triangle {
12            stroke: currentColor;
13            stroke-dasharray: 0 350;
14            stroke-dashoffset: 0;
15            animation: draw-erase-350 2.4s ease-in-out infinite;
16          }
17          
18          /* Left face */
19          .logo-spinner .left-face {
20            stroke: currentColor;
21            stroke-dasharray: 0 450;
22            stroke-dashoffset: 0;
23            animation: draw-erase-450 2.4s ease-in-out infinite;
24            animation-delay: 0.15s;
25          }
26          
27          /* Right face */
28          .logo-spinner .right-face {
29            stroke: currentColor;
30            stroke-dasharray: 0 450;
31            stroke-dashoffset: 0;
32            animation: draw-erase-450 2.4s ease-in-out infinite;
33            animation-delay: 0.3s;
34          }
35          
36          /* Top face outline */
37          .logo-spinner .top-face {
38            stroke: currentColor;
39            stroke-dasharray: 0 500;
40            stroke-dashoffset: 0;
41            animation: draw-erase-500 2.4s ease-in-out infinite;
42            animation-delay: 0.45s;
43          }
44          
45          /* Draw by growing dash, erase by shifting gap to cover from start */
46          @keyframes draw-erase-350 {
47            0% {
48              stroke-dasharray: 0 350;
49              stroke-dashoffset: 0;
50            }
51            35% {
52              stroke-dasharray: 350 350;
53              stroke-dashoffset: 0;
54            }
55            50% {
56              stroke-dasharray: 350 350;
57              stroke-dashoffset: 0;
58            }
59            85% {
60              stroke-dasharray: 350 350;
61              stroke-dashoffset: 350;
62            }
63            100% {
64              stroke-dasharray: 350 350;
65              stroke-dashoffset: 350;
66            }
67          }
68          
69          @keyframes draw-erase-450 {
70            0% {
71              stroke-dasharray: 0 450;
72              stroke-dashoffset: 0;
73            }
74            35% {
75              stroke-dasharray: 450 450;
76              stroke-dashoffset: 0;
77            }
78            50% {
79              stroke-dasharray: 450 450;
80              stroke-dashoffset: 0;
81            }
82            85% {
83              stroke-dasharray: 450 450;
84              stroke-dashoffset: 450;
85            }
86            100% {
87              stroke-dasharray: 450 450;
88              stroke-dashoffset: 450;
89            }
90          }
91          
92          @keyframes draw-erase-600 {
93            0% {
94              stroke-dasharray: 0 600;
95              stroke-dashoffset: 0;
96            }
97            35% {
98              stroke-dasharray: 600 600;
99              stroke-dashoffset: 0;
100            }
101            50% {
102              stroke-dasharray: 600 600;
103              stroke-dashoffset: 0;
104            }
105            85% {
106              stroke-dasharray: 600 600;
107              stroke-dashoffset: 600;
108            }
109            100% {
110              stroke-dasharray: 600 600;
111              stroke-dashoffset: 600;
112            }
113          }
114          
115          @keyframes draw-erase-500 {
116            0% {
117              stroke-dasharray: 0 500;
118              stroke-dashoffset: 0;
119            }
120            35% {
121              stroke-dasharray: 500 500;
122              stroke-dashoffset: 0;
123            }
124            50% {
125              stroke-dasharray: 500 500;
126              stroke-dashoffset: 0;
127            }
128            85% {
129              stroke-dasharray: 500 500;
130              stroke-dashoffset: 500;
131            }
132            100% {
133              stroke-dasharray: 500 500;
134              stroke-dashoffset: 500;
135            }
136          }
137        `}),f.jsx("path",{className:"top-triangle",d:"M 126.33 9.36 L 126.34 66.33 L 28.12 66.29 Z"}),f.jsx("path",{className:"left-face",d:"M 127.19 127.82 L 127.17 245.05 L 25.7 186.47 L 25.71 69.3"}),f.jsx("path",{className:"right-face",d:"M 230.34 69.25 L 230.39 186.39 L 128.86 245.03 L 128.88 127.8"}),f.jsx("path",{className:"top-face",d:"M 128.02 9.68 L 229 67.97 L 128.04 126.23 L 27.04 67.99"})]})}function El(){return f.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-background/80 backdrop-blur-sm z-50",children:f.jsx(Tn,{size:96})})}function rm({className:e}){return f.jsx("div",{className:K("flex items-center justify-center p-8",e),children:f.jsx(Tn,{size:48})})}var Cl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Tl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),se=(e,t)=>{const r=R.forwardRef(({color:n="currentColor",size:s=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:i="",children:p,...h},g)=>R.createElement("svg",{ref:g,...Cl,width:s,height:s,stroke:n,strokeWidth:a?Number(o)*24/Number(s):o,className:["lucide",`lucide-${Tl(e)}`,i].join(" "),...h},[...t.map(([b,E])=>R.createElement(b,E)),...Array.isArray(p)?p:[p]]));return r.displayName=`${e}`,r};const Al=se("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const Rl=se("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);const _l=se("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}
137],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);const Il=se("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]]);const Ul=se("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const kl=se("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Nl=se("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const lr=se("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Pl=se("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const jl=se("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);const Mo=se("Crown",[["path",{d:"m2 4 3 12h14l3-12-6 7-4-7-4 7-6-7zm3 16h14",key:"zkxr6b"}]]);const Dl=se("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const Bl=se("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]);const Ol=se("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);const Fl=se("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const Lo=se("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);const Ml=se("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);const Ll=se("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);const ql=se("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);const Vl=se("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);const $l=se("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);const Jn=se("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);const zl=se("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const Hl=se("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z",key:"ymcmye"}]]);const Kl=se("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const en=se("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
137kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);const qo=se("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const Vo=se("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);const Zn=se("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);const $o=se("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const Wl=se("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);const An=se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);const Gl=se("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),Yl="https://api.delivr.to",Jl="https://api.delivr.to",Zl="https://delivrto.me",Xl="eu-west-2_9DhsxVS8U",pt="1vrddd8j39trhppuot7be6om5c",Jt="delivr.to",Ql=`https://auth.${Jt}/oauth2/authorize`,nm=Ql,ec="https://docs.delivr.to",tc="https://github.com/delivr-to",rc="https://blog.delivr.to",nc="[email protected]",sc="https://delivr-to.slack.com";function oc(e){const t=ic(e),r=R.forwardRef((n,s)=>{const{children:o,...a}=n,i=R.Children.toArray(o),p=i.find(lc);if(p){const h=p.props.children,g=i.map(b=>b===p?R.Children.count(h)>1?R.Children.only(null):R.isValidElement(h)?h.props.children:null:b);return f.jsx(t,{...a,ref:s,children:R.isValidElement(h)?R.cloneElement(h,void 0,g):null})}return f.jsx(t,{...a,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}function ic(e){const t=R.forwardRef((r,n)=>{const{children:s,...o}=r;if(R.isValidElement(s)){const a=uc(s),i=cc(o,s.props);return s.type!==R.Fragment&&(i.ref=n?io(n,a):a),R.cloneElement(s,i)}return R.Children.count(s)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ac=Symbol("radix.slottable");function lc(e){return R.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ac}function cc(e,t){const r={...t};for(const n in t){const s=e[n],o=t[n];/^on[A-Z]/.test(n)?s&&o?r[n]=(...i)=>{const p=o(...i);return s(...i),p}:s&&(r[n]=s):n==="style"?r[n]={...s,...o}:n==="className"&&(r[n]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function uc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Rr="Popover",[zo]=Xs(Rr,[Er]),Zt=Er(),[dc,at]=zo(Rr),Ho=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:s,onOpenChange:o,modal:a=!1}=e,i=Zt(t),p=R.useRef(null),[h,g]=R.useState(!1),[b,E]=no({prop:n,defaultProp:s??!1,onChange:o,caller:Rr});return f.jsx(so,{...i,children:f.jsx(dc,{scope:t,contentId:ro(),triggerRef:p,open:b,onOpenChange:E,onOpenToggle:R.useCallback(()=>E(y=>!y),[E]),hasCustomAnchor:h,onCustomAnchorAdd:R.useCallback(()=>g(!0),[]),onCustomAnchorRemove:R.useCallback(()=>g(!1),[]),modal:a,children:r})})};Ho.displayName=Rr;var Ko="PopoverAnchor",fc=R.forwardRef((e,t)=>
vendor: 4,346 bytes, line 137
137{const{__scopePopover:r,...n}=e,s=at(Ko,r),o=Zt(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=s;return R.useEffect(()=>(a(),()=>i()),[a,i]),f.jsx(vn,{...o,...n,ref:t})});fc.displayName=Ko;var Wo="PopoverTrigger",Go=R.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=at(Wo,r),o=Zt(r),a=Cr(t,s.triggerRef),i=f.jsx(bn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Qo(s.open),...n,ref:a,onClick:Ke(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?i:f.jsx(vn,{asChild:!0,...o,children:i})});Go.displayName=Wo;var Rn="PopoverPortal",[hc,pc]=zo(Rn,{forceMount:void 0}),Yo=e=>{const{__scopePopover:t,forceMount:r,children:n,container:s}=e,o=at(Rn,t);return f.jsx(hc,{scope:t,forceMount:r,children:f.jsx(Sr,{present:r||o.open,children:f.jsx(Qs,{asChild:!0,container:s,children:n})})})};Yo.displayName=Rn;var St="PopoverContent",Jo=R.forwardRef((e,t)=>{const r=pc(St,e.__scopePopover),{forceMount:n=r.forceMount,...s}=e,o=at(St,e.__scopePopover);return f.jsx(Sr,{present:n||o.open,children:o.modal?f.jsx(gc,{...s,ref:t}):f.jsx(yc,{...s,ref:t})})});Jo.displayName=St;var mc=oc("PopoverContent.RemoveScroll"),gc=R.forwardRef((e,t)=>{const r=at(St,e.__scopePopover),n=R.useRef(null),s=Cr(t,n),o=R.useRef(!1);return R.useEffect(()=>{const a=n.current;if(a)return na(a)},[]),f.jsx(sa,{as:mc,allowPinchZoom:!0,children:f.jsx(Zo,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ke(e.onCloseAutoFocus,a=>{a.preventDefault(),o.current||r.triggerRef.current?.focus()}),onPointerDownOutside:Ke(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,p=i.button===0&&i.ctrlKey===!0,h=i.button===2||p;o.current=h},{checkForDefaultPrevented:!1}),onFocusOutside:Ke(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),yc=R.forwardRef((e,t)=>{const r=at(St,e.__scopePopover),n=R.useRef(!1),s=R.useRef(!1);return f.jsx(Zo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(n.current||r.triggerRef.current?.focus(),o.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=o.target;r.triggerRef.current?.contains(a)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),Zo=R.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:p,onFocusOutside:h,onInteractOutside:g,...b}=e,E=at(St,r),y=Zt(r);return oa(),f.jsx(ia,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:o,children:f.jsx(eo,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:g,onEscapeKeyDown:i,onPointerDownOutside:p,onFocusOutside:h,onDismiss:()=>E.onOpenChange(!1),children:f.jsx(to,{"data-state":Qo(E.open),role:"dialog",id:E.contentId,...y,...b,ref:t,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Xo="PopoverClose",wc=R.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=at(Xo,r);return f.jsx(bn.button,{type:"button",...n,ref:t,onClick:Ke(e.onClick,()=>s.onOpenChange(!1))})});wc.displayName=Xo;var xc="PopoverArrow",vc=R.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=Zt(r);return f.jsx(oo,{...s,...n,ref:t})});vc.displayName=xc;function Qo(e){return e?"open":"closed"}var bc=Ho,Sc=Go,Ec=Yo,ei=Jo;const Fr=bc,Mr=Sc,cr=R.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},s)=>f.jsx(Ec,{children:f.jsx(ei,{ref:s,align:t,sideOffset:r,className:K("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
137de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...n})}));cr.displayName=ei.displayName;function ti(e,t){return function(){return e.apply(t,arguments)}}const{toString:Cc}=Object.prototype,{getPrototypeOf:_n}=Object,{iterator:_r,toStringTag:ri}=Symbol,Ir=(e=>t=>{const r=Cc.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),We=e=>(e=e.toLowerCase(),t=>Ir(t)===e),Ur=e=>t=>typeof t===e,{isArray:At}=Array,Et=Ur("undefined");function Xt(e){return e!==null&&!Et(e)&&e.constructor!==null&&!Et(e.constructor)&&Ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ni=We("ArrayBuffer");function Tc(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ni(e.buffer),t}const Ac=Ur("string"),Ue=Ur("function"),si=Ur("number"),Qt=e=>e!==null&&typeof e=="object",Rc=e=>e===!0||e===!1,ur=e=>{if(Ir(e)!=="object")return!1;const t=_n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ri in e)&&!(_r in e)},_c=e=>{if(!Qt(e)||Xt(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ic=We("Date"),Uc=We("File"),kc=We("Blob"),Nc=We("FileList"),Pc=e=>Qt(e)&&Ue(e.pipe),jc=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ue(e.append)&&((t=Ir(e))==="formdata"||t==="object"&&Ue(e.toString)&&e.toString()==="[object FormData]"))},Dc=We("URLSearchParams"),[Bc,Oc,Fc,Mc]=["ReadableStream","Request","Response","Headers"].map(We),Lc=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function er(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),At(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{if(Xt(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(n=0;n<a;n++)i=o[n],t.call(null,e[i],i,e)}}function oi(e,t){if(Xt(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const ft=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,ii=e=>!Et(e)&&e!==ft;function tn(){const{caseless:e,skipUndefined:t}=ii(this)&&this||{},r={},n=(s,o)=>{const a=e&&oi(r,o)||o;ur(r[a])&&ur(s)?r[a]=tn(r[a],s):ur(s)?r[a]=tn({},s):At(s)?r[a]=s.slice():(!t||!Et(s))&&(r[a]=s)};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&er(arguments[s],n);return r}const qc=(e,t,r,{allOwnKeys:n}={})=>(er(t,(s,o)=>{r&&Ue(s)?e[o]=ti(s,r):e[o]=s},{allOwnKeys:n}),e),Vc=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$c=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},zc=(e,t,r,n)=>{let s,o,a;const i={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],(!n||n(a,e,t))&&!i[a]&&(t[a]=e[a],i[a]=!0);e=r!==!1&&_n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Hc=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Kc=e=>{if(!e)return null;if(At(e))return e;let t=e.length;if(!si(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Wc=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_n(Uint8Array)),Gc=(e,t)=>{const n=(e&&e[_r]).call(e);let s;for(;(s=n.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Yc=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Jc=We("HTMLFormElement"),Zc=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),Xn=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Xc=We("RegExp"),ai=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};er(r,(s,o)=>{let a;(a=t(s,o,e))!==!1&&(n[o]=a||s)}),Object.defineProperties(e,n)},Qc=e=>{ai(e,(t,r)=>{if(Ue(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ue(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},eu=(e,t)=>
vendor: 1,342 bytes, line 137
137{const r={},n=s=>{s.forEach(o=>{r[o]=!0})};return At(e)?n(e):n(String(e).split(t)),r},tu=()=>{},ru=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function nu(e){return!!(e&&Ue(e.append)&&e[ri]==="FormData"&&e[_r])}const su=e=>{const t=new Array(10),r=(n,s)=>{if(Qt(n)){if(t.indexOf(n)>=0)return;if(Xt(n))return n;if(!("toJSON"in n)){t[s]=n;const o=At(n)?[]:{};return er(n,(a,i)=>{const p=r(a,s+1);!Et(p)&&(o[i]=p)}),t[s]=void 0,o}}return n};return r(e,0)},ou=We("AsyncFunction"),iu=e=>e&&(Qt(e)||Ue(e))&&Ue(e.then)&&Ue(e.catch),li=((e,t)=>e?setImmediate:t?((r,n)=>(ft.addEventListener("message",({source:s,data:o})=>{s===ft&&o===r&&n.length&&n.shift()()},!1),s=>{n.push(s),ft.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ue(ft.postMessage)),au=typeof queueMicrotask<"u"?queueMicrotask.bind(ft):typeof process<"u"&&process.nextTick||li,lu=e=>e!=null&&Ue(e[_r]),U={isArray:At,isArrayBuffer:ni,isBuffer:Xt,isFormData:jc,isArrayBufferView:Tc,isString:Ac,isNumber:si,isBoolean:Rc,isObject:Qt,isPlainObject:ur,isEmptyObject:_c,isReadableStream:Bc,isRequest:Oc,isResponse:Fc,isHeaders:Mc,isUndefined:Et,isDate:Ic,isFile:Uc,isBlob:kc,isRegExp:Xc,isFunction:Ue,isStream:Pc,isURLSearchParams:Dc,isTypedArray:Wc,isFileList:Nc,forEach:er,merge:tn,extend:qc,trim:Lc,stripBOM:Vc,inherits:$c,toFlatObject:z
137c,kindOf:Ir,kindOfTest:We,endsWith:Hc,toArray:Kc,forEachEntry:Gc,matchAll:Yc,isHTMLForm:Jc,hasOwnProperty:Xn,hasOwnProp:Xn,reduceDescriptors:ai,freezeMethods:Qc,toObjectSet:eu,toCamelCase:Zc,noop:tu,toFiniteNumber:ru,findKey:oi,global:ft,isContextDefined:ii,isSpecCompliantForm:nu,toJSONObject:su,isAsyncFn:ou,isThenable:iu,setImmediate:li,asap:au,isIterable:lu};function J(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}U.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.status}}});const ci=J.prototype,ui={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ui[e]={value:e}});Object.defineProperties(J,ui);Object.defineProperty(ci,"isAxiosError",{value:!0});J.from=(e,t,r,n,s,o)=>{const a=Object.create(ci);U.toFlatObject(e,a,function(g){return g!==Error.prototype},h=>h!=="isAxiosError");const i=e&&e.message?e.message:"Error",p=t==null&&e?e.code:t;return J.call(a,i,p,r,n,s),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",o&&Object.assign(a,o),a};const cu=null;function rn(e){return U.isPlainObject(e)||U.isArray(e)}function di(e){return U.endsWith(e,"[]")?e.slice(0,-2):e}function Qn(e,t,r){return e?e.concat(t).map(function(s,o){return s=di(s),!r&&o?"["+s+"]":s}).join(r?".":""):t}function uu(e){return U.isArray(e)&&!e.some(rn)}const du=U.toFlatObject(U,{},null,function(t){return/^is[A-Z]/.test(t)});function kr(e,t,r){if(!U.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=U.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,_){return!U.isUndefined(_[C])});const n=r.metaTokens,s=r.visitor||g,o=r.dots,a=r.indexes,p=(r.Blob||typeof Blob<"u"&&Blob)&&U.isSpecCompliantForm(t);if(!U.isFunction(s))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(U.isDate(S))return S.toISOString();if(U.isBoolean(S))return S.toString();if(!p&&U.isBlob(S))throw new J("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(S)||U.isTypedArray(S)?p&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function g(S,C,_){let j=S;if(S&&!_&&typeof S=="object"){if(U.endsWith(C,"{}"))C=n?C:C.slice(0,-2),S=JSON.stringify(S);else if(U.isArray(S)&&uu(S)||(U.isFileList(S)||U.endsWith(C,"[]"))&&(j=U.toArray(S)))return C=di(C),j.forEach(function(O,L){!(U.isUndefined(O)||O===null)&&t.append(a===!0?Qn([C],L,o):a===null?C:C+"[]",h(O))}),!1}return rn(S)?!0:(t.append(Qn(_,C,o),h(S)),!1)}const b=[],E=Object.assign(du,{defaultVisitor:g,convertValue:h,isVisitable:rn});function y(S,C){if(!U.isUndefined(S)){if(b.indexOf(S)!==-1)throw Error("Circular reference detected in "+C.join("."));b.push(S),U.forEach(S,function(j,k){(!(U.isUndefined(j)||j===null)&&s.call(t,j,U.isString(k)?k.trim():k,C,E))===!0&&y(j,C?C.concat(k):[k])}),b.pop()}}if(!U.isObject(e))throw new TypeError("data must be an object");return y(e),t}function es(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function In(e,t){this._pairs=[],e&&kr(e,this,t)}const fi=In.prototype;fi.append=function(t,r){this._pairs.push([t,r])};fi.toString=function(t){const r=t?function(n){return t.call(this,n,es)}:es;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function fu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function hi(e,t,r){if(!t)return e;const n=r&&r.encode||fu;U.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let o;if(s?o=s(t,r):o=U.isURLSearchParams(t)?t.toString():new In(t,r).toString(n),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ts{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}
vendor: 4,229 bytes, lines 137-138
137forEach(t){U.forEach(this.handlers,function(n){n!==null&&t(n)})}}const pi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hu=typeof URLSearchParams<"u"?URLSearchParams:In,pu=typeof FormData<"u"?FormData:null,mu=typeof Blob<"u"?Blob:null,gu={isBrowser:!0,classes:{URLSearchParams:hu,FormData:pu,Blob:mu},protocols:["http","https","file","blob","url","data"]},Un=typeof window<"u"&&typeof document<"u",nn=typeof navigator=="object"&&navigator||void 0,yu=Un&&(!nn||["ReactNative","NativeScript","NS"].indexOf(nn.product)<0),wu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xu=Un&&window.location.href||"http://localhost",vu=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Un,hasStandardBrowserEnv:yu,hasStandardBrowserWebWorkerEnv:wu,navigator:nn,origin:xu},Symbol.toStringTag,{value:"Module"})),Ae={...vu,...gu};function bu(e,t){return kr(e,new Ae.classes.URLSearchParams,{visitor:function(r,n,s,o){return Ae.isNode&&U.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Su(e){return U.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Eu(e){const t={},r=Object.keys(e);let n;const s=r.length;let o;for(n=0;n<s;n++)o=r[n],t[o]=e[o];return t}function mi(e){function t(r,n,s,o){let a=r[o++];if(a==="__proto__")return!0;const i=Number.isFinite(+a),p=o>=r.length;return a=!a&&U.isArray(s)?s.length:a,p?(U.hasOwnProp(s,a)?s[a]=[s[a],n]:s[a]=n,!i):((!s[a]||!U.isObject(s[a]))&&(s[a]=[]),t(r,n,s[a],o)&&U.isArray(s[a])&&(s[a]=Eu(s[a])),!i)}if(U.isFormData(e)&&U.isFunction(e.entries)){const r={};return U.forEachEntry(e,(n,s)=>{t(Su(n),s,r,0)}),r}return null}function Cu(e,t,r){if(U.isString(e))try{return(t||JSON.parse)(e),U.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const tr={transitional:pi,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,o=U.isObject(t);if(o&&U.isHTMLForm(t)&&(t=new FormData(t)),U.isFormData(t))return s?JSON.stringify(mi(t)):t;if(U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t)||U.isReadableStream(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return bu(t,this.formSerializer).toString();if((i=U.isFileList(t))||n.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return kr(i?{"files[]":t}:t,p&&new p,this.formSerializer)}}return o||s?(r.setContentType("application/json",!1),Cu(t)):t}],transformResponse:[function(t){const r=this.transitional||tr.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(U.isResponse(t)||U.isReadableStream(t))return t;if(t&&U.isString(t)&&(n&&!this.responseType||s)){const a=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(i){if(a)throw i.name==="SyntaxError"?J.from(i,J.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ae.classes.FormData,Blob:Ae.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],e=>{tr.headers[e]={}});const Tu=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Au=e=>{const t={};let r,n,s;return e&&e.split(`
138`).forEach(function(a){s=a.indexOf(":"),r=a.substring(0,s).trim().toLowerCase(),n=a.substring(s+1).trim(),!(!r||t[r]&&Tu[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},rs=Symbol("internals");function jt(e){return e&&String(e).trim().toLowerCase()}function dr(e){return e===!1||e==null?e:U.isArray(e)?e.map(dr):String(e)}function Ru(e){const t=Object.create(null),r=/([^\s,;
138=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const _u=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Lr(e,t,r,n,s){if(U.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!U.isString(t)){if(U.isString(n))return t.indexOf(n)!==-1;if(U.isRegExp(n))return n.test(t)}}function Iu(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Uu(e,t){const r=U.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,o,a){return this[n].call(this,t,s,o,a)},configurable:!0})})}let ke=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function o(i,p,h){const g=jt(p);if(!g)throw new Error("header name must be a non-empty string");const b=U.findKey(s,g);(!b||s[b]===void 0||h===!0||h===void 0&&s[b]!==!1)&&(s[b||p]=dr(i))}const a=(i,p)=>U.forEach(i,(h,g)=>o(h,g,p));if(U.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(U.isString(t)&&(t=t.trim())&&!_u(t))a(Au(t),r);else if(U.isObject(t)&&U.isIterable(t)){let i={},p,h;for(const g of t){if(!U.isArray(g))throw TypeError("Object iterator must return a key-value pair");i[h=g[0]]=(p=i[h])?U.isArray(p)?[...p,g[1]]:[p,g[1]]:g[1]}a(i,r)}else t!=null&&o(r,t,n);return this}get(t,r){if(t=jt(t),t){const n=U.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return Ru(s);if(U.isFunction(r))return r.call(this,s,n);if(U.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=jt(t),t){const n=U.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Lr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function o(a){if(a=jt(a),a){const i=U.findKey(n,a);i&&(!r||Lr(n,n[i],i,r))&&(delete n[i],s=!0)}}return U.isArray(t)?t.forEach(o):o(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const o=r[n];(!t||Lr(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const r=this,n={};return U.forEach(this,(s,o)=>{const a=U.findKey(n,o);if(a){r[a]=dr(s),delete r[o];return}const i=t?Iu(o):String(o).trim();i!==o&&delete r[o],r[i]=dr(s),n[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return U.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&U.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
139`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[rs]=this[rs]={accessors:{}}).accessors,s=this.prototype;function o(a){const i=jt(a);n[i]||(Uu(s,a),n[i]=!0)}return U.isArray(t)?t.forEach(o):o(t),this}};ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);U.reduceDescriptors(ke.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});U.freezeMethods(ke);function qr(e,t){const r=this||tr,n=t||r,s=ke.from(n.headers);let o=n.data;return U.forEach(e,function(i){o=i.call(r,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function gi(e){return!!(e&&e.__CANCEL__)}function Rt(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}U.inherits(Rt,J,{__CANCEL__:!0});function yi(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ku(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Nu(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,o=0,a;return t=t!==void 0?t:1e3,function(p){const h=Date.now(),g=n[o];a||(a=h),r[s]=p,n[s]=h;let b=o,E=0;for(;b!==s;)E+=r[b++],b=b%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),h-a<t)return;const y=g&&h-g;return y?Math.round(E*1e3/y):void 0}}function Pu(e,t){let r=0,n=1e3/t,s,o;const a=(h,g=Date.now())=>{r=g,s=null,o&&(clearTimeout(o),o=null),e(...h)};return[(...h)=>{const g=Date.now(),b=g-r;b>=n?a(h,g):(s=h,o||(o=setTimeout(()=>{o=null,a(s)},n-b)))},()=>s&&a(s)]}const xr=(e,t,r=3)=>{let n=0;const s=Nu(50,250);return Pu(o=>{const a=o.loaded,i=o.lengthComputable?o.total:void 0,p=a-n,h=s(p),g=a<=i;n=a;const b={loaded:a,total:i,progress:i?a/i:void 0,bytes:p,rate:h||void 0,estimated:h&&i&&g?(i-a)/h:void 0,event:o,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(b)},r)},ns=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},ss=e=>(...t)=>U.asap(()=>e(...t)),ju=Ae.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ae.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ae.origin),Ae.navigator&&/(msie|trident)/i.test(Ae.navigator.userAgent)):()=>!0,Du=Ae.hasStandardBrowserEnv?{write(e,t,r,n,s,o,a){if(typeof document>"u")return;const i=[`${e}=${encodeURIComponent(t)}`];U.isNumber(r)&&i.push(`expires=${new Date(r).toUTCString()}`),U.isString(n)&&i.push(`path=${n}`),U.isString(s)&&i.push(`domain=${s}`),o===!0&&i.push("secure"),U.isString(a)&&i.push(`SameSite=${a}`),document.cookie=i.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Bu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ou(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wi(e,t,r){let n=!Bu(t);return e&&(n||r==!1)?Ou(e,t):t}const os=e=>e instanceof ke?{...e}:e;function mt(e,t){t=t||{};const r={};function n(h,g,b,E){return U.isPlainObject(h)&&U.isPlainObject(g)?U.merge.call({caseless:E},h,g):U.isPlainObject(g)?U.merge({},g):U.isArray(g)?g.slice():g}function s(h,g,b,E){if(U.isUndefined(g)){if(!U.isUndefined(h))return n(void 0,h,b,E)}else return n(h,g,b,E)}function o(h,g){if(!U.isUndefined(g))return n(void 0,g)}function a(h,g){if(U.isUndefined(g)){if(!U.isUndefined(h))return n(void 0,h)}else return n(void 0,g)}function i(h,g,b){if(b in t)return n(h,g);if(b in e)return n(void 0,h)}const p={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBo
vendor: 4,271 bytes, line 139
139dyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:i,headers:(h,g,b)=>s(os(h),os(g),b,!0)};return U.forEach(Object.keys({...e,...t}),function(g){const b=p[g]||s,E=b(e[g],t[g],g);U.isUndefined(E)&&b!==i||(r[g]=E)}),r}const xi=e=>{const t=mt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:i}=t;if(t.headers=a=ke.from(a),t.url=hi(wi(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&a.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):""))),U.isFormData(r)){if(Ae.hasStandardBrowserEnv||Ae.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(U.isFunction(r.getHeaders)){const p=r.getHeaders(),h=["content-type","content-length"];Object.entries(p).forEach(([g,b])=>{h.includes(g.toLowerCase())&&a.set(g,b)})}}if(Ae.hasStandardBrowserEnv&&(n&&U.isFunction(n)&&(n=n(t)),n||n!==!1&&ju(t.url))){const p=s&&o&&Du.read(o);p&&a.set(s,p)}return t},Fu=typeof XMLHttpRequest<"u",Mu=Fu&&function(e){return new Promise(function(r,n){const s=xi(e);let o=s.data;const a=ke.from(s.headers).normalize();let{responseType:i,onUploadProgress:p,onDownloadProgress:h}=s,g,b,E,y,S;function C(){y&&y(),S&&S(),s.cancelToken&&s.cancelToken.unsubscribe(g),s.signal&&s.signal.removeEventListener("abort",g)}let _=new XMLHttpRequest;_.open(s.method.toUpperCase(),s.url,!0),_.timeout=s.timeout;function j(){if(!_)return;const O=ke.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),V={data:!i||i==="text"||i==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:O,config:e,request:_};yi(function(te){r(te),C()},function(te){n(te),C()},V),_=null}"onloadend"in _?_.onloadend=j:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(j)},_.onabort=function(){_&&(n(new J("Request aborted",J.ECONNABORTED,e,_)),_=null)},_.onerror=function(L){const V=L&&L.message?L.message:"Network Error",Q=new J(V,J.ERR_NETWORK,e,_);Q.event=L||null,n(Q),_=null},_.ontimeout=function(){let L=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const V=s.transitional||pi;s.timeoutErrorMessage&&(L=s.timeoutErrorMessage),n(new J(L,V.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,_)),_=null},o===void 0&&a.setContentType(null),"setRequestHeader"in _&&U.forEach(a.toJSON(),function(L,V){_.setRequestHeader(V,L)}),U.isUndefined(s.withCredentials)||(_.withCredentials=!!s.withCredentials),i&&i!=="json"&&(_.responseType=s.responseType),h&&([E,S]=xr(h,!0),_.addEventListener("progress",E)),p&&_.upload&&([b,y]=xr(p),_.upload.addEventListener("progress",b),_.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(g=O=>{_&&(n(!O||O.type?new Rt(null,e,_):O),_.abort(),_=null)},s.cancelToken&&s.cancelToken.subscribe(g),s.signal&&(s.signal.aborted?g():s.signal.addEventListener("abort",g)));const k=ku(s.url);if(k&&Ae.protocols.indexOf(k)===-1){n(new J("Unsupported protocol "+k+":",J.ERR_BAD_REQUEST,e));return}_.send(o||null)})},Lu=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const o=function(h){if(!s){s=!0,i();const g=h instanceof Error?h:this.reason;n.abort(g instanceof J?g:new Rt(g instanceof Error?g.message:g))}};let a=t&&setTimeout(()=>{a=null,o(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(o):h.removeEventListener("abort",o)}),e=null)};e.forEach(h=>h.addEventListener("abort",o));const{signal:p}=n;return p.unsubscribe=()=>U.asap(i),p}},qu=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},Vu=async function*(e,t){for await(const r of $u(e))yield*qu(r,t)},$u=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},is=(e,t,r,n)=>{const s=Vu(e,t);let o=0,a,i=p=>{a||(a=!0,n&&n(p))};return new ReadableStream({async pull(p){try{const{done:h,value:g}=await s.next();if(h){i(),p.close();return}let b=g.byteLength;if(r){let E=o+=b;r(E)}p.enqueue(new Uint8Array(g))}
vendor: 9,401 bytes, lines 139-142
139catch(h){throw i(h),h}},cancel(p){return i(p),s.return()}},{highWaterMark:2})},as=64*1024,{isFunction:sr}=U,zu=(({Request:e,Response:t})=>({Request:e,Response:t}))(U.global),{ReadableStream:ls,TextEncoder:cs}=U.global,us=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Hu=e=>{e=U.merge.call({skipUndefined:!0},zu,e);const{fetch:t,Request:r,Response:n}=e,s=t?sr(t):typeof fetch=="function",o=sr(r),a=sr(n);if(!s)return!1;const i=s&&sr(ls),p=s&&(typeof cs=="function"?(S=>C=>S.encode(C))(new cs):async S=>new Uint8Array(await new r(S).arrayBuffer())),h=o&&i&&us(()=>{let S=!1;const C=new r(Ae.origin,{body:new ls,method:"POST",get duplex(){return S=!0,"half"}}).headers.has("Content-Type");return S&&!C}),g=a&&i&&us(()=>U.isReadableStream(new n("").body)),b={stream:g&&(S=>S.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!b[S]&&(b[S]=(C,_)=>{let j=C&&C[S];if(j)return j.call(C);throw new J(`Response type '${S}' is not supported`,J.ERR_NOT_SUPPORT,_)})});const E=async S=>{if(S==null)return 0;if(U.isBlob(S))return S.size;if(U.isSpecCompliantForm(S))return(await new r(Ae.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(U.isArrayBufferView(S)||U.isArrayBuffer(S))return S.byteLength;if(U.isURLSearchParams(S)&&(S=S+""),U.isString(S))return(await p(S)).byteLength},y=async(S,C)=>{const _=U.toFiniteNumber(S.getContentLength());return _??E(C)};return async S=>{let{url:C,method:_,data:j,signal:k,cancelToken:O,timeout:L,onDownloadProgress:V,onUploadProgress:Q,responseType:te,headers:ie,withCredentials:oe="same-origin",fetchOptions:ye}=xi(S),$=t||fetch;te=te?(te+"").toLowerCase():"text";let z=Lu([k,O&&O.toAbortSignal()],L),we=null;const re=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let xe;try{if(Q&&h&&_!=="get"&&_!=="head"&&(xe=await y(ie,j))!==0){let q=new r(C,{method:"POST",body:j,duplex:"half"}),M;if(U.isFormData(j)&&(M=q.headers.get("content-type"))&&ie.setContentType(M),q.body){const[ee,ne]=ns(xe,xr(ss(Q)));j=is(q.body,as,ee,ne)}}U.isString(oe)||(oe=oe?"include":"omit");const le=o&&"credentials"in r.prototype,Te={...ye,signal:z,method:_.toUpperCase(),headers:ie.normalize().toJSON(),body:j,duplex:"half",credentials:le?oe:void 0};we=o&&new r(C,Te);let Ce=await(o?$(we,ye):$(C,Te));const H=g&&(te==="stream"||te==="response");if(g&&(V||H&&re)){const q={};["status","statusText","headers"].forEach(ve=>{q[ve]=Ce[ve]});const M=U.toFiniteNumber(Ce.headers.get("content-length")),[ee,ne]=V&&ns(M,xr(ss(V),!0))||[];Ce=new n(is(Ce.body,as,ee,()=>{ne&&ne(),re&&re()}),q)}te=te||"text";let Se=await b[U.findKey(b,te)||"text"](Ce,S);return!H&&re&&re(),await new Promise((q,M)=>{yi(q,M,{data:Se,headers:ke.from(Ce.headers),status:Ce.status,statusText:Ce.statusText,config:S,request:we})})}catch(le){throw re&&re(),le&&le.name==="TypeError"&&/Load failed|fetch/i.test(le.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,S,we),{cause:le.cause||le}):J.from(le,le&&le.code,S,we)}}},Ku=new Map,vi=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:s}=t,o=[n,s,r];let a=o.length,i=a,p,h,g=Ku;for(;i--;)p=o[i],h=g.get(p),h===void 0&&g.set(p,h=i?new Map:Hu(t)),g=h;return h};vi();const kn={http:cu,xhr:Mu,fetch:{get:vi}};U.forEach(kn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ds=e=>`- ${e}`,Wu=e=>U.isFunction(e)||e===null||e===!1;function Gu(e,t){e=U.isArray(e)?e:[e];const{length:r}=e;let n,s;const o={};for(let a=0;a<r;a++){n=e[a];let i;if(s=n,!Wu(n)&&(s=kn[(i=String(n)).toLowerCase()],s===void 0))throw new J(`Unknown adapter '${i}'`);if(s&&(U.isFunction(s)||(s=s.get(t))))break;o[i||"#"+a]=s}if(!s){const a=Object.entries(o).map(([p,h])=>`adapter ${p} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=r?a.length>1?`since :
140`+a.map(ds).join(`
141`):" "+ds(a[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s}const bi={getAdapter:Gu,adapters:kn};function Vr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rt(null,e)}function fs(e){return Vr(e),e.headers=ke.from(e.headers),e.data=qr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bi.getAdapter(e.adapter||tr.adapter,e)(e).then(function(n){return Vr(e),n.data=qr.call(e,e.transformResponse,n),n.headers=ke.from(n.headers),n},function(n){return gi(n)||(Vr(e),n&&n.response&&(n.response.data=qr.call(e,e.transformResponse,n.response),n.response.headers=ke.from(n.response.headers))),Promise.reject(n)})}const Si="1.13.2",Nr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const hs={};Nr.transitional=function(t,r,n){function s(o,a){return"[Axios v"+Si+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return(o,a,i)=>{if(t===!1)throw new J(s(a," has been removed"+(r?" in "+r:"")),J.ERR_DEPRECATED);return r&&!hs[a]&&(hs[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,i):!0}};Nr.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Yu(e,t,r){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const o=n[s],a=t[o];if(a){const i=e[o],p=i===void 0||a(i,o,e);if(p!==!0)throw new J("option "+o+" must be "+p,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+o,J.ERR_BAD_OPTION)}}const fr={assertOptions:Yu,validators:Nr},Ge=fr.validators;let ht=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ts,response:new ts}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
142`+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=mt(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:o}=r;n!==void 0&&fr.assertOptions(n,{silentJSONParsing:Ge.transitional(Ge.boolean),forcedJSONParsing:Ge.transitional(Ge.boolean),clarifyTimeoutError:Ge.transitional(Ge.boolean)},!1),s!=null&&(U.isFunction(s)?r.paramsSerializer={serialize:s}:fr.assertOptions(s,{encode:Ge.function,serialize:Ge.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),fr.assertOptions(r,{baseUrl:Ge.spelling("baseURL"),withXsrfToken:Ge.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&U.merge(o.common,o[r.method]);o&&U.forEach(["delete","get","head","post","put","patch","common"],S=>{delete o[S]}),r.headers=ke.concat(a,o);const i=[];let p=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(r)===!1||(p=p&&C.synchronous,i.unshift(C.fulfilled,C.rejected))});const h=[];this.interceptors.response.forEach(function(C){h.push(C.fulfilled,C.rejected)});let g,b=0,E;if(!p){const S=[fs.bind(this),void 0];for(S.unshift(...i),S.push(...h),E=S.length,g=Promise.resolve(r);b<E;)g=g.then(S[b++],S[b++]);return g}E=i.length;let y=r;for(;b<E;){const S=i[b++],C=i[b++];try{y=S(y)}catch(_){C.call(this,_);break}}try{g=fs.call(this,y)}catch(S){return Promise.reject(S)}for(b=0,E=h.length;b<E;)g=g.then(h[b++],h[b++]);return g}getUri(t){t=mt(this.defaults,t);const r=wi(t.baseURL,t.url,t.allowAbsoluteUrls);return hi(r,t.params,t.paramsSerializer)}};U.forEach(["delete","get","head","options"],function(t){ht.prototype[t]=function(r,n){return this.request(mt(n||{},{method:t,url:r,data:(n||{}).data}))}});U.forEach(["post","put","patch"],function(t){function r(n){return function(o,a,i){return this.request(mt(i||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}ht.prototype[t]=r(),ht.prototype[t+"Form"]=r(!0)});let Ju=class Ei{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(s=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](s);n._listeners=null}),this.promise.then=s=>{let o;const a=new Promise(i=>{n.subscribe(i),o=i}).then(s);return a.cancel=function(){n.unsubscribe(o)},a},t(function(o,a,i){n.reason||(n.reason=new Rt(o,a,i),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Ei(function(s){t=s}),cancel:t}}};function Zu(e){return function(r){return e.apply(null,r)}}function Xu(e){return U.isObject(e)&&e.isAxiosError===!0}const sn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
142alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(sn).forEach(([e,t])=>{sn[t]=e});function Ci(e){const t=new ht(e),r=ti(ht.prototype.request,t);return U.extend(r,ht.prototype,t,{allOwnKeys:!0}),U.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return Ci(mt(e,s))},r}const be=Ci(tr);be.Axios=ht;be.CanceledError=Rt;be.CancelToken=Ju;be.isCancel=gi;be.VERSION=Si;be.toFormData=kr;be.AxiosError=J;be.Cancel=be.CanceledError;be.all=function(t){return Promise.all(t)};be.spread=Zu;be.isAxiosError=Xu;be.mergeConfig=mt;be.AxiosHeaders=ke;be.formToJSON=e=>mi(U.isHTMLForm(e)?new FormData(e):e);be.getAdapter=bi.getAdapter;be.HttpStatusCode=sn;be.default=be;const{Axios:im,AxiosError:am,CanceledError:lm,isCancel:cm,CancelToken:um,VERSION:dm,all:fm,Cancel:hm,isAxiosError:pm,spread:mm,toFormData:gm,AxiosHeaders:ym,HttpStatusCode:wm,formToJSON:xm,getAdapter:vm,mergeConfig:bm}=be;var Qu=e=>{switch(e){case"success":return rd;case"info":return sd;case"warning":return nd;case"error":return od;default:return null}},ed=Array(12).fill(0),td=({visible:e,className:t})=>B.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},B.createElement("div",{className:"sonner-spinner"},ed.map((r,n)=>B.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),rd=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},B.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),nd=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},B.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),sd=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},B.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),od=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},B.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),id=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},B.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),B.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ad=()=>
142{let[e,t]=B.useState(document.hidden);return B.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},on=1,ld=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,s=typeof e?.id=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:on++,o=this.toasts.find(i=>i.id===s),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(i=>i.id===s?(this.publish({...i,...e,id:s,title:r}),{...i,...e,id:s,dismissible:a,title:r}):i):this.addToast({title:r,...n,dismissible:a,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
142this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),s=r!==void 0,o,a=n.then(async p=>{if(o=["resolve",p],B.isValidElement(p))s=!1,this.create({id:r,type:"default",message:p});else if(ud(p)&&!p.ok){s=!1;let h=typeof t.error=="function"?await t.error(`HTTP error! status: ${p.status}`):t.error,g=typeof t.description=="function"?await t.description(`HTTP error! status: ${p.status}`):t.description;this.create({id:r,type:"error",message:h,description:g})}else if(t.success!==void 0){s=!1;let h=typeof t.success=="function"?await t.success(p):t.success,g=typeof t.description=="function"?await t.description(p):t.description;this.create({id:r,type:"success",message:h,description:g})}}).catch(async p=>{if(o=["reject",p],t.error!==void 0){s=!1;let h=typeof t.error=="function"?await t.error(p):t.error,g=typeof t.description=="function"?await t.description(p):t.description;this.create({id:r,type:"error",message:h,description:g})}}).finally(()=>{var p;s&&(this.dismiss(r),r=void 0),(p=t.finally)==null||p.call(t)}),i=()=>new Promise((p,h)=>a.then(()=>o[0]==="reject"?h(o[1]):p(o[1])).catch(h));return typeof r!="string"&&typeof r!="number"?{unwrap:i}:Object.assign(r,{unwrap:i})},this.custom=(e,t)=>{let r=t?.id||on++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ie=new ld,cd=(e,t)=>{let r=t?.id||on++;return Ie.addToast({title:e,...t,id:r}),r},ud=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",dd=cd,fd=()=>Ie.toasts,hd=()=>Ie.getActiveToasts(),pd=Object.assign(dd,{success:Ie.success,info:Ie.info,warning:Ie.warning,error:Ie.error,custom:Ie.custom,message:Ie.message,promise:Ie.promise,dismiss:Ie.dismiss,loading:Ie.loading},{getHistory:fd,getToasts:hd});function md(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}md(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
142left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
142:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
142--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
143`);function or(e){return e.label!==void 0}var gd=3,yd="32px",wd="16px",ps=4e3,xd=356,vd=14,bd=20,Sd=200;function He(...e){return e.filter(Boolean).join(" ")}function Ed(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var Cd=e=>{var t,r,n,s,o,a,i,p,h,g,b;let{invert:E,toast:y,unstyled:S,interacting:C,setHeights:_,visibleToasts:j,heights:k,index:O,toasts:L,expanded:V,removeToast:Q,defaultRichColors:te,closeButton:ie,style:oe,cancelButtonStyle:ye,actionButtonStyle:$,className:z="",descriptionClassName:we="",duration:re,position:xe,gap:le,loadingIcon:Te,expandByDefault:Ce,classNames:H,icons:Se,closeButtonAriaLabel:q="Close toast",pauseWhenPageIsHidden:M}
143=e,[ee,ne]=B.useState(null),[ve,Pe]=B.useState(null),[ue,je]=B.useState(!1),[Me,Je]=B.useState(!1),[Ze,Le]=B.useState(!1),[qe,Xe]=B.useState(!1),[gt,Qe]=B.useState(!1),[lt,x]=B.useState(0),[u,d]=B.useState(0),v=B.useRef(y.duration||re||ps),A=B.useRef(null),N=B.useRef(null),D=O===0,W=O+1<=j,Z=y.type,m=y.dismissible!==!1,l=y.className||"",c=y.descriptionClassName||"",w=B.useMemo(()=>k.findIndex(Y=>Y.toastId===y.id)||0,[k,y.id]),T=B.useMemo(()=>{var Y;return(Y=y.closeButton)!=null?Y:ie},[y.closeButton,ie]),I=B.useMemo(()=>y.duration||re||ps,[y.duration,re]),P=B.useRef(0),G=B.useRef(0),fe=B.useRef(0),ae=B.useRef(null),[me,ce]=xe.split("-"),qn=B.useMemo(()=>k.reduce((Y,de,ge)=>ge>=w?Y:Y+de.height,0),[k,w]),Vn=ad(),zi=y.invert||E,Dr=Z==="loading";G.current=B.useMemo(()=>w*le+qn,[w,qn]),B.useEffect(()=>{v.current=I},[I]),B.useEffect(()=>{je(!0)},[]),B.useEffect(()=>{let Y=N.current;if(Y){let de=Y.getBoundingClientRect().height;return d(de),_(ge=>[{toastId:y.id,height:de,position:y.position},...ge]),()=>_(ge=>ge.filter(Ve=>Ve.toastId!==y.id))}},[_,y.id]),B.useLayoutEffect(()=>{if(!ue)return;let Y=N.current,de=Y.style.height;Y.style.height="auto";let ge=Y.getBoundingClientRect().height;Y.style.height=de,d(ge),_(Ve=>Ve.find($e=>$e.toastId===y.id)?Ve.map($e=>$e.toastId===y.id?{...$e,height:ge}:$e):[{toastId:y.id,height:ge,position:y.position},...Ve])},[ue,y.title,y.description,_,y.id]);let tt=B.useCallback(()=>{Je(!0),x(G.current),_(Y=>Y.filter(de=>de.toastId!==y.id)),setTimeout(()=>{Q(y)},Sd)},[y,Q,_,G]);B.useEffect(()=>{if(y.promise&&Z==="loading"||y.duration===1/0||y.type==="loading")return;let Y;return V||C||M&&Vn?(()=>{if(fe.current<P.current){let de=new Date().getTime()-P.current;v.current=v.current-de}fe.current=new Date().getTime()})():v.current!==1/0&&(P.current=new Date().getTime(),Y=setTimeout(()=>{var de;(de=y.onAutoClose)==null||de.call(y,y),tt()},v.current)),()=>clearTimeout(Y)},[V,C,y,Z,M,Vn,tt]),B.useEffect(()=>{y.delete&&tt()},[tt,y.delete]);function Hi(){var Y,de,ge;return Se!=null&&Se.loading?B.createElement("div",{className:He(H?.loader,(Y=y?.classNames)==null?void 0:Y.loader,"sonner-loader"),"data-visible":Z==="loading"},Se.loading):Te?B.createElement("div",{className:He(H?.loader,(de=y?.classNames)==null?void 0:de.loader,"sonner-loader"),"data-visible":Z==="loading"},Te):B.createElement(td,{className:He(H?.loader,(ge=y?.classNames)==null?void 0:ge.loader),visible:Z==="loading"})}return B.createElement("li",{tabIndex:0,ref:N,className:He(z,l,H?.toast,(t=y?.classNames)==null?void 0:t.toast,H?.default,H?.[Z],(r=y?.classNames)==null?void 0:r[Z]),"data-sonner-toast":"","data-rich-colors":(n=y.richColors)!=null?n:te,"data-styled":!(y.jsx||y.unstyled||S),"data-mounted":ue,"data-promise":!!y.promise,"data-swiped":gt,"data-removed":Me,"data-visible":W,"data-y-position":me,"data-x-position":ce,"data-index":O,"data-front":D,"data-swiping":Ze,"data-dismissible":m,"data-type":Z,"data-invert":zi,"data-swipe-out":qe,"data-swipe-direction":ve,"data-expanded":!!(V||Ce&&ue),style:{"--index":O,"--toasts-before":O,"--z-index":L.length-O,"--offset":`${Me?lt:G.current}px`,"--initial-height":Ce?"auto":`${u}px`,...oe,...y.style},onDragEnd:()=>{Le(!1),ne(null),ae.current=null},onPointerDown:Y=>{Dr||!m||(A.current=new Date,x(G.current),Y.target.setPointerCapture(Y.pointerId),Y.target.tagName!=="BUTTON"&&(Le(!0),ae.current={x:Y.clientX,y:Y.clientY}))},onPointerUp:()=>{var Y,de,ge,Ve;if(qe||!m)return;ae.current=null;let $e=Number(((Y=N.current)==null?void 0:Y.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),rt=Number(((de=N.current)==null?void 0:de.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ct=new Date().getTime()-((ge=A.current)==null?void 0:ge.getTime()),ze=ee==="x"?$e:rt,nt=Math.abs(ze)/ct;if(Math.abs(ze)>=bd||nt>.11){x(G.current),(Ve=y.onDismiss)==null||Ve.call(y,y),Pe(ee==="x"?$e>0?"right":"left":rt>0?"down":"up"),tt(),Xe(!0),Qe(!1);return}Le(!1),ne(null)},onPointerMove:Y=>{var de,ge,Ve,$e;if(!ae.current||!m||((de=window.getSelection())==null?void 0:de.toString().length)>0)return;let rt=Y.clientY-ae.current.y,ct=Y.clientX-ae.current.x,ze=(ge=e.swipeDirections)!=null?ge:Ed(xe);!ee&&(Math.abs(ct)>1||Math.abs(rt)>1)&&ne(Math.abs(ct)>Math.abs(rt)?"x":"y");let nt={x:0,y:0};ee==="y"?(ze.includes("top")||ze.includes("bottom"))&&(ze.includes("top")&&rt<0||ze.includes("bottom")&&rt>0)&&(nt.y=rt):ee==="x"&&(ze.includes("left")||ze.includes("right"))&&(ze.includes("left")&&ct<0||ze.includes("right")&&ct>0)&&(nt.x=ct),(Math.abs(nt.x)>0||Math.abs(nt.y)>0)&&Qe(!0),(Ve=N.current)==null||Ve.style.setProperty("--swipe-amount-x",`${nt.x}px`),($e=N.current)==null||$e.style.setProperty("--swipe-amount-y",`${nt.y}px`)}},T&&!y.jsx?B.createElement("button",{"aria-label":q,"data-disabled":Dr,"data-close-button":!0,onClick:Dr||!m?()=>{}:()=>{var Y;tt(),(Y=y.onDismiss)==null||Y.call(y,y)},className:He(H?.closeButton,(s=y?.classNames)==null?void 0:s.closeButton)},(o=Se?.close)!=null?o:id):null,y.jsx||R.isValidElement(y.title)?y.jsx?
143y.jsx:typeof y.title=="function"?y.title():y.title:B.createElement(B.Fragment,null,Z||y.icon||y.promise?B.createElement("div",{"data-icon":"",className:He(H?.icon,(a=y?.classNames)==null?void 0:a.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||Hi():null,y.type!=="loading"?y.icon||Se?.[Z]||Qu(Z):null):null,B.createElement("div",{"data-content":"",className:He(H?.content,(i=y?.classNames)==null?void 0:i.content)},B.createElement("div",{"data-title":"",className:He(H?.title,(p=y?.classNames)==null?void 0:p.title)},typeof y.title=="function"?y.title():y.title),y.description?B.createElement("div",{"data-description":"",className:He(we,c,H?.description,(h=y?.classNames)==null?void 0:h.description)},typeof y.description=="function"?y.description():y.description):null),R.isValidElement(y.cancel)?y.cancel:y.cancel&&or(y.cancel)?B.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||ye,onClick:Y=>{var de,ge;or(y.cancel)&&m&&((ge=(de=y.cancel).onClick)==null||ge.call(de,Y),tt())},className:He(H?.cancelButton,(g=y?.classNames)==null?void 0:g.cancelButton)},y.cancel.label):null,R.isValidElement(y.action)?y.action:y.action&&or(y.action)?B.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||$,onClick:Y=>{var de,ge;or(y.action)&&((ge=(de=y.action).onClick)==null||ge.call(de,Y),!Y.defaultPrevented&&tt())},className:He(H?.actionButton,(b=y?.classNames)==null?void 0:b.actionButton)},y.action.label):null))};function ms(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Td(e,t){let r={};return[e,t].forEach((n,s)=>{let o=s===1,a=o?"--mobile-offset":"--offset",i=o?wd:yd;function p(h){["top","right","bottom","left"].forEach(g=>{r[`${a}-${g}`]=typeof h=="number"?`${h}px`:h})}typeof n=="number"||typeof n=="string"?p(n):typeof n=="object"?["top","right","bottom","left"].forEach(h=>{n[h]===void 0?r[`${a}-${h}`]=i:r[`${a}-${h}`]=typeof n[h]=="number"?`${n[h]}px`:n[h]}):p(i)}),r}var Ad=R.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:a,className:i,offset:p,mobileOffset:h,theme:g="light",richColors:b,duration:E,style:y,visibleToasts:S=gd,toastOptions:C,dir:_=ms(),gap:j=vd,loadingIcon:k,icons:O,containerAriaLabel:L="Notifications",pauseWhenPageIsHidden:V}=e,[Q,te]=B.useState([]),ie=B.useMemo(()=>Array.from(new Set([n].concat(Q.filter(M=>M.position).map(M=>M.position)))),[Q,n]),[oe,ye]=B.useState([]),[$,z]=B.useState(!1),[we,re]=B.useState(!1),[xe,le]=B.useState(g!=="system"?g:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Te=B.useRef(null),Ce=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),H=B.useRef(null),Se=B.useRef(!1),q=B.useCallback(M=>{te(ee=>{var ne;return(ne=ee.find(ve=>ve.id===M.id))!=null&&ne.delete||Ie.dismiss(M.id),ee.filter(({id:ve})=>ve!==M.id)})},[]);return B.useEffect(()=>Ie.subscribe(M=>{if(M.dismiss){te(ee=>ee.map(ne=>ne.id===M.id?{...ne,delete:!0}:ne));return}setTimeout(()=>{Zi.flushSync(()=>{te(ee=>{let ne=ee.findIndex(ve=>ve.id===M.id);return ne!==-1?[...ee.slice(0,ne),{...ee[ne],...M},...ee.slice(ne+1)]:[M,...ee]})})})}),[]),B.useEffect(()=>{if(g!=="system"){le(g);return}if(g==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?le("dark"):le("light")),typeof window>"u")return;let M=window.matchMedia("(prefers-color-scheme: dark)");try{M.addEventListener("change",({matches:ee})=>{le(ee?"dark":"light")})}catch{M.addListener(({matches:ne})=>{try{le(ne?"dark":"light")}catch(ve){console.error(ve)}})}},[g]),B.useEffect(()=>{Q.length<=1&&z(!1)},[Q]),B.useEffect(()=>{let M=ee=>{var ne,ve;s.every(Pe=>ee[Pe]||ee.code===Pe)&&(z(!0),(ne=Te.current)==null||ne.focus()),ee.code==="Escape"&&(document.activeElement===Te.current||(ve=Te.current)!=null&&ve.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[s]),B.useEffect(()=>{if(Te.current)return()=>{H.current&&(H.current.focus({preventScroll:!0}),H.current=null,Se.current=!1)}},[Te.current]),B.createElement("section",{ref:t,"aria-label":`${L} ${Ce}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ie.map((M,ee)=>{var ne;let[ve,Pe]=M.split("-");return Q.length?B.createElement("ol",{key:M,dir:_==="auto"?ms():_,tabIndex:-1,ref:Te,className:i,"data-sonner-toaster":!0,"data-theme":xe,"data-y-position":ve,"data-lifted":$&&Q.length>1&&!o,"data-x-position":Pe,style:{"--front-toast-height":`${((ne=oe[0])==null?void 0:ne.height)||0}px`,"--width":`${xd}px`,"--gap":`${j}px`,...y,...Td(p,h)},onBlur:ue=>{Se.current&&!ue.currentTarget.contains(ue.relatedTarget)&&(Se.current=!1,H.
143current&&(H.current.focus({preventScroll:!0}),H.current=null))},onFocus:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||Se.current||(Se.current=!0,H.current=ue.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{we||z(!1)},onDragEnd:()=>z(!1),onPointerDown:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||re(!0)},onPointerUp:()=>re(!1)},Q.filter(ue=>!ue.position&&ee===0||ue.position===M).map((ue,je)=>{var Me,Je;return B.createElement(Cd,{key:ue.id,icons:O,index:je,toast:ue,defaultRichColors:b,duration:(Me=C?.duration)!=null?Me:E,className:C?.className,descriptionClassName:C?.descriptionClassName,invert:r,visibleToasts:S,closeButton:(Je=C?.closeButton)!=null?Je:a,interacting:we,position:M,style:C?.style,unstyled:C?.unstyled,classNames:C?.classNames,cancelButtonStyle:C?.cancelButtonStyle,actionButtonStyle:C?.actionButtonStyle,removeToast:q,toasts:Q.filter(Ze=>Ze.position==ue.position),heights:oe.filter(Ze=>Ze.position==ue.position),setHeights:ye,expandByDefault:o,gap:j,loadingIcon:k,expanded:$,pauseWhenPageIsHidden:V,swipeDirections:e.swipeDirections})})):null}))}),$r={},zr,gs;function Rd(){if(gs)return zr;gs=1;var e={}.toString;return zr=Array.isArray||function(t){return e.call(t)=="[object Array]"},zr}var ys;function _d(){return ys||(ys=1,(function(e){var t=bo(),r=So(),n=Rd();e.Buffer=i,e.SlowBuffer=j,e.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:s(),e.kMaxLength=o();function s(){try{var x=new Uint8Array(1);return x.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},x.foo()===42&&typeof x.subarray=="function"&&x.subarray(1,1).byteLength===0}catch{return!1}}function o(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(x,u){if(o()<u)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(x=new Uint8Array(u),x.__proto__=i.prototype):(x===null&&(x=new i(u)),x.length=u),x}function i(x,u,d){if(!i.TYPED_ARRAY_SUPPORT&&!(this instanceof i))return new i(x,u,d);if(typeof x=="number"){if(typeof u=="string")throw new Error("If encoding is specified then the first argument must be a string");return b(this,x)}return p(this,x,u,d)}i.poolSize=8192,i._augment=function(x){return x.__proto__=i.prototype,x};function p(x,u,d,v){if(typeof u=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&u instanceof ArrayBuffer?S(x,u,d,v):typeof u=="string"?E(x,u,d):C(x,u)}i.from=function(x,u,d){return p(null,x,u,d)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0}));function h(x){if(typeof x!="number")throw new TypeError('"size" argument must be a number');if(x<0)throw new RangeError('"size" argument must not be negative')}function g(x,u,d,v){return h(u),u<=0?a(x,u):d!==void 0?typeof v=="string"?a(x,u).fill(d,v):a(x,u).fill(d):a(x,u)}i.alloc=function(x,u,d){return g(null,x,u,d)};function b(x,u){if(h(u),x=a(x,u<0?0:_(u)|0),!i.TYPED_ARRAY_SUPPORT)for(var d=0;d<u;++d)x[d]=0;return x}i.allocUnsafe=function(x){return b(null,x)},i.allocUnsafeSlow=function(x){return b(null,x)};function E(x,u,d){if((typeof d!="string"||d==="")&&(d="utf8"),!i.isEncoding(d))throw new TypeError('"encoding" must be a valid string encoding');var v=k(u,d)|0;x=a(x,v);var A=x.write(u,d);return A!==v&&(x=x.slice(0,A)),x}function y(x,u){var d=u.length<0?0:_(u.length)|0;x=a(x,d);for(var v=0;v<d;v+=1)x[v]=u[v]&255;return x}function S(x,u,d,v){if(u.byteLength,d<0||u.byteLength<d)throw new RangeError("'offset' is out of bounds");if(u.byteLength<d+(v||0))throw new RangeError("'length' is out of bounds");return d===void 0&&v===void 0?u=new Uint8Array(u):v===void 0?u=new Uint8Array(u,d):u=new Uint8Array(u,d,v),i.TYPED_ARRAY_SUPPORT?(x=u,x.__proto__=i.prototype):x=y(x,u),x}function C(x,u){if(i.isBuffer(u)){var d=_(u.length)|0;return x=a(x,d),x.length===0||u.copy(x,0,0,d),x}if(u){if(typeof ArrayBuffer<"u"&&u.buffer instanceof ArrayBuffer||"length"in u)return typeof u.length!="number"||lt(u.length)?a(x,0):y(x,u);if(u.type==="Buffer"&&n(u.data))return y(x,u.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function _(x){if(x>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return x|0}function j(x){return+x!=x&&(x=0),i.alloc(+x)}i.isBuffer=function(u){return!!(u!=null&&u._isBuffer)},i.compare=function(u,d){if(!i.isBuffer(u)||!i.isBuffer(d))throw new TypeError("Arguments must be Buffers");if(u===d)return 0;for(var v=u.length,A=d.length,N=0,D=Math.min(v,A);N<D;++N)if(u[N]!==d[N]){v=u[N],A=d[N];break}return v<A?-1:A<v?1:0},i.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(u,d){if(!n(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return i.alloc(0);var v;if(d===void 0)for(d=0,v=0;v<u.length;++v)d+=u[v].length;var A=i.allocUnsafe(d),N=0;for(v=0;v<u.length;++v){var D=u[v];
vendor: 13,878 bytes, line 143
143if(!i.isBuffer(D))throw new TypeError('"list" argument must be an Array of Buffers');D.copy(A,N),N+=D.length}return A};function k(x,u){if(i.isBuffer(x))return x.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(x)||x instanceof ArrayBuffer))return x.byteLength;typeof x!="string"&&(x=""+x);var d=x.length;if(d===0)return 0;for(var v=!1;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":case void 0:return Le(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return gt(x).length;default:if(v)return Le(x).length;u=(""+u).toLowerCase(),v=!0}}i.byteLength=k;function O(x,u,d){var v=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,u>>>=0,d<=u))return"";for(x||(x="utf8");;)switch(x){case"hex":return H(this,u,d);case"utf8":case"utf-8":return re(this,u,d);case"ascii":return Te(this,u,d);case"latin1":case"binary":return Ce(this,u,d);case"base64":return we(this,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Se(this,u,d);default:if(v)throw new TypeError("Unknown encoding: "+x);x=(x+"").toLowerCase(),v=!0}}i.prototype._isBuffer=!0;function L(x,u,d){var v=x[u];x[u]=x[d],x[d]=v}i.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<u;d+=2)L(this,d,d+1);return this},i.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<u;d+=4)L(this,d,d+3),L(this,d+1,d+2);return this},i.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<u;d+=8)L(this,d,d+7),L(this,d+1,d+6),L(this,d+2,d+5),L(this,d+3,d+4);return this},i.prototype.toString=function(){var u=this.length|0;return u===0?"":arguments.length===0?re(this,0,u):O.apply(this,arguments)},i.prototype.equals=function(u){if(!i.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:i.compare(this,u)===0},i.prototype.inspect=function(){var u="",d=e.INSPECT_MAX_BYTES;return this.length>0&&(u=this.toString("hex",0,d).match(/.{2}/g).join(" "),this.length>d&&(u+=" ... ")),"<Buffer "+u+">"},i.prototype.compare=function(u,d,v,A,N){if(!i.isBuffer(u))throw new TypeError("Argument must be a Buffer");if(d===void 0&&(d=0),v===void 0&&(v=u?u.length:0),A===void 0&&(A=0),N===void 0&&(N=this.length),d<0||v>u.length||A<0||N>this.length)throw new RangeError("out of range index");if(A>=N&&d>=v)return 0;if(A>=N)return-1;if(d>=v)return 1;if(d>>>=0,v>>>=0,A>>>=0,N>>>=0,this===u)return 0;for(var D=N-A,W=v-d,Z=Math.min(D,W),m=this.slice(A,N),l=u.slice(d,v),c=0;c<Z;++c)if(m[c]!==l[c]){D=m[c],W=l[c];break}return D<W?-1:W<D?1:0};function V(x,u,d,v,A){if(x.length===0)return-1;if(typeof d=="string"?(v=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,isNaN(d)&&(d=A?0:x.length-1),d<0&&(d=x.length+d),d>=x.length){if(A)return-1;d=x.length-1}else if(d<0)if(A)d=0;else return-1;if(typeof u=="string"&&(u=i.from(u,v)),i.isBuffer(u))return u.length===0?-1:Q(x,u,d,v,A);if(typeof u=="number")return u=u&255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?A?Uint8Array.prototype.indexOf.call(x,u,d):Uint8Array.prototype.lastIndexOf.call(x,u,d):Q(x,[u],d,v,A);throw new TypeError("val must be string, number or Buffer")}function Q(x,u,d,v,A){var N=1,D=x.length,W=u.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(x.length<2||u.length<2)return-1;N=2,D/=2,W/=2,d/=2}function Z(T,I){return N===1?T[I]:T.readUInt16BE(I*N)}var m;if(A){var l=-1;for(m=d;m<D;m++)if(Z(x,m)===Z(u,l===-1?0:m-l)){if(l===-1&&(l=m),m-l+1===W)return l*N}else l!==-1&&(m-=m-l),l=-1}else for(d+W>D&&(d=D-W),m=d;m>=0;m--){for(var c=!0,w=0;w<W;w++)if(Z(x,m+w)!==Z(u,w)){c=!1;break}if(c)return m}return-1}i.prototype.includes=function(u,d,v){return this.indexOf(u,d,v)!==-1},i.prototype.indexOf=function(u,d,v){return V(this,u,d,v,!0)},i.prototype.lastIndexOf=function(u,d,v){return V(this,u,d,v,!1)};function te(x,u,d,v){d=Number(d)||0;var A=x.length-d;v?(v=Number(v),v>A&&(v=A)):v=A;var N=u.length;if(N%2!==0)throw new TypeError("Invalid hex string");v>N/2&&(v=N/2);for(var D=0;D<v;++D){var W=parseInt(u.substr(D*2,2),16);if(isNaN(W))return D;x[d+D]=W}return D}function ie(x,u,d,v){return Qe(Le(u,x.length-d),x,d,v)}function oe(x,u,d,v){return Qe(qe(u),x,d,v)}function ye(x,u,d,v){return oe(x,u,d,v)}function $(x,u,d,v){return Qe(gt(u),x,d,v)}function z(x,u,d,v){return Qe(Xe(u,x.length-d),x,d,v)}i.prototype.write=function(u,d,v,A){if(d===void 0)A="utf8",v=this.length,d=0;else if(v===void 0&&typeof d=="string")A=d,v=this.length,d=0;else if(isFinite(d))d=d|0,isFinite(v)?(v=v|0,A===void 0&&(A="utf8")):(A=v,v=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var N=this.length-d;if((v===void 0||v>N)&&(v=N),u.length>0&&(v<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");A||(A="utf8");for(var D=!1;;)switch(A){case"hex":return te(this,u,d,v);case"utf8":case"utf-8":return ie(this,u,d,v);case"ascii":return oe(this,u,d,v);case"latin1":case"binary":return ye(this,u,d,v);case"base64":return $(this,u,d,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,u,d,v);default:if(D)throw new TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),D=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function we(x,u,d){return u===0&&d===x.length?t.fromByteArray(x):t.fromByteArray(x.slice(u,d))}function re(x,u,d){d=Math.min(x.length,d);for(var v=[],A=u;A<d;){var N=x[A],D=null,W=N>239?4:N>223?3:N>191?2:1;if(A+W<=d){var Z,m,l,c;switch(W){case 1:N<128&&(D=N);break;case 2:Z=x[A+1],(Z&192)===128&&(c=(N&31)<<6|Z&63,c>127&&(D=c));break;case 3:Z=x[A+1],m=x[A+2],(Z&192)===128&&(m&192)===128&&(c=(N&15)<<12|(Z&63)<<6|m&63,c>2047&&(c<55296||c>57343)&&(D=c));break;case 4:Z=x[A+1],m=x[A+2],l=x[A+3],(Z&192)===128&&(m&192)===128&&(l&192)===128&&(c=(N&15)<<18|(Z&63)<<12|(m&63)<<6|l&63,c>65535&&c<1114112&&(D=c))}}D===null?(D=65533,W=1):D>65535&&(D-=65536,v.push(D>>>10&1023|55296),D=56320|D&1023),v.push(D),A+=W}return le(v)}var xe=4096;function le(x){var u=x.length;if(u<=xe)return String.fromCharCode.apply(String,x);for(var d="",v=0;v<u;)d+=String.fromCharCode.apply(String,x.slice(v,v+=xe));return d}function Te(x,u,d){var v="";d=Math.min(x.length,d);for(var A=u;A<d;++A)v+=String.fromCharCode(x[A]&127);return v}function Ce(x,u,d){var v="";d=Math.min(x.length,d);for(var A=u;A<d;++A)v+=String.fromCharCode(x[A]);return v}function H(x,u,d){var v=x.length;(!u||u<0)&&(u=0),(!d||d<0||d>v)&&(d=v);for(var A="",N=u;N<d;++N)A+=Ze(x[N]);return A}function Se(x,u,d){for(var v=x.slice(u,d),A="",N=0;N<v.length;N+=2)A+=String.fromCharCode(v[N]+v[N+1]*256);return A}i.prototype.slice=function(u,d){var v=this.length;u=~~u,d=d===void 0?v:~~d,u<0?(u+=v,u<0&&(u=0)):u>v&&(u=v),d<0?(d+=v,d<0&&(d=0)):d>v&&(d=v),d<u&&(d=u);var A;if(i.TYPED_ARRAY_SUPPORT)A=this.subarray(u,d),A.__proto__=i.prototype;else{var N=d-u;A=new i(N,void 0);for(var D=0;D<N;++D)A[D]=this[D+u]}return A};function q(x,u,d){if(x%1!==0||x<0)throw new RangeError("offset is not uint");if(x+u>d)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUIntLE=function(u,d,v){u=u|0,d=d|0,v||q(u,d,this.length);for(var A=this[u],N=1,D=0;++D<d&&(N*=256);)A+=this[u+D]*N;return A},i.prototype.readUIntBE=function(u,d,v){u=u|0,d=d|0,v||q(u,d,this.length);for(var A=this[u+--d],N=1;d>0&&(N*=256);)A+=this[u+--d]*N;return A},i.prototype.readUInt8=function(u,d){return d||q(u,1,this.length),this[u]},i.prototype.readUInt16LE=function(u,d){return d||q(u,2,this.length),this[u]|this[u+1]<<8},i.prototype.readUInt16BE=function(u,d){return d||q(u,2,this.length),this[u]<<8|this[u+1]},i.prototype.readUInt32LE=function(u,d){return d||q(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},i.prototype.readUInt32BE=function(u,d){return d||q(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},i.prototype.readIntLE=function(u,d,v){u=u|0,d=d|0,v||q(u,d,this.length);for(var A=this[u],N=1,D=0;++D<d&&(N*=256);)A+=this[u+D]*N;return N*=128,A>=N&&(A-=Math.pow(2,8*d)),A},i.prototype.readIntBE=function(u,d,v){u=u|0,d=d|0,v||q(u,d,this.length);for(var A=d,N=1,D=this[u+--A];A>0&&(N*=256);)D+=this[u+--A]*N;return N*=128,D>=N&&(D-=Math.pow(2,8*d)),D},i.prototype.readInt8=function(u,d){return d||q(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},i.prototype.readInt16LE=function(u,d){d||q(u,2,this.length);var v=this[u]|this[u+1]<<8;return v&32768?v|4294901760:v},i.prototype.readInt16BE=function(u,d){d||q(u,2,this.length);var v=this[u+1]|this[u]<<8;return v&32768?v|4294901760:v},i.prototype.readInt32LE=function(u,d){return d||q(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},i.prototype.readInt32BE=function(u,d){return d||q(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},i.prototype.readFloatLE=function(u,d){return d||q(u,4,this.length),r.read(this,u,!0,23,4)},i.prototype.readFloatBE=function(u,d){return d||q(u,4,this.length),r.read(this,u,!1,23,4)},i.prototype.readDoubleLE=function(u,d){return d||q(u,8,this.length),r.read(this,u,!0,52,8)},i.prototype.readDoubleBE=function(u,d){return d||q(u,8,this.length),r.read(this,u,!1,52,8)};function M(x,u,d,v,A,N){if(!i.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>A||u<N)throw new RangeError('"value" argument is out of bounds');if(d+v>x.length)throw new RangeError("Index out of range")}i.prototype.writeUIntLE=function(u,d,v,A){if(u=+u,d=d|0,v=v|0,!A){var N=Math.pow(2,8*v)-1;M(this,u,d,v,N,0)}var D=1,W=0;for(this[d]=u&255;++W<v&&(D*=256);)this[d+W]=u/D&255;return d+v},i.prototype.writeUIntBE=function(u,d,v,A){if(u=+u,d=d|0,v=v|0,!A){var N=Math.pow(2,8*v)-1;M(this,u,d,v,N,0)}var D=v-1,W=1;for(this[d+D]=u&255;--D>=0&&(W*=256);)this[d+D]=u/W&255;return d+v},i.prototype.writeUInt8=function(u,d,v){return u=+u,d=d|0,v||M(this,u,d,1,255,0),i.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),this[d]=u&255,d+1};function ee(x,u,d,v){u<0&&(u=65535+u+1);for(var A=0,N=Math.min(x.length-d,2);A<N;++A)x[d+A]=(u&255<<8*(v?A:1-A))>>>(v?A:1-A)*8}i.prototype.writeUInt16LE=function(u,d,v){return u=+u,d=d|0,v||M(this,u,d,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[d]=u&255,this[d+1]=u>>>8):ee(this,u,d,!0),d+2},i.prototype.writeUInt16BE=function(u,d,v){return u=+u,d=d|0,v||M(this,u,d,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[d]=u>>>8,this[d+1]=u&255):ee(this,u,d,!1),d+2};function ne(x,u,d,v){u<0&&(u=4294967295+u+1);for(var A=0,N=Math.min(x.length-d,4);A<N;++A)x[d+A]=u>>>(v?A:3-A)*8&255}i.prototype.writeUInt32LE=function(u,d,v){return u=+u,d=d|0,v||M(this,u,d,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[d+3]=u>>>24,this[d+2]=u>>>16,this[d+1]=u>>>8,this[d]=u&255):ne(this,u,d,!0),d+4},i.prototype.writeUInt32BE=function(u,d,v){return u=+u,d=d|0,v||M(this,u,d,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255):ne(this,u,d,!1),d+4},i.prototype.writeIntLE=function(u,d,v,A){if(u=+u,d=d|0,!A){var N=Math.pow(2,8*v-1);M(this,u,d,v,N-1,-N)}var D=0,W=1,Z=0;for(this[d]=u&255;++D<v&&(W*=256);)u<0&&Z===0&&this[d+D-1]!==0&&(Z=1),this[d+D]=(u/W>>0)-Z&255;return d+v},i.prototype.writeIntBE=function(u,d,v,A){if(u=+u,d=d|0,!A){var N=Math.pow(2,8*v-1);M(this,u,d,v,N-1,-N)}var D=v-1,W=1,Z=0;for(this[d+D]=u&255;--D>=0&&(W*=256);)u<0&&Z===0&&this[d+D+1]!==0&&(Z=1),this[d+D]=(u/W>>0)-Z&255;return d+v},i.prototype.writeInt8=function(u,d,v){return u=+u,d=d|0,v||M(this,u,d,1,127,-128),i.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),u<0&&(u=255+u+1),this[d]=u&255,d+1},i.prototype.writeInt16LE=function(u,d,v){return u=+u,d=d|0,v||M(this,u,d,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[d]=u&255,this[d+1]=u>>>8):ee(this,u,d,!0),d+2},i.prototype.writeInt16BE=function(u,d,v){return u=+u,d=d|0,v||M(this,u,d,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[d]=u>>>8,this[d+1]=u&255):ee(this,u,d,!1),d+2},i.prototype.writeInt32LE=function(u,d,v){return u=+u,d=d|0,v||M(this,u,d,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[d]=u&255,this[d+1]=u>>>8,this[d+2]=u>>>16,this[d+3]=u>>>24):ne(this,u,d,!0),d+4},i.prototype.writeInt32BE=function(u,d,v){return u=+u,d=d|0,v||M(this,u,d,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),i.TYPED_ARRAY_SUPPORT?(this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255):ne(this,u,d,!1),d+4};function ve(x,u,d,v,A,N){if(d+v>x.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function Pe(x,u,d,v,A){return A||ve(x,u,d,4),r.write(x,u,d,v,23,4),d+4}i.prototype.writeFloatLE=function(u,d,v){return Pe(this,u,d,!0,v)},i.prototype.writeFloatBE=function(u,d,v){return Pe(this,u,d,!1,v)};function ue(x,u,d,v,A){return A||ve(x,u,d,8),r.write(x,u,d,v,52,8),d+8}i.prototype.writeDoubleLE=function(u,d,v){return ue(this,u,d,!0,v)},i.prototype.writeDoubleBE=function(u,d,v){return ue(this,u,d,!1,v)},i.prototype.copy=function(u,d,v,A){if(v||(v=0),!A&&A!==0&&(A=this.length),d>=u.length&&(d=u.length),d||(d=0),A>0&&A<v&&(A=v),A===v||u.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(v<0||v>=this.length)throw new RangeError("sourceStart out of bounds");if(A<0)throw new RangeError("sourceEnd out of bounds");A>this.length&&(A=this.length),u.length-d<A-v&&(A=u.length-d+v);var N=A-v,D;if(this===u&&v<d&&d<A)for(D=N-1;D>=0;--D)u[D+d]=this[D+v];else if(N<1e3||!i.TYPED_ARRAY_SUPPORT)for(D=0;D<N;++D)u[D+d]=this[D+v];else Uint8Array.prototype.set.call(u,this.subarray(v,v+N),d);return N},i.prototype.fill=function(u,d,v,A){if(typeof u=="string"){if(typeof d=="str
143ing"?(A=d,d=0,v=this.length):typeof v=="string"&&(A=v,v=this.length),u.length===1){var N=u.charCodeAt(0);N<256&&(u=N)}if(A!==void 0&&typeof A!="string")throw new TypeError("encoding must be a string");if(typeof A=="string"&&!i.isEncoding(A))throw new TypeError("Unknown encoding: "+A)}else typeof u=="number"&&(u=u&255);if(d<0||this.length<d||this.length<v)throw new RangeError("Out of range index");if(v<=d)return this;d=d>>>0,v=v===void 0?this.length:v>>>0,u||(u=0);var D;if(typeof u=="number")for(D=d;D<v;++D)this[D]=u;else{var W=i.isBuffer(u)?u:Le(new i(u,A).toString()),Z=W.length;for(D=0;D<v-d;++D)this[D+d]=W[D%Z]}return this};var je=/[^+\/0-9A-Za-z-_]/g;function Me(x){if(x=Je(x).replace(je,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function Je(x){return x.trim?x.trim():x.replace(/^\s+|\s+$/g,"")}function Ze(x){return x<16?"0"+x.toString(16):x.toString(16)}function Le(x,u){u=u||1/0;for(var d,v=x.length,A=null,N=[],D=0;D<v;++D){if(d=x.charCodeAt(D),d>55295&&d<57344){if(!A){if(d>56319){(u-=3)>-1&&N.push(239,191,189);continue}else if(D+1===v){(u-=3)>-1&&N.push(239,191,189);continue}A=d;continue}if(d<56320){(u-=3)>-1&&N.push(239,191,189),A=d;continue}d=(A-55296<<10|d-56320)+65536}else A&&(u-=3)>-1&&N.push(239,191,189);if(A=null,d<128){if((u-=1)<0)break;N.push(d)}else if(d<2048){if((u-=2)<0)break;N.push(d>>6|192,d&63|128)}else if(d<65536){if((u-=3)<0)break;N.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((u-=4)<0)break;N.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return N}function qe(x){for(var u=[],d=0;d<x.length;++d)u.push(x.charCodeAt(d)&255);return u}function Xe(x,u){for(var d,v,A,N=[],D=0;D<x.length&&!((u-=2)<0);++D)d=x.charCodeAt(D),v=d>>8,A=d%256,N.push(A),N.push(v);return N}function gt(x){return t.toByteArray(Me(x))}function Qe(x,u,d,v){for(var A=0;A<v&&!(A+d>=u.length||A>=x.length);++A)u[A+d]=x[A];return A}function lt(x){return x!==x}})($r)),$r}var pe=_d(),De;typeof window<"u"&&window.crypto&&(De=window.crypto);!De&&typeof window<"u"&&window.msCrypto&&(De=window.msCrypto);!De&&typeof globalThis<"u"&&globalThis.crypto&&(De=globalThis.crypto);if(!De&&typeof require=="function")try{De=require("crypto")}catch{}function Id(){if(De){if(typeof De.getRandomValues=="function")try{return De.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof De.randomBytes=="function")try{return De.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")}function Ud(e){for(var t=e.words,r=e.sigBytes,n=[],s=0;s<r;s++){var o=t[s>>>2]>>>24-s%4*8&255;n.push((o>>>4).toString(16)),n.push((o&15).toString(16))}return n.join("")}var kd=(function(){function e(r,n){r=this.words=r||[],n!=null?this.sigBytes=n:this.sigBytes=r.length*4}var t=e.prototype;return t.random=function(n){for(var s=[],o=0;o<n;o+=4)s.push(Id());return new e(s,n)},t.toString=function(){return Ud(this)},e})(),Hr={};var an=function(e,t){return an=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)n.hasOwnProperty(s)&&(r[s]=n[s])},an(e,t)};function Nd(e,t){an(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ln=function(){return ln=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ln.apply(this,arguments)};function Pd(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function jd(e,t,r,n){var s=arguments.length,o=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var i=e.length-1;i>=0;i--)(a=e[i])&&(o=(s<3?a(o):s>3?a(t,r,o):a(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function Dd(e,t){return function(r,n){t(r,n,e)}}function Bd(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Od(e,t,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function i(g){try{h(n.next(g))}catch(b){a(b)}}function p(g){try{h(n.throw(g))}catch(b){a(b)}}function h(g){g.done?o(g.value):s(g.value).then(i,p)}h((n=n.apply(e,t||[])).next())})}function Fd(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(h){return function(g){return p([h,g])}}function p(h){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,s&&(o=h[0]&2?s.return:h[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,h[1])).done)return o;switch(s=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,s=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){r.label=h[1];break}if(h[0]===6&&r.label<o[1]){r.label=o[1],o=h;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(h);break}o[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(g){h=[6,g],s=0}
vendor: 3,309 bytes, line 143
143finally{n=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function Md(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}function Ld(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function cn(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ti(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,o=[],a;try{for(;(t===void 0||t-- >0)&&!(s=n.next()).done;)o.push(s.value)}catch(i){a={error:i}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function qd(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ti(arguments[t]));return e}function Vd(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),s=0,t=0;t<r;t++)for(var o=arguments[t],a=0,i=o.length;a<i;a++,s++)n[s]=o[a];return n}function Kt(e){return this instanceof Kt?(this.v=e,this):new Kt(e)}function $d(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),s,o=[];return s={},a("next"),a("throw"),a("return"),s[Symbol.asyncIterator]=function(){return this},s;function a(E){n[E]&&(s[E]=function(y){return new Promise(function(S,C){o.push([E,y,S,C])>1||i(E,y)})})}function i(E,y){try{p(n[E](y))}catch(S){b(o[0][3],S)}}function p(E){E.value instanceof Kt?Promise.resolve(E.value.v).then(h,g):b(o[0][2],E)}function h(E){i("next",E)}function g(E){i("throw",E)}function b(E,y){E(y),o.shift(),o.length&&i(o[0][0],o[0][1])}}function zd(e){var t,r;return t={},n("next"),n("throw",function(s){throw s}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(s,o){t[s]=e[s]?function(a){return(r=!r)?{value:Kt(e[s](a)),done:s==="return"}:o?o(a):a}:o}}function Hd(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof cn=="function"?cn(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(i,p){a=e[o](a),s(i,p,a.done,a.value)})}}function s(o,a,i,p){Promise.resolve(p).then(function(h){o({value:h,done:i})},a)}}function Kd(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Wd(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function Gd(e){return e&&e.__esModule?e:{default:e}}function Yd(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function Jd(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}const Zd=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return ln},__asyncDelegator:zd,__asyncGenerator:$d,__asyncValues:Hd,__await:Kt,__awaiter:Od,__classPrivateFieldGet:Yd,__classPrivateFieldSet:Jd,__createBinding:Md,__decorate:jd,__exportStar:Ld,__extends:Nd,__generator:Fd,__importDefault:Gd,__importStar:Wd,__makeTemplateOb
143ject:Kd,__metadata:Bd,__param:Dd,__read:Ti,__rest:Pd,__spread:qd,__spreadArrays:Vd,__values:cn},Symbol.toStringTag,{value:"Module"})),Ai=xn(Zd);var Dt={},Ne={},ws;function Ri(){return ws||(ws=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.MAX_HASHABLE_LENGTH=Ne.INIT=Ne.KEY=Ne.DIGEST_LENGTH=Ne.BLOCK_SIZE=void 0,Ne.BLOCK_SIZE=64,Ne.DIGEST_LENGTH=32,Ne.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ne.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Ne.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),Ne}var Bt={},xs;function Xd(){if(xs)return Bt;xs=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.RawSha256=void 0;var e=Ri(),t=(function(){function r(){this.state=Int32Array.from(e.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return r.prototype.update=function(n){if(this.finished)throw new Error("Attempted to update an already finished hash.");var s=0,o=n.byteLength;if(this.bytesHashed+=o,this.bytesHashed*8>e.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;o>0;)this.buffer[this.bufferLength++]=n[s++],o--,this.bufferLength===e.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var n=this.bytesHashed*8,s=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),o=this.bufferLength;if(s.setUint8(this.bufferLength++,128),o%e.BLOCK_SIZE>=e.BLOCK_SIZE-8){for(var a=this.bufferLength;a<e.BLOCK_SIZE;a++)s.setUint8(a,0);this.hashBuffer(),this.bufferLength=0}for(var a=this.bufferLength;a<e.BLOCK_SIZE-8;a++)s.setUint8(a,0);s.setUint32(e.BLOCK_SIZE-8,Math.floor(n/4294967296),!0),s.setUint32(e.BLOCK_SIZE-4,n),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(e.DIGEST_LENGTH),a=0;a<8;a++)i[a*4]=this.state[a]>>>24&255,i[a*4+1]=this.state[a]>>>16&255,i[a*4+2]=this.state[a]>>>8&255,i[a*4+3]=this.state[a]>>>0&255;return i},r.prototype.hashBuffer=function(){for(var n=this,s=n.buffer,o=n.state,a=o[0],i=o[1],p=o[2],h=o[3],g=o[4],b=o[5],E=o[6],y=o[7],S=0;S<e.BLOCK_SIZE;S++){if(S<16)this.temp[S]=(s[S*4]&255)<<24|(s[S*4+1]&255)<<16|(s[S*4+2]&255)<<8|s[S*4+3]&255;else{var C=this.temp[S-2],_=(C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10;C=this.temp[S-15];var j=(C>>>7|C<<25)^(C>>>18|C<<14)^C>>>3;this.temp[S]=(_+this.temp[S-7]|0)+(j+this.temp[S-16]|0)}var k=(((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&b^~g&E)|0)+(y+(e.KEY[S]+this.temp[S]|0)|0)|0,O=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&i^a&p^i&p)|0;y=E,E=b,b=g,g=h+k|0,h=p,p=i,i=a,a=k+O|0}o[0]+=a,o[1]+=i,o[2]+=p,o[3]+=h,o[4]+=g,o[5]+=b,o[6]+=E,o[7]+=y},r})();return Bt.RawSha256=t,Bt}var Kr={},Ot={};const Qd=e=>{const t=[];for(let r=0,n=e.length;r<n;r++){const s=e.charCodeAt(r);if(s<128)t.push(s);else if(s<2048)t.push(s>>6|192,s&63|128);else if(r+1<e.length&&(s&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320){const o=65536+((s&1023)<<10)+(e.charCodeAt(++r)&1023);t.push(o>>18|240,o>>12&63|128,o>>6&63|128,o&63|128)}else t.push(s>>12|224,s>>6&63|128,s&63|128)}return Uint8Array.from(t)},ef=e=>{let t="";for(let r=0,n=e.length;r<n;r++){const s=e[r];if(s<128)t+=String.fromCharCode(s);else if(192<=s&&s<224){const o=e[++r];t+=String.fromCharCode((s&31)<<6|o&63)}else if(240<=s&&s<365){const a="%"+[s,e[++r],e[++r],e[++r]].map(i=>i.toString(16)).join("%");t+=decodeURIComponent(a)}else t+=String.fromCharCode((s&15)<<12|(e[++r]&63)<<6|e[++r]&63)}return t};function tf(e){return new TextEncoder().encode(e)}function rf(e){return new TextDecoder("utf-8").decode(e)}const nf=e=>typeof TextEncoder=="function"?tf(e):Qd(e),sf=e=>typeof TextDecoder=="function"?rf(e):ef(e),of=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:nf,toUtf8:sf},Symbol.toStringTag,{value:"Module"})),af=xn(of);var vs;function lf(){if(vs)return Ot;
143vs=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.convertToBuffer=void 0;var e=af,t=typeof Buffer<"u"&&Buffer.from?function(n){return Buffer.from(n,"utf8")}:e.fromUtf8;function r(n){return n instanceof Uint8Array?n:typeof n=="string"?t(n):ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)}return Ot.convertToBuffer=r,Ot}var Ft={},bs;function cf(){if(bs)return Ft;bs=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.isEmptyData=void 0;function e(t){return typeof t=="string"?t.length===0:t.byteLength===0}return Ft.isEmptyData=e,Ft}var Mt={},Ss;function uf(){if(Ss)return Mt;Ss=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.numToUint8=void 0;function e(t){return new Uint8Array([(t&4278190080)>>24,(t&16711680)>>16,(t&65280)>>8,t&255])}return Mt.numToUint8=e,Mt}var Lt={},Es;function df(){if(Es)return Lt;Es=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.uint32ArrayFrom=void 0;function e(t){if(!Array.from){for(var r=new Uint32Array(t.length),n=0;n<t.length;)r[n]=t[n];return r}return Uint32Array.from(t)}return Lt.uint32ArrayFrom=e,Lt}var Cs;function ff(){return Cs||(Cs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uint32ArrayFrom=e.numToUint8=e.isEmptyData=e.convertToBuffer=void 0;var t=lf();Object.defineProperty(e,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var r=cf();Object.defineProperty(e,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var n=uf();Object.defineProperty(e,"numToUint8",{enumerable:!0,get:function(){return n.numToUint8}});var s=df();Object.defineProperty(e,"uint32ArrayFrom",{enumerable:!0,get:function(){return s.uint32ArrayFrom}})})(Kr)),Kr}var Ts;function hf(){if(Ts)return Dt;Ts=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.Sha256=void 0;var e=Ai,t=Ri(),r=Xd(),n=ff(),s=(function(){function a(i){if(this.hash=new r.RawSha256,i){this.outer=new r.RawSha256;var p=o(i),h=new Uint8Array(t.BLOCK_SIZE);h.set(p);for(var g=0;g<t.BLOCK_SIZE;g++)p[g]^=54,h[g]^=92;this.hash.update(p),this.outer.update(h);for(var g=0;g<p.byteLength;g++)p[g]=0}}return a.prototype.update=function(i){if(!((0,n.isEmptyData)(i)||this.error))try{this.hash.update((0,n.convertToBuffer)(i))}catch(p){this.error=p}},a.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},a.prototype.digest=function(){return(0,e.__awaiter)(this,void 0,void 0,function(){return(0,e.__generator)(this,function(i){return[2,this.digestSync()]})})},a})();Dt.Sha256=s;function o(a){var i=(0,n.convertToBuffer)(a);if(i.byteLength>t.BLOCK_SIZE){var p=new r.RawSha256;p.update(i),i=p.digest()}var h=new Uint8Array(t.BLOCK_SIZE);return h.set(i),h}return Dt}var As;function pf(){return As||(As=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Ai;(0,t.__exportStar)(hf(),e)})(Hr)),Hr}var $t=pf();function F(e,t){e!=null&&this.fromString(e,t)}function Re(){return new F(null)}var it,mf=0xdeadbeefcafe,Rs=(mf&16777215)==15715070;function gf(e,t,r,n,s,o){for(;--o>=0;){var a=t*this[e++]+r[n]+s;s=Math.floor(a/67108864),r[n++]=a&67108863}return s}function yf(e,t,r,n,s,o){for(var a=t&32767,i=t>>15;--o>=0;){var p=this[e]&32767,h=this[e++]>>15,g=i*p+h*a;p=a*p+((g&32767)<<15)+r[n]+(s&1073741823),s=(p>>>30)+(g>>>15)+i*h+(s>>>30),r[n++]=p&1073741823}return s}function wf(e,t,r,n,s,o){for(var a=t&16383,i=t>>14;--o>=0;){var p=this[e]&16383,h=this[e++]>>14,g=i*p+h*a;p=a*p+((g&16383)<<14)+r[n]+s,s=(p>>28)+(g>>14)+i*h,r[n++]=p&268435455}return s}var _s=typeof navigator<"u";_s&&Rs&&navigator.appName=="Microsoft Internet Explorer"?(F.prototype.am=yf,it=30):_s&&Rs&&navigator.appName!="Netscape"?(F.prototype.am=gf,it=26):(F.prototype.am=wf,it=28);F.prototype.DB=it;F.prototype.DM=(1<<it)-1;F.prototype.DV=1<<it;var Nn=52;F.prototype.FV=Math.pow(2,Nn);F.prototype.F1=Nn-it;F.prototype.F2=2*it-Nn;var xf="0123456789abcdefghijklmnopqrstuvwxyz",Pr=new Array,_t,Oe;_t=48;for(Oe=0;Oe<=9;++Oe)Pr[_t++]=Oe;_t=97;for(Oe=10;Oe<36;++Oe)Pr[_t++]=Oe;_t=65;for(Oe=10;Oe<36;++Oe)Pr[_t++]=Oe;function Is(e){return xf.charAt(e)}function vf(e,t){var r=Pr[e.charCodeAt(t)];return r??-1}function bf(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function Sf(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function Pn(e){var t=Re();return t.fromInt(e),t}function Ef(e,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var n=e.length,s=!1,o=0;--n>=0;){var a=vf(e,n);if(a<0){e.charAt(n)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=a:o+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,o+=r,o>=this.DB&&(o-=this.DB)}this.clamp(),s&&F.ZERO.subTo(this,this)}function Cf(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t}function Tf(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var r=(1<<t)-1,n,s=!1,o="",a=this.t,i=this.DB-a*this.DB%t;if(a-- >0)for(i<this.DB&&(n=this[a]>>i)>0&&(s=!0,o=Is(n));a>=0;)i<t?(n=(this[a]&(1<<i)-1)<<t-i,n|=this[--a]>>(i+=this.DB-t)):(n=this[a]>>(i-=t)&r,i<=0&&(i+=this.DB,--a)),n>0&&(s=!0),s&&(o+=Is(n));return s?o:"0"}function Af(){var e=Re();return F.ZERO.subTo(this,e),e}function Rf(){return this.s<0?this.negate():this}function _f(e){var t=this.s-e.s;if(t!=0)return t;var r=this.t;if(t=r-e.t,t!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this[r]-e[r])!=0)return t;return 0}function jn(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}function If(){return this.t<=0?0:this.DB*(this.t-1)+jn(this[this.t-1]^this.s&this.DM)}function Uf(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s}function kf(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s}function Nf(e,t){var r=e%this.DB,n=this.DB-r,s=(1<<n)-1,o=Math.floor(e/this.DB),a=this.s<<r&this.DM,i;for(i=this.t-1;i>=0;--i)t[i+o+1]=this[i]>>n|a,a=(this[i]&s)<<r;for(i=o-1;i>=0;--i)t[i]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()}function Pf(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var n=e%this.DB,s=this.DB-n,o=(1<<n)-1;t[0]=this[r]>>n;for(var a=r+1;a<this.t;++a)t[a-r-1]|=(this[a]&o)<<s,t[a-r]=this[a]>>n;n>0&&(t[this.t-r-1]|=(this.s&o)<<s),t.t=this.t-r,t.clamp()}function jf(e,t){for(var r=0,n=0,s=Math.min(e.t,this.t);r<s;)n+=this[r]-e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n-=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n-=e[r],t[r++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()}function Df(e,t){var r=this.abs(),n=e.abs(),s=r.t;for(t.t=s+n.t;--s>=0;)t[s]=0;for(s=0;s<n.t;++s)t[s+r.t]=r.am(0,n[s],t,s,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&F.ZERO.subTo(t,t)}function Bf(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var n=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,n,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()}function Of(e,t,r){var n=e.abs();if(!(n.t<=0)){var s=this.abs();if(s.t<n.t){t?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=Re());var o=Re(),a=this.s,i=e.s,p=this.DB-jn(n[n.t-1]);p>0?(n.lShiftTo(p,o),s.lShiftTo(p,r)):(n.copyTo(o),s.copyTo(r));var h=o.t,g=o[h-1];if(g!=0){var b=g*(1<<this.F1)+(h>1?o[h-2]>
143>this.F2:0),E=this.FV/b,y=(1<<this.F1)/b,S=1<<this.F2,C=r.t,_=C-h,j=t??Re();for(o.dlShiftTo(_,j),r.compareTo(j)>=0&&(r[r.t++]=1,r.subTo(j,r)),F.ONE.dlShiftTo(h,j),j.subTo(o,o);o.t<h;)o[o.t++]=0;for(;--_>=0;){var k=r[--C]==g?this.DM:Math.floor(r[C]*E+(r[C-1]+S)*y);if((r[C]+=o.am(0,k,r,_,0,h))<k)for(o.dlShiftTo(_,j),r.subTo(j,r);r[C]<--k;)r.subTo(j,r)}t!=null&&(r.drShiftTo(h,t),a!=i&&F.ZERO.subTo(t,t)),r.t=h,r.clamp(),p>0&&r.rShiftTo(p,r),a<0&&F.ZERO.subTo(r,r)}}}function Ff(e){var t=Re();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(F.ZERO)>0&&e.subTo(t,t),t}function Mf(){if(this.t<1)return 0;var e=this[0];if((e&1)==0)return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function Lf(e){return this.compareTo(e)==0}function qf(e,t){for(var r=0,n=0,s=Math.min(e.t,this.t);r<s;)n+=this[r]+e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n+=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n+=e[r],t[r++]=n&this.DM,n>>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[r++]=n:n<-1&&(t[r++]=this.DV+n),t.t=r,t.clamp()}function Vf(e){var t=Re();return this.addTo(e,t),t}function $f(e){var t=Re();return this.subTo(e,t),t}function zf(e){var t=Re();return this.multiplyTo(e,t),t}function Hf(e){var t=Re();return this.divRemTo(e,t,null),t}function It(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function Kf(e){var t=Re();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(F.ZERO)>0&&this.m.subTo(t,t),t}function Wf(e){var t=Re();return e.copyTo(t),this.reduce(t),t}function Gf(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=e[t]&32767,n=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e[r]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function Yf(e,t){e.squareTo(t),this.reduce(t)}function Jf(e,t,r){e.multiplyTo(t,r),this.reduce(r)}It.prototype.convert=Kf;It.prototype.revert=Wf;It.prototype.reduce=Gf;It.prototype.mulTo=Jf;It.prototype.sqrTo=Yf;function Zf(e,t,r){var n=e.bitLength(),s,o=Pn(1),a=new It(t);if(n<=0)return o;n<18?s=1:n<48?s=3:n<144?s=4:n<768?s=5:s=6;var i=new Array,p=3,h=s-1,g=(1<<s)-1;if(i[1]=a.convert(this),s>1){var b=Re();for(a.sqrTo(i[1],b);p<=g;)i[p]=Re(),a.mulTo(b,i[p-2],i[p]),p+=2}var E=e.t-1,y,S=!0,C=Re(),_;for(n=jn(e[E])-1;E>=0;){for(n>=h?y=e[E]>>n-h&g:(y=(e[E]&(1<<n+1)-1)<<h-n,E>0&&(y|=e[E-1]>>this.DB+n-h)),p=s;(y&1)==0;)y>>=1,--p;if((n-=p)<0&&(n+=this.DB,--E),S)i[y].copyTo(o),S=!1;else{for(;p>1;)a.sqrTo(o,C),a.sqrTo(C,o),p-=2;p>0?a.sqrTo(o,C):(_=o,o=C,C=_),a.mulTo(C,i[y],o)}for(;E>=0&&(e[E]&1<<n)==0;)a.sqrTo(o,C),_=o,o=C,C=_,--n<0&&(n=this.DB-1,--E)}var j=a.revert(o);return r(null,j),j}F.prototype.copyTo=bf;F.prototype.fromInt=Sf;F.prototype.fromString=Ef;F.prototype.clamp=Cf;F.prototype.dlShiftTo=Uf;F.prototype.drShiftTo=kf;F.prototype.lShiftTo=Nf;F.prototype.rShiftTo=Pf;F.prototype.subTo=jf;F.prototype.multiplyTo=Df;F.prototype.squareTo=Bf;F.prototype.divRemTo=Of;F.prototype.invDigit=Mf;F.prototype.addTo=qf;F.prototype.toString=Tf;F.prototype.negate=Af;F.prototype.abs=Rf;F.prototype.compareTo=_f;F.prototype.bitLength=If;F.prototype.mod=Ff;F.prototype.equals=Lf;F.prototype.add=Vf;F.prototype.subtract=$f;F.prototype.multiply=zf;F.prototype.divide=Hf;F.prototype.modPow=Zf;F.ZERO=Pn(0);F.ONE=Pn(1);function Wr(e){return pe.Buffer.from(new kd().random(e).toString(),"hex")}var Xf=/^[89a-f]/i,Qf="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",eh="userAttributes.",yt=(function(){function e(r){this.N=new F(Qf,16),this.g=new F("2",16),this.k=new F(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue(function(){}),this.infoBits=pe.Buffer.from("Caldera Derived Key","utf8"),this.poolName=r}var t=e.prototype;return t.getSmallAValue=function(){return this.smallAValue},t.getLargeAValue=function(n){var s=this;this.largeAValue?n(null,this.largeAValue):this.calculateA(this.smallAValue,function(o,a){o&&n(o,null),s.largeAValue=a,n(null,s.largeAValue)})},t.generateRandomSmallA=function(){var n=Wr(128).toString("hex"),s=new F(n,16);return s},t.generateRandomString=function(){return Wr(40).toString("base64")},t.getRandomPassword=function(){return this.randomPassword},t.getSaltDevices=function(){return this.SaltToHashDevices},t.getVerifierDevices=function(){return this.verifierDevices},t.generateHashDevice=function(n,s,o){var a=this;this.randomPassword=this.generateRandomString();var i=""+n+s+":"+this.randomPassword,p=this.hash(i),h=Wr(16).toString("hex");this.SaltToHashDevices=this.padHex(new F(h,16)),this.g.modPow(new F(this.hexHash(this.SaltToHashDevices+p),16),this.N,function(g,b){g&&o(g,null),a.verifierDevices=a.padHex(b),o(null,null)})},t.calculateA=function(n,s){var o=this;this.g.modPow(n,this.N,function(a,i){a&&s(a,null),i.mod(o.N).equals(F.ZERO)&&s(new Error("Illegal paramater. A mod N cannot be 0."),null),s(null,i)})},t.calculateU=function(n,s){this.UHexHash=this.hexHash(this.padHex(n)+this.padHex(s));var o=new F(this.UHexHash,16);return o},t.hash=function(n){var s=new $t.Sha256;s.update(n);var o=s.digestSync(),a=pe.Buffer.from(o).toString("hex");return new Array(64-a.length).join("0")+a},t.hexHash=function(n){return this.hash(pe.Buffer.from(n,"hex"))},t.computehkdf=function(n,s){var o=pe.Buffer.concat([this.infoBits,pe.Buffer.from("�","utf8")]),a=new $t.Sha256(s);a.update(n);var i=a.digestSync(),p=new $t.Sha256(i);p.update(o);var h=p.digestSync(),g=h,b=g.slice(0,16);return b},t.getPasswordAuthenticationKey=function(n,s,o,a,i){var p=this;if(o.mod(this.N).equals(F.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,o),this.UValue.equals(F.ZERO))throw new Error("U cannot be zero.");var h=""+this.poolName+n+":"+s,g=this.hash(h),b=new F(this.hexHash(this.padHex(a)+g),16);this.calculateS(b,o,function(E,y){E&&i(E,null);var S=p.computehkdf(pe.Buffer.from(p.padHex(y),"hex"),pe.Buffer.from(p.padHex(p.UValue),"hex"));i(null,S)})},t.calculateS=function(n,s,o){var a=this;this.g.modPow(n,this.N,function(i,p){i&&o(i,null);
143var h=s.subtract(a.k.multiply(p));h.modPow(a.smallAValue.add(a.UValue.multiply(n)),a.N,function(g,b){g&&o(g,null),o(null,b.mod(a.N))})})},t.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return eh},t.padHex=function(n){if(!(n instanceof F))throw new Error("Not a BigInteger");var s=n.compareTo(F.ZERO)<0,o=n.abs().toString(16);if(o=o.length%2!==0?"0"+o:o,o=Xf.test(o)?"00"+o:o,s){var a=o.split("").map(function(p){var h=~parseInt(p,16)&15;return"0123456789ABCDEF".charAt(h)}).join(""),i=new F(a,16).add(F.ONE);o=i.toString(16),o.toUpperCase().startsWith("FF8")&&(o=o.substring(2))}return o},e})();var _i=(function(){function e(r){this.jwtToken=r||"",this.payload=this.decodePayload()}var t=e.prototype;return t.getJwtToken=function(){return this.jwtToken},t.getExpiration=function(){return this.payload.exp},t.getIssuedAt=function(){return this.payload.iat},t.decodePayload=function(){var n=this.jwtToken.split(".")[1];try{return JSON.parse(pe.Buffer.from(n,"base64").toString("utf8"))}catch{return{}}},e})();function th(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,un(e,t)}function un(e,t){return un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},un(e,t)}var Us=(function(e){function t(r){var n=r===void 0?{}:r,s=n.AccessToken;return e.call(this,s||"")||this}return th(t,e),t})(_i);function rh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dn(e,t)}function dn(e,t){return dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},dn(e,t)}var ks=(function(e){function t(r){var n=r===void 0?{}:r,s=n.IdToken;return e.call(this,s||"")||this}return rh(t,e),t})(_i);var Ns=(function(){function e(r){var n=r===void 0?{}:r,s=n.RefreshToken;this.token=s||""}var t=e.prototype;return t.getToken=function(){return this.token},e})(),nh="5.0.4";var sh="aws-amplify/"+nh,Ii={userAgent:sh,isReactNative:typeof navigator<"u"&&navigator.product==="ReactNative"},oh=function(){return Ii.userAgent};var Ps=(function(){function e(r){var n=r===void 0?{}:r,s=n.IdToken,o=n.RefreshToken,a=n.AccessToken,i=n.ClockDrift;if(a==null||s==null)throw new Error("Id token and Access Token must be present.");this.idToken=s,this.refreshToken=o,this.accessToken=a,this.clockDrift=i===void 0?this.calculateClockDrift():i}var t=e.prototype;return t.getIdToken=function(){return this.idToken},t.getRefreshToken=function(){return this.refreshToken},t.getAccessToken=function(){return this.accessToken},t.getClockDrift=function(){return this.clockDrift},t.calculateClockDrift=function(){var n=Math.floor(new Date/1e3),s=Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt());return n-s},t.isValid=function(){var n=Math.floor(new Date/1e3),s=n-this.clockDrift;return s<this.accessToken.getExpiration()&&s<this.idToken.getExpiration()},e})();var ih=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ah=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],js=(function(){function e(){}var t=e.prototype;return t.getNowString=function(){var n=new Date,s=ah[n.getUTCDay()],o=ih[n.getUTCMonth()],a=n.getUTCDate(),i=n.getUTCHours();i<10&&(i="0"+i);var p=n.getUTCMinutes();p<10&&(p="0"+p);var h=n.getUTCSeconds();h<10&&(h="0"+h);var g=n.getUTCFullYear(),b=s+" "+o+" "+a+" "+i+":"+p+":"+h+" UTC "+g;return b},e})();var lh=(function(){function e(r){var n=r===void 0?{}:r,s=n.Name,o=n.Value;this.Name=s||"",this.Value=o||""}var t=e.prototype;return t.getValue=function(){return this.Value},t.setValue=function(n){return this.Value=n,this},t.getName=function(){return this.Name},t.setName=function(n){return this.Name=n,this},t.toString=function(){return JSON.stringify(this)},t.toJSON=function(){return{Name:this.Name,Value:this.Value}},e})();var ut={},ch=(function(){function e(){}return e.setItem=function(r,n){return ut[r]=n,ut[r]},e.getItem=function(r){return Object.prototype.hasOwnProperty.call(ut,r)?ut[r]:void 0},e.removeItem=function(r){return delete ut[r]},e.clear=function(){return ut={},ut},e})(),Ui=(function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch{this.storageWindow=ch}}var t=e.prototype;return t.getStorage=function(){return this.storageWindow},e})();var uh=typeof navigator<"u",Ds=uh?Ii.isReactNative?"react-native":navigator.userAgent:"nodejs",Bs=(function(){function e(r){if(r==null||r.Username==null||r.Pool==null)throw new Error("Username and Pool information are required.");this.username=r.Username||"",this.pool=r.Pool,this.Session=null,this.client=r.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=r.Storage||new Ui().getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var t=e.prototype;return t.setSignInUserSession=function(n){this.clearCachedUserData(),this.signInUserSession=n,this.cacheTokens()},t.getSignInUserSession=function(){return this.signInUserSession},t.getUsername=function(){return this.username},t.getAuthenticationFlowType=function(){return this.authenticationFlowType},t.setAuthenticationFlowType=function(n){this.authenticationFlowType=n},t.initiateAuth=function(n,s){var o=this,a=n.getAuthParameters();a.USERNAME=this.username;var i=Object.keys(n.getValidationData()).length!==0?n.getValidationData():n.getClientMetadata(),p={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:a,ClientMetadata:i};this.getUserContextData()&&(p.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",p,function(h,g){if(h)return s.onFailure(h);var b=g.ChallengeName,E=g.ChallengeParameters;return b==="CUSTOM_CHALLENGE"?(o.Session=g.Session,s.customChallenge(E)):(o.signInUserSession=o.getCognitoUserSession(g.AuthenticationResult),o.cacheTokens(),s.onSuccess(o.signInUserSession))})},t.authenticateUser=function(n,s){return this.authenticationFlowType==="USER_PASSWORD_AUTH"?this.authenticateUserPlainUsernamePassword(n,s):this.authenticationFlowType==="USER_SRP_AUTH"||this.authenticationFlowType==="CUSTOM_AUTH"?this.authenticateUserDefaultAuth(n,s):s.onFailure(new Error("Authentication flow type is invali
143d."))},t.authenticateUserDefaultAuth=function(n,s){var o=this,a=new yt(this.pool.getUserPoolName()),i=new js,p,h,g={};this.deviceKey!=null&&(g.DEVICE_KEY=this.deviceKey),g.USERNAME=this.username,a.getLargeAValue(function(b,E){b&&s.onFailure(b),g.SRP_A=E.toString(16),o.authenticationFlowType==="CUSTOM_AUTH"&&(g.CHALLENGE_NAME="SRP_A");var y=Object.keys(n.getValidationData()).length!==0?n.getValidationData():n.getClientMetadata(),S={AuthFlow:o.authenticationFlowType,ClientId:o.pool.getClientId(),AuthParameters:g,ClientMetadata:y};o.getUserContextData(o.username)&&(S.UserContextData=o.getUserContextData(o.username)),o.client.request("InitiateAuth",S,function(C,_){if(C)return s.onFailure(C);var j=_.ChallengeParameters;o.username=j.USER_ID_FOR_SRP,o.userDataKey=o.keyPrefix+"."+o.username+".userData",p=new F(j.SRP_B,16),h=new F(j.SALT,16),o.getCachedDeviceKeyAndPassword(),a.getPasswordAuthenticationKey(o.username,n.getPassword(),p,h,function(k,O){k&&s.onFailure(k);var L=i.getNowString(),V=pe.Buffer.concat([pe.Buffer.from(o.pool.getUserPoolName(),"utf8"),pe.Buffer.from(o.username,"utf8"),pe.Buffer.from(j.SECRET_BLOCK,"base64"),pe.Buffer.from(L,"utf8")]),Q=new $t.Sha256(O);Q.update(V);var te=Q.digestSync(),ie=pe.Buffer.from(te).toString("base64"),oe={};oe.USERNAME=o.username,oe.PASSWORD_CLAIM_SECRET_BLOCK=j.SECRET_BLOCK,oe.TIMESTAMP=L,oe.PASSWORD_CLAIM_SIGNATURE=ie,o.deviceKey!=null&&(oe.DEVICE_KEY=o.deviceKey);var ye=function(we,re){return o.client.request("RespondToAuthChallenge",we,function(xe,le){return xe&&xe.code==="ResourceNotFoundException"&&xe.message.toLowerCase().indexOf("device")!==-1?(oe.DEVICE_KEY=null,o.deviceKey=null,o.randomPassword=null,o.deviceGroupKey=null,o.clearCachedDeviceKeyAndPassword(),ye(we,re)):re(xe,le)})},$={ChallengeName:"PASSWORD_VERIFIER",ClientId:o.pool.getClientId(),ChallengeResponses:oe,Session:_.Session,ClientMetadata:y};o.getUserContextData()&&($.UserContextData=o.getUserContextData()),ye($,function(z,we){return z?s.onFailure(z):o.authenticateUserInternal(we,a,s)})})})})},t.authenticateUserPlainUsernamePassword=function(n,s){var o=this,a={};if(a.USERNAME=this.username,a.PASSWORD=n.getPassword(),!a.PASSWORD){s.onFailure(new Error("PASSWORD parameter is required"));return}var i=new yt(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(a.DEVICE_KEY=this.deviceKey);var p=Object.keys(n.getValidationData()).length!==0?n.getValidationData():n.getClientMetadata(),h={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:a,ClientMetadata:p};this.getUserContextData(this.username)&&(h.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",h,function(g,b){return g?s.onFailure(g):o.authenticateUserInternal(b,i,s)})},t.authenticateUserInternal=function(n,s,o){var a=this,i=n.ChallengeName,p=n.ChallengeParameters;if(i==="SMS_MFA")return this.Session=n.Session,o.mfaRequired(i,p);if(i==="SELECT_MFA_TYPE")return this.Session=n.Session,o.selectMFAType(i,p);if(i==="MFA_SETUP")return this.Session=n.Session,o.mfaSetup(i,p);if(i==="SOFTWARE_TOKEN_MFA")return this.Session=n.Session,o.totpRequired(i,p);if(i==="CUSTOM_CHALLENGE")return this.Session=n.Session,o.customChallenge(p);if(i==="NEW_PASSWORD_REQUIRED"){this.Session=n.Session;var h=null,g=null,b=[],E=s.getNewPasswordRequiredChallengeUserAttributePrefix();if(p&&(h=JSON.parse(n.ChallengeParameters.userAttributes),g=JSON.parse(n.ChallengeParameters.requiredAttributes)),g)for(var y=0;y<g.length;y++)b[y]=g[y].substr(E.length);return o.newPasswordRequired(h,b)}if(i==="DEVICE_SRP_AUTH"){this.Session=n.Session,this.getDeviceResponse(o);return}this.signInUserSession=this.getCognitoUserSession(n.AuthenticationResult),this.challengeName=i,this.cacheTokens();var S=n.AuthenticationResult.NewDeviceMetadata;if(S==null)return o.onSuccess(this.signInUserSession);s.generateHashDevice(n.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,n.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(C){if(C)return o.onFailure(C);var _={Salt:pe.Buffer.from(s.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:pe.Buffer.from(s.getVerifierDevices(),"hex").toString("base64")};a.verifierDevices=_.PasswordVerifier,a.deviceGroupKey=S.DeviceGroupKey,a.randomPassword=s.getRandomPassword(),a.client.request("ConfirmDevice",{DeviceKey:S.DeviceKey,AccessToken:a.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:_,DeviceName:Ds},function(j,k){return j?o.onFailure(j):(a.deviceKey=n.AuthenticationResult.
143NewDeviceMetadata.DeviceKey,a.cacheDeviceKeyAndPassword(),k.UserConfirmationNecessary===!0?o.onSuccess(a.signInUserSession,k.UserConfirmationNecessary):o.onSuccess(a.signInUserSession))})})},t.completeNewPasswordChallenge=function(n,s,o,a){var i=this;if(!n)return o.onFailure(new Error("New password is required."));var p=new yt(this.pool.getUserPoolName()),h=p.getNewPasswordRequiredChallengeUserAttributePrefix(),g={};s&&Object.keys(s).forEach(function(E){g[h+E]=s[E]}),g.NEW_PASSWORD=n,g.USERNAME=this.username;var b={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:g,Session:this.Session,ClientMetadata:a};this.getUserContextData()&&(b.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",b,function(E,y){return E?o.onFailure(E):i.authenticateUserInternal(y,p,o)})},t.getDeviceResponse=function(n,s){var o=this,a=new yt(this.deviceGroupKey),i=new js,p={};p.USERNAME=this.username,p.DEVICE_KEY=this.deviceKey,a.getLargeAValue(function(h,g){h&&n.onFailure(h),p.SRP_A=g.toString(16);var b={ChallengeName:"DEVICE_SRP_AUTH",ClientId:o.pool.getClientId(),ChallengeResponses:p,ClientMetadata:s,Session:o.Session};o.getUserContextData()&&(b.UserContextData=o.getUserContextData()),o.client.request("RespondToAuthChallenge",b,function(E,y){if(E)return n.onFailure(E);var S=y.ChallengeParameters,C=new F(S.SRP_B,16),_=new F(S.SALT,16);a.getPasswordAuthenticationKey(o.deviceKey,o.randomPassword,C,_,function(j,k){if(j)return n.onFailure(j);var O=i.getNowString(),L=pe.Buffer.concat([pe.Buffer.from(o.deviceGroupKey,"utf8"),pe.Buffer.from(o.deviceKey,"utf8"),pe.Buffer.from(S.SECRET_BLOCK,"base64"),pe.Buffer.from(O,"utf8")]),V=new $t.Sha256(k);V.update(L);var Q=V.digestSync(),te=pe.Buffer.from(Q).toString("base64"),ie={};ie.USERNAME=o.username,ie.PASSWORD_CLAIM_SECRET_BLOCK=S.SECRET_BLOCK,ie.TIMESTAMP=O,ie.PASSWORD_CLAIM_SIGNATURE=te,ie.DEVICE_KEY=o.deviceKey;var oe={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:o.pool.getClientId(),ChallengeResponses:ie,Session:y.Session};o.getUserContextData()&&(oe.UserContextData=o.getUserContextData()),o.client.request("RespondToAuthChallenge",oe,function(ye,$){return ye?n.onFailure(ye):(o.signInUserSession=o.getCognitoUserSession($.AuthenticationResult),o.cacheTokens(),n.onSuccess(o.signInUserSession))})})})})},t.confirmRegistration=function(n,s,o,a){var i={ClientId:this.pool.getClientId(),ConfirmationCode:n,Username:this.username,ForceAliasCreation:s,ClientMetadata:a};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",i,function(p){return p?o(p,null):o(null,"SUCCESS")})},t.sendCustomChallengeAnswer=function(n,s,o){var a=this,i={};i.USERNAME=this.username,i.ANSWER=n;var p=new yt(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(i.DEVICE_KEY=this.deviceKey);var h={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:i,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:o};this.getUserContextData()&&(h.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",h,function(g,b){return g?s.onFailure(g):a.authenticateUserInternal(b,p,s)})},t.sendMFACode=function(n,s,o,a){var i=this,p={};p.USERNAME=this.username,p.SMS_MFA_CODE=n;var h=o||"SMS_MFA";h==="SOFTWARE_TOKEN_MFA"&&(p.SOFTWARE_TOKEN_MFA_CODE=n),this.deviceKey!=null&&(p.DEVICE_KEY=this.deviceKey);var g={ChallengeName:h,ChallengeResponses:p,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:a};this.getUserContextData()&&(g.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",g,function(b,E){if(b)return s.onFailure(b);var y=E.ChallengeName;if(y==="DEVICE_SRP_AUTH"){i.getDeviceResponse(s);return}if(i.signInUserSession=i.getCognitoUserSession(E.AuthenticationResult),i.cacheTokens(),E.AuthenticationResult.NewDeviceMetadata==null)return s.onSuccess(i.signInUserSession);var S=new yt(i.pool.getUserPoolName());S.generateHashDevice(E.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,E.AuthenticationResult.
143NewDeviceMetadata.DeviceKey,function(C){if(C)return s.onFailure(C);var _={Salt:pe.Buffer.from(S.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:pe.Buffer.from(S.getVerifierDevices(),"hex").toString("base64")};i.verifierDevices=_.PasswordVerifier,i.deviceGroupKey=E.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,i.randomPassword=S.getRandomPassword(),i.client.request("ConfirmDevice",{DeviceKey:E.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:i.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:_,DeviceName:Ds},function(j,k){return j?s.onFailure(j):(i.deviceKey=E.AuthenticationResult.NewDeviceMetadata.DeviceKey,i.cacheDeviceKeyAndPassword(),k.UserConfirmationNecessary===!0?s.onSuccess(i.signInUserSession,k.UserConfirmationNecessary):s.onSuccess(i.signInUserSession))})})})},t.changePassword=function(n,s,o,a){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return o(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:n,ProposedPassword:s,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:a},function(i){return i?o(i,null):o(null,"SUCCESS")})},t.enableMFA=function(n){if(this.signInUserSession==null||!this.signInUserSession.isValid())return n(new Error("User is not authenticated"),null);var s=[],o={DeliveryMedium:"SMS",AttributeName:"phone_number"};s.push(o),this.client.request("SetUserSettings",{MFAOptions:s,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a){return a?n(a,null):n(null,"SUCCESS")})},t.setUserMfaPreference=function(n,s,o){if(this.signInUserSession==null||!this.signInUserSession.isValid())return o(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:n,SoftwareTokenMfaSettings:s,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a){return a?o(a,null):o(null,"SUCCESS")})},t.disableMFA=function(n){if(this.signInUserSession==null||!this.signInUserSession.isValid())return n(new Error("User is not authenticated"),null);var s=[];this.client.request("SetUserSettings",{MFAOptions:s,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(o){return o?n(o,null):n(null,"SUCCESS")})},t.deleteUser=function(n,s){var o=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return n(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:s},function(a){return a?n(a,null):(o.clearCachedUser(),n(null,"SUCCESS"))})},t.updateAttributes=function(n,s,o){var a=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return s(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:n,ClientMetadata:o},function(i,p){return i?s(i,null):a.getUserData(function(){return s(null,"SUCCESS",p)},{bypassCache:!0})})},t.getUserAttributes=function(n){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return n(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(s,o){if(s)return n(s,null);for(var a=[],i=0;i<o.UserAttributes.length;i++){var p={Name:o.UserAttributes[i].Name,Value:o.UserAttributes[i].Value},h=new lh(p);a.push(h)}return n(null,a)})},t.getMFAOptions=function(n){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return n(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(s,o){return s?n(s,null):n(null,o.MFAOptions)})},t.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},t.refreshSessionIfPossible=function(n){var s=this;return n===void 0&&(n={}),new Promise(function(o){var a=s.signInUserSession.getRefreshToken();a&&a.getToken()?s.refreshSession(a,o,n.clientMetadata):o()})},t.getUserData=function(n,s){var o=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return this.clearCachedUserData(),n(new Error("User is not authenticated"),null);
143var a=this.getUserDataFromCache();if(!a){this.fetchUserData().then(function(i){n(null,i)}).catch(n);return}if(this.isFetchUserDataAndTokenRequired(s)){this.fetchUserData().then(function(i){return o.refreshSessionIfPossible(s).then(function(){return i})}).then(function(i){return n(null,i)}).catch(n);return}try{n(null,JSON.parse(a));return}catch(i){this.clearCachedUserData(),n(i,null);return}},t.getUserDataFromCache=function(){var n=this.storage.getItem(this.userDataKey);return n},t.isFetchUserDataAndTokenRequired=function(n){var s=n||{},o=s.bypassCache,a=o===void 0?!1:o;return a},t.fetchUserData=function(){var n=this;return this.createGetUserRequest().then(function(s){return n.cacheUserData(s),s})},t.deleteAttributes=function(n,s){var o=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return s(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:n,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a){return a?s(a,null):o.getUserData(function(){return s(null,"SUCCESS")},{bypassCache:!0})})},t.resendConfirmationCode=function(n,s){var o={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:s};this.client.request("ResendConfirmationCode",o,function(a,i){return a?n(a,null):n(null,i)})},t.getSession=function(n,s){if(s===void 0&&(s={}),this.username==null)return n(new Error("Username is null. Cannot retrieve a new session"),null);if(this.signInUserSession!=null&&this.signInUserSession.isValid())return n(null,this.signInUserSession);var o="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,a=o+".idToken",i=o+".accessToken",p=o+".refreshToken",h=o+".clockDrift";if(this.storage.getItem(a)){var g=new ks({IdToken:this.storage.getItem(a)}),b=new Us({AccessToken:this.storage.getItem(i)}),E=new Ns({RefreshToken:this.storage.getItem(p)}),y=parseInt(this.storage.getItem(h),0)||0,S={IdToken:g,AccessToken:b,RefreshToken:E,ClockDrift:y},C=new Ps(S);if(C.isValid())return this.signInUserSession=C,n(null,this.signInUserSession);if(!E.getToken())return n(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(E,n,s.clientMetadata)}else n(new Error("Local storage is missing an ID Token, Please authenticate"),null)},t.refreshSession=function(n,s,o){var a=this,i=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(s):s,p={};p.REFRESH_TOKEN=n.getToken();var h="CognitoIdentityServiceProvider."+this.pool.getClientId(),g=h+".LastAuthUser";if(this.storage.getItem(g)){this.username=this.storage.getItem(g);var b=h+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(b),p.DEVICE_KEY=this.deviceKey}var E={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:p,ClientMetadata:o};this.getUserContextData()&&(E.UserContextData=this.getUserContextData()),this.client.requestWithRetry("InitiateAuth",E,function(y,S){if(y)return y.code==="NotAuthorizedException"&&a.clearCachedUser(),i(y,null);if(S){var C=S.AuthenticationResult;return Object.prototype.hasOwnProperty.call(C,"RefreshToken")||(C.RefreshToken=n.getToken()),a.signInUserSession=a.getCognitoUserSession(C),a.cacheTokens(),i(null,a.signInUserSession)}})},t.cacheTokens=function(){var n="CognitoIdentityServiceProvider."+this.pool.getClientId(),s=n+"."+this.username+".idToken",o=n+"."+this.username+".accessToken",a=n+"."+this.username+".refreshToken",i=n+"."+this.username+".clockDrift",p=n+".LastAuthUser";this.storage.setItem(s,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(o,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(a,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(i,""+this.signInUserSession.getClockDrift()),this.storage.setItem(p,this.username)},t.cacheUserData=function(n){this.storage.setItem(this.userDataKey,JSON.stringify(n))},t.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},t.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()}
143,t.cacheDeviceKeyAndPassword=function(){var n="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,s=n+".deviceKey",o=n+".randomPasswordKey",a=n+".deviceGroupKey";this.storage.setItem(s,this.deviceKey),this.storage.setItem(o,this.randomPassword),this.storage.setItem(a,this.deviceGroupKey)},t.getCachedDeviceKeyAndPassword=function(){var n="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,s=n+".deviceKey",o=n+".randomPasswordKey",a=n+".deviceGroupKey";this.storage.getItem(s)&&(this.deviceKey=this.storage.getItem(s),this.randomPassword=this.storage.getItem(o),this.deviceGroupKey=this.storage.getItem(a))},t.clearCachedDeviceKeyAndPassword=function(){var n="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,s=n+".deviceKey",o=n+".randomPasswordKey",a=n+".deviceGroupKey";this.storage.removeItem(s),this.storage.removeItem(o),this.storage.removeItem(a)},t.clearCachedTokens=function(){var n="CognitoIdentityServiceProvider."+this.pool.getClientId(),s=n+"."+this.username+".idToken",o=n+"."+this.username+".accessToken",a=n+"."+this.username+".refreshToken",i=n+".LastAuthUser",p=n+"."+this.username+".clockDrift";this.storage.removeItem(s),this.storage.removeItem(o),this.storage.removeItem(a),this.storage.removeItem(i),this.storage.removeItem(p)},t.getCognitoUserSession=function(n){var s=new ks(n),o=new Us(n),a=new Ns(n),i={IdToken:s,AccessToken:o,RefreshToken:a};return new Ps(i)},t.forgotPassword=function(n,s){var o={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:s};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",o,function(a,i){return a?n.onFailure(a):typeof n.inputVerificationCode=="function"?n.inputVerificationCode(i):n.onSuccess(i)})},t.confirmPassword=function(n,s,o,a){var i={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:n,Password:s,ClientMetadata:a};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",i,function(p){return p?o.onFailure(p):o.onSuccess("SUCCESS")})},t.getAttributeVerificationCode=function(n,s,o){if(this.signInUserSession==null||!this.signInUserSession.isValid())return s.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:n,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:o},function(a,i){return a?s.onFailure(a):typeof s.inputVerificationCode=="function"?s.inputVerificationCode(i):s.onSuccess("SUCCESS")})},t.verifyAttribute=function(n,s,o){if(this.signInUserSession==null||!this.signInUserSession.isValid())return o.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:n,Code:s,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a){return a?o.onFailure(a):o.onSuccess("SUCCESS")})},t.getDevice=function(n){if(this.signInUserSession==null||!this.signInUserSession.isValid())return n.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},function(s,o){return s?n.onFailure(s):n.onSuccess(o)})},t.forgetSpecificDevice=function(n,s){if(this.signInUserSession==null||!this.signInUserSession.isValid())return s.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:n},function(o){return o?s.onFailure(o):s.onSuccess("SUCCESS")})},t.forgetDevice=function(n){var s=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:n.onFailure,onSuccess:function(a){return s.deviceKey=null,s.deviceGroupKey=null,s.randomPassword=null,s.clearCachedDeviceKeyAndPassword(),n.onSuccess(a)}})},t.setDeviceStatusRemembered=function(n){if(this.signInUserSession==null||!this.signInUserSession.isValid())return n.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},function(s){return s?n.onFailure(s):n.onSuccess("SUCCESS")})},t.setDeviceStatusNotRemembered=function(n){if(this.signInUserSession==null||!this.signInUserSession.isValid())return n.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},function(s){return s?n.onFailure(s):n.onSuccess("SUCCESS")})},t.listDevices=function(n,s,o){if(this.signInUserSession==null||!this.signInUserSession.isValid())return o.onFailure(new Error("User is not authenticated"));var a={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:n};s&&(a.PaginationToken=s),this.client.request("ListDevices",a,function(i,p){return i?o.onFailure(i):o.onSuccess(p)})},t.globalSignOut=function(n){var s=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return n.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(o){return o?n.onFailure(o):(s.clearCachedUser(),n.onSuccess("SUCCESS"))})},t.signOut=function(n){var s=this;if(!n||typeof n!="function"){this.cleanClientData();return}this.getSession(function(o,a){if(o)return n(o);s.revokeTokens(function(i){s.cleanClientData(),n(i)})})},t.revokeTokens=function(n){if(n===void 0&&(n=function(){}),typeof n!="function")throw new Error("Invalid revokeTokenCallback. It should be a function.");
143if(!this.signInUserSession){var s=new Error("User is not authenticated");return n(s)}if(!this.signInUserSession.getAccessToken()){var o=new Error("No Access token available");return n(o)}var a=this.signInUserSession.getRefreshToken().getToken(),i=this.signInUserSession.getAccessToken();if(this.isSessionRevocable(i)&&a)return this.revokeToken({token:a,callback:n});n()},t.isSessionRevocable=function(n){if(n&&typeof n.decodePayload=="function")try{var s=n.decodePayload(),o=s.origin_jti;return!!o}catch{}return!1},t.cleanClientData=function(){this.signInUserSession=null,this.clearCachedUser()},t.revokeToken=function(n){var s=n.token,o=n.callback;this.client.requestWithRetry("RevokeToken",{Token:s,ClientId:this.pool.getClientId()},function(a){if(a)return o(a);o()})},t.sendMFASelectionAnswer=function(n,s){var o=this,a={};a.USERNAME=this.username,a.ANSWER=n;var i={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:a,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",i,function(p,h){if(p)return s.onFailure(p);if(o.Session=h.Session,n==="SMS_MFA")return s.mfaRequired(h.ChallengeName,h.ChallengeParameters);if(n==="SOFTWARE_TOKEN_MFA")return s.totpRequired(h.ChallengeName,h.ChallengeParameters)})},t.getUserContextData=function(){var n=this.pool;return n.getUserContextData(this.username)},t.associateSoftwareToken=function(n){var s=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(o,a){return o?n.onFailure(o):n.associateSecretCode(a.SecretCode)}):this.client.request("AssociateSoftwareToken",{Session:this.Session},function(o,a){return o?n.onFailure(o):(s.Session=a.Session,n.associateSecretCode(a.SecretCode))})},t.verifySoftwareToken=function(n,s,o){var a=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:n,FriendlyDeviceName:s},function(i,p){return i?o.onFailure(i):o.onSuccess(p)}):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:n,FriendlyDeviceName:s},function(i,p){if(i)return o.onFailure(i);a.Session=p.Session;var h={};h.USERNAME=a.username;var g={ChallengeName:"MFA_SETUP",ClientId:a.pool.getClientId(),ChallengeResponses:h,Session:a.Session};a.getUserContextData()&&(g.UserContextData=a.getUserContextData()),a.client.request("RespondToAuthChallenge",g,function(b,E){return b?o.onFailure(b):(a.signInUserSession=a.getCognitoUserSession(E.AuthenticationResult),a.cacheTokens(),o.onSuccess(a.signInUserSession))})})},e})();function dh(e,t){return t=t||{},new Promise(function(r,n){var s=new XMLHttpRequest,o=[],a=[],i={},p=function(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:p,headers:{keys:function(){return o},entries:function(){return a},get:function(g){return i[g.toLowerCase()]},has:function(g){return g.toLowerCase()in i}}}};for(var h in s.open(t.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(g,b,E){o.push(b=b.toLowerCase()),a.push([b,E]),i[b]=i[b]?i[b]+","+E:E}),r(p())},s.onerror=n,s.withCredentials=t.credentials=="include",t.headers)s.setRequestHeader(h,t.headers[h]);s.send(t.body||null)})}const fh=Object.freeze(Object.defineProperty({__proto__:null,default:dh},Symbol.toStringTag,{value:"Module"})),Os=xn(fh);var Gr,Fs;function hh(){return Fs||(Fs=1,Gr=self.fetch||(self.fetch=Os.default||Os)),Gr}hh();function wt(){}wt.prototype.userAgent=oh();var ph=function(t){var r=wt.category?" "+wt.category:"",n=wt.framework?" framework/"+wt.framework:"",s=""+wt.prototype.userAgent+r+n;return s};function mh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wt(e,t)}function fn(e){var t=typeof Map=="function"?new Map:void 0;return fn=function(n){if(n===null||!yh(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,s)}function s(){return gh(n,arguments,hn(this).constructor)}return s.prototype=Object.create(n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Wt(s,n)},fn(e)}function gh(e,t,r){if(ki())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var s=new(e.bind.apply(e,n));return r&&Wt(s,r.prototype),s}function ki(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ki=function(){return!!e})()}function yh(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Wt(e,t){return Wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Wt(e,t)}
143function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hn(e)}var wh=(function(e){function t(r,n,s,o){var a;return a=e.call(this,r)||this,a.code=n,a.name=s,a.statusCode=o,a}return mh(t,e),t})(fn(Error)),xh=(function(){function e(r,n,s){this.endpoint=n||"https://cognito-idp."+r+".amazonaws.com/";var o=s||{},a=o.credentials;this.fetchOptions=a?{credentials:a}:{}}var t=e.prototype;return t.promisifyRequest=function(n,s){var o=this;return new Promise(function(a,i){o.request(n,s,function(p,h){p?i(new wh(p.message,p.code,p.name,p.statusCode)):a(h)})})},t.requestWithRetry=function(n,s,o){var a=this,i=5*1e3;Sh(function(p){return new Promise(function(h,g){a.request(n,p,function(b,E){b?g(b):h(E)})})},[s],i).then(function(p){return o(null,p)}).catch(function(p){return o(p)})},t.request=function(n,s,o){var a={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+n,"X-Amz-User-Agent":ph(),"Cache-Control":"no-store"},i=Object.assign({},this.fetchOptions,{headers:a,method:"POST",mode:"cors",body:JSON.stringify(s)}),p;fetch(this.endpoint,i).then(function(h){return p=h,h},function(h){throw h instanceof TypeError?new Error("Network error"):h}).then(function(h){return h.json().catch(function(){return{}})}).then(function(h){if(p.ok)return o(null,h);var g=(h.__type||h.code).split("#").pop(),b=new Error(h.message||h.Message||null);return b.name=g,b.code=g,o(b)}).catch(function(h){if(p&&p.headers&&p.headers.get("x-amzn-errortype"))try{var g=p.headers.get("x-amzn-errortype").split(":")[0],b=new Error(p.status?p.status.toString():null);return b.code=g,b.name=g,b.statusCode=p.status,o(b)}catch{return o(h)}else h instanceof Error&&h.message==="Network error"&&(h.code="NetworkError");return o(h)})},e})(),ir={debug:function(){}},vh=function(t){var r="nonRetryable";return t&&t[r]};function Ni(e,t,r,n){if(n===void 0&&(n=1),typeof e!="function")throw Error("functionToRetry must be a function");return ir.debug(e.name+" attempt #"+n+" with args: "+JSON.stringify(t)),e.apply(void 0,t).catch(function(s){if(ir.debug("error on "+e.name,s),vh(s))throw ir.debug(e.name+" non retryable error",s),s;var o=r(n,t,s);if(ir.debug(e.name+" retrying in "+o+" ms"),o!==!1)return new Promise(function(a){return setTimeout(a,o)}).then(function(){return Ni(e,t,r,n+1)});throw s})}function bh(e){var t=100,r=100;return function(n){var s=Math.pow(2,n)*t+r*Math.random();return s>e?!1:s}}function Sh(e,t,r){return Ni(e,t,bh(r))}var Eh=55,Ch=(function(){function e(r,n){var s=r||{},o=s.UserPoolId,a=s.ClientId,i=s.endpoint,p=s.fetchOptions,h=s.AdvancedSecurityDataCollectionFlag;if(!o||!a)throw new Error("Both UserPoolId and ClientId are required.");if(o.length>Eh||!/^[\w-]+_[0-9a-zA-Z]+$/.test(o))throw new Error("Invalid UserPoolId format.");var g=o.split("_")[0];this.userPoolId=o,this.clientId=a,this.client=new xh(g,i,p),this.advancedSecurityDataCollectionFlag=h!==!1,this.storage=r.Storage||new Ui().getStorage(),n&&(this.wrapRefreshSessionCallback=n)}var t=e.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},t.getClientId=function(){return this.clientId},t.signUp=function(n,s,o,a,i,p){var h=this,g={ClientId:this.clientId,Username:n,Password:s,UserAttributes:o,ValidationData:a,ClientMetadata:p};this.getUserContextData(n)&&(g.UserContextData=this.getUserContextData(n)),this.client.request("SignUp",g,function(b,E){if(b)return i(b,null);var y={Username:n,Pool:h,Storage:h.storage},S={user:new Bs(y),userConfirmed:E.UserConfirmed,userSub:E.UserSub,codeDeliveryDetails:E.CodeDeliveryDetails};return i(null,S)})},t.getCurrentUser=function(){var n="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",s=this.storage.getItem(n);if(s){var o={Username:s,Pool:this,Storage:this.storage};return new Bs(o)}return null},t.getUserContextData=function(n){if(!(typeof AmazonCognitoAdvancedSecurityData>"u")){var s=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var o=s.getData(n,this.userPoolId,this.clientId);if(o){var a={EncodedData:o};return a}}return{}}},e})(),Yr={exports:{}};var Ms;function Th(){return Ms||(Ms=1,(function(e,t){(function(r){var n;if(e.exports=r(),n=!0,!n){var s=window.Cookies,o=window.Cookies=r();o.noConflict=function(){return window.Cookies=s,o}}})(function(){function r(){for(var o=0,a={};o<arguments.length;o++){var i=arguments[o];for(var p in i)a[p]=i[p]}return a}function n(o){return o.replace(/(%[0-9A-Z]{2}
143)+/g,decodeURIComponent)}function s(o){function a(){}function i(h,g,b){if(!(typeof document>"u")){b=r({path:"/"},a.defaults,b),typeof b.expires=="number"&&(b.expires=new Date(new Date*1+b.expires*864e5)),b.expires=b.expires?b.expires.toUTCString():"";try{var E=JSON.stringify(g);/^[\{\[]/.test(E)&&(g=E)}catch{}g=o.write?o.write(g,h):encodeURIComponent(String(g)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),h=encodeURIComponent(String(h)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var y="";for(var S in b)b[S]&&(y+="; "+S,b[S]!==!0&&(y+="="+b[S].split(";")[0]));return document.cookie=h+"="+g+y}}function p(h,g){if(!(typeof document>"u")){for(var b={},E=document.cookie?document.cookie.split("; "):[],y=0;y<E.length;y++){var S=E[y].split("="),C=S.slice(1).join("=");!g&&C.charAt(0)==='"'&&(C=C.slice(1,-1));try{var _=n(S[0]);if(C=(o.read||o)(C,_)||n(C),g)try{C=JSON.parse(C)}catch{}if(b[_]=C,h===_)break}catch{}}return h?b[h]:b}}return a.set=i,a.get=function(h){return p(h,!1)},a.getJSON=function(h){return p(h,!0)},a.remove=function(h,g){i(h,"",r(g,{expires:-1}))},a.defaults={},a.withConverter=s,a}return s(function(){})})})(Yr)),Yr.exports}var qt=Th(),Ah=(function(){function e(r){if(r===void 0&&(r={}),r.domain&&(this.domain=r.domain),r.path?this.path=r.path:this.path="/",Object.prototype.hasOwnProperty.call(r,"expires")?this.expires=r.expires:this.expires=365,Object.prototype.hasOwnProperty.call(r,"secure")?this.secure=r.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(r,"sameSite")){if(!["strict","lax","none"].includes(r.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if(r.sameSite==="none"&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=r.sameSite}else this.sameSite=null}var t=e.prototype;return t.setItem=function(n,s){var o={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(o.sameSite=this.sameSite),qt.set(n,s,o),qt.get(n)},t.getItem=function(n){return qt.get(n)},t.removeItem=function(n){var s={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(s.sameSite=this.sameSite),qt.remove(n,s)},t.clear=function(){for(var n=qt.get(),s=Object.keys(n).length,o=0;o<s;++o)this.removeItem(Object.keys(n)[o]);return{}},e})();const Rh={log:(...e)=>{},error:(...e)=>{},warn:(...e)=>{},info:(...e)=>{},debug:(...e)=>{}},Dn={UserPoolId:Xl,ClientId:pt,Storage:new Ah({secure:window.location.protocol==="https:",domain:window.location.hostname,expires:7,path:"/"})},_h=new Ch(Dn);function Bn(){return _h.getCurrentUser()}function jr(){return new Promise((e,t)=>{const r=Bn();if(!r){e(null);return}r.getSession((n,s)=>{if(n){t(n);return}e(s)})})}async function Pi(){try{const e=await jr();if(!e||!e.isValid())return null;const t=e.getAccessToken(),r=t.getExpiration(),n=Math.floor(Date.now()/1e3);return r<=n+120?await Ih():t.getJwtToken()}catch{return null}}function Ih(){return new Promise((e,t)=>{const r=Bn();if(!r){e(null);return}r.getSession((n,s)=>{if(n||!s){t(n);return}const o=s.getRefreshToken();r.refreshSession(o,(a,i)=>{if(a){t(a);return}e(i.getAccessToken().getJwtToken())})})})}function Uh(e){try{const r=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(r).split("").map(s=>"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(n)}catch{return{}}}async function kh(){const e=await jr();if(!e)return null;const r=e.getIdToken().decodePayload();return{email:r.email,username:r["cognito:username"]}}function Nh(){const e=Bn();e&&e.signOut();const t=`CognitoIdentityServiceProvider.${pt}`,r=Dn.Storage;try{const n=r.getItem(`${t}.LastAuthUser`);n&&(r.removeItem(`${t}.${n}.idToken`),r.removeItem(`${t}.${n}.accessToken`),r.removeItem(`${t}.${n}.refreshToken`)),r.removeItem(`${t}.LastAuthUser`)}catch{}}function Ph(){const e=window.location.origin+"/auth/logout",t=new 
143URLSearchParams({client_id:pt,logout_uri:e});return`https://auth.${Jt}/logout?${t.toString()}`}async function jh(){try{const e=await jr();return e!==null&&e.isValid()}catch{return!1}}function zt(e){const t=`https://auth.${Jt}/login`,r=new URLSearchParams({client_id:pt,response_type:"code",scope:"aws.cognito.signin.user.admin email openid profile",redirect_uri:`${window.location.origin}/auth/callback`});return e&&r.set("state",e),`${t}?${r.toString()}`}function Sm(e){const t=`https://auth.${Jt}/signup`,r=new URLSearchParams({client_id:pt,response_type:"code",scope:"aws.cognito.signin.user.admin email openid profile",redirect_uri:`${window.location.origin}/auth/callback`});return e&&r.set("state",e),`${t}?${r.toString()}`}async function Dh(e){const t=`https://auth.${Jt}/oauth2/token`,r=new URLSearchParams({grant_type:"authorization_code",client_id:pt,code:e,redirect_uri:`${window.location.origin}/auth/callback`}),n=await fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:r.toString()});if(!n.ok){const E=await n.text();Rh.error("Token exchange failed:",n.status,E);let y="Failed to exchange authorization code";try{const S=JSON.parse(E);y=S.error_description||S.error||y}catch{E&&(y=E)}throw new Error(y)}const s=await n.json(),o=s.id_token,a=s.access_token,i=s.refresh_token,h=Uh(o)["cognito:username"];if(!h)throw new Error("Could not determine username from token");const g=`CognitoIdentityServiceProvider.${pt}`,b=Dn.Storage;b.setItem(`${g}.LastAuthUser`,h),b.setItem(`${g}.${h}.idToken`,o),b.setItem(`${g}.${h}.accessToken`,a),b.setItem(`${g}.${h}.refreshToken`,i)}async function Bh(){try{const e=await jr();if(!e)return null;const r=e.getIdToken().decodePayload();return{groups:r["cognito:groups"],email:r.email,username:r["cognito:username"]}}catch{return null}}function Oh(e){window.location.href=zt(window.location.pathname)}function ji(){pd.error("Session expired",{description:"Please log in again to continue.",duration:5e3}),setTimeout(()=>{window.location.href="/auth/callback"},500)}const Be=be.create({baseURL:Yl,headers:{"Content-Type":"application/json"}});Be.interceptors.request.use(async e=>{try{const t=await Pi();t&&(e.headers.Authorization=t)}catch(t){console.error("Error getting access token:",t)}return e});Be.interceptors.response.use(e=>e,e=>(e.response?.status===401&&ji(),Promise.reject(e)));const Em=be.create({baseURL:Jl,headers:{"Content-Type":"application/json",Accept:"application/json"}}),Di=be.create({baseURL:Zl});Di.interceptors.request.use(async e=>{try{const t=await Pi();t&&(e.headers.Authorization=t)}catch{}return e});Di.interceptors.response.use(e=>e,e=>(e.response?.status===401&&ji(),Promise.reject(e)));const Fh={getMe:()=>Be.get("/me").then(e=>e.data),getValidatedEmails:()=>Be.get("/me/mailboxes").then(e=>e.data),validateEmailStageOne:e=>Be.post("/me/mailboxes/validate_stage_one",null,{headers:{email:e}}),validateEmailStageTwo:e=>Be.post("/me/mailboxes/validate_stage_two",null,{headers:{verification_code:e}}),deleteValidatedEmail:e=>Be.delete(`/me/mailboxes/${encodeURIComponent(e)}`)},Mh={getCheckoutSessions:()=>Be.get("/stripe-session").then(e=>e.data).catch(()=>null)},Ls=["starter","premium","enterprise","free_trial","trial_expired"],Lh="session_reauth_attempted",Vt="pending_privilege_escalation",pn="privilege-escalation-detected";function qh(e){return e.toLowerCase().replace(/\s+/g,"_")}function Vh(e){window.dispatchEvent(new CustomEvent(pn,{detail:e}))}function Ut(e={}){const{enabled:t=!0}=e,r=R.useRef(!1),[n,s]=R.useState(()=>{const a=sessionStorage.getItem(Vt);if(a)try{return JSON.parse(a)}catch{sessionStorage.removeItem(Vt)}return null});R.useEffect(()=>{const a=i=>{s(i.detail)};return window.addEventListener(pn,a),()=>window.removeEventListener(pn,a)},[]);const o=Gt({queryKey:["user","me"],queryFn:()=>Fh.getMe(),staleTime:1e3*60,enabled:t});return R.useEffect(()=>{if(!o.data||r.current)return;(async()=>{if(r.current=!0,!sessionStorage.getItem(Lh)&&!sessionStorage.getItem(Vt))try{const h=((await Bh())?.groups||[]).filter(E=>Ls.includes(E)),g=qh(o.data.subscription_status);if(!h.includes(g)&&Ls.includes(g)){const y={type:o.data.team&&Object.keys(o.data.team).length>
1430?"team":"tier",newTier:o.data.subscription_status};sessionStorage.setItem(Vt,JSON.stringify(y)),s(y),Vh(y)}}catch{}})()},[o.data]),{...o,privilegeEscalation:n,clearPrivilegeEscalation:()=>{s(null),sessionStorage.removeItem(Vt)}}}function Cm(e={}){const t=Ut(e);return{...t,data:t.data?.validated_emails??[]}}function $h(e={}){const{data:t}=Ut(e),r=t?.subscription_status==="Trial";return Gt({queryKey:["stripe-sessions"],queryFn:Mh.getCheckoutSessions,enabled:e.enabled!==!1&&r,staleTime:300*1e3})}const zh=[{label:"Dashboard",href:"/app/dashboard",icon:f.jsx(Lo,{className:"h-5 w-5"})},{label:"Payloads",icon:f.jsx(zl,{className:"h-5 w-5"}),children:[{label:"Browse",href:"/app/payloads",icon:f.jsx(Dl,{className:"h-4 w-4"}),subMenu:[{label:"All Payloads",href:"/app/payloads"},{label:"delivr.to Payloads",href:"/app/payloads?custom=exclude"},{label:"Custom Payloads",href:"/app/payloads?custom=only"}]},{label:"Templates",href:"/app/templates",icon:f.jsx(Bl,{className:"h-4 w-4"}),subMenu:[{label:"All Templates",href:"/app/templates"},{label:"delivr.to Templates",href:"/app/templates?custom=exclude"},{label:"Custom Templates",href:"/app/templates?custom=only"}]},{label:"AiTM",href:"/app/aitm",icon:f.jsx(_l,{className:"h-4 w-4"}),badge:"Beta"}]},{label:"Campaigns",icon:f.jsx(Il,{className:"h-5 w-5"}),children:[{label:"Results",href:"/app/campaigns",icon:f.jsx(Ml,{className:"h-4 w-4"})},{label:"Launch",href:"/app/launch",icon:f.jsx(en,{className:"h-4 w-4"}),alwaysShowSubMenu:!0,subMenu:[{label:"Email",href:"/app/launch"},{label:"Web",href:"/app/web-launch"}]}]},{label:"Settings",icon:f.jsx(qo,{className:"h-5 w-5"}),children:[{label:"Personal",href:"/app/settings",icon:f.jsx($o,{className:"h-4 w-4"}),subMenu:[{label:"Validated Emails",href:"/app/settings"},{label:"Integrations",href:"/app/settings?tab=integrations"},{label:"API Keys",href:"/app/settings?tab=security"},{label:"Notifications",href:"/app/settings?tab=notifications"}]},{label:"Team",href:"/app/team",icon:f.jsx(Wl,{className:"h-4 w-4"}),subMenu:[{label:"Overview",href:"/app/team"},{label:"Branding",href:"/app/team?tab=configuration#branding"},{label:"Reporting Mailbox",href:"/app/team?tab=configuration#reporting"},{label:"Audit Log",href:"/app/team?tab=audit"}]}]}],Hh=[{label:"Docs",href:ec,icon:f.jsx(Rl,{className:"h-5 w-5"}),external:!0},{label:"GitHub",href:tc,icon:f.jsx(Ol,{className:"h-5 w-5"}),external:!0},{label:"Blog",href:rc,icon:f.jsx(Hl,{className:"h-5 w-5"}),external:!0},{label:"Get Help",href:`mailto:${nc}?subject=Support%20Request`,icon:f.jsx(Fl,{className:"h-5 w-5"}),external:!0},{label:"Community Slack",href:sc,icon:f.jsx(Vl,{className:"h-5 w-5"}),external:!0}];function Kh({collapsed:e,onToggle:t,mobileOpen:r,onMobileClose:n}){const s=br(),{data:o}=Ut(),a=o?.subscription_status==="Enterprise",[i,p]=R.useState(["Payloads","Campaigns","Settings"]),[h,g]=R.useState(null),[b,E]=R.useState(null),[y,S]=R.useState(null);R.useEffect(()=>{r&&n&&n()},[s.pathname,s.search]),R.useEffect(()=>{g(null),E(null),S(null)},[s.pathname,s.search,s.hash]);const C=k=>{p(O=>O.includes(k)?O.filter(L=>L!==k):[...O,k])},_=(k,O)=>k?s.pathname===k||s.pathname.startsWith(k+"/")?!0:O?O.some(L=>s.pathname===L.href||s.pathname.startsWith(L.href+"/")):!1:!1,j=(k,O=!1,L=!1)=>{const V=k.children&&k.children.length>0,Q=i.includes(k.label),te=_(k.href,k.subMenu),ie=L||!e;if(V)return ie?f.jsxs("div",{children:[f.jsxs("button",{onClick:()=>C(k.label),className:K("flex w-full items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors","text-sidebar-foreground/80 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[k.icon,f.jsx("span",{className:"flex-1 text-left",children:k.label}),f.jsx(kl,{className:K("h-4 w-4 transition-transform",Q&&"rotate-180")})]}),Q&&f.jsx("div",{className:"ml-4 mt-1 space-y-1",children:k.children?.map($=>j($,!0,L))})]},k.label):f.jsxs(Fr,{open:h===k.label,onOpenChange:$=>{g($?k.label:null),$||S(null)},children:[f.jsx(Mr,{asChild:!0,children:f.jsx("button",{className:K("flex w-full items-center justify-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors","text-sidebar-foreground
143/80 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:k.icon})}),f.jsxs(cr,{side:"right",align:"start",sideOffset:8,className:"w-48 p-2",children:[f.jsx("div",{className:"mb-2 px-2 text-sm font-semibold text-foreground",children:k.label}),f.jsx("div",{className:"space-y-1",children:k.children?.map($=>{const z=_($.href,$.subMenu);return(a||$.alwaysShowSubMenu)&&$.subMenu&&$.subMenu.length>0?f.jsxs(Fr,{open:y===$.label,onOpenChange:re=>S(re?$.label:null),children:[f.jsx(Mr,{asChild:!0,children:f.jsx("div",{className:"relative",onMouseEnter:()=>S($.label),onMouseLeave:()=>S(null),children:f.jsxs(dt,{to:$.href||"#",onClick:()=>{g(null),S(null)},className:K("flex items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors w-full",z?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:[$.icon,f.jsx("span",{className:"flex-1",children:$.label}),f.jsx(lr,{className:"h-3 w-3"})]})})}),f.jsx(cr,{side:"right",align:"start",sideOffset:4,className:"w-44 p-1",onMouseEnter:()=>S($.label),onMouseLeave:()=>S(null),children:f.jsx("div",{className:"space-y-0.5",children:$.subMenu.map(re=>{const xe=s.pathname+s.search+s.hash===re.href||re.href===$.href&&s.pathname===$.href&&!s.search&&!s.hash;return f.jsx(dt,{to:re.href,onClick:()=>{g(null),S(null)},className:K("flex items-center rounded-md px-2 py-1.5 text-sm transition-colors",xe?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:re.label},re.label)})})})]},$.label):f.jsxs(dt,{to:$.href||"#",onClick:()=>g(null),className:K("flex items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors",z?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:[$.icon,f.jsx("span",{children:$.label}),$.badge&&f.jsx("span",{className:"ml-auto rounded bg-primary/20 px-1.5 py-0.5 text-xs text-primary",children:$.badge})]},$.label)})})]})]},k.label);const oe=k.external?"a":dt,ye=k.external?{href:k.href,target:"_blank",rel:"noopener noreferrer"}:{to:k.href||"#"};return(a||k.alwaysShowSubMenu)&&k.subMenu&&ie?f.jsxs(Fr,{open:b===k.label,onOpenChange:$=>E($?k.label:null),children:[f.jsx(Mr,{asChild:!0,children:f.jsx("div",{className:"relative",onMouseEnter:()=>E(k.label),onMouseLeave:()=>E(null),children:f.jsxs(oe,{...ye,className:K("flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors w-full",te?"bg-primary text-primary-foreground":"text-sidebar-foreground/80 hover:bg-sidebar-accent hover:text-sidebar-foreground",O&&ie&&"ml-2"),children:[k.icon,f.jsx("span",{className:"flex-1",children:k.label}),k.badge&&f.jsx("span",{className:"rounded bg-primary/20 px-1.5 py-0.5 text-xs text-primary",children:k.badge}),f.jsx(lr,{className:"h-3 w-3 text-muted-foreground"})]})})}),f.jsx(cr,{side:"right",align:"start",sideOffset:4,className:"w-44 p-1",onMouseEnter:()=>E(k.label),onMouseLeave:()=>E(null),children:f.jsx("div",{className:"space-y-0.5",children:k.subMenu.map($=>{const z=s.pathname+s.search+s.hash===$.href||$.href===k.href&&s.pathname===k.href&&!s.search&&!s.hash;return f.jsx(dt,{to:$.href,onClick:()=>E(null),className:K("flex items-center rounded-md px-2 py-1.5 text-sm transition-colors",z?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:$.label},$.label)})})})]},k.label):f.jsxs(oe,{...ye,className:K("flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors",te?"bg-primary text-primary-foreground":"text-sidebar-foreground/80 hover:bg-sidebar-accent hover:text-sidebar-foreground",O&&ie&&"ml-2",!ie&&"justify-center"),children:[k.icon,ie&&f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"flex-1",children:k.label}),k.badge&&f.jsx("span",{className:"rounded bg-primary/20 px-1.5 py-0.5 text-xs text-primary",children:k.badge})]})]},k.label)};return f.jsxs("aside",{className:K("fixed inset-y-0 left-0 z-50 flex flex-col border-r border-sidebar-border bg-sidebar transition-all duration-200","w-64 -translate-x-full md:translate-x-0",r&&"translate-x-0",!r&&e&&"md:w-16"),children:[f.jsxs("div",{className:K("flex h-16 items-center justify-between border-b border-sidebar-border transition-all duration-200",e&&!r?"px-3 md:justify-center":"px-4"),children:[e&&!r?f.jsx("button",{onClick:t,className:"flex items-center justify-center",title:"Expand sidebar",children:f.jsx(Qr,{size:32})}):f.jsxs(dt,{to:"/app/dashboard",className:"flex items-center overflow-hidden",children:[f.jsx(Qr,{size:32,className:"flex-shrink-0"}),f.jsx("span",{className:"ml-2 text-lg font-semibold text-sidebar-foreground whitespace-nowrap",children:"delivr.to"})]}),r&&f.jsx("button",{onClick:n,className:"rounded-lg p-1 text-sidebar-foreground
143/60 hover:bg-sidebar-accent hover:text-sidebar-foreground md:hidden",children:f.jsx(An,{className:"h-5 w-5"})}),f.jsx("button",{onClick:t,className:K("rounded-lg p-1 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground transition-opacity duration-200","hidden md:block",e&&!r&&"md:hidden"),children:f.jsx(Nl,{className:"h-5 w-5"})})]}),e&&!r&&f.jsx("button",{onClick:t,className:"absolute top-5 -right-3 z-50 hidden md:flex h-6 w-6 items-center justify-center rounded-full border border-sidebar-border bg-sidebar text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground shadow-sm",children:f.jsx(lr,{className:"h-3.5 w-3.5"})}),f.jsx("nav",{className:"flex-1 space-y-1 overflow-y-auto p-3",children:zh.map(k=>j(k,!1,r))}),f.jsx("div",{className:"border-t border-sidebar-border p-3",children:f.jsx("div",{className:"space-y-1",children:Hh.map(k=>j(k,!1,r))})})]})}const Bi=R.createContext(void 0);function Wh({children:e}){const[t,r]=R.useState(null),[n,s]=R.useState(!0),[o,a]=R.useState(!1),i=R.useCallback(async()=>{try{const g=await jh();if(a(g),g){const b=await kh();r(b)}else r(null)}catch{a(!1),r(null)}finally{s(!1)}},[]);R.useEffect(()=>{i()},[i]);const p=R.useCallback(()=>{window.location.href=Ph()},[]),h={user:t,isLoading:n,isAuthenticated:o,signOut:p,refreshAuth:i};return f.jsx(Bi.Provider,{value:h,children:e})}function On(){const e=R.useContext(Bi);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}function Gh({children:e}){const{isAuthenticated:t,isLoading:r}=On(),n=br();if(r)return f.jsx("div",{className:"flex h-screen w-screen items-center justify-center bg-background",children:f.jsxs("div",{className:"flex flex-col items-center gap-4",children:[f.jsx(Tn,{size:64,className:"text-primary"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})]})});if(!t){const s=zt(n.pathname);return window.location.href=s,null}return f.jsx(f.Fragment,{children:e})}const Yh={theme:"system",setTheme:()=>null,resolvedTheme:"light"},Oi=R.createContext(Yh);function Jh({children:e,defaultTheme:t="system",storageKey:r="delivrto-theme",...n}){const[s,o]=R.useState(()=>localStorage.getItem(r)||t),[a,i]=R.useState("light");R.useEffect(()=>{const h=window.document.documentElement;h.classList.remove("light","dark");let g;s==="system"?g=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":g=s,h.classList.add(g),i(g)},[s]),R.useEffect(()=>{if(s!=="system")return;const h=window.matchMedia("(prefers-color-scheme: dark)"),g=b=>{const E=window.document.documentElement;E.classList.remove("light","dark");const y=b.matches?"dark":"light";E.classList.add(y),i(y)};return h.addEventListener("change",g),()=>h.removeEventListener("change",g)},[s]);const p={theme:s,setTheme:h=>{localStorage.setItem(r,h),o(h)},resolvedTheme:a};return f.jsx(Oi.Provider,{...n,value:p,children:e})}const Fi=()=>{const e=R.useContext(Oi);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},qs=la,Vs=ca,Tm=ua,Zh=R.forwardRef(({className:e,inset:t,children:r,...n},s)=>f.jsxs(ao,{ref:s,className:K("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[r,f.jsx(lr,{className:"ml-auto h-4 w-4"})]}));Zh.displayName=ao.displayName;const Xh=R.forwardRef(({className:e,...t},r)=>f.jsx(lo,{ref:r,className:K("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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",e),...t}));Xh.displayName=lo.displayName;const mn=R.forwardRef(({className:e,sideOffset:t=4,...r},n)=>f.jsx(aa,{children:f.jsx(co,{ref:n,sideOffset:t,className:K("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
143de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));mn.displayName=co.displayName;const xt=R.forwardRef(({className:e,inset:t,...r},n)=>f.jsx(uo,{ref:n,className:K("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));xt.displayName=uo.displayName;const Qh=R.forwardRef(({className:e,children:t,checked:r,...n},s)=>f.jsxs(fo,{ref:s,className:K("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(ho,{children:f.jsx(Ul,{className:"h-4 w-4"})})}),t]}));Qh.displayName=fo.displayName;const ep=R.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(po,{ref:n,className:K("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(ho,{children:f.jsx(Pl,{className:"h-2 w-2 fill-current"})})}),t]}));ep.displayName=po.displayName;const tp=R.forwardRef(({className:e,inset:t,...r},n)=>f.jsx(mo,{ref:n,className:K("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));tp.displayName=mo.displayName;const gn=R.forwardRef(({className:e,...t},r)=>f.jsx(go,{ref:r,className:K("-mx-1 my-1 h-px bg-muted",e),...t}));gn.displayName=go.displayName;var rp=Symbol.for("react.lazy"),vr=Xi[" use ".trim().toString()];function np(e){return typeof e=="object"&&e!==null&&"then"in e}function Mi(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===rp&&"_payload"in e&&np(e._payload)}function sp(e){const t=ip(e),r=R.forwardRef((n,s)=>{let{children:o,...a}=n;Mi(o)&&typeof vr=="function"&&(o=vr(o._payload));const i=R.Children.toArray(o),p=i.find(lp);if(p){const h=p.props.children,g=i.map(b=>b===p?R.Children.count(h)>1?R.Children.only(null):R.isValidElement(h)?h.props.children:null:b);return f.jsx(t,{...a,ref:s,children:R.isValidElement(h)?R.cloneElement(h,void 0,g):null})}return f.jsx(t,{...a,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}var op=sp("Slot");function ip(e){const t=R.forwardRef((r,n)=>{let{children:s,...o}=r;if(Mi(s)&&typeof vr=="function"&&(s=vr(s._payload)),R.isValidElement(s)){const a=up(s),i=cp(o,s.props);return s.type!==R.Fragment&&(i.ref=n?io(n,a):a),R.cloneElement(s,i)}return R.Children.count(s)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ap=Symbol("radix.slottable");function lp(e){return R.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ap}function cp(e,t){const r={...t};for(const n in t){const s=e[n],o=t[n];/^on[A-Z]/.test(n)?s&&o?r[n]=(...i)=>{const p=o(...i);return s(...i),p}:s&&(r[n]=s):n==="style"?r[n]={...s,...o}:n==="className"&&(r[n]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function up(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const $s=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,zs=Po,dp=(e,t)=>r=>{var n;if(t?.variants==null)return zs(e,r?.class,r?.className);const{variants:s,defaultVariants:o}=t,a=Object.keys(s).map(h=>{const g=r?.[h],b=o?.[h];if(g===null)return null;const E=$s(g)||$s(b);return s[h][E]}),i=r&&Object.entries(r).reduce((h,g)=>{let[b,E]=g;return E===void 0||(h[b]=E),h},{}),p=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((h,g)=>{let{class:b,className:E,...y}=g;return Object.entries(y).every(S=>{let[C,_]=S;return Array.isArray(_)?_.includes({...o,...i}[C]):{...o,...i}[C]===_})?[...h,b,E]:h},[]);return zs(e,a,p,r?.class,r?.className)},fp=dp("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-primary/10 hover:text-primary",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-primary/10 hover:text-primary",link:"text-primary underline-offset-4 hover:underline",success:"bg-success text-success-foreground hover:bg-success/90"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Fe=R.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},o)=>{const a=n?op:"button";return f.jsx(a,{className:K(fp({variant:t,size:r,className:e})),ref:o,...s})});Fe.displayName="Button";const Ct={getTemplates:async()=>(await Be.get("/templates")).data,getTemplatePayloads:async e=>(await Be.get(`/templates/${e}/payloads`)).data,getSenderIntegrations:async()=>(await Be.get("/integrations",{params:{type:"sender"}})).data.map(t=>({id:t.id,name:t.friendly_name||t.sending_address||"Unknown",email:t.sending_address||t.email||"",enabled:t.enabled,type:t.integration_meta_type})),scheduleCampaign:async e=>(await Be.post("/campaign",e)).data},Ye={all:["launch"],templates:()=>[...Ye.all,"templates"],templatePayloads:e=>[...Ye.all,"templatePayloads",e],senders:()=>[...Ye.all,"senders"]};function Am(){return Gt({queryKey:Ye.templates(),queryFn:Ct.getTemplates,select:e=>e.sort((t,r)=>t.template_name.localeCompare(r.template_name))})}function Rm(e){return Gt({queryKey:Ye.templatePayloads(e),queryFn:()=>Ct.getTemplatePayloads(e),enabled:!!e})}function _m(){return Gt({queryKey:Ye.senders(),queryFn:Ct.getSenderIntegrations})}function hp(){const e=wn();R.useEffect(()=>{e.prefetchQuery({queryKey:Ye.templates(),queryFn:Ct.getTemplates}).then(()=>{const r=e.getQueryData(Ye.templates())?.find(n=>n.template_name.includes("delivr.to's Top 10 Payloads"));r&&e.prefetchQuery({queryKey:Ye.templatePayloads(r.template_id),queryFn:()=>Ct.getTemplatePayloads(r.template_id)})})},[e])}function Im(){const e=wn();R.useEffect(()=>
143{e.invalidateQueries({queryKey:Ye.all})},[e])}function Um(){const e=Js(),t=wn();return Ki({mutationFn:r=>Ct.scheduleCampaign(r),onSuccess:r=>{t.invalidateQueries({queryKey:["campaigns"]}),t.invalidateQueries({queryKey:["user","me"]}),setTimeout(()=>{e(`/app/campaign-results?campaign=${r.campaign_id}&auto_refresh=true`)},1500)}})}const Li=ha,pp=da,qi=R.forwardRef(({className:e,...t},r)=>f.jsx(yo,{ref:r,className:K("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));qi.displayName=yo.displayName;const Fn=R.forwardRef(({className:e,children:t,hideCloseButton:r,...n},s)=>f.jsxs(pp,{children:[f.jsx(qi,{}),f.jsxs(wo,{ref:s,className:K("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:rounded-lg",e),...n,children:[t,!r&&f.jsxs(fa,{className:"absolute right-4 top-4 roun
143ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(An,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Fn.displayName=wo.displayName;const Vi=({className:e,...t})=>f.jsx("div",{className:K("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Vi.displayName="DialogHeader";const $i=({className:e,...t})=>f.jsx("div",{className:K("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});$i.displayName="DialogFooter";const Mn=R.forwardRef(({className:e,...t},r)=>f.jsx(xo,{ref:r,className:K("text-lg font-semibold leading-none tracking-tight",e),...t}));Mn.displayName=xo.displayName;const Ln=R.forwardRef(({className:e,...t},r)=>f.jsx(vo,{ref:r,className:K("text-sm text-muted-foreground",e),...t}));Ln.displayName=vo.displayName;const hr=R.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,className:K("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));hr.displayName="Card";const pr=R.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,className:K("flex flex-col space-y-1.5 p-6",e),...t}));pr.displayName="CardHeader";const mr=R.forwardRef(({className:e,...t},r)=>f.jsx("h3",{ref:r,className:K("text-2xl font-semibold leading-none tracking-tight",e),...t}));mr.displayName="CardTitle";const gr=R.forwardRef(({className:e,...t},r)=>f.jsx("p",{ref:r,className:K("text-sm text-muted-foreground",e),...t}));gr.displayName="CardDescription";const yr=R.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,className:K("p-6 pt-0",e),...t}));yr.displayName="CardContent";const mp=R.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,className:K("flex items-center p-6 pt-0",e),...t}));mp.displayName="CardFooter";function gp({open:e,onOpenChange:t,feature:r="this feature",requiredTier:n="premium",title:s,description:o,variant:a="gated"}){const{data:i}=Ut(),{data:p}=$h(),h=p?.starter_checkout_url||i?.checkout_url||"/app/settings",g=p?.premium_checkout_url||i?.checkout_url||"/app/settings",b=a==="browse",E=a==="browse"||n==="premium",y=E?"a Premium or Enterprise":"an Enterprise",S=(b?1:0)+(E?1:0)+1,C=S===3?"sm:max-w-4xl":S===2?"sm:max-w-2xl":"sm:max-w-md",_=S===3?"sm:grid-cols-3":S===2?"sm:grid-cols-2":"",j=s||(a==="browse"?"Choose Your Plan":"Upgrade Required"),k=o||(a==="browse"?"Unlock more power for your security testing":f.jsxs(f.Fragment,{children:["Access to ",f.jsx("span",{className:"text-primary font-medium",children:r})," ","requires ",y," subscription."]}));return f.jsx(Li,{open:e,onOpenChange:t,children:f.jsxs(Fn,{className:`overflow-hidden p-0 gap-0 ${C}`,hideCloseButton:!0,children:[f.jsxs("div",{className:"relative bg-gradient-to-br from-primary/10 via-primary/5 to-chart-purple/10 dark:from-[#0a0a12] dark:via-[#0d1117] dark:to-[#1a1a2e] px-6 pt-8 pb-6 overflow-hidden",children:[f.jsx("div",{className:"absolute top-0 right-0 w-48 h-48 bg-primary/10 dark:bg-primary/20 rounded-full blur-3xl"}),f.jsx("div",{className:"absolute bottom-0 left-0 w-32 h-32 bg-chart-purple/10 dark:bg-chart-purple/20 rounded-full blur-3xl"}),f.jsx("div",{className:"absolute inset-0 opacity-20 dark:opacity-50",style:{backgroundImage:`radial-gradient(1px 1px at 20px 30px, hsl(var(--primary)), transparent),
144                radial-gradient(1px 1px at 40px 70px, hsl(var(--primary)), transparent),
145                radial-gradient(1px 1px at 80px 20px, hsl(var(--chart-purple)), transparent),
146                radial-gradient(1px 1px at 130px 50px, hsl(var(--primary)), transparent),
147                radial-gradient(1px 1px at 180px 80px, hsl(var(--chart-purple)), transparent),
148                radial-gradient(1px 1px at 250px 35px, hsl(var(--primary)), transparent),
149                radial-gradient(1px 1px at 320px 60px, hsl(var(--chart-purple)), transparent),
150                radial-gradient(1px 1px at 400px 25px, hsl(var(--primary)), transparent)`}}),f.jsxs("div",{className:"relative z-10",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[f.jsx("div",{className:"p-2 rounded-lg bg-primary/20 text-primary",children:f.jsx(en,{className:"h-6 w-6"})}),f.jsx(Mn,{className:"text-2xl font-bold text-foreground dark:text-white",children:j})]}),f.jsx(Ln,{className:"text-muted-foreground dark:text-gray-300 text-base",children:k})]}),f.jsx("button",{onClick:()=>t(!1),className:"absolute right-4 top-4 p-1 rounded-sm text-muted-foreground hover:text-foreground dark:text-gray-400 dark:hover:text-white transition-colors",children:f.jsx(An,{className:"h-4 w-4"})})]}),f.jsxs("div",{className:"p-6 bg-background",children:[f.jsxs("div",{className:`grid gap-4 ${_}`,children:[b&&f.jsxs(hr,{className:"relative hover:border-primary/30 transition-colors",children:[f.jsxs(pr,{className:"pb-2 pt-4",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Gl,{className:"h-5 w-5 text-muted-foreground"}),f.jsx(mr,{className:"text-lg",children:"Starter"})]}),f.jsx(gr,{children:"£99/mo or £999/yr"})]}),f.jsxs(yr,{className:"space-y-3",children:[f.jsxs("ul",{className:"text-sm space-y-2 text-muted-foreground",children:[f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"100 emails daily"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"25 downloads daily"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Full payload library"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Campaign history"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Basic analytics"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Email support"]})]}),f.jsx(Fe,{variant:"outline",className:"w-full",asChild:!0,children:f.jsx("a",{href:h,target:"_blank",rel:"noopener noreferrer",children:"Get Starter"})})]})]}),E&&f.jsxs(hr,{className:"relative border-primary/50 hover:border-primary transition-colors",children:[f.jsx("div",{className:"absolute -top-3 left-4",children:f.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-primary text-primary-foreground",children:[f.jsx(Vo,{className:"h-3 w-3"}),"Popular"]})}),f.jsxs(pr,{className:"pb-2 pt-4",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Mo,{className:"h-5 w-5 text-primary"}),f.jsx(mr,{className:"text-lg",children:"Premium"})]}),f.jsx(gr,{children:"£299/mo or £2,999/yr"})]}),f.jsxs(yr,{className:"space-y-3",children:[f.jsxs("ul",{className:"text-sm space-y-2 text-muted-foreground",children:[f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Campaign reports & exports"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"2000 emails daily"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Unlimited downloads"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Mailbox integrations"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Security tool integrations"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Developer API access"]})]}),f.jsx(Fe,{className:"w-full",asChild:!0,children:f.jsx("a",{href:g,target:"_blank",rel:"noopener noreferrer",children:"Upgrade to Premium"})})]})]}),f.jsxs(hr,{className:"relative hover:border-chart-purple/50 transition-colors",children:[f.jsxs(pr,{className:"pb-2 pt-4",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(en,{className:"h-5 w-5 text-chart-purple"}),f.jsx(mr,{className:"text-lg",children:"Enterprise"})]}),f.jsx(gr,{children:"Custom pricing"})]}),f.jsxs(yr,{className:"space-y-3",children:[f.jsxs("ul",{className:"text-sm space-y-2 text-muted-foreground",children:[f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Everything in Premium"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Custom payload uploads"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Advanced scheduling"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Team collaboration"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Priority support"]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-success",children:"✓"}),"Custom integrations"]})]}),f.jsx(Fe,{variant:"outline",className:"w-full border-chart-purple text-chart-purple hover:bg-chart-purple hover:text-white",asChild:!0,children:f.jsx("a",{href:"mailto:[email protected]?subject=Enterprise%20Inquiry",children:"Contact Sales"})})]})]})]}),f.jsxs("p",{className:"text-xs text-muted-foreground text-center mt-4",children:["Need help choosing?"," ",f.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"Contact our team"})]})]})]})})}function yp({onMobileMenuToggle:e}){const{user:t,signOut:r}=On(),{setTheme:n,resolvedTheme:s}=Fi(),{data:o}
150=Ut(),[a,i]=R.useState(!1),p=o?.subscription_status==="Trial";return f.jsxs(f.Fragment,{children:[f.jsxs("header",{className:"sticky top-0 z-40 flex h-16 items-center justify-between gap-4 border-b bg-background px-4 md:px-6",children:[f.jsxs(Fe,{variant:"ghost",size:"icon",className:"md:hidden hover:bg-muted",onClick:e,children:[f.jsx(ql,{className:"h-5 w-5"}),f.jsx("span",{className:"sr-only",children:"Toggle menu"})]}),f.jsx("div",{className:"hidden md:block"}),f.jsxs("div",{className:"flex items-center gap-2",children:[p&&f.jsxs(Fe,{variant:"ghost",size:"sm",className:"hidden md:flex items-center gap-2 relative group hover:bg-primary/5 transition-all duration-300",onClick:()=>i(!0),children:[f.jsx("div",{className:"absolute inset-0 rounded-md overflow-hidden opacity-0 group-hover:opacity-100 transition-opacity",children:f.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-primary/10 to-transparent animate-shimmer"})}),f.jsx(Mo,{className:"h-4 w-4 text-primary animate-pulse"}),f.jsx("span",{className:"text-sm font-medium bg-gradient-to-r from-foreground to-foreground group-hover:from-primary group-hover:to-chart-purple bg-clip-text transition-all duration-300",children:"Upgrade"})]}),f.jsxs(qs,{children:[f.jsx(Vs,{asChild:!0,children:f.jsxs(Fe,{variant:"ghost",size:"icon",children:[s==="dark"?f.jsx(Jn,{className:"h-5 w-5"}):f.jsx(Zn,{className:"h-5 w-5"}),f.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),f.jsxs(mn,{align:"end",children:[f.jsxs(xt,{onClick:()=>n("light"),children:[f.jsx(Zn,{className:"mr-2 h-4 w-4"}),"Light"]}),f.jsxs(xt,{onClick:()=>n("dark"),children:[f.jsx(Jn,{className:"mr-2 h-4 w-4"}),"Dark"]}),f.jsxs(xt,{onClick:()=>n("system"),children:[f.jsx($l,{className:"mr-2 h-4 w-4"}),"System"]})]})]}),f.jsxs(qs,{children:[f.jsx(Vs,{asChild:!0,children:f.jsxs(Fe,{variant:"ghost",className:"flex items-center gap-2",children:[o?.picture?f.jsx("img",{src:o.picture,alt:"Profile",className:"h-8 w-8 rounded-full object-cover",referrerPolicy:"no-referrer"}):f.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-muted",children:f.jsx($o,{className:"h-4 w-4"})}),f.jsx("span",{className:"hidden md:inline-block",children:t?.email})]})}),f.jsxs(mn,{align:"end",className:"w-56",children:[f.jsxs("div",{className:"px-2 py-1.5",children:[f.jsx("p",{className:"text-sm font-medium",children:t?.email}),f.jsx("p",{className:"text-xs text-muted-foreground",children:"Signed in"})]}),f.jsx(gn,{}),f.jsx(xt,{asChild:!0,children:f.jsxs(dt,{to:"/app/settings",children:[f.jsx(qo,{className:"mr-2 h-4 w-4"}),"Settings"]})}),f.jsx(gn,{}),f.jsxs(xt,{onClick:r,className:"text-destructive",children:[f.jsx(Ll,{className:"mr-2 h-4 w-4"}),"Log out"]})]})]})]})]}),f.jsx(gp,{open:a,onOpenChange:i,variant:"browse"})]})}function wp({open:e,onOpenChange:t,upgradeType:r,newTier:n}){const s=()=>{sessionStorage.setItem("session_reauth_attempted","true"),sessionStorage.removeItem("pending_privilege_escalation"),Oh()},o=r==="team"?"Welcome to the Team!":"Account Upgraded!",a=r==="team"?"You've been added to a team! We need to refresh your session to unlock your new permissions.":`Your account has been upgraded to ${n||"a new tier"}! We need to refresh your session to unlock your new features.`;return f.jsx(Li,{open:e,onOpenChange:t,children:f.jsxs(Fn,{className:"sm:max-w-md",children:[f.jsxs(Vi,{className:"text-center sm:text-center",children:[f.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-primary/10",children:f.jsx(Vo,{className:"h-8 w-8 text-primary"})}),f.jsx(Mn,{className:"text-xl",children:o}),f.jsx(Ln,{className:"text-center",children:a})]}),f.jsx($i,{className:"sm:justify-center",children:f.jsx(Fe,{onClick:s,className:"min-w-32",children:"Continue"})})]})})}function xp(){const{privilegeEscalation:e,clearPrivilegeEscalation:t}=Ut();hp();const[r,n]=R.useState(()=>localStorage.getItem("nav_state")==="collapsed"),[s,o]=R.useState(!1);R.useEffect(()=>{const p=()=>{window.innerWidth>=768&&o(!1)};return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]);const a=()=>{const p=!r;n(p),localStorage.setItem("nav_state",p?"collapsed":"expanded")},i=()=>{o(!s)};return f.jsxs("div",{className:"flex h-screen bg-background",children:[s&&f.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>o(!1)}),f.jsx(Kh,{collapsed:r,onToggle:a,mobileOpen:s,onMobileClose:()=>o(!1)}),f.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[f.jsx(yp,{onMobileMenuToggle:i}),f.jsx("main",{className:K("flex-1 overflow-y-auto p-4 md:p-6 transition-all duration-200","md:ml-0",r?"md:ml-16":"md:ml-64"),children:f.jsx(Qi,{})})]}),f.jsx(wp,{open:!!e,onOpenChange:p=>{p||t()},upgradeType:e?.type??null,newTier:e?.newTier})]})}function ar(e){const t=e.message?.toLowerCase()||"",r=e.name?.toLowerCase()||"";return t.includes("loading chunk")||t.includes("loading css chunk")||t.includes("dynamically imported module")||t.includes("failed to fetch")||t.includes("text/html")||r.includes("chunkloaderror")}class vp extends R.Component{constructor(t){super(t),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){if(this.setState({errorInfo:r}),ar(t)){const n=sessionStorage.getItem("chunk_error_reload"),s=Date.now();if(!n||s-parseInt(n)>1e4){sessionStorage.setItem("chunk_error_reload",s.toString()),window.location.reload();return}}}handleRetry=()=>
150{if(this.state.error&&ar(this.state.error)){window.location.reload();return}this.setState({hasError:!1,error:null,errorInfo:null})};handleGoHome=()=>{window.location.href="/"};render(){return this.state.hasError?this.props.fallback?this.props.fallback:f.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:f.jsxs("div",{className:"max-w-md w-full text-center space-y-6",children:[f.jsx("div",{className:"flex justify-center",children:f.jsx(Qr,{size:48,className:"text-muted-foreground"})}),f.jsx("div",{className:"flex justify-center",children:f.jsx("div",{className:"w-16 h-16 rounded-full bg-destructive/10 flex items-center justify-center",children:f.jsx(Al,{className:"w-8 h-8 text-destructive"})})}),f.jsxs("div",{className:"space-y-2",children:[f.jsx("h1",{className:"text-2xl font-bold text-foreground",children:ar(this.state.error)?"Update Required":"Something went wrong"}),f.jsx("p",{className:"text-muted-foreground",children:ar(this.state.error)?"A new version of the app is available. Please refresh the page to continue.":f.jsxs(f.Fragment,{children:["An unexpected error occurred. Please refresh the page and try again or contact us at"," ",f.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]})})]}),!1,f.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[f.jsxs(Fe,{onClick:this.handleRetry,className:"gap-2",children:[f.jsx(Kl,{className:"w-4 h-4"}),"Try Again"]}),f.jsxs(Fe,{variant:"outline",onClick:this.handleGoHome,className:"gap-2",children:[f.jsx(Lo,{className:"w-4 h-4"}),"Home"]})]})]})}):this.props.children}}const bp="delivrto-cookie-consent";let yn=!1,Hs=!1;function Sp(){return localStorage.getItem(bp)==="accepted"}function Ep(e){return new Promise((t,r)=>{const n=document.createElement("script");n.src=e,n.async=!0,n.onload=()=>t(),n.onerror=()=>r(new Error(`Failed to load script: ${e}`)),document.head.appendChild(n)})}async function Cp(){const e="G-0WMC15MC7P";if(!yn)try{await Ep(`https://www.googletagmanager.com/gtag/js?id=${e}`),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",e,{send_page_view:!1}),yn=!0}catch(t){console.error("Failed to initialise GA4:",t)}}function Tp(){const e="vtqpp5icq2";if(!Hs)try{const t=window;t.clarity=t.clarity||function(){(t.clarity.q=t.clarity.q||[]).push(arguments)};const r=document.createElement("script");r.async=!0,r.src=`https://www.clarity.ms/tag/${e}`;const n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(r,n),Hs=!0}catch(t){console.error("Failed to initialise Clarity:",t)}}function Ks(){Sp()&&(Cp(),Tp())}function Ap(e){!yn||!window.gtag||window.gtag("event","page_view",{page_path:e,page_title:document.title})}function Rp(){const e=br();R.useEffect(()=>{Ap(e.pathname+e.search)},[e])}const Ws="delivrto-cookie-consent";function _p(){const[e,t]=R.useState(!1),[r,n]=R.useState(!1);R.useEffect(()=>{const o=localStorage.getItem(Ws);if(o==="accepted")Ks();else if(!o){const a=setTimeout(()=>t(!0),1e3);return()=>clearTimeout(a)}},[]);const s=()=>{n(!0),setTimeout(()=>{localStorage.setItem(Ws,"accepted"),t(!1),Ks()},300)};return e?f.jsx("div",{className:K("fixed bottom-4 left-4 z-50 max-w-sm","transition-all duration-300 ease-out",r?"opacity-0 translate-y-4":"opacity-100 translate-y-0 animate-in slide-in-from-bottom-4"),children:f.jsxs("div",{className:K("rounded-xl p-5 shadow-lg backdrop-blur-sm","bg-white/95 border border-gray-200/50 shadow-gray-200/50","dark:bg-gray-900/95 dark:border-gray-700/50 dark:shadow-primary/10"),children:[f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx("div",{className:K("flex-shrink-0 p-2 rounded-lg","bg-primary/10 dark:bg-primary/20"),children:f.jsx(jl,{className:"h-5 w-5 text-primary"})}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("h3",{className:K("font-semibold text-base mb-1","text-gray-900 dark:text-white"),children:"We use cookies!"}),f.jsx("p",{className:K("text-sm leading-relaxed","text-gray-600 dark:text-gray-400"),children:"Hi, this website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it."})]})]}),f.jsx("div",{className:"mt-4 flex gap-2",children:f.jsx(Fe,{onClick:s,className:K("flex-1 font-medium","bg-primary hover:bg-primary/90 text-primary-foreground"),children:"Accept all"})})]})}):null}function Ip(){const{pathname:e,hash:t}=br();return R.useEffect(()=>{t||window.scrollTo({top:0,left:0,behavior:"instant"})},[e,t]),null}function Up(){const e=Js(),[t]=Zs(),{refreshAuth:r}=On(),n=R.useRef(!1);return R.useEffect(()=>{(async()=>
150{if(n.current)return;n.current=!0;const o=t.get("code"),a=t.get("state"),i=t.get("error");if(t.get("error_description"),i){window.location.href=zt("/app");return}if(!o){window.location.href=zt("/app");return}try{await Dh(o),await r(),e(a||"/app",{replace:!0})}catch{window.location.href=zt("/app")}})()},[e,t,r]),f.jsx("div",{className:"flex min-h-screen items-center justify-center",children:f.jsx("div",{className:"text-center",children:f.jsx("div",{className:"mb-4 h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent mx-auto"})})})}function kp(){const e=R.useRef(!1);return R.useEffect(()=>{if(!e.current){e.current=!0;try{Nh()}catch{}window.location.href="/"}},[]),f.jsx("div",{className:"flex min-h-screen items-center justify-center",children:f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:"mb-4 h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent mx-auto"}),f.jsx("p",{className:"text-muted-foreground",children:"Signing out..."})]})})}const Np=R.lazy(()=>_e(()=>import("./Home-DIkUQUh1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])).then(e=>({default:e.Home}))),Pp=R.lazy(()=>_e(()=>import("./Dashboard-C3D0qskI.js"),__vite__mapDeps([21,1,2,22,23,9,20,24,25,26,27,6,28,29,16,30,31,11,7,32,33,5,34,35,36,37,38,39,3,15])).then(e=>({default:e.Dashboard}))),jp=R.lazy(()=>_e(()=>import("./Payloads-jFQ7wnCI.js"),__vite__mapDeps([40,1,2,4,31,6,41,26,22,27,28,29,16,30,9,11,7,42,43,23,20,24,39,44,3,10,5,35,45,32,46,47])).then(e=>({default:e.Payloads}))),Dp=R.lazy(()=>_e(()=>import("./Templates-DtZmcFkh.js"),__vite__mapDeps([48,1,2,4,22,23,9,20,24,31,6,5,27,28,29,26,16,30,11,7,42,43,39,44,3,25,32,47,49,18,35,36])).then(e=>({default:e.Templates}))),Bp=R.lazy(()=>_e(()=>import("./AITM-Co3P64Wl.js"),__vite__mapDeps([50,1,2,22,5,6,45,3,10,20,49,51])).then(e=>({default:e.AITM}))),Op=R.lazy(()=>_e(()=>import("./MyCampaigns-CvkqOMnN.js"),__vite__mapDeps([52,1,2,33,5,6,34,35,36,24,30,22,9,37,38,4,31,27,3,46,44,53])).then(e=>({default:e.MyCampaigns}))),Gs=R.lazy(()=>_e(()=>import("./CampaignResults-BLJQQnj0.js"),__vite__mapDeps([54,1,2,22,28,6,29,27,37,31,5,25,26,16,30,9,11,7,23,20,32,24,19,55,35,33,34,36,43,39,10,47,3,12])).then(e=>({default:e.CampaignResults}))),Fp=R.lazy(()=>_e(()=>import("./Launch-0KgOBPv6.js"),__vite__mapDeps([56,1,2,4,29,6,27,31,5,41,57,44,22,26,28,16,30,9,11,7,24,25,23,20,32,3,17,58])).then(e=>({default:e.Launch}))),Mp=R.lazy(()=>_e(()=>import("./WebLaunch-BJR7e4IJ.js"),__vite__mapDeps([59,1,2,4,29,6,27,5,57,44,22,26,28,16,30,31,9,11,7,24,25,23,20,32,3,55,17,58])).then(e=>({default:e.WebLaunch}))),Lp=R.lazy(()=>_e(()=>import("./Settings-CmyLNy17.js"),__vite__mapDeps([60,1,2,29,6,3,45,22,24,5,61,4,7,17,32,9,47,35,36,20,31,37,15,19,28,27])).then(e=>({default:e.Settings}))),qp=R.lazy(()=>_e(()=>import("./Team-C7gQsXCK.js"),__vite__mapDeps([62,1,2,29,6,3,22,24,5,35,19,36,7,46,61,4,17,32,9,47,31,44,53,11])).then(e=>({default:e.Team}))),Ys=R.lazy(()=>_e(()=>import("./PublicPayload-DR6DWzRG.js"),__vite__mapDeps([63,1,2,26,22,27,6,28,29,16,30,31,9,11,7,3,45,4,8,20,14,49,44])).then(e=>({default:e.PublicPayload}))),Vp=R.lazy(()=>_e(()=>import("./Privacy-DFxxwm56.js"),__vite__mapDeps([64,1,2,3,8,6])).then(e=>({default:e.Privacy}))),$p=R.lazy(()=>_e(()=>import("./Security-BXingQxY.js"),__vite__mapDeps([65,1,2,3,13,19,51,17,9,6])).then(e=>({default:e.Security}))),zp=R.lazy(()=>_e(()=>import("./OAuthCallback-C0EP6T9n.js"),__vite__mapDeps([66,1,2,17,58,6])).then(e=>({default:e.OAuthCallback})));function Hp(){const[e]=Zs(),t=e.get("id"),r=e.get("search");if(r){const n=new URLSearchParams(e);return n.delete("search"),n.set("q",r),n.has("tab")||n.set("tab","payloads"),f.jsx(wr,{to:`/payloads?${n.toString()}`,replace:!0})}return t?f.jsx(wr,{to:`/payloads?id=${t}`,replace:!0}):f.jsx(Np,{})}function Kp(){return Rp(),f.jsxs(vp,{children:[f.jsx(Ip,{}),f.jsx(R.Suspense,{fallback:f.jsx(El,{}),children:f.jsxs(ea,{children:[f.jsx(Ee,{path:"/",element:f.jsx(Hp,{})}),f.jsx(Ee,{path:"/payloads",element:f.jsx(Ys,{})}),f.jsx(Ee,{path:"/payloads/:payloadId",element:f.jsx(Ys,{})}),f.jsx(Ee,{path:"/privacy",element:f.jsx(Vp,{})}),f.jsx(Ee,{path:"/security",element:f.jsx($p,{})}),f.jsx(Ee,{path:"/auth/callback",element:f.jsx(Up,{})}),f.jsx(Ee,{path:"/auth/logout",element:f.jsx(kp,{})}),f.jsx(Ee,{path:"/auth/oauth-callback",element:f.jsx(zp,{})}),f.jsxs(Ee,{path:"/app",element:f.jsx(Gh,{children:f.jsx(xp,{})}),children:[f.jsx(Ee,{index:!0,element:f.jsx(wr,{to:"/app/dashboard",replace:!0})}),f.jsx(Ee,{path:"dashboard",element:f.jsx(Pp,{})}),f.jsx(Ee,{path:"payloads",element:f.jsx(jp,{})}),f.jsx(Ee,{path:"templates",element:f.jsx(Dp,{})}),f.jsx(Ee,{path:"aitm",element:f.jsx(Bp,{})}),f.jsx(Ee,{path:"campaigns",element:f.jsx(Op,{})}),f.jsx(Ee,{path:"campaign-results",element:f.jsx(Gs,{})}),f.jsx(Ee,{path:"campaign/:campaignId",element:f.jsx(Gs,{})}),f.jsx(Ee,{path:"launch",element:f.jsx(Fp,{})}),f.jsx(Ee,{path:"web-launch",element:f.jsx(Mp,{})}),f.jsx(Ee,{path:"settings",element:f.jsx(Lp,{})}),f.jsx(Ee,{path:"team",element:f.jsx(qp,{})})]}),f.jsx(Ee,{path:"*",element:f.jsx(wr,{to:"/",replace:!0})})]})}),f.jsx(_p,{})]})}function Wp(){const{resolvedTheme:e}=Fi();return f.jsx(Ad,{position:"top-right",richColors:!0,closeButton:!0,theme:e,toastOptions:{duration:4e3,classNames:{actionButton:"!bg-background !text-foreground !border !border-input hover:!bg-accent hover:!text-accent-foreground"}}},e)}window.Buffer=ma.Buffer;const Gp=new Wi({defaultOptions:{queries:{staleTime:1e3*60*5,retry:1,refetchOnWindowFocus:!1}}});wa.createRoot(document.getElementById("root")).render(f.jsx(B.StrictMode,{children:f.jsx(ta,{future:{v7_startTransition:!0,v7_relativeSplatPath:!0},children:f.jsx(Gi,{client:Gp,children:f.jsx(Jh,{defaultTheme:"system",storageKey:"delivrto-theme",children:f.jsx(xl,{children:f.jsxs(Wh,{children:[f.jsx(Kp,{}),f.jsx(Wp,{})]})})})})})}));export{Al as $,mr as A,Fe as B,nm as C,Li as D,yr as E,rm as F,Ol as G,pd as H,Bl as I,$o as J,Fi as K,Tn as L,Jn as M,Im as N,gp as O,zl as P,Fr as Q,en as R,Zn as S,xl as T,Wl as U,Mr as V,cr as W,An as X,Ye as Y,Gl as Z,Be as _,be as a,Vo as a0,gr as a1,Dl as a2,Kl as a3,Po as a4,Qp as a5,qo as a6,gn as a7,Tm as a8,Zh as a9,Xh as aa,fp as ab,Il as ac,_m as ad,Cm as ae,Am as af,Rm as ag,Um as ah,$h as ai,pm as aj,On as ak,Qr as al,zt as am,Sm as an,$l as ao,Di as ap,Ct as aq,_e as ar,sp as as,dp as at,Jh as au,ql as av,
150K as b,se as c,Fn as d,Vi as e,Mn as f,Ln as g,$i as h,pt as i,Jt as j,Mo as k,Ul as l,em as m,tm as n,vl as o,Em as p,Nl as q,lr as r,kl as s,qs as t,Ut as u,Vs as v,mn as w,xt as x,hr as y,pr as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.