@sofiakb/elf-js 0.0.1-dev.0 → 0.0.1-dev.1

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.
@@ -0,0 +1,65 @@
1
+ (function(p,V){typeof exports=="object"&&typeof module<"u"?V(exports):typeof define=="function"&&define.amd?define(["exports"],V):(p=typeof globalThis<"u"?globalThis:p||self,V(p["elf-js"]={}))})(this,function(p){"use strict";var V=typeof global=="object"&&global&&global.Object===Object&&global,En=typeof self=="object"&&self&&self.Object===Object&&self,S=V||En||Function("return this")(),ie=S.Symbol,Qe=Object.prototype,Pn=Qe.hasOwnProperty,$n=Qe.toString,Z=ie?ie.toStringTag:void 0;function Bn(e){var t=Pn.call(e,Z),n=e[Z];try{e[Z]=void 0;var o=!0}catch{}var r=$n.call(e);return o&&(t?e[Z]=n:delete e[Z]),r}var Sn=Object.prototype,jn=Sn.toString;function Ln(e){return jn.call(e)}var In="[object Null]",On="[object Undefined]",et=ie?ie.toStringTag:void 0;function G(e){return e==null?e===void 0?On:In:et&&et in Object(e)?Bn(e):Ln(e)}function xe(e){return e!=null&&typeof e=="object"}var Mn=Array.isArray;function tt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Hn="[object AsyncFunction]",Dn="[object Function]",Fn="[object GeneratorFunction]",zn="[object Proxy]";function nt(e){if(!tt(e))return!1;var t=G(e);return t==Dn||t==Fn||t==Hn||t==zn}var Ae=S["__core-js_shared__"],ot=function(){var e=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Vn(e){return!!ot&&ot in e}var qn=Function.prototype,Rn=qn.toString;function I(e){if(e!=null){try{return Rn.call(e)}catch{}try{return e+""}catch{}}return""}var Nn=/[\\^$.*+?()[\]{}|]/g,Wn=/^\[object .+?Constructor\]$/,Un=Function.prototype,_n=Object.prototype,Yn=Un.toString,Kn=_n.hasOwnProperty,Xn=RegExp("^"+Yn.call(Kn).replace(Nn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zn(e){if(!tt(e)||Vn(e))return!1;var t=nt(e)?Xn:Wn;return t.test(I(e))}function Gn(e,t){return e==null?void 0:e[t]}function J(e,t){var n=Gn(e,t);return Zn(n)?n:void 0}var Te=J(S,"WeakMap"),Jn=9007199254740991;function rt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Jn}function Qn(e){return e!=null&&rt(e.length)&&!nt(e)}var eo=Object.prototype;function st(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||eo;return e===n}var to="[object Arguments]";function it(e){return xe(e)&&G(e)==to}var at=Object.prototype,no=at.hasOwnProperty,oo=at.propertyIsEnumerable,ro=it(function(){return arguments}())?it:function(e){return xe(e)&&no.call(e,"callee")&&!oo.call(e,"callee")};function so(){return!1}var lt=typeof p=="object"&&p&&!p.nodeType&&p,ct=lt&&typeof module=="object"&&module&&!module.nodeType&&module,io=ct&&ct.exports===lt,dt=io?S.Buffer:void 0,ao=dt?dt.isBuffer:void 0,lo=ao||so,co="[object Arguments]",uo="[object Array]",wo="[object Boolean]",fo="[object Date]",mo="[object Error]",go="[object Function]",ho="[object Map]",po="[object Number]",bo="[object Object]",yo="[object RegExp]",vo="[object Set]",ko="[object String]",Co="[object WeakMap]",xo="[object ArrayBuffer]",Ao="[object DataView]",To="[object Float32Array]",Eo="[object Float64Array]",Po="[object Int8Array]",$o="[object Int16Array]",Bo="[object Int32Array]",So="[object Uint8Array]",jo="[object Uint8ClampedArray]",Lo="[object Uint16Array]",Io="[object Uint32Array]",f={};f[To]=f[Eo]=f[Po]=f[$o]=f[Bo]=f[So]=f[jo]=f[Lo]=f[Io]=!0,f[co]=f[uo]=f[xo]=f[wo]=f[Ao]=f[fo]=f[mo]=f[go]=f[ho]=f[po]=f[bo]=f[yo]=f[vo]=f[ko]=f[Co]=!1;function Oo(e){return xe(e)&&rt(e.length)&&!!f[G(e)]}function Mo(e){return function(t){return e(t)}}var ut=typeof p=="object"&&p&&!p.nodeType&&p,Q=ut&&typeof module=="object"&&module&&!module.nodeType&&module,Ho=Q&&Q.exports===ut,Ee=Ho&&V.process,wt=function(){try{var e=Q&&Q.require&&Q.require("util").types;return e||Ee&&Ee.binding&&Ee.binding("util")}catch{}}(),ft=wt&&wt.isTypedArray,Do=ft?Mo(ft):Oo;function Fo(e,t){return function(n){return e(t(n))}}var zo=Fo(Object.keys,Object),Vo=Object.prototype,qo=Vo.hasOwnProperty;function Ro(e){if(!st(e))return zo(e);var t=[];for(var n in Object(e))qo.call(e,n)&&n!="constructor"&&t.push(n);return t}var Pe=J(S,"Map"),$e=J(S,"DataView"),Be=J(S,"Promise"),Se=J(S,"Set"),mt="[object Map]",No="[object Object]",gt="[object Promise]",ht="[object Set]",pt="[object WeakMap]",bt="[object DataView]",Wo=I($e),Uo=I(Pe),_o=I(Be),Yo=I(Se),Ko=I(Te),O=G;($e&&O(new $e(new ArrayBuffer(1)))!=bt||Pe&&O(new Pe)!=mt||Be&&O(Be.resolve())!=gt||Se&&O(new Se)!=ht||Te&&O(new Te)!=pt)&&(O=function(e){var t=G(e),n=t==No?e.constructor:void 0,o=n?I(n):"";if(o)switch(o){case Wo:return bt;case Uo:return mt;case _o:return gt;case Yo:return ht;case Ko:return pt}return t});var Xo="[object Map]",Zo="[object Set]",Go=Object.prototype,Jo=Go.hasOwnProperty;function Qo(e){if(e==null)return!0;if(Qn(e)&&(Mn(e)||typeof e=="string"||typeof e.splice=="function"||lo(e)||Do(e)||ro(e)))return!e.length;var t=O(e);if(t==Xo||t==Zo)return!e.size;if(st(e))return!Ro(e).length;for(var n in e)if(Jo.call(e,n))return!1;return!0}function er(e){return e==null}const tr=e=>{if(Qo(e==null?void 0:e.toString()))return null;const t=(e==null?void 0:e.toString())??"",o=/calc\(([^)]+)\)/.exec(t);return er(o==null?void 0:o[1])?t.includes("%")||isNaN(Number(t))?isNaN(parseInt(t))?null:t:parseInt(t)+"px":t},nr=e=>btoa(encodeURI(`${e.name??e??"name"}-${e.id??-1}`)),or=(e,t=!0)=>typeof e<"u"&&(t?e!==null:!0),je=(e,t)=>{if(e=e.replace(/^#/,""),!/^([0-9A-Fa-f]{6})$/.test(e))throw new Error("Invalid hex color code");const n=parseInt(e,16),o=n>>16&255,r=n>>8&255,i=n&255;if(isNaN(o)||isNaN(r)||isNaN(i))throw new Error("Invalid hex color code");return{r:o,g:r,b:i,a:t>1?t/100:t}},rr=(e,t)=>{const{r:n,g:o,b:r,a:i}=je(e,t);return`rgba(${n}, ${o}, ${r}, ${i})`},sr=e=>{const{r:t,g:n,b:o}=je(e,1);return{r:t,g:n,b:o}};/*!
2
+ * sweetalert2 v11.19.1
3
+ * Released under the MIT License.
4
+ */function yt(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 ir(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function vt(e,t){return e.get(yt(e,t))}function ar(e,t,n){ir(e,t),t.set(e,n)}function lr(e,t,n){return e.set(yt(e,t),n),n}const cr=100,a={},dr=()=>{a.previousActiveElement instanceof HTMLElement?(a.previousActiveElement.focus(),a.previousActiveElement=null):document.body&&document.body.focus()},ur=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,o=window.scrollY;a.restoreFocusTimeout=setTimeout(()=>{dr(),t()},cr),window.scrollTo(n,o)}),kt="swal2-",s=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","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","draggable","dragging"].reduce((e,t)=>(e[t]=kt+t,e),{}),ae=["success","warning","info","question","error"].reduce((e,t)=>(e[t]=kt+t,e),{}),Ct="SweetAlert2:",Le=e=>e.charAt(0).toUpperCase()+e.slice(1),v=e=>{console.warn(`${Ct} ${typeof e=="object"?e.join(" "):e}`)},M=e=>{console.error(`${Ct} ${e}`)},xt=[],wr=e=>{xt.includes(e)||(xt.push(e),v(e))},At=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;wr(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},le=e=>typeof e=="function"?e():e,Ie=e=>e&&typeof e.toPromise=="function",ee=e=>Ie(e)?e.toPromise():Promise.resolve(e),Oe=e=>e&&Promise.resolve(e)===e,k=()=>document.body.querySelector(`.${s.container}`),te=e=>{const t=k();return t?t.querySelector(e):null},x=e=>te(`.${e}`),d=()=>x(s.popup),q=()=>x(s.icon),fr=()=>x(s["icon-content"]),Tt=()=>x(s.title),Me=()=>x(s["html-container"]),Et=()=>x(s.image),He=()=>x(s["progress-steps"]),ce=()=>x(s["validation-message"]),P=()=>te(`.${s.actions} .${s.confirm}`),R=()=>te(`.${s.actions} .${s.cancel}`),H=()=>te(`.${s.actions} .${s.deny}`),mr=()=>x(s["input-label"]),N=()=>te(`.${s.loader}`),ne=()=>x(s.actions),Pt=()=>x(s.footer),de=()=>x(s["timer-progress-bar"]),De=()=>x(s.close),gr=`
5
+ a[href],
6
+ area[href],
7
+ input:not([disabled]),
8
+ select:not([disabled]),
9
+ textarea:not([disabled]),
10
+ button:not([disabled]),
11
+ iframe,
12
+ object,
13
+ embed,
14
+ [tabindex="0"],
15
+ [contenteditable],
16
+ audio[controls],
17
+ video[controls],
18
+ summary
19
+ `,Fe=()=>{const e=d();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((i,l)=>{const c=parseInt(i.getAttribute("tabindex")||"0"),m=parseInt(l.getAttribute("tabindex")||"0");return c>m?1:c<m?-1:0}),o=e.querySelectorAll(gr),r=Array.from(o).filter(i=>i.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(r))].filter(i=>C(i))},ze=()=>B(document.body,s.shown)&&!B(document.body,s["toast-shown"])&&!B(document.body,s["no-backdrop"]),ue=()=>{const e=d();return e?B(e,s.toast):!1},hr=()=>{const e=d();return e?e.hasAttribute("data-loading"):!1},A=(e,t)=>{if(e.textContent="",t){const o=new DOMParser().parseFromString(t,"text/html"),r=o.querySelector("head");r&&Array.from(r.childNodes).forEach(l=>{e.appendChild(l)});const i=o.querySelector("body");i&&Array.from(i.childNodes).forEach(l=>{l instanceof HTMLVideoElement||l instanceof HTMLAudioElement?e.appendChild(l.cloneNode(!0)):e.appendChild(l)})}},B=(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},pr=(e,t)=>{Array.from(e.classList).forEach(n=>{!Object.values(s).includes(n)&&!Object.values(ae).includes(n)&&!Object.values(t.showClass||{}).includes(n)&&e.classList.remove(n)})},T=(e,t,n)=>{if(pr(e,t),!t.customClass)return;const o=t.customClass[n];if(o){if(typeof o!="string"&&!o.forEach){v(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof o}"`);return}u(e,o)}},we=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${s.popup} > .${s[t]}`);case"checkbox":return e.querySelector(`.${s.popup} > .${s.checkbox} input`);case"radio":return e.querySelector(`.${s.popup} > .${s.radio} input:checked`)||e.querySelector(`.${s.popup} > .${s.radio} input:first-child`);case"range":return e.querySelector(`.${s.popup} > .${s.range} input`);default:return e.querySelector(`.${s.popup} > .${s.input}`)}},$t=e=>{if(e.focus(),e.type!=="file"){const t=e.value;e.value="",e.value=t}},Bt=(e,t,n)=>{!e||!t||(typeof t=="string"&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(o=>{Array.isArray(e)?e.forEach(r=>{n?r.classList.add(o):r.classList.remove(o)}):n?e.classList.add(o):e.classList.remove(o)}))},u=(e,t)=>{Bt(e,t,!0)},E=(e,t)=>{Bt(e,t,!1)},j=(e,t)=>{const n=Array.from(e.children);for(let o=0;o<n.length;o++){const r=n[o];if(r instanceof HTMLElement&&B(r,t))return r}},D=(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)},b=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";e&&(e.style.display=t)},y=e=>{e&&(e.style.display="none")},Ve=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";e&&new MutationObserver(()=>{oe(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},St=(e,t,n,o)=>{const r=e.querySelector(t);r&&r.style.setProperty(n,o)},oe=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";t?b(e,n):y(e)},C=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),br=()=>!C(P())&&!C(H())&&!C(R()),jt=e=>e.scrollHeight>e.clientHeight,Lt=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},qe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=de();n&&C(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},yr=()=>{const e=de();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}%`},vr=()=>typeof window>"u"||typeof document>"u",kr=`
20
+ <div aria-labelledby="${s.title}" aria-describedby="${s["html-container"]}" class="${s.popup}" tabindex="-1">
21
+ <button type="button" class="${s.close}"></button>
22
+ <ul class="${s["progress-steps"]}"></ul>
23
+ <div class="${s.icon}"></div>
24
+ <img class="${s.image}" />
25
+ <h2 class="${s.title}" id="${s.title}"></h2>
26
+ <div class="${s["html-container"]}" id="${s["html-container"]}"></div>
27
+ <input class="${s.input}" id="${s.input}" />
28
+ <input type="file" class="${s.file}" />
29
+ <div class="${s.range}">
30
+ <input type="range" />
31
+ <output></output>
32
+ </div>
33
+ <select class="${s.select}" id="${s.select}"></select>
34
+ <div class="${s.radio}"></div>
35
+ <label class="${s.checkbox}">
36
+ <input type="checkbox" id="${s.checkbox}" />
37
+ <span class="${s.label}"></span>
38
+ </label>
39
+ <textarea class="${s.textarea}" id="${s.textarea}"></textarea>
40
+ <div class="${s["validation-message"]}" id="${s["validation-message"]}"></div>
41
+ <div class="${s.actions}">
42
+ <div class="${s.loader}"></div>
43
+ <button type="button" class="${s.confirm}"></button>
44
+ <button type="button" class="${s.deny}"></button>
45
+ <button type="button" class="${s.cancel}"></button>
46
+ </div>
47
+ <div class="${s.footer}"></div>
48
+ <div class="${s["timer-progress-bar-container"]}">
49
+ <div class="${s["timer-progress-bar"]}"></div>
50
+ </div>
51
+ </div>
52
+ `.replace(/(^|\n)\s*/g,""),Cr=()=>{const e=k();return e?(e.remove(),E([document.documentElement,document.body],[s["no-backdrop"],s["toast-shown"],s["has-column"]]),!0):!1},F=()=>{a.currentInstance.resetValidationMessage()},xr=()=>{const e=d(),t=j(e,s.input),n=j(e,s.file),o=e.querySelector(`.${s.range} input`),r=e.querySelector(`.${s.range} output`),i=j(e,s.select),l=e.querySelector(`.${s.checkbox} input`),c=j(e,s.textarea);t.oninput=F,n.onchange=F,i.onchange=F,l.onchange=F,c.oninput=F,o.oninput=()=>{F(),r.value=o.value},o.onchange=()=>{F(),r.value=o.value}},Ar=e=>typeof e=="string"?document.querySelector(e):e,Tr=e=>{const t=d();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},Er=e=>{window.getComputedStyle(e).direction==="rtl"&&u(k(),s.rtl)},Pr=e=>{const t=Cr();if(vr()){M("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=s.container,t&&u(n,s["no-transition"]),A(n,kr),n.dataset.swal2Theme=e.theme;const o=Ar(e.target);o.appendChild(n),Tr(e),Er(o),xr()},Re=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?$r(e,t):e&&A(t,e)},$r=(e,t)=>{e.jquery?Br(t,e):A(t,e.toString())},Br=(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))},Sr=(e,t)=>{const n=ne(),o=N();!n||!o||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?y(n):b(n),T(n,t,"actions"),jr(n,o,t),A(o,t.loaderHtml||""),T(o,t,"loader"))};function jr(e,t,n){const o=P(),r=H(),i=R();!o||!r||!i||(We(o,"confirm",n),We(r,"deny",n),We(i,"cancel",n),Lr(o,r,i,n),n.reverseButtons&&(n.toast?(e.insertBefore(i,o),e.insertBefore(r,o)):(e.insertBefore(i,t),e.insertBefore(r,t),e.insertBefore(o,t))))}function Lr(e,t,n,o){if(!o.buttonsStyling){E([e,t,n],s.styled);return}u([e,t,n],s.styled),o.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",o.confirmButtonColor),o.denyButtonColor&&t.style.setProperty("--swal2-deny-button-background-color",o.denyButtonColor),o.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",o.cancelButtonColor),Ne(e),Ne(t),Ne(n)}function Ne(e){const t=window.getComputedStyle(e),n=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-outline",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function We(e,t,n){const o=Le(t);oe(e,n[`show${o}Button`],"inline-block"),A(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=s[t],T(e,n,`${t}Button`)}const Ir=(e,t)=>{const n=De();n&&(A(n,t.closeButtonHtml||""),T(n,t,"closeButton"),oe(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Or=(e,t)=>{const n=k();n&&(Mr(n,t.backdrop),Hr(n,t.position),Dr(n,t.grow),T(n,t,"container"))};function Mr(e,t){typeof t=="string"?e.style.background=t:t||u([document.documentElement,document.body],s["no-backdrop"])}function Hr(e,t){t&&(t in s?u(e,s[t]):(v('The "position" parameter is not valid, defaulting to "center"'),u(e,s.center)))}function Dr(e,t){t&&u(e,s[`grow-${t}`])}var w={innerParams:new WeakMap,domCache:new WeakMap};const Fr=["input","file","range","select","radio","checkbox","textarea"],zr=(e,t)=>{const n=d();if(!n)return;const o=w.innerParams.get(e),r=!o||t.input!==o.input;Fr.forEach(i=>{const l=j(n,s[i]);l&&(Rr(i,t.inputAttributes),l.className=s[i],r&&y(l))}),t.input&&(r&&Vr(t),Nr(t))},Vr=e=>{if(!e.input)return;if(!g[e.input]){M(`Unexpected type of input! Expected ${Object.keys(g).join(" | ")}, got "${e.input}"`);return}const t=It(e.input);if(!t)return;const n=g[e.input](t,e);b(t),e.inputAutoFocus&&setTimeout(()=>{$t(n)})},qr=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)}},Rr=(e,t)=>{const n=d();if(!n)return;const o=we(n,e);if(o){qr(o);for(const r in t)o.setAttribute(r,t[r])}},Nr=e=>{if(!e.input)return;const t=It(e.input);t&&T(t,e,"input")},Ue=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},re=(e,t,n)=>{if(n.inputLabel){const o=document.createElement("label"),r=s["input-label"];o.setAttribute("for",e.id),o.className=r,typeof n.customClass=="object"&&u(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},It=e=>{const t=d();if(t)return j(t,s[e]||s.input)},fe=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:Oe(t)||v(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},g={};g.text=g.email=g.password=g.number=g.tel=g.url=g.search=g.date=g["datetime-local"]=g.time=g.week=g.month=(e,t)=>(fe(e,t.inputValue),re(e,e,t),Ue(e,t),e.type=t.input,e),g.file=(e,t)=>(re(e,e,t),Ue(e,t),e),g.range=(e,t)=>{const n=e.querySelector("input"),o=e.querySelector("output");return fe(n,t.inputValue),n.type=t.input,fe(o,t.inputValue),re(n,e,t),e},g.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");A(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return re(e,e,t),e},g.radio=e=>(e.textContent="",e),g.checkbox=(e,t)=>{const n=we(d(),"checkbox");n.value="1",n.checked=!!t.inputValue;const o=e.querySelector("span");return A(o,t.inputPlaceholder||t.inputLabel),n},g.textarea=(e,t)=>{fe(e,t.inputValue),Ue(e,t),re(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(d()).width),r=()=>{if(!document.body.contains(e))return;const i=e.offsetWidth+n(e);i>o?d().style.width=`${i}px`:D(d(),"width",t.width)};new MutationObserver(r).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const Wr=(e,t)=>{const n=Me();n&&(Ve(n),T(n,t,"htmlContainer"),t.html?(Re(t.html,n),b(n,"block")):t.text?(n.textContent=t.text,b(n,"block")):y(n),zr(e,t))},Ur=(e,t)=>{const n=Pt();n&&(Ve(n),oe(n,t.footer,"block"),t.footer&&Re(t.footer,n),T(n,t,"footer"))},_r=(e,t)=>{const n=w.innerParams.get(e),o=q();if(!o)return;if(n&&t.icon===n.icon){Ht(o,t),Ot(o,t);return}if(!t.icon&&!t.iconHtml){y(o);return}if(t.icon&&Object.keys(ae).indexOf(t.icon)===-1){M(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),y(o);return}b(o),Ht(o,t),Ot(o,t),u(o,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Mt)},Ot=(e,t)=>{for(const[n,o]of Object.entries(ae))t.icon!==n&&E(e,o);u(e,t.icon&&ae[t.icon]),Xr(e,t),Mt(),T(e,t,"icon")},Mt=()=>{const e=d();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},Yr=`
53
+ <div class="swal2-success-circular-line-left"></div>
54
+ <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
55
+ <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
56
+ <div class="swal2-success-circular-line-right"></div>
57
+ `,Kr=`
58
+ <span class="swal2-x-mark">
59
+ <span class="swal2-x-mark-line-left"></span>
60
+ <span class="swal2-x-mark-line-right"></span>
61
+ </span>
62
+ `,Ht=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,o="";t.iconHtml?o=Dt(t.iconHtml):t.icon==="success"?(o=Yr,n=n.replace(/ style=".*?"/g,"")):t.icon==="error"?o=Kr:t.icon&&(o=Dt({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==o.trim()&&A(e,o)},Xr=(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"])St(e,n,"background-color",t.iconColor);St(e,".swal2-success-ring","border-color",t.iconColor)}},Dt=e=>`<div class="${s["icon-content"]}">${e}</div>`,Zr=(e,t)=>{const n=Et();if(n){if(!t.imageUrl){y(n);return}b(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),D(n,"width",t.imageWidth),D(n,"height",t.imageHeight),n.className=s.image,T(n,t,"image")}};let _e=!1,Ft=0,zt=0,Vt=0,qt=0;const Gr=e=>{e.addEventListener("mousedown",me),document.body.addEventListener("mousemove",ge),e.addEventListener("mouseup",he),e.addEventListener("touchstart",me),document.body.addEventListener("touchmove",ge),e.addEventListener("touchend",he)},Jr=e=>{e.removeEventListener("mousedown",me),document.body.removeEventListener("mousemove",ge),e.removeEventListener("mouseup",he),e.removeEventListener("touchstart",me),document.body.removeEventListener("touchmove",ge),e.removeEventListener("touchend",he)},me=e=>{const t=d();if(e.target===t||q().contains(e.target)){_e=!0;const n=Rt(e);Ft=n.clientX,zt=n.clientY,Vt=parseInt(t.style.insetInlineStart)||0,qt=parseInt(t.style.insetBlockStart)||0,u(t,"swal2-dragging")}},ge=e=>{const t=d();if(_e){let{clientX:n,clientY:o}=Rt(e);t.style.insetInlineStart=`${Vt+(n-Ft)}px`,t.style.insetBlockStart=`${qt+(o-zt)}px`}},he=()=>{const e=d();_e=!1,E(e,"swal2-dragging")},Rt=e=>{let t=0,n=0;return e.type.startsWith("mouse")?(t=e.clientX,n=e.clientY):e.type.startsWith("touch")&&(t=e.touches[0].clientX,n=e.touches[0].clientY),{clientX:t,clientY:n}},Qr=(e,t)=>{const n=k(),o=d();if(!(!n||!o)){if(t.toast){D(n,"width",t.width),o.style.width="100%";const r=N();r&&o.insertBefore(r,q())}else D(o,"width",t.width);D(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),y(ce()),es(o,t),t.draggable&&!t.toast?(u(o,s.draggable),Gr(o)):(E(o,s.draggable),Jr(o))}},es=(e,t)=>{const n=t.showClass||{};e.className=`${s.popup} ${C(e)?n.popup:""}`,t.toast?(u([document.documentElement,document.body],s["toast-shown"]),u(e,s.toast)):u(e,s.modal),T(e,t,"popup"),typeof t.customClass=="string"&&u(e,t.customClass),t.icon&&u(e,s[`icon-${t.icon}`])},ts=(e,t)=>{const n=He();if(!n)return;const{progressSteps:o,currentProgressStep:r}=t;if(!o||o.length===0||r===void 0){y(n);return}b(n),n.textContent="",r>=o.length&&v("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((i,l)=>{const c=ns(i);if(n.appendChild(c),l===r&&u(c,s["active-progress-step"]),l!==o.length-1){const m=os(t);n.appendChild(m)}})},ns=e=>{const t=document.createElement("li");return u(t,s["progress-step"]),A(t,e),t},os=e=>{const t=document.createElement("li");return u(t,s["progress-step-line"]),e.progressStepsDistance&&D(t,"width",e.progressStepsDistance),t},rs=(e,t)=>{const n=Tt();n&&(Ve(n),oe(n,t.title||t.titleText,"block"),t.title&&Re(t.title,n),t.titleText&&(n.innerText=t.titleText),T(n,t,"title"))},Nt=(e,t)=>{Qr(e,t),Or(e,t),ts(e,t),_r(e,t),Zr(e,t),rs(e,t),Ir(e,t),Wr(e,t),Sr(e,t),Ur(e,t);const n=d();typeof t.didRender=="function"&&n&&t.didRender(n),a.eventEmitter.emit("didRender",n)},ss=()=>C(d()),Wt=()=>{var e;return(e=P())===null||e===void 0?void 0:e.click()},is=()=>{var e;return(e=H())===null||e===void 0?void 0:e.click()},as=()=>{var e;return(e=R())===null||e===void 0?void 0:e.click()},W=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ut=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},ls=(e,t,n)=>{Ut(e),t.toast||(e.keydownHandler=o=>ds(t,o,n),e.keydownTarget=t.keydownListenerCapture?window:d(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Ye=(e,t)=>{var n;const o=Fe();if(o.length){e=e+t,e===-2&&(e=o.length-1),e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();return}(n=d())===null||n===void 0||n.focus()},_t=["ArrowRight","ArrowDown"],cs=["ArrowLeft","ArrowUp"],ds=(e,t,n)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?us(t,e):t.key==="Tab"?ws(t):[..._t,...cs].includes(t.key)?fs(t.key):t.key==="Escape"&&ms(t,e,n)))},us=(e,t)=>{if(!le(t.allowEnterKey))return;const n=we(d(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Wt(),e.preventDefault()}},ws=e=>{const t=e.target,n=Fe();let o=-1;for(let r=0;r<n.length;r++)if(t===n[r]){o=r;break}e.shiftKey?Ye(o,-1):Ye(o,1),e.stopPropagation(),e.preventDefault()},fs=e=>{const t=ne(),n=P(),o=H(),r=R();if(!t||!n||!o||!r)return;const i=[n,o,r];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const l=_t.includes(e)?"nextElementSibling":"previousElementSibling";let c=document.activeElement;if(c){for(let m=0;m<t.children.length;m++){if(c=c[l],!c)return;if(c instanceof HTMLButtonElement&&C(c))break}c instanceof HTMLButtonElement&&c.focus()}},ms=(e,t,n)=>{le(t.allowEscapeKey)&&(e.preventDefault(),n(W.esc))};var U={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const gs=()=>{const e=k();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"))})},Yt=()=>{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")})},Kt=typeof window<"u"&&!!window.GestureEvent,hs=()=>{if(Kt&&!B(document.body,s.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,u(document.body,s.iosfix),ps()}},ps=()=>{const e=k();if(!e)return;let t;e.ontouchstart=n=>{t=bs(n)},e.ontouchmove=n=>{t&&(n.preventDefault(),n.stopPropagation())}},bs=e=>{const t=e.target,n=k(),o=Me();return!n||!o||ys(e)||vs(e)?!1:t===n||!jt(n)&&t instanceof HTMLElement&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(jt(o)&&o.contains(t))},ys=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",vs=e=>e.touches&&e.touches.length>1,ks=()=>{if(B(document.body,s.iosfix)){const e=parseInt(document.body.style.top,10);E(document.body,s.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},Cs=()=>{const e=document.createElement("div");e.className=s["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let _=null;const xs=e=>{_===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(_=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${_+Cs()}px`)},As=()=>{_!==null&&(document.body.style.paddingRight=`${_}px`,_=null)};function Xt(e,t,n,o){ue()?Gt(e,o):(ur(n).then(()=>Gt(e,o)),Ut(a)),Kt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),ze()&&(As(),ks(),Yt()),Ts()}function Ts(){E([document.documentElement,document.body],[s.shown,s["height-auto"],s["no-backdrop"],s["toast-shown"]])}function L(e){e=Ps(e);const t=U.swalPromiseResolve.get(this),n=Es(this);this.isAwaitingPromise?e.isDismissed||(se(this),t(e)):n&&t(e)}const Es=e=>{const t=d();if(!t)return!1;const n=w.innerParams.get(e);if(!n||B(t,n.hideClass.popup))return!1;E(t,n.showClass.popup),u(t,n.hideClass.popup);const o=k();return E(o,n.showClass.backdrop),u(o,n.hideClass.backdrop),$s(e,t,n),!0};function Zt(e){const t=U.swalPromiseReject.get(this);se(this),t&&t(e)}const se=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,w.innerParams.get(e)||e._destroy())},Ps=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),$s=(e,t,n)=>{var o;const r=k(),i=Lt(t);typeof n.willClose=="function"&&n.willClose(t),(o=a.eventEmitter)===null||o===void 0||o.emit("willClose",t),i?Bs(e,t,r,n.returnFocus,n.didClose):Xt(e,r,n.returnFocus,n.didClose)},Bs=(e,t,n,o,r)=>{a.swalCloseEventFinishedCallback=Xt.bind(null,e,n,o,r);const i=function(l){if(l.target===t){var c;(c=a.swalCloseEventFinishedCallback)===null||c===void 0||c.call(a),delete a.swalCloseEventFinishedCallback,t.removeEventListener("animationend",i),t.removeEventListener("transitionend",i)}};t.addEventListener("animationend",i),t.addEventListener("transitionend",i)},Gt=(e,t)=>{setTimeout(()=>{var n;typeof t=="function"&&t.bind(e.params)(),(n=a.eventEmitter)===null||n===void 0||n.emit("didClose"),e._destroy&&e._destroy()})},Y=e=>{let t=d();if(t||new Ce,t=d(),!t)return;const n=N();ue()?y(q()):Ss(t,e),b(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Ss=(e,t)=>{const n=ne(),o=N();!n||!o||(!t&&C(P())&&(t=P()),b(n),t&&(y(t),o.setAttribute("data-button-to-replace",t.className),n.insertBefore(o,t)),u([e,n],s.loading))},js=(e,t)=>{t.input==="select"||t.input==="radio"?Hs(e,t):["text","email","number","tel","textarea"].some(n=>n===t.input)&&(Ie(t.inputValue)||Oe(t.inputValue))&&(Y(P()),Ds(e,t))},Ls=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Is(n);case"radio":return Os(n);case"file":return Ms(n);default:return t.inputAutoTrim?n.value.trim():n.value}},Is=e=>e.checked?1:0,Os=e=>e.checked?e.value:null,Ms=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,Hs=(e,t)=>{const n=d();if(!n)return;const o=r=>{t.input==="select"?Fs(n,pe(r),t):t.input==="radio"&&zs(n,pe(r),t)};Ie(t.inputOptions)||Oe(t.inputOptions)?(Y(P()),ee(t.inputOptions).then(r=>{e.hideLoading(),o(r)})):typeof t.inputOptions=="object"?o(t.inputOptions):M(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},Ds=(e,t)=>{const n=e.getInput();n&&(y(n),ee(t.inputValue).then(o=>{n.value=t.input==="number"?`${parseFloat(o)||0}`:`${o}`,b(n),n.focus(),e.hideLoading()}).catch(o=>{M(`Error in inputValue promise: ${o}`),n.value="",b(n),n.focus(),e.hideLoading()}))};function Fs(e,t,n){const o=j(e,s.select);if(!o)return;const r=(i,l,c)=>{const m=document.createElement("option");m.value=c,A(m,l),m.selected=Jt(c,n.inputValue),i.appendChild(m)};t.forEach(i=>{const l=i[0],c=i[1];if(Array.isArray(c)){const m=document.createElement("optgroup");m.label=l,m.disabled=!1,o.appendChild(m),c.forEach(X=>r(m,X[1],X[0]))}else r(o,c,l)}),o.focus()}function zs(e,t,n){const o=j(e,s.radio);if(!o)return;t.forEach(i=>{const l=i[0],c=i[1],m=document.createElement("input"),X=document.createElement("label");m.type="radio",m.name=s.radio,m.value=l,Jt(l,n.inputValue)&&(m.checked=!0);const Je=document.createElement("span");A(Je,c),Je.className=s.label,X.appendChild(m),X.appendChild(Je),o.appendChild(X)});const r=o.querySelectorAll("input");r.length&&r[0].focus()}const pe=e=>{const t=[];return e instanceof Map?e.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=pe(r)),t.push([o,r])}):Object.keys(e).forEach(n=>{let o=e[n];typeof o=="object"&&(o=pe(o)),t.push([n,o])}),t},Jt=(e,t)=>!!t&&t.toString()===e.toString(),Vs=e=>{const t=w.innerParams.get(e);e.disableButtons(),t.input?Qt(e,"confirm"):Xe(e,!0)},qs=e=>{const t=w.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Qt(e,"deny"):Ke(e,!1)},Rs=(e,t)=>{e.disableButtons(),t(W.cancel)},Qt=(e,t)=>{const n=w.innerParams.get(e);if(!n.input){M(`The "input" parameter is needed to be set when using returnInputValueOn${Le(t)}`);return}const o=e.getInput(),r=Ls(e,n);n.inputValidator?Ns(e,r,t):o&&!o.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||o.validationMessage)):t==="deny"?Ke(e,r):Xe(e,r)},Ns=(e,t,n)=>{const o=w.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>ee(o.inputValidator(t,o.validationMessage))).then(i=>{e.enableButtons(),e.enableInput(),i?e.showValidationMessage(i):n==="deny"?Ke(e,t):Xe(e,t)})},Ke=(e,t)=>{const n=w.innerParams.get(e||void 0);n.showLoaderOnDeny&&Y(H()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>ee(n.preDeny(t,n.validationMessage))).then(r=>{r===!1?(e.hideLoading(),se(e)):e.close({isDenied:!0,value:typeof r>"u"?t:r})}).catch(r=>tn(e||void 0,r))):e.close({isDenied:!0,value:t})},en=(e,t)=>{e.close({isConfirmed:!0,value:t})},tn=(e,t)=>{e.rejectPromise(t)},Xe=(e,t)=>{const n=w.innerParams.get(e||void 0);n.showLoaderOnConfirm&&Y(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>ee(n.preConfirm(t,n.validationMessage))).then(r=>{C(ce())||r===!1?(e.hideLoading(),se(e)):en(e,typeof r>"u"?t:r)}).catch(r=>tn(e||void 0,r))):en(e,t)};function be(){const e=w.innerParams.get(this);if(!e)return;const t=w.domCache.get(this);y(t.loader),ue()?e.icon&&b(q()):Ws(t),E([t.popup,t.actions],s.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Ws=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?b(t[0],"inline-block"):br()&&y(e.actions)};function nn(){const e=w.innerParams.get(this),t=w.domCache.get(this);return t?we(t.popup,e.input):null}function on(e,t,n){const o=w.domCache.get(e);t.forEach(r=>{o[r].disabled=n})}function rn(e,t){const n=d();if(!(!n||!e))if(e.type==="radio"){const o=n.querySelectorAll(`[name="${s.radio}"]`);for(let r=0;r<o.length;r++)o[r].disabled=t}else e.disabled=t}function sn(){on(this,["confirmButton","denyButton","cancelButton"],!1)}function an(){on(this,["confirmButton","denyButton","cancelButton"],!0)}function ln(){rn(this.getInput(),!1)}function cn(){rn(this.getInput(),!0)}function dn(e){const t=w.domCache.get(this),n=w.innerParams.get(this);A(t.validationMessage,e),t.validationMessage.className=s["validation-message"],n.customClass&&n.customClass.validationMessage&&u(t.validationMessage,n.customClass.validationMessage),b(t.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid","true"),o.setAttribute("aria-describedby",s["validation-message"]),$t(o),u(o,s.inputerror))}function un(){const e=w.domCache.get(this);e.validationMessage&&y(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),E(t,s.inputerror))}const K={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",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},Us=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],_s={allowEnterKey:void 0},Ys=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],wn=e=>Object.prototype.hasOwnProperty.call(K,e),fn=e=>Us.indexOf(e)!==-1,mn=e=>_s[e],Ks=e=>{wn(e)||v(`Unknown parameter "${e}"`)},Xs=e=>{Ys.includes(e)&&v(`The parameter "${e}" is incompatible with toasts`)},Zs=e=>{const t=mn(e);t&&At(e,t)},gn=e=>{e.backdrop===!1&&e.allowOutsideClick&&v('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","borderless","embed-iframe"].includes(e.theme)&&v(`Invalid theme "${e.theme}". Expected "light", "dark", "auto", "borderless", or "embed-iframe"`);for(const t in e)Ks(t),e.toast&&Xs(t),Zs(t)};function hn(e){const t=k(),n=d(),o=w.innerParams.get(this);if(!n||B(n,o.hideClass.popup)){v("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 r=Gs(e),i=Object.assign({},o,r);gn(i),t.dataset.swal2Theme=i.theme,Nt(this,i),w.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const Gs=e=>{const t={};return Object.keys(e).forEach(n=>{fn(n)?t[n]=e[n]:v(`Invalid parameter to update: ${n}`)}),t};function pn(){const e=w.domCache.get(this),t=w.innerParams.get(this);if(!t){bn(this);return}e.popup&&a.swalCloseEventFinishedCallback&&(a.swalCloseEventFinishedCallback(),delete a.swalCloseEventFinishedCallback),typeof t.didDestroy=="function"&&t.didDestroy(),a.eventEmitter.emit("didDestroy"),Js(this)}const Js=e=>{bn(e),delete e.params,delete a.keydownHandler,delete a.keydownTarget,delete a.currentInstance},bn=e=>{e.isAwaitingPromise?(Ze(w,e),e.isAwaitingPromise=!0):(Ze(U,e),Ze(w,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)},Ze=(e,t)=>{for(const n in e)e[n].delete(t)};var Qs=Object.freeze({__proto__:null,_destroy:pn,close:L,closeModal:L,closePopup:L,closeToast:L,disableButtons:an,disableInput:cn,disableLoading:be,enableButtons:sn,enableInput:ln,getInput:nn,handleAwaitingPromise:se,hideLoading:be,rejectPromise:Zt,resetValidationMessage:un,showValidationMessage:dn,update:hn});const ei=(e,t,n)=>{e.toast?ti(e,t,n):(oi(t),ri(t),si(e,t,n))},ti=(e,t,n)=>{t.popup.onclick=()=>{e&&(ni(e)||e.timer||e.input)||n(W.close)}},ni=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let ye=!1;const oi=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(ye=!0)}}},ri=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))&&(ye=!0)}}},si=(e,t,n)=>{t.container.onclick=o=>{if(ye){ye=!1;return}o.target===t.container&&le(e.allowOutsideClick)&&n(W.backdrop)}},ii=e=>typeof e=="object"&&e.jquery,yn=e=>e instanceof Element||ii(e),ai=e=>{const t={};return typeof e[0]=="object"&&!yn(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((n,o)=>{const r=e[o];typeof r=="string"||yn(r)?t[n]=r:r!==void 0&&M(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),t};function li(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)}function ci(e){class t extends this{_main(o,r){return super._main(o,Object.assign({},e,r))}}return t}const di=()=>a.timeout&&a.timeout.getTimerLeft(),vn=()=>{if(a.timeout)return yr(),a.timeout.stop()},kn=()=>{if(a.timeout){const e=a.timeout.start();return qe(e),e}},ui=()=>{const e=a.timeout;return e&&(e.running?vn():kn())},wi=e=>{if(a.timeout){const t=a.timeout.increase(e);return qe(t,!0),t}},fi=()=>!!(a.timeout&&a.timeout.isRunning());let Cn=!1;const Ge={};function mi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Ge[e]=this,Cn||(document.body.addEventListener("click",gi),Cn=!0)}const gi=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const n in Ge){const o=t.getAttribute(n);if(o){Ge[n].fire({template:o});return}}};class hi{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 r=function(){o.removeListener(t,r);for(var i=arguments.length,l=new Array(i),c=0;c<i;c++)l[c]=arguments[c];n.apply(o,l)};this.on(t,r)}emit(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this._getHandlersByEventName(t).forEach(i=>{try{i.apply(this,o)}catch(l){console.error(l)}})}removeListener(t,n){const o=this._getHandlersByEventName(t),r=o.indexOf(n);r>-1&&o.splice(r,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}a.eventEmitter=new hi;var pi=Object.freeze({__proto__:null,argsToParams:ai,bindClickHandler:mi,clickCancel:as,clickConfirm:Wt,clickDeny:is,enableLoading:Y,fire:li,getActions:ne,getCancelButton:R,getCloseButton:De,getConfirmButton:P,getContainer:k,getDenyButton:H,getFocusableElements:Fe,getFooter:Pt,getHtmlContainer:Me,getIcon:q,getIconContent:fr,getImage:Et,getInputLabel:mr,getLoader:N,getPopup:d,getProgressSteps:He,getTimerLeft:di,getTimerProgressBar:de,getTitle:Tt,getValidationMessage:ce,increaseTimer:wi,isDeprecatedParameter:mn,isLoading:hr,isTimerRunning:fi,isUpdatableParameter:fn,isValidParameter:wn,isVisible:ss,mixin:ci,off:(e,t)=>{if(!e){a.eventEmitter.reset();return}t?a.eventEmitter.removeListener(e,t):a.eventEmitter.removeAllListeners(e)},on:(e,t)=>{a.eventEmitter.on(e,t)},once:(e,t)=>{a.eventEmitter.once(e,t)},resumeTimer:kn,showLoading:Y,stopTimer:vn,toggleTimer:ui});class bi{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 xn=["swal-title","swal-html","swal-footer"],yi=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return Pi(n),Object.assign(vi(n),ki(n),Ci(n),xi(n),Ai(n),Ti(n),Ei(n,xn))},vi=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(o=>{z(o,["name","value"]);const r=o.getAttribute("name"),i=o.getAttribute("value");!r||!i||(typeof K[r]=="boolean"?t[r]=i!=="false":typeof K[r]=="object"?t[r]=JSON.parse(i):t[r]=i)}),t},ki=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(o=>{const r=o.getAttribute("name"),i=o.getAttribute("value");!r||!i||(t[r]=new Function(`return ${i}`)())}),t},Ci=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(o=>{z(o,["type","color","aria-label"]);const r=o.getAttribute("type");!r||!["confirm","cancel","deny"].includes(r)||(t[`${r}ButtonText`]=o.innerHTML,t[`show${Le(r)}Button`]=!0,o.hasAttribute("color")&&(t[`${r}ButtonColor`]=o.getAttribute("color")),o.hasAttribute("aria-label")&&(t[`${r}ButtonAriaLabel`]=o.getAttribute("aria-label")))}),t},xi=e=>{const t={},n=e.querySelector("swal-image");return n&&(z(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},Ai=e=>{const t={},n=e.querySelector("swal-icon");return n&&(z(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Ti=e=>{const t={},n=e.querySelector("swal-input");n&&(z(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(r=>{z(r,["value"]);const i=r.getAttribute("value");if(!i)return;const l=r.innerHTML;t.inputOptions[i]=l})),t},Ei=(e,t)=>{const n={};for(const o in t){const r=t[o],i=e.querySelector(r);i&&(z(i,[]),n[r.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Pi=e=>{const t=xn.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)||v(`Unrecognized element <${o}>`)})},z=(e,t)=>{Array.from(e.attributes).forEach(n=>{t.indexOf(n.name)===-1&&v([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},An=10,$i=e=>{const t=k(),n=d();typeof e.willOpen=="function"&&e.willOpen(n),a.eventEmitter.emit("willOpen",n);const r=window.getComputedStyle(document.body).overflowY;ji(t,n,e),setTimeout(()=>{Bi(t,n)},An),ze()&&(Si(t,e.scrollbarPadding,r),gs()),!ue()&&!a.previousActiveElement&&(a.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(n)),a.eventEmitter.emit("didOpen",n),E(t,s["no-transition"])},ve=e=>{const t=d();if(e.target!==t)return;const n=k();t.removeEventListener("animationend",ve),t.removeEventListener("transitionend",ve),n.style.overflowY="auto"},Bi=(e,t)=>{Lt(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",ve),t.addEventListener("transitionend",ve)):e.style.overflowY="auto"},Si=(e,t,n)=>{hs(),t&&n!=="hidden"&&xs(n),setTimeout(()=>{e.scrollTop=0})},ji=(e,t,n)=>{u(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),b(t,"grid"),setTimeout(()=>{u(t,n.showClass.popup),t.style.removeProperty("opacity")},An)):b(t,"grid"),u([document.documentElement,document.body],s.shown),n.heightAuto&&n.backdrop&&!n.toast&&u([document.documentElement,document.body],s["height-auto"])};var Tn={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 Li(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=Tn.email),e.input==="url"&&(e.inputValidator=Tn.url))}function Ii(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(v('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Oi(e){Li(e),e.showLoaderOnConfirm&&!e.preConfirm&&v(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
63
+ showLoaderOnConfirm should be used together with preConfirm, see usage example:
64
+ https://sweetalert2.github.io/#ajax-request`),Ii(e),typeof e.title=="string"&&(e.title=e.title.split(`
65
+ `).join("<br />")),Pr(e)}let $;var ke=new WeakMap;class h{constructor(){if(ar(this,ke,void 0),typeof window>"u")return;$=this;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];const r=Object.freeze(this.constructor.argsToParams(n));this.params=r,this.isAwaitingPromise=!1,lr(ke,this,this._main($.params))}_main(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(gn(Object.assign({},n,t)),a.currentInstance){const i=U.swalPromiseResolve.get(a.currentInstance),{isAwaitingPromise:l}=a.currentInstance;a.currentInstance._destroy(),l||i({isDismissed:!0}),ze()&&Yt()}a.currentInstance=$;const o=Hi(t,n);Oi(o),Object.freeze(o),a.timeout&&(a.timeout.stop(),delete a.timeout),clearTimeout(a.restoreFocusTimeout);const r=Di($);return Nt($,o),w.innerParams.set($,o),Mi($,r,o)}then(t){return vt(ke,this).then(t)}finally(t){return vt(ke,this).finally(t)}}const Mi=(e,t,n)=>new Promise((o,r)=>{const i=l=>{e.close({isDismissed:!0,dismiss:l})};U.swalPromiseResolve.set(e,o),U.swalPromiseReject.set(e,r),t.confirmButton.onclick=()=>{Vs(e)},t.denyButton.onclick=()=>{qs(e)},t.cancelButton.onclick=()=>{Rs(e,i)},t.closeButton.onclick=()=>{i(W.close)},ei(n,t,i),ls(a,n,i),js(e,n),$i(n),Fi(a,n,i),zi(t,n),setTimeout(()=>{t.container.scrollTop=0})}),Hi=(e,t)=>{const n=yi(e),o=Object.assign({},K,t,n,e);return o.showClass=Object.assign({},K.showClass,o.showClass),o.hideClass=Object.assign({},K.hideClass,o.hideClass),o.animation===!1&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},Di=e=>{const t={popup:d(),container:k(),actions:ne(),confirmButton:P(),denyButton:H(),cancelButton:R(),loader:N(),closeButton:De(),validationMessage:ce(),progressSteps:He()};return w.domCache.set(e,t),t},Fi=(e,t,n)=>{const o=de();y(o),t.timer&&(e.timeout=new bi(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(b(o),T(o,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&qe(t.timer)})))},zi=(e,t)=>{if(!t.toast){if(!le(t.allowEnterKey)){At("allowEnterKey"),Ri();return}Vi(e)||qi(e,t)||Ye(-1,1)}},Vi=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const n of t)if(n instanceof HTMLElement&&C(n))return n.focus(),!0;return!1},qi=(e,t)=>t.focusDeny&&C(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&C(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&C(e.confirmButton)?(e.confirmButton.focus(),!0):!1,Ri=()=>{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}`)}h.prototype.disableButtons=an,h.prototype.enableButtons=sn,h.prototype.getInput=nn,h.prototype.disableInput=cn,h.prototype.enableInput=ln,h.prototype.hideLoading=be,h.prototype.disableLoading=be,h.prototype.showValidationMessage=dn,h.prototype.resetValidationMessage=un,h.prototype.close=L,h.prototype.closePopup=L,h.prototype.closeModal=L,h.prototype.closeToast=L,h.prototype.rejectPromise=Zt,h.prototype.update=hn,h.prototype._destroy=pn,Object.assign(h,pi),Object.keys(Qs).forEach(e=>{h[e]=function(){return $&&$[e]?$[e](...arguments):null}}),h.DismissReason=W,h.version="11.19.1";const Ce=h;Ce.default=Ce,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,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-background: transparent;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.1s, box-shadow 0.1s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-confirm-button-background-color: #7066e0;--swal2-deny-button-background-color: #dc3741;--swal2-cancel-button-background-color: #6e7881}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.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 var(--swal2-backdrop)}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}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}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:var(--swal2-container-padding);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:var(--swal2-backdrop)}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:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);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) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}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:var(--swal2-confirm-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-deny-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-cancel-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}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 var(--swal2-footer-border-color);color:inherit;font-size:1em;text-align:center;cursor:initial}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:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}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;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);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:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);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;cursor:initial}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:var(--swal2-input-background);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:var(--swal2-background)}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:var(--swal2-input-background);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:var(--swal2-input-background);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:var(--swal2-background);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:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);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:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}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:.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:#f8bb86;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:#3fc3ee;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:#87adbd;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:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.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}.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:var(--swal2-background);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-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.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-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.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-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-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}@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}}@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}}');const Ni=()=>({confirm:async(t,n)=>{var r,i;(await Ce.fire({imageUrl:n==null?void 0:n.imageUrl,imageWidth:(r=n==null?void 0:n.image)==null?void 0:r.width,imageHeight:(i=n==null?void 0:n.image)==null?void 0:i.height,text:t,denyButtonText:(n==null?void 0:n.denyText)||"Non",confirmButtonText:(n==null?void 0:n.confirmText)||"Oui",showDenyButton:!0,showCloseButton:!0,reverseButtons:!0,customClass:{...(n==null?void 0:n.classes)??{},popup:"radius-m py-3 px-4",confirmButton:`v-btn v-btn--slim v-theme--light v-btn--density-default v-btn--size-large v-btn--variant-${n.confirmButtonVariant??"secondary"} n-btn ma-0`,denyButton:"v-btn v-btn--slim v-theme--light v-btn--density-default v-btn--size-large v-btn--variant-outlined n-btn ma-0",actions:"w-100 justify-end ga-2",image:"my-0",htmlContainer:"pa-0 p1-paragraph"}})).isConfirmed?n.onConfirm():n.onCancel&&n.onCancel()}});p.defined=or,p.hexToRgb=sr,p.hexToRgba=je,p.hexToRgbaStyle=rr,p.key=nr,p.numberToCssStyle=tr,p.useConfirm=Ni,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
package/dist/main.d.ts CHANGED
@@ -1,2 +1,5 @@
1
- export * from './src/main'
2
- export {}
1
+ export { numberToCssStyle } from './utils/style.utils';
2
+ export { key, defined, } from './utils/tools.utils';
3
+ export { hexToRgb, hexToRgba, hexToRgbaStyle } from './utils/colors.utils';
4
+ export { useConfirm } from './composables/useConfirm';
5
+ export type { Nullable } from './types/nullable.types';
@@ -0,0 +1,16 @@
1
+ export declare const priceFormatter: (price: number, options?: {
2
+ keepNegative?: boolean;
3
+ replacement?: string;
4
+ }) => string;
5
+ export declare const percentFormatter: (value: number, options?: {
6
+ keepNegative?: boolean;
7
+ replacement?: string;
8
+ precision?: number;
9
+ keepLargeValue?: boolean;
10
+ }) => string;
11
+ export declare const numberToText: (value: number, options?: {
12
+ keepNegative?: boolean;
13
+ replacement?: string;
14
+ suffix?: string;
15
+ }) => string;
16
+ export declare const isValidPriceOrPercent: (value: number | string | null | undefined, natural: boolean) => boolean;
@@ -0,0 +1,5 @@
1
+ export declare const key: (item: {
2
+ name: string | number;
3
+ id: string | number;
4
+ }) => string;
5
+ export declare const defined: (value: unknown, strict?: boolean) => boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ /* eslint-disable */
2
+ declare module "*.vue" {
3
+ import type { DefineComponent } from "vue";
4
+ const component: DefineComponent<{}, {}, any>;
5
+ export default component;
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofiakb/elf-js",
3
- "version": "0.0.1-dev.0",
3
+ "version": "0.0.1-dev.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -1,13 +0,0 @@
1
- import { ComponentPublicInstance } from 'vue';
2
- type VueComponentInstance = ComponentPublicInstance<HTMLElement>;
3
- export declare const useComponentHeight: (initialHeight: string) => {
4
- componentHeight: import('vue').Ref<string>;
5
- componentRef: import('vue').Ref<VueComponentInstance | {
6
- _: {
7
- vnode: {
8
- el: HTMLElement;
9
- };
10
- };
11
- } | null>;
12
- };
13
- export {};
@@ -1,18 +0,0 @@
1
- import { Ref } from 'vue';
2
- type TFormError = string | null | Record<string, unknown>;
3
- type UseFormReturnType = {
4
- reset: () => void;
5
- error: Ref<TFormError>;
6
- setError: (newError: TFormError) => void;
7
- getError: () => TFormError;
8
- hasError: () => boolean;
9
- loading: Ref<boolean>;
10
- isLoading: () => boolean;
11
- load: () => void;
12
- unload: () => void;
13
- };
14
- export declare const useForm: (initialState?: {
15
- loading: boolean;
16
- error: null;
17
- }) => UseFormReturnType;
18
- export {};
@@ -1,6 +0,0 @@
1
- export { numberToCssStyle } from './utils/style.utils';
2
- export { useRouteHelper, key, defined, hasSlot } from './utils/tools.utils';
3
- export { hexToRgb, hexToRgba, hexToRgbaStyle } from './utils/colors.utils';
4
- export { useComponentHeight } from './composables/useComponentHeight';
5
- export { useForm } from './composables/useForm';
6
- export type { Nullable } from './types/nullable.types';
@@ -1,10 +0,0 @@
1
- import { ComponentInternalInstance, ComponentPublicInstance } from 'vue';
2
- export declare const hasSlot: (component: ComponentPublicInstance | ComponentInternalInstance | null, name?: string) => boolean;
3
- export declare const useRouteHelper: () => {
4
- routeExists: (name: string | undefined) => boolean;
5
- };
6
- export declare const key: (item: {
7
- name: string | number;
8
- id: string | number;
9
- }) => string;
10
- export declare const defined: (value: unknown, strict?: boolean) => boolean;
@@ -1,269 +0,0 @@
1
- import { inject as Z, ref as l, watch as rr, nextTick as tr } from "vue";
2
- var V = typeof global == "object" && global && global.Object === Object && global, er = typeof self == "object" && self && self.Object === Object && self, s = V || er || Function("return this")(), d = s.Symbol, G = Object.prototype, or = G.hasOwnProperty, nr = G.toString, f = d ? d.toStringTag : void 0;
3
- function ar(r) {
4
- var t = or.call(r, f), e = r[f];
5
- try {
6
- r[f] = void 0;
7
- var n = !0;
8
- } catch {
9
- }
10
- var a = nr.call(r);
11
- return n && (t ? r[f] = e : delete r[f]), a;
12
- }
13
- var cr = Object.prototype, sr = cr.toString;
14
- function ir(r) {
15
- return sr.call(r);
16
- }
17
- var ur = "[object Null]", fr = "[object Undefined]", x = d ? d.toStringTag : void 0;
18
- function g(r) {
19
- return r == null ? r === void 0 ? fr : ur : x && x in Object(r) ? ar(r) : ir(r);
20
- }
21
- function E(r) {
22
- return r != null && typeof r == "object";
23
- }
24
- var pr = Array.isArray;
25
- function K(r) {
26
- var t = typeof r;
27
- return r != null && (t == "object" || t == "function");
28
- }
29
- var gr = "[object AsyncFunction]", br = "[object Function]", lr = "[object GeneratorFunction]", dr = "[object Proxy]";
30
- function W(r) {
31
- if (!K(r))
32
- return !1;
33
- var t = g(r);
34
- return t == br || t == lr || t == gr || t == dr;
35
- }
36
- var j = s["__core-js_shared__"], w = function() {
37
- var r = /[^.]+$/.exec(j && j.keys && j.keys.IE_PROTO || "");
38
- return r ? "Symbol(src)_1." + r : "";
39
- }();
40
- function yr(r) {
41
- return !!w && w in r;
42
- }
43
- var jr = Function.prototype, Tr = jr.toString;
44
- function u(r) {
45
- if (r != null) {
46
- try {
47
- return Tr.call(r);
48
- } catch {
49
- }
50
- try {
51
- return r + "";
52
- } catch {
53
- }
54
- }
55
- return "";
56
- }
57
- var vr = /[\\^$.*+?()[\]{}|]/g, mr = /^\[object .+?Constructor\]$/, $r = Function.prototype, Or = Object.prototype, Sr = $r.toString, hr = Or.hasOwnProperty, Er = RegExp(
58
- "^" + Sr.call(hr).replace(vr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
59
- );
60
- function Ar(r) {
61
- if (!K(r) || yr(r))
62
- return !1;
63
- var t = W(r) ? Er : mr;
64
- return t.test(u(r));
65
- }
66
- function xr(r, t) {
67
- return r == null ? void 0 : r[t];
68
- }
69
- function b(r, t) {
70
- var e = xr(r, t);
71
- return Ar(e) ? e : void 0;
72
- }
73
- var v = b(s, "WeakMap"), wr = 9007199254740991;
74
- function H(r) {
75
- return typeof r == "number" && r > -1 && r % 1 == 0 && r <= wr;
76
- }
77
- function Pr(r) {
78
- return r != null && H(r.length) && !W(r);
79
- }
80
- var Nr = Object.prototype;
81
- function q(r) {
82
- var t = r && r.constructor, e = typeof t == "function" && t.prototype || Nr;
83
- return r === e;
84
- }
85
- var Ir = "[object Arguments]";
86
- function P(r) {
87
- return E(r) && g(r) == Ir;
88
- }
89
- var z = Object.prototype, kr = z.hasOwnProperty, _r = z.propertyIsEnumerable, Mr = P(/* @__PURE__ */ function() {
90
- return arguments;
91
- }()) ? P : function(r) {
92
- return E(r) && kr.call(r, "callee") && !_r.call(r, "callee");
93
- };
94
- const Rr = Mr;
95
- function Cr() {
96
- return !1;
97
- }
98
- var J = typeof exports == "object" && exports && !exports.nodeType && exports, N = J && typeof module == "object" && module && !module.nodeType && module, Dr = N && N.exports === J, I = Dr ? s.Buffer : void 0, Br = I ? I.isBuffer : void 0, Fr = Br || Cr;
99
- const Ur = Fr;
100
- var Lr = "[object Arguments]", Vr = "[object Array]", Gr = "[object Boolean]", Kr = "[object Date]", Wr = "[object Error]", Hr = "[object Function]", qr = "[object Map]", zr = "[object Number]", Jr = "[object Object]", Xr = "[object RegExp]", Qr = "[object Set]", Yr = "[object String]", Zr = "[object WeakMap]", rt = "[object ArrayBuffer]", tt = "[object DataView]", et = "[object Float32Array]", ot = "[object Float64Array]", nt = "[object Int8Array]", at = "[object Int16Array]", ct = "[object Int32Array]", st = "[object Uint8Array]", it = "[object Uint8ClampedArray]", ut = "[object Uint16Array]", ft = "[object Uint32Array]", o = {};
101
- o[et] = o[ot] = o[nt] = o[at] = o[ct] = o[st] = o[it] = o[ut] = o[ft] = !0;
102
- o[Lr] = o[Vr] = o[rt] = o[Gr] = o[tt] = o[Kr] = o[Wr] = o[Hr] = o[qr] = o[zr] = o[Jr] = o[Xr] = o[Qr] = o[Yr] = o[Zr] = !1;
103
- function pt(r) {
104
- return E(r) && H(r.length) && !!o[g(r)];
105
- }
106
- function gt(r) {
107
- return function(t) {
108
- return r(t);
109
- };
110
- }
111
- var X = typeof exports == "object" && exports && !exports.nodeType && exports, p = X && typeof module == "object" && module && !module.nodeType && module, bt = p && p.exports === X, T = bt && V.process, k = function() {
112
- try {
113
- var r = p && p.require && p.require("util").types;
114
- return r || T && T.binding && T.binding("util");
115
- } catch {
116
- }
117
- }(), _ = k && k.isTypedArray, lt = _ ? gt(_) : pt;
118
- const dt = lt;
119
- function yt(r, t) {
120
- return function(e) {
121
- return r(t(e));
122
- };
123
- }
124
- var jt = yt(Object.keys, Object), Tt = Object.prototype, vt = Tt.hasOwnProperty;
125
- function mt(r) {
126
- if (!q(r))
127
- return jt(r);
128
- var t = [];
129
- for (var e in Object(r))
130
- vt.call(r, e) && e != "constructor" && t.push(e);
131
- return t;
132
- }
133
- var m = b(s, "Map"), $ = b(s, "DataView"), O = b(s, "Promise"), S = b(s, "Set"), M = "[object Map]", $t = "[object Object]", R = "[object Promise]", C = "[object Set]", D = "[object WeakMap]", B = "[object DataView]", Ot = u($), St = u(m), ht = u(O), Et = u(S), At = u(v), i = g;
134
- ($ && i(new $(new ArrayBuffer(1))) != B || m && i(new m()) != M || O && i(O.resolve()) != R || S && i(new S()) != C || v && i(new v()) != D) && (i = function(r) {
135
- var t = g(r), e = t == $t ? r.constructor : void 0, n = e ? u(e) : "";
136
- if (n)
137
- switch (n) {
138
- case Ot:
139
- return B;
140
- case St:
141
- return M;
142
- case ht:
143
- return R;
144
- case Et:
145
- return C;
146
- case At:
147
- return D;
148
- }
149
- return t;
150
- });
151
- const xt = i;
152
- var wt = "[object Map]", Pt = "[object Set]", Nt = Object.prototype, It = Nt.hasOwnProperty;
153
- function h(r) {
154
- if (r == null)
155
- return !0;
156
- if (Pr(r) && (pr(r) || typeof r == "string" || typeof r.splice == "function" || Ur(r) || dt(r) || Rr(r)))
157
- return !r.length;
158
- var t = xt(r);
159
- if (t == wt || t == Pt)
160
- return !r.size;
161
- if (q(r))
162
- return !mt(r).length;
163
- for (var e in r)
164
- if (It.call(r, e))
165
- return !1;
166
- return !0;
167
- }
168
- function Q(r) {
169
- return r == null;
170
- }
171
- const kt = (r) => {
172
- if (h(r == null ? void 0 : r.toString()))
173
- return null;
174
- const t = (r == null ? void 0 : r.toString()) ?? "", n = /calc\(([^)]+)\)/.exec(t);
175
- return Q(n == null ? void 0 : n[1]) ? t.includes("%") || isNaN(Number(t)) ? isNaN(parseInt(t)) ? null : t : parseInt(t) + "px" : t;
176
- };
177
- /*!
178
- * vue-router v4.4.3
179
- * (c) 2024 Eduardo San Martin Morote
180
- * @license MIT
181
- */
182
- var F;
183
- (function(r) {
184
- r.pop = "pop", r.push = "push";
185
- })(F || (F = {}));
186
- var U;
187
- (function(r) {
188
- r.back = "back", r.forward = "forward", r.unknown = "";
189
- })(U || (U = {}));
190
- Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
191
- var L;
192
- (function(r) {
193
- r[r.aborted = 4] = "aborted", r[r.cancelled = 8] = "cancelled", r[r.duplicated = 16] = "duplicated";
194
- })(L || (L = {}));
195
- Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
196
- Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
197
- const _t = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
198
- Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
199
- Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
200
- function Mt() {
201
- return Z(_t);
202
- }
203
- const Ut = (r, t = "default") => {
204
- var e;
205
- return !!((e = r.$slots ?? r.slots) != null && e[t]);
206
- }, Lt = () => {
207
- const r = Mt();
208
- return {
209
- routeExists: (e) => !!e && r && r.hasRoute(e)
210
- };
211
- }, Vt = (r) => btoa(encodeURI(`${r.name ?? r ?? "name"}-${r.id ?? -1}`)), Gt = (r, t = !0) => typeof r < "u" && (t ? r !== null : !0), Y = (r, t) => {
212
- r = r.replace(/^#/, "");
213
- const e = parseInt(r, 16), n = e >> 16 & 255, a = e >> 8 & 255, c = e & 255;
214
- if (isNaN(n) || isNaN(a) || isNaN(c))
215
- throw new Error("Invalid hex color code");
216
- return { r: n, g: a, b: c, a: t > 1 ? t / 100 : t };
217
- }, Kt = (r, t) => {
218
- const { r: e, g: n, b: a, a: c } = Y(r, t);
219
- return `rgba(${e}, ${n}, ${a}, ${c})`;
220
- }, Wt = (r) => {
221
- const { r: t, g: e, b: n } = Y(r, 1);
222
- return { r: t, g: e, b: n };
223
- }, Ht = (r) => {
224
- const t = l(r), e = l(null);
225
- return rr(
226
- e,
227
- async (n) => {
228
- await tr(() => {
229
- var c, y;
230
- const a = (n == null ? void 0 : n.$el) ?? ((y = (c = n == null ? void 0 : n._) == null ? void 0 : c.vnode) == null ? void 0 : y.el);
231
- t.value = kt((a == null ? void 0 : a.offsetHeight) || r) ?? r;
232
- });
233
- },
234
- { immediate: !0 }
235
- ), {
236
- componentHeight: t,
237
- componentRef: e
238
- };
239
- }, Rt = {
240
- loading: !1,
241
- error: null
242
- }, qt = (r = Rt) => {
243
- const t = l(r.loading), e = l(r.error);
244
- return {
245
- reset: () => {
246
- t.value = r.loading, e.value = r.error;
247
- },
248
- error: e,
249
- setError: (A) => e.value = h(A) ? null : A,
250
- getError: () => e.value,
251
- hasError: () => !Q(e.value) && !h(e.value),
252
- loading: t,
253
- isLoading: () => t.value,
254
- load: () => t.value = !0,
255
- unload: () => t.value = !1
256
- };
257
- };
258
- export {
259
- Gt as defined,
260
- Ut as hasSlot,
261
- Wt as hexToRgb,
262
- Y as hexToRgba,
263
- Kt as hexToRgbaStyle,
264
- Vt as key,
265
- kt as numberToCssStyle,
266
- Ht as useComponentHeight,
267
- qt as useForm,
268
- Lt as useRouteHelper
269
- };