currency_contry_exchange 1.6.2 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.cjs CHANGED
@@ -1,7 +1,7 @@
1
- "use strict";var qt=Object.defineProperty;var Ut=(e,t,n)=>t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Me=(e,t,n)=>Ut(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Nt={pe:{cliente:"Cedente",clientes:"Cedentes",deudor:"Aceptante",deudores:"Aceptantes",rut:"RUC","rut cliente":"RUC Cedente",iva:"IGV",region:"Departamento",comuna:"Distrito",dicom:"Sentinel",documento:"Documento",sii:"SUNAT",anfac:"APEFAC",sbif:"RCC"},cl:{cliente:"Cliente",deudor:"Deudor",clientes:"Clientes",deudores:"Deudores",rut:"RUT","rut cliente":"RUT Cliente",iva:"IVA",region:"Región",comuna:"Comuna",dicom:"Dicom",documento:"RUT",sii:"SII",anfac:"ANFAC",sbif:"SBIF"},"":{cliente:"Cliente",deudor:"Deudor",clientes:"Clientes",deudores:"Deudores",rut:"RUT","rut cliente":"RUT Cliente",iva:"IVA",region:"Región",comuna:"Comuna",dicom:"Dicom",documento:"RUT",sii:"SII",anfac:"ANFAC",sbif:"SBIF"}},ye={euro:"EUR"},De={thousandSeparator:",",decimalSeparator:"."},He={thousandSeparator:".",decimalSeparator:","},je={pe:"pe",cl:"cl"},Wt={pe:"USD",cl:"","":""},T=e=>{const t=e==null?void 0:e.toLocaleLowerCase().trim();return t==je.pe||t==je.cl?t:""},_t={pe:({amount:e="",typeCurrenzy:t=""})=>t==ye.euro?e==null?void 0:e.replaceAll(".","").replaceAll(",","."):e==null?void 0:e.replaceAll(",",""),cl:({amount:e=""})=>e==null?void 0:e.replaceAll(".","").replaceAll(",","."),"":({amount:e=""})=>e==null?void 0:e.replaceAll(".","").replaceAll(",","")},Kt={cl:({currenzy:e=""})=>te({currenzy:e,decimal:",",miles:"."}),pe:({currenzy:e="",typeCurrenzy:t=""})=>t==ye.euro?te({currenzy:e,decimal:",",miles:"."}):te({currenzy:e,decimal:".",miles:","}),"":({currenzy:e=""})=>te({currenzy:e,decimal:".",miles:","})},te=({currenzy:e,decimal:t,miles:n})=>{var d;const s=e.toString().split("."),r=s[0],a=(((d=s[1])==null?void 0:d.length)==1?`${s[1]}0`:s[1])||"00";return`${r.replace(/\B(?=(\d{3})+(?!\d))/g,n)}${a==""?"":t}${a}`},pe={pe:({decimalScale:e=2,fixedDecimalScale:t=2})=>({...De,decimalScale:e,fixedDecimalScale:t}),cl:({typeCurrenzy:e="",decimalScale:t=0,fixedDecimalScale:n=0})=>e==ye.euro?{...De,decimalScale:t!=0?t:2,fixedDecimalScale:n!=0?n:2}:{...He,decimalScale:t,fixedDecimalScale:n},"":({decimalScale:e=0,fixedDecimalScale:t=0})=>({...He,decimalScale:e,fixedDecimalScale:t})},Yt={pe:e=>e<2e10,cl:e=>e<3e7,"":e=>e<3e7};/*!
1
+ "use strict";var qt=Object.defineProperty;var Ut=(e,t,n)=>t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Me=(e,t,n)=>Ut(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Nt={pe:{cliente:"Cedente",clientes:"Cedentes",deudor:"Aceptante",deudores:"Aceptantes",rut:"RUC","rut cliente":"RUC Cedente",iva:"IGV",region:"Departamento",comuna:"Distrito",dicom:"Sentinel",documento:"Documento",sii:"SUNAT",anfac:"APEFAC",sbif:"RCC"},cl:{cliente:"Cliente",deudor:"Deudor",clientes:"Clientes",deudores:"Deudores",rut:"RUT","rut cliente":"RUT Cliente",iva:"IVA",region:"Región",comuna:"Comuna",dicom:"Dicom",documento:"RUT",sii:"SII",anfac:"ANFAC",sbif:"SBIF"},"":{cliente:"Cliente",deudor:"Deudor",clientes:"Clientes",deudores:"Deudores",rut:"RUT","rut cliente":"RUT Cliente",iva:"IVA",region:"Región",comuna:"Comuna",dicom:"Dicom",documento:"RUT",sii:"SII",anfac:"ANFAC",sbif:"SBIF"}},ye={euro:"EUR"},De={thousandSeparator:",",decimalSeparator:"."},He={thousandSeparator:".",decimalSeparator:","},je={pe:"pe",cl:"cl"},Wt={pe:"USD",cl:"","":""},E=e=>{const t=e==null?void 0:e.toLocaleLowerCase().trim();return t==je.pe||t==je.cl?t:""},_t={pe:({amount:e="",typeCurrenzy:t=""})=>t==ye.euro?e==null?void 0:e.replaceAll(".","").replaceAll(",","."):e==null?void 0:e.replaceAll(",",""),cl:({amount:e=""})=>e==null?void 0:e.replaceAll(".","").replaceAll(",","."),"":({amount:e=""})=>e==null?void 0:e.replaceAll(".","").replaceAll(",","")},Kt={cl:({currenzy:e=""})=>te({currenzy:e,decimal:",",miles:"."}),pe:({currenzy:e="",typeCurrenzy:t=""})=>t==ye.euro?te({currenzy:e,decimal:",",miles:"."}):te({currenzy:e,decimal:".",miles:","}),"":({currenzy:e=""})=>te({currenzy:e,decimal:".",miles:","})},te=({currenzy:e,decimal:t,miles:n})=>{var d;const s=e.toString().split("."),r=s[0],a=(((d=s[1])==null?void 0:d.length)==1?`${s[1]}0`:s[1])||"00";return`${r.replace(/\B(?=(\d{3})+(?!\d))/g,n)}${a==""?"":t}${a}`},Yt=e=>{let t=e.toUpperCase().replace(/[^A-Z0-9-]/g,"");const n=t.split("-");n.length>1&&(t=`${n[0]}-${n.slice(1).join("")}`),t.length>4&&!t.includes("-")&&(t=`${t.substring(0,4)}-${t.substring(4)}`);const o=t.indexOf("-");if(o>-1&&o>4){const s=t.replace(/-/g,"");t=`${s.substring(0,4)}-${s.substring(4)}`}else o===-1&&t.length>4&&(t=`${t.substring(0,4)}-${t.substring(4)}`);return t},Zt={pe:(e="")=>Yt(e),cl:(e="")=>e,"":(e="")=>e},pe={pe:({decimalScale:e=2,fixedDecimalScale:t=2})=>({...De,decimalScale:e,fixedDecimalScale:t}),cl:({typeCurrenzy:e="",decimalScale:t=0,fixedDecimalScale:n=0})=>e==ye.euro?{...De,decimalScale:t!=0?t:2,fixedDecimalScale:n!=0?n:2}:{...He,decimalScale:t,fixedDecimalScale:n},"":({decimalScale:e=0,fixedDecimalScale:t=0})=>({...He,decimalScale:e,fixedDecimalScale:t})},Xt={pe:e=>e<2e10,cl:e=>e<3e7,"":e=>e<3e7};/*!
2
2
  * sweetalert2 v11.14.1
3
3
  * Released under the MIT License.
4
- */function Je(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Zt(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ze(e,t){return e.get(Je(e,t))}function Xt(e,t,n){Zt(e,t),t.set(e,n)}function Gt(e,t,n){return e.set(Je(e,t),n),n}const Jt=100,l={},Qt=()=>{l.previousActiveElement instanceof HTMLElement?(l.previousActiveElement.focus(),l.previousActiveElement=null):document.body&&document.body.focus()},en=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,o=window.scrollY;l.restoreFocusTimeout=setTimeout(()=>{Qt(),t()},Jt),window.scrollTo(n,o)}),Qe="swal2-",tn=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"],i=tn.reduce((e,t)=>(e[t]=Qe+t,e),{}),nn=["success","warning","info","question","error"],oe=nn.reduce((e,t)=>(e[t]=Qe+t,e),{}),et="SweetAlert2:",ve=e=>e.charAt(0).toUpperCase()+e.slice(1),y=e=>{console.warn(`${et} ${typeof e=="object"?e.join(" "):e}`)},z=e=>{console.error(`${et} ${e}`)},Fe=[],on=e=>{Fe.includes(e)||(Fe.push(e),y(e))},tt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;on(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},ce=e=>typeof e=="function"?e():e,Ce=e=>e&&typeof e.toPromise=="function",K=e=>Ce(e)?e.toPromise():Promise.resolve(e),xe=e=>e&&Promise.resolve(e)===e,v=()=>document.body.querySelector(`.${i.container}`),Y=e=>{const t=v();return t?t.querySelector(e):null},x=e=>Y(`.${e}`),w=()=>x(i.popup),Z=()=>x(i.icon),sn=()=>x(i["icon-content"]),nt=()=>x(i.title),ke=()=>x(i["html-container"]),ot=()=>x(i.image),Ae=()=>x(i["progress-steps"]),de=()=>x(i["validation-message"]),B=()=>Y(`.${i.actions} .${i.confirm}`),N=()=>Y(`.${i.actions} .${i.cancel}`),F=()=>Y(`.${i.actions} .${i.deny}`),rn=()=>x(i["input-label"]),W=()=>Y(`.${i.loader}`),X=()=>x(i.actions),st=()=>x(i.footer),ue=()=>x(i["timer-progress-bar"]),Ee=()=>x(i.close),an=`
4
+ */function Je(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Gt(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ze(e,t){return e.get(Je(e,t))}function Jt(e,t,n){Gt(e,t),t.set(e,n)}function Qt(e,t,n){return e.set(Je(e,t),n),n}const en=100,l={},tn=()=>{l.previousActiveElement instanceof HTMLElement?(l.previousActiveElement.focus(),l.previousActiveElement=null):document.body&&document.body.focus()},nn=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,o=window.scrollY;l.restoreFocusTimeout=setTimeout(()=>{tn(),t()},en),window.scrollTo(n,o)}),Qe="swal2-",on=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"],i=on.reduce((e,t)=>(e[t]=Qe+t,e),{}),sn=["success","warning","info","question","error"],oe=sn.reduce((e,t)=>(e[t]=Qe+t,e),{}),et="SweetAlert2:",ve=e=>e.charAt(0).toUpperCase()+e.slice(1),y=e=>{console.warn(`${et} ${typeof e=="object"?e.join(" "):e}`)},z=e=>{console.error(`${et} ${e}`)},Fe=[],rn=e=>{Fe.includes(e)||(Fe.push(e),y(e))},tt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;rn(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},ce=e=>typeof e=="function"?e():e,Ce=e=>e&&typeof e.toPromise=="function",K=e=>Ce(e)?e.toPromise():Promise.resolve(e),xe=e=>e&&Promise.resolve(e)===e,v=()=>document.body.querySelector(`.${i.container}`),Y=e=>{const t=v();return t?t.querySelector(e):null},x=e=>Y(`.${e}`),w=()=>x(i.popup),Z=()=>x(i.icon),an=()=>x(i["icon-content"]),nt=()=>x(i.title),ke=()=>x(i["html-container"]),ot=()=>x(i.image),Ae=()=>x(i["progress-steps"]),de=()=>x(i["validation-message"]),P=()=>Y(`.${i.actions} .${i.confirm}`),N=()=>Y(`.${i.actions} .${i.cancel}`),F=()=>Y(`.${i.actions} .${i.deny}`),ln=()=>x(i["input-label"]),W=()=>Y(`.${i.loader}`),X=()=>x(i.actions),st=()=>x(i.footer),ue=()=>x(i["timer-progress-bar"]),Ee=()=>x(i.close),cn=`
5
5
  a[href],
6
6
  area[href],
7
7
  input:not([disabled]),
@@ -16,7 +16,7 @@
16
16
  audio[controls],
17
17
  video[controls],
18
18
  summary
19
- `,Be=()=>{const e=w();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((r,a)=>{const c=parseInt(r.getAttribute("tabindex")||"0"),d=parseInt(a.getAttribute("tabindex")||"0");return c>d?1:c<d?-1:0}),o=e.querySelectorAll(an),s=Array.from(o).filter(r=>r.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(s))].filter(r=>b(r))},Pe=()=>$(document.body,i.shown)&&!$(document.body,i["toast-shown"])&&!$(document.body,i["no-backdrop"]),we=()=>{const e=w();return e?$(e,i.toast):!1},ln=()=>{const e=w();return e?e.hasAttribute("data-loading"):!1},k=(e,t)=>{if(e.textContent="",t){const o=new DOMParser().parseFromString(t,"text/html"),s=o.querySelector("head");s&&Array.from(s.childNodes).forEach(a=>{e.appendChild(a)});const r=o.querySelector("body");r&&Array.from(r.childNodes).forEach(a=>{a instanceof HTMLVideoElement||a instanceof HTMLAudioElement?e.appendChild(a.cloneNode(!0)):e.appendChild(a)})}},$=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let o=0;o<n.length;o++)if(!e.classList.contains(n[o]))return!1;return!0},cn=(e,t)=>{Array.from(e.classList).forEach(n=>{!Object.values(i).includes(n)&&!Object.values(oe).includes(n)&&!Object.values(t.showClass||{}).includes(n)&&e.classList.remove(n)})},C=(e,t,n)=>{if(cn(e,t),!t.customClass)return;const o=t.customClass[n];if(o){if(typeof o!="string"&&!o.forEach){y(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof o}"`);return}u(e,o)}},fe=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${i.popup} > .${i[t]}`);case"checkbox":return e.querySelector(`.${i.popup} > .${i.checkbox} input`);case"radio":return e.querySelector(`.${i.popup} > .${i.radio} input:checked`)||e.querySelector(`.${i.popup} > .${i.radio} input:first-child`);case"range":return e.querySelector(`.${i.popup} > .${i.range} input`);default:return e.querySelector(`.${i.popup} > .${i.input}`)}},it=e=>{if(e.focus(),e.type!=="file"){const t=e.value;e.value="",e.value=t}},rt=(e,t,n)=>{!e||!t||(typeof t=="string"&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(o=>{Array.isArray(e)?e.forEach(s=>{n?s.classList.add(o):s.classList.remove(o)}):n?e.classList.add(o):e.classList.remove(o)}))},u=(e,t)=>{rt(e,t,!0)},P=(e,t)=>{rt(e,t,!1)},I=(e,t)=>{const n=Array.from(e.children);for(let o=0;o<n.length;o++){const s=n[o];if(s instanceof HTMLElement&&$(s,t))return s}},M=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?e.style.setProperty(t,typeof n=="number"?`${n}px`:n):e.style.removeProperty(t)},h=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";e&&(e.style.display=t)},g=e=>{e&&(e.style.display="none")},Te=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";e&&new MutationObserver(()=>{G(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},Re=(e,t,n,o)=>{const s=e.querySelector(t);s&&s.style.setProperty(n,o)},G=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";t?h(e,n):g(e)},b=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),dn=()=>!b(B())&&!b(F())&&!b(N()),Ve=e=>e.scrollHeight>e.clientHeight,at=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},$e=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=ue();n&&b(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},un=()=>{const e=ue();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=parseInt(window.getComputedStyle(e).width),o=t/n*100;e.style.width=`${o}%`},lt=()=>typeof window>"u"||typeof document>"u",wn=`
19
+ `,Be=()=>{const e=w();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((r,a)=>{const c=parseInt(r.getAttribute("tabindex")||"0"),d=parseInt(a.getAttribute("tabindex")||"0");return c>d?1:c<d?-1:0}),o=e.querySelectorAll(cn),s=Array.from(o).filter(r=>r.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(s))].filter(r=>b(r))},Pe=()=>T(document.body,i.shown)&&!T(document.body,i["toast-shown"])&&!T(document.body,i["no-backdrop"]),we=()=>{const e=w();return e?T(e,i.toast):!1},dn=()=>{const e=w();return e?e.hasAttribute("data-loading"):!1},k=(e,t)=>{if(e.textContent="",t){const o=new DOMParser().parseFromString(t,"text/html"),s=o.querySelector("head");s&&Array.from(s.childNodes).forEach(a=>{e.appendChild(a)});const r=o.querySelector("body");r&&Array.from(r.childNodes).forEach(a=>{a instanceof HTMLVideoElement||a instanceof HTMLAudioElement?e.appendChild(a.cloneNode(!0)):e.appendChild(a)})}},T=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let o=0;o<n.length;o++)if(!e.classList.contains(n[o]))return!1;return!0},un=(e,t)=>{Array.from(e.classList).forEach(n=>{!Object.values(i).includes(n)&&!Object.values(oe).includes(n)&&!Object.values(t.showClass||{}).includes(n)&&e.classList.remove(n)})},C=(e,t,n)=>{if(un(e,t),!t.customClass)return;const o=t.customClass[n];if(o){if(typeof o!="string"&&!o.forEach){y(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof o}"`);return}u(e,o)}},fe=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${i.popup} > .${i[t]}`);case"checkbox":return e.querySelector(`.${i.popup} > .${i.checkbox} input`);case"radio":return e.querySelector(`.${i.popup} > .${i.radio} input:checked`)||e.querySelector(`.${i.popup} > .${i.radio} input:first-child`);case"range":return e.querySelector(`.${i.popup} > .${i.range} input`);default:return e.querySelector(`.${i.popup} > .${i.input}`)}},it=e=>{if(e.focus(),e.type!=="file"){const t=e.value;e.value="",e.value=t}},rt=(e,t,n)=>{!e||!t||(typeof t=="string"&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(o=>{Array.isArray(e)?e.forEach(s=>{n?s.classList.add(o):s.classList.remove(o)}):n?e.classList.add(o):e.classList.remove(o)}))},u=(e,t)=>{rt(e,t,!0)},$=(e,t)=>{rt(e,t,!1)},I=(e,t)=>{const n=Array.from(e.children);for(let o=0;o<n.length;o++){const s=n[o];if(s instanceof HTMLElement&&T(s,t))return s}},M=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?e.style.setProperty(t,typeof n=="number"?`${n}px`:n):e.style.removeProperty(t)},h=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";e&&(e.style.display=t)},g=e=>{e&&(e.style.display="none")},$e=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";e&&new MutationObserver(()=>{G(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},Re=(e,t,n,o)=>{const s=e.querySelector(t);s&&s.style.setProperty(n,o)},G=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";t?h(e,n):g(e)},b=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),wn=()=>!b(P())&&!b(F())&&!b(N()),Ve=e=>e.scrollHeight>e.clientHeight,at=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},Te=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=ue();n&&b(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},fn=()=>{const e=ue();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=parseInt(window.getComputedStyle(e).width),o=t/n*100;e.style.width=`${o}%`},lt=()=>typeof window>"u"||typeof document>"u",pn=`
20
20
  <div aria-labelledby="${i.title}" aria-describedby="${i["html-container"]}" class="${i.popup}" tabindex="-1">
