Comparing version 1.4.3 to 1.4.31
@@ -27,2 +27,4 @@ import React from 'react'; | ||
default?: string; | ||
content?: string; | ||
icon?: string; | ||
} | ||
@@ -128,4 +130,4 @@ interface ToastIcons { | ||
declare const Toaster: (props: ToasterProps) => React.JSX.Element; | ||
declare const Toaster: (props: ToasterProps) => JSX.Element; | ||
export { ExternalToast, ToastT, Toaster, toast }; |
@@ -1,3 +0,9 @@ | ||
"use client";var $t=Object.create;var Q=Object.defineProperty;var _t=Object.getOwnPropertyDescriptor;var Ut=Object.getOwnPropertyNames;var Wt=Object.getPrototypeOf,Vt=Object.prototype.hasOwnProperty;var Kt=(s,e)=>{for(var t in e)Q(s,t,{get:e[t],enumerable:!0})},Mt=(s,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of Ut(e))!Vt.call(s,m)&&m!==t&&Q(s,m,{get:()=>e[m],enumerable:!(n=_t(e,m))||n.enumerable});return s};var Z=(s,e,t)=>(t=s!=null?$t(Wt(s)):{},Mt(e||!s||!s.__esModule?Q(t,"default",{value:s,enumerable:!0}):t,s)),Xt=s=>Mt(Q({},"__esModule",{value:!0}),s);var ce={};Kt(ce,{Toaster:()=>de,toast:()=>Ct});module.exports=Xt(ce);var a=Z(require("react")),Rt=Z(require("react-dom"));function ut(s,{insertAt:e}={}){if(!s||typeof document=="undefined")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e==="top"&&t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=s:n.appendChild(document.createTextNode(s))}ut(`html[dir=ltr],[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%)}html[dir=rtl],[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%)}[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}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[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}[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}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [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}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left: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;background:var(--gray1);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]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[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)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);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-border: hsl(0, 0%, 20%);--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%);--error-text: hsl(358, 100%, 81%)}[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%)} | ||
`);var E=Z(require("react")),Nt=s=>{switch(s){case"success":return Gt;case"info":return Ot;case"warning":return qt;case"error":return Qt;default:return null}},Jt=Array(12).fill(0),Dt=({visible:s})=>E.default.createElement("div",{className:"sonner-loading-wrapper","data-visible":s},E.default.createElement("div",{className:"sonner-spinner"},Jt.map((e,t)=>E.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),Gt=E.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.default.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"})),qt=E.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},E.default.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"})),Ot=E.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.default.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"})),Qt=E.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.default.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"}));var ft=Z(require("react")),Pt=()=>{let[s,e]=ft.default.useState(!1);return ft.default.useEffect(()=>{let t=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)},[]),s};var mt=1,pt=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 p;let{message:t,...n}=e,m=typeof(e==null?void 0:e.id)=="number"||((p=e.id)==null?void 0:p.length)>0?e.id:mt++,h=this.toasts.find(i=>i.id===m),f=e.dismissible===void 0?!0:e.dismissible;return h?this.toasts=this.toasts.map(i=>i.id===m?(this.publish({...i,...e,id:m,title:t}),{...i,...e,id:m,dismissible:f,title:t}):i):this.addToast({title:t,...n,dismissible:f,id:m}),m};this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({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)=>this.create({...t,type:"loading",message:e});this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let m=e instanceof Promise?e:e(),h=n!==void 0;return m.then(f=>{if(f&&typeof f.ok=="boolean"&&!f.ok){h=!1;let p=typeof t.error=="function"?t.error(`HTTP error! status: ${f.status}`):t.error,i=typeof t.description=="function"?t.description(`HTTP error! status: ${f.status}`):t.description;this.create({id:n,type:"error",message:p,description:i})}else if(t.success!==void 0){h=!1;let p=typeof t.success=="function"?t.success(f):t.success,i=typeof t.description=="function"?t.description(f):t.description;this.create({id:n,type:"success",message:p,description:i})}}).catch(f=>{if(t.error!==void 0){h=!1;let p=typeof t.error=="function"?t.error(f):t.error,i=typeof t.description=="function"?t.description(f):t.description;this.create({id:n,type:"error",message:p,description:i})}}).finally(()=>{var f;h&&(this.dismiss(n),n=void 0),(f=t.finally)==null||f.call(t)}),n};this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||mt++;return this.create({jsx:e(n),id:n,...t}),n};this.subscribers=[],this.toasts=[]}},S=new pt,Zt=(s,e)=>{let t=(e==null?void 0:e.id)||mt++;return S.addToast({title:s,...e,id:t}),t},te=Zt,Ct=Object.assign(te,{success:S.success,info:S.info,warning:S.warning,error:S.error,custom:S.custom,message:S.message,promise:S.promise,dismiss:S.dismiss,loading:S.loading});var ee=3,ae="32px",oe=4e3,se=356,Lt=14,ne=20,re=200;function ie(...s){return s.filter(Boolean).join(" ")}var le=s=>{var xt,Tt,wt,Et,St,kt,It;let{invert:e,toast:t,unstyled:n,interacting:m,setHeights:h,visibleToasts:f,heights:p,index:i,toasts:tt,expanded:F,removeToast:U,closeButton:W,style:r,cancelButtonStyle:V,actionButtonStyle:et,className:at="",descriptionClassName:ot="",duration:K,position:st,gap:nt=Lt,loadingIcon:I,expandByDefault:R,classNames:l,icons:x,closeButtonAriaLabel:rt="Close toast",pauseWhenPageIsHidden:X,cn:T}=s,[L,J]=a.default.useState(!1),[G,z]=a.default.useState(!1),[C,q]=a.default.useState(!1),[B,A]=a.default.useState(!1),[it,d]=a.default.useState(0),[g,b]=a.default.useState(0),D=a.default.useRef(null),w=a.default.useRef(null),u=i===0,$=i+1<=f,y=t.type,P=t.dismissible!==!1,_=t.className||"",zt=t.descriptionClassName||"",O=a.default.useMemo(()=>p.findIndex(o=>o.toastId===t.id)||0,[p,t.id]),At=a.default.useMemo(()=>{var o;return(o=t.closeButton)!=null?o:W},[t.closeButton,W]),gt=a.default.useMemo(()=>t.duration||K||oe,[t.duration,K]),lt=a.default.useRef(0),Y=a.default.useRef(0),ht=a.default.useRef(0),j=a.default.useRef(null),[bt,Yt]=st.split("-"),yt=a.default.useMemo(()=>p.reduce((o,c,v)=>v>=O?o:o+c.height,0),[p,O]),vt=Pt(),jt=t.invert||e,dt=y==="loading";Y.current=a.default.useMemo(()=>O*nt+yt,[O,yt]),a.default.useEffect(()=>{J(!0)},[]),a.default.useLayoutEffect(()=>{if(!L)return;let o=w.current,c=o.style.height;o.style.height="auto";let v=o.getBoundingClientRect().height;o.style.height=c,b(v),h(M=>M.find(k=>k.toastId===t.id)?M.map(k=>k.toastId===t.id?{...k,height:v}:k):[{toastId:t.id,height:v,position:t.position},...M])},[L,t.title,t.description,h,t.id]);let H=a.default.useCallback(()=>{z(!0),d(Y.current),h(o=>o.filter(c=>c.toastId!==t.id)),setTimeout(()=>{U(t)},re)},[t,U,h,Y]);a.default.useEffect(()=>{if(t.promise&&y==="loading"||t.duration===1/0||t.type==="loading")return;let o,c=gt;return F||m||X&&vt?(()=>{if(ht.current<lt.current){let N=new Date().getTime()-lt.current;c=c-N}ht.current=new Date().getTime()})():(()=>{lt.current=new Date().getTime(),o=setTimeout(()=>{var N;(N=t.onAutoClose)==null||N.call(t,t),H()},c)})(),()=>clearTimeout(o)},[F,m,R,t,gt,H,t.promise,y,X,vt]),a.default.useEffect(()=>{let o=w.current;if(o){let c=o.getBoundingClientRect().height;return b(c),h(v=>[{toastId:t.id,height:c,position:t.position},...v]),()=>h(v=>v.filter(M=>M.toastId!==t.id))}},[h,t.id]),a.default.useEffect(()=>{t.delete&&H()},[H,t.delete]);function Ft(){return x!=null&&x.loading?a.default.createElement("div",{className:"loader","data-visible":y==="loading"},x.loading):I?a.default.createElement("div",{className:"sonner-loader","data-visible":y==="loading"},I):a.default.createElement(Dt,{visible:y==="loading"})}return a.default.createElement("li",{"aria-live":t.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:w,className:T(at,_,l==null?void 0:l.toast,(xt=t==null?void 0:t.classNames)==null?void 0:xt.toast,l==null?void 0:l.default,l==null?void 0:l[y],(Tt=t==null?void 0:t.classNames)==null?void 0:Tt[y]),"data-sonner-toast":"","data-styled":!(t.jsx||t.unstyled||n),"data-mounted":L,"data-promise":!!t.promise,"data-removed":G,"data-visible":$,"data-y-position":bt,"data-x-position":Yt,"data-index":i,"data-front":u,"data-swiping":C,"data-dismissible":P,"data-type":y,"data-invert":jt,"data-swipe-out":B,"data-expanded":!!(F||R&&L),style:{"--index":i,"--toasts-before":i,"--z-index":tt.length-i,"--offset":`${G?it:Y.current}px`,"--initial-height":R?"auto":`${g}px`,...r,...t.style},onPointerDown:o=>{dt||!P||(D.current=new Date,d(Y.current),o.target.setPointerCapture(o.pointerId),o.target.tagName!=="BUTTON"&&(q(!0),j.current={x:o.clientX,y:o.clientY}))},onPointerUp:()=>{var M,N,k,ct;if(B||!P)return;j.current=null;let o=Number(((M=w.current)==null?void 0:M.style.getPropertyValue("--swipe-amount").replace("px",""))||0),c=new Date().getTime()-((N=D.current)==null?void 0:N.getTime()),v=Math.abs(o)/c;if(Math.abs(o)>=ne||v>.11){d(Y.current),(k=t.onDismiss)==null||k.call(t,t),H(),A(!0);return}(ct=w.current)==null||ct.style.setProperty("--swipe-amount","0px"),q(!1)},onPointerMove:o=>{var Bt;if(!j.current||!P)return;let c=o.clientY-j.current.y,v=o.clientX-j.current.x,N=(bt==="top"?Math.min:Math.max)(0,c),k=o.pointerType==="touch"?10:2;Math.abs(N)>k?(Bt=w.current)==null||Bt.style.setProperty("--swipe-amount",`${c}px`):Math.abs(v)>k&&(j.current=null)}},At&&!t.jsx?a.default.createElement("button",{"aria-label":rt,"data-disabled":dt,"data-close-button":!0,onClick:dt||!P?()=>{}:()=>{var o;H(),(o=t.onDismiss)==null||o.call(t,t)},className:T(l==null?void 0:l.closeButton,(wt=t==null?void 0:t.classNames)==null?void 0:wt.closeButton)},a.default.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"},a.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),a.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,t.jsx||a.default.isValidElement(t.title)?t.jsx||t.title:a.default.createElement(a.default.Fragment,null,y||t.icon||t.promise?a.default.createElement("div",{"data-icon":""},t.promise||t.type==="loading"&&!t.icon?t.icon||(x==null?void 0:x.loading)||Ft():null,t.type!=="loading"?t.icon||(x==null?void 0:x[y])||Nt(y):null):null,a.default.createElement("div",{"data-content":""},a.default.createElement("div",{"data-title":"",className:T(l==null?void 0:l.title,(Et=t==null?void 0:t.classNames)==null?void 0:Et.title)},t.title),t.description?a.default.createElement("div",{"data-description":"",className:T(ot,zt,l==null?void 0:l.description,(St=t==null?void 0:t.classNames)==null?void 0:St.description)},t.description):null),t.cancel?a.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:t.cancelButtonStyle||V,onClick:o=>{var c;P&&(H(),(c=t.cancel)!=null&&c.onClick&&t.cancel.onClick(o))},className:T(l==null?void 0:l.cancelButton,(kt=t==null?void 0:t.classNames)==null?void 0:kt.cancelButton)},t.cancel.label):null,t.action?a.default.createElement("button",{"data-button":"",style:t.actionButtonStyle||et,onClick:o=>{var c;(c=t.action)==null||c.onClick(o),!o.defaultPrevented&&H()},className:T(l==null?void 0:l.actionButton,(It=t==null?void 0:t.classNames)==null?void 0:It.actionButton)},t.action.label):null))};function Ht(){if(typeof window=="undefined"||typeof document=="undefined")return"ltr";let s=document.documentElement.getAttribute("dir");return s==="auto"||!s?window.getComputedStyle(document.documentElement).direction:s}var de=s=>{let{invert:e,position:t="bottom-right",hotkey:n=["altKey","KeyT"],expand:m,closeButton:h,className:f,offset:p,theme:i="light",richColors:tt,duration:F,style:U,visibleToasts:W=ee,toastOptions:r,dir:V=Ht(),gap:et,loadingIcon:at,icons:ot,containerAriaLabel:K="Notifications",pauseWhenPageIsHidden:st,cn:nt=ie}=s,[I,R]=a.default.useState([]),l=a.default.useMemo(()=>Array.from(new Set([t].concat(I.filter(d=>d.position).map(d=>d.position)))),[I,t]),[x,rt]=a.default.useState([]),[X,T]=a.default.useState(!1),[L,J]=a.default.useState(!1),[G,z]=a.default.useState(i!=="system"?i:typeof window!="undefined"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),C=a.default.useRef(null),q=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),B=a.default.useRef(null),A=a.default.useRef(!1),it=a.default.useCallback(d=>R(g=>g.filter(({id:b})=>b!==d.id)),[]);return a.default.useEffect(()=>S.subscribe(d=>{if(d.dismiss){R(g=>g.map(b=>b.id===d.id?{...b,delete:!0}:b));return}setTimeout(()=>{Rt.default.flushSync(()=>{R(g=>{let b=g.findIndex(D=>D.id===d.id);return b!==-1?[...g.slice(0,b),{...g[b],...d},...g.slice(b+1)]:[d,...g]})})})}),[]),a.default.useEffect(()=>{if(i!=="system"){z(i);return}i==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window!="undefined"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:d})=>{z(d?"dark":"light")})},[i]),a.default.useEffect(()=>{I.length<=1&&T(!1)},[I]),a.default.useEffect(()=>{let d=g=>{var D,w;n.every(u=>g[u]||g.code===u)&&(T(!0),(D=C.current)==null||D.focus()),g.code==="Escape"&&(document.activeElement===C.current||(w=C.current)!=null&&w.contains(document.activeElement))&&T(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[n]),a.default.useEffect(()=>{if(C.current)return()=>{B.current&&(B.current.focus({preventScroll:!0}),B.current=null,A.current=!1)}},[C.current]),I.length?a.default.createElement("section",{"aria-label":`${K} ${q}`,tabIndex:-1},l.map((d,g)=>{var w;let[b,D]=d.split("-");return a.default.createElement("ol",{key:d,dir:V==="auto"?Ht():V,tabIndex:-1,ref:C,className:f,"data-sonner-toaster":!0,"data-theme":G,"data-rich-colors":tt,"data-y-position":b,"data-x-position":D,style:{"--front-toast-height":`${((w=x[0])==null?void 0:w.height)||0}px`,"--offset":typeof p=="number"?`${p}px`:p||ae,"--width":`${se}px`,"--gap":`${Lt}px`,...U},onBlur:u=>{A.current&&!u.currentTarget.contains(u.relatedTarget)&&(A.current=!1,B.current&&(B.current.focus({preventScroll:!0}),B.current=null))},onFocus:u=>{u.target instanceof HTMLElement&&u.target.dataset.dismissible==="false"||A.current||(A.current=!0,B.current=u.relatedTarget)},onMouseEnter:()=>T(!0),onMouseMove:()=>T(!0),onMouseLeave:()=>{L||T(!1)},onPointerDown:u=>{u.target instanceof HTMLElement&&u.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},I.filter(u=>!u.position&&g===0||u.position===d).map((u,$)=>{var y,P;return a.default.createElement(le,{key:u.id,icons:ot,index:$,toast:u,duration:(y=r==null?void 0:r.duration)!=null?y:F,className:r==null?void 0:r.className,descriptionClassName:r==null?void 0:r.descriptionClassName,invert:e,visibleToasts:W,closeButton:(P=r==null?void 0:r.closeButton)!=null?P:h,interacting:L,position:d,style:r==null?void 0:r.style,unstyled:r==null?void 0:r.unstyled,classNames:r==null?void 0:r.classNames,cancelButtonStyle:r==null?void 0:r.cancelButtonStyle,actionButtonStyle:r==null?void 0:r.actionButtonStyle,removeToast:it,toasts:I.filter(_=>_.position==u.position),heights:x.filter(_=>_.position==u.position),setHeights:rt,expandByDefault:m,gap:et,loadingIcon:at,expanded:X,pauseWhenPageIsHidden:st,cn:nt})}))})):null};0&&(module.exports={Toaster,toast}); | ||
"use client";var nn=Object.create;var qt=Object.defineProperty;var on=Object.getOwnPropertyDescriptor;var an=Object.getOwnPropertyNames;var rn=Object.getPrototypeOf,sn=Object.prototype.hasOwnProperty;var ln=(a,n)=>{for(var t in n)qt(a,t,{get:n[t],enumerable:!0})},Le=(a,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of an(n))!sn.call(a,u)&&u!==t&&qt(a,u,{get:()=>n[u],enumerable:!(r=on(n,u))||r.enumerable});return a};var Zt=(a,n,t)=>(t=a!=null?nn(rn(a)):{},Le(n||!a||!a.__esModule?qt(t,"default",{value:a,enumerable:!0}):t,a)),cn=a=>Le(qt({},"__esModule",{value:!0}),a);var jn={};ln(jn,{Toaster:()=>Gn,toast:()=>Xe});module.exports=cn(jn);var i=Zt(require("react")),qe=Zt(require("react-dom"));var{entries:Be,setPrototypeOf:Ie,isFrozen:dn,getPrototypeOf:un,getOwnPropertyDescriptor:fn}=Object,{freeze:k,seal:X,create:Fe}=Object,{apply:de,construct:ue}=typeof Reflect!="undefined"&&Reflect;k||(k=function(n){return n});X||(X=function(n){return n});de||(de=function(n,t,r){return n.apply(t,r)});ue||(ue=function(n,t){return new n(...t)});var Jt=F(Array.prototype.forEach),Me=F(Array.prototype.pop),jt=F(Array.prototype.push),ee=F(String.prototype.toLowerCase),re=F(String.prototype.toString),Ce=F(String.prototype.match),$t=F(String.prototype.replace),mn=F(String.prototype.indexOf),pn=F(String.prototype.trim),tt=F(Object.prototype.hasOwnProperty),B=F(RegExp.prototype.test),Vt=gn(TypeError);function F(a){return function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),u=1;u<t;u++)r[u-1]=arguments[u];return de(a,n,r)}}function gn(a){return function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return ue(a,t)}}function d(a,n){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ee;Ie&&Ie(a,null);let r=n.length;for(;r--;){let u=n[r];if(typeof u=="string"){let E=t(u);E!==u&&(dn(n)||(n[r]=E),u=E)}a[u]=!0}return a}function hn(a){for(let n=0;n<a.length;n++)tt(a,n)||(a[n]=null);return a}function Nt(a){let n=Fe(null);for(let[t,r]of Be(a))tt(a,t)&&(Array.isArray(r)?n[t]=hn(r):r&&typeof r=="object"&&r.constructor===Object?n[t]=Nt(r):n[t]=r);return n}function Qt(a,n){for(;a!==null;){let r=fn(a,n);if(r){if(r.get)return F(r.get);if(typeof r.value=="function")return F(r.value)}a=un(a)}function t(){return null}return t}var Oe=k(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),se=k(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ie=k(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Tn=k(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),le=k(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),bn=k(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ke=k(["#text"]),Pe=k(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),ce=k(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),He=k(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),te=k(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),yn=X(/\{\{[\w\W]*|[\w\W]*\}\}/gm),En=X(/<%[\w\W]*|[\w\W]*%>/gm),xn=X(/\${[\w\W]*}/gm),vn=X(/^data-[\-\w.\u00B7-\uFFFF]/),_n=X(/^aria-[\-\w]+$/),ze=X(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),An=X(/^(?:\w+script|data):/i),wn=X(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),We=X(/^html$/i),Sn=X(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i),Ue=Object.freeze({__proto__:null,MUSTACHE_EXPR:yn,ERB_EXPR:En,TMPLIT_EXPR:xn,DATA_ATTR:vn,ARIA_ATTR:_n,IS_ALLOWED_URI:ze,IS_SCRIPT_OR_DATA:An,ATTR_WHITESPACE:wn,DOCTYPE_NAME:We,CUSTOM_ELEMENT:Sn}),Rn=function(){return typeof window=="undefined"?null:window},Nn=function(n,t){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null,u="data-tt-policy-suffix";t&&t.hasAttribute(u)&&(r=t.getAttribute(u));let E="dompurify"+(r?"#"+r:"");try{return n.createPolicy(E,{createHTML(y){return y},createScriptURL(y){return y}})}catch(y){return console.warn("TrustedTypes policy "+E+" could not be created."),null}};function Ye(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rn(),n=l=>Ye(l);if(n.version="3.0.10",n.removed=[],!a||!a.document||a.document.nodeType!==9)return n.isSupported=!1,n;let{document:t}=a,r=t,u=r.currentScript,{DocumentFragment:E,HTMLTemplateElement:y,Node:w,Element:T,NodeFilter:mt,NamedNodeMap:xt=a.NamedNodeMap||a.MozNamedAttrMap,HTMLFormElement:Dt,DOMParser:Lt,trustedTypes:m}=a,st=T.prototype,Pt=Qt(st,"cloneNode"),Ht=Qt(st,"nextSibling"),Ut=Qt(st,"childNodes"),pt=Qt(st,"parentNode");if(typeof y=="function"){let l=t.createElement("template");l.content&&l.content.ownerDocument&&(t=l.content.ownerDocument)}let R,it="",{implementation:P,createNodeIterator:lt,createDocumentFragment:p,getElementsByTagName:z}=t,{importNode:Bt}=r,O={};n.isSupported=typeof Be=="function"&&typeof pt=="function"&&P&&P.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:N,ERB_EXPR:Z,TMPLIT_EXPR:gt,DATA_ATTR:It,ARIA_ATTR:ct,IS_SCRIPT_OR_DATA:et,ATTR_WHITESPACE:vt,CUSTOM_ELEMENT:W}=Ue,{IS_ALLOWED_URI:nt}=Ue,A=null,b=d({},[...Oe,...se,...ie,...le,...ke]),f=null,D=d({},[...Pe,...ce,...He,...te]),g=Object.seal(Fe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),I=null,x=null,ht=!0,L=!0,Y=!1,Tt=!0,bt=!1,G=!1,Ft=!1,Mt=!1,ot=!1,J=!1,_t=!1,dt=!0,zt=!1,ne="user-content-",Ct=!0,yt=!1,Et={},at=null,Q=d({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Xt=null,Wt=d({},["audio","video","img","source","image","track"]),Ot=null,Yt=d({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),At="http://www.w3.org/1998/Math/MathML",wt="http://www.w3.org/2000/svg",j="http://www.w3.org/1999/xhtml",ut=j,kt=!1,c=null,_=d({},[At,wt,j],re),S=null,$=["application/xhtml+xml","text/html"],V="text/html",h=null,rt=null,Kt=t.createElement("form"),he=function(e){return e instanceof RegExp||e instanceof Function},oe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(rt&&rt===e)){if((!e||typeof e!="object")&&(e={}),e=Nt(e),S=$.indexOf(e.PARSER_MEDIA_TYPE)===-1?V:e.PARSER_MEDIA_TYPE,h=S==="application/xhtml+xml"?re:ee,A=tt(e,"ALLOWED_TAGS")?d({},e.ALLOWED_TAGS,h):b,f=tt(e,"ALLOWED_ATTR")?d({},e.ALLOWED_ATTR,h):D,c=tt(e,"ALLOWED_NAMESPACES")?d({},e.ALLOWED_NAMESPACES,re):_,Ot=tt(e,"ADD_URI_SAFE_ATTR")?d(Nt(Yt),e.ADD_URI_SAFE_ATTR,h):Yt,Xt=tt(e,"ADD_DATA_URI_TAGS")?d(Nt(Wt),e.ADD_DATA_URI_TAGS,h):Wt,at=tt(e,"FORBID_CONTENTS")?d({},e.FORBID_CONTENTS,h):Q,I=tt(e,"FORBID_TAGS")?d({},e.FORBID_TAGS,h):{},x=tt(e,"FORBID_ATTR")?d({},e.FORBID_ATTR,h):{},Et=tt(e,"USE_PROFILES")?e.USE_PROFILES:!1,ht=e.ALLOW_ARIA_ATTR!==!1,L=e.ALLOW_DATA_ATTR!==!1,Y=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Tt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,bt=e.SAFE_FOR_TEMPLATES||!1,G=e.WHOLE_DOCUMENT||!1,ot=e.RETURN_DOM||!1,J=e.RETURN_DOM_FRAGMENT||!1,_t=e.RETURN_TRUSTED_TYPE||!1,Mt=e.FORCE_BODY||!1,dt=e.SANITIZE_DOM!==!1,zt=e.SANITIZE_NAMED_PROPS||!1,Ct=e.KEEP_CONTENT!==!1,yt=e.IN_PLACE||!1,nt=e.ALLOWED_URI_REGEXP||ze,ut=e.NAMESPACE||j,g=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&he(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(g.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&he(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(g.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(g.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),bt&&(L=!1),J&&(ot=!0),Et&&(A=d({},ke),f=[],Et.html===!0&&(d(A,Oe),d(f,Pe)),Et.svg===!0&&(d(A,se),d(f,ce),d(f,te)),Et.svgFilters===!0&&(d(A,ie),d(f,ce),d(f,te)),Et.mathMl===!0&&(d(A,le),d(f,He),d(f,te))),e.ADD_TAGS&&(A===b&&(A=Nt(A)),d(A,e.ADD_TAGS,h)),e.ADD_ATTR&&(f===D&&(f=Nt(f)),d(f,e.ADD_ATTR,h)),e.ADD_URI_SAFE_ATTR&&d(Ot,e.ADD_URI_SAFE_ATTR,h),e.FORBID_CONTENTS&&(at===Q&&(at=Nt(at)),d(at,e.FORBID_CONTENTS,h)),Ct&&(A["#text"]=!0),G&&d(A,["html","head","body"]),A.table&&(d(A,["tbody"]),delete I.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Vt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Vt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');R=e.TRUSTED_TYPES_POLICY,it=R.createHTML("")}else R===void 0&&(R=Nn(m,u)),R!==null&&typeof it=="string"&&(it=R.createHTML(""));k&&k(e),rt=e}},Te=d({},["mi","mo","mn","ms","mtext"]),be=d({},["foreignobject","desc","title","annotation-xml"]),Je=d({},["title","style","font","a","script"]),ye=d({},[...se,...ie,...Tn]),Ee=d({},[...le,...bn]),Qe=function(e){let o=pt(e);(!o||!o.tagName)&&(o={namespaceURI:ut,tagName:"template"});let s=ee(e.tagName),v=ee(o.tagName);return c[e.namespaceURI]?e.namespaceURI===wt?o.namespaceURI===j?s==="svg":o.namespaceURI===At?s==="svg"&&(v==="annotation-xml"||Te[v]):!!ye[s]:e.namespaceURI===At?o.namespaceURI===j?s==="math":o.namespaceURI===wt?s==="math"&&be[v]:!!Ee[s]:e.namespaceURI===j?o.namespaceURI===wt&&!be[v]||o.namespaceURI===At&&!Te[v]?!1:!Ee[s]&&(Je[s]||!ye[s]):!!(S==="application/xhtml+xml"&&c[e.namespaceURI]):!1},St=function(e){jt(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(o){e.remove()}},ae=function(e,o){try{jt(n.removed,{attribute:o.getAttributeNode(e),from:o})}catch(s){jt(n.removed,{attribute:null,from:o})}if(o.removeAttribute(e),e==="is"&&!f[e])if(ot||J)try{St(o)}catch(s){}else try{o.setAttribute(e,"")}catch(s){}},xe=function(e){let o=null,s=null;if(Mt)e="<remove></remove>"+e;else{let C=Ce(e,/^[\r\n\t ]+/);s=C&&C[0]}S==="application/xhtml+xml"&&ut===j&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let v=R?R.createHTML(e):e;if(ut===j)try{o=new Lt().parseFromString(v,S)}catch(C){}if(!o||!o.documentElement){o=P.createDocument(ut,"template",null);try{o.documentElement.innerHTML=kt?it:v}catch(C){}}let M=o.body||o.documentElement;return e&&s&&M.insertBefore(t.createTextNode(s),M.childNodes[0]||null),ut===j?z.call(o,G?"html":"body")[0]:G?o.documentElement:M},ve=function(e){return lt.call(e.ownerDocument||e,e,mt.SHOW_ELEMENT|mt.SHOW_COMMENT|mt.SHOW_TEXT|mt.SHOW_PROCESSING_INSTRUCTION,null)},tn=function(e){return e instanceof Dt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof xt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},_e=function(e){return typeof w=="function"&&e instanceof w},ft=function(e,o,s){O[e]&&Jt(O[e],v=>{v.call(n,o,s,rt)})},Ae=function(e){let o=null;if(ft("beforeSanitizeElements",e,null),tn(e))return St(e),!0;let s=h(e.nodeName);if(ft("uponSanitizeElement",e,{tagName:s,allowedTags:A}),e.hasChildNodes()&&!_e(e.firstElementChild)&&B(/<[/\w]/g,e.innerHTML)&&B(/<[/\w]/g,e.textContent))return St(e),!0;if(!A[s]||I[s]){if(!I[s]&&Se(s)&&(g.tagNameCheck instanceof RegExp&&B(g.tagNameCheck,s)||g.tagNameCheck instanceof Function&&g.tagNameCheck(s)))return!1;if(Ct&&!at[s]){let v=pt(e)||e.parentNode,M=Ut(e)||e.childNodes;if(M&&v){let C=M.length;for(let H=C-1;H>=0;--H)v.insertBefore(Pt(M[H],!0),Ht(e))}}return St(e),!0}return e instanceof T&&!Qe(e)||(s==="noscript"||s==="noembed"||s==="noframes")&&B(/<\/no(script|embed|frames)/i,e.innerHTML)?(St(e),!0):(bt&&e.nodeType===3&&(o=e.textContent,Jt([N,Z,gt],v=>{o=$t(o,v," ")}),e.textContent!==o&&(jt(n.removed,{element:e.cloneNode()}),e.textContent=o)),ft("afterSanitizeElements",e,null),!1)},we=function(e,o,s){if(dt&&(o==="id"||o==="name")&&(s in t||s in Kt))return!1;if(!(L&&!x[o]&&B(It,o))){if(!(ht&&B(ct,o))){if(!f[o]||x[o]){if(!(Se(e)&&(g.tagNameCheck instanceof RegExp&&B(g.tagNameCheck,e)||g.tagNameCheck instanceof Function&&g.tagNameCheck(e))&&(g.attributeNameCheck instanceof RegExp&&B(g.attributeNameCheck,o)||g.attributeNameCheck instanceof Function&&g.attributeNameCheck(o))||o==="is"&&g.allowCustomizedBuiltInElements&&(g.tagNameCheck instanceof RegExp&&B(g.tagNameCheck,s)||g.tagNameCheck instanceof Function&&g.tagNameCheck(s))))return!1}else if(!Ot[o]){if(!B(nt,$t(s,vt,""))){if(!((o==="src"||o==="xlink:href"||o==="href")&&e!=="script"&&mn(s,"data:")===0&&Xt[e])){if(!(Y&&!B(et,$t(s,vt,"")))){if(s)return!1}}}}}}return!0},Se=function(e){return e!=="annotation-xml"&&Ce(e,W)},Re=function(e){ft("beforeSanitizeAttributes",e,null);let{attributes:o}=e;if(!o)return;let s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:f},v=o.length;for(;v--;){let M=o[v],{name:C,namespaceURI:H,value:Rt}=M,Gt=h(C),U=C==="value"?Rt:pn(Rt);if(s.attrName=Gt,s.attrValue=U,s.keepAttr=!0,s.forceKeepAttr=void 0,ft("uponSanitizeAttribute",e,s),U=s.attrValue,s.forceKeepAttr||(ae(C,e),!s.keepAttr))continue;if(!Tt&&B(/\/>/i,U)){ae(C,e);continue}bt&&Jt([N,Z,gt],De=>{U=$t(U,De," ")});let Ne=h(e.nodeName);if(we(Ne,Gt,U)){if(zt&&(Gt==="id"||Gt==="name")&&(ae(C,e),U=ne+U),R&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!H)switch(m.getAttributeType(Ne,Gt)){case"TrustedHTML":{U=R.createHTML(U);break}case"TrustedScriptURL":{U=R.createScriptURL(U);break}}try{H?e.setAttributeNS(H,C,U):e.setAttribute(C,U),Me(n.removed)}catch(De){}}}ft("afterSanitizeAttributes",e,null)},en=function l(e){let o=null,s=ve(e);for(ft("beforeSanitizeShadowDOM",e,null);o=s.nextNode();)ft("uponSanitizeShadowNode",o,null),!Ae(o)&&(o.content instanceof E&&l(o.content),Re(o));ft("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(l){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=null,s=null,v=null,M=null;if(kt=!l,kt&&(l="<!-->"),typeof l!="string"&&!_e(l))if(typeof l.toString=="function"){if(l=l.toString(),typeof l!="string")throw Vt("dirty is not a string, aborting")}else throw Vt("toString is not a function");if(!n.isSupported)return l;if(Ft||oe(e),n.removed=[],typeof l=="string"&&(yt=!1),yt){if(l.nodeName){let Rt=h(l.nodeName);if(!A[Rt]||I[Rt])throw Vt("root node is forbidden and cannot be sanitized in-place")}}else if(l instanceof w)o=xe("<!---->"),s=o.ownerDocument.importNode(l,!0),s.nodeType===1&&s.nodeName==="BODY"||s.nodeName==="HTML"?o=s:o.appendChild(s);else{if(!ot&&!bt&&!G&&l.indexOf("<")===-1)return R&&_t?R.createHTML(l):l;if(o=xe(l),!o)return ot?null:_t?it:""}o&&Mt&&St(o.firstChild);let C=ve(yt?l:o);for(;v=C.nextNode();)Ae(v)||(v.content instanceof E&&en(v.content),Re(v));if(yt)return l;if(ot){if(J)for(M=p.call(o.ownerDocument);o.firstChild;)M.appendChild(o.firstChild);else M=o;return(f.shadowroot||f.shadowrootmode)&&(M=Bt.call(r,M,!0)),M}let H=G?o.outerHTML:o.innerHTML;return G&&A["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&B(We,o.ownerDocument.doctype.name)&&(H="<!DOCTYPE "+o.ownerDocument.doctype.name+`> | ||
`+H),bt&&Jt([N,Z,gt],Rt=>{H=$t(H,Rt," ")}),R&&_t?R.createHTML(H):H},n.setConfig=function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};oe(l),Ft=!0},n.clearConfig=function(){rt=null,Ft=!1},n.isValidAttribute=function(l,e,o){rt||oe({});let s=h(l),v=h(e);return we(s,v,o)},n.addHook=function(l,e){typeof e=="function"&&(O[l]=O[l]||[],jt(O[l],e))},n.removeHook=function(l){if(O[l])return Me(O[l])},n.removeHooks=function(l){O[l]&&(O[l]=[])},n.removeAllHooks=function(){O={}},n}var Ge=Ye();var K=Zt(require("react")),je=a=>{switch(a){case"success":return Ln;case"info":return Mn;case"warning":return In;case"error":return Cn;default:return null}},Dn=Array(12).fill(0),$e=({visible:a})=>K.default.createElement("div",{className:"sonner-loading-wrapper","data-visible":a},K.default.createElement("div",{className:"sonner-spinner"},Dn.map((n,t)=>K.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),Ln=K.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.default.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"})),In=K.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},K.default.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"})),Mn=K.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.default.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"})),Cn=K.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.default.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"}));var fe=Zt(require("react")),Ve=()=>{let[a,n]=fe.default.useState(!1);return fe.default.useEffect(()=>{let t=()=>{n(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)},[]),a};var me=1,pe=class{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{let t=this.subscribers.indexOf(n);this.subscribers.splice(t,1)});this.publish=n=>{this.subscribers.forEach(t=>t(n))};this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]};this.create=n=>{var w;let{message:t,...r}=n,u=typeof(n==null?void 0:n.id)=="number"||((w=n.id)==null?void 0:w.length)>0?n.id:me++,E=this.toasts.find(T=>T.id===u),y=n.dismissible===void 0?!0:n.dismissible;return E?this.toasts=this.toasts.map(T=>T.id===u?(this.publish({...T,...n,id:u,title:t}),{...T,...n,id:u,dismissible:y,title:t}):T):this.addToast({title:t,...r,dismissible:y,id:u}),u};this.dismiss=n=>(n||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:n,dismiss:!0})),n);this.message=(n,t)=>this.create({...t,message:n});this.error=(n,t)=>this.create({...t,message:n,type:"error"});this.success=(n,t)=>this.create({...t,type:"success",message:n});this.info=(n,t)=>this.create({...t,type:"info",message:n});this.warning=(n,t)=>this.create({...t,type:"warning",message:n});this.loading=(n,t)=>this.create({...t,type:"loading",message:n});this.promise=(n,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:n,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let u=n instanceof Promise?n:n(),E=r!==void 0;return u.then(y=>{if(y&&typeof y.ok=="boolean"&&!y.ok){E=!1;let w=typeof t.error=="function"?t.error(`HTTP error! status: ${y.status}`):t.error,T=typeof t.description=="function"?t.description(`HTTP error! status: ${y.status}`):t.description;this.create({id:r,type:"error",message:w,description:T})}else if(t.success!==void 0){E=!1;let w=typeof t.success=="function"?t.success(y):t.success,T=typeof t.description=="function"?t.description(y):t.description;this.create({id:r,type:"success",message:w,description:T})}}).catch(y=>{if(t.error!==void 0){E=!1;let w=typeof t.error=="function"?t.error(y):t.error,T=typeof t.description=="function"?t.description(y):t.description;this.create({id:r,type:"error",message:w,description:T})}}).finally(()=>{var y;E&&(this.dismiss(r),r=void 0),(y=t.finally)==null||y.call(t)}),r};this.custom=(n,t)=>{let r=(t==null?void 0:t.id)||me++;return this.create({jsx:n(r),id:r,...t}),r};this.subscribers=[],this.toasts=[]}},q=new pe,On=(a,n)=>{let t=(n==null?void 0:n.id)||me++;return q.addToast({title:a,...n,id:t}),t},kn=On,Xe=Object.assign(kn,{success:q.success,info:q.info,warning:q.warning,error:q.error,custom:q.custom,message:q.message,promise:q.promise,dismiss:q.dismiss,loading:q.loading});function ge(a,{insertAt:n}={}){if(!a||typeof document=="undefined")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",n==="top"&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a))}ge(`html[dir=ltr],[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%)}html[dir=rtl],[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%)}[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}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[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}[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}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [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}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left: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;background:var(--gray1);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]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[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)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);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-border: hsl(0, 0%, 20%);--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%);--error-text: hsl(358, 100%, 81%)}[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%)} | ||
`);var Pn=3,Hn="32px",Un=4e3,Bn=356,Ze=14,Fn=20,zn=200;function Wn(...a){return a.filter(Boolean).join(" ")}var Yn=a=>{var Ot,Yt,At,wt,j,ut,kt;let{invert:n,toast:t,unstyled:r,interacting:u,setHeights:E,visibleToasts:y,heights:w,index:T,toasts:mt,expanded:xt,removeToast:Dt,closeButton:Lt,style:m,cancelButtonStyle:st,actionButtonStyle:Pt,className:Ht="",descriptionClassName:Ut="",duration:pt,position:R,gap:it=Ze,loadingIcon:P,expandByDefault:lt,classNames:p,icons:z,closeButtonAriaLabel:Bt="Close toast",pauseWhenPageIsHidden:O,cn:N}=a,[Z,gt]=i.default.useState(!1),[It,ct]=i.default.useState(!1),[et,vt]=i.default.useState(!1),[W,nt]=i.default.useState(!1),[A,b]=i.default.useState(0),[f,D]=i.default.useState(0),g=i.default.useRef(null),I=i.default.useRef(null),x=T===0,ht=T+1<=y,L=t.type,Y=t.dismissible!==!1,Tt=t.className||"",bt=t.descriptionClassName||"",G=i.default.useMemo(()=>w.findIndex(c=>c.toastId===t.id)||0,[w,t.id]),Ft=i.default.useMemo(()=>{var c;return(c=t.closeButton)!=null?c:Lt},[t.closeButton,Lt]),Mt=i.default.useMemo(()=>t.duration||pt||Un,[t.duration,pt]),ot=i.default.useRef(0),J=i.default.useRef(0),_t=i.default.useRef(0),dt=i.default.useRef(null),[zt,ne]=R.split("-"),Ct=i.default.useMemo(()=>w.reduce((c,_,S)=>S>=G?c:c+_.height,0),[w,G]),yt=Ve(),Et=t.invert||n,at=L==="loading";J.current=i.default.useMemo(()=>G*it+Ct,[G,Ct]),i.default.useEffect(()=>{gt(!0)},[]),i.default.useLayoutEffect(()=>{if(!Z)return;let c=I.current,_=c.style.height;c.style.height="auto";let S=c.getBoundingClientRect().height;c.style.height=_,D(S),E($=>$.find(h=>h.toastId===t.id)?$.map(h=>h.toastId===t.id?{...h,height:S}:h):[{toastId:t.id,height:S,position:t.position},...$])},[Z,t.title,t.description,E,t.id]);let Q=i.default.useCallback(()=>{ct(!0),b(J.current),E(c=>c.filter(_=>_.toastId!==t.id)),setTimeout(()=>{Dt(t)},zn)},[t,Dt,E,J]);i.default.useEffect(()=>{if(t.promise&&L==="loading"||t.duration===1/0||t.type==="loading")return;let c,_=Mt;return xt||u||O&&yt?(()=>{if(_t.current<ot.current){let V=new Date().getTime()-ot.current;_=_-V}_t.current=new Date().getTime()})():(()=>{ot.current=new Date().getTime(),c=setTimeout(()=>{var V;(V=t.onAutoClose)==null||V.call(t,t),Q()},_)})(),()=>clearTimeout(c)},[xt,u,lt,t,Mt,Q,t.promise,L,O,yt]),i.default.useEffect(()=>{let c=I.current;if(c){let _=c.getBoundingClientRect().height;return D(_),E(S=>[{toastId:t.id,height:_,position:t.position},...S]),()=>E(S=>S.filter($=>$.toastId!==t.id))}},[E,t.id]),i.default.useEffect(()=>{t.delete&&Q()},[Q,t.delete]);function Xt(){return z!=null&&z.loading?i.default.createElement("div",{className:"sonner-loader","data-visible":L==="loading"},z.loading):P?i.default.createElement("div",{className:"sonner-loader","data-visible":L==="loading"},P):i.default.createElement($e,{visible:L==="loading"})}function Wt(c){return{__html:Ge.sanitize(c)}}return i.default.createElement("li",{"aria-live":t.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:I,className:N(Ht,Tt,p==null?void 0:p.toast,(Ot=t==null?void 0:t.classNames)==null?void 0:Ot.toast,p==null?void 0:p.default,p==null?void 0:p[L],(Yt=t==null?void 0:t.classNames)==null?void 0:Yt[L]),"data-sonner-toast":"","data-styled":!(t.jsx||t.unstyled||r),"data-mounted":Z,"data-promise":!!t.promise,"data-removed":It,"data-visible":ht,"data-y-position":zt,"data-x-position":ne,"data-index":T,"data-front":x,"data-swiping":et,"data-dismissible":Y,"data-type":L,"data-invert":Et,"data-swipe-out":W,"data-expanded":!!(xt||lt&&Z),style:{"--index":T,"--toasts-before":T,"--z-index":mt.length-T,"--offset":`${It?A:J.current}px`,"--initial-height":lt?"auto":`${f}px`,...m,...t.style},onPointerDown:c=>{at||!Y||(g.current=new Date,b(J.current),c.target.setPointerCapture(c.pointerId),c.target.tagName!=="BUTTON"&&(vt(!0),dt.current={x:c.clientX,y:c.clientY}))},onPointerUp:()=>{var $,V,h,rt;if(W||!Y)return;dt.current=null;let c=Number((($=I.current)==null?void 0:$.style.getPropertyValue("--swipe-amount").replace("px",""))||0),_=new Date().getTime()-((V=g.current)==null?void 0:V.getTime()),S=Math.abs(c)/_;if(Math.abs(c)>=Fn||S>.11){b(J.current),(h=t.onDismiss)==null||h.call(t,t),Q(),nt(!0);return}(rt=I.current)==null||rt.style.setProperty("--swipe-amount","0px"),vt(!1)},onPointerMove:c=>{var Kt;if(!dt.current||!Y)return;let _=c.clientY-dt.current.y,S=c.clientX-dt.current.x,V=(zt==="top"?Math.min:Math.max)(0,_),h=c.pointerType==="touch"?10:2;Math.abs(V)>h?(Kt=I.current)==null||Kt.style.setProperty("--swipe-amount",`${_}px`):Math.abs(S)>h&&(dt.current=null)}},Ft&&!t.jsx?i.default.createElement("button",{"aria-label":Bt,"data-disabled":at,"data-close-button":!0,onClick:at||!Y?()=>{}:()=>{var c;Q(),(c=t.onDismiss)==null||c.call(t,t)},className:N(p==null?void 0:p.closeButton,(At=t==null?void 0:t.classNames)==null?void 0:At.closeButton)},i.default.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"},i.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,t.jsx||i.default.isValidElement(t.title)?t.jsx||t.title:i.default.createElement(i.default.Fragment,null,L||t.icon||t.promise?i.default.createElement("div",{"data-icon":"",className:N(p==null?void 0:p.icon)},t.promise||t.type==="loading"&&!t.icon?t.icon||Xt():null,t.type!=="loading"?t.icon||(z==null?void 0:z[L])||je(L):null):null,i.default.createElement("div",{"data-content":"",className:N(p==null?void 0:p.content)},i.default.createElement("div",{"data-title":"",className:N(p==null?void 0:p.title,(wt=t==null?void 0:t.classNames)==null?void 0:wt.title),dangerouslySetInnerHTML:Wt(t.title)}),t.description?i.default.createElement("div",{"data-description":"",className:N(Ut,bt,p==null?void 0:p.description,(j=t==null?void 0:t.classNames)==null?void 0:j.description),dangerouslySetInnerHTML:Wt(t.description)}):null),t.cancel?i.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:t.cancelButtonStyle||st,onClick:c=>{var _;Y&&(Q(),(_=t.cancel)!=null&&_.onClick&&t.cancel.onClick(c))},className:N(p==null?void 0:p.cancelButton,(ut=t==null?void 0:t.classNames)==null?void 0:ut.cancelButton)},t.cancel.label):null,t.action?i.default.createElement("button",{"data-button":"",style:t.actionButtonStyle||Pt,onClick:c=>{var _;(_=t.action)==null||_.onClick(c),!c.defaultPrevented&&Q()},className:N(p==null?void 0:p.actionButton,(kt=t==null?void 0:t.classNames)==null?void 0:kt.actionButton)},t.action.label):null))};function Ke(){if(typeof window=="undefined"||typeof document=="undefined")return"ltr";let a=document.documentElement.getAttribute("dir");return a==="auto"||!a?window.getComputedStyle(document.documentElement).direction:a}var Gn=a=>{let{invert:n,position:t="bottom-right",hotkey:r=["altKey","KeyT"],expand:u,closeButton:E,className:y,offset:w,theme:T="light",richColors:mt,duration:xt,style:Dt,visibleToasts:Lt=Pn,toastOptions:m,dir:st=Ke(),gap:Pt,loadingIcon:Ht,icons:Ut,containerAriaLabel:pt="Notifications",pauseWhenPageIsHidden:R,cn:it=Wn}=a,[P,lt]=i.default.useState([]),p=i.default.useMemo(()=>Array.from(new Set([t].concat(P.filter(b=>b.position).map(b=>b.position)))),[P,t]),[z,Bt]=i.default.useState([]),[O,N]=i.default.useState(!1),[Z,gt]=i.default.useState(!1),[It,ct]=i.default.useState(T!=="system"?T:typeof window!="undefined"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),et=i.default.useRef(null),vt=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),W=i.default.useRef(null),nt=i.default.useRef(!1),A=i.default.useCallback(b=>lt(f=>f.filter(({id:D})=>D!==b.id)),[]);return i.default.useEffect(()=>q.subscribe(b=>{if(b.dismiss){lt(f=>f.map(D=>D.id===b.id?{...D,delete:!0}:D));return}setTimeout(()=>{qe.default.flushSync(()=>{lt(f=>{let D=f.findIndex(g=>g.id===b.id);return D!==-1?[...f.slice(0,D),{...f[D],...b},...f.slice(D+1)]:[b,...f]})})})}),[]),i.default.useEffect(()=>{if(T!=="system"){ct(T);return}T==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ct("dark"):ct("light")),typeof window!="undefined"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:b})=>{ct(b?"dark":"light")})},[T]),i.default.useEffect(()=>{P.length<=1&&N(!1)},[P]),i.default.useEffect(()=>{let b=f=>{var g,I;r.every(x=>f[x]||f.code===x)&&(N(!0),(g=et.current)==null||g.focus()),f.code==="Escape"&&(document.activeElement===et.current||(I=et.current)!=null&&I.contains(document.activeElement))&&N(!1)};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),i.default.useEffect(()=>{if(et.current)return()=>{W.current&&(W.current.focus({preventScroll:!0}),W.current=null,nt.current=!1)}},[et.current]),P.length?i.default.createElement("section",{"aria-label":`${pt} ${vt}`,tabIndex:-1},p.map((b,f)=>{var I;let[D,g]=b.split("-");return i.default.createElement("ol",{key:b,dir:st==="auto"?Ke():st,tabIndex:-1,ref:et,className:y,"data-sonner-toaster":!0,"data-theme":It,"data-rich-colors":mt,"data-y-position":D,"data-x-position":g,style:{"--front-toast-height":`${((I=z[0])==null?void 0:I.height)||0}px`,"--offset":typeof w=="number"?`${w}px`:w||Hn,"--width":`${Bn}px`,"--gap":`${Ze}px`,...Dt},onBlur:x=>{nt.current&&!x.currentTarget.contains(x.relatedTarget)&&(nt.current=!1,W.current&&(W.current.focus({preventScroll:!0}),W.current=null))},onFocus:x=>{x.target instanceof HTMLElement&&x.target.dataset.dismissible==="false"||nt.current||(nt.current=!0,W.current=x.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{Z||N(!1)},onPointerDown:x=>{x.target instanceof HTMLElement&&x.target.dataset.dismissible==="false"||gt(!0)},onPointerUp:()=>gt(!1)},P.filter(x=>!x.position&&f===0||x.position===b).map((x,ht)=>{var L,Y;return i.default.createElement(Yn,{key:x.id,icons:Ut,index:ht,toast:x,duration:(L=m==null?void 0:m.duration)!=null?L:xt,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:Lt,closeButton:(Y=m==null?void 0:m.closeButton)!=null?Y:E,interacting:Z,position:b,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:A,toasts:P.filter(Tt=>Tt.position==x.position),heights:z.filter(Tt=>Tt.position==x.position),setHeights:Bt,expandByDefault:u,gap:Pt,loadingIcon:Ht,expanded:O,pauseWhenPageIsHidden:R,cn:it})}))})):null};0&&(module.exports={Toaster,toast}); | ||
/*! Bundled license information: | ||
dompurify/dist/purify.es.mjs: | ||
(*! @license DOMPurify 3.0.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.10/LICENSE *) | ||
*/ | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "sonner", | ||
"version": "1.4.3", | ||
"version": "1.4.31", | ||
"description": "An opinionated toast component for React.", | ||
@@ -41,4 +41,6 @@ "exports": { | ||
"@playwright/test": "^1.30.0", | ||
"@types/dompurify": "^3.0.5", | ||
"@types/node": "^18.11.13", | ||
"@types/react": "^18.0.26", | ||
"dompurify": "^3.0.9", | ||
"prettier": "^2.8.4", | ||
@@ -45,0 +47,0 @@ "react": "^18.2.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
431589
514
11
8