21
21
  <button type="button" class="${i.close}"></button>
22
22
  <ul class="${i["progress-steps"]}"></ul>
@@ -49,17 +49,17 @@
49
49
  <div class="${i["timer-progress-bar"]}"></div>
50
50
  </div>
51
51
  </div>
52
- `.replace(/(^|\n)\s*/g,""),fn=()=>{const e=v();return e?(e.remove(),P([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},O=()=>{l.currentInstance.resetValidationMessage()},pn=()=>{const e=w(),t=I(e,i.input),n=I(e,i.file),o=e.querySelector(`.${i.range} input`),s=e.querySelector(`.${i.range} output`),r=I(e,i.select),a=e.querySelector(`.${i.checkbox} input`),c=I(e,i.textarea);t.oninput=O,n.onchange=O,r.onchange=O,a.onchange=O,c.oninput=O,o.oninput=()=>{O(),s.value=o.value},o.onchange=()=>{O(),s.value=o.value}},mn=e=>typeof e=="string"?document.querySelector(e):e,hn=e=>{const t=w();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},gn=e=>{window.getComputedStyle(e).direction==="rtl"&&u(v(),i.rtl)},bn=e=>{const t=fn();if(lt()){z("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=i.container,t&&u(n,i["no-transition"]),k(n,wn);const o=mn(e.target);o.appendChild(n),hn(e),gn(o),pn()},Se=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?yn(e,t):e&&k(t,e)},yn=(e,t)=>{e.jquery?vn(t,e):k(t,e.toString())},vn=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},D=(()=>{if(lt())return!1;const e=document.createElement("div");return typeof e.style.webkitAnimation<"u"?"webkitAnimationEnd":typeof e.style.animation<"u"?"animationend":!1})(),Cn=(e,t)=>{const n=X(),o=W();!n||!o||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?g(n):h(n),C(n,t,"actions"),xn(n,o,t),k(o,t.loaderHtml||""),C(o,t,"loader"))};function xn(e,t,n){const o=B(),s=F(),r=N();!o||!s||!r||(me(o,"confirm",n),me(s,"deny",n),me(r,"cancel",n),kn(o,s,r,n),n.reverseButtons&&(n.toast?(e.insertBefore(r,o),e.insertBefore(s,o)):(e.insertBefore(r,t),e.insertBefore(s,t),e.insertBefore(o,t))))}function kn(e,t,n,o){if(!o.buttonsStyling){P([e,t,n],i.styled);return}u([e,t,n],i.styled),o.confirmButtonColor&&(e.style.backgroundColor=o.confirmButtonColor,u(e,i["default-outline"])),o.denyButtonColor&&(t.style.backgroundColor=o.denyButtonColor,u(t,i["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,u(n,i["default-outline"]))}function me(e,t,n){const o=ve(t);G(e,n[`show${o}Button`],"inline-block"),k(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=i[t],C(e,n,`${t}Button`)}const An=(e,t)=>{const n=Ee();n&&(k(n,t.closeButtonHtml||""),C(n,t,"closeButton"),G(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},En=(e,t)=>{const n=v();n&&(Bn(n,t.backdrop),Pn(n,t.position),Tn(n,t.grow),C(n,t,"container"))};function Bn(e,t){typeof t=="string"?e.style.background=t:t||u([document.documentElement,document.body],i["no-backdrop"])}function Pn(e,t){t&&(t in i?u(e,i[t]):(y('The "position" parameter is not valid, defaulting to "center"'),u(e,i.center)))}function Tn(e,t){t&&u(e,i[`grow-${t}`])}var f={innerParams:new WeakMap,domCache:new WeakMap};const $n=["input","file","range","select","radio","checkbox","textarea"],Sn=(e,t)=>{const n=w();if(!n)return;const o=f.innerParams.get(e),s=!o||t.input!==o.input;$n.forEach(r=>{const a=I(n,i[r]);a&&(On(r,t.inputAttributes),a.className=i[r],s&&g(a))}),t.input&&(s&&In(t),Mn(t))},In=e=>{if(!e.input)return;if(!p[e.input]){z(`Unexpected type of input! Expected ${Object.keys(p).join(" | ")}, got "${e.input}"`);return}const t=ct(e.input);if(!t)return;const n=p[e.input](t,e);h(t),e.inputAutoFocus&&setTimeout(()=>{it(n)})},Ln=e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}},On=(e,t)=>{const n=w();if(!n)return;const o=fe(n,e);if(o){Ln(o);for(const s in t)o.setAttribute(s,t[s])}},Mn=e=>{if(!e.input)return;const t=ct(e.input);t&&C(t,e,"input")},Ie=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},J=(e,t,n)=>{if(n.inputLabel){const o=document.createElement("label"),s=i["input-label"];o.setAttribute("for",e.id),o.className=s,typeof n.customClass=="object"&&u(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},ct=e=>{const t=w();if(t)return I(t,i[e]||i.input)},se=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:xe(t)||y(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},p={};p.text=p.email=p.password=p.number=p.tel=p.url=p.search=p.date=p["datetime-local"]=p.time=p.week=p.month=(e,t)=>(se(e,t.inputValue),J(e,e,t),Ie(e,t),e.type=t.input,e);p.file=(e,t)=>(J(e,e,t),Ie(e,t),e);p.range=(e,t)=>{const n=e.querySelector("input"),o=e.querySelector("output");return se(n,t.inputValue),n.type=t.input,se(o,t.inputValue),J(n,e,t),e};p.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");k(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return J(e,e,t),e};p.radio=e=>(e.textContent="",e);p.checkbox=(e,t)=>{const n=fe(w(),"checkbox");n.value="1",n.checked=!!t.inputValue;const o=e.querySelector("span");return k(o,t.inputPlaceholder||t.inputLabel),n};p.textarea=(e,t)=>{se(e,t.inputValue),Ie(e,t),J(e,e,t);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(w()).width),s=()=>{if(!document.body.contains(e))return;const r=e.offsetWidth+n(e);r>o?w().style.width=`${r}px`:M(w(),"width",t.width)};new MutationObserver(s).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const Dn=(e,t)=>{const n=ke();n&&(Te(n),C(n,t,"htmlContainer"),t.html?(Se(t.html,n),h(n,"block")):t.text?(n.textContent=t.text,h(n,"block")):g(n),Sn(e,t))},Hn=(e,t)=>{const n=st();n&&(Te(n),G(n,t.footer,"block"),t.footer&&Se(t.footer,n),C(n,t,"footer"))},jn=(e,t)=>{const n=f.innerParams.get(e),o=Z();if(o){if(n&&t.icon===n.icon){Ue(o,t),qe(o,t);return}if(!t.icon&&!t.iconHtml){g(o);return}if(t.icon&&Object.keys(oe).indexOf(t.icon)===-1){z(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),g(o);return}h(o),Ue(o,t),qe(o,t),u(o,t.showClass&&t.showClass.icon)}},qe=(e,t)=>{for(const[n,o]of Object.entries(oe))t.icon!==n&&P(e,o);u(e,t.icon&&oe[t.icon]),Vn(e,t),zn(),C(e,t,"icon")},zn=()=>{const e=w();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o<n.length;o++)n[o].style.backgroundColor=t},Fn=`
52
+ `.replace(/(^|\n)\s*/g,""),mn=()=>{const e=v();return e?(e.remove(),$([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},O=()=>{l.currentInstance.resetValidationMessage()},hn=()=>{const e=w(),t=I(e,i.input),n=I(e,i.file),o=e.querySelector(`.${i.range} input`),s=e.querySelector(`.${i.range} output`),r=I(e,i.select),a=e.querySelector(`.${i.checkbox} input`),c=I(e,i.textarea);t.oninput=O,n.onchange=O,r.onchange=O,a.onchange=O,c.oninput=O,o.oninput=()=>{O(),s.value=o.value},o.onchange=()=>{O(),s.value=o.value}},gn=e=>typeof e=="string"?document.querySelector(e):e,bn=e=>{const t=w();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},yn=e=>{window.getComputedStyle(e).direction==="rtl"&&u(v(),i.rtl)},vn=e=>{const t=mn();if(lt()){z("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=i.container,t&&u(n,i["no-transition"]),k(n,pn);const o=gn(e.target);o.appendChild(n),bn(e),yn(o),hn()},Se=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?Cn(e,t):e&&k(t,e)},Cn=(e,t)=>{e.jquery?xn(t,e):k(t,e.toString())},xn=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},D=(()=>{if(lt())return!1;const e=document.createElement("div");return typeof e.style.webkitAnimation<"u"?"webkitAnimationEnd":typeof e.style.animation<"u"?"animationend":!1})(),kn=(e,t)=>{const n=X(),o=W();!n||!o||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?g(n):h(n),C(n,t,"actions"),An(n,o,t),k(o,t.loaderHtml||""),C(o,t,"loader"))};function An(e,t,n){const o=P(),s=F(),r=N();!o||!s||!r||(me(o,"confirm",n),me(s,"deny",n),me(r,"cancel",n),En(o,s,r,n),n.reverseButtons&&(n.toast?(e.insertBefore(r,o),e.insertBefore(s,o)):(e.insertBefore(r,t),e.insertBefore(s,t),e.insertBefore(o,t))))}function En(e,t,n,o){if(!o.buttonsStyling){$([e,t,n],i.styled);return}u([e,t,n],i.styled),o.confirmButtonColor&&(e.style.backgroundColor=o.confirmButtonColor,u(e,i["default-outline"])),o.denyButtonColor&&(t.style.backgroundColor=o.denyButtonColor,u(t,i["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,u(n,i["default-outline"]))}function me(e,t,n){const o=ve(t);G(e,n[`show${o}Button`],"inline-block"),k(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=i[t],C(e,n,`${t}Button`)}const Bn=(e,t)=>{const n=Ee();n&&(k(n,t.closeButtonHtml||""),C(n,t,"closeButton"),G(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Pn=(e,t)=>{const n=v();n&&($n(n,t.backdrop),Tn(n,t.position),Sn(n,t.grow),C(n,t,"container"))};function $n(e,t){typeof t=="string"?e.style.background=t:t||u([document.documentElement,document.body],i["no-backdrop"])}function Tn(e,t){t&&(t in i?u(e,i[t]):(y('The "position" parameter is not valid, defaulting to "center"'),u(e,i.center)))}function Sn(e,t){t&&u(e,i[`grow-${t}`])}var f={innerParams:new WeakMap,domCache:new WeakMap};const In=["input","file","range","select","radio","checkbox","textarea"],Ln=(e,t)=>{const n=w();if(!n)return;const o=f.innerParams.get(e),s=!o||t.input!==o.input;In.forEach(r=>{const a=I(n,i[r]);a&&(Dn(r,t.inputAttributes),a.className=i[r],s&&g(a))}),t.input&&(s&&On(t),Hn(t))},On=e=>{if(!e.input)return;if(!p[e.input]){z(`Unexpected type of input! Expected ${Object.keys(p).join(" | ")}, got "${e.input}"`);return}const t=ct(e.input);if(!t)return;const n=p[e.input](t,e);h(t),e.inputAutoFocus&&setTimeout(()=>{it(n)})},Mn=e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}},Dn=(e,t)=>{const n=w();if(!n)return;const o=fe(n,e);if(o){Mn(o);for(const s in t)o.setAttribute(s,t[s])}},Hn=e=>{if(!e.input)return;const t=ct(e.input);t&&C(t,e,"input")},Ie=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},J=(e,t,n)=>{if(n.inputLabel){const o=document.createElement("label"),s=i["input-label"];o.setAttribute("for",e.id),o.className=s,typeof n.customClass=="object"&&u(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},ct=e=>{const t=w();if(t)return I(t,i[e]||i.input)},se=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:xe(t)||y(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},p={};p.text=p.email=p.password=p.number=p.tel=p.url=p.search=p.date=p["datetime-local"]=p.time=p.week=p.month=(e,t)=>(se(e,t.inputValue),J(e,e,t),Ie(e,t),e.type=t.input,e);p.file=(e,t)=>(J(e,e,t),Ie(e,t),e);p.range=(e,t)=>{const n=e.querySelector("input"),o=e.querySelector("output");return se(n,t.inputValue),n.type=t.input,se(o,t.inputValue),J(n,e,t),e};p.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");k(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return J(e,e,t),e};p.radio=e=>(e.textContent="",e);p.checkbox=(e,t)=>{const n=fe(w(),"checkbox");n.value="1",n.checked=!!t.inputValue;const o=e.querySelector("span");return k(o,t.inputPlaceholder||t.inputLabel),n};p.textarea=(e,t)=>{se(e,t.inputValue),Ie(e,t),J(e,e,t);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(w()).width),s=()=>{if(!document.body.contains(e))return;const r=e.offsetWidth+n(e);r>o?w().style.width=`${r}px`:M(w(),"width",t.width)};new MutationObserver(s).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const jn=(e,t)=>{const n=ke();n&&($e(n),C(n,t,"htmlContainer"),t.html?(Se(t.html,n),h(n,"block")):t.text?(n.textContent=t.text,h(n,"block")):g(n),Ln(e,t))},zn=(e,t)=>{const n=st();n&&($e(n),G(n,t.footer,"block"),t.footer&&Se(t.footer,n),C(n,t,"footer"))},Fn=(e,t)=>{const n=f.innerParams.get(e),o=Z();if(o){if(n&&t.icon===n.icon){Ue(o,t),qe(o,t);return}if(!t.icon&&!t.iconHtml){g(o);return}if(t.icon&&Object.keys(oe).indexOf(t.icon)===-1){z(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),g(o);return}h(o),Ue(o,t),qe(o,t),u(o,t.showClass&&t.showClass.icon)}},qe=(e,t)=>{for(const[n,o]of Object.entries(oe))t.icon!==n&&$(e,o);u(e,t.icon&&oe[t.icon]),Un(e,t),Rn(),C(e,t,"icon")},Rn=()=>{const e=w();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o<n.length;o++)n[o].style.backgroundColor=t},Vn=`
53
53
  <div class="swal2-success-circular-line-left"></div>
54
54
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
55
55
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
56
56
  <div class="swal2-success-circular-line-right"></div>
57
- `,Rn=`
57
+ `,qn=`
58
58
  <span class="swal2-x-mark">
59
59
  <span class="swal2-x-mark-line-left"></span>
60
60
  <span class="swal2-x-mark-line-right"></span>
61
61
  </span>
62
- `,Ue=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,o="";t.iconHtml?o=Ne(t.iconHtml):t.icon==="success"?(o=Fn,n=n.replace(/ style=".*?"/g,"")):t.icon==="error"?o=Rn:t.icon&&(o=Ne({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==o.trim()&&k(e,o)},Vn=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])Re(e,n,"background-color",t.iconColor);Re(e,".swal2-success-ring","border-color",t.iconColor)}},Ne=e=>`<div class="${i["icon-content"]}">${e}</div>`,qn=(e,t)=>{const n=ot();if(n){if(!t.imageUrl){g(n);return}h(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),M(n,"width",t.imageWidth),M(n,"height",t.imageHeight),n.className=i.image,C(n,t,"image")}},Un=(e,t)=>{const n=v(),o=w();if(!(!n||!o)){if(t.toast){M(n,"width",t.width),o.style.width="100%";const s=W();s&&o.insertBefore(s,Z())}else M(o,"width",t.width);M(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),g(de()),Nn(o,t)}},Nn=(e,t)=>{const n=t.showClass||{};e.className=`${i.popup} ${b(e)?n.popup:""}`,t.toast?(u([document.documentElement,document.body],i["toast-shown"]),u(e,i.toast)):u(e,i.modal),C(e,t,"popup"),typeof t.customClass=="string"&&u(e,t.customClass),t.icon&&u(e,i[`icon-${t.icon}`])},Wn=(e,t)=>{const n=Ae();if(!n)return;const{progressSteps:o,currentProgressStep:s}=t;if(!o||o.length===0||s===void 0){g(n);return}h(n),n.textContent="",s>=o.length&&y("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((r,a)=>{const c=_n(r);if(n.appendChild(c),a===s&&u(c,i["active-progress-step"]),a!==o.length-1){const d=Kn(t);n.appendChild(d)}})},_n=e=>{const t=document.createElement("li");return u(t,i["progress-step"]),k(t,e),t},Kn=e=>{const t=document.createElement("li");return u(t,i["progress-step-line"]),e.progressStepsDistance&&M(t,"width",e.progressStepsDistance),t},Yn=(e,t)=>{const n=nt();n&&(Te(n),G(n,t.title||t.titleText,"block"),t.title&&Se(t.title,n),t.titleText&&(n.innerText=t.titleText),C(n,t,"title"))},dt=(e,t)=>{Un(e,t),En(e,t),Wn(e,t),jn(e,t),qn(e,t),Yn(e,t),An(e,t),Dn(e,t),Cn(e,t),Hn(e,t);const n=w();typeof t.didRender=="function"&&n&&t.didRender(n),l.eventEmitter.emit("didRender",n)},Zn=()=>b(w()),ut=()=>{var e;return(e=B())===null||e===void 0?void 0:e.click()},Xn=()=>{var e;return(e=F())===null||e===void 0?void 0:e.click()},Gn=()=>{var e;return(e=N())===null||e===void 0?void 0:e.click()},_=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),wt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Jn=(e,t,n)=>{wt(e),t.toast||(e.keydownHandler=o=>eo(t,o,n),e.keydownTarget=t.keydownListenerCapture?window:w(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},ge=(e,t)=>{var n;const o=Be();if(o.length){e=e+t,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();return}(n=w())===null||n===void 0||n.focus()},ft=["ArrowRight","ArrowDown"],Qn=["ArrowLeft","ArrowUp"],eo=(e,t,n)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?to(t,e):t.key==="Tab"?no(t):[...ft,...Qn].includes(t.key)?oo(t.key):t.key==="Escape"&&so(t,e,n)))},to=(e,t)=>{if(!ce(t.allowEnterKey))return;const n=fe(w(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;ut(),e.preventDefault()}},no=e=>{const t=e.target,n=Be();let o=-1;for(let s=0;s<n.length;s++)if(t===n[s]){o=s;break}e.shiftKey?ge(o,-1):ge(o,1),e.stopPropagation(),e.preventDefault()},oo=e=>{const t=X(),n=B(),o=F(),s=N();if(!t||!n||!o||!s)return;const r=[n,o,s];if(document.activeElement instanceof HTMLElement&&!r.includes(document.activeElement))return;const a=ft.includes(e)?"nextElementSibling":"previousElementSibling";let c=document.activeElement;if(c){for(let d=0;d<t.children.length;d++){if(c=c[a],!c)return;if(c instanceof HTMLButtonElement&&b(c))break}c instanceof HTMLButtonElement&&c.focus()}},so=(e,t,n)=>{ce(t.allowEscapeKey)&&(e.preventDefault(),n(_.esc))};var q={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const io=()=>{const e=v();Array.from(document.body.children).forEach(n=>{n.contains(e)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},pt=()=>{Array.from(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},mt=typeof window<"u"&&!!window.GestureEvent,ro=()=>{if(mt&&!$(document.body,i.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,u(document.body,i.iosfix),ao()}},ao=()=>{const e=v();if(!e)return;let t;e.ontouchstart=n=>{t=lo(n)},e.ontouchmove=n=>{t&&(n.preventDefault(),n.stopPropagation())}},lo=e=>{const t=e.target,n=v(),o=ke();return!n||!o||co(e)||uo(e)?!1:t===n||!Ve(n)&&t instanceof HTMLElement&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(Ve(o)&&o.contains(t))},co=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",uo=e=>e.touches&&e.touches.length>1,wo=()=>{if($(document.body,i.iosfix)){const e=parseInt(document.body.style.top,10);P(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},fo=()=>{const e=document.createElement("div");e.className=i["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let R=null;const po=e=>{R===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(R=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${R+fo()}px`)},mo=()=>{R!==null&&(document.body.style.paddingRight=`${R}px`,R=null)};function ht(e,t,n,o){we()?We(e,o):(en(n).then(()=>We(e,o)),wt(l)),mt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),Pe()&&(mo(),wo(),pt()),ho()}function ho(){P([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function L(e){e=bo(e);const t=q.swalPromiseResolve.get(this),n=go(this);this.isAwaitingPromise?e.isDismissed||(Q(this),t(e)):n&&t(e)}const go=e=>{const t=w();if(!t)return!1;const n=f.innerParams.get(e);if(!n||$(t,n.hideClass.popup))return!1;P(t,n.showClass.popup),u(t,n.hideClass.popup);const o=v();return P(o,n.showClass.backdrop),u(o,n.hideClass.backdrop),yo(e,t,n),!0};function gt(e){const t=q.swalPromiseReject.get(this);Q(this),t&&t(e)}const Q=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,f.innerParams.get(e)||e._destroy())},bo=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),yo=(e,t,n)=>{const o=v(),s=D&&at(t);typeof n.willClose=="function"&&n.willClose(t),l.eventEmitter.emit("willClose",t),s?vo(e,t,o,n.returnFocus,n.didClose):ht(e,o,n.returnFocus,n.didClose)},vo=(e,t,n,o,s)=>{D&&(l.swalCloseEventFinishedCallback=ht.bind(null,e,n,o,s),t.addEventListener(D,function(r){r.target===t&&(l.swalCloseEventFinishedCallback(),delete l.swalCloseEventFinishedCallback)}))},We=(e,t)=>{setTimeout(()=>{typeof t=="function"&&t.bind(e.params)(),l.eventEmitter.emit("didClose"),e._destroy&&e._destroy()})},U=e=>{let t=w();if(t||new j,t=w(),!t)return;const n=W();we()?g(Z()):Co(t,e),h(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Co=(e,t)=>{const n=X(),o=W();!n||!o||(!t&&b(B())&&(t=B()),h(n),t&&(g(t),o.setAttribute("data-button-to-replace",t.className),n.insertBefore(o,t)),u([e,n],i.loading))},xo=(e,t)=>{t.input==="select"||t.input==="radio"?Po(e,t):["text","email","number","tel","textarea"].some(n=>n===t.input)&&(Ce(t.inputValue)||xe(t.inputValue))&&(U(B()),To(e,t))},ko=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Ao(n);case"radio":return Eo(n);case"file":return Bo(n);default:return t.inputAutoTrim?n.value.trim():n.value}},Ao=e=>e.checked?1:0,Eo=e=>e.checked?e.value:null,Bo=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,Po=(e,t)=>{const n=w();if(!n)return;const o=s=>{t.input==="select"?$o(n,ie(s),t):t.input==="radio"&&So(n,ie(s),t)};Ce(t.inputOptions)||xe(t.inputOptions)?(U(B()),K(t.inputOptions).then(s=>{e.hideLoading(),o(s)})):typeof t.inputOptions=="object"?o(t.inputOptions):z(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},To=(e,t)=>{const n=e.getInput();n&&(g(n),K(t.inputValue).then(o=>{n.value=t.input==="number"?`${parseFloat(o)||0}`:`${o}`,h(n),n.focus(),e.hideLoading()}).catch(o=>{z(`Error in inputValue promise: ${o}`),n.value="",h(n),n.focus(),e.hideLoading()}))};function $o(e,t,n){const o=I(e,i.select);if(!o)return;const s=(r,a,c)=>{const d=document.createElement("option");d.value=c,k(d,a),d.selected=bt(c,n.inputValue),r.appendChild(d)};t.forEach(r=>{const a=r[0],c=r[1];if(Array.isArray(c)){const d=document.createElement("optgroup");d.label=a,d.disabled=!1,o.appendChild(d),c.forEach(A=>s(d,A[1],A[0]))}else s(o,c,a)}),o.focus()}function So(e,t,n){const o=I(e,i.radio);if(!o)return;t.forEach(r=>{const a=r[0],c=r[1],d=document.createElement("input"),A=document.createElement("label");d.type="radio",d.name=i.radio,d.value=a,bt(a,n.inputValue)&&(d.checked=!0);const S=document.createElement("span");k(S,c),S.className=i.label,A.appendChild(d),A.appendChild(S),o.appendChild(A)});const s=o.querySelectorAll("input");s.length&&s[0].focus()}const ie=e=>{const t=[];return e instanceof Map?e.forEach((n,o)=>{let s=n;typeof s=="object"&&(s=ie(s)),t.push([o,s])}):Object.keys(e).forEach(n=>{let o=e[n];typeof o=="object"&&(o=ie(o)),t.push([n,o])}),t},bt=(e,t)=>!!t&&t.toString()===e.toString(),Io=e=>{const t=f.innerParams.get(e);e.disableButtons(),t.input?yt(e,"confirm"):Oe(e,!0)},Lo=e=>{const t=f.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?yt(e,"deny"):Le(e,!1)},Oo=(e,t)=>{e.disableButtons(),t(_.cancel)},yt=(e,t)=>{const n=f.innerParams.get(e);if(!n.input){z(`The "input" parameter is needed to be set when using returnInputValueOn${ve(t)}`);return}const o=e.getInput(),s=ko(e,n);n.inputValidator?Mo(e,s,t):o&&!o.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||o.validationMessage)):t==="deny"?Le(e,s):Oe(e,s)},Mo=(e,t,n)=>{const o=f.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>K(o.inputValidator(t,o.validationMessage))).then(r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):n==="deny"?Le(e,t):Oe(e,t)})},Le=(e,t)=>{const n=f.innerParams.get(e||void 0);n.showLoaderOnDeny&&U(F()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>K(n.preDeny(t,n.validationMessage))).then(s=>{s===!1?(e.hideLoading(),Q(e)):e.close({isDenied:!0,value:typeof s>"u"?t:s})}).catch(s=>vt(e||void 0,s))):e.close({isDenied:!0,value:t})},_e=(e,t)=>{e.close({isConfirmed:!0,value:t})},vt=(e,t)=>{e.rejectPromise(t)},Oe=(e,t)=>{const n=f.innerParams.get(e||void 0);n.showLoaderOnConfirm&&U(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>K(n.preConfirm(t,n.validationMessage))).then(s=>{b(de())||s===!1?(e.hideLoading(),Q(e)):_e(e,typeof s>"u"?t:s)}).catch(s=>vt(e||void 0,s))):_e(e,t)};function re(){const e=f.innerParams.get(this);if(!e)return;const t=f.domCache.get(this);g(t.loader),we()?e.icon&&h(Z()):Do(t),P([t.popup,t.actions],i.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Do=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?h(t[0],"inline-block"):dn()&&g(e.actions)};function Ct(){const e=f.innerParams.get(this),t=f.domCache.get(this);return t?fe(t.popup,e.input):null}function xt(e,t,n){const o=f.domCache.get(e);t.forEach(s=>{o[s].disabled=n})}function kt(e,t){const n=w();if(!(!n||!e))if(e.type==="radio"){const o=n.querySelectorAll(`[name="${i.radio}"]`);for(let s=0;s<o.length;s++)o[s].disabled=t}else e.disabled=t}function At(){xt(this,["confirmButton","denyButton","cancelButton"],!1)}function Et(){xt(this,["confirmButton","denyButton","cancelButton"],!0)}function Bt(){kt(this.getInput(),!1)}function Pt(){kt(this.getInput(),!0)}function Tt(e){const t=f.domCache.get(this),n=f.innerParams.get(this);k(t.validationMessage,e),t.validationMessage.className=i["validation-message"],n.customClass&&n.customClass.validationMessage&&u(t.validationMessage,n.customClass.validationMessage),h(t.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid","true"),o.setAttribute("aria-describedby",i["validation-message"]),it(o),u(o,i.inputerror))}function $t(){const e=f.domCache.get(this);e.validationMessage&&g(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),P(t,i.inputerror))}const V={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Ho=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],jo={allowEnterKey:void 0},zo=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],St=e=>Object.prototype.hasOwnProperty.call(V,e),It=e=>Ho.indexOf(e)!==-1,Lt=e=>jo[e],Fo=e=>{St(e)||y(`Unknown parameter "${e}"`)},Ro=e=>{zo.includes(e)&&y(`The parameter "${e}" is incompatible with toasts`)},Vo=e=>{const t=Lt(e);t&&tt(e,t)},qo=e=>{e.backdrop===!1&&e.allowOutsideClick&&y('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)Fo(t),e.toast&&Ro(t),Vo(t)};function Ot(e){const t=w(),n=f.innerParams.get(this);if(!t||$(t,n.hideClass.popup)){y("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const o=Uo(e),s=Object.assign({},n,o);dt(this,s),f.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const Uo=e=>{const t={};return Object.keys(e).forEach(n=>{It(n)?t[n]=e[n]:y(`Invalid parameter to update: ${n}`)}),t};function Mt(){const e=f.domCache.get(this),t=f.innerParams.get(this);if(!t){Dt(this);return}e.popup&&l.swalCloseEventFinishedCallback&&(l.swalCloseEventFinishedCallback(),delete l.swalCloseEventFinishedCallback),typeof t.didDestroy=="function"&&t.didDestroy(),l.eventEmitter.emit("didDestroy"),No(this)}const No=e=>{Dt(e),delete e.params,delete l.keydownHandler,delete l.keydownTarget,delete l.currentInstance},Dt=e=>{e.isAwaitingPromise?(he(f,e),e.isAwaitingPromise=!0):(he(q,e),he(f,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},he=(e,t)=>{for(const n in e)e[n].delete(t)};var Wo=Object.freeze({__proto__:null,_destroy:Mt,close:L,closeModal:L,closePopup:L,closeToast:L,disableButtons:Et,disableInput:Pt,disableLoading:re,enableButtons:At,enableInput:Bt,getInput:Ct,handleAwaitingPromise:Q,hideLoading:re,rejectPromise:gt,resetValidationMessage:$t,showValidationMessage:Tt,update:Ot});const _o=(e,t,n)=>{e.toast?Ko(e,t,n):(Zo(t),Xo(t),Go(e,t,n))},Ko=(e,t,n)=>{t.popup.onclick=()=>{e&&(Yo(e)||e.timer||e.input)||n(_.close)}},Yo=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let ae=!1;const Zo=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(ae=!0)}}},Xo=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(n){e.popup.onmouseup=()=>{},(n.target===e.popup||n.target instanceof HTMLElement&&e.popup.contains(n.target))&&(ae=!0)}}},Go=(e,t,n)=>{t.container.onclick=o=>{if(ae){ae=!1;return}o.target===t.container&&ce(e.allowOutsideClick)&&n(_.backdrop)}},Jo=e=>typeof e=="object"&&e.jquery,Ke=e=>e instanceof Element||Jo(e),Qo=e=>{const t={};return typeof e[0]=="object"&&!Ke(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((n,o)=>{const s=e[o];typeof s=="string"||Ke(s)?t[n]=s:s!==void 0&&z(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`)}),t};function es(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)}function ts(e){class t extends this{_main(o,s){return super._main(o,Object.assign({},e,s))}}return t}const ns=()=>l.timeout&&l.timeout.getTimerLeft(),Ht=()=>{if(l.timeout)return un(),l.timeout.stop()},jt=()=>{if(l.timeout){const e=l.timeout.start();return $e(e),e}},os=()=>{const e=l.timeout;return e&&(e.running?Ht():jt())},ss=e=>{if(l.timeout){const t=l.timeout.increase(e);return $e(t,!0),t}},is=()=>!!(l.timeout&&l.timeout.isRunning());let Ye=!1;const be={};function rs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";be[e]=this,Ye||(document.body.addEventListener("click",as),Ye=!0)}const as=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const n in be){const o=t.getAttribute(n);if(o){be[n].fire({template:o});return}}};class ls{constructor(){this.events={}}_getHandlersByEventName(t){return typeof this.events[t]>"u"&&(this.events[t]=[]),this.events[t]}on(t,n){const o=this._getHandlersByEventName(t);o.includes(n)||o.push(n)}once(t,n){var o=this;const s=function(){o.removeListener(t,s);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];n.apply(o,a)};this.on(t,s)}emit(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];this._getHandlersByEventName(t).forEach(r=>{try{r.apply(this,o)}catch(a){console.error(a)}})}removeListener(t,n){const o=this._getHandlersByEventName(t),s=o.indexOf(n);s>-1&&o.splice(s,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}l.eventEmitter=new ls;const cs=(e,t)=>{l.eventEmitter.on(e,t)},ds=(e,t)=>{l.eventEmitter.once(e,t)},us=(e,t)=>{if(!e){l.eventEmitter.reset();return}t?l.eventEmitter.removeListener(e,t):l.eventEmitter.removeAllListeners(e)};var ws=Object.freeze({__proto__:null,argsToParams:Qo,bindClickHandler:rs,clickCancel:Gn,clickConfirm:ut,clickDeny:Xn,enableLoading:U,fire:es,getActions:X,getCancelButton:N,getCloseButton:Ee,getConfirmButton:B,getContainer:v,getDenyButton:F,getFocusableElements:Be,getFooter:st,getHtmlContainer:ke,getIcon:Z,getIconContent:sn,getImage:ot,getInputLabel:rn,getLoader:W,getPopup:w,getProgressSteps:Ae,getTimerLeft:ns,getTimerProgressBar:ue,getTitle:nt,getValidationMessage:de,increaseTimer:ss,isDeprecatedParameter:Lt,isLoading:ln,isTimerRunning:is,isUpdatableParameter:It,isValidParameter:St,isVisible:Zn,mixin:ts,off:us,on:cs,once:ds,resumeTimer:jt,showLoading:U,stopTimer:Ht,toggleTimer:os});class fs{constructor(t,n){this.callback=t,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(t){const n=this.running;return n&&this.stop(),this.remaining+=t,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const zt=["swal-title","swal-html","swal-footer"],ps=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return xs(n),Object.assign(ms(n),hs(n),gs(n),bs(n),ys(n),vs(n),Cs(n,zt))},ms=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(o=>{H(o,["name","value"]);const s=o.getAttribute("name"),r=o.getAttribute("value");!s||!r||(typeof V[s]=="boolean"?t[s]=r!=="false":typeof V[s]=="object"?t[s]=JSON.parse(r):t[s]=r)}),t},hs=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(o=>{const s=o.getAttribute("name"),r=o.getAttribute("value");!s||!r||(t[s]=new Function(`return ${r}`)())}),t},gs=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(o=>{H(o,["type","color","aria-label"]);const s=o.getAttribute("type");!s||!["confirm","cancel","deny"].includes(s)||(t[`${s}ButtonText`]=o.innerHTML,t[`show${ve(s)}Button`]=!0,o.hasAttribute("color")&&(t[`${s}ButtonColor`]=o.getAttribute("color")),o.hasAttribute("aria-label")&&(t[`${s}ButtonAriaLabel`]=o.getAttribute("aria-label")))}),t},bs=e=>{const t={},n=e.querySelector("swal-image");return n&&(H(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},ys=e=>{const t={},n=e.querySelector("swal-icon");return n&&(H(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},vs=e=>{const t={},n=e.querySelector("swal-input");n&&(H(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const o=Array.from(e.querySelectorAll("swal-input-option"));return o.length&&(t.inputOptions={},o.forEach(s=>{H(s,["value"]);const r=s.getAttribute("value");if(!r)return;const a=s.innerHTML;t.inputOptions[r]=a})),t},Cs=(e,t)=>{const n={};for(const o in t){const s=t[o],r=e.querySelector(s);r&&(H(r,[]),n[s.replace(/^swal-/,"")]=r.innerHTML.trim())}return n},xs=e=>{const t=zt.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(n=>{const o=n.tagName.toLowerCase();t.includes(o)||y(`Unrecognized element <${o}>`)})},H=(e,t)=>{Array.from(e.attributes).forEach(n=>{t.indexOf(n.name)===-1&&y([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},Ft=10,ks=e=>{const t=v(),n=w();typeof e.willOpen=="function"&&e.willOpen(n),l.eventEmitter.emit("willOpen",n);const s=window.getComputedStyle(document.body).overflowY;Bs(t,n,e),setTimeout(()=>{As(t,n)},Ft),Pe()&&(Es(t,e.scrollbarPadding,s),io()),!we()&&!l.previousActiveElement&&(l.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(n)),l.eventEmitter.emit("didOpen",n),P(t,i["no-transition"])},Rt=e=>{const t=w();if(e.target!==t||!D)return;const n=v();t.removeEventListener(D,Rt),n.style.overflowY="auto"},As=(e,t)=>{D&&at(t)?(e.style.overflowY="hidden",t.addEventListener(D,Rt)):e.style.overflowY="auto"},Es=(e,t,n)=>{ro(),t&&n!=="hidden"&&po(n),setTimeout(()=>{e.scrollTop=0})},Bs=(e,t,n)=>{u(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),h(t,"grid"),setTimeout(()=>{u(t,n.showClass.popup),t.style.removeProperty("opacity")},Ft)):h(t,"grid"),u([document.documentElement,document.body],i.shown),n.heightAuto&&n.backdrop&&!n.toast&&u([document.documentElement,document.body],i["height-auto"])};var Ze={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function Ps(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=Ze.email),e.input==="url"&&(e.inputValidator=Ze.url))}function Ts(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(y('Target parameter is not valid, defaulting to "body"'),e.target="body")}function $s(e){Ps(e),e.showLoaderOnConfirm&&!e.preConfirm&&y(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
62
+ `,Ue=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,o="";t.iconHtml?o=Ne(t.iconHtml):t.icon==="success"?(o=Vn,n=n.replace(/ style=".*?"/g,"")):t.icon==="error"?o=qn:t.icon&&(o=Ne({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==o.trim()&&k(e,o)},Un=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])Re(e,n,"background-color",t.iconColor);Re(e,".swal2-success-ring","border-color",t.iconColor)}},Ne=e=>`<div class="${i["icon-content"]}">${e}</div>`,Nn=(e,t)=>{const n=ot();if(n){if(!t.imageUrl){g(n);return}h(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),M(n,"width",t.imageWidth),M(n,"height",t.imageHeight),n.className=i.image,C(n,t,"image")}},Wn=(e,t)=>{const n=v(),o=w();if(!(!n||!o)){if(t.toast){M(n,"width",t.width),o.style.width="100%";const s=W();s&&o.insertBefore(s,Z())}else M(o,"width",t.width);M(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),g(de()),_n(o,t)}},_n=(e,t)=>{const n=t.showClass||{};e.className=`${i.popup} ${b(e)?n.popup:""}`,t.toast?(u([document.documentElement,document.body],i["toast-shown"]),u(e,i.toast)):u(e,i.modal),C(e,t,"popup"),typeof t.customClass=="string"&&u(e,t.customClass),t.icon&&u(e,i[`icon-${t.icon}`])},Kn=(e,t)=>{const n=Ae();if(!n)return;const{progressSteps:o,currentProgressStep:s}=t;if(!o||o.length===0||s===void 0){g(n);return}h(n),n.textContent="",s>=o.length&&y("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((r,a)=>{const c=Yn(r);if(n.appendChild(c),a===s&&u(c,i["active-progress-step"]),a!==o.length-1){const d=Zn(t);n.appendChild(d)}})},Yn=e=>{const t=document.createElement("li");return u(t,i["progress-step"]),k(t,e),t},Zn=e=>{const t=document.createElement("li");return u(t,i["progress-step-line"]),e.progressStepsDistance&&M(t,"width",e.progressStepsDistance),t},Xn=(e,t)=>{const n=nt();n&&($e(n),G(n,t.title||t.titleText,"block"),t.title&&Se(t.title,n),t.titleText&&(n.innerText=t.titleText),C(n,t,"title"))},dt=(e,t)=>{Wn(e,t),Pn(e,t),Kn(e,t),Fn(e,t),Nn(e,t),Xn(e,t),Bn(e,t),jn(e,t),kn(e,t),zn(e,t);const n=w();typeof t.didRender=="function"&&n&&t.didRender(n),l.eventEmitter.emit("didRender",n)},Gn=()=>b(w()),ut=()=>{var e;return(e=P())===null||e===void 0?void 0:e.click()},Jn=()=>{var e;return(e=F())===null||e===void 0?void 0:e.click()},Qn=()=>{var e;return(e=N())===null||e===void 0?void 0:e.click()},_=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),wt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},eo=(e,t,n)=>{wt(e),t.toast||(e.keydownHandler=o=>no(t,o,n),e.keydownTarget=t.keydownListenerCapture?window:w(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},ge=(e,t)=>{var n;const o=Be();if(o.length){e=e+t,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();return}(n=w())===null||n===void 0||n.focus()},ft=["ArrowRight","ArrowDown"],to=["ArrowLeft","ArrowUp"],no=(e,t,n)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?oo(t,e):t.key==="Tab"?so(t):[...ft,...to].includes(t.key)?io(t.key):t.key==="Escape"&&ro(t,e,n)))},oo=(e,t)=>{if(!ce(t.allowEnterKey))return;const n=fe(w(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;ut(),e.preventDefault()}},so=e=>{const t=e.target,n=Be();let o=-1;for(let s=0;s<n.length;s++)if(t===n[s]){o=s;break}e.shiftKey?ge(o,-1):ge(o,1),e.stopPropagation(),e.preventDefault()},io=e=>{const t=X(),n=P(),o=F(),s=N();if(!t||!n||!o||!s)return;const r=[n,o,s];if(document.activeElement instanceof HTMLElement&&!r.includes(document.activeElement))return;const a=ft.includes(e)?"nextElementSibling":"previousElementSibling";let c=document.activeElement;if(c){for(let d=0;d<t.children.length;d++){if(c=c[a],!c)return;if(c instanceof HTMLButtonElement&&b(c))break}c instanceof HTMLButtonElement&&c.focus()}},ro=(e,t,n)=>{ce(t.allowEscapeKey)&&(e.preventDefault(),n(_.esc))};var q={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const ao=()=>{const e=v();Array.from(document.body.children).forEach(n=>{n.contains(e)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},pt=()=>{Array.from(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},mt=typeof window<"u"&&!!window.GestureEvent,lo=()=>{if(mt&&!T(document.body,i.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,u(document.body,i.iosfix),co()}},co=()=>{const e=v();if(!e)return;let t;e.ontouchstart=n=>{t=uo(n)},e.ontouchmove=n=>{t&&(n.preventDefault(),n.stopPropagation())}},uo=e=>{const t=e.target,n=v(),o=ke();return!n||!o||wo(e)||fo(e)?!1:t===n||!Ve(n)&&t instanceof HTMLElement&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(Ve(o)&&o.contains(t))},wo=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",fo=e=>e.touches&&e.touches.length>1,po=()=>{if(T(document.body,i.iosfix)){const e=parseInt(document.body.style.top,10);$(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},mo=()=>{const e=document.createElement("div");e.className=i["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let R=null;const ho=e=>{R===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(R=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${R+mo()}px`)},go=()=>{R!==null&&(document.body.style.paddingRight=`${R}px`,R=null)};function ht(e,t,n,o){we()?We(e,o):(nn(n).then(()=>We(e,o)),wt(l)),mt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),Pe()&&(go(),po(),pt()),bo()}function bo(){$([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function L(e){e=vo(e);const t=q.swalPromiseResolve.get(this),n=yo(this);this.isAwaitingPromise?e.isDismissed||(Q(this),t(e)):n&&t(e)}const yo=e=>{const t=w();if(!t)return!1;const n=f.innerParams.get(e);if(!n||T(t,n.hideClass.popup))return!1;$(t,n.showClass.popup),u(t,n.hideClass.popup);const o=v();return $(o,n.showClass.backdrop),u(o,n.hideClass.backdrop),Co(e,t,n),!0};function gt(e){const t=q.swalPromiseReject.get(this);Q(this),t&&t(e)}const Q=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,f.innerParams.get(e)||e._destroy())},vo=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Co=(e,t,n)=>{const o=v(),s=D&&at(t);typeof n.willClose=="function"&&n.willClose(t),l.eventEmitter.emit("willClose",t),s?xo(e,t,o,n.returnFocus,n.didClose):ht(e,o,n.returnFocus,n.didClose)},xo=(e,t,n,o,s)=>{D&&(l.swalCloseEventFinishedCallback=ht.bind(null,e,n,o,s),t.addEventListener(D,function(r){r.target===t&&(l.swalCloseEventFinishedCallback(),delete l.swalCloseEventFinishedCallback)}))},We=(e,t)=>{setTimeout(()=>{typeof t=="function"&&t.bind(e.params)(),l.eventEmitter.emit("didClose"),e._destroy&&e._destroy()})},U=e=>{let t=w();if(t||new j,t=w(),!t)return;const n=W();we()?g(Z()):ko(t,e),h(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},ko=(e,t)=>{const n=X(),o=W();!n||!o||(!t&&b(P())&&(t=P()),h(n),t&&(g(t),o.setAttribute("data-button-to-replace",t.className),n.insertBefore(o,t)),u([e,n],i.loading))},Ao=(e,t)=>{t.input==="select"||t.input==="radio"?To(e,t):["text","email","number","tel","textarea"].some(n=>n===t.input)&&(Ce(t.inputValue)||xe(t.inputValue))&&(U(P()),So(e,t))},Eo=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Bo(n);case"radio":return Po(n);case"file":return $o(n);default:return t.inputAutoTrim?n.value.trim():n.value}},Bo=e=>e.checked?1:0,Po=e=>e.checked?e.value:null,$o=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,To=(e,t)=>{const n=w();if(!n)return;const o=s=>{t.input==="select"?Io(n,ie(s),t):t.input==="radio"&&Lo(n,ie(s),t)};Ce(t.inputOptions)||xe(t.inputOptions)?(U(P()),K(t.inputOptions).then(s=>{e.hideLoading(),o(s)})):typeof t.inputOptions=="object"?o(t.inputOptions):z(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},So=(e,t)=>{const n=e.getInput();n&&(g(n),K(t.inputValue).then(o=>{n.value=t.input==="number"?`${parseFloat(o)||0}`:`${o}`,h(n),n.focus(),e.hideLoading()}).catch(o=>{z(`Error in inputValue promise: ${o}`),n.value="",h(n),n.focus(),e.hideLoading()}))};function Io(e,t,n){const o=I(e,i.select);if(!o)return;const s=(r,a,c)=>{const d=document.createElement("option");d.value=c,k(d,a),d.selected=bt(c,n.inputValue),r.appendChild(d)};t.forEach(r=>{const a=r[0],c=r[1];if(Array.isArray(c)){const d=document.createElement("optgroup");d.label=a,d.disabled=!1,o.appendChild(d),c.forEach(A=>s(d,A[1],A[0]))}else s(o,c,a)}),o.focus()}function Lo(e,t,n){const o=I(e,i.radio);if(!o)return;t.forEach(r=>{const a=r[0],c=r[1],d=document.createElement("input"),A=document.createElement("label");d.type="radio",d.name=i.radio,d.value=a,bt(a,n.inputValue)&&(d.checked=!0);const S=document.createElement("span");k(S,c),S.className=i.label,A.appendChild(d),A.appendChild(S),o.appendChild(A)});const s=o.querySelectorAll("input");s.length&&s[0].focus()}const ie=e=>{const t=[];return e instanceof Map?e.forEach((n,o)=>{let s=n;typeof s=="object"&&(s=ie(s)),t.push([o,s])}):Object.keys(e).forEach(n=>{let o=e[n];typeof o=="object"&&(o=ie(o)),t.push([n,o])}),t},bt=(e,t)=>!!t&&t.toString()===e.toString(),Oo=e=>{const t=f.innerParams.get(e);e.disableButtons(),t.input?yt(e,"confirm"):Oe(e,!0)},Mo=e=>{const t=f.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?yt(e,"deny"):Le(e,!1)},Do=(e,t)=>{e.disableButtons(),t(_.cancel)},yt=(e,t)=>{const n=f.innerParams.get(e);if(!n.input){z(`The "input" parameter is needed to be set when using returnInputValueOn${ve(t)}`);return}const o=e.getInput(),s=Eo(e,n);n.inputValidator?Ho(e,s,t):o&&!o.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||o.validationMessage)):t==="deny"?Le(e,s):Oe(e,s)},Ho=(e,t,n)=>{const o=f.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>K(o.inputValidator(t,o.validationMessage))).then(r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):n==="deny"?Le(e,t):Oe(e,t)})},Le=(e,t)=>{const n=f.innerParams.get(e||void 0);n.showLoaderOnDeny&&U(F()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>K(n.preDeny(t,n.validationMessage))).then(s=>{s===!1?(e.hideLoading(),Q(e)):e.close({isDenied:!0,value:typeof s>"u"?t:s})}).catch(s=>vt(e||void 0,s))):e.close({isDenied:!0,value:t})},_e=(e,t)=>{e.close({isConfirmed:!0,value:t})},vt=(e,t)=>{e.rejectPromise(t)},Oe=(e,t)=>{const n=f.innerParams.get(e||void 0);n.showLoaderOnConfirm&&U(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>K(n.preConfirm(t,n.validationMessage))).then(s=>{b(de())||s===!1?(e.hideLoading(),Q(e)):_e(e,typeof s>"u"?t:s)}).catch(s=>vt(e||void 0,s))):_e(e,t)};function re(){const e=f.innerParams.get(this);if(!e)return;const t=f.domCache.get(this);g(t.loader),we()?e.icon&&h(Z()):jo(t),$([t.popup,t.actions],i.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const jo=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?h(t[0],"inline-block"):wn()&&g(e.actions)};function Ct(){const e=f.innerParams.get(this),t=f.domCache.get(this);return t?fe(t.popup,e.input):null}function xt(e,t,n){const o=f.domCache.get(e);t.forEach(s=>{o[s].disabled=n})}function kt(e,t){const n=w();if(!(!n||!e))if(e.type==="radio"){const o=n.querySelectorAll(`[name="${i.radio}"]`);for(let s=0;s<o.length;s++)o[s].disabled=t}else e.disabled=t}function At(){xt(this,["confirmButton","denyButton","cancelButton"],!1)}function Et(){xt(this,["confirmButton","denyButton","cancelButton"],!0)}function Bt(){kt(this.getInput(),!1)}function Pt(){kt(this.getInput(),!0)}function $t(e){const t=f.domCache.get(this),n=f.innerParams.get(this);k(t.validationMessage,e),t.validationMessage.className=i["validation-message"],n.customClass&&n.customClass.validationMessage&&u(t.validationMessage,n.customClass.validationMessage),h(t.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid","true"),o.setAttribute("aria-describedby",i["validation-message"]),it(o),u(o,i.inputerror))}function Tt(){const e=f.domCache.get(this);e.validationMessage&&g(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),$(t,i.inputerror))}const V={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},zo=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Fo={allowEnterKey:void 0},Ro=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],St=e=>Object.prototype.hasOwnProperty.call(V,e),It=e=>zo.indexOf(e)!==-1,Lt=e=>Fo[e],Vo=e=>{St(e)||y(`Unknown parameter "${e}"`)},qo=e=>{Ro.includes(e)&&y(`The parameter "${e}" is incompatible with toasts`)},Uo=e=>{const t=Lt(e);t&&tt(e,t)},No=e=>{e.backdrop===!1&&e.allowOutsideClick&&y('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)Vo(t),e.toast&&qo(t),Uo(t)};function Ot(e){const t=w(),n=f.innerParams.get(this);if(!t||T(t,n.hideClass.popup)){y("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const o=Wo(e),s=Object.assign({},n,o);dt(this,s),f.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const Wo=e=>{const t={};return Object.keys(e).forEach(n=>{It(n)?t[n]=e[n]:y(`Invalid parameter to update: ${n}`)}),t};function Mt(){const e=f.domCache.get(this),t=f.innerParams.get(this);if(!t){Dt(this);return}e.popup&&l.swalCloseEventFinishedCallback&&(l.swalCloseEventFinishedCallback(),delete l.swalCloseEventFinishedCallback),typeof t.didDestroy=="function"&&t.didDestroy(),l.eventEmitter.emit("didDestroy"),_o(this)}const _o=e=>{Dt(e),delete e.params,delete l.keydownHandler,delete l.keydownTarget,delete l.currentInstance},Dt=e=>{e.isAwaitingPromise?(he(f,e),e.isAwaitingPromise=!0):(he(q,e),he(f,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},he=(e,t)=>{for(const n in e)e[n].delete(t)};var Ko=Object.freeze({__proto__:null,_destroy:Mt,close:L,closeModal:L,closePopup:L,closeToast:L,disableButtons:Et,disableInput:Pt,disableLoading:re,enableButtons:At,enableInput:Bt,getInput:Ct,handleAwaitingPromise:Q,hideLoading:re,rejectPromise:gt,resetValidationMessage:Tt,showValidationMessage:$t,update:Ot});const Yo=(e,t,n)=>{e.toast?Zo(e,t,n):(Go(t),Jo(t),Qo(e,t,n))},Zo=(e,t,n)=>{t.popup.onclick=()=>{e&&(Xo(e)||e.timer||e.input)||n(_.close)}},Xo=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let ae=!1;const Go=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(ae=!0)}}},Jo=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(n){e.popup.onmouseup=()=>{},(n.target===e.popup||n.target instanceof HTMLElement&&e.popup.contains(n.target))&&(ae=!0)}}},Qo=(e,t,n)=>{t.container.onclick=o=>{if(ae){ae=!1;return}o.target===t.container&&ce(e.allowOutsideClick)&&n(_.backdrop)}},es=e=>typeof e=="object"&&e.jquery,Ke=e=>e instanceof Element||es(e),ts=e=>{const t={};return typeof e[0]=="object"&&!Ke(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((n,o)=>{const s=e[o];typeof s=="string"||Ke(s)?t[n]=s:s!==void 0&&z(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`)}),t};function ns(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)}function os(e){class t extends this{_main(o,s){return super._main(o,Object.assign({},e,s))}}return t}const ss=()=>l.timeout&&l.timeout.getTimerLeft(),Ht=()=>{if(l.timeout)return fn(),l.timeout.stop()},jt=()=>{if(l.timeout){const e=l.timeout.start();return Te(e),e}},is=()=>{const e=l.timeout;return e&&(e.running?Ht():jt())},rs=e=>{if(l.timeout){const t=l.timeout.increase(e);return Te(t,!0),t}},as=()=>!!(l.timeout&&l.timeout.isRunning());let Ye=!1;const be={};function ls(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";be[e]=this,Ye||(document.body.addEventListener("click",cs),Ye=!0)}const cs=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const n in be){const o=t.getAttribute(n);if(o){be[n].fire({template:o});return}}};class ds{constructor(){this.events={}}_getHandlersByEventName(t){return typeof this.events[t]>"u"&&(this.events[t]=[]),this.events[t]}on(t,n){const o=this._getHandlersByEventName(t);o.includes(n)||o.push(n)}once(t,n){var o=this;const s=function(){o.removeListener(t,s);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];n.apply(o,a)};this.on(t,s)}emit(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];this._getHandlersByEventName(t).forEach(r=>{try{r.apply(this,o)}catch(a){console.error(a)}})}removeListener(t,n){const o=this._getHandlersByEventName(t),s=o.indexOf(n);s>-1&&o.splice(s,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}l.eventEmitter=new ds;const us=(e,t)=>{l.eventEmitter.on(e,t)},ws=(e,t)=>{l.eventEmitter.once(e,t)},fs=(e,t)=>{if(!e){l.eventEmitter.reset();return}t?l.eventEmitter.removeListener(e,t):l.eventEmitter.removeAllListeners(e)};var ps=Object.freeze({__proto__:null,argsToParams:ts,bindClickHandler:ls,clickCancel:Qn,clickConfirm:ut,clickDeny:Jn,enableLoading:U,fire:ns,getActions:X,getCancelButton:N,getCloseButton:Ee,getConfirmButton:P,getContainer:v,getDenyButton:F,getFocusableElements:Be,getFooter:st,getHtmlContainer:ke,getIcon:Z,getIconContent:an,getImage:ot,getInputLabel:ln,getLoader:W,getPopup:w,getProgressSteps:Ae,getTimerLeft:ss,getTimerProgressBar:ue,getTitle:nt,getValidationMessage:de,increaseTimer:rs,isDeprecatedParameter:Lt,isLoading:dn,isTimerRunning:as,isUpdatableParameter:It,isValidParameter:St,isVisible:Gn,mixin:os,off:fs,on:us,once:ws,resumeTimer:jt,showLoading:U,stopTimer:Ht,toggleTimer:is});class ms{constructor(t,n){this.callback=t,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(t){const n=this.running;return n&&this.stop(),this.remaining+=t,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const zt=["swal-title","swal-html","swal-footer"],hs=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return As(n),Object.assign(gs(n),bs(n),ys(n),vs(n),Cs(n),xs(n),ks(n,zt))},gs=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(o=>{H(o,["name","value"]);const s=o.getAttribute("name"),r=o.getAttribute("value");!s||!r||(typeof V[s]=="boolean"?t[s]=r!=="false":typeof V[s]=="object"?t[s]=JSON.parse(r):t[s]=r)}),t},bs=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(o=>{const s=o.getAttribute("name"),r=o.getAttribute("value");!s||!r||(t[s]=new Function(`return ${r}`)())}),t},ys=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(o=>{H(o,["type","color","aria-label"]);const s=o.getAttribute("type");!s||!["confirm","cancel","deny"].includes(s)||(t[`${s}ButtonText`]=o.innerHTML,t[`show${ve(s)}Button`]=!0,o.hasAttribute("color")&&(t[`${s}ButtonColor`]=o.getAttribute("color")),o.hasAttribute("aria-label")&&(t[`${s}ButtonAriaLabel`]=o.getAttribute("aria-label")))}),t},vs=e=>{const t={},n=e.querySelector("swal-image");return n&&(H(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},Cs=e=>{const t={},n=e.querySelector("swal-icon");return n&&(H(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},xs=e=>{const t={},n=e.querySelector("swal-input");n&&(H(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const o=Array.from(e.querySelectorAll("swal-input-option"));return o.length&&(t.inputOptions={},o.forEach(s=>{H(s,["value"]);const r=s.getAttribute("value");if(!r)return;const a=s.innerHTML;t.inputOptions[r]=a})),t},ks=(e,t)=>{const n={};for(const o in t){const s=t[o],r=e.querySelector(s);r&&(H(r,[]),n[s.replace(/^swal-/,"")]=r.innerHTML.trim())}return n},As=e=>{const t=zt.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(n=>{const o=n.tagName.toLowerCase();t.includes(o)||y(`Unrecognized element <${o}>`)})},H=(e,t)=>{Array.from(e.attributes).forEach(n=>{t.indexOf(n.name)===-1&&y([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},Ft=10,Es=e=>{const t=v(),n=w();typeof e.willOpen=="function"&&e.willOpen(n),l.eventEmitter.emit("willOpen",n);const s=window.getComputedStyle(document.body).overflowY;$s(t,n,e),setTimeout(()=>{Bs(t,n)},Ft),Pe()&&(Ps(t,e.scrollbarPadding,s),ao()),!we()&&!l.previousActiveElement&&(l.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(n)),l.eventEmitter.emit("didOpen",n),$(t,i["no-transition"])},Rt=e=>{const t=w();if(e.target!==t||!D)return;const n=v();t.removeEventListener(D,Rt),n.style.overflowY="auto"},Bs=(e,t)=>{D&&at(t)?(e.style.overflowY="hidden",t.addEventListener(D,Rt)):e.style.overflowY="auto"},Ps=(e,t,n)=>{lo(),t&&n!=="hidden"&&ho(n),setTimeout(()=>{e.scrollTop=0})},$s=(e,t,n)=>{u(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),h(t,"grid"),setTimeout(()=>{u(t,n.showClass.popup),t.style.removeProperty("opacity")},Ft)):h(t,"grid"),u([document.documentElement,document.body],i.shown),n.heightAuto&&n.backdrop&&!n.toast&&u([document.documentElement,document.body],i["height-auto"])};var Ze={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function Ts(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=Ze.email),e.input==="url"&&(e.inputValidator=Ze.url))}function Ss(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(y('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Is(e){Ts(e),e.showLoaderOnConfirm&&!e.preConfirm&&y(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
63
63
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
64
- https://sweetalert2.github.io/#ajax-request`),Ts(e),typeof e.title=="string"&&(e.title=e.title.split(`
65
- `).join("<br />")),bn(e)}let E;var ne=new WeakMap;class m{constructor(){if(Xt(this,ne,void 0),typeof window>"u")return;E=this;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];const s=Object.freeze(this.constructor.argsToParams(n));this.params=s,this.isAwaitingPromise=!1,Gt(ne,this,this._main(E.params))}_main(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(qo(Object.assign({},n,t)),l.currentInstance){const r=q.swalPromiseResolve.get(l.currentInstance),{isAwaitingPromise:a}=l.currentInstance;l.currentInstance._destroy(),a||r({isDismissed:!0}),Pe()&&pt()}l.currentInstance=E;const o=Is(t,n);$s(o),Object.freeze(o),l.timeout&&(l.timeout.stop(),delete l.timeout),clearTimeout(l.restoreFocusTimeout);const s=Ls(E);return dt(E,o),f.innerParams.set(E,o),Ss(E,s,o)}then(t){return ze(ne,this).then(t)}finally(t){return ze(ne,this).finally(t)}}const Ss=(e,t,n)=>new Promise((o,s)=>{const r=a=>{e.close({isDismissed:!0,dismiss:a})};q.swalPromiseResolve.set(e,o),q.swalPromiseReject.set(e,s),t.confirmButton.onclick=()=>{Io(e)},t.denyButton.onclick=()=>{Lo(e)},t.cancelButton.onclick=()=>{Oo(e,r)},t.closeButton.onclick=()=>{r(_.close)},_o(n,t,r),Jn(l,n,r),xo(e,n),ks(n),Os(l,n,r),Ms(t,n),setTimeout(()=>{t.container.scrollTop=0})}),Is=(e,t)=>{const n=ps(e),o=Object.assign({},V,t,n,e);return o.showClass=Object.assign({},V.showClass,o.showClass),o.hideClass=Object.assign({},V.hideClass,o.hideClass),o.animation===!1&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},Ls=e=>{const t={popup:w(),container:v(),actions:X(),confirmButton:B(),denyButton:F(),cancelButton:N(),loader:W(),closeButton:Ee(),validationMessage:de(),progressSteps:Ae()};return f.domCache.set(e,t),t},Os=(e,t,n)=>{const o=ue();g(o),t.timer&&(e.timeout=new fs(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(h(o),C(o,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&$e(t.timer)})))},Ms=(e,t)=>{if(!t.toast){if(!ce(t.allowEnterKey)){tt("allowEnterKey"),js();return}Ds(e)||Hs(e,t)||ge(-1,1)}},Ds=e=>{const t=e.popup.querySelectorAll("[autofocus]");for(const n of t)if(n instanceof HTMLElement&&b(n))return n.focus(),!0;return!1},Hs=(e,t)=>t.focusDeny&&b(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&b(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&b(e.confirmButton)?(e.confirmButton.focus(),!0):!1,js=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const n=document.createElement("audio");n.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",n.loop=!0,document.body.appendChild(n),setTimeout(()=>{n.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}m.prototype.disableButtons=Et;m.prototype.enableButtons=At;m.prototype.getInput=Ct;m.prototype.disableInput=Pt;m.prototype.enableInput=Bt;m.prototype.hideLoading=re;m.prototype.disableLoading=re;m.prototype.showValidationMessage=Tt;m.prototype.resetValidationMessage=$t;m.prototype.close=L;m.prototype.closePopup=L;m.prototype.closeModal=L;m.prototype.closeToast=L;m.prototype.rejectPromise=gt;m.prototype.update=Ot;m.prototype._destroy=Mt;Object.assign(m,ws);Object.keys(Wo).forEach(e=>{m[e]=function(){return E&&E[e]?E[e](...arguments):null}});m.DismissReason=_;m.version="11.14.1";const j=m;j.default=j;typeof document<"u"&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch{n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}');const Xe={cl:e=>Ge(e),pe:e=>/^[0-9]{0,11}$/.test(e)?e:e.replace(/[^0-9]/g,""),"":e=>Ge(e)},Ge=(e="")=>{if(e!==void 0&&e!=""&&e.length>1){var t=e.replace(/\./g,""),n=t.replace(/\s/g,""),o=n.replace(/-/g,""),s=o.substring(0,o.length-1),r="",a=0,c=1;for(a=s.length-1;a>=0;a--){var d=s.charAt(a);r=d+r,c%3==0&&c<=s.length-1&&(r="."+r),c++}var A=o.substring(o.length-1);return r=r+"-"+A,r}return e},zs={cl:e=>le(e),pe:e=>e.length>11||e.length<11?(j.fire({text:"Ruc inválido",title:"El RUC ingresado es inválido",icon:"warning"}),!1):!0,"":e=>le(e)},Fs={cl:e=>le(e),pe:e=>e.length==8?!0:e.length<8?(j.fire({text:"Documento inválido",title:"El documento ingresado es inválido",icon:"warning"}),!1):e.length>11||e.length<11?(j.fire({text:"Documento inválido",title:"El documento ingresado es inválido",icon:"warning"}),!1):!0,"":e=>le(e)},le=e=>{var t,n,o,s,r,a,c,d,A,S="",Vt=e;if(Vt.length>0){if(n=e,t=n.length,t<2)return!1;for(r=0;r<n.length;r++)n.charAt(r)!=" "&&n.charAt(r)!="."&&n.charAt(r)!="-"&&(S=S+n.charAt(r));if(o=S,n=S,t=n.length,t>2?o=n.substring(0,t-1):o=n.charAt(0),s=n.charAt(t-1),o==null||s==null)return!1;var ee="0";for(a=0,c=2,r=o.length-1;r>=0;r--)a=a+(o==null?void 0:o.charAt(r))*c,c==7?c=2:c++;return d=a%11,d==1?ee="k":d==0?ee="0":(A=11-d,ee=A+""),ee!=s.toLowerCase()?(j.fire({text:"Rut inválido",title:"El RUT ingresado es inválido",icon:"warning"}),!1):!0}};class Rs{constructor(t){Me(this,"defaultCountry");this.defaultCountry=t?T(t):""}labels({contry:t=this.defaultCountry,label:n="cliente"}){var a;const o=T(t),s=n.toLocaleLowerCase().trim()||"",r=s==null?void 0:s.normalize("NFD").replace(/[\u0300-\u036f]/g,"");return((a=Nt[o])==null?void 0:a[r])||n}validateFormaterRut({contry:t=this.defaultCountry,rut:n="",isValidate:o=!1}){const s=T(t),r=n&&n.toLocaleLowerCase().trim()||"";return o?zs[s](r):Xe[s](r)}validateFormaterDoc({contry:t=this.defaultCountry,rut:n="",isValidate:o=!1}){const s=T(t),r=n&&n.toLocaleLowerCase().trim()||"";return o?Fs[s](r):Xe[s](r)}formaterCurrency({contry:t=this.defaultCountry,currency:n=0,typeCurrenzy:o=""}){const s=T(t),r=n&&n.toString()||"0";return Kt[s]({currenzy:r,typeCurrenzy:o})}formaterInputProps({contry:t=this.defaultCountry,typeCurrenzy:n="",decimalScale:o,fixedDecimalScale:s}){const r=T(t);try{return(pe==null?void 0:pe[r]({typeCurrenzy:n,decimalScale:o,fixedDecimalScale:s}))||{}}catch{return{}}}formaterAmount({contry:t=this.defaultCountry,amount:n="",typeCurrenzy:o=""}){const s=T(t),r=n&&(n==null?void 0:n.toString().trim())||"";return _t[s]({amount:r,typeCurrenzy:o})}rutValidatorIsNatural({contry:t=this.defaultCountry,rut:n=""}){const o=T(t),s=n&&n.toLocaleLowerCase().trim()||"",r=s==null?void 0:s.replaceAll(".","").replaceAll("-","");return Yt[o](r)||!1}symbolCurrencyIndicadorCartera({contry:t=this.defaultCountry}){const n=T(t);return Wt[n]||""}}exports.Faastlocation=Rs;
64
+ https://sweetalert2.github.io/#ajax-request`),Ss(e),typeof e.title=="string"&&(e.title=e.title.split(`
65
+ `).join("<br />")),vn(e)}let B;var ne=new WeakMap;class m{constructor(){if(Jt(this,ne,void 0),typeof window>"u")return;B=this;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];const s=Object.freeze(this.constructor.argsToParams(n));this.params=s,this.isAwaitingPromise=!1,Qt(ne,this,this._main(B.params))}_main(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(No(Object.assign({},n,t)),l.currentInstance){const r=q.swalPromiseResolve.get(l.currentInstance),{isAwaitingPromise:a}=l.currentInstance;l.currentInstance._destroy(),a||r({isDismissed:!0}),Pe()&&pt()}l.currentInstance=B;const o=Os(t,n);Is(o),Object.freeze(o),l.timeout&&(l.timeout.stop(),delete l.timeout),clearTimeout(l.restoreFocusTimeout);const s=Ms(B);return dt(B,o),f.innerParams.set(B,o),Ls(B,s,o)}then(t){return ze(ne,this).then(t)}finally(t){return ze(ne,this).finally(t)}}const Ls=(e,t,n)=>new Promise((o,s)=>{const r=a=>{e.close({isDismissed:!0,dismiss:a})};q.swalPromiseResolve.set(e,o),q.swalPromiseReject.set(e,s),t.confirmButton.onclick=()=>{Oo(e)},t.denyButton.onclick=()=>{Mo(e)},t.cancelButton.onclick=()=>{Do(e,r)},t.closeButton.onclick=()=>{r(_.close)},Yo(n,t,r),eo(l,n,r),Ao(e,n),Es(n),Ds(l,n,r),Hs(t,n),setTimeout(()=>{t.container.scrollTop=0})}),Os=(e,t)=>{const n=hs(e),o=Object.assign({},V,t,n,e);return o.showClass=Object.assign({},V.showClass,o.showClass),o.hideClass=Object.assign({},V.hideClass,o.hideClass),o.animation===!1&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},Ms=e=>{const t={popup:w(),container:v(),actions:X(),confirmButton:P(),denyButton:F(),cancelButton:N(),loader:W(),closeButton:Ee(),validationMessage:de(),progressSteps:Ae()};return f.domCache.set(e,t),t},Ds=(e,t,n)=>{const o=ue();g(o),t.timer&&(e.timeout=new ms(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(h(o),C(o,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&Te(t.timer)})))},Hs=(e,t)=>{if(!t.toast){if(!ce(t.allowEnterKey)){tt("allowEnterKey"),Fs();return}js(e)||zs(e,t)||ge(-1,1)}},js=e=>{const t=e.popup.querySelectorAll("[autofocus]");for(const n of t)if(n instanceof HTMLElement&&b(n))return n.focus(),!0;return!1},zs=(e,t)=>t.focusDeny&&b(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&b(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&b(e.confirmButton)?(e.confirmButton.focus(),!0):!1,Fs=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const n=document.createElement("audio");n.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",n.loop=!0,document.body.appendChild(n),setTimeout(()=>{n.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}m.prototype.disableButtons=Et;m.prototype.enableButtons=At;m.prototype.getInput=Ct;m.prototype.disableInput=Pt;m.prototype.enableInput=Bt;m.prototype.hideLoading=re;m.prototype.disableLoading=re;m.prototype.showValidationMessage=$t;m.prototype.resetValidationMessage=Tt;m.prototype.close=L;m.prototype.closePopup=L;m.prototype.closeModal=L;m.prototype.closeToast=L;m.prototype.rejectPromise=gt;m.prototype.update=Ot;m.prototype._destroy=Mt;Object.assign(m,ps);Object.keys(Ko).forEach(e=>{m[e]=function(){return B&&B[e]?B[e](...arguments):null}});m.DismissReason=_;m.version="11.14.1";const j=m;j.default=j;typeof document<"u"&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch{n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}');const Xe={cl:e=>Ge(e),pe:e=>/^[0-9]{0,11}$/.test(e)?e:e.replace(/[^0-9]/g,""),"":e=>Ge(e)},Ge=(e="")=>{if(e!==void 0&&e!=""&&e.length>1){var t=e.replace(/\./g,""),n=t.replace(/\s/g,""),o=n.replace(/-/g,""),s=o.substring(0,o.length-1),r="",a=0,c=1;for(a=s.length-1;a>=0;a--){var d=s.charAt(a);r=d+r,c%3==0&&c<=s.length-1&&(r="."+r),c++}var A=o.substring(o.length-1);return r=r+"-"+A,r}return e},Rs={cl:e=>le(e),pe:e=>e.length>11||e.length<11?(j.fire({text:"Ruc inválido",title:"El RUC ingresado es inválido",icon:"warning"}),!1):!0,"":e=>le(e)},Vs={cl:e=>le(e),pe:e=>e.length==8?!0:e.length<8?(j.fire({text:"Documento inválido",title:"El documento ingresado es inválido",icon:"warning"}),!1):e.length>11||e.length<11?(j.fire({text:"Documento inválido",title:"El documento ingresado es inválido",icon:"warning"}),!1):!0,"":e=>le(e)},le=e=>{var t,n,o,s,r,a,c,d,A,S="",Vt=e;if(Vt.length>0){if(n=e,t=n.length,t<2)return!1;for(r=0;r<n.length;r++)n.charAt(r)!=" "&&n.charAt(r)!="."&&n.charAt(r)!="-"&&(S=S+n.charAt(r));if(o=S,n=S,t=n.length,t>2?o=n.substring(0,t-1):o=n.charAt(0),s=n.charAt(t-1),o==null||s==null)return!1;var ee="0";for(a=0,c=2,r=o.length-1;r>=0;r--)a=a+(o==null?void 0:o.charAt(r))*c,c==7?c=2:c++;return d=a%11,d==1?ee="k":d==0?ee="0":(A=11-d,ee=A+""),ee!=s.toLowerCase()?(j.fire({text:"Rut inválido",title:"El RUT ingresado es inválido",icon:"warning"}),!1):!0}};class qs{constructor(t){Me(this,"defaultCountry");this.defaultCountry=t?E(t):""}labels({contry:t=this.defaultCountry,label:n="cliente"}){var a;const o=E(t),s=n.toLocaleLowerCase().trim()||"",r=s==null?void 0:s.normalize("NFD").replace(/[\u0300-\u036f]/g,"");return((a=Nt[o])==null?void 0:a[r])||n}validateFormaterRut({contry:t=this.defaultCountry,rut:n="",isValidate:o=!1}){const s=E(t),r=n&&n.toLocaleLowerCase().trim()||"";return o?Rs[s](r):Xe[s](r)}validateFormaterDoc({contry:t=this.defaultCountry,rut:n="",isValidate:o=!1}){const s=E(t),r=n&&n.toLocaleLowerCase().trim()||"";return o?Vs[s](r):Xe[s](r)}formaterCurrency({contry:t=this.defaultCountry,currency:n=0,typeCurrenzy:o=""}){const s=E(t),r=n&&n.toString()||"0";return Kt[s]({currenzy:r,typeCurrenzy:o})}formaterInputProps({contry:t=this.defaultCountry,typeCurrenzy:n="",decimalScale:o,fixedDecimalScale:s}){const r=E(t);try{return(pe==null?void 0:pe[r]({typeCurrenzy:n,decimalScale:o,fixedDecimalScale:s}))||{}}catch{return{}}}formaterAmount({contry:t=this.defaultCountry,amount:n="",typeCurrenzy:o=""}){const s=E(t),r=n&&(n==null?void 0:n.toString().trim())||"";return _t[s]({amount:r,typeCurrenzy:o})}rutValidatorIsNatural({contry:t=this.defaultCountry,rut:n=""}){const o=E(t),s=n&&n.toLocaleLowerCase().trim()||"",r=s==null?void 0:s.replaceAll(".","").replaceAll("-","");return Xt[o](r)||!1}symbolCurrencyIndicadorCartera({contry:t=this.defaultCountry}){const n=E(t);return Wt[n]||""}formaterNumDocument({contry:t=this.defaultCountry,value:n=""}){const o=E(t);return Zt[o](n)||n}}exports.Faastlocation=qs;
package/dist/main.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FormaterAmountInterface, FormaterCurrencyInterface, FormaterRut, InterfaceLabels, RutValidatorIsNaturalinterface, symbolCurrencyIndicadorCarterainterface } from './models/interfaces';
1
+ import { FormaterAmountInterface, FormaterCurrencyInterface, formaterNumDocumentinterface, FormaterRut, InterfaceLabels, RutValidatorIsNaturalinterface, symbolCurrencyIndicadorCarterainterface } from './models/interfaces';
2
2
  export interface FaastlocationInterface {
3
3
  labels: ({ contry, label }: InterfaceLabels) => string;
4
4
  validateFormaterRut: ({ contry, rut, isValidate }: FormaterRut) => string | boolean;
@@ -8,6 +8,7 @@ export interface FaastlocationInterface {
8
8
  formaterAmount: ({ contry, amount }: FormaterAmountInterface) => string;
9
9
  rutValidatorIsNatural: ({ contry, rut }: RutValidatorIsNaturalinterface) => boolean;
10
10
  symbolCurrencyIndicadorCartera: ({ contry }: symbolCurrencyIndicadorCarterainterface) => string;
11
+ formaterNumDocument: ({ contry, value }: formaterNumDocumentinterface) => string;
11
12
  }
12
13
  export declare class Faastlocation implements FaastlocationInterface {
13
14
  private defaultCountry;
@@ -29,4 +30,5 @@ export declare class Faastlocation implements FaastlocationInterface {
29
30
  formaterAmount({ contry, amount, typeCurrenzy }: FormaterAmountInterface): string;
30
31
  rutValidatorIsNatural({ contry, rut }: RutValidatorIsNaturalinterface): boolean;
31
32
  symbolCurrencyIndicadorCartera({ contry }: symbolCurrencyIndicadorCarterainterface | any): string;
33
+ formaterNumDocument({ contry, value }: formaterNumDocumentinterface | any): string;
32
34
  }